From c7bf4b8773f888fd5be613b7bb6fb8ae4a47b028 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期二, 23 四月 2024 16:53:57 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/pla/plaDetl.js |   62 ++++++++++++++++++++----------
 1 files changed, 41 insertions(+), 21 deletions(-)

diff --git a/src/main/webapp/static/js/pla/plaDetl.js b/src/main/webapp/static/js/pla/plaDetl.js
index 4a4f7aa..5e25d4e 100644
--- a/src/main/webapp/static/js/pla/plaDetl.js
+++ b/src/main/webapp/static/js/pla/plaDetl.js
@@ -21,26 +21,26 @@
         ,{field: 'packageNo', align: 'center',title: '鍖呰鍙�',edit:true, sort:true}
         ,{field: 'proDate', align: 'center',title: '鐢熶骇鏃ユ湡',edit:true, width: 100}
         ,{field: 'weight', align: 'center',title: '閲嶉噺KG',edit:true,totalRow:true}
-        ,{field: 'packageType', align: 'center',title: '鍖呰绫诲瀷',edit:true}
-        ,{field: 'zpalletType', align: 'center',title: '鎵樼洏绫诲瀷',edit:true}
         ,{field: 'filmWrap', align: 'center',title: '缂犺啘',edit:true,hide:true}
-        ,{field: 'fingerMelting', align: 'center',title: '鐔旀寚,g/10min',edit:true}
-        ,{field: 'water', align: 'center',title: '姘村垎,ppm', hide:true,edit:true}
-        ,{field: 'fusingPoint', align: 'center',title: '鐔旂偣,鈩�',edit:true}
-        ,{field: 'vadf1', align: 'center',title: '鎸ュ彂娈�,%', hide:true,edit:true}
-        ,{field: 'vadf2', align: 'center',title: '鍒嗚В娈�,%', hide:true,edit:true}
+        ,{field: 'fingerMelting', align: 'center',title: '鐔旀寚锛実/10min',edit:true}
+        ,{field: 'water', align: 'center',title: '姘村垎锛宲pm', hide:true,edit:true}
+        ,{field: 'fusingPoint', align: 'center',title: '鐔旂偣锛屸剝',edit:true}
+        ,{field: 'vadf1', align: 'center',title: '鎸ュ彂娈碉紝%', hide:true,edit:true}
+        ,{field: 'vadf2', align: 'center',title: '鍒嗚В娈碉紝%', hide:true,edit:true}
         ,{field: 'yellowness', align: 'center',title: '榛勫害',edit:true}
-        ,{field: 'opacity', align: 'center',title: '涓嶉�忔槑搴�,%',edit:true}
+        ,{field: 'opacity', align: 'center',title: '涓嶉�忔槑搴︼紝%',edit:true}
         ,{field: 'l', align: 'center',title: 'L*', hide:true,edit:true}
         ,{field: 'a', align: 'center',title: 'a*', hide:true,edit:true}
         ,{field: 'b', align: 'center',title: 'b*', hide:true,edit:true}
-        ,{field: 'fillIn', align: 'center',title: '濉厖,%',hide:true,edit:true}
-        ,{field: 'str1', align: 'center',title: '鎷変几寮哄害,MPa',hide:true,edit:true}
-        ,{field: 'str2', align: 'center',title: '鏂浼搁暱鐜�,%',hide:true,edit:true}
-        ,{field: 'str3', align: 'center',title: '缂哄彛鍐插嚮,KJ/m2',hide:true,edit:true}
-        ,{field: 'str4', align: 'center',title: '缁村崱,鈩�',hide:true,edit:true}
-        ,{field: 'str5', align: 'center',title: '鍗婄粨鏅舵椂闂�,min',hide:true,edit:true}
-        ,{field: 'str6', align: 'center',title: '缁撴櫠搴�.%',hide:true,edit:true}
+        ,{field: 'fillIn', align: 'center',title: '濉厖锛�%',hide:true,edit:true}
+        ,{field: 'str1', align: 'center',title: '鎷変几寮哄害锛孧Pa',hide:true,edit:true}
+        ,{field: 'str2', align: 'center',title: '鏂浼搁暱鐜囷紝%',hide:true,edit:true}
+        ,{field: 'str3', align: 'center',title: '缂哄彛鍐插嚮锛孠J/m2',hide:true,edit:true}
+        ,{field: 'str4', align: 'center',title: '缁村崱锛屸剝',hide:true,edit:true}
+        ,{field: 'str5', align: 'center',title: '鍗婄粨鏅舵椂闂达紝min',hide:true,edit:true}
+        ,{field: 'str6', align: 'center',title: '缁撴櫠搴︼紝%',hide:true,edit:true}
+        ,{field: 'packageType', align: 'center',title: '鍖呰绫诲瀷',edit:true}
+        ,{field: 'zpalletType', align: 'center',title: '鎵樼洏绫诲瀷',edit:true}
         ,{field: 'massState', align: 'center',title: '璐ㄩ噺鐘舵��',edit:true}
         ,{field: 'problem', align: 'center',title: '澶囨敞',edit:true,hide:true}
         ,{field: 'direction', align: 'center',title: '搴旂敤鏂瑰悜',edit:true,hide:true}
