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_EntrustWorkOrderBillMainList.html |  166 ++++++++++++++++++++++++++++++++----------------------
 1 files changed, 98 insertions(+), 68 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\215\225/WW_EntrustWorkOrderBillMainList.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\215\225/WW_EntrustWorkOrderBillMainList.html"
index 3760d8b..3f8d242 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\215\225/WW_EntrustWorkOrderBillMainList.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\215\225/WW_EntrustWorkOrderBillMainList.html"
@@ -65,14 +65,7 @@
                         <table class="" id="mainTable" lay-filter="mainTable"></table>
                         <script type="text/html" id="toolbarDemo">
                             <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>
                             </div>
                         </script>
                     </form>
@@ -80,6 +73,9 @@
             </div>
         </div>
     </div>
+     <script type="text/html" id="barDemo">
+        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="detail">鏌ョ湅</a>
+    </script>
     <script src="../../../layuiadmin/layui/layui.js"></script>
     <script src="../../../layuiadmin/Scripts/json2.js"></script>
     <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
@@ -103,67 +99,47 @@
 
             var option = {
                 elem: '#mainTable'
-                //, toolbar: '#toolbarDemo'
+                , toolbar: '#toolbarDemo'
                 ,height: 'full-50' 
                 , page: true
                 ,cellMinWidth: 90
                 , cols: [[
-                    //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 }
-                      { type: 'checkbox' }
-                    ,{ field: 'HBillType ', title: '鍗曟嵁绫诲瀷', sort: true, width: 120 }
-                    , { field: 'HBillSubType', title: '瀛愮被鍨�', sort: true, width: 170 }
-                    //, { field: 'HBillStatus ', title: '鍗曟嵁鐘舵��', width: 105 }
-                    , { field: 'HDate', title: '鏃ユ湡' }
-                    , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 115 }
-                    , { field: 'HBillStatus', title: '鍗曟嵁鐘舵�侊紙1鏈锛�2瀹℃牳閫氳繃锛�3鍏抽棴锛�4浣滃簾锛�5瀹℃牳閫�鍥�,6瀹℃牳涓�,7宸查槄锛�8宸插洖澶嶏紝9缁撴锛�10楠岃瘉,11涓嬭揪锛�12寮�宸�,13鐢宠瀹℃壒,15鐢宠妫�楠岋紝16 鍒ゅ畾鍚堟牸锛�17鍒ゅ畾涓嶅悎鏍硷級 ', width: 115 }
-                    , { field: 'HCheckItemNowID', title: '褰撳墠瀹℃牳椤圭洰' }
-                    , { field: 'HCheckItemNextID', title: '寰呭鏍搁」鐩�', width: 160 }
-                    , { field: 'HCheckFlowID', title: '瀹℃壒娴�', width: 160 }
-                    , { field: 'HRemark ', title: '澶囨敞', width: 215 }
-                    ////, { field: 'hunitid', title: 'hunitid' }
-                    , { field: 'HBacker ', title: '閫�鍥炰汉', width: 115 }
-                    , { field: 'HBackDate', title: '閫�鍥炴棩鏈�' }
-                    ////, { field: 'hempid', title: 'hempid' }
-                    , { field: 'HBackRemark', title: '閫�鍥炲師鍥�', width: 100 }
-                    , { field: 'HChecker', title: '瀹℃牳浜�' }
-                    , { field: 'HCheckDate', title: '瀹℃牳鏃ユ湡' }
-                    , { field: 'HMaker', title: '鍒跺崟浜�' }
-                    , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡' }
-                    ////, { field: 'HCenterID', title: 'HCenterID' }
-                    , { field: 'HUpDater', title: '淇敼浜�' }
-                    , { field: 'HUpDateDate ', title: '淇敼鏃ユ湡' }
-                    ////, { field: 'hbomid', title: 'hbomid' }
-                    , { field: 'HCloseMan', title: '鍏抽棴浜�' }
-                    ////, { field: 'HRoutingInterID', title: 'HRoutingInterID' }
-                    , { field: 'HCloseDate', title: '鍏抽棴鏃ユ湡' }
-                    , { field: 'HCloseType', title: '鍏抽棴绫诲瀷' }
-                    , { field: 'HDeleteMan', title: '浣滃簾浜�' }
-                    , { field: 'HDeleteDate', title: '浣滃簾鏃ユ湡' }
-                    , { field: 'HMainSourceBillType', title: '婧愬崟绫诲瀷' }
-                    , { field: 'HMainSourceInterID', title: '婧愬崟涓诲唴鐮�' }
-                    , { field: 'HMainSourceEntryID', title: '婧愬崟瀛愬唴鐮�' }
-                    , { field: 'HMainSourceBillNo', title: '婧愬崟鍙�' }
-                    , { field: 'HPrintQty', title: '鎵撳嵃娆℃暟' }
-                    //, { field: 'HCloseDate', title: '鍏抽棴鏃ユ湡' }
-                    //, { field: 'HCloseType', title: '鍏抽棴绫诲瀷' }
-                    //////, { field: 'hsubid', title: 'hsubid' }
-                    //, { field: 'HDeleteMan', title: '浣滃簾浜�' }
-                    //, { field: 'HDeleteDate', 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: '璁″垝璺熻釜鍙�' }
+                     { type: 'checkbox',fixed:'left' }
+                     ,{fixed: 'left', title:'鎿嶄綔', toolbar: '#barDemo', width:200}
+                    , { field: 'hmainid ', title: 'hmainid', width: 105, sort: true, fixed: true, hide: true }
+                    ,{ field: '鏃ユ湡', title: '鏃ユ湡', sort: true, width: 120 }
+                    , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
+                    , { field: 'HDeptID', title: '閮ㄩ棬ID', width: 115 }
+                    , { field: '閮ㄩ棬', title: '閮ㄩ棬' }
+                    , { field: 'HMaterID', title: 'HMaterID' }
+                    , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 160 }
+                    , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 160 }
+                    , { field: '瑙勬牸鍨嬪彿 ', title: '瑙勬牸鍨嬪彿', width: 215 }
+                    , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞' }
+                    , { field: 'hsubid', title: 'hsubid', hide: true }
+                    , { field: 'HEmpID', title: 'HEmpID' }
+                    , { 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: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿' }
+                    , { field: '婧愬崟绫诲瀷', title: '婧愬崟绫诲瀷' }
+                    , { field: '琛屽叧闂汉', title: '琛屽叧闂汉' }
+                    , { field: 'HBillType', title: 'HBillType' }
+                    , { field: 'HBillSubType', title: 'HBillSubType' }
                 ]]
             };
 
