From 967e7a1d45a98ddf62cd1d35f2d22dc9428db0ae Mon Sep 17 00:00:00 2001
From: zzr99 <1940172413@qq.com>
Date: 星期四, 17 二月 2022 22:41:51 +0800
Subject: [PATCH] nothing

---
 WebTM/views/IpadStepIndex.html |  106 +++++++++++------------------------------------------
 1 files changed, 22 insertions(+), 84 deletions(-)

diff --git a/WebTM/views/IpadStepIndex.html b/WebTM/views/IpadStepIndex.html
index 2c9bb27..38c0809 100644
--- a/WebTM/views/IpadStepIndex.html
+++ b/WebTM/views/IpadStepIndex.html
@@ -35,6 +35,7 @@
         var HSourceBillType = "";  //婧愬崟绫诲瀷
         var HICMOInterID = "";     //鐢熶骇璁㈠崟涓诲唴鐮�
         var HICMOEntryID = "";     //鐢熶骇璁㈠崟瀛愬唴鐮�
+        var HProcID = "";     //宸ュ簭ID
         var HICMOBillNo = "";      //浠诲姟鍗曞彿
         //娉ㄦ剰锛氶�夐」鍗� 渚濊禆 element 妯″潡锛屽惁鍒欐棤娉曡繘琛屽姛鑳芥�ф搷浣�
         layui.config({
@@ -171,7 +172,7 @@
                                 html1 += '<h1 style="display:none;"><span>婧愬崟绫诲瀷锛�</span><span id="st' + (i + 1) + '">' + LoadData1[i].HSourceBillType + '</span></h1>';
                                 html1 += '<h1 style="display:none;"><span>鐢熶骇璁㈠崟鍙蜂富ID锛�</span><span id="df' + (i + 1) + '">' + LoadData1[i].HICMOInterID + '</span></h1>';
                                 html1 += '<h1 style="display:none;"><span>鐢熶骇璁㈠崟瀛怚D锛�</span><span id="ds' + (i + 1) + '">' + LoadData1[i].HICMOEntryID + '</span></h1>';
-
+                                html1 += '<h1 style="display:none;"><span>宸ュ簭ID锛�</span><span id="ps' + (i + 1) + '">' + LoadData1[i].HProcID + '</span></h1>';
 
                                 html1 += '<h1><span>宸ュ崟鍙凤細</span><span id="wk' + (i + 1) + '">' + LoadData1[i].HICMOBillNo + '</span></h1>';
                                 html1 += '<h1><span>浜у搧鍚嶇О锛�</span><span id="ptn' + (i + 1) + '">' + LoadData1[i].HMaterName + '</span></h1>';
@@ -179,16 +180,16 @@
                                 html1 += '<h1><span>璁″垝鏁伴噺锛�</span><span>' + LoadData1[i].HDatePlanQty + '</span><span style="margin-left:20px;">姹囨姤鎬绘暟锛�</span><span>' + LoadData1[i].HDateFinishQty+'</span></h1>';
                                 switch (LoadData1[i].HICMOStatus) {
                                     case "寰呯敓浜�":
-                                        html1 += '<h1><span>褰撳墠鐘舵�侊細</span><span class="gj_icon color_border3"></span><span>' + LoadData1[i].HICMOStatus + '</span></h1>';
+                                        html1 += '<h1><span>褰撳墠鐘舵�侊細</span><span class="gj_icon color_border3"></span><span>' + LoadData1[i].HICMOStatus + '</span><span style="margin-left:20px;">宸ュ簭锛�</span><span>' + LoadData1[i].HProcName +'</span></h1>';
                                         break;
                                     case "鐢熶骇涓�":
-                                        html1 += '<h1><span>褰撳墠鐘舵�侊細</span><span class="gj_icon color_border2"></span><span>' + LoadData1[i].HICMOStatus + '</span></h1>';
+                                        html1 += '<h1><span>褰撳墠鐘舵�侊細</span><span class="gj_icon color_border2"></span><span>' + LoadData1[i].HICMOStatus + '</span><span style="margin-left:20px;">宸ュ簭锛�</span><span>' + LoadData1[i].HProcName +'</span></h1>';
                                         break;
                                     case "鎸傝捣":
-                                        html1 += '<h1><span>褰撳墠鐘舵�侊細</span><span class="gj_icon color_border1"></span><span>' + LoadData1[i].HICMOStatus + '</span></h1>';
+                                        html1 += '<h1><span>褰撳墠鐘舵�侊細</span><span class="gj_icon color_border1"></span><span>' + LoadData1[i].HICMOStatus + '</span><span style="margin-left:20px;">宸ュ簭锛�</span><span>' + LoadData1[i].HProcName +'</span></h1>';
                                         break;
                                     case "瀹屽伐":
-                                        html1 += '<h1><span>褰撳墠鐘舵�侊細</span><span class="gj_icon color_border4"></span><span>' + LoadData1[i].HICMOStatus + '</span></h1>';
+                                        html1 += '<h1><span>褰撳墠鐘舵�侊細</span><span class="gj_icon color_border4"></span><span>' + LoadData1[i].HICMOStatus + '</span><span style="margin-left:20px;">宸ュ簭锛�</span><span>' + LoadData1[i].HProcName +'</span></h1>';
                                         break;
                                     default:
                                 }
@@ -227,7 +228,8 @@
                                     html1 += '<h1><span>杩涘害锛�</span><span>' + (LoadData2[i].HRelationQty / LoadData2[i].HPlanQty) * 100 + '%</span></h1>';
                                 }
                                 html1 += '<h1><span>鏈崟杩愯鏃堕棿锛�</span><span>' + getSeconds(LoadData2[i].HSumTimes) + '</span></h1>';
-                                html1 += '<h1><span>鏈祫婧愯繍琛屾椂闂达細</span><span>' + getSeconds(LoadData2[i].HSourceWorkTime) + '</span></h1>';
+                                html1 += '<h1><span>褰撳墠宸ュ簭锛�</span><span>' + LoadData2[i].HProcName + '</span></h1>';
+                                /*html1 += '<h1><span>鏈祫婧愯繍琛屾椂闂达細</span><span>' + getSeconds(LoadData2[i].HSourceWorkTime) + '</span></h1>';*/
                                 html1 += '</dd>';
                                 html1 += '</dl>';
                                 html1 += '</div>';
@@ -373,6 +375,7 @@
             HSourceBillType = $("#st" + i + "").html(); //閫氳繃鏍峰紡ID鑾峰彇html鍐呭(婧愬崟绫诲瀷)
             HICMOInterID = $("#df" + i + "").html();     //鐢熶骇璁㈠崟涓诲唴鐮�
             HICMOEntryID = $("#ds" + i + "").html();     //鐢熶骇璁㈠崟瀛愬唴鐮�
+            HProcID = $("#ps" + i + "").html();          //宸ュ簭ID
 
 
             if (workcode != "" && workcode != null) {
@@ -712,6 +715,8 @@
 
                 },
                 success: function (dom, index) {
+                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                    var iframe = window['layui-layer-iframe' + index];
                     var data = [];
                     data.push({
                         "workcode": workcode,
@@ -722,11 +727,10 @@
                         "HMaker": sessionStorage["HUserName"],    //sessionStorage["HUserName"]
                         "Czybm": sessionStorage["Czybm"],
                         //"HEmpID": "0",    //sessionStorage["HEmpID"]
-                        "HSourceBillType": HSourceBillType
+                        "HSourceInterID": HSourceInterID,
+                        "HSourceBillType": HSourceBillType,
+                        "HProcID": HProcID
                     });
-
-                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
-                    var iframe = window['layui-layer-iframe' + index];
                     //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
                     iframe.edit(data);
                 },
@@ -756,6 +760,8 @@
 
                 },
                 success: function (dom, index) {
+                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                    var iframe = window['layui-layer-iframe' + index];
                     var data = [];
                     data.push({
                         "HBillType": HBillType,
@@ -764,9 +770,6 @@
                         "HSourceBillNo": HSourceBillNo,
                         "HSourceBillType": HSourceBillType
                     });
-
-                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
-                    var iframe = window['layui-layer-iframe' + index];
                     //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
                     iframe.edit(data);
                 },
