szh_zidingyibiaoti
张同海 2 years ago
parent b5f14bfeac
commit 0675638fbe

@ -724,7 +724,7 @@
<autoView <autoView
type="placedeliveryid" type="placedeliveryid"
:defaultVal="orderDetails.placedeliveryid" :defaultVal="orderDetails.placedeliveryid"
searchApi="GetPortlist" searchApi="GetPortloadlist"
:searchQuery="{ KeyWord: '' }" :searchQuery="{ KeyWord: '' }"
:showLabel="['ediCode', 'enName']" :showLabel="['ediCode', 'enName']"
@select="getAutoViewRes" @select="getAutoViewRes"
@ -1883,6 +1883,14 @@ export default {
return false return false
} }
const type = this.enmuType(this.modelType) const type = this.enmuType(this.modelType)
console.log({
title: this.modelName,
type: type,
name: this.orderDetails[`${this.modelType}name`],
addr: this.orderDetails[`${this.modelType}addR1`],
country: this.orderDetails[`${this.modelType}countryName`],
tel: this.orderDetails[`${this.modelType}tel`]
})
BookingTemplateAdd({ BookingTemplateAdd({
title: this.modelName, title: this.modelName,
type: type, type: type,
@ -2029,7 +2037,7 @@ export default {
notifypartycountry: '', notifypartycountry: '',
notifypartycountryName: '', notifypartycountryName: '',
notifypartytel: '', notifypartytel: '',
portload: $details.portload || 'CNTAO', portload: $details.portload || 'QINGDAO,CHINA',
portloadid: $details.portloadid || 'CNTAO', portloadid: $details.portloadid || 'CNTAO',
portdischarge: $details.portdischarge, portdischarge: $details.portdischarge,
portdischargeid: $details.portdischargeid, portdischargeid: $details.portdischargeid,
@ -2045,7 +2053,7 @@ export default {
dtel: $details.dtel || '', dtel: $details.dtel || '',
kindpkgs: $details.kindpkgs, kindpkgs: $details.kindpkgs,
remarks: '', remarks: '',
placedelivery: $details.placereceipt || 'CNTAO', placedelivery: $details.placereceipt || 'QINGDAO,CHINA',
placedeliveryid: $details.placereceiptid || 'CNTAO', placedeliveryid: $details.placereceiptid || 'CNTAO',
sendremark: '', sendremark: '',
yardid: $details.yardid, yardid: $details.yardid,
@ -2329,7 +2337,7 @@ export default {
this.orderDetails[type.replace('Name', '')] = res.code || '' // this.orderDetails[type.replace('Name', '')] = res.code || '' //
} else if (['portloadid', 'portdischargeid', 'placedeliveryid'].includes(type)) { } else if (['portloadid', 'portdischargeid', 'placedeliveryid'].includes(type)) {
this.orderDetails[type] = res['ediCode'] || '' this.orderDetails[type] = res['ediCode'] || ''
this.orderDetails[type.replace('id', '')] = res['code'] || '' this.orderDetails[type.replace('id', '')] = res['enName'] || ''
} }
console.log('== 模糊搜索后的预定舱 ==', this.orderDetails) console.log('== 模糊搜索后的预定舱 ==', this.orderDetails)
}, },

Loading…
Cancel
Save