From ac7d0a49427966f166ba8b823501c786b3fd2bba Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期一, 21 七月 2025 16:21:58 +0800
Subject: [PATCH] PDA夏宝专用调拨扫码模块修改

---
 WebTM/views/IpadIndex.html |  105 +++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 83 insertions(+), 22 deletions(-)

diff --git a/WebTM/views/IpadIndex.html b/WebTM/views/IpadIndex.html
index bfb7897..a4ea6cb 100644
--- a/WebTM/views/IpadIndex.html
+++ b/WebTM/views/IpadIndex.html
@@ -102,7 +102,7 @@
                                 html1 += '<h1><span>鐢熶骇鐝粍锛�</span><span id="HGroupName' + i + '">' + LoadData[i - 1].GroupName + '</span></h1>';
                                 //html1 += '<h1><span>褰撳墠宸ュ崟锛�</span><span id="po' + i + '">' + (LoadData[i - 1].HSourceBillNo == null ? '' : LoadData[i - 1].HSourceBillNo) + '</span></h1>';
                                 //html1 += '<h1><span>浜у搧鍚嶇О锛�</span><span id="ptn' + i + '">' + (LoadData[i - 1].HName == null ? '' : LoadData[i - 1].HName) + '</span></h1>';
-                                //html1 += '<h1><span>浜у搧瑙勬牸锛�</span><span id="pts' + i + '">' + (LoadData[i - 1].HModel == null ? '' : LoadData[i - 1].HModel) + '</span></h1>';                                
+                                //html1 += '<h1><span>浜у搧瑙勬牸锛�</span><span id="pts' + i + '">' + (LoadData[i - 1].HModel == null ? '' : LoadData[i - 1].HModel) + '</span></h1>';
                                 html1 += '<h1><span>璐熻矗浜猴細</span><span id="us' + i + '">' + LoadData[i - 1].HEmpName + '</span></h1>';
                                 switch (LoadData[i - 1].HStatus) {
                                     case "绌洪棽":
@@ -125,7 +125,7 @@
                                         break;
                                     case "缁翠慨缁堟":
                                         html1 += '<h1><span>褰撳墠鐘舵�侊細</span><span class="gj_icon color_border1"></span><span>' + LoadData[i - 1].HStatus + '</span></h1>';
-                                        break;                                  
+                                        break;
                                     default:
                                 }
                                 html1 += '<h1 hidden> <span id="HGroupID' + i + '">' + LoadData[i - 1].HGroupID + '</span></h1>';
@@ -163,7 +163,7 @@
                         html1 += '<span class="layui-icon layui-icon-addition imgicon0" onclick="Add(event,this,1)"></span>';
                         html1 += '</div>';
                         html1 += '</div>';
