From 7924087566a4cbfc942b1d636b590edf4874efb0 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 27 十二月 2023 17:38:08 +0800
Subject: [PATCH] 库存信息请求接口增加限制条件
---
src/views/sales/salesDetails/index.vue | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/views/sales/salesDetails/index.vue b/src/views/sales/salesDetails/index.vue
index 71efa8f..d6612f7 100644
--- a/src/views/sales/salesDetails/index.vue
+++ b/src/views/sales/salesDetails/index.vue
@@ -477,14 +477,16 @@
if (this.TabsIndex == 0||row.status==1) {
this.productTableList.tableInfomation = row.products || []
} else {
- this.loading = true
- await getProductInventoryInfo(row.number).then((res) => {
- this.productTableList.tableInfomation = res.data?.length > 0 ? res.data : []
- this.loading = false
- }).catch(() => {
- this.productTableList.tableInfomation = []
- this.loading = false
- })
+ if(row.number){
+ this.loading = true
+ await getProductInventoryInfo(row.number).then((res) => {
+ this.productTableList.tableInfomation = res.data?.length > 0 ? res.data : []
+ this.loading = false
+ }).catch(() => {
+ this.productTableList.tableInfomation = []
+ this.loading = false
+ })
+ }
}
},
// 鑾峰彇鍒堕�犱俊鎭�
--
Gitblit v1.8.0