1
yusijie
2024-05-06 62f346794d27086f41f7ce901bdd11eead5249c8
WebTM/views/²Ö´æ¹ÜÀí/·Ö²½Ê½µ÷Èëµ¥/Fb_StepFoldinBillList.html
@@ -267,6 +267,7 @@
                        , { field: '日期', title: '日期', width: 125, templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>", sort: true }
                        , { field: '单据号', title: '单据号', width: 195, sort: true }
                        , { field: '单据类型', title: '单据类型', width: 110, sort: true, hide: true }
                        , { field: '状态', title: '状态', width: 195, sort: true }
                        , { field: '物料代码', title: '物料代码', width: 110, sort: true }
                        , { field: '物料名称', title: '物料名称', width: 110, sort: true }
                        , { field: 'HSecManagerID', title: 'HSecManagerID', width: 200, hide: true, sort: true }
@@ -412,31 +413,36 @@
                    var InterID = data[0].hmainid.toString();
                    //逻辑删除方法
                    layer.confirm("确认要删除吗,删除后不能恢复", { title: "删除确认" }, function (index) {
                        var wait = layer.load();
                        $.ajax({
                            type: "GET",
                            url: GetWEBURL() + "/Fb_StepFoldInBill/DeltetFb_StepFoldInBill", //方法所在页面和方法名
                            data: { "HInterID": InterID },
                            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();
                                    });
                        if (data[0].状态=="创建") {
                            var wait = layer.load();
                            $.ajax({
                                type: "GET",
                                url: GetWEBURL() + "/Fb_StepFoldInBill/DeltetFb_StepFoldInBill", //方法所在页面和方法名
                                data: { "HInterID": InterID },
                                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 {