From 8380b537474be9b9aa24efcd65c730e2907b9b8b Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期六, 26 八月 2023 18:07:48 +0800
Subject: [PATCH] 服务商相关接口联调

---
 src/views/productManage/product/index.vue |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/views/productManage/product/index.vue b/src/views/productManage/product/index.vue
index d797006..a904fb1 100644
--- a/src/views/productManage/product/index.vue
+++ b/src/views/productManage/product/index.vue
@@ -9,19 +9,19 @@
           @resetClick="resetClick"
         />
         <div class="add-view">
-          <el-button type="primary" size="mini" @click="addBtnClick">鏂板缓</el-button>
+          <!-- <el-button type="primary" size="mini" @click="addBtnClick">鏂板缓</el-button> -->
         </div>
       </div>
       <template>
         <TableCommonView ref="tableListRef" :table-list="tableList" @selCommonClick="selCommonClick">
-          <template slot="tableButton">
+          <!-- <template slot="tableButton">
             <el-table-column label="鎿嶄綔" width="120">
               <template slot-scope="scope">
                 <el-button @click="handleClick(scope.row)" type="text" size="small">缂栬緫</el-button>
                 <el-button @click="delClick(scope.row.id)" type="text" size="small">鍒犻櫎</el-button>
               </template>
             </el-table-column>
-          </template>
+          </template> -->
         </TableCommonView>
         <div class="btn-pager">
           <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
@@ -75,14 +75,14 @@
         tableColumn: [
           { label: "浜у搧缂栫爜", prop: "number", min: 190, isCommonClick: true },
           { label: "浜у搧鍚嶇О", prop: "name", min: 130 },
-          { label: "渚涘簲鍟�", prop: "id", min: 130 },
+          { label: "渚涘簲鍟�", prop: "supplierNumber", min: 130 },
           { label: "浜у搧绫诲埆", prop: "productType", min: 130 },
-          { label: "瑙勬牸", prop: "sales_resources", min: 130 },
-          { label: "鍨嬪彿", prop: "province", min: 130 },
+          { label: "瑙勬牸", prop: "specifications", min: 130 },
+          { label: "鍨嬪彿", prop: "modelNumber", min: 130 },
           { label: "鍗曚綅", prop: "unit", min: 60 },
-          { label: "浠锋牸", prop: "contact_phone1", min: 130 },
-          { label: "鏈�浣庡簱瀛�", prop: "desc", min: 80 },
-          { label: "鏈�楂樺簱瀛�", prop: "member_name", min: 80 }
+          { label: "浠锋牸", prop: "purchasePrice", min: 130 },
+          { label: "鏈�浣庡簱瀛�", prop: "minimumStock", min: 80 },
+          { label: "鏈�楂樺簱瀛�", prop: "maximumStock", min: 80 }
         ]
       }
       this.searchOptions = []
@@ -95,15 +95,15 @@
     // 璇锋眰鏁版嵁
     async getData(val, content) {
       await getProductList({
-        val,
-        content,
+        [val]: content,
         page: this.pagerOptions.currPage,
         pageSize: this.pagerOptions.pageSize
       }).then((res) => {
         if (res.data.code === 200) {
           const list = res.data.data.list.map((item) => {
             return {
-              ...item
+              ...item,
+              supplierNumber: item.supplier.number
             }
           })
           this.tableList.tableInfomation = list || []
@@ -114,7 +114,7 @@
     // 鎼滅储
     searchClick(val, content) {
       console.log(val, content)
-      this.getData(val, content)
+      this.getData(val.value, content)
     },
     resetClick() {
       this.getData()

--
Gitblit v1.8.0