1
yusijie
2024-05-06 62f346794d27086f41f7ce901bdd11eead5249c8
WebTM/views/²É¹º¹ÜÀí/ÊÕÁÏ֪ͨµ¥/Cg_POInStockBillList.html
@@ -297,6 +297,10 @@
                        , { field: '业务员代码', title: '业务员代码', width: 120, sort: true }
                        , { field: '业务员', title: '业务员', sort: true }
                        , { field: '摘要', title: '摘要', sort: true }
                        , { field: '内部单据号', title: '内部单据号', sort: true, hide: true }
                        , { field: '发票编号', title: '发票编号', sort: true, hide: true }
                        , { field: '主表仓库ID', title: '主表仓库ID', width: 120, hide: true, sort: true }
                        , { field: '主表仓库', title: '主表仓库', width: 120, hide: true, sort: true }
                        , { field: '表头备注', title: '表头备注', sort: true }
                        , { field: 'hsubid', title: 'hsubid', hide: true, sort: true }
                        , { field: 'HMaterID', title: 'HMaterID', hide: true, sort: true }
@@ -432,28 +436,32 @@
                            var HSourceEntryID = data[0].源单子内码;
                            //逻辑删除方法
                            layer.confirm("确认要删除吗,删除后不能恢复", { title: "删除确认" }, function (index) {
                                $.ajax({
                                    type: "GET",
                                    url: GetWEBURL() + "Cg_POInStockBill/DeltetPOInStockBill", //方法所在页面和方法名
                                    data: { "HInterID": HInterID, "HsupId": HsupId, "HQty": HQty, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "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();
                                            });
                                if (data[0].状态 == "创建") {
                                    $.ajax({
                                        type: "GET",
                                        url: GetWEBURL() + "Cg_POInStockBill/DeltetPOInStockBill", //方法所在页面和方法名
                                        data: { "HInterID": HInterID, "HsupId": HsupId, "HQty": HQty, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "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 });
                                            }
                                        }, error: function () {
                                            layer.alert("接口请求失败!", { icon: 5 });
                                        }
                                    }, error: function () {
                                        layer.alert("接口请求失败!", { icon: 5 });
                                    }
                                });
                                    });
                                } else {
                                    layer.msg('该条数据不是创建状态,无法删除!');
                                }
                            })
                        }
                        else {