From 087f55cf5fb4fdde0a117daa32e364b8271bba2d Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期二, 09 九月 2025 15:55:07 +0800
Subject: [PATCH] 兴达 打印模板调整

---
 WebTM/views/IpadIndex.html |  100 +++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 94 insertions(+), 6 deletions(-)

diff --git a/WebTM/views/IpadIndex.html b/WebTM/views/IpadIndex.html
index b5782ea..f866f28 100644
--- a/WebTM/views/IpadIndex.html
+++ b/WebTM/views/IpadIndex.html
@@ -926,10 +926,31 @@
                 end: function () {
 
                 },
-            });
-
-            /* window.open("../../../views/鐢熶骇绠$悊/浣滀笟鎸囧涔�/Gy_SOPBill_Video.html?OperationType=5&HMaterID=" + HMaterID + "&HSourceNo=" + workcode + "&HSourceEntryID=" + HSourceEntryID);*/
+            });           
         }
+
+        //SIP 浣滀笟鎸囧涔�
+        function SIP(event, obj) {
+            if (wktag == 0) {
+                layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 });
+                return false;
+            }
+            var HTypes = "SIP";
+            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 + '&HProcID=' + HProcID + '&HTypes=' + HTypes,
+                end: function () {
+
+                }
+            });
+        }
+
 
         //姹囨姤鎸夐挳鐐瑰嚮浜嬩欢
         function OpenReport(event, obj) {
@@ -1152,6 +1173,47 @@
             });
         }
 
+
+        // 鍋滃伐鎭㈠鍗�
+        function OpenMESStopRestoreWorkBill() {
+            if (wktag == 0) {
+                layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 });
+                return false;
+            }
+            if (WorkStaus(HSourceID1, workcode, HSourceInterID, "鍋滃伐鎭㈠")) {
+                layer.alert("鍗曟嵁鐘舵�佷笉婊¤冻鍋滃伐鎭㈠鏉′欢!", { icon: 5 });
+                return false;
+            }
+            layer.open({
+                type: 2,
+                skin: 'layui-layer-rim', //鍔犱笂杈规
+                title: '鏂板鍋滃伐鎭㈠鍗�',
+                closeBtn: 1,
+                shift: 2,
+                area: ['100%', '100%'],
+                maxmin: true,
+                content: '鐢熶骇绠$悊/鍋滃伐鎭㈠鍗�/Sc_MESStopRestoreWorkBill.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);
+                },
+            });
+        }
+
         //棣栨妫�楠�
         function OpenFistCheck(event, obj) {
             if (wktag == 0) {
@@ -1184,11 +1246,34 @@
             layer.open({
                 type: 2
                 , area: ['100%', '100%']
-                , title: '宸ュ簭妫�楠屽崟-缂栬緫'
+                , title: '宸℃妫�楠屽崟-缂栬緫'
                 , shade: 0.6
                 , maxmin: false
                 , anim: 0
                 , content: ['璐ㄩ噺绠$悊/宸℃璁板綍鍗�/QC_Add_Edit_PatrolProcCheckOtherill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID + '&HSourceEntryID=' + HSourceEntryID + '', 'yes']
+                , resize: false
+                , cancel: function () {
+
+                }
+                , end: function () {
+
+                }
+            })
+        }
+        //鏈
+        function ProcessCheck(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=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID + '&HSourceEntryID=' + HSourceEntryID + '', 'yes']
                 , resize: false
                 , cancel: function () {
 
@@ -1584,6 +1669,9 @@
                 case "寮�宸�":
                     sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('0','2')";   //鏄惁鏈変笉涓哄紑宸ュ紑宸ョ姸鎬併�佸仠宸ョ姸鎬�
                     break;
+                case "鍋滃伐鎭㈠":
+                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus in('2')";   //鏄惁涓哄仠宸ユ寕璧风姸鎬�
+                    break;
                 case "瀹屽伐":
                     sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('1','2')";   //鏄惁鏈変笉涓哄紑宸ャ�佸畬宸ョ姸鎬�
                     break;
@@ -1742,8 +1830,8 @@
                                     <span class="imgtitle">宸℃</span>
                                 </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%);display:none;">
+                            <div class="layui-col-sm12 layui-col-md4" onclick="ProcessCheck(event,this)">
+                                <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-search imgicon"></span>
                                     <span class="imgtitle">鏈</span>
                                 </div>

--
Gitblit v1.9.1