-                        $("#topleft").append(html1);                     
+                        $("#topleft").append(html1);
                     }
                 },
                 error: function (err) {
@@ -187,10 +187,10 @@
                         $("#button-container").empty();
                         var colClass = ''; // 鍔ㄦ�佽缃垪鐨勬牱寮�
                         let largestColClass = 'layui-col-md4';  // 榛樿鏂板鎸夐挳澶у皬锛堝亣璁炬渶澶氭槸 3 涓寜閽竴鎺掞級
-                    
+
                         // 閬嶅巻姣忎釜鎸夐挳鏁版嵁骞剁敓鎴愬搴旂殑 HTML
                         data1.data.forEach(function (buttonData, index) {
-                            // 鏍规嵁 defaultSize 瀛楁閫夋嫨鍚堥�傜殑鍒楀 
+                            // 鏍规嵁 defaultSize 瀛楁閫夋嫨鍚堥�傜殑鍒楀
                             switch (buttonData.鎸夐挳澶у皬) {
                                 case '灏�':
                                     colClass = 'layui-col-md3'; // 涓�鎺�4涓�
@@ -233,7 +233,7 @@
                         html1 += '        <span class="layui-icon layui-icon-addition imgtitle" onclick="Add_Buttton(event,this,1)"></span>';
                         html1 += '    </div>';
                         html1 += '</div>';
-                      
+
                         $("#button-container").append(html1);
                     } else {
                         // 濡傛灉娌℃湁鎸夐挳鏁版嵁锛屽睍绀洪粯璁ょ殑绌虹櫧鏂板鎸夐挳
@@ -299,7 +299,7 @@
 
                     //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
                     var body = layer.getChildFrame('body', index); //寰楀埌iframe椤电殑body鍐呭
-                    
+
                     var HUserName = sessionStorage["HUserName"];
                     var HButtonID = body.find("#HButtonID").val();
                     var HButtonName = body.find("#HName").val();
@@ -395,7 +395,7 @@
                         var LoadData1 = data.data.h_p_JIT_GetWorkBillListInfoBySource;
                         var LoadData2 = data.data.h_p_JIT_GetWorkBillListInfoBySource1;
                         var LoadData3 = data.data.h_p_JIT_GetWorkBillListInfoBySource2; //鏃堕棿鐐逛骇閲�
-                        var LoadData4 = data.data.h_p_JIT_GetWorkBillListInfoBySource3; //涓嶈壇鍒嗘瀽                       
+                        var LoadData4 = data.data.h_p_JIT_GetWorkBillListInfoBySource3; //涓嶈壇鍒嗘瀽
                         if (LoadData1.length > 0)  //宸ュ崟鍒楄〃鏁版嵁
                         {
 
@@ -439,7 +439,7 @@
                                         break;
                                     case "瀹屽伐":
                                         html1 += '<h1><span>褰撳墠鐘舵�侊細</span><span class="gj_icon color_border4"></span><span>' + LoadData1[i].HICMOStatus + '</span><span style="margin-left:5px;">棰嗘枡鐘舵�侊細</span><span>' + LoadData1[i].棰嗘枡鐘舵�� + '</span></h1>';
-                                        break;                                    
+                                        break;
                                 }
                                 html1 += '<span class="prs">鐢熶骇杩涘害锛�</span>';
                                 html1 += '<div class="layui-progress layui-progress-big" lay-showPercent="yes">';
@@ -470,7 +470,7 @@
                                 html1 += '<h1><span>褰撳墠璁㈠崟锛�</span><span>' + LoadData2[i].HSourceBillNo + '</span><div style="margin-left:25px;float:right"><span >宸℃娆℃暟锛�</span><span>' + LoadData2[i].宸℃娆℃暟 + '</span></div></h1>';
                                 html1 += '<h1><span>鐗╂枡鍚嶇О锛�</span><span>' + LoadData2[i].HMaterName + '</span><div style="margin-left:25px;float:right"><span >杩囩▼妫�娆℃暟锛�</span><span>' + LoadData2[i].杩囩▼妫�娆℃暟 + '</span></div></h1>';
                                 html1 += '<h1><span>璁″垝鏁伴噺锛�</span><span>' + LoadData2[i].HPlanQty + '</span><div style="margin-left:25px;float:right"><span >褰撴棩鐐规鏃堕棿锛�</span><span>' + LoadData2[i].褰撴棩鐐规鏃堕棿 + '</span></div></h1>';
-                                html1 += '<h1><span>宸叉眹鎶ユ暟閲忥細</span><span>' + LoadData2[i].HRelationQty + '</span><div style="margin-left:25px;float:right"><span >鏈�鍚庝繚鍏绘椂闂达細</span><span>' + LoadData2[i].鏈�鍚庝繚鍏绘椂闂� + '</span></div></h1>';                                                               
+                                html1 += '<h1><span>宸叉眹鎶ユ暟閲忥細</span><span>' + LoadData2[i].HRelationQty + '</span><div style="margin-left:25px;float:right"><span >鏈�鍚庝繚鍏绘椂闂达細</span><span>' + LoadData2[i].鏈�鍚庝繚鍏绘椂闂� + '</span></div></h1>';
                                 if (LoadData2[i].HRelationQty == 0 || LoadData2[i].HRelationQty == null) {
                                     html1 += '<h1><span>杩涘害锛�</span><span>0%</span><div style="margin-left:25px;float:right"><span >鐐规瀹屾垚鎯呭喌锛�</span><span>' + LoadData2[i].褰撴棩鐐规瀹屾垚鎯呭喌 + '</span></div></h1>';
                                 }
@@ -610,8 +610,8 @@
 
                 }
             });
-        }       
-   
+        }
+
         //鍒犻櫎璧勬簮
         function Delete(event, obj, i) {
             event.stopPropagation();  //闃绘鍐掓场
@@ -1165,7 +1165,7 @@
                 , shade: 0.6
                 , maxmin: false
                 , anim: 0
-                , content: ['璐ㄩ噺绠$悊/棣栦欢妫�楠屽崟/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID + '&HSourceEntryID=' + HSourceEntryID+'', 'yes']
+                , content: ['璐ㄩ噺绠$悊/棣栦欢妫�楠屽崟/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID + '&HSourceEntryID=' + HSourceEntryID + '', 'yes']
                 , resize: false
                 , cancel: function () {
                 }
@@ -1184,11 +1184,34 @@
             layer.open({
                 type: 2
                 , area: ['100%', '100%']
+                , 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_Add_Edit_PatrolProcCheckOtherill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID+ '&HSourceEntryID=' + HSourceEntryID+'', 'yes']
+                , content: ['璐ㄩ噺绠$悊/宸ュ簭妫�楠屽崟/QC_ProcessCheckBill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID + '&HSourceEntryID=' + HSourceEntryID + '', 'yes']
                 , resize: false
                 , cancel: function () {
 
@@ -1217,6 +1240,35 @@
                 , maxmin: false
                 , anim: 0
                 , content: ['鐢熶骇绠$悊/璐ㄩ噺姹囨姤鍗�/Sc_QualityReportBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID, 'yes']
+                , resize: false
+                , cancel: function () {
+
+                }
+                , end: function () {
+
+                }
+            })
+        }
+
+
+        //寰憰鍝佹眹鎶�
+        function SubtleFlaw() {
+            if (wktag == 0) {
+                layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 });
+                return false;
+            }
+            if (WorkStaus(HSourceID1, workcode, HSourceInterID, "寰憰鍝佹眹鎶�")) {
+                layer.alert("鍗曟嵁鐘舵�佷笉婊¤冻寰憰鍝佹眹鎶ユ潯浠�!", { icon: 5 });
+                return false;
+            }
+            layer.open({
+                type: 2
+                , area: ['100%', '100%']
+                , title: '寰憰鍝佹眹鎶ュ崟-缂栬緫'
+                , shade: 0.6
+                , maxmin: false
+                , anim: 0
+                , content: ['鐢熶骇绠$悊/璐ㄩ噺姹囨姤鍗�/Sc_QualityReportBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID + '&HBillSubType=寰憰鍝�', 'yes']
                 , resize: false
                 , cancel: function () {
 
@@ -1330,7 +1382,7 @@
         }
 
         //璁惧鍚姩鐐规鎸夐挳鐐瑰嚮浜嬩欢
-        function BeginDotCheck(event, obj) {          
+        function BeginDotCheck(event, obj) {
             layer.open({
                 type: 2,
                 skin: 'layui-layer-rim', //鍔犱笂杈规
@@ -1361,7 +1413,7 @@
         }
 
         //寮傚父鎸夐挳鐐瑰嚮浜嬩欢
-        function Abnormal (event, obj) {
+        function Abnormal(event, obj) {
             layer.open({
                 type: 2,
                 skin: 'layui-layer-rim', //鍔犱笂杈规
@@ -1408,7 +1460,7 @@
                     var data = [];
                     data.push({
                         "HMaterID": HMaterID,
-                        "HProcID": HProcID,                     
+                        "HProcID": HProcID,
                         "SCOrder": HSourceBillNo
                     });
 
@@ -1425,7 +1477,7 @@
             if (wktag == 0) {
                 layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 });
                 return false;
-            }           
+            }
             layer.open({
                 type: 2,
                 skin: 'layui-layer-rim', //鍔犱笂杈规
@@ -1509,7 +1561,7 @@
                 content: '鐢熶骇绠$悊/寮傚父鍙嶉鍗�/OA_ErrMsgBackSignBill_BrushCard.html?OperationType=2',
                 end: function () {
 
-                }                
+                }
             });
         }
 
@@ -1664,7 +1716,7 @@
             <div class="layui-col-sm12 layui-col-md4">
                 <fieldset style="border: 1px solid #eee;box-shadow: 0 2px 5px 0 rgb(0 0 0 / 10%);">
                     <legend style="color: #5FB878">鎿嶄綔鍙�</legend>
-                    <div class="content4" >
+                    <div class="content4">
                         <!--<div class="layui-row layui-col-space10">
                             <div class="layui-col-sm12 layui-col-md4" onclick="OpenWork(event,this)">
                                 <div class="cnt bottomright">
@@ -1713,8 +1765,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>
@@ -1813,7 +1865,16 @@
                                     <span class="imgtitle">寮傚父楠屾敹</span>
                                 </div>
                             </div>
+                            <div class="layui-col-sm12 layui-col-md4" onclick="SubtleFlaw(event,this)">
+                                <div class="cnt bottomright">
+                                    <span class="layui-icon layui-icon-log imgicon"></span>
+                                    <span class="imgtitle">寰憰鍝佹眹鎶�</span>
+                                </div>
+                            </div>
                         </div>-->
+                        <!--鏁版嵁鎻掑叆鍔ㄦ�佹寜閽甋QL锛岀劧鍚庢椤甸潰鍐欑偣鍑讳簨浠跺嵆鍙紝缃戦〉缁戝畾鏂版寜閽嵆鍙娇鐢�-->
+                        <!--insert into Gy_BGButtons (HNumber,HName,HIcno,HOnclick,HSize,HOrder) values ('鎸夐挳浠g爜','鎸夐挳鍚嶅瓧','鎸夐挳鍥炬爣','鎸夐挳鐐瑰嚮浜嬩欢','鎸夐挳榛樿澶у皬锛岄粯璁ゆ槸涓紙澶э紝涓紝灏忥級','鎸夐挳榛樿鎺掑簭 榛樿0')-->
+
                         <div class="layui-row layui-col-space10" id="button-container">
 
                         </div>

--
Gitblit v1.9.1