|
|
|
@ -310,13 +310,17 @@ const initDetail = {
|
|
|
|
|
exRemark4: '',
|
|
|
|
|
// == 以下为太平 ==
|
|
|
|
|
consigneeEdiCode: '',
|
|
|
|
|
shipperEdiCode: 'CN218868',
|
|
|
|
|
shipperEdiCode: '',
|
|
|
|
|
notifyCdoe: '',
|
|
|
|
|
salerCode: 'CN087',
|
|
|
|
|
salerCodeName: 'GRACE SUN',
|
|
|
|
|
// salerCode: 'CN087',
|
|
|
|
|
// salerCodeName: 'GRACE SUN',
|
|
|
|
|
salerCode: '',
|
|
|
|
|
salerCodeName: '',
|
|
|
|
|
emanifestHbl: '',
|
|
|
|
|
masterBolIndicator: '3',
|
|
|
|
|
masterBolIndicatorName: 'Not Applicable/Straight bl | 无HBL',
|
|
|
|
|
// masterBolIndicator: '3',
|
|
|
|
|
// masterBolIndicatorName: 'Not Applicable/Straight bl | 无HBL',
|
|
|
|
|
masterBolIndicator: '',
|
|
|
|
|
masterBolIndicatorName: '',
|
|
|
|
|
s0CC0C: '',
|
|
|
|
|
ckhi: '',
|
|
|
|
|
cncm: '',
|
|
|
|
@ -353,13 +357,17 @@ const bookingEDIExt = {
|
|
|
|
|
exRemark4: '',
|
|
|
|
|
// == 以下为太平 ==
|
|
|
|
|
consigneeEdiCode: '',
|
|
|
|
|
shipperEdiCode: 'CN218868',
|
|
|
|
|
shipperEdiCode: '',
|
|
|
|
|
notifyCdoe: '',
|
|
|
|
|
salerCode: 'CN087',
|
|
|
|
|
salerCodeName: 'GRACE SUN',
|
|
|
|
|
// salerCode: 'CN087',
|
|
|
|
|
// salerCodeName: 'GRACE SUN',
|
|
|
|
|
salerCode: '',
|
|
|
|
|
salerCodeName: '',
|
|
|
|
|
emanifestHbl: '',
|
|
|
|
|
masterBolIndicator: '3',
|
|
|
|
|
masterBolIndicatorName: 'Not Applicable/Straight bl | 无HBL',
|
|
|
|
|
// masterBolIndicator: '3',
|
|
|
|
|
// masterBolIndicatorName: 'Not Applicable/Straight bl | 无HBL',
|
|
|
|
|
masterBolIndicator: '',
|
|
|
|
|
masterBolIndicatorName: '',
|
|
|
|
|
s0CC0C: '',
|
|
|
|
|
ckhi: '',
|
|
|
|
|
cncm: '',
|
|
|
|
@ -740,7 +748,7 @@ export default {
|
|
|
|
|
this.detailsLoadOver = false
|
|
|
|
|
this.bookingDetails.carrierid = this.type
|
|
|
|
|
this.bookingDetails.carrier = this.type
|
|
|
|
|
// this.getDefaultVal()
|
|
|
|
|
this.getDefaultVal()
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
if (Object.keys(this.$refs).includes('sedOrder')) {
|
|
|
|
|
this.$refs.sedOrder.init([])
|
|
|
|
@ -760,7 +768,7 @@ export default {
|
|
|
|
|
}).then(res => {
|
|
|
|
|
const defaultData = JSON.parse(res.data.configJson)
|
|
|
|
|
this.defaultData = defaultData
|
|
|
|
|
console.log(defaultData)
|
|
|
|
|
console.log('==== 获取默认值设置 ====', defaultData)
|
|
|
|
|
defaultData.map((item, index) => {
|
|
|
|
|
const field = item.field.split('.')
|
|
|
|
|
let label = field[1].toLowerCase()
|
|
|
|
@ -946,7 +954,6 @@ export default {
|
|
|
|
|
delete item.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!res.data.bookingEDIExt) {
|
|
|
|
|
res.data.bookingEDIExt = bookingEDIExt
|
|
|
|
|
}
|
|
|
|
@ -969,7 +976,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
if (res.data.hbList.length > 0) {
|
|
|
|
|
res.data.hbList.map((item, index) => {
|
|
|
|
|
// item.bookingEDIExt.shipperEdiCode = item.bookingEDIExt.shipperEdiCode ? item.bookingEDIExt.shipperEdiCode : 'CN218868'
|
|
|
|
|
const newBookingEDIExt = { ...JSON.parse(JSON.stringify(bookingEDIExt)), ...item.bookingEDIExt }
|
|
|
|
|
item = { ...JSON.parse(JSON.stringify(initDetail)), ...item, ...{ bookingEDIExt: newBookingEDIExt } }
|
|
|
|
|
if (item.ctnInputs.length > 0) {
|
|
|
|
@ -985,11 +991,10 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
res.data.feeself = !!res.data.feeself
|
|
|
|
|
// res.data.bookingEDIExt.shipperEdiCode = res.data.bookingEDIExt.shipperEdiCode ? res.data.bookingEDIExt.shipperEdiCode : 'CN218868'
|
|
|
|
|
const $BookingEDIExt = { ...JSON.parse(JSON.stringify(bookingEDIExt)), ...res.data.bookingEDIExt }
|
|
|
|
|
this.$set(this, 'bookingDetails', { ...this.bookingDetails, ...res.data, ...{ bookingEDIExt: $BookingEDIExt } })
|
|
|
|
|
this.inPageLoading = false
|
|
|
|
|
// this.getDefaultVal()
|
|
|
|
|
this.getDefaultVal()
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
// console.log('== 5. 设置主单保存数据 - false ==')
|
|
|
|
|
this.checkSaveFun({ type: 'details', hasChange: false })
|
|
|
|
@ -1124,7 +1129,11 @@ export default {
|
|
|
|
|
let FnOk = () => {
|
|
|
|
|
const _data = JSON.parse(JSON.stringify(that.bookingDetails))
|
|
|
|
|
delete _data.hbList
|
|
|
|
|
if (this.isCopy) {
|
|
|
|
|
delete _data.bookingno
|
|
|
|
|
}
|
|
|
|
|
this.$message.loading({ content: '保存中...' })
|
|
|
|
|
|
|
|
|
|
BookingOrderSave(_data)
|
|
|
|
|
.then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|