diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 90e8012..c8d7d46 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -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 diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue index d6d0e12..35d2cb2 100644 --- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue @@ -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 || ''