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