|
|
@ -18,6 +18,7 @@
|
|
|
|
:scrollTop="scrollTop"
|
|
|
|
:scrollTop="scrollTop"
|
|
|
|
@refresh="refreshPage"
|
|
|
|
@refresh="refreshPage"
|
|
|
|
@save="saveFun"
|
|
|
|
@save="saveFun"
|
|
|
|
|
|
|
|
@ocrUpflie="ocrUpflie"
|
|
|
|
@rules="getRules"
|
|
|
|
@rules="getRules"
|
|
|
|
@changePage="changePageFun"
|
|
|
|
@changePage="changePageFun"
|
|
|
|
@copy="copyBookingFun"
|
|
|
|
@copy="copyBookingFun"
|
|
|
@ -111,6 +112,7 @@
|
|
|
|
:details="bookingDetails"
|
|
|
|
:details="bookingDetails"
|
|
|
|
:excuteRules="excuteRules"
|
|
|
|
:excuteRules="excuteRules"
|
|
|
|
:excuteRulesType="excuteRulesType"
|
|
|
|
:excuteRulesType="excuteRulesType"
|
|
|
|
|
|
|
|
@fileNewUpadte="fileNewUpadte"
|
|
|
|
@changeAtd="changeAtd"
|
|
|
|
@changeAtd="changeAtd"
|
|
|
|
@changeDetail="changeDetailFun"
|
|
|
|
@changeDetail="changeDetailFun"
|
|
|
|
@handleComplete="handleComplete"
|
|
|
|
@handleComplete="handleComplete"
|
|
|
@ -280,6 +282,7 @@ const initDetail = {
|
|
|
|
scaccode: '',
|
|
|
|
scaccode: '',
|
|
|
|
itncode: '',
|
|
|
|
itncode: '',
|
|
|
|
iscontainersoc: 0,
|
|
|
|
iscontainersoc: 0,
|
|
|
|
|
|
|
|
tempFiles: [],
|
|
|
|
bookingEDIExt: {
|
|
|
|
bookingEDIExt: {
|
|
|
|
weiTuoFang: '',
|
|
|
|
weiTuoFang: '',
|
|
|
|
ediAttn: '',
|
|
|
|
ediAttn: '',
|
|
|
@ -445,7 +448,8 @@ export default {
|
|
|
|
'packageList',
|
|
|
|
'packageList',
|
|
|
|
'issuetypeList',
|
|
|
|
'issuetypeList',
|
|
|
|
'blfrtList',
|
|
|
|
'blfrtList',
|
|
|
|
'inBookingDetailsSave'
|
|
|
|
'inBookingDetailsSave',
|
|
|
|
|
|
|
|
'topDown'
|
|
|
|
])
|
|
|
|
])
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -739,6 +743,10 @@ export default {
|
|
|
|
this.bookingDetails = { ...JSON.parse(JSON.stringify(initDetail)), ...copyData }
|
|
|
|
this.bookingDetails = { ...JSON.parse(JSON.stringify(initDetail)), ...copyData }
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.bookingDetails = $data.bookingDetails
|
|
|
|
this.bookingDetails = $data.bookingDetails
|
|
|
|
|
|
|
|
console.log(this.topDown)
|
|
|
|
|
|
|
|
if (this.topDown) {
|
|
|
|
|
|
|
|
this.getDetail()
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getRightAll()
|
|
|
|
this.getRightAll()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
@ -836,6 +844,7 @@ export default {
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
const defaultData = JSON.parse(res.data.configJson)
|
|
|
|
const defaultData = JSON.parse(res.data.configJson)
|
|
|
|
this.defaultData = defaultData
|
|
|
|
this.defaultData = defaultData
|
|
|
|
|
|
|
|
console.log(defaultData)
|
|
|
|
const Fn = item => {
|
|
|
|
const Fn = item => {
|
|
|
|
const field = item.field.split('.')
|
|
|
|
const field = item.field.split('.')
|
|
|
|
let label = field[1].toLowerCase()
|
|
|
|
let label = field[1].toLowerCase()
|
|
|
@ -917,10 +926,11 @@ export default {
|
|
|
|
if (item.Carrier) {
|
|
|
|
if (item.Carrier) {
|
|
|
|
if (this.bookingDetails.carrierid == item.Carrier) {
|
|
|
|
if (this.bookingDetails.carrierid == item.Carrier) {
|
|
|
|
Fn(item)
|
|
|
|
Fn(item)
|
|
|
|
} else {
|
|
|
|
|
|
|
|
item.code = ''
|
|
|
|
|
|
|
|
Fn(item)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// else {
|
|
|
|
|
|
|
|
// item.code = ''
|
|
|
|
|
|
|
|
// Fn(item)
|
|
|
|
|
|
|
|
// }
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
Fn(item)
|
|
|
|
Fn(item)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1076,9 +1086,11 @@ export default {
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
this.$message.destroy()
|
|
|
|
this.$message.destroy()
|
|
|
|
this.setDeatilsFun(res, false)
|
|
|
|
this.setDeatilsFun(res, false)
|
|
|
|
|
|
|
|
this.$store.commit('SET_SAVETOPDOWN', false)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(err => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
|
|
|
|
this.$store.commit('SET_SAVETOPDOWN', false)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -1086,6 +1098,12 @@ export default {
|
|
|
|
if (!res.data.bookingEDIExt) {
|
|
|
|
if (!res.data.bookingEDIExt) {
|
|
|
|
res.data.bookingEDIExt = bookingEDIExt
|
|
|
|
res.data.bookingEDIExt = bookingEDIExt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (res.data.cargoid == 'R') {
|
|
|
|
|
|
|
|
this.cargoRules['goodsname'][0].required = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (res.data.cargoid != 'R') {
|
|
|
|
|
|
|
|
this.cargoRules['goodsname'][0].required = false
|
|
|
|
|
|
|
|
}
|
|
|
|
if (res.data.ctnInputs.length > 0) {
|
|
|
|
if (res.data.ctnInputs.length > 0) {
|
|
|
|
res.data.ctnInputs.map((item, index) => {
|
|
|
|
res.data.ctnInputs.map((item, index) => {
|
|
|
|
if (item.weightype === '累加') {
|
|
|
|
if (item.weightype === '累加') {
|
|
|
@ -1183,7 +1201,18 @@ export default {
|
|
|
|
}, 1200)
|
|
|
|
}, 1200)
|
|
|
|
this.$forceUpdate()
|
|
|
|
this.$forceUpdate()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
ocrUpflie(file) {
|
|
|
|
|
|
|
|
this.bookingDetails.tempFiles.push({
|
|
|
|
|
|
|
|
tempPathName: file
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
fileNewUpadte(file) {
|
|
|
|
|
|
|
|
this.bookingDetails.tempFiles.push({
|
|
|
|
|
|
|
|
tempPathName: file.tempPathName,
|
|
|
|
|
|
|
|
typeCode: file.TypeCode,
|
|
|
|
|
|
|
|
typeName: file.TypeName
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
getRightAll() {
|
|
|
|
getRightAll() {
|
|
|
|
GetAllData({
|
|
|
|
GetAllData({
|
|
|
|
bookingId: this.$route.query.id
|
|
|
|
bookingId: this.$route.query.id
|
|
|
@ -1554,6 +1583,7 @@ export default {
|
|
|
|
const $data = this.needSavePages
|
|
|
|
const $data = this.needSavePages
|
|
|
|
delete $data[this.$route.fullPath]
|
|
|
|
delete $data[this.$route.fullPath]
|
|
|
|
this.setNeedSavePages($data)
|
|
|
|
this.setNeedSavePages($data)
|
|
|
|
|
|
|
|
this.$store.commit('SET_SAVETOPDOWN', true)
|
|
|
|
this.$router.replace({
|
|
|
|
this.$router.replace({
|
|
|
|
name: 'BookingDetail',
|
|
|
|
name: 'BookingDetail',
|
|
|
|
query: { id: prevId, type: prevType, mblno: this.bookingList[prevId].mblno, noOpenTab: true }
|
|
|
|
query: { id: prevId, type: prevType, mblno: this.bookingList[prevId].mblno, noOpenTab: true }
|
|
|
@ -1568,6 +1598,7 @@ export default {
|
|
|
|
const $data = this.needSavePages
|
|
|
|
const $data = this.needSavePages
|
|
|
|
delete $data[this.$route.fullPath]
|
|
|
|
delete $data[this.$route.fullPath]
|
|
|
|
this.setNeedSavePages($data)
|
|
|
|
this.setNeedSavePages($data)
|
|
|
|
|
|
|
|
this.$store.commit('SET_SAVETOPDOWN', true)
|
|
|
|
this.$router.replace({
|
|
|
|
this.$router.replace({
|
|
|
|
name: 'BookingDetail',
|
|
|
|
name: 'BookingDetail',
|
|
|
|
query: { id: nextId, type: nextType, mblno: this.bookingList[nextId].mblno, noOpenTab: true }
|
|
|
|
query: { id: nextId, type: nextType, mblno: this.bookingList[nextId].mblno, noOpenTab: true }
|
|
|
|