1
yangle
2024-05-13 1c6a4c87cc53dfe72d4af0cff53e627d406589eb
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBillList.html
@@ -405,6 +405,7 @@
                        , { field: '业务员', title: '业务员', width: 200, sort: true }
                        , { field: '件数', title: '件数', totalRow: true, width: 200, sort: true }
                        , { field: '数量', title: '数量', totalRow: true, width: 200, sort: true }
                        , { field: '已关联数量', title: '已关联数量', totalRow: true, width: 200, sort: true }
                        , { field: '单价', title: '单价', width: 200, sort: true, totalRow: true}
                        , { field: '税率', title: '税率', width: 200, sort: true, totalRow: true }
                        , { field: '含税单价', title: '含税单价', width: 200, sort: true, totalRow: true }
@@ -840,28 +841,33 @@
                    var InterID = data[0].hmainid.toString();
                    //逻辑删除方法
                    layer.confirm("确认要删除吗,删除后不能恢复", { title: "删除确认" }, function (index) {
                        $.ajax({
                            type: "GET",
                            url: GetWEBURL() + "Kf_SellOutBill/DeltetSellOutBill", //方法所在页面和方法名
                            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);
                                        //修改为功后刷新界面
                                        $("#btnSearch").trigger('click');
                                    });
                        if (data[0].状态=="创建") {
                            $.ajax({
                                type: "GET",
                                url: GetWEBURL() + "Kf_SellOutBill/DeltetSellOutBill", //方法所在页面和方法名
                                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);
                                            //修改为功后刷新界面
                                            $("#btnSearch").trigger('click');
                                        });
                                } 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 {