From a1eb3642627b7534da64891c49a4139b1fda957d Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期六, 30 三月 2024 13:38:25 +0800 Subject: [PATCH] 采购管理替换接口 --- src/views/purchaseManage/purchase/index.vue | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue index d606fe8..58f45f3 100644 --- a/src/views/purchaseManage/purchase/index.vue +++ b/src/views/purchaseManage/purchase/index.vue @@ -607,9 +607,9 @@ tableRowClick(row) { this.selectRow = row if (this.TabsIndex == 0) { - getPurchaseInfo({ id: row.id }).then((res) => { + getOperationInfo({ id: row.id }).then((res) => { if (res.code == 200) { - this.productTableList.tableInfomation = res.data.productList + this.productTableList.tableInfomation = res.data.productInfos } else { this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�") } @@ -637,7 +637,7 @@ ) { getOperationInfo({ id: row.id }).then((res) => { if (res.code == 200) { - this.productTableList.tableInfomation = res.data + this.productTableList.tableInfomation = res.data.inWarehouseInfos } else { this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�") } @@ -751,7 +751,11 @@ ) { getOperationInfo({ id: row.id }).then((res) => { if (res.code == 200) { - this.productTableList.tableInfomation = res.data + if(this.TabsIndex == 0){ + this.productTableList.tableInfomation = res.data.productInfos + }else if(this.TabsIndex == 2){ + this.productTableList.tableInfomation = res.data.inWarehouseInfos + } } else { this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�") } -- Gitblit v1.8.0