From b742f00aac8e1e1bb628232383c35e67f4a41e4e Mon Sep 17 00:00:00 2001
From: cwjbxqmz <1134865194@qq.com>
Date: 星期五, 26 一月 2024 15:21:28 +0800
Subject: [PATCH] 1

---
 WebTM/views/生产工序管理/委外工序派工单/WW_EntrustProcSendWorkBillList.html |  305 ++++++++++++++++----------------------------------
 1 files changed, 97 insertions(+), 208 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/WW_EntrustProcSendWorkBillList.html" "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/WW_EntrustProcSendWorkBillList.html"
index 16df174..a4a4602 100644
--- "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/WW_EntrustProcSendWorkBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/WW_EntrustProcSendWorkBillList.html"
@@ -6,9 +6,10 @@
     <meta name="renderer" content="webkit">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-      <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
+    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
     <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
     <script src="../../../layuiadmin/layui/layui.js"></script>
+    <script src="../../../layuiadmin/soulTable.slim.js"></script>
 </head>
 <body>
 
@@ -138,12 +139,13 @@
                         <div class="layui-btn-container">
                             <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>棰勮</button>-->
                             <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>鍒锋柊</button>
-                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>纭</button>
-                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>椹冲洖</button>
-                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>璇︽儏</button>
-                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>鐢熸垚閫佽揣鍗�</button>
-                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>閫�鍑�</button>-->
-                             <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Pushdown"><i class="layui-icon layui-icon-form"></i>涓嬫帹濮斿姹囨姤鍗�</button>
+    <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>纭</button>
+    <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>椹冲洖</button>
+    <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>璇︽儏</button>
+    <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>鐢熸垚閫佽揣鍗�</button>
+    <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>閫�鍑�</button>-->
+                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Pushdown"><i class="layui-icon layui-icon-form"></i>涓嬫帹濮斿姹囨姤鍗�</button>
+                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-PushdownZC"><i class="layui-icon layui-icon-form"></i>涓嬫帹濮斿杞嚭鍗�</button>
                         </div>
                     </script>
                 </div>
