From 3c1c8a3f7b697de8ea8d3185054a28f15f3c56b2 Mon Sep 17 00:00:00 2001 From: yxj <yxj@hz-kingdee.com> Date: 星期三, 27 十二月 2023 13:41:36 +0800 Subject: [PATCH] 1 --- WebTM/views/生产管理/生产汇报单/Sc_Add_ICMOReportBillList.html | 33 +++++++++++++++++++++++++++++++-- 1 files changed, 31 insertions(+), 2 deletions(-) diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\346\261\207\346\212\245\345\215\225/Sc_Add_ICMOReportBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\346\261\207\346\212\245\345\215\225/Sc_Add_ICMOReportBillList.html" index e45fb24..0cb8b35 100644 --- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\346\261\207\346\212\245\345\215\225/Sc_Add_ICMOReportBillList.html" +++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\346\261\207\346\212\245\345\215\225/Sc_Add_ICMOReportBillList.html" @@ -569,7 +569,7 @@ //#region 瀹℃牳 form.on('submit(set_CheckBill)', function (data) { - + set_CheckBill() }); //#endregion @@ -647,6 +647,35 @@ } }); } + } + //#endregion + + //#region 瀹℃牳 + function set_CheckBill() { + var InterID = $("#HInterID").val(); + //閫昏緫瀹℃牳鏂规硶 + $.ajax({ + type: "GET", + url: GetWEBURL() + "/Sc_ICMOReportBill/AuditProcessReportList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + data: { "HInterID": InterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] }, + success: function (result) { + if (result.count == 1) { + layer.msg(result.Message, { time: 1 * 10000, icon: 1 }, function () { + // 寰楀埌frame绱㈠紩 + var index = layer.getFrameIndex(window.name); + //鍏抽棴褰撳墠frame + layer.close(index); + //淇敼涓哄姛鍚庡埛鏂扮晫闈� + $("#btnSearch").trigger('click'); + }); + + } else { + layer.alert(result.code + result.Message, { icon: 5 }); + } + }, error: function () { + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); } //#endregion @@ -911,7 +940,7 @@ success: function (d) { //console.log(d.data); $("#HBillNo").val(d.data[0].HBillNo); - $("#HInterID").val(0); + $("#HInterID").val(d.data[0].HInterID); $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); $("#HMakeDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); $("#HMaker").val(sessionStorage["HUserName"]); -- Gitblit v1.9.1