From fc69a1e9655df3e8a01dc36ea2742c99f4a651ed Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 17 一月 2024 13:22:08 +0800
Subject: [PATCH] 特批申请单:数据校验 销售订单:维护页面增加字段 销售出库关联数量、销售出库未关联数量、生产关联数量、生产未关联数量

---
 WebTM/views/采购管理/委外订单/WW_EntrustOrderBillList.html |  128 +++++++++++++++++++++---------------------
 1 files changed, 65 insertions(+), 63 deletions(-)

diff --git "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\247\224\345\244\226\350\256\242\345\215\225/WW_EntrustOrderBillList.html" "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\247\224\345\244\226\350\256\242\345\215\225/WW_EntrustOrderBillList.html"
index c3b97c0..3f20a0c 100644
--- "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\247\224\345\244\226\350\256\242\345\215\225/WW_EntrustOrderBillList.html"
+++ "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\247\224\345\244\226\350\256\242\345\215\225/WW_EntrustOrderBillList.html"
@@ -16,6 +16,7 @@
     <script src="../../../layuiadmin/PubCustom.js"></script>
     <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
     <script src="../../../layuiadmin/HideButton.js"></script>
+    <script src="../../../layuiadmin/soulTable.slim.js"></script>
 
 </head>
 <body>
@@ -181,7 +182,7 @@
             base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
         }).extend({
             index: 'lib/index', //涓诲叆鍙fā鍧�
-        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
+        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate', 'soulTable'], function () {
             //#region 鍏叡鍙橀噺
             var $ = layui.$
                 , admin = layui.admin
@@ -192,6 +193,7 @@
                 , laypage = layui.laypage
                 , laydate = layui.laydate
                 , util = layui.util
+                , soulTable = layui.soulTable
             //鏌ヨ鏉′欢
             var sWhere = "";
             var option = [];
@@ -319,78 +321,78 @@
                 $("#HBeginDate").val("2022-03-14");
                 $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
                 var columns = [
-                    { type: 'checkbox', fixed: 'left', totalRowText: '鍚堣' }
+                    { type: 'checkbox', fixed: 'left', totalRowText: '鍚堣'}
                     , { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
-                    , { field: '鏃ユ湡', title: '鏃ユ湡', width: 120, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
-                    , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 150 }
-                    , { field: '渚涘簲鍟�', title: '渚涘簲鍟�', width: 150 }
-                    , { field: '涓氬姟鍛�', title: '涓氬姟鍛�', width: 100 }
-                    , { field: 'HBillType', title: 'HBillType', hide: true }
-                    , { field: 'HSupID', title: 'HSupID', hide: true }
-                    , { field: '涓氬姟鐘舵��', title: '涓氬姟鐘舵��', width: 100 , hide: true }
-                    , { field: '鍒嗛厤鐘舵��', title: '鍒嗛厤鐘舵��', width: 100  }
-                    , { field: '鍙戝竷鐘舵��', title: '鍙戝竷鐘舵��', width: 100 }
-                    , { field: '渚涘簲鍟嗗崗鍚岀姸鎬�', title: '渚涘簲鍟嗗崗鍚岀姸鎬�', width: 135 }/*鐗╂枡浠g爜锛岀墿鏂欏悕绉帮紝瑙勬牸鍨嬪彿锛屾壒鍙凤紝鏁伴噺锛屽崟浣嶏紝婧愬崟鍗曞彿*/
-                    , { field: '鍙嶉鐘舵��', title: '渚涘簲鍟嗗弽棣堢姸鎬�', width: 135 }
-                    , { field: '鐗╂枡缂栫爜', title: '鐗╂枡缂栫爜', width: 130 }
-                    , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 130 }
-                    , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 120 }
-                    , { field: '鏁伴噺', title: '璁㈠崟鏁伴噺', width: 100}
-                    , { field: '鎵撳嵃鏉$爜鏁伴噺', title: '鎵撳嵃鏉$爜鏁伴噺', width: 120}
-                    , { field: '鍏宠仈鏁伴噺', title: '宸插彂璐ф暟閲�', width: 120 }
-                    , { field: '鏈叧鑱旀暟閲�', title: '鏈凡鍙戣揣鏁伴噺', width: 120 }
-                    , { field: '瀹屾垚鐘舵��', title: '瀹屾垚鐘舵��', width: 100 }
-                    , { field: 'HUnitID', title: 'HUnitID', hide: true }
-                    , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 120 }
-                    , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 100 }
-                    , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 100 }
-                    , { field: '鎵瑰彿', title: '鎵瑰彿', width: 100 }
-                    , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 100 }
+                    , { field: '鏃ユ湡', title: '鏃ユ湡', width: 120, sort: true, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+                    , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 150, sort: true}
+                    , { field: '渚涘簲鍟�', title: '渚涘簲鍟�', width: 150, sort: true}
+                    , { field: '涓氬姟鍛�', title: '涓氬姟鍛�', width: 100, sort: true }
+                    , { field: 'HBillType', title: 'HBillType', hide: true, sort: true}
+                    , { field: 'HSupID', title: 'HSupID', hide: true, sort: true }
+                    , { field: '涓氬姟鐘舵��', title: '涓氬姟鐘舵��', width: 100, hide: true, sort: true}
+                    , { field: '鍒嗛厤鐘舵��', title: '鍒嗛厤鐘舵��', width: 100, sort: true }
+                    , { field: '鍙戝竷鐘舵��', title: '鍙戝竷鐘舵��', width: 100, sort: true }
+                    , { field: '渚涘簲鍟嗗崗鍚岀姸鎬�', title: '渚涘簲鍟嗗崗鍚岀姸鎬�', width: 135, sort: true }/*鐗╂枡浠g爜锛岀墿鏂欏悕绉帮紝瑙勬牸鍨嬪彿锛屾壒鍙凤紝鏁伴噺锛屽崟浣嶏紝婧愬崟鍗曞彿*/
+                    , { field: '鍙嶉鐘舵��', title: '渚涘簲鍟嗗弽棣堢姸鎬�', width: 135, sort: true}
+                    , { field: '鐗╂枡缂栫爜', title: '鐗╂枡缂栫爜', width: 130, sort: true }
+                    , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 130, sort: true}
+                    , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 120, sort: true}
+                    , { field: '鏁伴噺', title: '璁㈠崟鏁伴噺', width: 100, sort: true}
+                    , { field: '鎵撳嵃鏉$爜鏁伴噺', title: '鎵撳嵃鏉$爜鏁伴噺', width: 120, sort: true}
+                    , { field: '鍏宠仈鏁伴噺', title: '宸插彂璐ф暟閲�', width: 120, sort: true }
+                    , { field: '鏈叧鑱旀暟閲�', title: '鏈凡鍙戣揣鏁伴噺', width: 120, sort: true }
+                    , { field: '瀹屾垚鐘舵��', title: '瀹屾垚鐘舵��', width: 100, sort: true}
+                    , { field: 'HUnitID', title: 'HUnitID', hide: true, sort: true}
+                    , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 120, sort: true}
+                    , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 100, sort: true}
+                    , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 100, sort: true}
+                    , { field: '鎵瑰彿', title: '鎵瑰彿', width: 100, sort: true}
+                    , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 100, sort: true }
                     //, { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 120, hide: true}
                     //, { field: '涓氬姟鍛樹唬鐮�', title: '涓氬姟鍛樹唬鐮�', width: 100, hide: true }
                     //, { field: 'HPriority', title: 'HPriority', width: 100, hide: true }
