From eb5c123294366bdf405d15b07af1509e1dbf532d Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期二, 07 十一月 2023 19:15:50 +0800 Subject: [PATCH] 增加用户名显示问题 --- src/views/sales/salesReturn/AddSalesReturnDialog.vue | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/views/sales/salesReturn/AddSalesReturnDialog.vue b/src/views/sales/salesReturn/AddSalesReturnDialog.vue index 449a169..55b08b1 100644 --- a/src/views/sales/salesReturn/AddSalesReturnDialog.vue +++ b/src/views/sales/salesReturn/AddSalesReturnDialog.vue @@ -461,8 +461,14 @@ this.tableData = item.products this.tableData.map((item, index) => { item.productId = index + 1 + this.selProductData.forEach((key) => { + if (item.number === key.number) { + item.amount = key.amount + item.id = key.id + } + }) }) - this.productTableList.tableData = item.products + this.productTableList.tableData = this.tableData this.selProductData.forEach((key) => { this.tableData.forEach((row) => { if (key.number === row.number) { @@ -538,6 +544,7 @@ this.editConfig.infomation.salesDetailNumber = "" this.editConfig.infomation.client_name = "" this.clientId = 0 + this.productTableList.tableData = [] } else if (value === "contract") { this.editConfig.infomation.salesDetailNumber = "" this.productTableList.tableData = [] -- Gitblit v1.8.0