diff --git a/src/api/modular/main/BookingLedger.js b/src/api/modular/main/BookingLedger.js index e0069ba..bca9f41 100644 --- a/src/api/modular/main/BookingLedger.js +++ b/src/api/modular/main/BookingLedger.js @@ -378,6 +378,17 @@ export function SendLetterYard(parameter) { }) } +/** + * 删除放舱 + */ +export function DeleteLetterYard(parameter) { + return axios({ + url: '/BookingLetteryard/LetterYardDelete', + method: 'post', + data: parameter + }) +} + /** * 样单 */ @@ -493,9 +504,9 @@ export function DjyCustomerdetail(parameter) { * 批量保存关系人(同时新增、删除、修改) * @params Name */ -export function BookingOrderContactSavebatch(parameter) { +export function BookingOrderContactSavebatch(id, parameter) { return axios({ - url: '/BookingOrderContact/savebatch', + url: `/BookingOrderContact/savebatch?bookingId=${id}`, method: 'post', data: parameter }) diff --git a/src/views/main/BookingLedger/detail/components/ediMore.vue b/src/views/main/BookingLedger/detail/components/ediMore.vue index b5c9469..06db5af 100644 --- a/src/views/main/BookingLedger/detail/components/ediMore.vue +++ b/src/views/main/BookingLedger/detail/components/ediMore.vue @@ -268,7 +268,6 @@ export default { watch: { details: { handler(nval, oval) { - // console.log('数据改变', nval) this.$emit('changeDetail', { detail: nval, type: 'ediMore' diff --git a/src/views/main/BookingLedger/detail/components/sedOrder.vue b/src/views/main/BookingLedger/detail/components/sedOrder.vue index 40c9f1a..500a5cc 100644 --- a/src/views/main/BookingLedger/detail/components/sedOrder.vue +++ b/src/views/main/BookingLedger/detail/components/sedOrder.vue @@ -111,7 +111,6 @@ export default { sedOrderList: { handler (nval, oval) { if (nval.length > 0) { - console.log(nval) if (!nval[this.editIndex].bookingEDIExt) { nval[this.editIndex].bookingEDIExt = { weiTuoFang: '', @@ -141,6 +140,7 @@ export default { }, created() { if (this.sedOrderList.length > 0) { + console.log('=== 分单加载 created ===') const data = JSON.parse(JSON.stringify(this.sedOrderList[0])) if (!data.bookingEDIExt) { data.bookingEDIExt = { @@ -153,6 +153,11 @@ export default { this.editDetails = data } }, + mounted() { + // setTimeout(() => { + // this.$message.destroy() + // }, 1500) + }, methods: { addSedOrder () { if (this.isAdd) { @@ -206,7 +211,6 @@ export default { }, bookingOrderUpdate () { - console.log('保存', this.editDetails) if (!this.editDetails.hblno) { this.$message.error('请输入分提单号') return false @@ -231,7 +235,6 @@ export default { }, bookingOrderAdd () { - console.log('新增', this.editDetails) if (!this.editDetails.hblno) { this.$message.error('请输入分提单号') return false diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index fe81f33..f877c83 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -2,7 +2,7 @@
- + 0) { + this.Showtabs = true + } if (!res.data.bookingEDIExt) { res.data.bookingEDIExt = { weiTuoFang: '', @@ -526,7 +428,15 @@ export default { this.isCopy = false this.isAdd = false this.$message.success('保存成功') - this.init() + if (this.$route.query.mblno === this.bookingDetails.mblno) { + this.init() + } else { + this.$router.replace({ + name: 'BookingDetail', + query: { id: this.id, type: this.bookingDetails.carrierid, noOpenTab: true, mblno: this.bookingDetails.mblno } + }) + } + // this.init() this.$forceUpdate() } else { this.$message.error(res.message) @@ -552,7 +462,7 @@ export default { this.$message.success('保存成功') this.$router.replace({ name: 'BookingDetail', - query: { id: res.data, type: this.bookingDetails.carrierid, noOpenTab: true } + query: { id: res.data, type: this.bookingDetails.carrierid, noOpenTab: true, mblno: this.bookingDetails.mblno } }) this.$forceUpdate() } else { @@ -650,6 +560,7 @@ export default { this.$message.error('请先保存主单') return false } + // this.$message.loading('加载中...') const data = JSON.parse(JSON.stringify(this.bookingDetails)) data.isNoSave = true data.hblno = '' @@ -658,6 +569,7 @@ export default { data.notifyparty = '' this.bookingDetails.hbList = [data] this.tabActiveKey = '2' + this.Showtabs = true }, changeHBFun (data) { const arr = data.map((item, index) => { @@ -668,7 +580,6 @@ export default { } else { this.checkSaveFun({ type: 'hbList', hasChange: false }) } - }, checkSaveFun (data) { const lastPages = this.needSavePages @@ -682,7 +593,6 @@ export default { const key = this.$route.fullPath this.$set(lastPages, key, $data) this.setNeedSavePages(lastPages) - console.log(' ==== > 父组件监听到总数据改变: ', key, $data, lastPages, this.needSavePages) } } } diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue index 8f5b589..7a48c23 100644 --- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue @@ -31,7 +31,6 @@ :allowClear="true" :data-source="carrierDataArr" v-model="details.carrier" - @select="carrierSelect" @change="carrierChange" /> --> @@ -100,16 +99,16 @@ -