From d96116bd8ccf131bcd9d6773ff25449d514b7881 Mon Sep 17 00:00:00 2001
From: zzr99 <1940172413@qq.com>
Date: 星期六, 30 七月 2022 15:18:38 +0800
Subject: [PATCH] 凯贝

---
 WebTM/views/IpadStepIndex.html |  267 +++++++++++++++++++++++++++--------------------------
 1 files changed, 136 insertions(+), 131 deletions(-)

diff --git a/WebTM/views/IpadStepIndex.html b/WebTM/views/IpadStepIndex.html
index 8488760..6c8dd64 100644
--- a/WebTM/views/IpadStepIndex.html
+++ b/WebTM/views/IpadStepIndex.html
@@ -376,7 +376,7 @@
             HICMOInterID = $("#df" + i + "").html();     //鐢熶骇璁㈠崟涓诲唴鐮�
             HICMOEntryID = $("#ds" + i + "").html();     //鐢熶骇璁㈠崟瀛愬唴鐮�
             HProcID = $("#ps" + i + "").html();          //宸ュ簭ID
-            console.log(HProcID);
+
 
             if (workcode != "" && workcode != null) {
                 $('.cns').removeClass('check1');  //鍒犻櫎涓嶅悓鐖剁骇clss鏍峰紡鐩稿悓鐨勬墍鏈夊厓绱�
@@ -554,25 +554,25 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/寮�宸�/Sc_Add_MESBeginStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
+                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/寮�宸�/Sc_Add_MESBeginStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType+'',
                 end: function () {
 
                 },
-                success: function (dom, index) {
-                    var data = [];
-                    data.push({
-                        "HBillType": HBillType,
-                        "HSourceInterID": HSourceInterID,
-                        "HSourceEntryID": HSourceEntryID,
-                        "HSourceBillNo": HSourceBillNo,
-                        "HSourceBillType": HSourceBillType
-                    });
+                //success: function (dom, index) {
+                //    var data = [];
+                //    data.push({
+                //        "HBillType": HBillType,
+                //        "HSourceInterID": HSourceInterID,
+                //        "HSourceEntryID": HSourceEntryID,
+                //        "HSourceBillNo": HSourceBillNo,
+                //        "HSourceBillType": HSourceBillType
+                //    });
 
-                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
-                    var iframe = window['layui-layer-iframe' + index];
-                    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
-                    iframe.edit(data);
-                },
+                //    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                //    var iframe = window['layui-layer-iframe' + index];
+                //    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
+                //    iframe.edit(data);
+                //},
             });
         }
 
@@ -594,25 +594,26 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/浜ч噺姹囨姤/Sc_Add_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=',
+                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/浜ч噺姹囨姤/Sc_Add_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '',
+                //content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/浜ч噺姹囨姤/Sc_Add_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
                 },
-                success: function (dom, index) {
-                    var data = [];
-                    data.push({
-                        "HBillType": HBillType,
-                        "HSourceInterID": HSourceInterID,
-                        "HSourceEntryID": HSourceEntryID,
-                        "HSourceBillNo": HSourceBillNo,
-                        "HSourceBillType": HSourceBillType
-                    });
+                //success: function (dom, index) {
+                //    var data = [];
+                //    data.push({
+                //        "HBillType": HBillType,
+                //        "HSourceInterID": HSourceInterID,
+                //        "HSourceEntryID": HSourceEntryID,
+                //        "HSourceBillNo": HSourceBillNo,
+                //        "HSourceBillType": HSourceBillType
+                //    });
 
-                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
-                    var iframe = window['layui-layer-iframe' + index];
-                    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
-                    iframe.edit(data);
-                },
+                //    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                //    var iframe = window['layui-layer-iframe' + index];
+                //    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
+                //    iframe.edit(data);
+                //},
             });
         }
 
@@ -634,25 +635,26 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/瀹屽伐/Sc_Add_MESEndStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
+                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/瀹屽伐/Sc_Add_MESEndStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '',
+                //content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/瀹屽伐/Sc_Add_MESEndStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
                 },
