From b032a9127e74ac175acda94f7ad39905c15ca3fa Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期一, 15 九月 2025 18:04:24 +0800
Subject: [PATCH] 增加pda产量汇报单,完善首巡检,修复停工恢复单

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

diff --git a/WebTM/views/IpadIndex.html b/WebTM/views/IpadIndex.html
index 61a81d5..4e3112e 100644
--- a/WebTM/views/IpadIndex.html
+++ b/WebTM/views/IpadIndex.html
@@ -1664,55 +1664,51 @@
         //鍗曟嵁鐘舵�侀獙璇�
         function WorkStaus(HSourceID1, workcode, HSourceInterID, btn) {
             var flag = false;
-            var sWhere = "";
-            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 in('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 "鎶ユ鐢宠":
+            var sWhere = "";    //鍚庣画鍦ㄥ瓨鍌ㄨ繃绋嬪姞鎺у埗  鏂规硶鏄� h_p_IpadIndexButton
+            //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 in('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;                    
+            //}
 
-                    //        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) {
 
-                    $.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;
 
-                            if (data.count > 0) {
-                                flag = true;
+                    }
+                    else {
+                        flag = false;
+                    }
+                },
+                error: function (err) {
+                    flag = false;
+                }
+            });
 
-                            }
-                            else {
-                                flag = false;
-                            }
-                        },
-                        error: function (err) {
-                            flag = false;
-                        }
-                    });
+            return flag;
 
-                    return flag;
-            }
         }
     </script>
 </head>

--
Gitblit v1.9.1