From 5c08046b29ae41eb3629cfec66ea84d94d001ffa Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期一, 24 六月 2024 15:51:26 +0800
Subject: [PATCH] 器具点检记录表  功能优化(选点检规程带出子表  选点检计划 带出模具 点检规程 带出子表) 停工单增加刷卡验证 工序出站增加遗失字段 和取样字段 工序流转卡增加批次号

---
 WebTM/views/IpadIndex.html |   93 +++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 86 insertions(+), 7 deletions(-)

diff --git a/WebTM/views/IpadIndex.html b/WebTM/views/IpadIndex.html
index c464681..feed4ed 100644
--- a/WebTM/views/IpadIndex.html
+++ b/WebTM/views/IpadIndex.html
@@ -44,6 +44,7 @@
         var HEmpName = "";      //鎿嶄綔鍛�
         var HManagerName = "";      //璐熻矗浜�
         var HGroupName = "";      //鐝粍
+        var HProcID = 0;      //宸ュ簭
 
         //娉ㄦ剰锛氶�夐」鍗� 渚濊禆 element 妯″潡锛屽惁鍒欐棤娉曡繘琛屽姛鑳芥�ф搷浣�
         layui.config({
@@ -166,7 +167,7 @@
             HManagerName = $("#" + us + "").html(); //閫氳繃鏍峰紡ID鑾峰彇html鍐呭(璧勬簮ID)
             HGroupName = $("#" + gro + "").html(); //閫氳繃鏍峰紡ID鑾峰彇html鍐呭(璧勬簮ID)
             HManagerID = "HManagerID" + i;
-            HGroupID= "HGroupID" + i;
+            HGroupID = "HGroupID" + i;
             HManagerID = $("#" + HManagerID + "").html();
             HGroupID = $("#" + HGroupID + "").html();
 
@@ -211,6 +212,7 @@
 
                                 html1 += '<h1><span>宸ュ崟鍙凤細</span><span id="wk' + (i + 1) + '">' + LoadData1[i].HICMOBillNo + '</span><span style="margin-left:25px;">鏃ユ湡锛�</span><span>' + LoadData1[i].璁″垝鏃ユ湡 + '</span></h1>';
                                 html1 += '<h1 style="display:none;"><span>浜у搧ID锛�</span><span id="materid' + (i + 1) + '">' + LoadData1[i].HMaterID + '</span></h1>';
+                                html1 += '<h1 style="display:none;"><span>宸ュ簭ID锛�</span><span id="procid' + (i + 1) + '">' + LoadData1[i].HProcID + '</span></h1>';
                                 html1 += '<h1><span>浜у搧鍚嶇О锛�</span><span id="ptn' + (i + 1) + '">[' + LoadData1[i].HMaterNumber + ']-[' + LoadData1[i].HMaterName + ']</span></h1>';
                                 html1 += '<h1><span>浜у搧鍨嬪彿锛�</span><span id="pts' + (i + 1) + '">' + LoadData1[i].HModel + '</span></h1>';
                                 html1 += '<h1><span>璁″垝鏁伴噺锛�</span><span>' + LoadData1[i].HDatePlanQty + '</span><span style="margin-left:20px;">姹囨姤鎬绘暟锛�</span><span>' + LoadData1[i].HDateFinishQty + '</span></h1>';
@@ -405,7 +407,7 @@
                 $.ajax({
                     url: GetWEBURL() + "/ReportPlatForm/DeleteGetLineBindBillList",
                     type: "GET",
-                    data: { "HSourceID": HSourceID },
+                    data: { "HSourceID": HSourceID, "user": sessionStorage["HUserName"] },
                     dataType: "json",//鏁版嵁绫诲瀷鍙互涓� text xml json  script  jsonp
                     success: function (data) {
                         if (data.count > 0) {
@@ -441,6 +443,7 @@
             HICMOBillNo = $("#wk" + i + "").html();     //鐢熶骇璁㈠崟鍙�
             HMaterName = $("#ptn" + i + "").html();     //浜у搧鍚嶇О
             HMaterID = $("#materid" + i + "").html();     //浜у搧ID
+            HProcID = $("#procid" + i + "").html();     //宸ュ簭ID
 
             if (workcode != "" && workcode != null) {
                 $('.cns').removeClass('check1');  //鍒犻櫎涓嶅悓鐖剁骇clss鏍峰紡鐩稿悓鐨勬墍鏈夊厓绱�
@@ -705,7 +708,7 @@
                 shift: 2,
                 area: ['95%', '95%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/浣滀笟鎸囧涔�/Gy_SOPBill_Video.html?OperationType=5&HMaterID=' + HMaterID + '&HSourceNo=' + workcode + '&HSourceEntryID=' + HSourceEntryID,
+                content: '鐢熶骇绠$悊/浣滀笟鎸囧涔�/Gy_SOPBill_Video.html?OperationType=5&HMaterID=' + HMaterID + '&HSourceNo=' + workcode + '&HSourceEntryID=' + HSourceEntryID + '&HProcID=' + HProcID,
                 end: function () {
 
                 },
@@ -1054,7 +1057,7 @@
         }
 
 
-        //褰撳墠宸ュ崟(璧嬬爜)鎸夐挳鐐瑰嚮浜嬩欢
+        //褰撳墠宸ュ崟(姹囨姤)鎸夐挳鐐瑰嚮浜嬩欢
         function CodingReport(event, obj) {
             if (wktag == 0) {
                 layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 });
@@ -1068,7 +1071,7 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '杞﹂棿绠$悊/宸ュ簭鍑虹珯姹囨姤鍗�/Cj_StationOutBill_CodingReport.html?OperationType=2&linterid=&HSouceBillType=',
+                content: '杞﹂棿绠$悊/宸ュ簭鍑虹珯姹囨姤鍗�/Cj_StationOutBill_CurrentWork.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
                 },
@@ -1103,6 +1106,68 @@
 
             });
         }
+
+        //璁惧鍚姩鐐规鎸夐挳鐐瑰嚮浜嬩欢
+        function BeginDotCheck(event, obj) {          
+            layer.open({
+                type: 2,
+                skin: 'layui-layer-rim', //鍔犱笂杈规
+                title: '鏂板璁惧鍚姩鐐规鍗�',
+                closeBtn: 1,
+                shift: 2,
+                area: ['100%', '100%'],
+                maxmin: true,
+                content: '杞﹂棿绠$悊/鍚姩鐐规鍗�/Sc_WorkBeginDotCheckBill.html?OperationType=4&linterid=&HSouceBillType=',
+                end: function () {
+
+                },
+                success: function (dom, index) {
+                    var data = [];
+                    data.push({
+                        "HMaterID": HMaterID,
+                        "HProcID": HProcID,
+                        "HSourceID": HSourceID1,
+                        "SCOrder": HSourceBillNo
+                    });
+
+                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                    var iframe = window['layui-layer-iframe' + index];
+                    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
+                    iframe.edit(data);
+                },
+            });
+        }
+
+        //闃查敊楠岃瘉娓呭崟鎸夐挳鐐瑰嚮浜嬩欢
+        function PreventErrMouldCheck(event, obj) {
+            layer.open({
+                type: 2,
+                skin: 'layui-layer-rim', //鍔犱笂杈规
+                title: '鏂板闃查敊楠岃瘉',
+                closeBtn: 1,
+                shift: 2,
+                area: ['100%', '100%'],
+                maxmin: true,
+                content: '杞﹂棿绠$悊/闃查敊楠岃瘉/Qc_PreventErrMouldCheckBill.html?OperationType=4&linterid=&HSouceBillType=',
+                end: function () {
+
+                },
+                success: function (dom, index) {
+                    var data = [];
+                    data.push({
+                        "HMaterID": HMaterID,
+                        "HProcID": HProcID,                     
+                        "SCOrder": HSourceBillNo
+                    });
+
+                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                    var iframe = window['layui-layer-iframe' + index];
+                    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
+                    iframe.edit(data);
+                },
+            });
+        }
+
         //閫�鍑�
         function Esc(event, obj) {
             parent.location.href = "index.html"
@@ -1288,7 +1353,7 @@
                             <div class="layui-col-sm12 layui-col-md4" onclick="OpenMaterToSource(event,this)">
                                 <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-engine imgicon"></span>
-                                    <span class="imgtitle">涓婃枡闃插憜</span>
+                                    <span class="imgtitle">涓婃枡闃查敊</span>
                                 </div>
                             </div>
                             <div class="layui-col-sm12 layui-col-md4" onclick="BadGather(event,this)">
@@ -1328,9 +1393,23 @@
                             <div class="layui-col-sm12 layui-col-md4" onclick="CodingReport(event,this)">
                                 <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-console imgicon"></span>
-                                    <span class="imgtitle">褰撳墠宸ュ崟(璧嬬爜)</span>
+                                    <span class="imgtitle">褰撳墠宸ュ崟(姹囨姤)</span>
                                 </div>
                             </div>
+                            <div class="layui-col-sm12 layui-col-md4" onclick="BeginDotCheck(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-md4" onclick="PreventErrMouldCheck(event,this)">
+                                <div class="cnt bottomright">
+                                    <span class="layui-icon layui-icon-engine imgicon"></span>
+                                    <span class="imgtitle">闃查敊楠岃瘉</span>
+                                </div>
+                            </div>                           
                         </div>
                     </div>
                 </fieldset>

--
Gitblit v1.9.1