cnf
6 天以前 32274bc8fad5251f78229d67d86c234a4b32df2e
H5/Js/Qcrk.js
@@ -28,6 +28,7 @@
            if (!value) {
                this.$toast.fail("库位编码");
                that.$playSound('error');
                return;
            }
@@ -42,17 +43,20 @@
                        /*that.$notify({ type: 'success', message: json.data.tbBillList });*/
                        if (!that.barcode?.trim()) {
                            that.$refs.barcode.focus();
                            that.$playSound('succcess');
                        } else {
                            that.scanBarcode();
                        }
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                    }
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    console.log(error);
                });
        },
@@ -72,11 +76,13 @@
                        that.num = res.data.tbBillList.quantity;
                        if (!that.depotNo?.trim()) { 
                            that.$refs.depotNo.focus();
                            that.$playSound('success');
                        } else {
                            that.scanBarcode();
                        }
                    }
                    else {
                        that.$playSound('error');
                        that.$toast.fail(json.message);
                        that.$refs.barcode.focus();
                        that.barcode = null;
@@ -85,6 +91,7 @@
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$playSound('error');
                    that.$toast.fail("网络错误,请重试!" + error.message);
                    that.$refs.barcode.focus();
                });
@@ -94,18 +101,21 @@
            var that = this;
            if (!that.userInfo.loginAccount) {
                this.$toast.fail("请重新检查登录状态");
                that.$playSound('error');
                that.isLoading = false;
                return;
            }
            if (!that.barcode?.trim()) {
                this.$toast.fail("条码不能为空");
                that.$playSound('error');
                that.isLoading = false;
                return;
            }
            if (!that.depotNo?.trim()) {
                this.$toast.fail("仓库不能为空");
                that.$playSound('error');
                that.isLoading = false;
                return;
            }
@@ -119,6 +129,7 @@
                    var json = res;
                    if (json.status == 0) {
                        that.$notify({ type: 'success', message: json.data.tbBillList.message });
                        that.$playSound('success');
                        that.barcode = null;
                        that.num = null;
                        that.barInfo = [];
@@ -126,12 +137,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);
                });
        }