YL
2021-11-09 98efdcd4466525787cd76d1d834c0f540c2c2f6a
WebTM/views/ϵͳ¹ÜÀí/¹«¸æ/GG_NoticeBillList.html
@@ -184,6 +184,7 @@
                    , { field: 'HReceiveMan', title: '接收人', width: 200}
                    , { field: 'HLevel', title: '紧急程度', width: 200 }
                    , { field: 'HDescription', title: '详细内容', width: 200 }
                    , { field: 'HReadFlag', title: '状态', width: 200 }
                    , { field: 'HMaker', title: '制单人', width: 200 }
                    , { field: 'HMakeDate', title: '制单日期', width: 200, templet: "<div>{{d.HMakeDate ==null ?'':layui.util.toDateString(d.HMakeDate, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                    , { field: 'HUpDater', title: '修改人', width: 200 }
@@ -285,34 +286,40 @@
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    var InterID = data[0].hmainid.toString();
                    //逻辑删除方法
                    layer.confirm("确认要删除吗,删除后不能恢复", { title: "删除确认" }, function (index) {
                        var wait = layer.load();
                        $.ajax({
                            type: "GET",
                            url: GetWEBURL() + "Sc_MouldScrapInBill/set_DeleteBill", //方法所在页面和方法名
                            data: { "HInterID": InterID, "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);
                                        //修改为功后刷新界面
                                        window.location.reload();
                                    });
                    var HReadFlag = data[0].HReadFlag.toString();
                    if (HReadFlag == "已阅") {
                        //逻辑删除方法
                        layer.confirm("确认要删除吗,删除后不能恢复", { title: "删除确认" }, function (index) {
                            var wait = layer.load();
                            $.ajax({
                                type: "GET",
                                url: GetWEBURL() + "Sc_MouldScrapInBill/set_DeleteBill", //方法所在页面和方法名
                                data: { "HInterID": InterID, "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);
                                            //修改为功后刷新界面
                                            window.location.reload();
                                        });
                                } else {
                                    layer.alert(result.code + result.Message, { icon: 5 });
                                    } else {
                                        layer.alert(result.code + result.Message, { icon: 5 });
                                    }
                                    layer.close(wait);
                                }, error: function () {
                                    layer.close(wait);
                                    layer.alert("接口请求失败!", { icon: 5 });
                                }
                                layer.close(wait);
                            }, error: function () {
                                layer.close(wait);
                                layer.alert("接口请求失败!", { icon: 5 });
                            }
                        });
                    })
                            });
                        })
                    }
                    else {
                        layer.msg('已阅公告不允许删除!');
                    }
                }
                else {
                    layer.msg('请选择一行数据删除!');