From d95e89c6611d3a6361f2d7681c68cd823bdb18e3 Mon Sep 17 00:00:00 2001 From: lilu Date: Thu, 6 Apr 2023 19:23:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E5=88=B6=E5=8D=95=E5=8F=B7=EF=BC=8C?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E7=AE=B1=E4=BF=A1=E6=81=AFid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/BookingLedger/detail/index.vue | 3 +++ src/views/main/BookingLedger/detail/modules/sedOrder.vue | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 54976e3..071a20c 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -1131,6 +1131,9 @@ export default { delete _data.hbList if (this.isCopy) { delete _data.bookingno + _data.ctnInputs.map((item, index) => { + delete item.id + }) } this.$message.loading({ content: '保存中...' }) diff --git a/src/views/main/BookingLedger/detail/modules/sedOrder.vue b/src/views/main/BookingLedger/detail/modules/sedOrder.vue index 0235f20..c0b9018 100644 --- a/src/views/main/BookingLedger/detail/modules/sedOrder.vue +++ b/src/views/main/BookingLedger/detail/modules/sedOrder.vue @@ -696,6 +696,12 @@ export default { // 自定义必填项验证 - end const data = JSON.parse(JSON.stringify(this.editDetails)) delete data.isNoSave + if (this.$route.query.isCopy) { + delete data.bookingno + data.ctnInputs.map((item, index) => { + delete item.id + }) + } data.parentId = this.$route.query.id if (this.editDetails.id !== 0 && Number(this.editDetails.id) !== Number(this.$route.query.id)) { // this.bookingOrderUpdate()