From 723793a0aa8d69cbbb463830a3344dbd6655cee5 Mon Sep 17 00:00:00 2001
From: chenhaozhe <gaozhechen26@gmail.com>
Date: 星期六, 04 四月 2026 14:57:02 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI

---
 src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue |   86 +++++++++++++++++++++++++++++++++++++++----
 1 files changed, 78 insertions(+), 8 deletions(-)

diff --git a/src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue b/src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue
index f881dd8..817c60b 100644
--- a/src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue
+++ b/src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue
@@ -177,7 +177,8 @@
         </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" @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="Gy_BarCodeBillList" @rowEditClose="rowSetClose"
@@ -272,6 +273,15 @@
         ColContent2: '',
       },
       
+
+      loading: true,
+      tyResList: [],//鍒楄〃锛堟帴鍙f暟鎹級
+      btList: [],//琛ㄥご鍒楄〃鏄剧ず
+      btResList: [],
+      tableData: [],//鍒楄〃(鍒嗛〉鏄剧ず)
+      dataList: [],
+      titleData: [],//涓嶉渶瑕佹樉绀虹殑瀛楁 鍙墿灞�
+      pageSizes: [ 50,100, 500, 5000, 50000],
       page: 1,                                                      //page椤电储寮�
       pageSize: 0,                                                  //page椤甸潰璁板綍鏁�
       total: 0,                                                     //璁板綍鍚堣鏁�
@@ -405,6 +415,10 @@
 
     //#region 蹇�熻繃婊�
     handleQuery() {
+      var params = this.get_UrlVars();
+      var HSourceInterID = params[params[1]];  
+      var HSourceEntryID = params[params[2]];
+      var HSEQ  = params[params[3]];
       this.sWhere = ''
       if (this.queryParams.ColName && this.queryParams.Comparator) {
         var com = "";
@@ -487,10 +501,18 @@
       if (this.queryParams.HMaterName) {
         this.sWhere += " and 鐗╂枡鍚嶇О like ''%" + this.queryParams.HMaterName + "%''";
       }
+      if(HSEQ!=''&&HSEQ!=null){
+         this.sWhere += " and 婧愬崟琛屽彿 = ''" + HSEQ + "''";
+      }
+      if(HSourceInterID!=''&&HSourceInterID!=null){
+         this.sWhere += " and HSourceInterID = ''" + HSourceInterID + "''";
+      }
+      if(HSourceEntryID!=''&&HSourceEntryID!=null){
+         this.sWhere += " and HSourceEntryID = ''" + HSourceEntryID + "''";
+      }
       if (this.queryParams.HOrgID) {
         this.sWhere += " and HStockOrgID = ''" + this.queryParams.HOrgID + "''";
       }
-
       //濡傛灉鏄嚜鍔ㄧ櫥褰曪紝鍒欏彧鑳芥煡鐪嬩緵搴斿晢鑷繁鐨勬潯鐮併��
       if (sessionStorage["HAutoLogin"] == "1") {
         this.sWhere += " and HSupID = ''" + sessionStorage["HUserName"] + "''";
@@ -502,7 +524,6 @@
 
     //#region 鏌ヨ
     getList() {
-      this.pageSize = 50
       if (this.pageSize == 0) {
         this.pageSize = 50
       }
@@ -552,6 +573,43 @@
           let HModName = "Gy_BarCodeBillList"
           this.DisPlay_HideColumn(HModName, sessionStorage["HUserName"], option, this.dataList);
         }
+        else{
+          if(data1.list){
+            this.btResList = data1.list             //鍒楄〃琛ㄥご鏁版嵁
+            this.total = data1.count;
+            var data = [];//鍒楀瓧娈垫暟鎹�
+            var col = [];
+            var totalArray = [];
+            //缁欑┖鐨勬暟缁勮祴鍊�
+            for (var key in data1.list) {//寰簭閬嶅巻鏁扮粍
+              data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });//浠庢瘡涓璞′腑鎻愬彇鏁版嵁
+            }
+            //鍦ㄥ垪琛ㄥ乏杈规坊鍔犲嬀閫夋
+            col.push({ type: 'checkbox', fixed: 'left', totalRowText: '鍚堣' });
+            for (var i = 0; i < data.length; i++) {//閬嶅巻data鏁扮粍閲嶇殑鏁版嵁
+              if (this.titleData.indexOf(data[i].name) > -1) {//妫�鏌ata銆恑銆�.name鏄惁鍦ㄦ暟缁勪腑  //璁$畻鍒�
+                col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //闅愯棌id鍒�
+              } else if (totalArray.indexOf(data[i].name) > -1 || (data[i].Type == "Decimal" || data[i].Type == "Int32")) { //璁$畻鍒�
+                col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 });
+              }
+              else {
+                col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
+              }
+            }
+            option.cols = [col]
+            this.dataList = option
+            option.data = data1.data;
+            var result = data1.data;
+            option.data = result;
+            this.checkDataList = [];
+            let HModName = "Gy_BarCodeBillList"
+            this.DisPlay_HideColumn(HModName, sessionStorage["HUserName"], option, this.dataList);
+          }
+          else{
+            this.tableShow = true
+            this.loading = false
+          }
+        }
       }).catch(error => {
         this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
       });
@@ -589,6 +647,18 @@
 
     //#endregion
 
+    //#region 鑾峰彇鍙傛暟
+      get_UrlVars() {
+            var vars = [], hash;
+            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+            for (var i = 0; i < hashes.length; i++) {
+                hash = hashes[i].split('=');
+                vars.push(hash[0]);
+                vars[hash[0]] = hash[1];
+            }
+            return vars;
+        },
+    //#endregion
     //#region 鍒犻櫎
     handleDrop() {
     },
@@ -843,11 +913,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

--
Gitblit v1.9.1