1
duhe
2024-05-06 dc28e591aa32164c957a8e401ee6c5bdebc53384
WebTM/views/ÏúÊÛ¹ÜÀí/·¢»õ֪ͨµ¥/Xs_SeOutStockBillList.html
@@ -264,6 +264,8 @@
                       ,{ field: 'hmainid', title: 'hmainid', sort: true, hide: true }
                        , { field: '日期', title: '日期', width: 125, sort: true }
                        , { field: '单据号', title: '单据号', width: 125, sort: true }
                        , { field: '状态', title: '状态', width: 125, sort: true }
                        , { field: '行状态', title: '行状态', width: 125, sort: true }
                        , { field: 'HBillType', title: 'HBillType', hide: true, sort: true }
                        , { field: 'HCusID', title: 'HCusID', hide: true, sort: true }
                        , { field: '客户代码', title: '客户代码', width: 125, sort: true }
@@ -302,6 +304,7 @@
                        , { field: '计量单位代码', title: '计量单位代码', sort: true }
                        , { field: '计量单位', title: '计量单位', width: 125, sort: true }
                        , { field: '数量', title: '数量', sort: true }
                        , { field: '已关联数量', title: '已关联数量', sort: true }
                        , { field: '单价', title: '单价', sort: true }
                        , { field: '金额', title: '金额', sort: true }
                        , { field: 'HWHID', title: 'HWHID', hide: true, sort: true }
@@ -422,28 +425,33 @@
                            var HSourceEntryID = data[0].源单子内码;
                            //逻辑删除方法
                            layer.confirm("确认要删除吗,删除后不能恢复", { title: "删除确认" }, function (index) {
                                $.ajax({
                                    type: "GET",
                                    url: GetWEBURL() + "Xs_SeOutStockBill/DeltetSeOutStockBill", //方法所在页面和方法名
                                    data: { "HInterID": InterID, "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() + "Xs_SeOutStockBill/DeltetSeOutStockBill", //方法所在页面和方法名
                                        data: { "HInterID": InterID, "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 {