From dabc570f5623cd45b58b2b65569ec4145709446e Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期二, 19 十二月 2023 17:13:34 +0800 Subject: [PATCH] 销售明细单点击销售明细单下面产品信息不更新的问题修改 --- src/views/sales/salesDetails/index.vue | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/sales/salesDetails/index.vue b/src/views/sales/salesDetails/index.vue index 1604200..182a229 100644 --- a/src/views/sales/salesDetails/index.vue +++ b/src/views/sales/salesDetails/index.vue @@ -424,13 +424,12 @@ }, // 鑾峰彇浜у搧/搴撳瓨淇℃伅 async getProductInventoryInfo(row) { - console.log(row.status, "鐘舵��", row) if (row.status === 1) { - this.productTableList.tableInfomation = row.products + this.productTableList.tableInfomation = row.products || [] } else { await getProductInventoryInfo(row.number).then((res) => { console.log(res) - this.productTableList.tableInfomation = res.data + this.productTableList.tableInfomation = res.data?.length > 0 ? res.data : [] }) } }, @@ -438,7 +437,7 @@ async getProductOrderInfo(number) { await getProductOrderInfo(number).then((res) => { console.log(res) - this.productTableList.tableInfomation = res.data + this.productTableList.tableInfomation = res.data?.length > 0 ? res.data : [] }) }, // 鎼滅储 -- Gitblit v1.8.0