From ebef191888d9d2c2a2e7a7f677189164e4eef0b3 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期二, 05 八月 2025 19:04:33 +0800
Subject: [PATCH] 车间委外接收单列表bug处理

---
 WebTM/views/Baseset/基础资料/Sc_ProcessExchangeBillListView.html |  283 +++++++++++++++++++++++++++++++++-----------------------
 1 files changed, 167 insertions(+), 116 deletions(-)

diff --git "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Sc_ProcessExchangeBillListView.html" "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Sc_ProcessExchangeBillListView.html"
index 007052a..563d6a2 100644
--- "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Sc_ProcessExchangeBillListView.html"
+++ "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Sc_ProcessExchangeBillListView.html"
@@ -13,12 +13,12 @@
     <div class="layui-fluid">
         <div class="layui-card">
             <div class="layui-card-body" style="padding: 15px;">
-                <form class="layui-form" action="" lay-filter="component-form-group">
+                <form class="layui-form" action="" lay-filter="component-form-group" onsubmit="return false;">
                     <div class="layui-form-item">
                         <div class="layui-inline">
                             <label class="layui-form-label">杩囨护鍒�</label>
                             <div class="layui-input-inline">
-                                <input type="text" name="Value" id="Value" lay-verify="Value" autocomplete="off" placeholder="璇疯緭鍏ヨ繃婊ゅ垪" class="layui-input">
+                                <input type="text" class="layui-input" name="Value" id="Value" lay-verify="Value" value="" placeholder="璇疯緭鍏ヨ繃婊ゅ垪" autocomplete="off">
                             </div>
                             <button type="button" lay-submit="" class="layui-btn" lay-filter="HQuery">蹇�熸煡璇�</button>
                             <button type="button" lay-submit="" class="layui-btn" lay-filter="FH">杩斿洖</button>
@@ -28,18 +28,25 @@
             </div>
         </div>
     </div>
-    <table class="layui-hide" id="mainTable"></table>
+    <table class="" id="mainTable" lay-filter="mainTable"></table>
     <script src="../../../layuiadmin/layui/layui.js"></script>
     <script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
     <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
     <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
