From 2baa0ebfe5a070891bed8802b2a928112e55f68f Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期一, 28 十月 2024 19:23:58 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI

---
 WebTM/views/IpadIndex.html |   99 +++++++++++++++++++++++++------------------------
 1 files changed, 50 insertions(+), 49 deletions(-)

diff --git a/WebTM/views/IpadIndex.html b/WebTM/views/IpadIndex.html
index 8e45e25..753ae37 100644
--- a/WebTM/views/IpadIndex.html
+++ b/WebTM/views/IpadIndex.html
@@ -30,6 +30,7 @@
         var HSourceID1 = "";        //鐢熶骇璧勬簮ID1
         var HSourceName1 = "";      //鐢熶骇璧勬簮1
         var HSourceInterID = "";   //婧愬崟涓诲唴鐮�
+        var HProcExchInterID = "";   //娴佽浆鍗d
         var HSourceEntryID = "";   //婧愬崟瀛愬唴鐮�
         var HSourceBillNo = "";    //婧愬崟鍗曞彿
         var HSourceBillType = "";  //婧愬崟绫诲瀷
@@ -206,6 +207,7 @@
                                 html1 += '<h1 style="display:none;"><span>鍗曟嵁绫诲瀷锛�</span><span id="ty' + (i + 1) + '">' + LoadData1[i].HBillType + '</span></h1>';
                                 //HSourceInterID瀹為檯鍙栧�硷細Sc_ICMOBillStatus_Tmp  HInterID锛堝崟鎹富ID锛�
                                 html1 += '<h1 style="display:none;"><span>婧愬崟涓诲唴鐮侊細</span><span id="sm' + (i + 1) + '">' + LoadData1[i].HSourceInterID + '</span></h1>';
+                                html1 += '<h1 style="display:none;"><span>娴佽浆鍗′富ID锛�</span><span id="lzk' + (i + 1) + '">' + LoadData1[i].HProcExchInterID + '</span></h1>';
                                 html1 += '<h1 style="display:none;"><span>婧愬崟瀛愬唴鐮侊細</span><span id="sb' + (i + 1) + '">' + LoadData1[i].HSourceEntryID + '</span></h1>';
                                 html1 += '<h1 style="display:none;"><span>婧愬崟鍗曞彿锛�</span><span id="sw' + (i + 1) + '">' + LoadData1[i].HSourceBillNo + '</span></h1>';
                                 html1 += '<h1 style="display:none;"><span>婧愬崟绫诲瀷锛�</span><span id="st' + (i + 1) + '">' + LoadData1[i].HSourceBillType + '</span></h1>';
@@ -439,6 +441,7 @@
             workcode = $("#wk" + i + "").html(); //閫氳繃鏍峰紡ID鑾峰彇html鍐呭(宸ュ崟鍙�)
             HBillType = $("#ty" + i + "").html(); //閫氳繃鏍峰紡ID鑾峰彇html鍐呭(鍗曟嵁绫诲瀷)
             HSourceInterID = $("#sm" + i + "").html(); //閫氳繃鏍峰紡ID鑾峰彇html鍐呭(婧愬崟涓诲唴鐮�)
+            HProcExchInterID = $("#lzk" + i + "").html(); //娴佽浆鍗D
             HSourceEntryID = $("#sb" + i + "").html(); //閫氳繃鏍峰紡ID鑾峰彇html鍐呭(婧愬崟瀛愬唴鍚�)
             HSourceBillNo = $("#sw" + i + "").html(); //閫氳繃鏍峰紡ID鑾峰彇html鍐呭(婧愬崟鍗曞彿)
             HSourceBillType = $("#st" + i + "").html(); //閫氳繃鏍峰紡ID鑾峰彇html鍐呭(婧愬崟绫诲瀷)
@@ -955,7 +958,7 @@
                 , shade: 0.6
                 , maxmin: false
                 , anim: 0
