From 28711a084415ac3a74c719e9a3b4fffc21a02ee1 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 11 九月 2024 21:06:47 +0800
Subject: [PATCH] 1

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

diff --git a/WebTM/views/IpadIndex.html b/WebTM/views/IpadIndex.html
index 7fdb583..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;
             }
@@ -1286,6 +1286,40 @@
             });
         }
 
+        //寮傚父绛惧埌澶勭悊鐐瑰嚮浜嬩欢
+        function SingErrMsg(event, obj) {
+            layer.open({
+                type: 2,
+                skin: 'layui-layer-rim', //鍔犱笂杈规
+                title: '鏂板寮傚父绛惧埌澶勭悊鍗�',
+                closeBtn: 1,
+                shift: 2,
+                area: ['100%', '100%'],
+                maxmin: true,
+                content: '鐢熶骇绠$悊/寮傚父鍙嶉鍗�/OA_ErrMsgBackSignBill_BrushCard.html?OperationType=2',
+                end: function () {
+
+                }                
+            });
+        }
+
+        //寮傚父楠屾敹鐐瑰嚮浜嬩欢
+        function ErrMsgBackCheck(event, obj) {
+            layer.open({
+                type: 2,
+                skin: 'layui-layer-rim', //鍔犱笂杈规
+                title: '鏂板寮傚父鍙嶉楠屾敹鍗�',
+                closeBtn: 1,
+                shift: 2,
+                area: ['100%', '100%'],
+                maxmin: true,
+                content: '璐ㄩ噺绠$悊/寮傚父鍙嶉/OA_ErrMsgBackSelfQuery_BGT.html?OperationType=2',
+                end: function () {
+
+                }
+            });
+        }
+
         //閫�鍑�
         function Esc(event, obj) {
             parent.location.href = "index.html"
@@ -1296,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>
@@ -1497,7 +1529,7 @@
                             <div class="layui-col-sm12 layui-col-md4" onclick="Abnormal(event,this)">
                                 <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-unlink imgicon"></span>
-                                    <span class="imgtitle">寮傚父</span>
+                                    <span class="imgtitle">寮傚父鐢宠</span>
                                 </div>
                             </div>
                             <div class="layui-col-sm12 layui-col-md4" onclick="Esc(event,this)">
@@ -1547,7 +1579,21 @@
                                 </div>
                             </div>
                         </div>
-                                              
+                        <div class="layui-row layui-col-space10">
+                            <div class="layui-col-sm12 layui-col-md4" onclick="SingErrMsg(event,this)">
+                                <div class="cnt bottomright">
+                                    <span class="layui-icon layui-icon-layer imgicon"></span>
+                                    <span class="imgtitle">寮傚父绛惧埌澶勭悊</span>
+                                </div>
+                            </div>
+                            <div class="layui-col-sm12 layui-col-md4" onclick="ErrMsgBackCheck(event,this)">
+                                <div class="cnt bottomright">
+                                    <span class="layui-icon layui-icon-layer imgicon"></span>
+                                    <span class="imgtitle">寮傚父楠屾敹</span>
+                                </div>
+                            </div>                          
+                        </div>
+
                     </div>
                 </fieldset>
             </div>

--
Gitblit v1.9.1