@@ -206,13 +208,14 @@
             base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
         }).extend({
             index: 'lib/index' //涓诲叆鍙fā鍧�
-        }).use(['index', 'form', 'laydate', 'code', 'table', 'element', 'layer'], function () {
+        }).use(['index', 'form', 'laydate', 'code', 'table', 'element', 'layer','soulTable'], function () {
             var $ = layui.$
                 , admin = layui.admin
                 , layer = layui.layer
                 , laydate = layui.laydate
                 , table = layui.table
                 , form = layui.form
+                , soulTable = layui.soulTable
                 , element = layui.element;
             //甯歌鐢ㄦ硶
             laydate.render({
@@ -236,76 +239,69 @@
                 // , where: { msg: "", NowPage: 1, OnePage: 10 }
                 , cellMinWidth: 100
                 , cols: [[
-                    //{ checkbox: true, fixed: true }
                     { type: 'checkbox', fixed: 'left' }
                     , { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
                     , { field: '鏃ユ湡', title: '鏃ユ湡', sort: true, width: 120 }
                     , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
-                    , { field: 'HDeptID ', title: 'HDeptID', width: 105 }
-                    , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜' }
-                    , { field: '閮ㄩ棬', title: '閮ㄩ棬' }
-                    , { field: 'HMaterID', title: 'HMaterID' }
-                    , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜' }
-                    , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 115 }
-                    , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 115 }
-                    , { field: 'HUnitID', title: 'HUnitID' }
-                    , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 160 }
-                    , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 160 }
-                    , { field: 'HSupID', title: 'HSupID', width: 160 }
-                    , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 160 }
-                    , { field: '渚涘簲鍟嗗悕绉�', title: '渚涘簲鍟嗗悕绉�', width: 160 }
-                    , { field: 'HprocID ', title: 'HprocID', width: 215 }
-                    ////, { field: 'hunitid', title: 'hunitid' }
-                    , { field: '宸ュ簭浠g爜 ', title: '宸ュ簭浠g爜 ', width: 115 }
-                    , { field: '宸ュ簭', title: '宸ュ簭' }
-                    ////, { field: 'hempid', title: 'hempid' }
-                    , { field: 'HGroupID	', title: 'HGroupID', width: 100 }
-                    , { field: '鐝粍浠g爜', title: '鐝粍浠g爜' }
-                    , { field: '鐝粍鍚嶇О', title: '鐝粍鍚嶇О' }
-                    , { field: 'HSourceID', title: 'HSourceID' }
-                    , { field: '璧勬簮浠g爜', title: '璧勬簮浠g爜' }
-                    ////, { field: 'HCenterID', title: 'HCenterID' }
-                    , { field: '鐢熶骇璧勬簮', title: '鐢熶骇璧勬簮' }
-                    , { field: 'HWorkerID ', title: 'HWorkerID' }
-                    ////, { field: 'hbomid', title: 'hbomid' }
-                    , { field: '鑱屽憳浠g爜', title: '鑱屽憳浠g爜' }
-                    ////, { field: 'HRoutingInterID', title: 'HRoutingInterID' }
-                    , { field: '鑱屽憳	', title: '鑱屽憳' }
-                    , { field: 'hsubid', title: 'hsubid', hide: true }
-                    , { field: '鏁伴噺', title: '鏁伴噺' }
-                    , { field: '璁″垝寮�宸ユ棩鏈�', title: '璁″垝寮�宸ユ棩鏈�' }
-                    , { field: '璁″垝瀹屽伐鏃ユ湡', title: '璁″垝瀹屽伐鏃ユ湡' }
-                    , { field: '璁″垝宸ユ椂', title: '璁″垝宸ユ椂' }
-                    , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞' }
-                    , { field: 'HICMOInterID', title: 'HICMOInterID ' }
-                    , { field: '鐢熶骇浠诲姟鍗曞彿', title: '鐢熶骇浠诲姟鍗曞彿' }
-                    , { field: 'HSeOrderInterID', title: 'HSeOrderInterID' }
-                    , { field: '閿�鍞鍗曞彿', title: '閿�鍞鍗曞彿' }
-                    ////, { field: 'hsubid', title: 'hsubid' }
-                    , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞' }
-                    , { field: '鍒跺崟浜�', title: '鍒跺崟浜�' }
-                    , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡' }
-                    , { field: '瀹℃牳浜�', title: '瀹℃牳浜�' }
-                    , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡' }
-                    , { field: '淇敼浜�', title: '淇敼浜� ' }
-                    , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡' }
-                    , { field: '鍏抽棴浜�', title: '鍏抽棴浜�' }
-                    , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡' }
-                    , { field: '浣滃簾浜�', title: '浣滃簾浜�' }
-                    , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡' }
-                    , { field: '婧愬崟涓诲唴鐮�', title: '婧愬崟涓诲唴鐮�' }
-                    , { field: '婧愬崟瀛愬唴鐮�', title: '婧愬崟瀛愬唴鐮�' }
-                    , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿' }
-                    , { field: '婧愬崟绫诲瀷', title: '婧愬崟绫诲瀷' }
-                    , { field: '琛屽叧闂汉', title: '琛屽叧闂汉' }
-                    , { field: 'HBillType', title: 'HBillType' }
-                    , { field: 'HQtyDecimal', title: 'HQtyDecimal' }
-                    , { field: 'HPriceDecimal', title: 'HPriceDecimal' }
+                    , { field: 'HDeptID ', title: 'HDeptID', width: 105, sort: true }
+                    , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜', sort: true }
+                    , { field: '閮ㄩ棬', title: '閮ㄩ棬', sort: true }
+                    , { field: 'HMaterID', title: 'HMaterID', sort: true }
+                    , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', sort: true }
+                    , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 115, sort: true }
+                    , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 115, sort: true }
+                    , { field: 'HUnitID', title: 'HUnitID', sort: true }
+                    , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 160, sort: true }
+                    , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 160, sort: true }
+                    , { field: 'HSupID', title: 'HSupID', width: 160, sort: true }
+                    , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 160, sort: true }
+                    , { field: '渚涘簲鍟嗗悕绉�', title: '渚涘簲鍟嗗悕绉�', width: 160, sort: true }
+                    , { field: 'HprocID ', title: 'HprocID', width: 215, sort: true }
+                    , { field: '宸ュ簭浠g爜 ', title: '宸ュ簭浠g爜 ', width: 115, sort: true }
+                    , { field: '宸ュ簭', title: '宸ュ簭', sort: true }
+                    , { field: 'HGroupID	', title: 'HGroupID', width: 100, sort: true }
+                    , { field: '鐝粍浠g爜', title: '鐝粍浠g爜', sort: true }
+                    , { field: '鐝粍鍚嶇О', title: '鐝粍鍚嶇О', sort: true }
+                    , { field: 'HSourceID', title: 'HSourceID', sort: true }
+                    , { field: '璧勬簮浠g爜', title: '璧勬簮浠g爜', sort: true }
+                    , { field: '鐢熶骇璧勬簮', title: '鐢熶骇璧勬簮', sort: true }
+                    , { field: 'HWorkerID ', title: 'HWorkerID', sort: true }
+                    , { field: '鑱屽憳浠g爜', title: '鑱屽憳浠g爜', sort: true }
+                    , { field: '鑱屽憳	', title: '鑱屽憳', sort: true }
+                    , { field: 'hsubid', title: 'hsubid', hide: true, sort: true }
+                    , { field: '鏁伴噺', title: '鏁伴噺', sort: true }
+                    , { field: '璁″垝寮�宸ユ棩鏈�', title: '璁″垝寮�宸ユ棩鏈�', sort: true }
+                    , { field: '璁″垝瀹屽伐鏃ユ湡', title: '璁″垝瀹屽伐鏃ユ湡', sort: true }
+                    , { field: '璁″垝宸ユ椂', title: '璁″垝宸ユ椂', sort: true }
+                    , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', sort: true }
+                    , { field: 'HICMOInterID', title: 'HICMOInterID ', sort: true }
+                    , { field: '鐢熶骇浠诲姟鍗曞彿', title: '鐢熶骇浠诲姟鍗曞彿', sort: true }
+                    , { field: 'HSeOrderInterID', title: 'HSeOrderInterID', sort: true }
+                    , { field: '閿�鍞鍗曞彿', title: '閿�鍞鍗曞彿', sort: true }
+                    , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞', sort: true }
+                    , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', sort: true }
+                    , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', sort: true }
+                    , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', sort: true }
+                    , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', sort: true }
+                    , { field: '淇敼浜�', title: '淇敼浜� ', sort: true }
+                    , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', sort: true }
+                    , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', sort: true }
+                    , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', sort: true }
+                    , { field: '浣滃簾浜�', title: '浣滃簾浜�', sort: true }
+                    , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', sort: true }
+                    , { field: '婧愬崟涓诲唴鐮�', title: '婧愬崟涓诲唴鐮�', sort: true }
+                    , { field: '婧愬崟瀛愬唴鐮�', title: '婧愬崟瀛愬唴鐮�', sort: true }
+                    , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', sort: true }
+                    , { field: '婧愬崟绫诲瀷', title: '婧愬崟绫诲瀷', sort: true }
+                    , { field: '琛屽叧闂汉', title: '琛屽叧闂汉', sort: true }
+                    , { field: 'HBillType', title: 'HBillType', sort: true }
+                    , { field: 'HQtyDecimal', title: 'HQtyDecimal', sort: true }
+                    , { field: 'HPriceDecimal', title: 'HPriceDecimal', sort: true }
                 ]]
                 //, skin: 'row' //琛ㄦ牸椋庢牸
                 // , even: true
                 , page: true //鏄惁鏄剧ず鍒嗛〉