-                , content: ['璐ㄩ噺绠$悊/棣栦欢妫�楠屽崟/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID, 'yes']
+                , content: ['璐ㄩ噺绠$悊/棣栦欢妫�楠屽崟/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=2&linterid=' + HProcExchInterID  + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID, 'yes']
                 , resize: false
                 , cancel: function () {
                 }
@@ -978,7 +981,7 @@
                 , shade: 0.6
                 , maxmin: false
                 , anim: 0
-                , content: ['璐ㄩ噺绠$悊/宸ュ簭妫�楠屽崟/QC_ProcessCheckBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID, 'yes']
+                , content: ['璐ㄩ噺绠$悊/宸℃璁板綍鍗�/QC_Add_Edit_PatrolProcCheckOtherill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID, 'yes']
                 , resize: false
                 , cancel: function () {
 
@@ -1071,7 +1074,7 @@
                 layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 });
                 return false;
             }
-            if (WorkStaus(HSourceID1, workcode, HSourceInterID, "姹囨姤")) {
+            if (WorkStaus(HSourceID1, workcode, HSourceInterID, "鏂帿灏旀眹鎶�")) {
                 layer.alert("鍗曟嵁鐘舵�佷笉婊¤冻姹囨姤鏉′欢!", { icon: 5 });
                 return false;
             }
@@ -1330,53 +1333,51 @@
         function WorkStaus(HSourceID1, workcode, HSourceInterID, btn) {
             var flag = false;
             var sWhere = "";
-            sWhere = {
-                HSourceID: HSourceID1
-                , HICMOBillNo: workcode
-                , HInterID: HSourceInterID
-                , type: btn
+            switch (btn) {
+                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 not in('1','2')";   //鏄惁鏈変笉涓哄紑宸ャ�佸畬宸ョ姸鎬�
+                    break;
+                case "鍋滃伐":
+                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('1')";   //鏄惁鏈変笉涓哄仠宸ユ寕璧风姸鎬�
+                    break;
+                case "姹囨姤":
+                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('1','2')";   //鏄惁鏈変笉涓哄紑宸ャ�佸仠宸ユ寕璧风姸鎬�
+                    break;
+                case "鏂帿灏旀眹鎶�":
+                    sWhere = " where HSourceID='" + HSourceID1 + "' and HSourceBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('1','2')";   //鏄惁鏈変笉涓哄紑宸ャ�佸仠宸ユ寕璧风姸鎬�
+                    break;
+                case "鎶ユ鐢宠":
+
+                    //        break;
+                    //    default:
+                    //}
+
+                    $.ajax({
+                        url: GetWEBURL() + "/Sc_MESBeginWorkBill/GetMESBeginWorkBillStaus",
+                        type: "GET",
+                        data: { "sWhere": JSON.stringify(sWhere) },
+                        dataType: "json",//鏁版嵁绫诲瀷鍙互涓� text xml json  script  jsonp
+                        async: false,
+                        success: function (data) {
+
+                            if (data.count > 0) {
+                                flag = true;
+
+                            }
+                            else {
+                                flag = false;
+                            }
+                        },
+                        error: function (err) {
+                            flag = false;
+                        }
+                    });
+
+                    return flag;
             }
-            //switch (btn) {
-            //    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 not in('1','2')";   //鏄惁鏈変笉涓哄紑宸ャ�佸畬宸ョ姸鎬�
-            //        break;
-            //    case "鍋滃伐":
-            //        sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('1')";   //鏄惁鏈変笉涓哄仠宸ユ寕璧风姸鎬�
-            //        break;
-            //    case "姹囨姤":
-            //        sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('1','2')";   //鏄惁鏈変笉涓哄紑宸ャ�佸仠宸ユ寕璧风姸鎬�
-            //        break;
-            //    case "鎶ユ鐢宠":
-
-            //        break;
-            //    default:
-            //}
-
-            $.ajax({
-                url: GetWEBURL() + "/Sc_MESBeginWorkBill/GetMESBeginWorkBillStaus",
-                type: "GET",
-                data: { "sWhere": JSON.stringify(sWhere) },
-                dataType: "json",//鏁版嵁绫诲瀷鍙互涓� text xml json  script  jsonp
-                async: false,
-                success: function (data) {
-
-                    if (data.count > 0) {
-                        flag = true;
-
-                    }
-                    else {
-                        flag = false;
-                    }
-                },
-                error: function (err) {
-                    flag = false;
-                }
-            });
-
-            return flag;
         }
     </script>
 </head>

--
Gitblit v1.9.1