From b0bda44f7f909cc09eb758db019dd577fb56db55 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 15 七月 2020 14:40:16 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/pakStore/locCheckOut.js     |   25 +-
 src/main/webapp/static/js/report/stayTime.js          |   27 +-
 src/main/webapp/views/wrkMast/wrkDetl.html            |   26 +-
 src/main/webapp/views/home/console.html               |   25 +-
 src/main/webapp/views/report/locDetl.html             |   23 -
 src/main/webapp/static/js/pakStore/stockAdjust.js     |   27 +-
 src/main/webapp/static/js/report/workIn.js            |   27 +-
 src/main/webapp/views/pakStore/locDetlQuery.html      |   31 +--
 src/main/webapp/static/js/pakStore/stockOut.js        |   28 +-
 src/main/webapp/views/pakStore/matQuery.html          |   23 +-
 src/main/webapp/static/js/locDetl/locDetl.js          |   26 --
 src/main/webapp/static/js/report/workOut.js           |   29 +-
 src/main/webapp/views/pakStore/locDetlCheckQuery.html |   31 +--
 src/main/webapp/static/js/pakStore/locMove.js         |   22 +-
 src/main/webapp/static/js/matCode/matCode.js          |   54 +----
 src/main/webapp/static/js/wrkDetlLog/wrkDetlLog.js    |   38 +--
 src/main/webapp/static/js/pakStore/pakStore.js        |   18 +-
 src/main/webapp/static/js/wrkDetl/wrkDetl.js          |   35 +--
 18 files changed, 190 insertions(+), 325 deletions(-)

diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js
index e2929a8..7f4e979 100644
--- a/src/main/webapp/static/js/locDetl/locDetl.js
+++ b/src/main/webapp/static/js/locDetl/locDetl.js
@@ -1,4 +1,10 @@
 var pageCurr;
