From c378e9a104233c53a92f49b6603f5142a3689b4f Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期五, 22 十二月 2023 15:05:55 +0800 Subject: [PATCH] 销售明细跳转页面的时候对应下面的产品信息等模块列表的数据对应错误的问题修改 --- src/views/sales/salesDetails/AddSalesDetailsDialog.vue | 36 ++++++++++++++++++++---------------- 1 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue index 83c70a2..c729843 100644 --- a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue +++ b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue @@ -405,6 +405,8 @@ <!-- :detail-enter="true" --> <CommonFormTableView ref="commonFormTableView" + :detail-enter="isView?true:false" + :selectBox="false" :show-summary="showSummary" pageName="quotation" :isOperate="((autoCodeHeadersObj.bjd=='yes'&&editConfig.infomation.quotation_number)||autoCodeHeadersObj.bjd!='yes')?true:false" @@ -597,7 +599,6 @@ quotationId: this.editCommonConfig.infomation.quotationId, tableData: [], isView: this.editCommonConfig.title === "鏌ョ湅", - selectBox: this.editCommonConfig.title !== "鏌ョ湅", thatMember: {} } }, @@ -772,21 +773,21 @@ console.log(res) this.quotationList = res.data.list if (value === "鍏ㄩ儴浜у搧") { - this.quotationList.map((item) => { - if (item.id === this.editConfig.infomation.quotationId) { - this.tableData = item.products - this.tableData.map((item, index) => { - item.productId = index + 1 - this.tableData.forEach((key) => { - if (item.number === key.number) { - item.amount = key.amount - item.id = key.id - } - }) - }) - this.productTableList.tableData = this.tableData - } - }) + // this.quotationList.map((item) => { + // if (item.id === this.editConfig.infomation.quotationId) { + + // this.tableData.map((item, index) => { + // item.productId = index + 1 + // this.tableData.forEach((key) => { + // if (item.number === key.number) { + // item.amount = key.amount + // item.id = key.id + // } + // }) + // }) + + // } + // }) } } }) @@ -956,6 +957,9 @@ ] } else { this.tableData = this.editConfig.infomation.products + this.tableData.map((item, index) => { + item.productId = index + 1 + }) this.getQuotation(this.editConfig.infomation.saleChanceId, "鍏ㄩ儴浜у搧") } // let productData = this.quotationList.products -- Gitblit v1.8.0