修改问题

master
sunzehua 1 year ago
parent aa7a821297
commit 4b4422e2a9

@ -386,6 +386,7 @@ export default {
excuteRulesType: '',
isAdd: false,
moreStr: '',
saveBtnFlag: false,
tabActiveKey: '1',
historyData: {},
Showtabs: false,
@ -1313,6 +1314,7 @@ export default {
}
}
})
this.saveBtnFlag = true
BookingOrderSave(_data)
.then(res => {
if (res.success) {
@ -1394,10 +1396,12 @@ export default {
})
}
that.setInBookingDetailsSave(false)
this.saveBtnFlag = false
that.$forceUpdate()
} else {
that.setInBookingDetailsSave(false)
this.setSET_SAVEFLAG(false)
this.saveBtnFlag = false
if (typeof res.message === 'string') {
that.$message.error(res.message)
} else {
@ -1406,6 +1410,7 @@ export default {
}
})
.catch(err => {
this.saveBtnFlag = false
console.log(err)
})
}
@ -1555,10 +1560,12 @@ export default {
this.reload()
},
copyBookingFun() {
this.$router.push({
if (!this.saveBtnFlag) {
this.$router.push({
name: 'BookingDetail',
query: { id: this.id, isCopy: true, type: this.bookingDetails.carrierid }
})
}
},
changeTab(e) {
const _this = this

@ -1192,7 +1192,15 @@ export default {
this.details.vessel = res.vessel || ''
this.details.atd = res.atd || ''
this.details.etd = res.etd || ''
this.details.voyno = res.voyno || ''
if (res.voyno.includes('1MA')) {
this.details.voyno = res.voyno.replace('1MA', '') || ''
} else {
if (res.voyno.includes('1NC')) {
this.details.voyno = res.voyno.replace('1NC', '') || ''
} else {
this.details.voyno = res.voyno || ''
}
}
this.details.voynoinner = res.voynoInside || ''
} else if (type === 'shipagency') {
this.details.shipagency = res.name || ''

Loading…
Cancel
Save