From b1e9188a6de330e9e12d47251205df778ae084d2 Mon Sep 17 00:00:00 2001 From: wtt <1985833171@qq.com> Date: 星期二, 01 四月 2025 08:44:45 +0800 Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI --- WebTM/views/生产管理/班次开班单/Sc_ShiftsBeginInfoBill_Add_Edit.html | 37 ++++++++++++++++++++++++++++++++++--- 1 files changed, 34 insertions(+), 3 deletions(-) diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\217\255\346\254\241\345\274\200\347\217\255\345\215\225/Sc_ShiftsBeginInfoBill_Add_Edit.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\217\255\346\254\241\345\274\200\347\217\255\345\215\225/Sc_ShiftsBeginInfoBill_Add_Edit.html" index 919550e..f4b6e5f 100644 --- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\217\255\346\254\241\345\274\200\347\217\255\345\215\225/Sc_ShiftsBeginInfoBill_Add_Edit.html" +++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\217\255\346\254\241\345\274\200\347\217\255\345\215\225/Sc_ShiftsBeginInfoBill_Add_Edit.html" @@ -743,15 +743,20 @@ var index = layer.load(); $.ajax({ type: "POST", - url: GetWEBURL() + "Sc_ShiftsBeginInfoBill/Save锘縎c_ShiftsBeginInfoBillMain", + url: GetWEBURL() + "Sc_ShiftsBeginInfoBill/Save锘縎c_ShiftsBeginInfoBillMain ", async: true, data: { "sMainSub": sMainSub }, dataType: "json", success: function (data) { if (data.count == 1) { + layer.msg(data.Message, { icon: 1 }); $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); + if (data.Verify == "Y") //鑷姩瀹℃牳 + { + $("#HInterID").val(data.HInterID);//鑾峰彇鎻愪氦鎴愬姛杩斿洖鐨勫崟鎹富ID + set_CheckBill(1); //瀹℃牳 + } layer.close(index); - layer.msg("鎻愪氦鎴愬姛"); } else { @@ -965,7 +970,33 @@ } }) } - //#endregion + //#endregion + + + //瀹℃牳 + function set_CheckBill(num) { + $.ajax({ + type: "GET", + url: GetWEBURL() + "/Sc_ShiftsBeginInfoBill/AuditSc_ShiftsBeginInfoBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + data: { "HInterID": $("#HInterID").val(),"Type": num, "user": sessionStorage["HUserName"] }, + success: function (result) { + if (result.count == 1) { + layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { + // 寰楀埌frame绱㈠紩 + var index = layer.getFrameIndex(window.name); + //鍏抽棴褰撳墠frame + layer.close(index); + + }); + + } else { + layer.alert(result.code + result.Message, { icon: 5 }); + } + }, error: function () { + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); + } //#endregion -- Gitblit v1.9.1