From 84f2aca241fde74c8a29322fb19db75395d519d8 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 17 一月 2024 10:27:18 +0800
Subject: [PATCH] 1

---
 WebTM/views/IpadIndex.html |   55 ++++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 44 insertions(+), 11 deletions(-)

diff --git a/WebTM/views/IpadIndex.html b/WebTM/views/IpadIndex.html
index bdbc716..74a5b5d 100644
--- a/WebTM/views/IpadIndex.html
+++ b/WebTM/views/IpadIndex.html
@@ -37,6 +37,7 @@
         var HICMOEntryID = "";     //鐢熶骇璁㈠崟瀛愬唴鐮�
         var HICMOBillNo = "";      //浠诲姟鍗曞彿
         var HMaterName = "";      //浜у搧鍚嶇О
+        var HMaterID = 0;          //浜у搧ID
         //娉ㄦ剰锛氶�夐」鍗� 渚濊禆 element 妯″潡锛屽惁鍒欐棤娉曡繘琛屽姛鑳芥�ф搷浣�
         layui.config({
             base: '../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
@@ -178,9 +179,10 @@
 
 
                                 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>';
+                                html1 += '<h1 style="display:none;"><span>浜у搧ID锛�</span><span id="materid' + (i + 1) + '">' + LoadData1[i].HMaterID + '</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>';
+                                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>';
@@ -378,7 +380,7 @@
             HICMOInterID = $("#df" + i + "").html();     //鐢熶骇璁㈠崟涓诲唴鐮�
             HICMOEntryID = $("#ds" + i + "").html();     //鐢熶骇璁㈠崟瀛愬唴鐮�
             HMaterName = $("#ptn" + i + "").html();     //浜у搧鍚嶇О
-
+            HMaterID = $("#materid" + i + "").html();     //浜у搧ID
 
             if (workcode != "" && workcode != null) {
                 $('.cns').removeClass('check1');  //鍒犻櫎涓嶅悓鐖剁骇clss鏍峰紡鐩稿悓鐨勬墍鏈夊厓绱�
@@ -588,9 +590,9 @@
                 layer.alert("鍗曟嵁鐘舵�佷笉婊¤冻寮�宸ユ潯浠�!", { icon: 5 });
                 return false;
             }
-           var indexOpen= layer.open({
+            var indexOpen = layer.open({
                 type: 1
-                , title: "纭寮�宸ュ悧?" 
+                , title: "纭寮�宸ュ悧?"
                 , closeBtn: false
                 , area: '300px;'
                 , shade: 0.8
@@ -598,7 +600,7 @@
                 , btn: ['纭畾', '鍙栨秷']
                 , btnAlign: 'c'
                 , moveType: 1 //鎷栨嫿妯″紡锛�0鎴栬��1
-                , content: '<div style="padding: 50px; line-height: 22px; font-weight: 300;text-align:center;">璁惧缂栧彿:' + HSourceName1 + '<br>宸ュ崟鍙�:' + workcode + '<br>浜у搧鍚嶇О:' + HMaterName+'<br></div>'
+                , content: '<div style="padding: 50px; line-height: 22px; font-weight: 300;text-align:center;">璁惧缂栧彿:' + HSourceName1 + '<br>宸ュ崟鍙�:' + workcode + '<br>浜у搧鍚嶇О:' + HMaterName + '<br></div>'
                 , btn1: function (index, layero, e) {
 
                     //鏂板寮�宸ュ崟
@@ -626,6 +628,30 @@
                     });
                 }
             });
+        }
+
+        //SOP 浣滀笟鎸囧涔�
+        function SOP(event, obj) {
+            if (wktag == 0) {
+                layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 });
+                return false;
+            }
+
+            layer.open({
+                type: 2,
+                skin: 'layui-layer-rim', //鍔犱笂杈规
+                title: '浣滀笟鎸囧涔�',
+                closeBtn: 1,
+                shift: 2,
+                area: ['95%', '95%'],
+                maxmin: true,
+                content: '鐢熶骇绠$悊/浣滀笟鎸囧涔�/Gy_SOPBill_Video.html?OperationType=5&HMaterID=' + HMaterID + '&HSourceNo=' + workcode + '&HSourceEntryID=' + HSourceEntryID,
+                end: function () {
+
+                },               
+            });
+
+           /* window.open("../../../views/鐢熶骇绠$悊/浣滀笟鎸囧涔�/Gy_SOPBill_Video.html?OperationType=5&HMaterID=" + HMaterID + "&HSourceNo=" + workcode + "&HSourceEntryID=" + HSourceEntryID);*/
         }
 
         //姹囨姤鎸夐挳鐐瑰嚮浜嬩欢
@@ -1016,7 +1042,7 @@
                         <div class="layui-row layui-col-space10">
                             <div class="layui-col-sm12 layui-col-md4" onclick="OpenWork(event,this)">
                                 <div class="cnt bottomright">
-                                    <span class="layui-icon layui-icon-pause imgicon"></span>
+                                    <span class="layui-icon layui-icon-play imgicon"></span>
                                     <span class="imgtitle">寮�宸�</span>
                                 </div>
                             </div>
@@ -1033,15 +1059,22 @@
                                 </div>
                             </div>
                         </div>
-                        <div class="layui-row layui-col-space10">
-                            <div class="layui-col-sm12 layui-col-md4" onclick="KSOpenWork(event,this)">
+                        <div class="layui-row layui-col-space10" style="display:none;">
+                            <div class="layui-col-sm12 layui-col-md4" onclick="KSOpenWork(event,this)" >
                                 <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-pause 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="SOP(event,this)">
+                                <div class="cnt bottomright">
+                                    <span class="layui-icon layui-icon-read imgicon"></span>
+                                    <span class="imgtitle">浣滀笟鎸囧涔�</span>
+                                </div>
+                            </div>
                             <div class="layui-col-sm12 layui-col-md4" onclick="OpenFistCheck(event,this)">
                                 <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-search imgicon"></span>
@@ -1049,7 +1082,7 @@
                                 </div>
                             </div>
                             <div class="layui-col-sm12 layui-col-md4">
-                                <div class="cnt bottomright" style="pointer-events:none; background-color:rgb(0 0 0 / 10%)">
+                                <div class="cnt bottomright" style="pointer-events:none; background-color:rgb(0 0 0 / 10%);display:none;">
                                     <span class="layui-icon layui-icon-search imgicon"></span>
                                     <span class="imgtitle">宸℃</span>
                                 </div>
@@ -1084,7 +1117,7 @@
                         <div class="layui-row layui-col-space10">
                             <div class="layui-col-sm12 layui-col-md4" onclick="OpenStop(event,this)">
                                 <div class="cnt bottomright">
-                                    <span class="layui-icon layui-icon-play imgicon"></span>
+                                    <span class="layui-icon layui-icon-pause imgicon"></span>
                                     <span class="imgtitle">鍋滃伐</span>
                                 </div>
                             </div>

--
Gitblit v1.9.1