diff --git a/src/views/main/BookingLedger/detail/components/sedOrder.vue b/src/views/main/BookingLedger/detail/components/sedOrder.vue index 173305c..06b7381 100644 --- a/src/views/main/BookingLedger/detail/components/sedOrder.vue +++ b/src/views/main/BookingLedger/detail/components/sedOrder.vue @@ -203,6 +203,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) @@ -242,7 +251,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