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