From a442e2c4bd43c15bba79e44c0673311ce7918b5a Mon Sep 17 00:00:00 2001
From: zgq <519541279@qq.com>
Date: 星期五, 09 四月 2021 08:25:46 +0800
Subject: [PATCH] 委外工序发出完善-合并

---
 WebTM/views/生产工序管理/工序计划单/Sc_ProcessPlanList.html |  135 ++++++++++++++++++++++++++++++---------------
 1 files changed, 90 insertions(+), 45 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\350\256\241\345\210\222\345\215\225/Sc_ProcessPlanList.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\350\256\241\345\210\222\345\215\225/Sc_ProcessPlanList.html"
index 114d5fa..a086c9d 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\350\256\241\345\210\222\345\215\225/Sc_ProcessPlanList.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\350\256\241\345\210\222\345\215\225/Sc_ProcessPlanList.html"
@@ -112,56 +112,91 @@
                 , cols: [[
                     { type: 'checkbox' }
                     //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 }
-                     , { field: 'HInterID', title: 'HInterID', sort: true, fixed: true, hide: true }
-                    ,{ field: 'HDate', title: '鏃ユ湡', sort: true, width: 120 }
-                    , { field: 'HBillNo', title: '鍗曟嵁鍙�', sort: true, width: 170 }
+                     , { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
+                    ,{ field: '鏃ユ湡', title: '鏃ユ湡', sort: true, width: 120 }
+                    , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
                     //, { field: 'HBillStatus ', title: '鍗曟嵁鐘舵��', width: 105 }
-                    , { field: 'HICMOBillNo', title: '浠诲姟鍗曞彿' }
+                    , { field: 'HMaterID', title: 'HMaterID' }
                     ////, { field: 'hunitid', title: 'hunitid' }
-                    , { field: 'HMaterID ', title: '浜у搧ID ', width: 115 }
-                    , { field: 'HMaterNumber', title: '浜у搧浠g爜' }
+                    , { field: '鐗╂枡浠g爜 ', title: '鐗╂枡浠g爜 ', width: 115 }
+                    , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О' }
                     ////, { field: 'hempid', title: 'hempid' }
-                    , { field: 'HUnitID', title: '鍗曚綅ID', width: 100 }
+                    , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 100 }
                     , { field: 'HUnitNumber', title: '鍗曚綅浠g爜' }
-                    , { field: 'HPlanQty', title: '璁″垝鏁伴噺' }
-                    , { field: 'HPlanBeginDate', title: '璁″垝寮�宸ユ棩鏈�' }
-                    , { field: 'HPlanEndDate', title: '璁″垝瀹屽伐鏃ユ湡' }
+                    , { field: '鍗曚綅', title: '鍗曚綅' }
+                    , { field: 'hunitid', title: 'hunitid' }
+                    , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜' }
                     ////, { field: 'HCenterID', title: 'HCenterID' }
-                    , { field: 'HExplanation', title: '鎽樿' }
-                    , { field: 'HRemark ', title: '澶囨敞' }
+                    , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅' }
+                    , { field: '鐢熶骇鏁伴噺 ', title: '鐢熶骇鏁伴噺' }
                     ////, { field: 'hbomid', title: 'hbomid' }
-                    , { field: 'HInnerBillNo', title: '鍐呴儴鍗曟嵁鍙�' }
-                    , { field: 'HSupID', title: '濮斿鍔犲伐鍗曚綅' }
-                    , { field: 'HMarker', title: '妫�楠屼汉' }
-                    , { field: 'HBacker', title: '閫�鍥炰汉' }
-                    , { field: 'HBackDate', title: '閫�鍥炴棩鏈�' }
-                    , { field: 'HChecker', title: '瀹℃牳浜�' }
-                    , { field: 'HCheckDate', title: '瀹℃牳鏃ユ湡' }
-                    , { field: 'HMaker', title: '鍒跺崟浜�' }
-                    , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡' }
-                    , { field: 'HUpDater', title: '淇敼浜�' }
-                    , { field: 'HUpDateDate', title: '淇敼鏃ユ湡' }
-                    , { field: 'HCloseMan', title: '鍏抽棴浜�' }
-                    , { field: 'HCloseDate', title: '鍏抽棴鏃ユ湡' }
-                    , { field: 'HCloseType', title: '鍏抽棴绫诲瀷' }
+                    , { field: '璁″垝寮�宸ユ棩鏈�', title: '璁″垝寮�宸ユ棩鏈�' }
+                    , { field: '璁″垝瀹屽伐鏃ユ湡', title: '璁″垝瀹屽伐鏃ユ湡' }
+                    , { field: '鎽樿', title: '鎽樿' }
+                    , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞' }
+                    , { field: '鍐呴儴鍗曟嵁鍙�', title: '鍐呴儴鍗曟嵁鍙�' }
+                    , { field: 'hicmointerid', title: 'hicmointerid' }
+                    , { field: '浠诲姟鍗曞彿', title: '浠诲姟鍗曞彿' }
+                    , { field: '鍒跺崟浜�', title: '鍒跺崟浜�' }
+                    , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡' }
+                    , { field: '瀹℃牳浜�', title: '瀹℃牳浜�' }
+                    , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡' }
+                    , { field: '淇敼浜�', title: '淇敼浜�' }
+                    , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡' }
+                    , { field: '鍏抽棴浜�', 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: '璁″垝璺熻釜鍙�' }
+                    , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡' }
+                    , { field: '鍏抽棴绫诲瀷', title: '鍏抽棴绫诲瀷' }
+                    , { field: '浣滃簾浜�', title: '浣滃簾浜�' }
+                    , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡' }
+                    , { field: 'hsubid', title: 'hsubid'  , fixed: true, hide: true}
+                    , { field: '宸ュ簭璁″垝鍗曞彿', title: '宸ュ簭璁″垝鍗曞彿' }
+                    , { field: '宸ュ簭鍙�', title: '宸ュ簭鍙�' }
+                    , { field: 'hprocid', title: 'hprocid' }
+                    , { field: '宸ュ簭浠g爜', title: '宸ュ簭浠g爜' }
+                    , { field: '宸ュ簭', title: '宸ュ簭' }
+                    , { field: '鍔犲伐璇存槑', title: '鍔犲伐璇存槑' }
+                    , { field: '寮�宸ュ浐澶�', title: '寮�宸ュ浐澶�' }
+                    , { field: '寮�宸ュ浐鏁�', title: '寮�宸ュ浐鏁�' }
+                    , { field: 'HCenterID', title: 'HCenterID' }
+                    , { field: '宸ヤ綔涓績浠g爜', title: '宸ヤ綔涓績浠g爜' }
+                    , { field: '宸ヤ綔涓績', title: '宸ヤ綔涓績' }
+                    , { field: 'HDeptID', title: 'HDeptID' }
+                    , { field: '鍔犲伐杞﹂棿浠g爜', title: '鍔犲伐杞﹂棿浠g爜' }
+                    , { field: '鍔犲伐杞﹂棿', title: '鍔犲伐杞﹂棿' }
+                    , { field: 'HGroupID', title: 'HGroupID' }
+                    , { field: '鐝粍浠g爜', title: '鐝粍浠g爜' }
+                    , { field: '鐝粍鍚嶇О', title: '鐝粍鍚嶇О' }
+                    , { field: 'HWorkerID', title: 'HWorkerID' }
+                    , { field: '鎿嶄綔鍛樹唬鐮�', title: '鎿嶄綔鍛樹唬鐮�' }
+                    , { field: '鎿嶄綔鍛�', title: '鎿嶄綔鍛�' }
+                    , { field: 'HSourceID', title: 'HSourceID' }
+                    , { field: '璧勬簮浠g爜', title: '璧勬簮浠g爜' }
+                    , { 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' }
+                    , { field: '閿�鍞鍗曞瓙ID', title: '閿�鍞鍗曞瓙ID' }
+                    , { field: '閿�鍞鍗曞彿', title: '閿�鍞鍗曞彿' }
+                    , { field: 'HBillType', title: 'HBillType' }
+                    , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷' }
+                    , { field: 'HBillSubType', title: 'HBillSubType' }
+                    , { field: 'HQtyDecimal', title: 'HQtyDecimal' }
+                    , { field: 'HPriceDecimal', title: 'HPriceDecimal' }
+                
                      //,{fixed: 'right', title:'鎿嶄綔', toolbar: '#barDemo', width:150}
                 ]]
             };
@@ -199,6 +234,11 @@
                         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('璇烽�夋嫨涓�琛屾暟鎹笅鎺�');
@@ -213,7 +253,7 @@
 				               ,shade: 0.6 //閬僵閫忔槑搴�
 				               ,maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
                     , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                    , content: ['../宸ュ簭娲惧伐鍗�/Sc_Add_ProcessSendWork.html?HInterID=' + data[0].HInterID.toString(),'yes']
+                    , content: ['../宸ュ簭娲惧伐鍗�/Sc_Add_ProcessSendWork.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");
@@ -224,7 +264,12 @@
                         }
                         break;
                     case 'add':
-                        layer.msg('娣诲姞');
+                        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('');

--
Gitblit v1.9.1