-                success: function (dom, index) {
-                    var data = [];
-                    data.push({
-                        "HBillType": HBillType,
-                        "HSourceInterID": HSourceInterID,
-                        "HSourceEntryID": HSourceEntryID,
-                        "HSourceBillNo": HSourceBillNo,
-                        "HSourceBillType": HSourceBillType
-                    });
+                //success: function (dom, index) {
+                //    var data = [];
+                //    data.push({
+                //        "HBillType": HBillType,
+                //        "HSourceInterID": HSourceInterID,
+                //        "HSourceEntryID": HSourceEntryID,
+                //        "HSourceBillNo": HSourceBillNo,
+                //        "HSourceBillType": HSourceBillType
+                //    });
 
-                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
-                    var iframe = window['layui-layer-iframe' + index];
-                    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
-                    iframe.edit(data);
-                },
+                //    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                //    var iframe = window['layui-layer-iframe' + index];
+                //    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
+                //    iframe.edit(data);
+                //},
             });
         }
 
@@ -674,25 +676,26 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/鍋滃伐/Sc_Add_MESStopStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
+                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/鍋滃伐/Sc_Add_MESStopStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '',
+                //content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/鍋滃伐/Sc_Add_MESStopStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
                 },
-                success: function (dom, index) {
-                    var data = [];
-                    data.push({
-                        "HBillType": HBillType,
-                        "HSourceInterID": HSourceInterID,
-                        "HSourceEntryID": HSourceEntryID,
-                        "HSourceBillNo": HSourceBillNo,
-                        "HSourceBillType": HSourceBillType
-                    });
+                //success: function (dom, index) {
+                //    var data = [];
+                //    data.push({
+                //        "HBillType": HBillType,
+                //        "HSourceInterID": HSourceInterID,
+                //        "HSourceEntryID": HSourceEntryID,
+                //        "HSourceBillNo": HSourceBillNo,
+                //        "HSourceBillType": HSourceBillType
+                //    });
 
-                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
-                    var iframe = window['layui-layer-iframe' + index];
-                    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
-                    iframe.edit(data);
-                },
+                //    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                //    var iframe = window['layui-layer-iframe' + index];
+                //    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
+                //    iframe.edit(data);
+                //},
             });
         }
 
@@ -710,31 +713,31 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/浜ч噺姹囨姤/Sc_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=',
+                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/浜ч噺姹囨姤/Sc_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=&workcode=' + workcode + '&HSourceID=' + HSourceID1 + '&HSourceName=' + HSourceName1 + '&HICMOInterID=' + HICMOInterID + '&HICMOEntryID=' + HICMOEntryID + '&HMaker=' + sessionStorage["HUserName"] + '&Czybm=' + sessionStorage["Czybm"] + '&HSourceInterID=' + HSourceInterID + '&HSourceBillType=' + HSourceBillType + '&HProcID=' + HProcID+'',
+                //content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/浜ч噺姹囨姤/Sc_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
                 },
-                success: function (dom, index) {
-                    var data = [];
-                    data.push({
-                        "workcode": workcode,
-                        "HSourceID": HSourceID1,
-                        "HSourceName": HSourceName1,
-                        "HICMOInterID": HICMOInterID,
-                        "HICMOEntryID": HICMOEntryID,
-                        "HMaker": sessionStorage["HUserName"],    //sessionStorage["HUserName"]
-                        "Czybm": sessionStorage["Czybm"],
-                        //"HEmpID": "0",    //sessionStorage["HEmpID"]
-                        "HSourceInterID": HSourceInterID,
-                        "HSourceBillType": HSourceBillType,
-                        "HProcID": HProcID
-                    });
-
-                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
-                    var iframe = window['layui-layer-iframe' + index];
-                    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
-                    iframe.edit(data);
-                },
+                //success: function (dom, index) {
+                //    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                //    var iframe = window['layui-layer-iframe' + index];
+                //    var data = [];
+                //    data.push({
+                //        "workcode": workcode,
+                //        "HSourceID": HSourceID1,
+                //        "HSourceName": HSourceName1,
+                //        "HICMOInterID": HICMOInterID,
+                //        "HICMOEntryID": HICMOEntryID,
+                //        "HMaker": sessionStorage["HUserName"],    //sessionStorage["HUserName"]
+                //        "Czybm": sessionStorage["Czybm"],
+                //        //"HEmpID": "0",    //sessionStorage["HEmpID"]
+                //        "HSourceInterID": HSourceInterID,
+                //        "HSourceBillType": HSourceBillType,
+                //        "HProcID": HProcID
+                //    });
+                //    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
+                //    iframe.edit(data);
+                //},
             });
         }
 
@@ -756,25 +759,25 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/杩斿伐/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
+                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/杩斿伐/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '',
+                //content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/杩斿伐/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
                 },
