From d9ccb1dfdb438225014b0b95d642a4e2a0c3736b Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期三, 07 九月 2022 19:43:10 +0800
Subject: [PATCH] 隐藏列 维护 工艺路线 物料id 小写

---
 WebTM/views/生产管理/生产停工单/Sc_Add_MESStopWorkBillList.html |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\201\234\345\267\245\345\215\225/Sc_Add_MESStopWorkBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\201\234\345\267\245\345\215\225/Sc_Add_MESStopWorkBillList.html"
index 647e73c..d2ecf76 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\201\234\345\267\245\345\215\225/Sc_Add_MESStopWorkBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\201\234\345\267\245\345\215\225/Sc_Add_MESStopWorkBillList.html"
@@ -337,6 +337,7 @@
         var HSourceEntryID = "";  //婧愬崟瀛愬唴鐮�
         var HSourceBillNo = "";   //婧愬崟鍗曞彿
         var HSourceBillType = "";  //婧愬崟绫诲瀷
+        var refSav = "";   //鎻愪氦绫诲瀷
         //鑾峰彇椤甸潰璺宠浆鍙傛暟  //鍗曟嵁缂栬緫鐘舵�侊細 1.鏃犳簮鍗曟柊澧灺� 聽2.鏈夋簮鍗曟柊澧灺� 聽3.缂栬緫聽 4.娴忚聽 5.鍙樻洿
         var params = get_UrlVars();
         if (typeof (params[params[0]]) == "undefined") {
@@ -438,6 +439,7 @@
 
             //鏈夋簮鍗曟柊澧�
             function set_AddNew() {
+                refSav = "Add";
                 //鍒濆鍩烘湰淇℃伅璧嬪��
                 $("#HDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss"));      //鍗曟嵁鏃ユ湡
                 $("#HStopBeginWorkTime").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss"))  //寮�濮嬫椂闂�
@@ -509,6 +511,7 @@
 
             //缂栬緫
             function set_EditFromGrid() {
+                refSav = "Update";
                 //鍔犳簮鍗曠被鍨嬪尯鍒�(鍙互鍐欎笉鍚岀殑鏂规硶)
                 $('#HProcName').attr("disabled", true);
                 $('#HMaterCode').attr("disabled", true);
@@ -608,6 +611,7 @@
             //淇濆瓨鎻愪氦
             form.on('submit(Saver)', function (data) {
                 var sMainStr = JSON.stringify(data.field);
+                var sMainSub = sMainStr + ';' + sessionStorage["HUserName"] + ';' + refSav;
                 if (!AllowLoadData())//鏁版嵁楠岃瘉
                 {
                     return false;
@@ -615,8 +619,8 @@
                 $.ajax({
                     type: "POST",
                     url: GetWEBURL() + "/Sc_MESStopWorkBill/SaveGetMESStopFrom", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
-                    async: true,
-                    data: { "msg": sMainStr },
+                    async: false,
+                    data: { "msg": sMainSub },
                     dataType: "json",
                     success: function (data) {
                         if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
@@ -626,7 +630,11 @@
                             }, function (index) {
                                 if (data.Verify == "Y") //鑷姩瀹℃牳
                                 {
+                                    layer.close(index);
                                     SaveVerify(); //瀹℃牳
+                                }
+                                else {
+                                    layer.close(index);
                                 }
                             });
                         }
@@ -653,7 +661,7 @@
                     return false;
                 }
                 $.ajax({
-                    type: "POST",
+                    type: "GET",
                     url: GetWEBURL() + "/Sc_MESStopWorkBill/AuditProcessReportList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
                     async: true,
                     data: { "HInterID": InterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] },

--
Gitblit v1.9.1