-                    , { field: '浼樺厛绾�', title: '浼樺厛绾�', width: 100 }
-                    , { field: '浜よ揣鍦扮偣', title: '浜よ揣鍦扮偣', width: 100 }
+                    , { field: '浼樺厛绾�', title: '浼樺厛绾�', width: 100, sort: true}
+                    , { field: '浜よ揣鍦扮偣', title: '浜よ揣鍦扮偣', width: 100, sort: true}
                     //, { field: 'HPSStyleID', title: 'HPSStyleID', hide: true }
-                    , { field: '閲囪喘鏂瑰紡浠g爜', title: '閲囪喘鏂瑰紡浠g爜', width: 120 }
-                    , { field: '閲囪喘鏂瑰紡', title: '閲囪喘鏂瑰紡', width: 100 }
+                    , { field: '閲囪喘鏂瑰紡浠g爜', title: '閲囪喘鏂瑰紡浠g爜', width: 120, sort: true}
+                    , { field: '閲囪喘鏂瑰紡', title: '閲囪喘鏂瑰紡', width: 100, sort: true}
                     //, { field: 'HSSID', title: 'HSSID', hide: true }
-                    , { field: '缁撶畻鏂瑰紡浠g爜', title: '缁撶畻鏂瑰紡浠g爜', width: 120 }
-                    , { field: '缁撶畻鏂瑰紡', title: '缁撶畻鏂瑰紡', width: 100 }
-                    , { field: '缁撶畻鏃ユ湡', title: '缁撶畻鏃ユ湡', width: 120, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.缁撶畻鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+                    , { field: '缁撶畻鏂瑰紡浠g爜', title: '缁撶畻鏂瑰紡浠g爜', width: 120, sort: true}
+                    , { field: '缁撶畻鏂瑰紡', title: '缁撶畻鏂瑰紡', width: 100, sort: true}
+                    , { field: '缁撶畻鏃ユ湡', title: '缁撶畻鏃ユ湡', width: 120, sort: true, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.缁撶畻鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
                     //, { field: 'HCurID', title: 'HCurID', hide: true }
-                    , { field: '甯佸埆浠g爜', title: '甯佸埆浠g爜', width: 100 }
-                    , { field: '甯佸埆', title: '甯佸埆', width: 100 }
-                    , { field: '姹囩巼', title: '姹囩巼', width: 100 }
+                    , { field: '甯佸埆浠g爜', title: '甯佸埆浠g爜', width: 100, sort: true}
+                    , { field: '甯佸埆', title: '甯佸埆', width: 100, sort: true}
+                    , { field: '姹囩巼', title: '姹囩巼', width: 100, sort: true}
                     //, { field: 'HDeptID', title: 'HDeptID', hide: true }
-                    , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜', width: 100 }
-                    , { field: '閮ㄩ棬', title: '閮ㄩ棬', width: 100 }
+                    , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜', width: 100, sort: true}
+                    , { field: '閮ㄩ棬', title: '閮ㄩ棬', width: 100, sort: true}
                     //, { field: 'HManagerID', title: 'HManagerID', hide: true }
-                    , { field: '涓荤浠g爜', title: '涓荤浠g爜', width: 100 }
-                    , { field: '涓荤', title: '涓荤', width: 100 }
+                    , { field: '涓荤浠g爜', title: '涓荤浠g爜', width: 100, sort: true}
+                    , { field: '涓荤', title: '涓荤', width: 100, sort: true}
                     //, { field: 'HEmpID', title: 'HEmpID', hide: true }
-                    , { field: '鎽樿', title: '鎽樿', width: 100 }
-                    , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞', width: 100 }
+                    , { field: '鎽樿', title: '鎽樿', width: 100, sort: true}
+                    , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞', width: 100, sort: true}
                     //, { field: 'hsubid', title: 'hsubid', hide: true }
                     //, { field: 'HMaterID', title: 'HMaterID', hide: true }
-                    , { field: '鍗曚环', title: '鍗曚环', width: 100 }
-                    , { field: '閲戦', title: '閲戦', width: 100 }
-                    , { field: '绋庣巼', title: '绋庣巼', width: 100 }
-                    , { field: '绋庨', title: '绋庨', width: 100 }
-                    , { field: '浠风◣鍚堣', title: '浠风◣鍚堣', width: 100 }
-                    , { field: '浜よ揣鏃ユ湡', title: '浜よ揣鏃ユ湡', width: 120, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.浜よ揣鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
-                    , { field: '璁″垝璺熻釜鍙�', title: '璁″垝璺熻釜鍙�', width: 100 }
-                    , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', width: 100 }
-                    , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 100 }
-                    , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 120, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
-                    , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 100 }
-                    , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 120, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
-                    , { field: '淇敼浜�', title: '淇敼浜�', width: 100 }
-                    , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 120, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
-                    , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 100 }
-                    , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 120, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
-                    , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 100 }
-                    , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 120, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.浣滃簾鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+                    , { field: '鍗曚环', title: '鍗曚环', width: 100, sort: true}
+                    , { field: '閲戦', title: '閲戦', width: 100, sort: true}
+                    , { field: '绋庣巼', title: '绋庣巼', width: 100, sort: true}
+                    , { field: '绋庨', title: '绋庨', width: 100, sort: true}
+                    , { field: '浠风◣鍚堣', title: '浠风◣鍚堣', width: 100, sort: true}
+                    , { field: '浜よ揣鏃ユ湡', title: '浜よ揣鏃ユ湡', width: 120, sort: true, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.浜よ揣鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+                    , { field: '璁″垝璺熻釜鍙�', title: '璁″垝璺熻釜鍙�', width: 100, sort: true}
+                    , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', width: 100, sort: true}
+                    , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 100, sort: true}
+                    , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 120, sort: true, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+                    , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 100, sort: true}
+                    , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 120, sort: true, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+                    , { field: '淇敼浜�', title: '淇敼浜�', width: 100, sort: true}
+                    , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 120, sort: true, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+                    , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 100, sort: true}
+                    , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 120, sort: true, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+                    , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 100, sort: true}
+                    , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 120, sort: true, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.浣滃簾鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
 
                 ];
                 option = {
@@ -404,7 +406,7 @@
                     , cols: [columns]
                     , limits: [500, 5000, 20000]
                     , done: function (res, curr, count) {
-
+                        soulTable.render(this);
                     }
                 };
                 ////璁剧疆鍒楀
@@ -1134,7 +1136,7 @@
                 }
                 var urlStr = window.document.location.pathname;//鑾峰彇鏂囦欢璺緞
                 var urlLen = urlStr.split('/');
-                for (var i = 0; i <= urlLen.length - 4; i++) {
+                for (var i = 0; i < urlLen.length - 4; i++) {
                     contentUrl += "../";
                 }
                 colName = encodeURI(colName.substring(0, colName.length - 1));//瀵� URI 杩涜缂栫爜

--
Gitblit v1.9.1