diff --git a/src/api/modular/main/BookingTemplateManage.js b/src/api/modular/main/BookingTemplateManage.js index 325d75b..105c29c 100644 --- a/src/api/modular/main/BookingTemplateManage.js +++ b/src/api/modular/main/BookingTemplateManage.js @@ -85,3 +85,19 @@ export function GetTemplateShareList (parameter) { params: parameter }) } + +export function ShareToAll (parameter) { + return axios({ + url: '/BookingTemplate/ShareToAll', + method: 'post', + params: parameter + }) +} + +export function CancelShare (parameter) { + return axios({ + url: '/BookingTemplate/CancelShare', + method: 'post', + params: parameter + }) +} diff --git a/src/components/MultiTab/MultiTab.vue b/src/components/MultiTab/MultiTab.vue index 79e4ec8..a6b4842 100644 --- a/src/components/MultiTab/MultiTab.vue +++ b/src/components/MultiTab/MultiTab.vue @@ -48,7 +48,7 @@ export default { onEdit(targetKey, action) { const _that = this if (targetKey.includes('BookingDetail')) { - console.log(Object.keys(this.needSavePages).includes(targetKey), this.needSavePages[targetKey].details,this.needSavePages[targetKey].hbList) + console.log(Object.keys(this.needSavePages).includes(targetKey), this.needSavePages[targetKey].details, this.needSavePages[targetKey].hbList) if ( Object.keys(this.needSavePages).includes(targetKey) && (this.needSavePages[targetKey].details || this.needSavePages[targetKey].hbList) @@ -75,6 +75,9 @@ export default { console.log(this.needSavePages) } } else { + if (targetKey === '/bookingLedger') { + this.$store.commit('SET_FIRSTFLAG', true) + } this[action](targetKey) } }, diff --git a/src/store/getters.js b/src/store/getters.js index dc13572..55c0e1b 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -27,6 +27,7 @@ const getters = { blfrtList: state => state.booking.blfrtList, ctnallList: state => state.booking.ctnallList, copyPages: state => state.booking.copyPages, + saveNeedNumber: state => state.booking.saveNeedNumber, lineList: state => state.booking.lineList, bookingInitData: state => state.booking.bookingInitData, sourceList: state => state.booking.sourceList, diff --git a/src/store/modules/booking.js b/src/store/modules/booking.js index 6c43591..f0ae393 100644 --- a/src/store/modules/booking.js +++ b/src/store/modules/booking.js @@ -19,6 +19,7 @@ const booking = { dpTreeList: [], copyPages: { number: 0, path: '' }, yardList: [], + saveNeedNumber: '', saveFlag: false, packageList: [], issuetypeList: [], @@ -103,6 +104,9 @@ const booking = { }, SET_SAVEFLAG: (state, type) => { state.saveFlag = type + }, + SET_SAVENEEDNUMBER: (state, id) => { + state.saveNeedNumber = id } }, diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 8dcb8e1..03468ea 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -1318,6 +1318,7 @@ export default { }, 5000); this.$message.destroy() that.$message.success('保存成功') + if (that.isAdd || this.isCopy) { this.isCopy = false this.isAdd = false @@ -1387,6 +1388,7 @@ export default { }) } that.setInBookingDetailsSave(false) + that.$store.commit('SET_SAVENEEDNUMBER', res.data.mblno) that.$forceUpdate() } else { that.setInBookingDetailsSave(false) diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue index f1aa092..d6d0e12 100644 --- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue @@ -261,7 +261,7 @@ -