@@ -787,7 +790,7 @@
                 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=',
                 end: function () {
 
                 },
@@ -809,52 +812,6 @@
             });
         }
 
-        //棣栨妫�楠�
-        function OpenFistCheck(event, obj) {
-            if (wktag == 0) {
-                layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 });
-                return false;
-            }
-            layer.open({
-                type: 2
-                , area: ['100%', '100%']
-                , title: '棣栦欢妫�楠屽崟-缂栬緫'
-                , shade: 0.6
-                , maxmin: false
-                , anim: 0
-                , content: ['璐ㄩ噺绠$悊/棣栦欢妫�楠屽崟/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID, 'yes']
-                , resize: false
-                , cancel: function () {
-                }
-                , end: function () {
-
-                }
-            })
-        }
-
-        //杩囩▼妫�楠�
-        function OpenProcess(event, obj) {
-            if (wktag == 0) {
-                layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 });
-                return false;
-            }
-            layer.open({
-                type: 2
-                , area: ['100%', '100%']
-                , title: '宸ュ簭妫�楠屽崟-缂栬緫'
-                , shade: 0.6
-                , maxmin: false
-                , anim: 0
-                , content: ['璐ㄩ噺绠$悊/宸ュ簭妫�楠屽崟/QC_ProcessCheckBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID, 'yes']
-                , resize: false
-                , cancel: function () {
-
-                }
-                , end: function () {
-
-                }
-            })
-        }
 
         //涓嶈壇閲囬泦
         function BadGather() {
@@ -869,7 +826,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 () {
 
@@ -895,6 +852,7 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
+
                 content: '鐢熶骇绠$悊/寮傚父鍙嶉鍗�/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
@@ -926,7 +884,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')";   //鏄惁鏈変笉涓哄紑宸ュ紑宸ョ姸鎬併�佸仠宸ョ姸鎬�
@@ -1073,26 +1031,6 @@
                                     <span class="imgtitle">杩斿伐鐢宠</span>
                                 </div>
                             </div>
-                            <div class="layui-col-sm12 layui-col-md3" onclick="OpenFistCheck(event,this)">
-                                <div class="cnt bottomright">
-                                    <span class="layui-icon layui-icon-search imgicon"></span>
-                                    <span class="imgtitle">棣栨</span>
-                                </div>
-                            </div>
-                            <div class="layui-col-sm12 layui-col-md3">
-                                <div class="cnt bottomright" style="pointer-events:none; background-color:rgb(0 0 0 / 10%)">
-                                    <span class="layui-icon layui-icon-search imgicon"></span>
-                                    <span class="imgtitle">宸℃</span>
-                                </div>
-                            </div>
-                            <div class="layui-col-sm12 layui-col-md3" onclick="OpenProcess(event,this)">
-                                <div class="cnt bottomright">
-                                    <span class="layui-icon layui-icon-search imgicon"></span>
-                                    <span class="imgtitle">杩囩▼妫�楠�</span>
-                                </div>
-                            </div>
-                        </div>
-                        <div class="layui-row layui-col-space10">
                             <div class="layui-col-sm12 layui-col-md3" onclick="OpenInSpection(event,this)">
                                 <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-release imgicon"></span>
@@ -1111,14 +1049,14 @@
                                     <span class="imgtitle">涓嶈壇閲囬泦</span>
                                 </div>
                             </div>
+                        </div>
+                        <div class="layui-row layui-col-space10">
                             <div class="layui-col-sm12 layui-col-md3" onclick="ExceFeedback(event,this)">
                                 <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-unlink imgicon"></span>
                                     <span class="imgtitle">寮傚父</span>
                                 </div>
                             </div>
-                        </div>
-                        <div class="layui-row layui-col-space10">
                             <div class="layui-col-sm12 layui-col-md3" onclick="Esc(event,this)">
                                 <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-close imgicon"></span>

--
Gitblit v1.9.1