From 5de621e943d9605d10e2ac5d46658c0626a68caa Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期四, 07 三月 2024 10:11:05 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/SRM

---
 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