From f7c09e638deaec7bccc4d98e9457490c2c14a42c Mon Sep 17 00:00:00 2001
From: YL <YL@LAPTOP-SE03PLUR>
Date: 星期二, 14 九月 2021 01:31:37 +0800
Subject: [PATCH] 产量汇报单删除后回写生产状态临时表数量及单据状态
---
WebTM/views/生产管理/产量汇报单/Sc_ProductReportBillList_Web.html | 28 ++++++++++++++++++++--------
1 files changed, 20 insertions(+), 8 deletions(-)
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\272\247\351\207\217\346\261\207\346\212\245\345\215\225/Sc_ProductReportBillList_Web.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\272\247\351\207\217\346\261\207\346\212\245\345\215\225/Sc_ProductReportBillList_Web.html"
index 68fcb63..3f5525f 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\272\247\351\207\217\346\261\207\346\212\245\345\215\225/Sc_ProductReportBillList_Web.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\272\247\351\207\217\346\261\207\346\212\245\345\215\225/Sc_ProductReportBillList_Web.html"
@@ -406,18 +406,30 @@
data: { "HInterID": InterID, "HICMOInterID": HICMOInID, "HICMOEntryID": HICMOEnID, "UserName": sessionStorage["HUserName"]},
success: function (result) {
if (result.count == 1) {
- layer.msg(result.Message, { time: 1 * 2000, icon: 1 });
- table.reload('mainTable', {
- page: {
- curr: 1 //閲嶆柊浠庣涓�椤靛紑濮�
- }
- })
- return false;
+ layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+ // 寰楀埌frame绱㈠紩
+ var index = layer.getFrameIndex(window.name);
+ //鍏抽棴褰撳墠frame
+ layer.close(index);
+ //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+ window.location.reload();
+ });
} else {
layer.alert(result.code + result.Message, { icon: 5 });
- return false;
}
+ //if (result.count == 1) {
+ // layer.msg(result.Message, { time: 1 * 2000, icon: 1 });
+ // table.reload('mainTable', {
+ // page: {
+ // curr: 1 //閲嶆柊浠庣涓�椤靛紑濮�
+ // }
+ // })
+ // return false;
+ //} else {
+ // layer.alert(result.code + result.Message, { icon: 5 });
+ // return false;
+ //}
}, error: function () {
layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
return false;
--
Gitblit v1.9.1