|
|
|
@ -31,7 +31,6 @@
|
|
|
|
|
:allowClear="true"
|
|
|
|
|
:data-source="carrierDataArr"
|
|
|
|
|
v-model="details.carrier"
|
|
|
|
|
|
|
|
|
|
@select="carrierSelect"
|
|
|
|
|
@change="carrierChange"
|
|
|
|
|
/> -->
|
|
|
|
@ -100,16 +99,16 @@
|
|
|
|
|
<a-input :allowClear="true" v-model="details.bookingno" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<template v-if="type === 'CMA' || type === 'MSC'">
|
|
|
|
|
<template v-if="details.carrierid === 'ESL'">
|
|
|
|
|
<a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="6">
|
|
|
|
|
<a-form-item class="from-label" label="约号" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-form-item class="from-label" label="EP号" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-input :allowClear="true" v-model="details.contractno" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else-if="type === 'ESL'">
|
|
|
|
|
<template v-else>
|
|
|
|
|
<a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="6">
|
|
|
|
|
<a-form-item class="from-label" label="EP号" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-form-item class="from-label" label="约号" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-input :allowClear="true" v-model="details.contractno" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -141,37 +140,37 @@
|
|
|
|
|
<a-input :allowClear="true" v-model="details.voyno" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<template v-if="type === 'CMA' || type === 'MSC'">
|
|
|
|
|
<template v-if="details.carrierid === 'ESL'">
|
|
|
|
|
<a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="6">
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="from-label"
|
|
|
|
|
label="内部航次"
|
|
|
|
|
label="航线代码"
|
|
|
|
|
:labelCol="labelCol"
|
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<auto-complete
|
|
|
|
|
:allowClear="true"
|
|
|
|
|
class="customer-input"
|
|
|
|
|
v-model="details.voynoinner"
|
|
|
|
|
:data-source="voynoinnerDataArr"
|
|
|
|
|
@select="voynoinnerSelect"
|
|
|
|
|
@change="voynoinnerChange"
|
|
|
|
|
@focus="voynoinnerChange"
|
|
|
|
|
/>
|
|
|
|
|
<a-input :allowClear="true" v-model="details.lanecode" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else-if="type === 'ESL'">
|
|
|
|
|
<template v-else>
|
|
|
|
|
<a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="6">
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="from-label"
|
|
|
|
|
label="航线代码"
|
|
|
|
|
label="内部航次"
|
|
|
|
|
:labelCol="labelCol"
|
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input :allowClear="true" v-model="details.lanecode" />
|
|
|
|
|
<auto-complete
|
|
|
|
|
:allowClear="true"
|
|
|
|
|
class="customer-input"
|
|
|
|
|
v-model="details.voynoinner"
|
|
|
|
|
:data-source="voynoinnerDataArr"
|
|
|
|
|
@select="voynoinnerSelect"
|
|
|
|
|
@change="voynoinnerChange"
|
|
|
|
|
@focus="voynoinnerChange"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</template>
|
|
|
|
@ -234,7 +233,7 @@
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<template v-if="type === 'ESL'">
|
|
|
|
|
<template v-if="details.carrierid === 'ESL'">
|
|
|
|
|
<a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="6">
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="from-label"
|
|
|
|
@ -808,7 +807,8 @@ export default {
|
|
|
|
|
item.roleCode = item.WroleCode
|
|
|
|
|
// }
|
|
|
|
|
})
|
|
|
|
|
BookingOrderContactSavebatch(data).then(res => {
|
|
|
|
|
debugger
|
|
|
|
|
BookingOrderContactSavebatch(this.$route.query.id, data).then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message.success('保存成功')
|
|
|
|
|
} else {
|
|
|
|
@ -860,7 +860,6 @@ export default {
|
|
|
|
|
this.details.customerid = this.customerData[index].id
|
|
|
|
|
},
|
|
|
|
|
customerChange(value) {
|
|
|
|
|
console.log(value)
|
|
|
|
|
// this.getCustomer(value)
|
|
|
|
|
this.getDjyCustomerpage(value, 'customer', 'consignor')
|
|
|
|
|
},
|
|
|
|
@ -893,7 +892,6 @@ export default {
|
|
|
|
|
this.carrierSelectData = arr
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
}
|
|
|
|
|
console.log(this.carrierSelectData)
|
|
|
|
|
})
|
|
|
|
|
.catch(err => {
|
|
|
|
|
console.log(err)
|
|
|
|
@ -907,13 +905,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 模糊搜索暂时不用
|
|
|
|
|
carrierChange(value) {
|
|
|
|
|
console.log(value)
|
|
|
|
|
// this.getCarrier(value)
|
|
|
|
|
},
|
|
|
|
|
handleCarrierChange(data) {
|
|
|
|
|
this.carrierSelectData.forEach(item => {
|
|
|
|
|
if (item.code == data) {
|
|
|
|
|
console.log(item)
|
|
|
|
|
this.details.carrier = item.cnName
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -1074,7 +1070,6 @@ export default {
|
|
|
|
|
if (this.details.customerid) {
|
|
|
|
|
this.customerType = type
|
|
|
|
|
this.customerVisible = true
|
|
|
|
|
|
|
|
|
|
DjyCustomerdetail({ id: this.details.customerid }).then(res => {
|
|
|
|
|
console.log(res.data.contacts)
|
|
|
|
|
this.customerContactsData = res.data.contacts
|
|
|
|
|