From 90f4e6774b6e72e4674f514b80281b5e2829e4e0 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 09 五月 2023 10:33:17 +0800
Subject: [PATCH] 流转卡编辑进去染色要求改为可修改 物料列表 、生产订单列表、工艺路线列表、流转卡列表 ,过滤条款把物料代码。物料名称。规格型号放在最上面不需要点更多去查看

---
 WebTM/views/生产管理/生产任务单/Sc_ICMOBillList.html |  237 +++++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 183 insertions(+), 54 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\344\273\273\345\212\241\345\215\225/Sc_ICMOBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\344\273\273\345\212\241\345\215\225/Sc_ICMOBillList.html"
index d81acb8..2091d32 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\344\273\273\345\212\241\345\215\225/Sc_ICMOBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\344\273\273\345\212\241\345\215\225/Sc_ICMOBillList.html"
@@ -29,14 +29,11 @@
                                 </div>
                                 <div class="layui-row">
                                     <div class="layui-inline">
-                                        <label class="layui-form-label">鐢熶骇杞﹂棿</label>
+                                        <label class="layui-form-label">瑙勬牸鍨嬪彿</label>
                                         <div class="layui-input-block">
-                                            <select name="HDeptName" id="HDeptName" lay-verify="required" lay-search class="layui-input">
-
-                                                <!--鍔ㄦ�佹覆鏌撹溅闂�-->
-                                            </select>
+                                            <input type="text" class="layui-input" name="HModel" id="HModel">
                                         </div>
-                                    </div>
+                                    </div>                                   
                                     <div class="layui-inline">
                                         <label class="layui-form-label">涓氬姟鐘舵��</label>
                                         <div class="layui-input-block">
@@ -59,24 +56,27 @@
                                         <div class="layui-input-block" style="margin-top:10px">
                                             <select name="HSF" id="HSF" lay-verify="required" lay-search class="layui-input">
                                                 <!--  <option value="鍏ㄩ儴">鍏ㄩ儴</option>-->
-                                                <option value="鍏ㄩ儴">鍏ㄩ儴</option>
+                                                <option value="鍏ㄩ儴" selected="selected">鍏ㄩ儴</option>
                                                 <option value="宸蹭笅鎺�">宸蹭笅鎺�</option>
-                                                <option value="鏈笅鎺�"  selected="selected">鏈笅鎺�</option>
+                                                <option value="鏈笅鎺�" >鏈笅鎺�</option>
                                             </select>
                                         </div>
                                     </div>
                                 </div>
                                 <div class="layui-row">
                                     <div class="layui-inline">
-                                        <label class="layui-form-label">寮�濮嬫棩鏈�</label>
+                                        <label class="layui-form-label">鐗╂枡缂栫爜</label>
                                         <div class="layui-input-block">
-                                            <input type="date" class="layui-input" id="HDate">
+                                            <input type="text" class="layui-input" name="HMaterName" id="HMaterName">
                                         </div>
                                     </div>
                                     <div class="layui-inline">
-                                        <label class="layui-form-label">缁撴潫鏃ユ湡</label>
+                                        <label class="layui-form-label">鐢熶骇杞﹂棿</label>
                                         <div class="layui-input-block">
-                                            <input type="date" class="layui-input" id="HDate1">
+                                            <select name="HDeptName" id="HDeptName" lay-verify="required" lay-search class="layui-input">
+
+                                                <!--鍔ㄦ�佹覆鏌撹溅闂�-->
+                                            </select>
                                         </div>
                                     </div>
                                     <div class="layui-inline">
@@ -88,7 +88,7 @@
                                     <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
                                         <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                     </button>
-                                    <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>             
+                                    <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>
                                 </div>
                                 <div class="layui-colla-content">
                                     <div class="layui-row">
@@ -98,12 +98,7 @@
                                                 <input type="text" class="layui-input" name="HBillType" id="HBillType">
                                             </div>
                                         </div>
-                                        <div class="layui-inline">
-                                            <label class="layui-form-label">鐗╂枡缂栫爜</label>
-                                            <div class="layui-input-block">
-                                                <input type="text" class="layui-input" name="HMaterName" id="HMaterName">
-                                            </div>
-                                        </div>
+                                        
                                         <div class="layui-inline">
                                             <label class="layui-form-label">鍞竴ID</label>
                                             <div class="layui-input-block">
