快乐的昕的电脑
3 天以前 7372a71c35150a37c4cf1b5e83d96f7f8bc374d3
销售出库:条码拆分更改为存储过程实现
已修改1个文件
28 ■■■■■ 文件已修改
H5/Js/Xsck.js 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Xsck.js
@@ -186,7 +186,7 @@
            }
            if (!that.billNo) {
                this.$toast.fail("发货通知单号不能为空");
                this.$toast.fail("申请单号不能为空");
                that.isLoading = false;
                return;
            }
@@ -201,7 +201,8 @@
            that.AxiosHttp("post", 'MesXsck/XSCKScanBarcode', {
                userName: that.userInfo.loginAccount,
                barcode: that.barcode,
                daa001: that.billNo,
                daa001: that.daa001,
                billNo: that.billNo,
                //type: selectType
            }, false)
                .then(function (res) {
@@ -221,8 +222,12 @@
                    } else if (json.status == 2) {
                        that.$refs.splitNum.focus();
                        that.splitNum = json.data.cfNum;
                        that.num = json.data.num;
                        that.splitNum = json.data.tbBillList.splitNum; // 拆分数量
                        that.num = json.data.tbBillList.barcodeNum;    // 条码数量
                        that.daa001 = json.data.tbBillList.daa001;     // 工单号
                        if (json.data.tbBillList.billNo) {
                            that.billNo = json.data.tbBillList.billNo;
                        }     // 发货通知单号,只在有值时赋值
                    }
                    else {
                        that.$toast.fail(json.message);
@@ -263,16 +268,16 @@
            }
            if (!that.billNo) {
                this.$toast.fail("补料单号不能为空");
                this.$toast.fail("发货单号不能为空");
                that.isLoading = false;
                return;
            }
            if (!that.daa001) {
                this.$toast.fail("工单号不能为空");
                that.isLoading = false;
                return;
            }
            //if (!that.daa001) {
            //    this.$toast.fail("工单号不能为空");
            //    that.isLoading = false;
            //    return;
            //}
            if (!that.splitNum) {
                this.$toast.fail("发货数量不能为空");
@@ -283,7 +288,8 @@
            that.AxiosHttp("post", 'MesXsck/SplitBarcode', {
                userName: that.userInfo.loginAccount,
                barcode: that.barcode,
                daa001: that.billNo,
                daa001: that.daa001,
                billNo: that.billNo,
                num: that.splitNum,
                //type: selectType
            }, false)