+function getCol() {
+    var cols = [{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}];
+    cols.push.apply(cols, detlCols);
+    return cols;
+}
+
 layui.use(['table','laydate', 'form'], function(){
     var table = layui.table;
     var $ = layui.jquery;
@@ -17,25 +23,7 @@
         even: true,
         toolbar: '#toolbar',
         cellMinWidth: 50,
-        cols: [[
-            // {type: 'checkbox'}
-//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
-            {field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
-            ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-            // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�', width:80}
-            // ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'}
-            // ,{field: 'tbpos', align: 'center',title: '琛岄」鐩�'}
-            // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID', width:200}
-            ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-            // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-            ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-            ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-            ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
-            // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-            // ,{field: 'memo', align: 'center',title: '澶囨敞'}
-
-            // ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:150}
-        ]],
+        cols: [getCol()],
         request: {
             pageName: 'curr',
             pageSize: 'limit'
diff --git a/src/main/webapp/static/js/matCode/matCode.js b/src/main/webapp/static/js/matCode/matCode.js
index 1d2861f..f36bf68 100644
--- a/src/main/webapp/static/js/matCode/matCode.js
+++ b/src/main/webapp/static/js/matCode/matCode.js
@@ -1,5 +1,15 @@
 var pageCurr;
 var printMatCodeNos = [];
+function getCol() {
+    var cols = [
+        {type: 'checkbox'}
+    ];
+    cols.push.apply(cols, matCols);
+    cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true}
+        ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿', hide: true}
+        ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:120})
+    return cols;
+}
 layui.use(['table','laydate', 'form','upload'], function(){
     var table = layui.table;
     var $ = layui.jquery;
@@ -19,49 +29,7 @@
         even: true,
         toolbar: '#toolbar',
         cellMinWidth: 50,
-        cols: [[
-            {type: 'checkbox'}
-//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
-            ,{field: 'matNo', align: 'center',title: '鐗╂枡缂栫爜'}
-            ,{field: 'barcode', align: 'center',title: '鏉$爜'}
-            ,{field: 'matName', align: 'center',title: '鐗╂枡鍚嶇О'}
-            ,{field: 'str1', align: 'center',title: '鐗╂枡鍗曚綅'}
-            // ,{field: 'str2', align: 'center',title: '鐗╂枡瑙勬牸'}
-            // ,{field: 'str3', align: 'center',title: ''}
-            // ,{field: 'str4', align: 'center',title: ''}
-            // ,{field: 'str5', align: 'center',title: ''}
-            // ,{field: 'str6', align: 'center',title: ''}
-            // ,{field: 'str7', align: 'center',title: ''}
-            // ,{field: 'str8', align: 'center',title: ''}
-            // ,{field: 'str9', align: 'center',title: ''}
-            // ,{field: 'str10', align: 'center',title: ''}
-            // ,{field: 'str11', align: 'center',title: ''}
-            // ,{field: 'str12', align: 'center',title: ''}
-            // ,{field: 'str13', align: 'center',title: ''}
-            // ,{field: 'str14', align: 'center',title: ''}
-            // ,{field: 'str15', align: 'center',title: ''}
-            // ,{field: 'str16', align: 'center',title: ''}
-            // ,{field: 'str17', align: 'center',title: ''}
-            // ,{field: 'str18', align: 'center',title: ''}
-            // ,{field: 'str19', align: 'center',title: ''}
-            // ,{field: 'str20', align: 'center',title: ''}
-            // ,{field: 'str21', align: 'center',title: ''}
-            // ,{field: 'str22', align: 'center',title: ''}
-            // ,{field: 'str23', align: 'center',title: ''}
-            // ,{field: 'num1', align: 'center',title: ''}
-            // ,{field: 'num2', align: 'center',title: ''}
-            // ,{field: 'num3', align: 'center',title: ''}
-            // ,{field: 'num4', align: 'center',title: ''}
-            // ,{field: 'num5', align: 'center',title: ''}
-            // ,{field: 'num6', align: 'center',title: ''}
-            // ,{field: 'date1$', align: 'center',title: ''}
-            // ,{field: 'appeUser$', align: 'center',title: '鍒涘缓鑰�',event: 'appeUser', style: 'cursor:pointer'}
-            // ,{field: 'appeTime$', align: 'center',title: '娣诲姞鏃堕棿'}
-            ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳'}
-            ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
-            // ,{field: 'status', align: 'center',title: ''}
-            ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:120}
-        ]],
+        cols: [getCol()],
         request: {
             pageName: 'curr',
             pageSize: 'limit'
diff --git a/src/main/webapp/static/js/pakStore/locCheckOut.js b/src/main/webapp/static/js/pakStore/locCheckOut.js
index 6475b9b..895c536 100644
--- a/src/main/webapp/static/js/pakStore/locCheckOut.js
+++ b/src/main/webapp/static/js/pakStore/locCheckOut.js
@@ -1,5 +1,13 @@
 var pageCurr;
 var tableIns;
+function getCol() {
+    var cols = [
+        {field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
+    ];
+    cols.push.apply(cols, detlCols);
+    return cols;
+}
+
 layui.use(['table','laydate', 'form'], function() {
     var table = layui.table;
     var $ = layui.jquery;
@@ -14,22 +22,7 @@
         even: true,
         toolbar: '#toolbar',
         cellMinWidth: 50,
-        cols: [[
-            // {field: 'count', align: 'center',title: '鍑哄簱鏁伴噺', edit:'text', width: 130,  style:'color: blue;font-weight: bold'} // todo
-            {field: 'anfme', align: 'center',title: '鏁伴噺'}
-            ,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
-            ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-            // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�', width:80}
-            // ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'}
-            // ,{field: 'tbpos', align: 'center',title: '琛岄」鐩�'}
-            // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID', width:200}
-            ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-            // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-            ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-            ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
-            // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-            // ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80} // todo
-        ]],
+        cols: [getCol()],
         done: function(res, curr, count) {
             limit();
             getOutBound();
diff --git a/src/main/webapp/static/js/pakStore/locMove.js b/src/main/webapp/static/js/pakStore/locMove.js
index 9164199..8625246 100644
--- a/src/main/webapp/static/js/pakStore/locMove.js
+++ b/src/main/webapp/static/js/pakStore/locMove.js
@@ -1,5 +1,13 @@
 var pageCurr = 0;
 var tableIns;
+function getCol() {
+    var cols = [
+        {field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
+    ];
+    cols.push.apply(cols, detlCols);
+    return cols;
+}
+
 layui.use(['table','laydate', 'form'], function() {
     var table = layui.table;
     var $ = layui.jquery;
@@ -16,19 +24,7 @@
         limits: [16, 50, 100, 200, 500],
         even: true,
         cellMinWidth: 50,
-        cols: [[
-            {field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
-            ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-            // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�'}
-            // ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'}
-            // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID'}
-            ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-            // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-            ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-            ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-            ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
-            // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-        ]],
+        cols: [getCol()],
         request: {
             pageName: 'curr',
             pageSize: 'limit'
diff --git a/src/main/webapp/static/js/pakStore/pakStore.js b/src/main/webapp/static/js/pakStore/pakStore.js
index 1510b4a..d40dd18 100644
--- a/src/main/webapp/static/js/pakStore/pakStore.js
+++ b/src/main/webapp/static/js/pakStore/pakStore.js
@@ -1,6 +1,14 @@
 
 var initCountVal = 0;
 var matCodeData = [];
+function getCol() {
+    var cols = [
+        {fixed: 'left', field: 'count', title: '鏁伴噺(蹇呭~)', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'}
+    ];
+    cols.push.apply(cols, matCols);
+    cols.push({fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80})
+    return cols;
+}
 
 layui.use(['table','laydate', 'form'], function() {
     var table = layui.table;
@@ -16,15 +24,7 @@
         limit: 500,
         cellMinWidth: 50,
         toolbar: '#toolbar',
-        cols: [[
-            {fixed: 'left', field: 'count', title: '鏁伴噺(蹇呭~)', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'},
-            {field: 'matNo', align: 'center', title: '鐗╂枡缂栫爜'},
-            {field: 'barcode', align: 'center', title: '鏉$爜'},
-            {field: 'matName', align: 'center', title: '鐗╂枡鍚嶇О'},
-            {field: 'str1', align: 'center', title: '鐗╂枡鍗曚綅'},
-            {field: 'str2', align: 'center', title: '鐗╂枡瑙勬牸'},
-            {fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80}
-        ]],
+        cols: [getCol()],
         done: function (res, curr, count) {
             $('td[data-field=count] div').html(initCountVal);
             setMatCodeData(res.data);
diff --git a/src/main/webapp/static/js/pakStore/stockAdjust.js b/src/main/webapp/static/js/pakStore/stockAdjust.js
index e4c5f33..0438e7a 100644
--- a/src/main/webapp/static/js/pakStore/stockAdjust.js
+++ b/src/main/webapp/static/js/pakStore/stockAdjust.js
@@ -2,6 +2,17 @@
 var initAnfmeVal = "-";
 var matCodeData = [];
 var currLocNo;
+function getCol() {
+    var cols = [
+        {fixed: 'left', field: 'count', title: '瀹為檯鏁伴噺', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'}
+        ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
+    ];
+    arrRemove(detlCols, "field", "anfme")
+    cols.push.apply(cols, detlCols);
+    cols.push({fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80})
+    return cols;
+}
+
 layui.use(['table','laydate', 'form'], function() {
     var table = layui.table;
     var $ = layui.jquery;
@@ -16,21 +27,7 @@
         limit: 500,
         cellMinWidth: 50,
         toolbar: '#toolbar',
-        cols: [[
-            {fixed: 'left', field: 'count', title: '瀹為檯鏁伴噺', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'}
-            ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-            ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-            // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�'}
-            // ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'}
-            // ,{field: 'tbpos', align: 'center',title: '琛岄」鐩�'}
-            // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID'}
-            ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-            // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-            ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-            ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
-            // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-            ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80}
-        ]],
+        cols: [getCol()],
         done: function (res, curr, count) {
             limit();
         }
diff --git a/src/main/webapp/static/js/pakStore/stockOut.js b/src/main/webapp/static/js/pakStore/stockOut.js
index 0307618..4018a87 100644
--- a/src/main/webapp/static/js/pakStore/stockOut.js
+++ b/src/main/webapp/static/js/pakStore/stockOut.js
@@ -1,5 +1,16 @@
 
 var locDetlData = [];
+function getCol() {
+    var cols = [
+        {field: 'count', align: 'center',title: '鍑哄簱鏁伴噺', edit:'text', width: 130,  style:'color: blue;font-weight: bold'}
+        ,{field: 'anfme', align: 'center',title: '鍘熸暟閲�'}
+        ,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
+    ];
+    arrRemove(detlCols,  'field', 'anfme');
+    cols.push.apply(cols, detlCols);
+    cols.push({fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80})
+    return cols;
+}
 
 layui.use(['table','laydate', 'form'], function() {
     var table = layui.table;
@@ -14,22 +25,7 @@
         even: true,
         toolbar: '#toolbar',
         cellMinWidth: 50,
-        cols: [[
-            {field: 'count', align: 'center',title: '鍑哄簱鏁伴噺', edit:'text', width: 130,  style:'color: blue;font-weight: bold'}
-            ,{field: 'anfme', align: 'center',title: '鍘熸暟閲�'}
-            ,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
-            ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-            // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�', width:80}
-            // ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'}
-            // ,{field: 'tbpos', align: 'center',title: '琛岄」鐩�'}
-            // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID', width:200}
-            ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-            // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-            ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-            ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
-            // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-            ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80}
-        ]],
+        cols: [getCol()],
         done: function(res, curr, count) {
             limit();
             getOutBound();
diff --git a/src/main/webapp/static/js/report/stayTime.js b/src/main/webapp/static/js/report/stayTime.js
index 961fe31..318ba8e 100644
--- a/src/main/webapp/static/js/report/stayTime.js
+++ b/src/main/webapp/static/js/report/stayTime.js
@@ -1,4 +1,14 @@
 var pageCurr;
+function getCol() {
+    var cols = [
+        {field: 'appe_time', title: '鍏ュ簱鏃堕棿', align: 'center', width: 200}
+        ,{field: 'stay_time', align: 'center',title: '婊炵暀澶╂暟'}
+        ,{field: 'loc_no', align: 'center',title: '搴撲綅鍙�'}
+    ];
+    cols.push.apply(cols, detlCols);
+    return cols;
+}
+
 layui.use(['table','laydate', 'form'], function(){
     var table = layui.table;
     var $ = layui.jquery;
@@ -17,22 +27,7 @@
         limits: [16, 30, 50, 100, 200, 500],
         toolbar: '#toolbar',
         cellMinWidth: 50,
-        cols: [[
-            // {type: 'checkbox'}
-            {field: 'appe_time', title: '鍏ュ簱鏃堕棿', align: 'center'}
-            ,{field: 'stay_time', align: 'center',title: '婊炵暀澶╂暟'}
-            ,{field: 'loc_no', align: 'center',title: '搴撲綅鍙�'}
-            ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-            ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-            // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�'}
-            // ,{field: 'tbnum', align: 'center',title: '璇锋眰缂栧彿'}
-            // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID'}
-            // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-            ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-            ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-            // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-            ,{field: 'zpallet', align: 'center',title: '鎵樼洏鐮�',fixed: 'right'}
-        ]],
+        cols: [getCol()],
         request: {
             pageName: 'curr',
             pageSize: 'limit'
diff --git a/src/main/webapp/static/js/report/workIn.js b/src/main/webapp/static/js/report/workIn.js
index bedebe3..bc173d9 100644
--- a/src/main/webapp/static/js/report/workIn.js
+++ b/src/main/webapp/static/js/report/workIn.js
@@ -1,4 +1,13 @@
 var pageCurr;
+function getCol() {
+    var cols = [
+        {field: 'io_time', align: 'center', title: '鍏ュ簱鏃ユ湡', width: 200}
+        ,{field: 'loc_no', align: 'center',title: '搴撲綅鍙�'}
+    ];
+    cols.push.apply(cols, detlCols);
+    return cols;
+}
+
 layui.use(['table','laydate', 'form'], function(){
     var table = layui.table;
     var $ = layui.jquery;
@@ -16,23 +25,7 @@
         limit: 10,
         toolbar: '#toolbar',
         cellMinWidth: 50,
-        cols: [[
-            // {type: 'checkbox'}
-            {field: 'io_time', align: 'center', title: '鍏ュ簱鏃ユ湡'}
-            ,{field: 'loc_no', align: 'center',title: '搴撲綅鍙�'}
-            // ,{field: 'crn_str_time', align: 'center',title: '鍫嗗灈鏈哄惎鍔ㄦ椂闂�'}
-            // ,{field: 'crn_end_time', align: 'center',title: '鍫嗗灈鏈哄仠姝㈡椂闂�'}
-            ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-            ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-            // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�'}
-            // ,{field: 'tbnum', align: 'center',title: '璇锋眰缂栧彿'}
-            // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID'}
-            // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-            ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-            ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-            ,{field: 'zpallet', align: 'center',title: '鎵樼洏鐮�'}
-            // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-        ]],
+        cols: [getCol()],
         request: {
             pageName: 'curr',
             pageSize: 'limit'
diff --git a/src/main/webapp/static/js/report/workOut.js b/src/main/webapp/static/js/report/workOut.js
index 7ad1126..b38236b 100644
--- a/src/main/webapp/static/js/report/workOut.js
+++ b/src/main/webapp/static/js/report/workOut.js
@@ -1,4 +1,15 @@
 var pageCurr;
+function getCol() {
+    var cols = [
+        {field: 'io_time', align: 'center', title: '鍑哄簱鏃ユ湡', width: 200}
+        ,{field: 'loc_no', align: 'center',title: '搴撲綅鍙�'}
+        ,{field: 'crn_str_time', align: 'center',title: '鍫嗗灈鏈哄惎鍔ㄦ椂闂�'}
+        ,{field: 'crn_end_time', align: 'center',title: '鍫嗗灈鏈哄仠姝㈡椂闂�'}
+    ];
+    cols.push.apply(cols, detlCols);
+    return cols;
+}
+
 layui.use(['table','laydate', 'form'], function(){
     var table = layui.table;
     var $ = layui.jquery;
@@ -16,23 +27,7 @@
         limit: 10,
         toolbar: '#toolbar',
         cellMinWidth: 50,
-        cols: [[
-            // {type: 'checkbox'}
-            {field: 'io_time', align: 'center', title: '鍑哄簱鏃ユ湡'}
-            ,{field: 'loc_no', align: 'center',title: '搴撲綅鍙�'}
-            ,{field: 'crn_str_time', align: 'center',title: '鍫嗗灈鏈哄惎鍔ㄦ椂闂�'}
-            ,{field: 'crn_end_time', align: 'center',title: '鍫嗗灈鏈哄仠姝㈡椂闂�'}
-            ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-            ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-            // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�'}
-            // ,{field: 'tbnum', align: 'center',title: '璇锋眰缂栧彿'}
-            // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID'}
-            // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-            ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-            ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-            ,{field: 'zpallet', align: 'center',title: '鎵樼洏鐮�'}
-            // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-        ]],
+        cols: [getCol()],
         request: {
             pageName: 'curr',
             pageSize: 'limit'
diff --git a/src/main/webapp/static/js/wrkDetl/wrkDetl.js b/src/main/webapp/static/js/wrkDetl/wrkDetl.js
index 13c7f4d..ec80668 100644
--- a/src/main/webapp/static/js/wrkDetl/wrkDetl.js
+++ b/src/main/webapp/static/js/wrkDetl/wrkDetl.js
@@ -1,4 +1,15 @@
 var pageCurr;
+function getCol() {
+    var cols = [
+        {field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�'}
+        ,{field: 'ioTime$', align: 'center',title: '宸ヤ綔鏃堕棿', width: 160}
+    ];
+    cols.push.apply(cols, detlCols);
+    cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide:true}
+        ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿', hide:true})
+    return cols;
+}
+
 layui.use(['table','laydate', 'form'], function(){
     var table = layui.table;
     var $ = layui.jquery;
@@ -17,29 +28,7 @@
         even: true,
         toolbar: '#toolbar',
         cellMinWidth: 50,
-        cols: [[
-            {field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�'}
-            ,{field: 'ioTime$', align: 'center',title: '宸ヤ綔鏃堕棿', width: 160}
-            ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-            // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�'}
-            // ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'}
-            // ,{field: 'tbpos', align: 'center',title: '琛岄」鐩�'}
-            // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID'}
-            // ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-            // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-            ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-            ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-            ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
-            // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-            // ,{field: 'memo', align: 'center',title: '澶囨敞'}
-            ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide:true}
-            ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿', hide:true}
-            // ,{field: 'appeUser$', align: 'center',title: '鍒涘缓鑰�',event: 'appeUser', style: 'cursor:pointer'}
-            // ,{field: 'appeTime$', align: 'center',title: '娣诲姞鏃堕棿'}
-            // ,{field: 'nista', align: 'center',title: ''}
-
-            ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80}
-        ]],
+        cols: [getCol()],
         request: {
             pageName: 'curr',
             pageSize: 'limit'
diff --git a/src/main/webapp/static/js/wrkDetlLog/wrkDetlLog.js b/src/main/webapp/static/js/wrkDetlLog/wrkDetlLog.js
index 7d86086..c4a776a 100644
--- a/src/main/webapp/static/js/wrkDetlLog/wrkDetlLog.js
+++ b/src/main/webapp/static/js/wrkDetlLog/wrkDetlLog.js
@@ -1,4 +1,16 @@
 var pageCurr;
+function getCol() {
+    var cols = [
+        {field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�'}
+        ,{field: 'ioTime$', align: 'center',title: '宸ヤ綔鏃堕棿'}
+    ];
+    cols.push.apply(cols, detlCols);
+    cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳',hide: true}
+        ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿',hide: true}
+    )
+    return cols;
+}
+
 layui.use(['table','laydate', 'form'], function(){
     var table = layui.table;
     var $ = layui.jquery;
@@ -17,31 +29,7 @@
         even: true,
         toolbar: '#toolbar',
         cellMinWidth: 50,
-        cols: [[
-            // {type: 'checkbox'}
-//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
-            {field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�'}
-            ,{field: 'ioTime$', align: 'center',title: '宸ヤ綔鏃堕棿'}
-            ,{field: 'matnr', align: 'center',title: '鐗╂枡缂栧彿'}
-            // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�'}
-            // ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'}
-            // ,{field: 'tbpos', align: 'center',title: '琛岄」鐩�'}
-            // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID'}
-            ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-            // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-            ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-            ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-            ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
-            // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-            ,{field: 'memo', align: 'center',title: '澶囨敞',hide: true}
-            ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳',hide: true}
-            ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿',hide: true}
-            // ,{field: 'appeUser$', align: 'center',title: '鍒涘缓鑰�',event: 'appeUser', style: 'cursor:pointer'}
-            // ,{field: 'appeTime$', align: 'center',title: '娣诲姞鏃堕棿'}
-            // ,{field: 'nista', align: 'center',title: ''}
-
-            // ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:150}
-        ]],
+        cols: [getCol()],
         request: {
             pageName: 'curr',
             pageSize: 'limit'
diff --git a/src/main/webapp/views/home/console.html b/src/main/webapp/views/home/console.html
index c049a42..47e5378 100644
--- a/src/main/webapp/views/home/console.html
+++ b/src/main/webapp/views/home/console.html
@@ -220,6 +220,15 @@
 
     // 琛ㄦ牸
     var pageCurr;
+    function getCol() {
+        var cols = [
+            {field: 'appe_time', title: '鍏ュ簱鏃堕棿', align: 'center', width: 200}
+            ,{field: 'stay_time', align: 'center',title: '婊炵暀澶╂暟'}
+            ,{field: 'loc_no', align: 'center',title: '搴撲綅鍙�'}
+        ];
+        cols.push.apply(cols, detlCols);
+        return cols;
+    }
     layui.use(['table','laydate', 'form'], function() {
         var table = layui.table;
         var $ = layui.jquery;
@@ -236,21 +245,7 @@
             even: true,
             cellMinWidth: 50,
             crossDomain: true,
-            cols: [[
-                {field: 'appe_time', title: '鍏ュ簱鏃堕棿', align: 'center', width: 200}
-                ,{field: 'stay_time', align: 'center',title: '婊炵暀澶╂暟'}
-                ,{field: 'loc_no', align: 'center',title: '搴撲綅鍙�'}
-                ,{field: 'matnr', align: 'center',title: '鐗╂枡鍙�'}
-                ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-                // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�'}
-                // ,{field: 'tbnum', align: 'center',title: '璇锋眰缂栧彿'}
-                // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID'}
-                // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-                ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-                ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-                ,{field: 'zpallet', align: 'center',title: '鎵樼洏鐮�'}
-                // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-            ]],
+            cols: [getCol()],
             request: {
                 pageName: 'curr',
                 pageSize: 'limit'
diff --git a/src/main/webapp/views/pakStore/locDetlCheckQuery.html b/src/main/webapp/views/pakStore/locDetlCheckQuery.html
index 4f043da..04c577a 100644
--- a/src/main/webapp/views/pakStore/locDetlCheckQuery.html
+++ b/src/main/webapp/views/pakStore/locDetlCheckQuery.html
@@ -94,6 +94,17 @@
 <script>
 
     var pageCurr;
+    function getCol() {
+        var cols = [
+            {type: 'checkbox'}
+            ,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
+        ];
+        cols.push.apply(cols, detlCols);
+        cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true}
+            ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'})
+        return cols;
+    }
+
     layui.use(['table','laydate', 'form'], function() {
         var table = layui.table;
         var $ = layui.jquery;
@@ -111,25 +122,7 @@
             even: true,
             toolbar: '#toolbar',
             cellMinWidth: 50,
-            cols: [[
-                {type: 'checkbox'}
-                ,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
-                ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-                // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�', width:80}
-                // ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'}
-                // ,{field: 'tbpos', align: 'center',title: '琛岄」鐩�'}
-                // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID', width:200}
-                ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-                // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-                ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-                ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-                ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
-                // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-                // ,{field: 'memo', align: 'center',title: '澶囨敞'}
-                ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true}
-                ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
-
-            ]],
+            cols: [getCol()],
             request: {
                 pageName: 'curr',
                 pageSize: 'limit'
diff --git a/src/main/webapp/views/pakStore/locDetlQuery.html b/src/main/webapp/views/pakStore/locDetlQuery.html
index da5a837..798b065 100644
--- a/src/main/webapp/views/pakStore/locDetlQuery.html
+++ b/src/main/webapp/views/pakStore/locDetlQuery.html
@@ -93,6 +93,17 @@
 <script>
 
     var pageCurr;
+    function getCol() {
+        var cols = [
+            {type: 'checkbox'}
+            ,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
+        ];
+        cols.push.apply(cols, detlCols);
+        cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true}
+            ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'})
+        return cols;
+    }
+
     layui.use(['table','laydate', 'form'], function() {
         var table = layui.table;
         var $ = layui.jquery;
@@ -109,25 +120,7 @@
             even: true,
             toolbar: '#toolbar',
             cellMinWidth: 50,
-            cols: [[
-                {type: 'checkbox'}
-                ,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
-                ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-                // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�', width:80}
-                // ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'}
-                // ,{field: 'tbpos', align: 'center',title: '琛岄」鐩�'}
-                // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID', width:200}
-                ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-                // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-                ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-                ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-                ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
-                // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-                // ,{field: 'memo', align: 'center',title: '澶囨敞'}
-                ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true}
-                ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
-
-            ]],
+            cols: [getCol()],
             request: {
                 pageName: 'curr',
                 pageSize: 'limit'
diff --git a/src/main/webapp/views/pakStore/matQuery.html b/src/main/webapp/views/pakStore/matQuery.html
index f929872..ebe1d3f 100644
--- a/src/main/webapp/views/pakStore/matQuery.html
+++ b/src/main/webapp/views/pakStore/matQuery.html
@@ -67,7 +67,17 @@
 
 </body>
 <script>
-
+    function getCol() {
+        var cols = [
+            {type: 'checkbox', fixed: 'left'}
+        ];
+        cols.push.apply(cols, matCols);
+        cols.push(
+            {field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true},
+            {field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
+        )
+        return cols;
+    }
     var pageCurr;
     layui.use(['table','laydate', 'form'], function() {
         var table = layui.table;
@@ -86,16 +96,7 @@
             even: true,
             cellMinWidth: 50,
             toolbar: '#toolbar',
-            cols: [[
-                {type: 'checkbox', fixed: 'left'},
-                {field: 'matNo', align: 'center', title: '鐗╂枡缂栫爜'},
-                {field: 'barcode', align: 'center', title: '鏉$爜'},
-                {field: 'matName', align: 'center', title: '鐗╂枡鍚嶇О'},
-                {field: 'str1', align: 'center', title: '鐗╂枡鍗曚綅'},
-                {field: 'str2', align: 'center', title: '鐗╂枡瑙勬牸'},
-                {field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true},
-                {field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
-            ]],
+            cols: [getCol()],
             request: {
                 pageName: 'curr',
                 pageSize: 'limit'
diff --git a/src/main/webapp/views/report/locDetl.html b/src/main/webapp/views/report/locDetl.html
index b3d56b6..0b77d23 100644
--- a/src/main/webapp/views/report/locDetl.html
+++ b/src/main/webapp/views/report/locDetl.html
@@ -31,6 +31,13 @@
 <script type="text/javascript" src="../../static/js/locMast/locMast.js" charset="utf-8"></script>
 <script type="text/javascript">
     var pageCur;
+    function getCol() {
+        var cols = [
+            {field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
+        ];
+        cols.push.apply(cols, detlCols);
+        return cols;
+    }
     layui.use(['table','laydate', 'form'], function() {
         table = layui.table;
         var $ = layui.jquery;
@@ -49,21 +56,7 @@
             where: {loc_no: parent.locNo},
             even: true,
             cellMinWidth: 50,
-            cols: [[
-                // {type: 'checkbox'}
-                {field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
-                ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-                // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�'}
-                // ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'}
-                // ,{field: 'tbpos', align: 'center',title: '琛岄」鐩�'}
-                // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID'}
-                ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-                // ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-                ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-                ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-                ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
-                // ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-            ]],
+            cols: [getCol()],
             request: {
                 pageName: 'curr',
                 pageSize: 'limit'
diff --git a/src/main/webapp/views/wrkMast/wrkDetl.html b/src/main/webapp/views/wrkMast/wrkDetl.html
index 008f51c..af87049 100644
--- a/src/main/webapp/views/wrkMast/wrkDetl.html
+++ b/src/main/webapp/views/wrkMast/wrkDetl.html
@@ -28,6 +28,14 @@
 <script type="text/javascript" src="../../static/js/locMast/locMast.js" charset="utf-8"></script>
 <script type="text/javascript">
     var pageCur;
+    function getCol() {
+        var cols = [
+            {field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�'}
+            ,{field: 'ioTime$', align: 'center',title: '宸ヤ綔鏃堕棿'}
+        ];
+        cols.push.apply(cols, detlCols);
+        return cols;
+    }
     layui.use(['table','laydate', 'form'], function() {
         table = layui.table;
         var $ = layui.jquery;
@@ -46,23 +54,7 @@
             even: true,
             toolbar: '#toolbar',
             cellMinWidth: 50,
-            cols: [[
-                // {type: 'checkbox'}
-                {field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�'}
-                ,{field: 'ioTime$', align: 'center',title: '宸ヤ綔鏃堕棿'}
-                ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
-                ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�'}
-                ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'}
-                ,{field: 'tbpos', align: 'center',title: '琛岄」鐩�'}
-                ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID'}
-                ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-                ,{field: 'werks', align: 'center',title: '宸ュ巶'}
-                ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-                ,{field: 'altme', align: 'center',title: '鍗曚綅'}
-                ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
-                ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
-                // ,{field: 'memo', align: 'center',title: '澶囨敞'}
-            ]],
+            cols: [getCol()],
             request: {
                 pageName: 'curr',
                 pageSize: 'limit'

--
Gitblit v1.9.1