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/supplierManage/supplier/RaleteSupplierList.vue |   34 ++++++++++++++++++++++++++++------
 1 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/src/views/supplierManage/supplier/RaleteSupplierList.vue b/src/views/supplierManage/supplier/RaleteSupplierList.vue
index c3755a2..a5ced7b 100644
--- a/src/views/supplierManage/supplier/RaleteSupplierList.vue
+++ b/src/views/supplierManage/supplier/RaleteSupplierList.vue
@@ -21,7 +21,7 @@
 </template>
 
 <script>
-// import SelectClientDialog from "@/views/other/commonDialog/SelectClientDialog"
+import { getProductList } from "@/api/productManage/product"
 import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
 export default {
   name: "AddSupplierDialog",
@@ -48,6 +48,7 @@
   },
   created() {
     this.setTable()
+    this.getProductList()
   },
   methods: {
     setTable() {
@@ -55,14 +56,35 @@
         tableInfomation: [],
         selectIndex: true,
         tableColumn: [
-          { label: "渚涘簲鍟嗙紪鍙�", prop: "number", min: 190, isCommonClick: true },
-          { label: "渚涘簲鍟嗗悕绉�", prop: "name", min: 130 },
-          { label: "閲囪喘浠锋牸", prop: "contact_name", min: 130 },
-          { label: "渚涜揣澶╂暟", prop: "contact_phone", min: 130 },
-          { label: "鐗╂祦鏃堕暱(澶�)", prop: "sales_resources", min: 130 }
+          { label: "渚涘簲鍟嗙紪鍙�", prop: "supplierNumber", min: 190, isCommonClick: true },
+          { label: "渚涘簲鍟嗗悕绉�", prop: "supplierName", min: 130 },
+          { label: "閲囪喘浠锋牸", prop: "purchasePrice", min: 130 },
+          { label: "渚涜揣澶╂暟", prop: "deliveryTime", min: 130 },
+          { label: "鐗╂祦鏃堕暱(澶�)", prop: "shippingDuration", min: 130 }
         ]
       }
     },
+    // 浜у搧鍒楄〃
+    async getProductList(val, content) {
+      console.log(val, content)
+      await getProductList({
+        number: this.editConfig.infomation.number,
+        supplierId: this.editConfig.infomation.supplierId,
+        page: this.pagerOptions.currPage,
+        pageSize: this.pagerOptions.pageSize
+      }).then((res) => {
+        console.log(res.data)
+        const list = res.data.data.list.map((item) => {
+          return {
+            ...item,
+            supplierNumber: item.supplier.number,
+            supplierName: item.supplier.name
+          }
+        })
+        this.tableList.tableInfomation = list || []
+        this.tableList.totalCount = res.data.data.total
+      })
+    },
     handleClose() {
       this.editConfig.visible = false
     },

--
Gitblit v1.8.0