-                , limits: [10, 20, 50, 100]
+                , limits: [50, 500, 5000, 20000]
                 , limit: 50 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
                 //, height: 500
                 , done: function (res, curr, count) {
@@ -350,147 +346,40 @@
 
                         }
                         break;
-                    //case 'btn-getCheckData':
-                    //    var data = checkStatus.data;
-                    //    layer.alert(JSON.stringify(data));
-                    //    break;
-                    ////case 'getCheckLength':
-                    ////    var data = checkStatus.data;
-                    ////    layer.msg('閫変腑浜嗭細' + data.length + ' 涓�');
-                    ////    break;
-                    ////case 'isAll':
-                    ////    layer.msg(checkStatus.isAll ? '鍏ㄩ��' : '鏈叏閫�');
-                    ////    break;
 
-                    //鑷畾涔夊ご宸ュ叿鏍忓彸渚у浘鏍� - 鎻愮ず
-                    //case 'btn-reload':
-                    //    _cur_page = $(".layui-laypage-em").next().html();
-                    //    RoadHBillNo(sql);
-                    //    break;
-                    //case 'btn-confirm':
-                    //    var checkStatus = table.checkStatus('mainTable')
-                    //        , data = checkStatus.data;
-                    //    _cur_page = $(".layui-laypage-em").next().html();
-                    //    if (data[0]["鐘舵��"] == "鏈‘璁�") {
-                    //        layer.confirm('鏄惁纭鍗曟嵁?', { icon: 3, title: '鎻愮ず' }, function (index) {
-                    //            $.ajax({
-                    //                type: "get",
-                    //                url: GetWEBURL() + "POOrderAccept",
-                    //                data: { "HInterID": data[0]["hmainid"].toString(), "HBillNo": data[0]["鍗曟嵁鍙�"].toString(), "HUser": sessionStorage["HUserName"] },
-                    //                success: function (result) {
-                    //                    if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                    //                        layer.msg(result.Message, { icon: 1 });
-                    //                        RoadHBillNo(sql);
-                    //                    }
-                    //                    else {
-                    //                        // $("#verifycode").click();
-                    //                        layer.msg(result.Message, { icon: 5 });
-                    //                    }
-                    //                    layer.closeAll("loading");
-                    //                }
-                    //            })
+                    case 'btn-PushdownZC':
+                        var checkStatus = table.checkStatus('mainTable')
+                            , data = checkStatus.data;
+                        ajaxLabelData = data;
+                        var rows = '';
+                        var HEntry = '';
+                        for (var i = 0; i < data.length; i++) {
+                            rows += data[i].hmainid.toString() + ',';
 
-                    //            layer.close(index);
-                    //        });
+                        }
 