@@ -146,6 +141,19 @@
                                             </div>
                                         </div>
                                         <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">閲嶆柊鍚屾</button>
+
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label">寮�濮嬫棩鏈�</label>
+                                            <div class="layui-input-block">
+                                                <input type="date" class="layui-input" id="HDate">
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label">缁撴潫鏃ユ湡</label>
+                                            <div class="layui-input-block">
+                                                <input type="date" class="layui-input" id="HDate1">
+                                            </div>
+                                        </div>
                                     </div>
                                 </div>
                             </div>
@@ -158,14 +166,17 @@
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>閫�鍑�</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>鍒楄缃�</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill_pl"><i class="layui-icon layui-icon-form"></i>鎵归噺涓嬫帹</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill_dh"><i class="layui-icon layui-icon-form"></i>澶氳涓嬫帹</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>鏂板</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Edit"><i class="layui-icon layui-icon-form"></i>缂栬緫</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_copy"><i class="layui-icon layui-icon-form"></i>澶嶅埗</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew_NT"><i class="layui-icon layui-icon-file-b"></i>鏂板(鏃犲垪琛�)</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Edit_NT"><i class="layui-icon layui-icon-form"></i>缂栬緫(鏃犲垪琛�)</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_copy_NT"><i class="layui-icon layui-icon-form"></i>澶嶅埗(鏃犲垪琛�)</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CheckBill"><i class="layui-icon layui-icon-form"></i>瀹℃牳</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AbandonCheck"><i class="layui-icon layui-icon-form"></i>鍙嶅鏍�</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>鍒犻櫎</button>
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Excel"><i class="layui-icon layui-icon-file-b"></i>Excel瀵煎叆</button>
+                                <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_Excel"><i class="layui-icon layui-icon-file-b"></i>Excel瀵煎叆</button>-->
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="get-view"><i class="layui-icon layui-icon-tips"></i>棰勮</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="get-print"><i class="layui-icon layui-icon-print"></i>鎵撳嵃</button>
                             </div>
@@ -246,17 +257,26 @@
                     //鎵归噺涓嬫帹
                     case 'set_ShowBill_pl': set_ShowBill_pl(); //set_ShowBill_pl
                         break;
+                    //澶氳涓嬫帹
+                    case 'set_ShowBill_dh': set_ShowBill_dh();
+                        break;
                     //鏂板
                     case 'set_AddNew': set_AddNew();
                         break;
                     //缂栬緫
                     case 'set_Edit': set_Edit();
                         break;
+                    //澶嶅埗
+                    case 'set_copy': set_copy();
+                        break;
                     //鏂板(鏃犲垪琛�)
                     case 'set_AddNew_NT': set_AddNew_NT();
                         break;
                     //缂栬緫(鏃犲垪琛�)
                     case 'set_Edit_NT': set_Edit_NT();
+                        break;
+                    //澶嶅埗(鏃犲垪琛�)
+                    case 'set_copy_NT': set_copy_NT();
                         break;
                     //瀹℃牳
                     case 'set_CheckBill': set_CheckBill();
@@ -407,67 +427,71 @@
                     , toolbar: '#toolbarDemo'
                     , height: 'full-50'
                     , page: true
