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()