From 4a2ae34a3cf85f5e8b0409b858cfbb12ef8b5ee2 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 02 八月 2023 11:18:51 +0800
Subject: [PATCH] 注掉暂不支持内容

---
 src/views/sales/subOrder/index.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/views/sales/subOrder/index.vue b/src/views/sales/subOrder/index.vue
index a4b24b9..886cb82 100644
--- a/src/views/sales/subOrder/index.vue
+++ b/src/views/sales/subOrder/index.vue
@@ -3,7 +3,7 @@
     <SearchCommonView ref="searchCommonView" :query-class-options="queryClassOptions" :search-options="searchOptions" />
     <div class="btn-pager">
       <PublicFunctionBtnView :operates-list="operatesList" />
-      <PagerView class="page" />
+      <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
     </div>
     <TableCommonView ref="tableListRef" :show-summary="showSummary" :table-list="tableList">
       <template slot="tableButton">
@@ -23,10 +23,12 @@
 <script>
 import AddSubOrderDialog from "@/views/sales/subOrder/AddSubOrderDialog"
 import { getSubOrderList, getDelSubOrder } from "@/api/sales/subOrder"
+import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
 
 export default {
   name: "SubOrder",
   props: {},
+  mixins: [pageMixin],
   components: {
     AddSubOrderDialog
   },
@@ -96,7 +98,11 @@
     // 璇锋眰鏁版嵁
     async getData() {
       this.loading = true
-      await getSubOrderList()
+      await getSubOrderList({
+        keyword: "",
+        page: this.pagerOptions.currPage,
+        pageSize: this.pagerOptions.pageSize
+      })
         .then((res) => {
           console.log(res)
           if (res.code === 200) {
@@ -108,6 +114,7 @@
                 }
               })
               this.tableList.tableInfomation = list || []
+              this.pagerOptions.totalCount = res.data.count
             } else {
               this.tableList.tableInfomation = []
             }
@@ -133,7 +140,7 @@
       console.log(row)
       this.editConfig.visible = true
       this.editConfig.title = "缂栬緫"
-      this.editConfig.infomation = { ...row }
+      this.editConfig.infomation = { ...row, masterOrderNumber: "" }
     },
     // 鍒犻櫎
     delClick(id) {
@@ -148,7 +155,7 @@
         .then((response) => {
           if (response.code === 200) {
             this.$message.success("鍒犻櫎鎴愬姛")
-            this.getUserList()
+            this.getData()
           } else {
             this.$message.warning("鍒犻櫎澶辫触")
           }

--
Gitblit v1.8.0