yangle
2024-06-11 865eb3bcd1a25d5f9233f85c2549c6fe3da3ceb0
WebTM/views/ÏúÊÛ¹ÜÀí/ÏúÊÛµ÷¼Ûµ¥/Xs_SellOutChangeBillList.html
@@ -716,19 +716,19 @@
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    //#region åˆ¤æ–­æºå•状态
                    var HSourceBillData = "";
                    var HSourceBillData = getSourceBillStatus_SellOutChangeBill(data[0].hmainid);            //获取单据数据
                    if (HSourceBillData != "none") {
                        if (HSourceBillData.length == 0) {
                            layer.alert("打印失败!未查询到单据信息!", { icon: 5 });
                            return;
                        } else if (HSourceBillData[0]["状态"] != "已审核") {
                            layer.alert("打印失败!单据状态未为'已审核'状态!", { icon: 5 });
                            return;
                        }
                    } else {
                        return;
                    }
                    //var HSourceBillData = "";
                    //var HSourceBillData = getSourceBillStatus_SellOutChangeBill(data[0].hmainid);            //获取单据数据
                    //if (HSourceBillData != "none") {
                    //    if (HSourceBillData.length == 0) {
                    //        layer.alert("打印失败!未查询到单据信息!", { icon: 5 });
                    //        return;
                    //    } else if (HSourceBillData[0]["状态"] != "已审核") {
                    //        layer.alert("打印失败!单据状态未为'已审核'状态!", { icon: 5 });
                    //        return;
                    //    }
                    //} else {
                    //    return;
                    //}
                    //#endregion
                    
                    layer.open({