cnf
6 天以前 32274bc8fad5251f78229d67d86c234a4b32df2e
H5/Js/Sctl.js
@@ -50,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);
                });
        },
@@ -83,9 +85,11 @@
                    if (json.status == 0) {
                        that.ItemDetail = json.data.tbBillList;
                        that.$refs.sectionCode.focus();
                        that.$playSound('success');
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                        that.$refs.billNo.focus();
                        that.ItemDetail = null;
                        that.billNo = null;
@@ -95,6 +99,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    that.$refs.billNo.focus();
                    that.ItemDetail = null;
                    that.billNo = null;
@@ -115,10 +120,12 @@
                    var json = res;
                    if (json.status == 0) {
                        that.depot = json.data.tbBillList;
                        that.$playSound('success');
                        that.$refs.barcode.focus();
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                        that.$refs.sectionCode.focus();
                        that.depotSectionCode = null;
                    }
@@ -127,6 +134,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    that.$refs.sectionCode.focus();
                    that.depotSectionCode = null;
                    console.log(error);
@@ -141,6 +149,7 @@
            if (!that.billNo) {
                this.$toast.fail("申请单号不能为空");
                that.$playSound('error');
                that.$refs.billNo.focus();
                that.isLoading = false;
                return;
@@ -148,6 +157,7 @@
            if (!that.depotSectionCode) {
                this.$toast.fail("库位编号不能为空");
                that.$playSound('error');
                that.$refs.sectionCode.focus();
                that.depotSectionCode = null;
                that.isLoading = false;
@@ -156,6 +166,7 @@
            if (!that.barcode) {
                this.$toast.fail("条码编号不能为空");
                that.$playSound('error');
                that.$refs.barcode.focus();
                that.barcode = null;
                that.isLoading = false;
@@ -164,6 +175,7 @@
            
            if (!that.userInfo.loginAccount) {
                this.$toast.fail(json.message);
                that.$playSound('error');
                return;
            }
@@ -179,16 +191,19 @@
                        that.itemNo = json.data.tbBillList.itemNo;
                        that.sms = json.data.tbBillList.num;
                        that.$playSound('success');
                        that.$notify({ type: 'success', message: '扫描成功' });
                    }
                    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);
                });
        },