From 4836d8e0c4fa15e7092c894857b3ffb569e06508 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期二, 10 九月 2024 09:51:48 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI

---
 WebTM/views/IpadIndex.html |   92 ++++++++++++++++++++++-----------------------
 1 files changed, 45 insertions(+), 47 deletions(-)

diff --git a/WebTM/views/IpadIndex.html b/WebTM/views/IpadIndex.html
index 8e45e25..85e3499 100644
--- a/WebTM/views/IpadIndex.html
+++ b/WebTM/views/IpadIndex.html
@@ -1071,7 +1071,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 +1330,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