+    <script src="../../../layuiadmin/PubCustom.js"></script>
     <script>
         //寮曠敤鐨勫崟鎹強妯″潡锛氬伐搴忔祦杞崱銆�
         layui.use(['table', 'form', 'layer'], function () {
             var table = layui.table
-            , form = layui.form
-            , layer = layui.layer;
+                , form = layui.form
+                , layer = layui.layer;
 
+            var sWhere = "";
+
+            var params = get_UrlVars();
+            var HProcID = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 宸ュ簭id
+            var HSourceID = params[params[1]]; //浠庡弬鏁颁腑鑾峰彇 鐢熶骇璧勬簮id
+            var HMaterID = params[params[2]];//浠庡弬鏁颁腑鑾峰彇鐗╂枡ID
             form.on('submit(HQuery)', function () {//閫夋嫨鍗曚綅
                 //var sMainStr = JSON.stringify(table.cache['mainTable']);
                 RoadQuery($('#Value').val());
@@ -47,132 +54,176 @@
             form.on('submit(FH)', function () {//閫夋嫨鍗曚綅
                 //var sMainStr = JSON.stringify(table.cache['mainTable']);
                 var checkStatus = table.checkStatus('mainTable')
-                 , data = checkStatus.data;
+                    , data = checkStatus.data;
                 parent.GetProcessExchangeValue(data);
                 var index = parent.layer.getFrameIndex(window.name);
                 parent.layer.close(index);
             });
             RoadQuery($('#Value').val());
+
+            //#region 鍙屽嚮杩斿洖鏁版嵁
+            table.on('rowDouble(mainTable)', function (obj) {
+                var data = [];
+                data.push(obj.data);
+                parent.GetProcExValue(data);
+                var index = parent.layer.getFrameIndex(window.name);
+                parent.layer.close(index);
+            });
+            //#endregion
+
+
+            //#region 鐐瑰嚮琛岄�変腑楂樹寒
+            table.on('row(mainTable)', function (obj) {
+                //閫変腑琛屾敼鍙橀鑹�
+                var flag = !obj.tr.find(':checkbox:first').prop('checked');
+                obj.tr.find(':checkbox').prop('checked', flag);
+                if (flag) {
+                    obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked');  //璁剧疆澶嶉�夋閫変腑鏍峰紡
+                    $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//鏀瑰彉褰撳墠tr鑳屾櫙棰滆壊鍜屽瓧浣撻鑹�
+                } else {
+                    obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//鍙栨秷澶嶉�夋閫変腑鏍峰紡
+                    $(obj.tr.selector).attr({ "style": "background:" });//鍙栨秷褰撳墠tr棰滆壊
+                }
+                //mainTable 涓鸿〃鏍糏D   娉ㄦ剰姝ゅ濡傛灉ID涓嶆纭皢瀵艰嚧浣犲湪鐩戝惉澶嶉�夋鏃惰幏鍙栦笉鍒颁綘閫夋嫨鐨勬暟鎹紝鍓嶉潰鐨勫彧鏄坊鍔犳垨鍒犻櫎閫変腑鏈�変腑鏍峰紡浠ュ強璁剧疆鑳屾櫙鑹诧紝瀛椾綋棰滆壊
+                layui.each(table.cache.mainTable, function (i, l) {
+                    if (obj.tr.index() == l.LAY_TABLE_INDEX) {
+                        l.LAY_CHECKED = flag;
+                    }
+                });
+            })
+            //#endregion
+           
+
             table.render({
                 elem: '#mainTable'
                 // , url: '/demo/table/user/'
-               , data: []
-              , cellMinWidth: 80 //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
-              , cols: [[
-                  { type: 'radio' }
-                  , { field: 'hmainid', width: 150, title: 'hmainid', hide: true }
-                  , { field: 'hicmointerid', width: 150, title: 'hicmointerid', hide: true }
-                  , { field: 'HICMOEntryID', width: 150, title: 'HICMOEntryID', hide: true }
-                  , { field: 'HWorkShopID', width: 150, title: 'HWorkShopID', hide: true }
-                  , { field: 'HMaterID', width: 150, title: 'HMaterID', hide: true }
-                  , { field: 'HUnitID', width: 150, title: 'HUnitID', hide: true }
-                  , { field: 'HSupID', width: 150, title: 'HSupID', hide: true }
-                  , { field: 'hsubid', width: 150, title: 'hsubid', hide: true }
-                  , { field: 'HProcID', width: 150, title: 'HProcID', hide: true }
-                  , { field: 'HCenterID', width: 150, title: 'HCenterID', hide: true }
-                  , { field: 'HDeptID', width: 150, title: 'HDeptID', hide: true }
-                  , { field: 'HGroupID', width: 150, title: 'HGroupID', hide: true }
-                  , { field: 'HWorkerID', width: 150, title: 'HWorkerID', hide: true }
-                  , { field: 'HSourceID', width: 150, title: 'HSourceID', hide: true }
-                  , { field: 'HBillType', width: 150, title: 'HBillType', hide: true }
-                  , { field: '鏃ユ湡', width: 150, title: '鏃ユ湡' }
-                  , { field: '鍗曟嵁鍙�', width: 150, title: '鍗曟嵁鍙�' }
-                  , { field: '浠诲姟鍗曞彿', width: 150, title: '浠诲姟鍗曞彿' }
-                  , { field: '鐢熶骇璁㈠崟鍙�', width: 150, title: '鐢熶骇璁㈠崟鍙�' }
-                  , { field: '鐢熶骇杞﹂棿浠g爜', width: 150, title: '鐢熶骇杞﹂棿浠g爜' }
-                  , { field: '鐢熶骇杞﹂棿', width: 150, title: '鐢熶骇杞﹂棿' }
-                  , { field: '浜у搧浠g爜', width: 150, title: '浜у搧浠g爜' }
-                  , { field: '浜у搧', width: 150, title: '浜у搧' }
-                  , { field: '瑙勬牸鍨嬪彿', width: 150, title: '瑙勬牸鍨嬪彿' }
-                  , { field: '鎵瑰彿', width: 150, title: '鎵瑰彿' }
-                  , { field: '鍗曚綅浠g爜', width: 150, title: '鍗曚綅浠g爜' }
-                  , { field: '鍗曚綅', width: 150, title: '鍗曚綅' }
-                  , { field: '鐢熶骇鏁伴噺', width: 150, title: '鐢熶骇鏁伴噺' }
-                  , { field: '浠诲姟鍗曟暟閲�', width: 150, title: '浠诲姟鍗曟暟閲�' }
-                  , { field: '璁㈠崟璺熻釜鍙�', width: 150, title: '璁㈠崟璺熻釜鍙�' }
-                  , { field: '璁″垝寮�宸ユ棩鏈�', width: 150, title: '璁″垝寮�宸ユ棩鏈�' }
-                  , { field: '璁″垝瀹屽伐鏃ユ湡', width: 150, title: '璁″垝瀹屽伐鏃ユ湡' }
-                  , { field: '鎽樿', width: 150, title: '鎽樿' }
-                  , { field: '鍐呴儴鍗曟嵁鍙�', width: 150, title: '鍐呴儴鍗曟嵁鍙�' }
-                  , { field: '濮斿璁㈠崟鍐呯爜', width: 150, title: '濮斿璁㈠崟鍐呯爜' }
-                  , { field: '濮斿璁㈠崟瀛愬唴鐮�', width: 150, title: '濮斿璁㈠崟瀛愬唴鐮�' }
-                  , { field: '濮斿璁㈠崟鍙�', width: 150, title: '濮斿璁㈠崟鍙�' }
-                  , { field: '渚涘簲鍟嗕唬鐮�', width: 150, title: '渚涘簲鍟嗕唬鐮�' }
-                  , { field: '渚涘簲鍟�', width: 150, title: '渚涘簲鍟�' }
-                  , { field: '濮斿鍔犲伐鍗曚綅', width: 150, title: '濮斿鍔犲伐鍗曚綅' }
-                  , { field: '琛ㄥご澶囨敞', width: 150, title: '琛ㄥご澶囨敞' }
-                  , { field: '宸ュ簭鍙�', width: 150, title: '宸ュ簭鍙�' }
-                  , { field: '宸ュ簭浠g爜', width: 150, title: '宸ュ簭浠g爜' }
-                  , { field: '宸ュ簭', width: 150, title: '宸ュ簭' }
-                  , { field: '鍔犲伐璇存槑', width: 150, title: '鍔犲伐璇存槑' }
-                  , { field: '宸ヤ綔涓績浠g爜', width: 150, title: '宸ヤ綔涓績浠g爜' }
-                  , { field: '宸ヤ綔涓績', width: 150, title: '宸ヤ綔涓績' }
-                  , { field: '鍔犲伐杞﹂棿浠g爜', width: 150, title: '鍔犲伐杞﹂棿浠g爜' }
-                  , { field: '鍔犲伐杞﹂棿', width: 150, title: '鍔犲伐杞﹂棿' }
-                  , { field: '鐝粍浠g爜', width: 150, title: '鐝粍浠g爜' }
-                  , { field: '鐝粍', width: 150, title: '鐝粍' }
-                  , { field: '鎿嶄綔宸ヤ唬鐮�', width: 150, title: '鎿嶄綔宸ヤ唬鐮�' }
-                  , { field: '鎿嶄綔宸�', width: 150, title: '鎿嶄綔宸�' }
-                  , { field: '鐢熶骇璧勬簮浠g爜', width: 150, title: '鐢熶骇璧勬簮浠g爜' }
-                  , { field: '鐢熶骇璧勬簮', width: 150, title: '鐢熶骇璧勬簮' }
-                  , { field: '璁″垝鏁伴噺', width: 150, title: '璁″垝鏁伴噺' }
-                  , { field: '娴佽浆鍗℃暟閲�', width: 150, title: '娴佽浆鍗℃暟閲�' }
-                  , { field: '鏃堕棿鍗曚綅', width: 150, title: '鏃堕棿鍗曚綅' }
-                  , { field: '宸ュ簭璁″垝鍔犲伐鏃堕棿', width: 150, title: '宸ュ簭璁″垝鍔犲伐鏃堕棿' }
-                  , { field: '瀛愯鍒掑紑宸ユ棩鏈�', width: 150, title: '瀛愯鍒掑紑宸ユ棩鏈�' }
-                  , { field: '瀛愯鍒掑畬宸ユ棩鏈�', width: 150, title: '瀛愯鍒掑畬宸ユ棩鏈�' }
-                  , { field: '瀹為檯寮�宸ユ棩鏈�', width: 150, title: '瀹為檯寮�宸ユ棩鏈�' }
-                  , { field: '瀹為檯瀹屽伐鏃ユ湡', width: 150, title: '瀹為檯瀹屽伐鏃ユ湡' }
-                  , { field: '寮�宸ヤ綑閲忓ぉ鏁�', width: 150, title: '寮�宸ヤ綑閲忓ぉ鏁�' }
-                  , { field: '寮�宸ヤ綑閲忓浐鏁�', width: 150, title: '寮�宸ヤ綑閲忓浐鏁�' }
-                  , { field: '涓婇亾鍥哄畾澶╂暟', width: 150, title: '涓婇亾鍥哄畾澶╂暟' }
-                  , { field: '鐢熶骇鍛ㄦ湡', width: 150, title: '鐢熶骇鍛ㄦ湡' }
-                  , { field: '鍔犲伐鍗曚环', width: 150, title: '鍔犲伐鍗曚环' }
-                  , { field: '鍔犲伐璐圭敤閲戦', width: 150, title: '鍔犲伐璐圭敤閲戦' }
-                  , { field: '鏈亾宸ュ簭', width: 150, title: '鏈亾宸ュ簭' }
-                  , { field: '棣栭亾宸ュ簭', width: 150, title: '棣栭亾宸ュ簭' }
-                  , { field: '涓嬮亾娴佽浆宸ュ簭', width: 150, title: '涓嬮亾娴佽浆宸ュ簭' }
-                  , { field: '娴佽浆鏍囪', width: 150, title: '娴佽浆鏍囪' }
-                  , { field: '濮斿鏍囪', width: 150, title: '濮斿鏍囪' }
-                  , { field: '琛屽叧闂汉', width: 150, title: '琛屽叧闂汉' }
-                  , { field: '鍏抽棴绫诲瀷', width: 150, title: '鍏抽棴绫诲瀷' }
-                  , { field: '琛ㄤ綋澶囨敞', width: 150, title: '琛ㄤ綋澶囨敞' }
-                  , { field: '鍒跺崟浜�', width: 150, title: '鍒跺崟浜�' }
-                  , { field: '鍒跺崟鏃ユ湡', width: 150, title: '鍒跺崟鏃ユ湡' }
-                  , { field: '瀹℃牳浜�', width: 150, title: '瀹℃牳浜�' }
-                  , { field: '瀹℃牳鏃ユ湡', width: 150, title: '瀹℃牳鏃ユ湡' }
-                  , { field: '淇敼浜�', width: 150, title: '淇敼浜�' }
-                  , { field: '淇敼鏃ユ湡', width: 150, title: '淇敼鏃ユ湡' }
-                  , { field: '鍏抽棴浜�', width: 150, title: '鍏抽棴浜�' }
-                  , { field: '鍏抽棴鏃ユ湡', width: 150, title: '鍏抽棴鏃ユ湡' }
-                  , { field: '浣滃簾浜�', width: 150, title: '浣滃簾浜�' }
-                  , { field: '浣滃簾鏃ユ湡', width: 150, title: '浣滃簾鏃ユ湡' }
-                  , { field: '鎷嗗垎鏁伴噺', width: 150, title: '鎷嗗垎鏁伴噺' }
-                  , { field: '鍓╀綑鏁伴噺', width: 150, title: '鍓╀綑鏁伴噺' }
-                  , { field: '涓嶈壇鍝佸叧鑱旀暟閲�', width: 150, title: '涓嶈壇鍝佸叧鑱旀暟閲�' }
-                  , { field: '杩涚珯鍏宠仈鏁伴噺', width: 150, title: '杩涚珯鍏宠仈鏁伴噺' }
-                  , { field: '鍑虹珯鍏宠仈鏁伴噺', width: 150, title: '鍑虹珯鍏宠仈鏁伴噺' }
-                  , { field: '鎺掑簭鍙�', width: 150, title: '鎺掑簭鍙�' }
-                  , { field: '婧愬崟涓诲唴鐮�', width: 150, title: '婧愬崟涓诲唴鐮�' }
-                  , { field: '婧愬崟瀛愬唴鐮�', width: 150, title: '婧愬崟瀛愬唴鐮�' }
-                  , { field: '婧愬崟鍗曞彿', width: 150, title: '婧愬崟鍗曞彿' }
-                  , { field: '婧愬崟绫诲瀷', width: 150, title: '婧愬崟绫诲瀷' }
-              ]]
-              , page: true
+                , data: []
+                , cellMinWidth: 80 //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
+                , cols: [[
+                    { type: 'check' }
+                    , { field: 'hmainid', width: 150, title: 'hmainid', hide: true }
+                    , { field: 'hicmointerid', width: 150, title: 'hicmointerid', hide: true }
+                    , { field: 'HICMOEntryID', width: 150, title: 'HICMOEntryID', hide: true }
+                    , { field: 'HWorkShopID', width: 150, title: 'HWorkShopID', hide: true }
+                    , { field: 'HMaterID', width: 150, title: 'HMaterID', hide: true }
+                    , { field: 'HUnitID', width: 150, title: 'HUnitID', hide: true }
+                    , { field: 'HSupID', width: 150, title: 'HSupID', hide: true }
+                    , { field: 'hsubid', width: 150, title: 'hsubid', hide: true }
+                    , { field: 'HProcID', width: 150, title: 'HProcID', hide: true }
+                    , { field: 'HCenterID', width: 150, title: 'HCenterID', hide: true }
+                    , { field: 'HDeptID', width: 150, title: 'HDeptID', hide: true }
+                    , { field: 'HGroupID', width: 150, title: 'HGroupID', hide: true }
+                    , { field: 'HWorkerID', width: 150, title: 'HWorkerID', hide: true }
+                    , { field: 'HSourceID', width: 150, title: 'HSourceID', hide: true }
+                    , { field: 'HBillType', width: 150, title: 'HBillType', hide: true }
+                    , { field: '鏃ユ湡', width: 150, title: '鏃ユ湡',templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
+                    , { field: '鍗曟嵁鍙�', width: 170, title: '鍗曟嵁鍙�' }
+                    , { field: '宸ュ簭', width: 140, title: '宸ュ簭' }
+                    , { field: '鐢熶骇璧勬簮', width: 150, title: '鐢熶骇璧勬簮' }
+                    , { field: '宸ヤ綔涓績', width: 150, title: '宸ヤ綔涓績' }
+                    , { field: '浠诲姟鍗曞彿', width: 170, title: '浠诲姟鍗曞彿' }
+                    , { field: '鐢熶骇杞﹂棿', width: 150, title: '鐢熶骇杞﹂棿' }
+                    , { field: '浜у搧浠g爜', width: 150, title: '浜у搧浠g爜' }
+                    , { field: '浜у搧', width: 150, title: '浜у搧' }
+                    , { field: '鎵瑰彿', width: 150, title: '鎵瑰彿' }
+                    , { field: '鐢熶骇璁㈠崟鍙�', width: 170, title: '鐢熶骇璁㈠崟鍙�' }
+                    , { field: '鐢熶骇杞﹂棿浠g爜', width: 150, title: '鐢熶骇杞﹂棿浠g爜' }                                     
+                    , { field: '瑙勬牸鍨嬪彿', width: 150, title: '瑙勬牸鍨嬪彿' }                  
+                    , { field: '鍗曚綅浠g爜', width: 150, title: '鍗曚綅浠g爜' }
+                    , { field: '鍗曚綅', width: 150, title: '鍗曚綅' }
+                    , { field: '鐢熶骇鏁伴噺', width: 150, title: '鐢熶骇鏁伴噺' }
+                    , { field: '浠诲姟鍗曟暟閲�', width: 150, title: '浠诲姟鍗曟暟閲�' }
+                    , { field: '璁㈠崟璺熻釜鍙�', width: 150, title: '璁㈠崟璺熻釜鍙�' }
+                    , { field: '璁″垝寮�宸ユ棩鏈�', width: 150, title: '璁″垝寮�宸ユ棩鏈�' }
+                    , { field: '璁″垝瀹屽伐鏃ユ湡', width: 150, title: '璁″垝瀹屽伐鏃ユ湡' }
+                    , { field: '鎽樿', width: 150, title: '鎽樿' }
+                    , { field: '鍐呴儴鍗曟嵁鍙�', width: 150, title: '鍐呴儴鍗曟嵁鍙�' }
+                    , { field: '濮斿璁㈠崟鍐呯爜', width: 150, title: '濮斿璁㈠崟鍐呯爜' }
+                    , { field: '濮斿璁㈠崟瀛愬唴鐮�', width: 150, title: '濮斿璁㈠崟瀛愬唴鐮�' }
+                    , { field: '濮斿璁㈠崟鍙�', width: 150, title: '濮斿璁㈠崟鍙�' }
+                    , { field: '渚涘簲鍟嗕唬鐮�', width: 150, title: '渚涘簲鍟嗕唬鐮�' }
+                    , { field: '渚涘簲鍟�', width: 150, title: '渚涘簲鍟�' }
+                    , { field: '濮斿鍔犲伐鍗曚綅', width: 150, title: '濮斿鍔犲伐鍗曚綅' }
+                    , { field: '琛ㄥご澶囨敞', width: 150, title: '琛ㄥご澶囨敞' }
+                    , { field: '宸ュ簭鍙�', width: 150, title: '宸ュ簭鍙�' }
+                    , { field: '宸ュ簭浠g爜', width: 150, title: '宸ュ簭浠g爜' }                   
+                    , { field: '鍔犲伐璇存槑', width: 150, title: '鍔犲伐璇存槑' }
+                    , { field: '宸ヤ綔涓績浠g爜', width: 150, title: '宸ヤ綔涓績浠g爜' }
+                    , { field: '宸ヤ綔涓績', width: 150, title: '宸ヤ綔涓績' }
+                    , { field: '鍔犲伐杞﹂棿浠g爜', width: 150, title: '鍔犲伐杞﹂棿浠g爜' }
+                    , { field: '鍔犲伐杞﹂棿', width: 150, title: '鍔犲伐杞﹂棿' }
+                    , { field: '鐝粍浠g爜', width: 150, title: '鐝粍浠g爜' }
+                    , { field: '鐝粍', width: 150, title: '鐝粍' }
+                    , { field: '鎿嶄綔宸ヤ唬鐮�', width: 150, title: '鎿嶄綔宸ヤ唬鐮�' }
+                    , { field: '鎿嶄綔宸�', width: 150, title: '鎿嶄綔宸�' }
+                    , { field: '鐢熶骇璧勬簮浠g爜', width: 150, title: '鐢熶骇璧勬簮浠g爜' }                  
+                    , { field: '璁″垝鏁伴噺', width: 150, title: '璁″垝鏁伴噺' }
+                    , { field: '娴佽浆鍗℃暟閲�', width: 150, title: '娴佽浆鍗℃暟閲�' }
+                    , { field: '鏃堕棿鍗曚綅', width: 150, title: '鏃堕棿鍗曚綅' }
+                    , { field: '宸ュ簭璁″垝鍔犲伐鏃堕棿', width: 150, title: '宸ュ簭璁″垝鍔犲伐鏃堕棿' }
+                    , { field: '瀛愯鍒掑紑宸ユ棩鏈�', width: 150, title: '瀛愯鍒掑紑宸ユ棩鏈�' }
+                    , { field: '瀛愯鍒掑畬宸ユ棩鏈�', width: 150, title: '瀛愯鍒掑畬宸ユ棩鏈�' }
+                    , { field: '瀹為檯寮�宸ユ棩鏈�', width: 150, title: '瀹為檯寮�宸ユ棩鏈�' }
+                    , { field: '瀹為檯瀹屽伐鏃ユ湡', width: 150, title: '瀹為檯瀹屽伐鏃ユ湡' }
+                    , { field: '寮�宸ヤ綑閲忓ぉ鏁�', width: 150, title: '寮�宸ヤ綑閲忓ぉ鏁�' }
+                    , { field: '寮�宸ヤ綑閲忓浐鏁�', width: 150, title: '寮�宸ヤ綑閲忓浐鏁�' }
+                    , { field: '涓婇亾鍥哄畾澶╂暟', width: 150, title: '涓婇亾鍥哄畾澶╂暟' }
+                    , { field: '鐢熶骇鍛ㄦ湡', width: 150, title: '鐢熶骇鍛ㄦ湡' }
+                    , { field: '鍔犲伐鍗曚环', width: 150, title: '鍔犲伐鍗曚环' }
+                    , { field: '鍔犲伐璐圭敤閲戦', width: 150, title: '鍔犲伐璐圭敤閲戦' }
+                    , { field: '鏈亾宸ュ簭', width: 150, title: '鏈亾宸ュ簭' }
+                    , { field: '棣栭亾宸ュ簭', width: 150, title: '棣栭亾宸ュ簭' }
+                    , { field: '涓嬮亾娴佽浆宸ュ簭', width: 150, title: '涓嬮亾娴佽浆宸ュ簭' }
+                    , { field: '娴佽浆鏍囪', width: 150, title: '娴佽浆鏍囪' }
+                    , { field: '濮斿鏍囪', width: 150, title: '濮斿鏍囪' }
+                    , { field: '琛屽叧闂汉', width: 150, title: '琛屽叧闂汉' }
+                    , { field: '鍏抽棴绫诲瀷', width: 150, title: '鍏抽棴绫诲瀷' }
+                    , { field: '琛ㄤ綋澶囨敞', width: 150, title: '琛ㄤ綋澶囨敞' }
+                    , { field: '鍒跺崟浜�', width: 150, title: '鍒跺崟浜�' }
+                    , { field: '鍒跺崟鏃ユ湡', width: 150, title: '鍒跺崟鏃ユ湡' }
+                    , { field: '瀹℃牳浜�', width: 150, title: '瀹℃牳浜�' }
+                    , { field: '瀹℃牳鏃ユ湡', width: 150, title: '瀹℃牳鏃ユ湡' }
+                    , { field: '淇敼浜�', width: 150, title: '淇敼浜�' }
+                    , { field: '淇敼鏃ユ湡', width: 150, title: '淇敼鏃ユ湡' }
+                    , { field: '鍏抽棴浜�', width: 150, title: '鍏抽棴浜�' }
+                    , { field: '鍏抽棴鏃ユ湡', width: 150, title: '鍏抽棴鏃ユ湡' }
+                    , { field: '浣滃簾浜�', width: 150, title: '浣滃簾浜�' }
+                    , { field: '浣滃簾鏃ユ湡', width: 150, title: '浣滃簾鏃ユ湡' }
+                    , { field: '鎷嗗垎鏁伴噺', width: 150, title: '鎷嗗垎鏁伴噺' }
+                    , { field: '鍓╀綑鏁伴噺', width: 150, title: '鍓╀綑鏁伴噺' }
+                    , { field: '涓嶈壇鍝佸叧鑱旀暟閲�', width: 150, title: '涓嶈壇鍝佸叧鑱旀暟閲�' }
+                    , { field: '杩涚珯鍏宠仈鏁伴噺', width: 150, title: '杩涚珯鍏宠仈鏁伴噺' }
+                    , { field: '鍑虹珯鍏宠仈鏁伴噺', width: 150, title: '鍑虹珯鍏宠仈鏁伴噺' }
+                    , { field: '鎺掑簭鍙�', width: 150, title: '鎺掑簭鍙�' }
+                    , { field: '婧愬崟涓诲唴鐮�', width: 150, title: '婧愬崟涓诲唴鐮�' }
+                    , { field: '婧愬崟瀛愬唴鐮�', width: 150, title: '婧愬崟瀛愬唴鐮�' }
+                    , { field: '婧愬崟鍗曞彿', width: 150, title: '婧愬崟鍗曞彿' }
+                    , { field: '婧愬崟绫诲瀷', width: 150, title: '婧愬崟绫诲瀷' }
+                ]]
+                , page: true
+                , limits: [50, 500, 5000, 50000]
+                , limit: 50
             });
             ///鍔犺浇鏄剧ず鏁版嵁
-            function RoadQuery(Where) {
-                var index = layer.load();
-                var Value = Where;
-                if (Value == null) {
-                    Value = '';
+            function RoadQuery(Value) {
+                var index = layer.load();              
+                if (Value != "") {
+                    sWhere = " and 鍗曟嵁鍙� like '%" + Value + "%' ";
+                }
+                if (HProcID != '' && HProcID != undefined && HProcID != 0) {
+                    sWhere += ' and HProcID=' + HProcID
+                }
+                if (HSourceID != '' && HSourceID != undefined && HSourceID != 0) {
+                    sWhere += ' and HSourceID=' + HSourceID + ''
+                }
+                if (HMaterID != '' && HMaterID != undefined && HMaterID != 0) {
+                    sWhere += ' and HMaterID=' + HMaterID
                 }
                 $.ajax({
                     type: "get",
                     url: GetWEBURL() + "/Web/GetSc_ProcessExchangeBillListView",
                     async: true,
-                    data: { "ICMOBill": Value, "OrganizationID": sessionStorage["OrganizationID"] },
-                    //data: { "Value": Value },
+                    data: { "sWhere": sWhere,  "OrganizationID": sessionStorage["OrganizationID"] },
                     success: function (result) {
                         if (result.count == 1) {
                             ajaxReturnData = JSON.parse(JSON.stringify(result)).data;

--
Gitblit v1.9.1