From ad678c4521ccf8e4ebc18175d412a63ae460c40d Mon Sep 17 00:00:00 2001
From: wyb <1qaz@123>
Date: 星期六, 08 五月 2021 19:10:11 +0800
Subject: [PATCH] 1.增加PDA端的,委外工序计划汇报单模块 2.增加PDA端的,委外工序计划转出单模块 3.增加委外工序计划转出单模块

---
 WebTM/views/生产工序管理/工序派工单/Sc_ProcessSendWorkList.html |  179 +++++++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 117 insertions(+), 62 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\267\245\345\272\217\346\264\276\345\267\245\345\215\225/Sc_ProcessSendWorkList.html" "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/Sc_ProcessSendWorkList.html"
index 9b36ed6..c4528e6 100644
--- "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/Sc_ProcessSendWorkList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/Sc_ProcessSendWorkList.html"
@@ -66,12 +66,13 @@
                         <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-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-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>
@@ -103,73 +104,127 @@
 
             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: 'HDate', title: '鏃ユ湡', sort: true, width: 120 }
-                    , { field: 'HBillNo', title: '鍗曟嵁鍙�', sort: true, width: 170 }
-                    , { field: 'HBillStatus ', title: '鍗曟嵁鐘舵��', width: 105 }
-                    , { field: 'HICMOBillNo', title: '浠诲姟鍗曞彿' }
-                    , { field: 'HCheckItemNowID', title: '褰撳墠瀹℃牳椤圭洰' }
-                    , { field: 'HCheckItemNextID', title: '寰呭鏍搁」鐩�' }
-                    , { field: 'HCheckFlowID', title: '瀹℃壒娴�' }
-                    , { field: 'HICMOInterID', title: '浠诲姟鍗旾D', width: 115 }
-                    , { field: 'HProcPlanBillNo', title: '宸ュ簭璁″垝鍗曞彿', width: 115 }
-                    , { field: 'HPlanBeginDate', title: '宸ュ簭璁″垝寮�宸ユ棩鏈�' }
-                    , { field: 'HPlanEndDate', title: '宸ュ簭璁″垝瀹屽伐鏃ユ湡', width: 160 }
-                    , { field: 'HBatchNo', title: '鎵瑰彿', width: 160 }
-                    , { field: 'HSeOrderInterID ', title: '閿�鍞鍗曚富ID', width: 215 }
-                    ////, { field: 'hunitid', title: 'hunitid' }
-                    , { field: 'HSeOrderEntryID ', title: '閿�鍞瓙ID ', width: 115 }
-                    , { field: 'HSeOrderBillNo', title: '閿�鍞鍗曞彿' }
-                    ////, { field: 'hempid', title: 'hempid' }
-                    , { field: 'HProcID	', title: '宸ュ簭ID', width: 100 }
-                    , { field: 'HProcNumber', title: '宸ュ簭浠g爜' }
-                    , { field: 'HDeptID', title: '閮ㄩ棬ID' }
-                    , { field: 'HDeptNumber', title: '閮ㄩ棬浠g爜' }
-                    , { field: 'HGroupID', title: '鐝粍ID' }
-                    ////, { field: 'HCenterID', title: 'HCenterID' }
-                    , { field: 'HGroupNumber', title: '鐝粍浠g爜' }
-                    , { field: 'HMaterID ', title: '浜у搧ID' }
-                    ////, { field: 'hbomid', title: 'hbomid' }
-                    , { field: 'HMaterNumber', title: '浜у搧浠g爜' }
-                    ////, { field: 'HRoutingInterID', title: 'HRoutingInterID' }
-                    , { field: 'HUnitID	', title: '鍗曚綅ID' }
-                    , { field: 'HUnitNumber', title: '鍗曚綅浠g爜' }
-                    , { field: 'HRoutingInterID', title: '宸ュ簭璺嚎ID' }
-                    , { field: 'HPlanQty', title: '宸ュ簭璁″垝鐢熶骇鏁伴噺' }
-                    , { field: 'HExplanation', title: '鎽樿' }
-                    , { field: 'HInnerBillNo', title: '鍐呴儴鍗曟嵁鍙�' }
-                    , { field: 'HBacker', title: '閫�鍥炰汉' }
-                    , { field: 'HBackDate', title: '閫�鍥炴棩鏈� ' }
-                    , { field: 'HChecker', title: '瀹℃牳浜�' }
-                    , { field: 'HCheckDate', title: '瀹℃牳鏃ユ湡' }
-                    , { field: 'HMaker', title: '鍒跺崟浜�' }
-                    ////, { field: 'hsubid', title: 'hsubid' }
-                    , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡' }
-                    , { field: 'HUpDater', title: '淇敼浜�' }
-                    , { field: 'HUpDateDate', title: '淇敼鏃ユ湡' }
-                    , { field: 'HCloseMan', title: '鍏抽棴浜�' }
-                    , { field: 'HCloseDate', title: '鍏抽棴鏃ユ湡' }
-                    , { field: 'HCloseType', title: '鍏抽棴绫诲瀷 ' }
-                    , { field: 'HDeleteMan', title: '浣滃簾浜�' }
-                    , { field: 'HDeleteDate', title: '浣滃簾鏃ユ湡' }
-                    //, { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡' }
-                    //, { field: 'HDeleteMan', title: '鍏抽棴浜�' }
-                    //, { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡' }
-                    //, { field: '浣滃簾浜�', title: '浣滃簾浜�' }
-                    //, { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡' }
-                    //, { field: '琛屽叧闂汉', title: '琛屽叧闂汉' }
-                    //, { field: '鍏抽棴绫诲瀷', title: '鍏抽棴绫诲瀷' }
-                    //, { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷' }
-                    //, { field: '璁″垝璺熻釜鍙�', title: '璁″垝璺熻釜鍙�' }
+                     { type: 'checkbox' }
+                     ,{ 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: 'HprocID ', title: 'HprocID', width: 215 }
+                    , { field: '宸ュ簭浠g爜 ', title: '宸ュ簭浠g爜 ', width: 115 }
+                    , { field: '宸ュ簭', title: '宸ュ簭' }
+                    , { field: 'HGroupID	', title: 'HGroupID', width: 100 }
+                    , { field: '鐝粍浠g爜', title: '鐝粍浠g爜' }
+                    , { field: '鐝粍鍚嶇О', title: '鐝粍鍚嶇О' }
+                    , { field: 'HSourceID', title: 'HSourceID' }
+                    , { field: '璧勬簮浠g爜', title: '璧勬簮浠g爜' }
+                    , { field: '鐢熶骇璧勬簮', title: '鐢熶骇璧勬簮' }
+                    , { field: 'HWorkerID ', title: 'HWorkerID' }
+                    , { field: '鑱屽憳浠g爜', title: '鑱屽憳浠g爜' }
+                    , { 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: '琛ㄥご澶囨敞', 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' }
+                    
                 ]]
             };
 
+              //澶村伐鍏锋爮浜嬩欢
+            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: ['../宸ュ簭姹囨姤鍗�/Sc_Add_ProcessReportList.html?hinterid=' + data[0].hmainid.toString() + '&lentryid=' + rows.toString().substring(0, rows.length - 1),
+                        '&PlanBeginDate=' + data[0].璁″垝寮�宸ユ棩鏈�.toString(), '&PlanEndDate=' + data[0].璁″垝瀹屽伐鏃ユ湡.toString(),
+
+                        '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;
+
+                };
+            });
+
             //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
             var index0 = layer.load(0, { shade: false });
             $.ajax({

--
Gitblit v1.9.1