|
|
@ -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(() => {
|
|
|
@ -1078,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)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -1089,7 +1099,10 @@ export default {
|
|
|
|
res.data.bookingEDIExt = bookingEDIExt
|
|
|
|
res.data.bookingEDIExt = bookingEDIExt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (res.data.cargoid == 'R') {
|
|
|
|
if (res.data.cargoid == 'R') {
|
|
|
|
this.cargoRules['description'][0].required = true
|
|
|
|
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) => {
|
|
|
@ -1188,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
|
|
|
@ -1559,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 }
|
|
|
@ -1573,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 }
|
|
|
|