From 61d64b5b9fb6174e48950aec8504f3202b367e14 Mon Sep 17 00:00:00 2001 From: lilu Date: Tue, 27 Dec 2022 10:55:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AE=B1=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/BookingLedger/detail/components/sedOrder.vue | 10 +++++++++- src/views/main/BookingLedger/detail/index.vue | 5 +++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/views/main/BookingLedger/detail/components/sedOrder.vue b/src/views/main/BookingLedger/detail/components/sedOrder.vue index be4bfa3..08b3a5b 100644 --- a/src/views/main/BookingLedger/detail/components/sedOrder.vue +++ b/src/views/main/BookingLedger/detail/components/sedOrder.vue @@ -192,6 +192,15 @@ export default { ediAttnMail: '' } } + if (data.ctnInputs.length > 0) { + data.ctnInputs.map((item, index) => { + delete item.id + }) + } + if (data.hbList.length > 0) { + delete data.hbList + } + debugger this.editDetails = data this.editIndex = this.sedOrderList.length this.sedOrderList.push(data) @@ -231,7 +240,6 @@ export default { // this.init() }, saveFun () { - debugger if (this.editDetails.id !== 0 && Number(this.editDetails.id) !== Number(this.$route.query.id)) { this.bookingOrderUpdate() } else { diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 196516d..d0ed90d 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -736,6 +736,11 @@ export default { data.shipper = '' data.consignee = '' data.notifyparty = '' + if (data.ctnInputs.length > 0) { + data.ctnInputs.map((item, index) => { + delete item.id + }) + } this.bookingDetails.hbList = [data] this.tabActiveKey = '2' this.Showtabs = true