From 330319d682d4e7506b289e36b35ee9c555b07966 Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期五, 27 三月 2026 15:52:32 +0800
Subject: [PATCH] 增加生产入库分页

---
 src/views/ProductInBill/Kf_ProductInBillList.vue |   45 +++++++++++++++++++++++++++------------------
 1 files changed, 27 insertions(+), 18 deletions(-)

diff --git a/src/views/ProductInBill/Kf_ProductInBillList.vue b/src/views/ProductInBill/Kf_ProductInBillList.vue
index b381db5..0a7958b 100644
--- a/src/views/ProductInBill/Kf_ProductInBillList.vue
+++ b/src/views/ProductInBill/Kf_ProductInBillList.vue
@@ -173,10 +173,11 @@
           </el-table-column>
         </template>
       </el-table>
-      <!-- 璁板綍鏁般�侀〉鏁般�佸綋鍓嶉〉 -->
-      <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" @pagination="handleQuery" />
-      <!-- 鍒楄缃� -->
+      <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" :pageSizes="pageSizes" @pagination="getList" />
       <el-dialog title="闅愯棌鍒楄缃�" :visible.sync="openRowHide" width="816px" append-to-body>
+        <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose"
+          v-if="rowHideShow" />
+      </el-dialog>
         <RowSettings :colName="btResList" HModName="Kf_ProductInBillList" @rowEditClose="rowSetClose"
           v-if="rowHideShow" />
       </el-dialog>
@@ -286,9 +287,17 @@
         ColContent: '',
       },
       
-      page: 1,                                                      //page椤电储寮�
-      pageSize: 0,                                                  //page椤甸潰璁板綍鏁�
-      total: 0,                                                     //璁板綍鍚堣鏁�
+      loading: true,
+      tyResList: [],//鍒楄〃锛堟帴鍙f暟鎹級
+      btList: [],//琛ㄥご鍒楄〃鏄剧ず
+      btResList: [],
+      tableData: [],//鍒楄〃(鍒嗛〉鏄剧ず)
+      dataList: [],
+      titleData: [],//涓嶉渶瑕佹樉绀虹殑瀛楁 鍙墿灞�
+      pageSizes: [ 50,100, 500, 5000, 50000],
+      page: 1,
+      pageSize: 0,
+      total: 0,                                                    //璁板綍鍚堣鏁�
       tableShow: true,                                              // table鏄剧ず鏍囪
       totalNameList: [],                                            // 闇�瑕佽缃悎璁¤鐨勫垪鏁扮粍
       tableData: [],                                                // 鍒楄〃鏁版嵁銆傜敤浜巘able鐩戝惉浜嬩欢
@@ -498,7 +507,6 @@
 
     //#region 鏌ヨ
     getList() {
-      this.pageSize = 50
       if (this.pageSize == 0) {
         this.pageSize = 50
       }
@@ -506,18 +514,19 @@
       this.loading = true
       
       // 鍒楄〃鏌ヨ
-      axios.get(this.$baseUrl + '/Kf_ProductInBillController/GetKf_ProductInBillList_Json', {
+      axios.get(this.$baseUrl + '/Kf_ProductInBillController/page', {
         params: {
           "sWhere": this.sWhere,
-          "HMaker": sessionStorage["HUserName"],
-          "OperationType": 1,
-          "ViewName": "h_v_Kf_ProductInBillList"
+          "user": sessionStorage["HUserName"],
+          "page": this.page,
+          "size": this.pageSize,
+          "Type":'3802',
         },
       }).then(response => {
         this.tyResList = response.data.data//鎬绘暟鎹�
         let data1 = response.data
         let option = []
-        if (data1.count == 1) {
+        if (data1.list && data1.list.length > 0) {
           this.btResList = data1.list             //鍒楄〃琛ㄥご鏁版嵁
           this.total = data1.count;
           var data = [];//鍒楀瓧娈垫暟鎹�
@@ -811,11 +820,11 @@
               this.totalNameList.push(item)
             }
           })
-          if (data1.data[0].HPageSize == 0) {
-            this.pageSize = 50
-          } else {
-            this.pageSize = data1.data[0].HPageSize
-          }
+          // if (data1.data[0].HPageSize == 0) {
+          //   this.pageSize = 50
+          // } else {
+          //   this.pageSize = data1.data[0].HPageSize
+          // }
           this.tableData = option.data
           this.tableShow = true
           this.loading = false
@@ -921,7 +930,7 @@
       var result = false;
       axios.get(this.$baseUrl + '/Xt_getInfo/getCompanyName').then(response => {
         var data1 = response.data
-        if (data1.count == 1) {
+        if (data1.list && data1.list.length > 0) {
           if (data1.data == "姘村姟") {
             result = true;
           }

--
Gitblit v1.9.1