-                    //    }
-                    //    else {
-                    //        layer.msg("蹇呴』鏄湭纭鍗曟嵁鎵嶈兘杩涜纭鎿嶄綔锛�", { icon: 5 });
-                    //    }
-                    //    break;
-                    //case 'btn-back':
-                    //    var checkStatus = table.checkStatus('mainTable')
-                    //        , data = checkStatus.data;
-                    //    _cur_page = $(".layui-laypage-em").next().html();
-                    //    var HBackRemark;
-                    //    if (data[0]["鐘舵��"] == "鏈‘璁�") {
+                        if (checkStatus.data.length < 1) {
+                            layer.msg('璇烽�夋嫨涓�琛屾暟鎹笅鎺�');
+                        } else {
+                            //椤甸潰灞�
+                            layer.open({
+                                type: 2 //Page灞傜被鍨�
+                                , area: ['100%', '100%']
+                                , title: '鏂板濮斿杞嚭鍗�'
+                                , shade: 0.6 //閬僵閫忔槑搴�
+                                , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                                , content: ['../濮斿宸ュ簭璁″垝杞嚭鍗�/WW_Add_EntrustProcessSendOutBill.html?HInterID=' + data[0].hmainid.toString() + '&lentryid=' + rows.toString().substring(0, rows.length - 1), 'yes']
+                                , resize: false
+                                , cancel: function () {
+                                    //$(".layui-btn").removeClass("layui-btn-disabled");
+                                }
 
-                    //        layer.prompt({
-                    //            formType: 2,
-                    //            //value: '',
-                    //            title: '璇疯緭鍏ラ┏鍥炵悊鐢�',
-                    //            area: ['400px', '200px'] //鑷畾涔夋枃鏈煙瀹介珮
-                    //        }, function (value, index, elem) {
-                    //            HBackRemark = value.toString();
-                    //            $.ajax({
-                    //                type: "get",
-                    //                url: GetWEBURL() + "POOrderRefuse",
-                    //                data: { "HInterID": data[0]["hmainid"].toString(), "HBillNo": data[0]["鍗曟嵁鍙�"].toString(), "HUser": sessionStorage["HUserName"], "HBackRemark": HBackRemark },
-                    //                success: function (result) {
-                    //                    if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                    //                        layer.msg("鎷掔粷鎴愬姛锛�", { icon: 1 });
-                    //                        RoadHBillNo(sql);
-                    //                    }
-                    //                    else {
-                    //                        // $("#verifycode").click();
-                    //                        layer.msg(result.Message, { icon: 5 });
-                    //                    }
-                    //                    layer.closeAll("loading");
-                    //                }
-                    //            })
-                    //            //alert(value); //寰楀埌value
-                    //            layer.close(index);
-                    //        });
+                            });
 
-                    //    }
-                    //    else {
-                    //        layer.msg("蹇呴』鏄湭纭鍗曟嵁鎵嶈兘杩涜椹冲洖鎿嶄綔锛�", { icon: 5 });
-                    //    }
-                    //    break;
-                    //case 'btn-details':
-                    //    var checkStatus = table.checkStatus('mainTable')
-                    //        , data = checkStatus.data;
-
-                    //    var linterid = data[0].hmainid.toString();
-                    //    //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
-                    //    layer.open({
-                    //        type: 2
-                    //        , area: ['100%', '100%']
-                    //        , title: '閲囪喘璁㈠崟'
-                    //        , shade: 0.6 //閬僵閫忔槑搴�
-                    //        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                    //        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                    //        , content: '../../../src/views/SRM/SRM_POOrderBill.html?linterid=' + linterid
-                    //        , resize: false
-                    //        , cancel: function () {
-                    //            //$(".layui-btn").removeClass("layui-btn-disabled");
-                    //        }
-                    //    })
-                    //    break;
-                    //case 'btn-generate':
-                    //    var checkStatus = table.checkStatus('mainTable')
-                    //        , data = checkStatus.data;
-                    //    ajaxLabelData = data;
-                    //    var rows = '';
-                    //    var HEntry = '';
-                    //    for (var i = 0; i < data.length; i++) {
-                    //        if (data[i]["鐘舵��"] == "宸茬‘璁�") {
-                    //            rows += data[i].hmainid.toString() + ',' + data[i].hsubid.toString() + ';';
-                    //        }
-                    //        else {
-                    //            HEntry += (i + 1) + ',';
-                    //        }
-                    //    }
-                    //    if (HEntry != '') {
-                    //        HEntry = HEntry.substring(0, HEntry.length - 1);
-                    //        layer.msg("绗�" + HEntry + "琛屾湭纭锛�", { icon: 5 });
-                    //    }
-                    //    else {
-                    //        layer.open({
-                    //            type: 2
-                    //            , area: ['100%', '100%']
-                    //            , title: '閫佽揣鍗�'
-                    //            , shade: 0.6 //閬僵閫忔槑搴�
-                    //            , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
-                    //            , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                    //            , content: ['../../views/SRM/SRM_POInStockBill_Edit.html?linterid=' + data[0].hmainid.toString() + '&lentryid=' + rows.toString() + '&lSourceBillType=1102', 'yes']
-                    //            , resize: false
-                    //            //, cancel: function () {
-                    //            //    $(".layui-btn").removeClass("layui-btn-disabled");
-                    //            //}
-                    //        })
-                    //    }
-                    //    break;
+                        }
+                        break;
+                      
                     case 'btn-exit':
                         //var index = parent.layer.getFrameIndex(window.name);
                         //element.tabDelete('layadmin-layout-tabs', this);
@@ -509,7 +398,7 @@
                     type: "get",
                     url: GetWEBURL() + "/Sc_ProcessMangement/MES_WW_EntrustProcSendWorkBill_Json",
                     async: true,
-                    data: { "sqlWhere": sqlWhere },//"HSupNo": sessionStorage["HUserName"],
+                    data: { "sqlWhere": sqlWhere, "user": sessionStorage["HUserName"] },//"HSupNo": sessionStorage["HUserName"],
                     success: function (result) {
                         if (result.count == 1) {
                             ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
@@ -521,7 +410,7 @@
                             }
                             , loading: false
                             , done: function (index, res) {
-
+                                soulTable.render(this);
                             }
                         });
                         } else {

--
Gitblit v1.9.1