-                    , cellMinWidth: 90
+                    , cellMinWidth: 'auto'
                     , totalRow: true
                     , limit: 50
                     , limits: [50, 500, 5000, 20000]
                     , cols: [[
                         { type: 'checkbox', fixed: 'left', totalRowText: '鍚堣' }
-                        , { field: 'hmainid', title: 'hmainid', sort: true, width: 165, hide: true }
-                        , { field: 'HEntryID', title: 'HEntryID', sort: true, width: 165, hide: true }
-                        , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
-                        , { field: '鐘舵��', title: '鐘舵��', sort: true, width: 170 }
-                        , { field: '鍞竴ID', title: '鍞竴ID', sort: true, width: 170 }
-                        , { field: '鏄惁涓嬫帹鐢熸垚娴佽浆鍗�', title: '鏄惁涓嬫帹鐢熸垚娴佽浆鍗�', sort: true, width: 170 }
+                        , { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
+                        , { field: 'HEntryID', title: 'HEntryID', sort: true, hide: true }
                         , { field: '鏃ユ湡', title: '鏃ユ湡' }
-                        , { field: '浜у搧浠g爜', title: '浜у搧浠g爜', width: 160 }
-                        , { field: '浜у搧鍚嶇О', title: '浜у搧鍚嶇О', width: 160 }
-                        , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 215 }
-                        , { field: '鐢熶骇杞﹂棿浠g爜', title: '鐢熶骇杞﹂棿浠g爜', width: 115 }
-                        , { field: '鐢熶骇杞﹂棿', title: '鐢熶骇杞﹂棿', width: 115 }
-                        , { field: '鐢熶骇浠诲姟鍗曟暟閲�', title: '鐢熶骇璁㈠崟鏁伴噺', width: 115, totalRow: true }
-                        , { field: '鍖呰鏍囪瘑浠g爜', title: '鍖呰鏍囪瘑浠g爜', width: 115 }
-                        , { field: '鍖呰鏍囪瘑', title: '鍖呰鏍囪瘑', width: 115 }
-                        , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 115 }
+                        , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true }
+                        , { field: '浜у搧浠g爜', title: '浜у搧浠g爜' }
+                        , { field: '浜у搧鍚嶇О', title: '浜у搧鍚嶇О'}
+                        , { field: '瀹㈡埛', title: '瀹㈡埛' }
+                        , { field: '涓氬姟鍛�', title: '涓氬姟鍛�' }
+                        , { field: 'HWidth', title: '闂ㄥ箙' }
+                        , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿' }
+                        , { field: '鐢熶骇浠诲姟鍗曟暟閲�', title: '鐢熶骇璁㈠崟鏁伴噺', totalRow: true }
                         , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅' }
+                        , { field: '鏄惁涓嬫帹鐢熸垚娴佽浆鍗�', title: '鏄惁涓嬫帹鐢熸垚娴佽浆鍗�', sort: true }
+                        , { field: '鍒跺崟浜�', title: '鍒跺崟浜�' }
+                        , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡' }
+                        , { field: '鐘舵��', title: '鐘舵��', sort: true }
+                        //, { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 115 }
+                        , { field: 'HAuxQty', title: '杈呮暟閲�' }
+                        , { field: 'HAuxUnitName', 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: '鍏抽棴浜�', title: '鍏抽棴浜�' }
                         , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡' }
+                        , { field: '鍞竴ID', title: '鍞竴ID', sort: true, }
+                        , { field: '鐢熶骇杞﹂棿浠g爜', title: '鐢熶骇杞﹂棿浠g爜'  }
+                        , { field: '鐢熶骇杞﹂棿', title: '鐢熶骇杞﹂棿',  }
+                        , { field: '鍖呰鏍囪瘑浠g爜', title: '鍖呰鏍囪瘑浠g爜' }
+                        , { field: '鍖呰鏍囪瘑', title: '鍖呰鏍囪瘑',  }
+                        , { field: '榻愬鏁伴噺', title: '榻愬鏁伴噺' }
+                        , { field: '璁″垝鐢熶骇鏁伴噺', title: '璁″垝鐢熶骇鏁伴噺' }
+                        , { field: '鍏宠仈鏁伴噺', title: '鍏宠仈鏁伴噺' }
+                        , { field: '鏈叧鑱旀暟閲�', title: '鏈叧鑱旀暟閲�' }
+                        , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞' }
                         //, { field: '浣滃簾浜�', title: '浣滃簾浜�', hide: true }
                         //, { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', hide: true }
                         //, { field: '閿�鍞鍗曟棩鏈�', title: '閿�鍞鍗曟棩鏈�', sort: true, width: 120, hide: true }