-                success: function (dom, index) {
-                    var data = [];
-                    data.push({
-                        "HBillType": HBillType,
-                        "HSourceInterID": HSourceInterID,
-                        "HSourceEntryID": HSourceEntryID,
-                        "HSourceBillNo": HSourceBillNo,
-                        "HSourceBillType": HSourceBillType
-                    });
-
-                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
-                    var iframe = window['layui-layer-iframe' + index];
-                    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
-                    iframe.edit(data);
-                },
+                //success: function (dom, index) {
+                //    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                //    var iframe = window['layui-layer-iframe' + index];
+                //    var data = [];
+                //    data.push({
+                //        "HBillType": HBillType,
+                //        "HSourceInterID": HSourceInterID,
+                //        "HSourceEntryID": HSourceEntryID,
+                //        "HSourceBillNo": HSourceBillNo,
+                //        "HSourceBillType": HSourceBillType
+                //    });
+                //    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
+                //    iframe.edit(data);
+                //},
             });
         }
 
@@ -792,25 +795,26 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/涓婃枡闃查敊鍗�/Sc_Add_MaterToSourceBillList.html?OperationType=2&linterid=&HSouceBillType=',
+                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/闃查敊/Sc_Add_MaterToSourceStepBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '',
+                //content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/闃查敊/Sc_Add_MaterToSourceStepBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
                 },
-                success: function (dom, index) {
-                    var data = [];
-                    data.push({
-                        "HBillType": HBillType,
-                        "HSourceInterID": HSourceInterID,
-                        "HSourceEntryID": HSourceEntryID,
-                        "HSourceBillNo": HSourceBillNo,
-                        "HSourceBillType": HSourceBillType
-                    });
+                //success: function (dom, index) {
+                //    var data = [];
+                //    data.push({
+                //        "HBillType": HBillType,
+                //        "HSourceInterID": HSourceInterID,
+                //        "HSourceEntryID": HSourceEntryID,
+                //        "HSourceBillNo": HSourceBillNo,
+                //        "HSourceBillType": HSourceBillType
+                //    });
 
-                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
-                    var iframe = window['layui-layer-iframe' + index];
-                    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
-                    iframe.edit(data);
-                },
+                //    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                //    var iframe = window['layui-layer-iframe' + index];
+                //    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
+                //    iframe.edit(data);
+                //},
             });
         }
 
@@ -828,7 +832,7 @@
                 , shade: 0.6
                 , maxmin: false
                 , anim: 0
-                , content: ['鐢熶骇绠$悊/璐ㄩ噺姹囨姤鍗�/Sc_QualityReportBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID, 'yes']
+                , content: ['鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/涓嶈壇閲囬泦/Sc_QualityReportStepBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID, 'yes']
                 , resize: false
                 , cancel: function () {
 
@@ -854,25 +858,26 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/寮傚父鍙嶉鍗�/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=',
+                content: '鐢熶骇绠$悊/寮傚父鍙嶉鍗�/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '',
+                //content: '鐢熶骇绠$悊/寮傚父鍙嶉鍗�/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
                 },
-                success: function (dom, index) {
-                    var data = [];
-                    data.push({
-                        "HBillType": HBillType,
-                        "HSourceInterID": HSourceInterID,
-                        "HSourceEntryID": HSourceEntryID,
-                        "HSourceBillNo": HSourceBillNo,
-                        "HSourceBillType": HSourceBillType
-                    });
+                //success: function (dom, index) {
+                //    var data = [];
+                //    data.push({
+                //        "HBillType": HBillType,
+                //        "HSourceInterID": HSourceInterID,
+                //        "HSourceEntryID": HSourceEntryID,
+                //        "HSourceBillNo": HSourceBillNo,
+                //        "HSourceBillType": HSourceBillType
+                //    });
 
-                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
-                    var iframe = window['layui-layer-iframe' + index];
-                    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
-                    iframe.edit(data);
-                },
+                //    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                //    var iframe = window['layui-layer-iframe' + index];
+                //    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
+                //    iframe.edit(data);
+                //},
             });
         }
 
@@ -885,7 +890,7 @@
         //鍗曟嵁鐘舵�侀獙璇�
         function WorkStaus(HSourceID1, workcode, HSourceInterID, btn) {
             var flag = false;
-            var sWhere = "";
+            var sWhere = ""; //浠诲姟鍗曠姸鎬�(0寰呯敓浜э紝1鐢熶骇涓紝2鎸傝捣锛�3宸插畬宸�)
             switch (btn) {
                 case "寮�宸�":
                     sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('0','2')";   //鏄惁鏈変笉涓哄紑宸ュ紑宸ョ姸鎬併�佸仠宸ョ姸鎬�

--
Gitblit v1.9.1