From 42adf7605b0d7f272e1f26b22e5b92c00b293d80 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期五, 22 三月 2024 15:35:52 +0800
Subject: [PATCH] 登录页面接口、订单管理列表页面接口先跟进aps项目接口联调及部分代码删减

---
 src/views/other/commonDialog/SelectCommonDialog.vue |   38 ++++++++++++++++++--------------------
 1 files changed, 18 insertions(+), 20 deletions(-)

diff --git a/src/views/other/commonDialog/SelectCommonDialog.vue b/src/views/other/commonDialog/SelectCommonDialog.vue
index 30137a5..27e8e4b 100644
--- a/src/views/other/commonDialog/SelectCommonDialog.vue
+++ b/src/views/other/commonDialog/SelectCommonDialog.vue
@@ -50,7 +50,7 @@
 </template>
 
 <script>
-// import { postGetMaterialList } from "@/api/ProductiveTask/productBom"
+import { getMaterialList } from "@/api/common/other"
 import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
 export default {
   name: "EditSelCommonDialog",
@@ -85,8 +85,7 @@
       bomParams: {
         keyword: "",
         page: 1,
-        pageSize: 10,
-        types: ["鍘熸潗鏂�", "鍗婃垚鍝�", "鎴愬搧"]
+        pageSize: 10
       }
     }
   },
@@ -125,7 +124,6 @@
         {
           label: "浜у搧缂栫爜",
           prop: "id",
-          min: 110,
           isShowColumn: true,
           default: true
         },
@@ -138,7 +136,6 @@
         {
           label: "浜у搧鍨嬪彿",
           prop: "type",
-          width: 90,
           isShowColumn: showcol.includes("浜у搧鍨嬪彿"),
           default: false
         }
@@ -166,21 +163,22 @@
     },
     // 浜у搧鍚嶇О
     async getProductList() {
-      this.bomParams.page = this.pagerOptions.currPage ? this.pagerOptions.currPage : 1
-      this.bomParams.pageSize = this.pagerOptions.pageSize ? this.pagerOptions.pageSize : 15
-      // let params = JSON.parse(JSON.stringify(this.bomParams))
-      // await postGetMaterialList(params).then((res) => {
-      //   console.log(res.data)
-      //   if (res.code === 200) {
-      //     if (res.data) {
-      //       this.tableList.tableInfomation = res.data || []
-      //       this.pagerOptions.totalCount = res.total ? res.total : 0
-      //     } else {
-      //       this.tableList.tableInfomation = []
-      //     }
-      //   }
-      //   this.loading = false
-      // })
+      // this.bomParams.page = this.pagerOptions.currPage ? this.pagerOptions.currPage : 1
+      // this.bomParams.pageSize = this.pagerOptions.pageSize ? this.pagerOptions.pageSize : 15
+      let params = JSON.parse(JSON.stringify(this.bomParams))
+      console.log(params)
+      await getMaterialList(params).then((res) => {
+        console.log(res.data)
+        if (res.code === 200) {
+          if (res.data) {
+            this.tableList.tableInfomation = res.data || []
+            this.pagerOptions.totalCount = res.total ? res.total : 0
+          } else {
+            this.tableList.tableInfomation = []
+          }
+        }
+        this.loading = false
+      })
     },
     handleClose() {
       this.editConfig.editVisible = false

--
Gitblit v1.8.0