-                       
-                        , { field: '閿�鍞鍗曟棩鏈�', title: '閿�鍞鍗曟棩鏈�', sort: true, width: 200 }
-                        , { field: '閿�鍞鍗曠紪鍙�', title: '閿�鍞鍗曠紪鍙�', sort: true, width: 200 }
-                        , { field: '閿�鍞墿鏂欏悕绉�', title: '閿�鍞墿鏂欏悕绉�', sort: true, width: 200 }
-                        , { field: '鍖呰鏂瑰紡', title: '鍖呰鏂瑰紡', sort: true, width: 150 }
-                        , { field: '閿�鍞暟閲�', title: '閿�鍞暟閲�', sort: true, width: 150 }
-                        , { field: '閿�鍞鍗曡仈绯讳汉', title: '閿�鍞鍗曡仈绯讳汉', sort: true, width: 150 }
-                        , { field: '涓氬姟鐘舵��', title: '涓氬姟鐘舵��', sort: true, width: 150 }
+                        , { 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, width: 120, hide: true }
                         //, { field: 'HDeptID', title: 'HDeptID', hide: true}
                         //, { field: 'HMaterID', title: 'HMaterID', hide: true }
                         //, { field: 'hunitid', title: 'hunitid', hide: true }
                         //, { field: 'hempid', title: 'hempid' , hide: true}
                         //, { field: '涓氬姟鍛樹唬鐮�', title: '涓氬姟鍛樹唬鐮�', width: 100, hide: true}
-                        //, { field: '涓氬姟鍛�', title: '涓氬姟鍛�', hide: true}
+                       
                         //, { field: 'hcusid', title: 'hcusid', hide: true }
                         //, { field: '瀹㈡埛浠g爜', title: '瀹㈡埛浠g爜', hide: true }
-                        //, { field: '瀹㈡埛', title: '瀹㈡埛', hide: true }
+                      
                         //, { field: 'HCenterID', title: 'HCenterID' , hide: true}
                         //, { field: '宸ヤ綔涓績浠g爜', title: '宸ヤ綔涓績浠g爜', hide: true}
                         //, { field: '宸ヤ綔涓績', title: '宸ヤ綔涓績', hide: true}
@@ -485,6 +509,22 @@
                         //, { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', hide: true}
                         //, { field: '璁″垝璺熻釜鍙�', title: '璁″垝璺熻釜鍙�', hide: true}
                     ]]
+                    , done: function (res, curr, count) {
+                        var $data = $('div[lay-id="mainTable"]').find('.layui-table-body').find('tr').eq(0).find('td');
+                        var $head = $('div[lay-id="mainTable"]').find('.layui-table-header').find('tr').eq(0).find('th');
+                        var $total = $('div[lay-id="mainTable"]').find('.layui-table-total').find('tr').eq(0).find('td');
+                        for (var i = 0; i < $data.length; i++) {
+                            var l1 = $data.eq(i).find('div').width();
+                            var l2 = $head.eq(i).find('div').width();
+                            if (l1 > l2) {
+                                $head.eq(i).find('div').width(l1);
+                                $total.eq(i).find('div').width(l1);
+                            } else {
+                                $data.eq(i).find('div').width(l2);
+                                $total.eq(i).find('div').width(l2);
+                            }
+                        }
+                    }
                 };
             }
 
@@ -531,6 +571,7 @@
                 var HStatus = $("#HStatus").val();//鍗曟嵁鍙�
                 var HBillType = $("#HBillType").val();//鍗曟嵁绫诲瀷
                 var HSF = $("#HSF").val();//鍗曟嵁绫诲瀷
+                var HModel = $("#HModel").val();//瑙勬牸鍨嬪彿
                 var ColName = $("#ColName").val();//澶嶉�夋
                 var Comparator = $("#Comparator").val()
                 var ColContent = $("#ColContent").val();
@@ -602,6 +643,9 @@
                 }
                 if (HErpID) {
                     sWhere += " and 鍞竴ID like '%" + HErpID + "%'";
+                } 
+                if (HModel) {
+                    sWhere += " and 瑙勬牸鍨嬪彿 like '%" + HModel + "%'";
                 }
                 //if (HSF) {
                 //    sWhere += " and 鏄惁涓嬫帹鐢熸垚娴佽浆鍗� like '%" + HSF + "%'";
@@ -621,6 +665,7 @@
                 $("#HMaterName").val("");//鍗曟嵁鍙�
                 $("#HDeptName").val("");//鍗曟嵁鍙�
                 $("#HStatus").val("");//鍗曟嵁鍙�
