cnf
6 天以前 32274bc8fad5251f78229d67d86c234a4b32df2e
H5/Js/Dbrk.js
@@ -17,6 +17,7 @@
            active: 0,
            show: false,
            actions: [],
            ItemDetail: [],
        }
    },
    mounted() {
@@ -49,12 +50,14 @@
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    console.log(error);
                });
        },
@@ -76,18 +79,21 @@
        GetMesItemBlDetailByBillNo() {
            var that = this;
            that.isLoading = true;
            that.AxiosHttp("post", 'TransferOut/GetTransferOutDetailListByBillNo', {
            that.AxiosHttp("post", 'TransferOut/GetTransferInDetailListByBillNo', {
                billNo: that.billNo
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.ItemBlDetail = json.data.tbBillList;
                        //that.ItemBlDetail = json.data.tbBillList;
                        that.ItemDetail = json.data.tbBillList;
                        that.$playSound('success');
                        that.$refs.sectionCode.focus();
                        that.sectionCode = "";
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                        that.$refs.billNo.focus();
                        that.billNo = "";
                        that.ItemBlDetail = null;
@@ -97,6 +103,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    that.$refs.billNo.focus();
                    that.billNo = "";
                    that.ItemBlDetail = null;
@@ -110,6 +117,7 @@
            if (that.sectionCode.length == 0) {
                this.$toast.fail("库位编码不能为空");
                that.$playSound('error');
                return;
            }
@@ -122,11 +130,13 @@
                    var json = res;
                    if (json.status == 0) {
                        that.$notify({ type: 'success', message: json.data.tbBillList });
                        that.$playSound('success');
                        that.$refs.barcode.focus();
                        that.barcode = "";
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                        that.$refs.sectionCode.focus();
                        that.sectionCode = "";
@@ -135,6 +145,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    //console.log(error);
                    that.$refs.sectionCode.focus();
                    that.sectionCode = "";
@@ -149,27 +160,30 @@
            if (!that.userInfo.loginAccount) {
                this.$toast.fail("请重新检查登录状态");
                that.$playSound('error');
                that.isLoading = false;
                return;
            }
            if (!that.sectionCode) {
                this.$toast.fail("库位不能为空");
                that.$playSound('error');
                that.isLoading = false;
                return;
            }
            if (!that.barcode) {
                this.$toast.fail("条码不能为空");
                that.$playSound('error');
                that.isLoading = false;
                return;
            }
            if (!that.billNo) {
                this.$toast.fail("申请单号不能为空");
                that.isLoading = false;
                return;
            }
            //if (!that.billNo) {
            //    this.$toast.fail("申请单号不能为空");
            //    that.isLoading = false;
            //    return;
            //}
            that.AxiosHttp("post", 'TransferOut/ScanReceiveBarcode', {
                userName: that.userInfo.loginAccount,
@@ -186,12 +200,15 @@
                        //that.barcode = json.data.form.barcode;
                        that.ItemBlDetail = json.data.items
                        that.$notify({ type: 'success', message: '扫码成功' });
                        that.$playSound('success');
                        that.$refs.barcode.focus();
                        that.barcode = "";
                        //that.GetMesItemBlDetailByBillNo();
                        that.billNo = json.data.form.billNo;
                        that.GetMesItemBlDetailByBillNo();
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                        that.$refs.barcode.focus();
                        that.barcode = "";
                    }
@@ -200,6 +217,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    //console.log(error);
                    that.$refs.barcode.focus();
                    that.barcode = "";