@@ -171,7 +147,7 @@
             var index0 = layer.load(0, { shade: false });
             $.ajax({
                 //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
-                url: GetWEBURL() + '/LEMS/MES_WW_EntrustWorkOrderBillMain_Json',
+                url: GetWEBURL() + '/Sc_ProcessMangement/MES_WW_EntrustWorkOrderBillMain_Json',
                 type: "GET",
                 data: { "sWhere": sWhere },
                 success: function (data1) {
@@ -214,11 +190,11 @@
                     sWhere += " and 璁㈠崟璺熻釜鍙� like '%" + HOrderProcNO + "%'";
                 }
                 if (WorkCenter) {
-                    sWhere += " and HBillNo like '%" + WorkCenter + "%'";
+                    sWhere += " and 鍗曟嵁鍙� like '%" + WorkCenter + "%'";
                 }
                 var index = layer.load(0, { shade: false });
                 $.ajax({
-                    url: GetWEBURL() + '/LEMS/MES_WW_EntrustWorkOrderBillMain_Json',
+                    url: GetWEBURL() + '/Sc_ProcessMangement/MES_WW_EntrustWorkOrderBillMain_Json',
                     type: "GET",
                     data: { "sWhere": sWhere },
                     success: function (data1) {
@@ -239,6 +215,60 @@
                 sWhere = "";//璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
             });
 
+               //澶村伐鍏锋爮浜嬩欢
+            table.on('toolbar(mainTable)', function (obj) {
+                var checkStatus = table.checkStatus(obj.config.id);
+                switch (obj.event) {
+                    case 'btn-Pushdown':
+                        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() + ',' ;
+                            
+                        }
+
+                        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_AddEntrustProcSendWork.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");
+                            }
+
+				           });
+  		
+                        }
+                        break;
+                    case 'add':
+                        var date = new Date();
+                        var day = date.getDate();
+                        var month = date.getMonth() + 1;
+                        var year = date.getFullYear();
+                        var shijian = year + "/" + month + "/" + day;
+                        layer.msg(shijian);
+                        break;
+                    case '':
+                        layer.msg('');
+                        break;
+
+                };
+            });
+
 
             //laydate.render({
             //    elem: '#HDate'

--
Gitblit v1.9.1