From 7763948ad5ff19ee0a45b09cbb9f53ee86eb4975 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期五, 22 三月 2024 15:58:24 +0800 Subject: [PATCH] 新建入库、库存调拨、新建出库报错问题修改 --- src/views/overview/AddOverviewDialog.vue | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/overview/AddOverviewDialog.vue b/src/views/overview/AddOverviewDialog.vue index d65496a..e7dda7d 100644 --- a/src/views/overview/AddOverviewDialog.vue +++ b/src/views/overview/AddOverviewDialog.vue @@ -765,7 +765,7 @@ console.log(validArr, "xxx") Promise.all(validArr) .then((results) => { - console.log(results, "鎵ц鎴愬姛") + console.log(results, "鎵ц鎴愬姛", this.tableData) for (let i = 0; i < this.tableData.length; i++) { if (this.tableData[i].productName.length === 0) { this.isNoProduct = true @@ -979,6 +979,7 @@ return { ...item, productName: item.product.name, + productId: item.product.id, unit: item.product.unit } }) @@ -991,7 +992,7 @@ if (this.workType === 1) { tableColumnArr = [ { label: "浜у搧鍚嶇О", prop: "productName", productName: true, isRequird: true }, - { label: "浜у搧缂栫爜", prop: "id" }, + { label: "浜у搧缂栫爜", prop: "productId" }, { label: "璁¢噺鍗曚綅", prop: "unit" }, { label: "浜у搧瑙勬牸", prop: "specs" }, { label: "浜у搧鍨嬪彿", prop: "model" }, @@ -1000,7 +1001,7 @@ } else if (this.workType === 2) { tableColumnArr = [ { label: "浜у搧鍚嶇О", prop: "productName", productName: true, isRequird: true }, - { label: "浜у搧缂栫爜", prop: "id" }, + { label: "浜у搧缂栫爜", prop: "productId" }, { label: "璁¢噺鍗曚綅", prop: "unit" }, { label: "浜у搧瑙勬牸", prop: "specs" }, { label: "浜у搧鍨嬪彿", prop: "model" }, @@ -1010,7 +1011,7 @@ } else if (this.workType === 3) { tableColumnArr = [ { label: "浜у搧鍚嶇О", prop: "productName", productName: true, isRequird: true }, - { label: "浜у搧缂栫爜", prop: "id" }, + { label: "浜у搧缂栫爜", prop: "productId" }, { label: "璁¢噺鍗曚綅", prop: "unit" }, { label: "浜у搧瑙勬牸", prop: "specs" }, { label: "浜у搧鍨嬪彿", prop: "model" }, @@ -1098,9 +1099,11 @@ let list = this.tableData.map((res) => { return { ...res, - productName: res.name + productName: res.name, + productId: res.id } }) + this.tableData = list this.productTableList.tableData = list // this.showSummary.show = true }, -- Gitblit v1.8.0