销售订单下推销售退货单、销售退货单保存:不需要判断源单单据状态
2个文件已修改
40 ■■■■ 已修改文件
WebTM/views/销售管理/销售订单/Xs_SeOrderBillList.html 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/销售管理/销售退货单/Kf_ICStockBackBill.html 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/ÏúÊÛ¹ÜÀí/ÏúÊÛ¶©µ¥/Xs_SeOrderBillList.html
@@ -1000,16 +1000,16 @@
                            , "HSourceBillType": "1401"
                        }
                        dataArray.push(temp);
                        if (data[i].状态 != "已审核") {
                            var err = "下推失败!单据【" + data[i].单据号 + "】的状态为“" + data[0].状态 + "”,不允许下推!";
                            layer.alert(err, { icon: 5 });
                            return;
                        }
                        //if (data[i].状态 != "已审核") {
                        //    var err = "下推失败!单据【" + data[i].单据号 + "】的状态为“" + data[0].状态 + "”,不允许下推!";
                        //    layer.alert(err, { icon: 5 });
                        //    return;
                        //}
                        if (data[i].行状态 == "已关闭") {
                            layer.msg("下推失败!单据号【" + data[i].单据号 + "】下选中的记录中存在已关闭状态的记录!");
                            return;
                        }
                        //if (data[i].行状态 == "已关闭") {
                        //    layer.msg("下推失败!单据号【" + data[i].单据号 + "】下选中的记录中存在已关闭状态的记录!");
                        //    return;
                        //}
                        if (data[i].客户 != HCusName) {
                            layer.msg("下推失败!已经选中的记录中存在不同客户!");
WebTM/views/ÏúÊÛ¹ÜÀí/ÏúÊÛÍË»õµ¥/Kf_ICStockBackBill.html
@@ -199,7 +199,7 @@
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">出库仓库</label>
                                            <label class="layui-form-label">入库仓库</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="HWHName" id="HWHName" class="layui-input" value="" style="float:left;width:150px;">
                                                <input type="hidden" name="HWHID" id="HWHID" class="layui-input" value="0" style="float:left;width:150px;">
@@ -551,13 +551,13 @@
                            if (HSourceBillData == null) {
                                layer.alert("保存失败!第" + (i+1) + "行:未查询到源单单据!", { icon: 5 });
                                return;
                            } else if (HSourceBillData.状态 != "已审核") {
                                var err = "保存失败!原因:第" + (i + 1) + "行-源单单据状态为“" + HSourceBillData.状态 + "”,不允许保存!";
                                layer.alert(err, { icon: 5 });
                                return;
                            } else if (HSourceBillData.行状态 == "已关闭") {
                                layer.alert("保存失败!第" + (i + 1) + "行:该行记录行状态为'已关闭'状态!", { icon: 5 });
                                return;
                            //} else if (HSourceBillData.状态 != "已审核") {
                            //    var err = "保存失败!原因:第" + (i + 1) + "行-源单单据状态为“" + HSourceBillData.状态 + "”,不允许保存!";
                            //    layer.alert(err, { icon: 5 });
                            //    return;
                            //} else if (HSourceBillData.行状态 == "已关闭") {
                            //    layer.alert("保存失败!第" + (i + 1) + "行:该行记录行状态为'已关闭'状态!", { icon: 5 });
                            //    return;
                            }
                        } else {
                            return;
@@ -1370,15 +1370,15 @@
                        , { field: '规格型号', title: '规格型号', width: 100, style: 'background-color:#efefef4d;' }
                        , { field: 'HUnitID', title: 'HUnitID', width: 100, hide: true, style: 'background-color:#efefef4d;' }
                        , { field: '计量单位', title: '计量单位', width: 100, edit: 'text', event: "HUnitID"}//f7
                        , { field: 'HQtyMust', title: '应发数量', width: 100, totalRow: true, style: 'background-color:#efefef4d;'}
                        , { field: 'HQty', title: '实发数量', width: 100, totalRow: true, edit: 'text', event: "HQty" }
                        , { field: 'HQtyMust', title: '应退数量', width: 100, totalRow: true, style: 'background-color:#efefef4d;'}
                        , { field: 'HQty', title: '实退数量', width: 100, totalRow: true, edit: 'text', event: "HQty" }
                        , { field: 'HPrice', title: '单价', width: 100, edit: 'text', event: "HPrice" }
                        , { field: 'HTaxPrice', title: '含税单价', width: 100, edit: 'text', event: "HTaxPrice" }
                        , { field: 'HTaxRate', title: '税率', width: 100, edit: 'text' }
                        , { field: 'HMoney', title: '金额', width: 100, totalRow: true, style: 'background-color:#efefef4d;' }
                        , { field: 'HTaxMoney', title: '价税合计', width: 100, totalRow: true, style: 'background-color:#efefef4d;' }
                        , { field: 'HWHID', title: 'HWHID', width: 100, edit: 'text', hide: true, style: 'background-color:#efefef4d;' }
                        , { field: '发货仓库', title: '发货仓库', width: 100, edit: 'text', event: "HWHID" }
                        , { field: '发货仓库', title: '入库仓库', width: 100, edit: 'text', event: "HWHID" }
                        , { field: 'HRemark', title: '备注', width: 100, edit: 'text' }
                        , { field: 'HQty_Full', title: '满车重量', width: 100, edit: 'text', event: "HQty_Full", hide: true }