|
|
@ -530,7 +530,7 @@ export default {
|
|
|
|
editOption: {
|
|
|
|
editOption: {
|
|
|
|
// cell value change
|
|
|
|
// cell value change
|
|
|
|
cellValueChange: ({ row, column }) => {
|
|
|
|
cellValueChange: ({ row, column }) => {
|
|
|
|
console.log('编辑', row, column)
|
|
|
|
// console.log('编辑', row, column)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
checkboxOption: {
|
|
|
|
checkboxOption: {
|
|
|
@ -615,7 +615,6 @@ export default {
|
|
|
|
style="width: 240px"
|
|
|
|
style="width: 240px"
|
|
|
|
placeholder="请选择角色"
|
|
|
|
placeholder="请选择角色"
|
|
|
|
on-change={val => {
|
|
|
|
on-change={val => {
|
|
|
|
console.log(val, row['roleCode'])
|
|
|
|
|
|
|
|
row['roleCode'] = val
|
|
|
|
row['roleCode'] = val
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -903,20 +902,20 @@ export default {
|
|
|
|
this.etdWeek = this.getWeek(this.details.etd)
|
|
|
|
this.etdWeek = this.getWeek(this.details.etd)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.ContactType = this.$options.filters['dictData']('booking_contact_type')
|
|
|
|
this.ContactType = this.$options.filters['dictData']('booking_contact_type')
|
|
|
|
console.log(this.ContactType, 'this.ContactType')
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 客户 - start
|
|
|
|
// 客户 - start
|
|
|
|
getDjyCustomerpage(name = '', type, key) {
|
|
|
|
getDjyCustomerpage(name = '', type, key) {
|
|
|
|
|
|
|
|
const _type = type === 'customer' ? 'consignor' : 'booking_agent'
|
|
|
|
DjyCustomerSuggest({
|
|
|
|
DjyCustomerSuggest({
|
|
|
|
// SearchValue: name,
|
|
|
|
// SearchValue: name,
|
|
|
|
// PropString: key,
|
|
|
|
// PropString: key,
|
|
|
|
keyword: name
|
|
|
|
keyword: name,
|
|
|
|
|
|
|
|
type: _type
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.code === 200) {
|
|
|
|
if (res.code === 200) {
|
|
|
|
// this.customerData = res.data.rows
|
|
|
|
// this.customerData = res.data.rows
|
|
|
|
this[`${type}Data`] = res.data.rows
|
|
|
|
this[`${type}Data`] = res.data.rows
|
|
|
|
console.log(this[`${type}DataArr`])
|
|
|
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
this.$forceUpdate()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -931,6 +930,9 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
customerChange(value) {
|
|
|
|
customerChange(value) {
|
|
|
|
// this.getCustomer(value)
|
|
|
|
// this.getCustomer(value)
|
|
|
|
|
|
|
|
if (!value) {
|
|
|
|
|
|
|
|
this.details.customername = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getDjyCustomerpage(value, 'customer', 'consignor')
|
|
|
|
this.getDjyCustomerpage(value, 'customer', 'consignor')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 客户 - end
|
|
|
|
// 客户 - end
|
|
|
@ -940,6 +942,10 @@ export default {
|
|
|
|
this.details.forwarder = value
|
|
|
|
this.details.forwarder = value
|
|
|
|
},
|
|
|
|
},
|
|
|
|
forwarderChange(value) {
|
|
|
|
forwarderChange(value) {
|
|
|
|
|
|
|
|
console.log('订舱代理发生变化', value)
|
|
|
|
|
|
|
|
if (!value) {
|
|
|
|
|
|
|
|
this.details.forwarder = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getDjyCustomerpage(value, 'forwarder', 'booking_agent')
|
|
|
|
this.getDjyCustomerpage(value, 'forwarder', 'booking_agent')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 订舱代理 - end
|
|
|
|
// 订舱代理 - end
|
|
|
@ -1009,6 +1015,9 @@ export default {
|
|
|
|
this.details.shipagency = value
|
|
|
|
this.details.shipagency = value
|
|
|
|
},
|
|
|
|
},
|
|
|
|
shipagencyChange(value) {
|
|
|
|
shipagencyChange(value) {
|
|
|
|
|
|
|
|
if (!value) {
|
|
|
|
|
|
|
|
this.details.shipagency = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getForwarderlist(value)
|
|
|
|
this.getForwarderlist(value)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 船代 - end
|
|
|
|
// 船代 - end
|
|
|
@ -1034,6 +1043,9 @@ export default {
|
|
|
|
this.details.vesselid = this.vesselData[index].code
|
|
|
|
this.details.vesselid = this.vesselData[index].code
|
|
|
|
},
|
|
|
|
},
|
|
|
|
vesselChange(value) {
|
|
|
|
vesselChange(value) {
|
|
|
|
|
|
|
|
if (!value) {
|
|
|
|
|
|
|
|
this.details.vessel = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getVessel(value)
|
|
|
|
this.getVessel(value)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 船名 - end
|
|
|
|
// 船名 - end
|
|
|
@ -1046,6 +1058,9 @@ export default {
|
|
|
|
this.details.voynoinner = value
|
|
|
|
this.details.voynoinner = value
|
|
|
|
},
|
|
|
|
},
|
|
|
|
voynoinnerChange(value) {
|
|
|
|
voynoinnerChange(value) {
|
|
|
|
|
|
|
|
if (!value) {
|
|
|
|
|
|
|
|
this.details.voynoinner = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getVoynoinner(value)
|
|
|
|
this.getVoynoinner(value)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -1061,6 +1076,9 @@ export default {
|
|
|
|
this.details.lanecode = this.lanenameData[index].code
|
|
|
|
this.details.lanecode = this.lanenameData[index].code
|
|
|
|
},
|
|
|
|
},
|
|
|
|
lanenameChange(value) {
|
|
|
|
lanenameChange(value) {
|
|
|
|
|
|
|
|
if (!value) {
|
|
|
|
|
|
|
|
this.details.lanename = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getLanename(value)
|
|
|
|
this.getLanename(value)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -1096,6 +1114,9 @@ export default {
|
|
|
|
this.details.saleid = this.saleUserList[index].id
|
|
|
|
this.details.saleid = this.saleUserList[index].id
|
|
|
|
},
|
|
|
|
},
|
|
|
|
saleChange(value) {
|
|
|
|
saleChange(value) {
|
|
|
|
|
|
|
|
if (!value) {
|
|
|
|
|
|
|
|
this.details.sale = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getUserList(value, 'sale')
|
|
|
|
this.getUserList(value, 'sale')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -1106,6 +1127,9 @@ export default {
|
|
|
|
this.details.opid = this.opUserList[index].id
|
|
|
|
this.details.opid = this.opUserList[index].id
|
|
|
|
},
|
|
|
|
},
|
|
|
|
opChange(value) {
|
|
|
|
opChange(value) {
|
|
|
|
|
|
|
|
if (!value) {
|
|
|
|
|
|
|
|
this.details.op = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getUserList(value, 'op')
|
|
|
|
this.getUserList(value, 'op')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -1116,6 +1140,9 @@ export default {
|
|
|
|
this.details.docid = this.docUserList[index].id
|
|
|
|
this.details.docid = this.docUserList[index].id
|
|
|
|
},
|
|
|
|
},
|
|
|
|
docChange(value) {
|
|
|
|
docChange(value) {
|
|
|
|
|
|
|
|
if (!value) {
|
|
|
|
|
|
|
|
this.details.doc = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getUserList(value, 'doc')
|
|
|
|
this.getUserList(value, 'doc')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -1126,6 +1153,9 @@ export default {
|
|
|
|
this.details.custserviceid = this.custserviceUserList[index].id
|
|
|
|
this.details.custserviceid = this.custserviceUserList[index].id
|
|
|
|
},
|
|
|
|
},
|
|
|
|
custserviceChange(value) {
|
|
|
|
custserviceChange(value) {
|
|
|
|
|
|
|
|
if (!value) {
|
|
|
|
|
|
|
|
this.details.custservice = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getUserList(value, 'custservice')
|
|
|
|
this.getUserList(value, 'custservice')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -1141,7 +1171,6 @@ export default {
|
|
|
|
this.customerType = type
|
|
|
|
this.customerType = type
|
|
|
|
this.customerVisible = true
|
|
|
|
this.customerVisible = true
|
|
|
|
DjyCustomerdetail({ id: this.details.customerid }).then(res => {
|
|
|
|
DjyCustomerdetail({ id: this.details.customerid }).then(res => {
|
|
|
|
console.log(res.data.contacts)
|
|
|
|
|
|
|
|
this.customerContactsData = res.data.contacts
|
|
|
|
this.customerContactsData = res.data.contacts
|
|
|
|
})
|
|
|
|
})
|
|
|
|
BookingOrderContactPage({ id: this.details.customerid, BookingId: this.$route.query.id, pageSize: 999 }).then(res => {
|
|
|
|
BookingOrderContactPage({ id: this.details.customerid, BookingId: this.$route.query.id, pageSize: 999 }).then(res => {
|
|
|
@ -1302,7 +1331,7 @@ export default {
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/deep/ .date-box{
|
|
|
|
/deep/ .date-box{
|
|
|
|
padding-top: 7px;
|
|
|
|
padding-top: 7px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// .ant-calendar-picker-input{
|
|
|
|
// .ant-calendar-picker-input{
|
|
|
|