收料通知单:维护页面、编辑页面只有单据已审核才能打印
采购入库单:编辑页面打印在新增保存后直接打印无数据问题解决
4个文件已修改
69 ■■■■■ 已修改文件
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/采购管理/收料通知单/Add_Edit_Cg_POInStockBillList.html 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/采购管理/收料通知单/Cg_POInStockBillList.html 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/外购入库/Add_Edit_Kf_POStockInBillList.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -7475,12 +7475,12 @@
      <publishTime>07/31/2024 13:38:19</publishTime>
    </File>
    <File Include="views/采购管理/收料通知单/Add_Edit_Cg_POInStockBillList.html">
      <publishTime>03/19/2025 10:10:14</publishTime>
      <publishTime>03/27/2025 15:52:55</publishTime>
    </File>
    <File Include="views/采购管理/收料通知单/Cg_POInStockBillList.html">
      <publishTime>04/16/2021 10:32:11</publishTime>
      <publishTime>04/16/2021 10:32:11</publishTime>
      <publishTime>03/24/2025 13:06:33</publishTime>
      <publishTime>03/27/2025 15:35:04</publishTime>
    </File>
    <File Include="views/采购管理/收料通知单/Cg_POInStockBillQuery.html">
      <publishTime>03/03/2025 08:46:28</publishTime>
@@ -7547,7 +7547,7 @@
    <File Include="views/采购管理/采购订单/Cg_POOrderBillList.html">
      <publishTime>04/16/2021 10:32:11</publishTime>
      <publishTime>04/16/2021 10:32:11</publishTime>
      <publishTime>03/27/2025 13:53:19</publishTime>
      <publishTime>03/27/2025 15:19:02</publishTime>
    </File>
    <File Include="views/采购管理/采购订单/Cg_POOrderBillQuery.html">
      <publishTime>12/05/2024 08:36:48</publishTime>
@@ -8158,7 +8158,7 @@
      <publishTime>04/11/2023 16:34:43</publishTime>
    </File>
    <File Include="views/验收入库/外购入库/Add_Edit_Kf_POStockInBillList.html">
      <publishTime>03/19/2025 10:10:14</publishTime>
      <publishTime>03/27/2025 15:43:39</publishTime>
    </File>
    <File Include="views/验收入库/外购入库/Kf_POStockInBackBill.html">
      <publishTime>04/12/2021 11:31:26</publishTime>
@@ -8168,7 +8168,7 @@
    <File Include="views/验收入库/外购入库/Kf_POStockInBackBillList.html">
      <publishTime>04/12/2021 11:31:26</publishTime>
      <publishTime>04/12/2021 11:31:26</publishTime>
      <publishTime>03/13/2025 15:34:26</publishTime>
      <publishTime>03/27/2025 15:27:34</publishTime>
    </File>
    <File Include="views/验收入库/外购入库/Kf_POStockInBackBill_Add_Up.html">
      <publishTime>03/17/2025 10:25:47</publishTime>
@@ -8176,7 +8176,7 @@
    <File Include="views/验收入库/外购入库/Kf_POStockInBillList.html">
      <publishTime>04/15/2021 16:31:28</publishTime>
      <publishTime>04/15/2021 16:31:28</publishTime>
      <publishTime>03/27/2025 13:53:19</publishTime>
      <publishTime>03/27/2025 15:25:30</publishTime>
    </File>
    <File Include="views/验收入库/外购入库/Kf_POStockInBillListQuery.html">
      <publishTime>12/05/2024 08:36:48</publishTime>
WebTM/views/²É¹º¹ÜÀí/ÊÕÁÏ֪ͨµ¥/Add_Edit_Cg_POInStockBillList.html
@@ -1098,6 +1098,23 @@
            //#region æ‰“印
            function get_PrintReport() {
                //#region åˆ¤æ–­æºå•状态
                var HSourceBillData = "";
                var HSourceBillData = getSourceBillStatus_POInStockBill();
                if (HSourceBillData != "none") {
                    if (HSourceBillData.length == 0) {
                        layer.alert("打印失败!未查询到单据信息!", { icon: 5 });
                        return;
                    } else if (HSourceBillData[0]["状态"] != "已审核") {
                        layer.alert("打印失败!单据状态未为'已审核'状态!", { icon: 5 });
                        return;
                    }
                } else {
                    return;
                }
                //#endregion
                //if (linterid == null || linterid == "") {
                //    linterid = $("#HInterID").val();
                //}
@@ -2741,6 +2758,30 @@
                return res;
            }
            //#endregion
            //#region èŽ·å–æœ¬å•å•æ®çŠ¶æ€
            function getSourceBillStatus_POInStockBill() {
                var HSourceBillData = "none";
                var sWhere = " and hmainid = " + $("#HInterID").val();
                $.ajax({
                    url: GetWEBURL() + '/Cg_POInStockBill/list',
                    async: false,
                    type: "GET",
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                    success: function (data1) {
                        if (data1.count == 1) {
                            HSourceBillData = data1.data;
                        } else {
                            layer.alert(data1.code + "单据状态判断失败!", { icon: 5 });
                        }
                    }, error: function () {
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
                return HSourceBillData;
            }
            //#endregion
            //#endregion
WebTM/views/²É¹º¹ÜÀí/ÊÕÁÏ֪ͨµ¥/Cg_POInStockBillList.html
@@ -1464,6 +1464,11 @@
                    var hmainid = [];
                    for (var i = 0; i < checkStatus.data.length; i++) {
                        if (checkStatus.data[i].状态 != "已审核" && checkStatus.data[i].状态!="") {
                            layer.alert("打印失败!原因:单据状态不为'已审核'状态!!", { icon: 5 });
                            return;
                        }
                        hmainid.push(data[i].hmainid.toString() + padStart(data[i].hsubid.toString(),8))
                    }
                    layer.open({
@@ -1495,6 +1500,12 @@
                    return layer.msg('请选择一行数据打印!');
                }
                else {
                    if (data[0].状态 != "已审核") {
                        layer.alert("打印失败!原因:单据状态不为'已审核'状态!!", { icon: 5 });
                        return;
                    }
                    layer.open({
                        type: 2
                        , area: ['50%', '50%']
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Add_Edit_Kf_POStockInBillList.html
@@ -1041,6 +1041,11 @@
            //#region æ‰“印
            function get_PrintReport() {
                var temp = $("#HInterID").val();
                if (typeof (temp) != "undefined" && temp != null && temp != "") {
                    linterid = temp;
                }
                layer.open({
                    type: 2
                    , area: ['50%', '50%']