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/IpadIndex.html                               |    4 ++--
 WebTM/views/生产管理/产量汇报单/Sc_ProductReportBillList_Web.html |   28 ++++++++++++++++++++--------
 2 files changed, 22 insertions(+), 10 deletions(-)

diff --git a/WebTM/views/IpadIndex.html b/WebTM/views/IpadIndex.html
index 662ca53..f33de6c 100644
--- a/WebTM/views/IpadIndex.html
+++ b/WebTM/views/IpadIndex.html
@@ -193,8 +193,8 @@
                                 }
                                 html1 += '<span class="prs">鐢熶骇杩涘害锛�</span>';
                                 html1 += '<div class="layui-progress layui-progress-big" lay-showPercent="yes">';
-                                html1 += '<div class="layui-progress-bar" lay-percent="' + LoadData1[i].HDateFinishQty / LoadData1[i].HDatePlanQty + '%" style="width:' + LoadData1[i].HDateFinishQty / LoadData1[i].HDatePlanQty + '%;">';
-                                html1 += '<span class="layui-progress-text">' + LoadData1[i].HDateFinishQty / LoadData1[i].HDatePlanQty + '%</span>';
+                                html1 += '<div class="layui-progress-bar" lay-percent="' + (LoadData1[i].HDateFinishQty / LoadData1[i].HDatePlanQty)*100 + '%" style="width:' + (LoadData1[i].HDateFinishQty / LoadData1[i].HDatePlanQty)*100 + '%;">';
+                                html1 += '<span class="layui-progress-text">' + (LoadData1[i].HDateFinishQty / LoadData1[i].HDatePlanQty)*100 + '%</span>';
                                 html1 += '</div > ';
                                 html1 += '</div>';
                                 html1 += '</dd>';
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