+                $("#HModel").val("");//瑙勬牸鍨嬪彿
                 $("#btnSearch").click();
                 $("#ColContent").val("");
                 $("#ColName").val("0");
@@ -689,6 +734,43 @@
                 }
             }
 
+            //澶氳鎵归噺涓嬫帹鍗曟嵁
+            function set_ShowBill_dh() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (data.length != 0) {
+                    layer.confirm("纭瑕佷笅鎺ㄥ悧?", function (index) {
+                        var wait = layer.load();
+                        var hmainid = [];
+                        for (var i = 0; i < checkStatus.data.length; i++) {
+                            var linterid = data[i].hmainid.toString();
+                            var HEntryID = data[i].HEntryID.toString();
+                            hmainid.push(linterid + "|" + HEntryID);
+                        }
+                       
+                        $.ajax({
+                            url: GetWEBURL() + '/Sc_ICMOBill/Sc_ICMOReportBill_dh',
+                            type: "GET",
+                            data: { "HInterID": hmainid.toString(), "user": sessionStorage["HUserName"], "OrganizationID": sessionStorage["OrganizationID"]  },
+                            success: function (result) {
+                                if (result.count == 1) {
+                                    layer.alert(result.Message);
+                                    layer.close(wait);
+                                } else {
+                                    layer.alert(result.code + result.Message, { icon: 5 });
+                                    layer.close(wait);
+                                }
+                            }, error: function () {
+                                layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                                layer.close(wait);
+                            }
+                        });
+                    })
+                } else {
+                    layer.msg('璇烽�夋嫨鏁版嵁涓嬫帹锛�');
+                }
+            }
+
             //鏂板
             function set_AddNew() {
                 layer.open({
@@ -718,6 +800,29 @@
                         , title: '鐢熶骇璁㈠崟缂栬緫'
                         , shift: 0//寮瑰嚭鍔ㄧ敾
                         , content: '../鐢熶骇浠诲姟鍗�/Sc_ICMOBillEdit.html?OperationType=3&linterid=' + linterid +''
+                        , end: function () {
+                            //鍒锋柊椤甸潰,
+                            location.reload();
+                        }
+                    })
+                } else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+                }
+            }
+
+            // 澶嶅埗
+            function set_copy() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    var linterid = data[0].hmainid;
+
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鐢熶骇璁㈠崟缂栬緫'
+                        , shift: 0//寮瑰嚭鍔ㄧ敾
+                        , content: '../鐢熶骇浠诲姟鍗�/Sc_ICMOBillEdit.html?OperationType=2&linterid=' + linterid + ''
                         , end: function () {
                             //鍒锋柊椤甸潰,
                             location.reload();
@@ -758,6 +863,30 @@
                         , title: '鐢熶骇璁㈠崟缂栬緫'
                         , shift: 0//寮瑰嚭鍔ㄧ敾
                         , content: '../鐢熶骇浠诲姟鍗�/Sc_ICMOBillEdit_NoTable.html?OperationType=3&linterid=' + linterid + '&HEntryID=' + HEntryID
+                        , end: function () {
+                            //鍒锋柊椤甸潰,
+                            location.reload();
+                        }
+                    })
+                } else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+                }
+            }
+
+            // 澶嶅埗(鏃犲垪琛�)
+            function set_copy_NT() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    var linterid = data[0].hmainid;
+                    var HEntryID = data[0].hsubid;
+
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鐢熶骇璁㈠崟缂栬緫'
+                        , shift: 0//寮瑰嚭鍔ㄧ敾
+                        , content: '../鐢熶骇浠诲姟鍗�/Sc_ICMOBillEdit_NoTable.html?OperationType=2&linterid=' + linterid + '&HEntryID=' + HEntryID
                         , end: function () {
                             //鍒锋柊椤甸潰,
                             location.reload();
@@ -857,7 +986,7 @@
             //#region 鍒锋柊
             function get_Refresh() {
                 set_ClearQuery();
-                get_Display(sWhere);
+                get_FastQuery();
             }
             //#endregion
 

--
Gitblit v1.9.1