From 9b7020d0fe83aa848e92551c5252add6e05c2c5b Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 13 三月 2024 10:34:25 +0800
Subject: [PATCH] 状态就绪问题修改
---
src/views/supplierManage/supplier/index.vue | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/views/supplierManage/supplier/index.vue b/src/views/supplierManage/supplier/index.vue
index 3a98c79..5a2ed24 100644
--- a/src/views/supplierManage/supplier/index.vue
+++ b/src/views/supplierManage/supplier/index.vue
@@ -356,7 +356,7 @@
async enableClick(row, value) {
let status = value === "鍚敤" ? 1 : 0
await changeSupplierStatus({
- id: row.ID,
+ id:Number(row.id),
status: status
}).then((res) => {
if (res.code === 200) {
@@ -385,7 +385,6 @@
},
// 淇敼浜у搧
editClick(row) {
- console.log(row)
this.newProductConfig.visible = true
this.newProductConfig.title = "淇敼"
this.newProductConfig.infomation = { ...row }
@@ -418,7 +417,6 @@
this.selValueList = list
},
tableRowClick(row) {
- console.log(row)
this.productPagerOptions.currPage = 1
this.selectRow = row
this.supplierId = row.id
@@ -426,7 +424,7 @@
},
// 璇︽儏
async selCommonClick(row) {
- await getPurchaseList({ pageSize: 10, page: 1, supplierId: row.ID }).then((res) => {
+ await getPurchaseList({ pageSize: 10, page: 1, supplierId: Number(row.id) }).then((res) => {
this.commonDetail.productListInfo = res.data.list
})
this.commonDetail.visible = true
@@ -448,6 +446,7 @@
this.editPurchaseConfig.title = "鏂板缓"
this.editPurchaseConfig.infomation = {
supplierId: this.selectRow.id,
+ purchaseTypeId:"2",
supplierName: this.selectRow.name
}
}
--
Gitblit v1.8.0