@@ -60,6 +60,9 @@
         ,{field: 'stockFreezeDate$', align: 'center',title: '鎿嶄綔鏃ユ湡',hide:true}
         ,{align: 'center', title: '娴佽浆鏄庣粏', toolbar: '#tbLook'}
         ,{field: 'createTime$', title: '鍒涘缓鏃堕棿', align: 'center' , sort:true}
+        ,{field: 'newBrand', align: 'center',title: '鍏宠仈鐗屽彿',edit:true}
+        ,{field: 'newBatch', align: 'center',title: '鍏宠仈鎵瑰彿',edit:true, width: 150, sort:true}
+        ,{field: 'newPackageNo', align: 'center',title: '鍏宠仈鍖呰鍙�',edit:true, sort:true}
         // ,{field: 'orderNo', align: 'center',title: '鍗曞彿', hide:true}
         // ,{field: 'pakoutTime', align: 'center',title: '鍑哄簱鏃堕棿', hide:true}
         // ,{field: 'orderWeight', align: 'center',title: '閲嶉噺', hide:true}
@@ -91,6 +94,7 @@
 layui.config({
     base: baseUrl + "/static/layui/lay/modules/"
 }).use(['table','laydate', 'form', 'admin', 'dropdown'], function() {
+    var dropdown = layui.dropdown;
     var table = layui.table;
     var $ = layui.jquery;
     var layer = layui.layer;
@@ -120,7 +124,7 @@
         },
         //height: 'full',
         limit: 16,
-        limits: [16, 30, 50, 100, 200, 500],
+        limits: [16, 50, 100, 200, 500,2000,5000,10000],
         even: true,
         toolbar: '#toolbar',
         cellMinWidth: 50,
@@ -136,12 +140,18 @@
             });
             return arr;
         }() ],
+        where:{
+            type: function() {
+                const tabPosition = JSON.parse(sessionStorage.getItem('easyweb-iframe_tempData')).tabPosition
+                return tabPosition.match(/\d+$/)[0] === '90646' ? '鏀规�ф爲鑴�' :
+                    (tabPosition.match(/\d+$/)[0] === '90657' ? '绾爲鑴�' : '')
+                 }
+            },
         request: {
             pageName: 'curr',
             pageSize: 'limit'
         },
         parseData: function (res) {
-            console.log(res)
             return {
                 'code': res.code,
                 'msg': res.msg,
@@ -242,6 +252,7 @@
                         headers: {token: localStorage.getItem('token')},
                         url: baseUrl+'/plaQty/list/auth',
                         where: {
+                            brand: data.brand,
                             batch: data.batch,
                             package_no: data.packageNo
                         },
@@ -435,8 +446,8 @@
                 } else {
                     layer.open({
                         type: 1,
+                        area: ['600px', '750px'],
                         title: '鎵归噺鎵撳嵃 [鏁伴噺'+ data.length +']',
-                        area: ['500px'],
                         shadeClose: true,
                         content: $('#printDataDiv'),
                         success: function(layero, index){
@@ -466,9 +477,9 @@
         layer.closeAll();
         for (let i=0;i<printData.data.length;i++){
             if (className === 'template-barcode') {
-                printData.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=1&param="+(printData.data[i].batch+";"+printData.data[i].packageNo)
+                printData.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=1&param="+(printData.data[i].brand+";"+printData.data[i].batch+";"+printData.data[i].packageNo+";"+printData.data[i].line)
             } else {
-                printData.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=2&param="+(printData.data[i].batch+";"+printData.data[i].packageNo)
+                printData.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=2&param="+(printData.data[i].brand+";"+printData.data[i].batch+";"+printData.data[i].packageNo+";"+printData.data[i].line)
             }
         }
         var tpl = templateDom.html();
@@ -519,8 +530,11 @@
         tableReload(false);
     });
 
+    // 鐢ㄦ潵鏍囪瘑鎼滅储閲嶇疆鏃讹紝鏀规�ф爲鑴傚拰绾爲鑴備粠鐐瑰嚮浜嬩欢浼犺繃鏉ュ悕绉帮紝杩涜鐗╄川绫诲埆闄愬畾
+    let customValue = undefined
     // 閲嶇疆浜嬩欢
     form.on('submit(reset)', function (data) {
+        customValue = $(this).attr('data-value');
         reset();
     });
 
@@ -528,7 +542,8 @@
         clearFormVal($('#search-box'));
         matCodeData = [];
         tableReload();
-        locTips(false);
+
+        // locTips(false);
     }
 
     // 閲嶈浇琛ㄦ牸
@@ -541,6 +556,9 @@
         $.each($('#search-box [name]').serializeArray(), function() {
             searchData[this.name] = this.value;
         });
+        if(customValue !== undefined){
+            searchData['type'] = customValue
+        }
         (child ? parent.tableIns : tableIns).reload({
             where: searchData,
             page: {
@@ -929,5 +947,7 @@
     var res = JSON.parse(evt.target.responseText);
     layer.msg(res.msg, {icon: 2});
 }
+function clearTable(){
 
+}
 

--
Gitblit v1.9.1