From fd91b31e431e189026304d1d8309b4f8d6c1fac8 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 27 三月 2024 15:41:57 +0800 Subject: [PATCH] 入库信息只有在待入库、已入库、待质检状态去请求数据 --- src/views/purchaseManage/purchase/index.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue index 9b7ca55..ebe7136 100644 --- a/src/views/purchaseManage/purchase/index.vue +++ b/src/views/purchaseManage/purchase/index.vue @@ -629,7 +629,11 @@ this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�") } }) - } else if (this.TabsIndex == 2) { + } else if ( + (this.TabsIndex == 2 && row.status == 8) || + (this.TabsIndex == 2 && row.status == 2) || + (this.TabsIndex == 2 && row.status == 3) + ) { getOperationInfo({ id: row.id }).then((res) => { if (res.code == 200) { this.productTableList.tableInfomation = res.data @@ -737,7 +741,11 @@ this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�") } }) - } else if (this.TabsIndex == 2) { + } else if ( + (this.TabsIndex == 2 && row.status == 8) || + (this.TabsIndex == 2 && row.status == 2) || + (this.TabsIndex == 2 && row.status == 3) + ) { getOperationInfo({ id: row.id }).then((res) => { if (res.code == 200) { this.productTableList.tableInfomation = res.data -- Gitblit v1.8.0