cnf
6 天以前 32274bc8fad5251f78229d67d86c234a4b32df2e
H5/Js/Scbg.js
@@ -68,15 +68,18 @@
                        that.$refs.barcode.focus();
                    } else {
                        that.$toast("未找到匹配的 用户名称");
                        that.$playSound('error');
                    }
                }
                else {
                    that.$toast.fail(json.message);
                    that.$playSound('error');
                }
                that.isLoading = false;
            })
            .catch(function (error) {
                that.isLoading = false;
                that.$playSound('error');
                that.$toast.fail("网络错误,请重试!");
                console.log(error);
            });
@@ -104,17 +107,20 @@
                        that.actions = json.data.tbBillList.map(item => {
                            return { name: item.staffName }
                        });
                        that.$playSound('success');
                        that.stafList = json.data.tbBillList;
                    }
                    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);
                });
        },
@@ -218,6 +224,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    console.log(error);
                });
            // 默认情况下点击选项时不会自动收起
@@ -248,16 +255,19 @@
            if (!that.userInfo.loginAccount) {
                this.$toast.fail("请重新检查登录状态");
                that.$playSound('error');
                return;
            }
            if (!that.barcode) {
                this.$toast.fail("条码不能为空");
                that.$playSound('error');
                return;
            }
            if (!that.stafId) {
                that.$toast.fail("员工不允许为空");
                that.$playSound('error');
                return;
            }
@@ -301,6 +311,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    console.log(error);
                });
        },
@@ -313,6 +324,7 @@
            if (!that.userInfo.loginAccount) {
                this.$toast.fail("请重新检查登录状态");
                that.$playSound('error');
                that.load = false;
                return;
            }
@@ -337,6 +349,7 @@
            if (!that.sjBillNo) {
                this.$toast.fail("送检单号不能为空");
                that.$playSound('error');
                that.load = false;
                return;
            }
@@ -365,6 +378,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    console.log(error);
                });
        },
@@ -400,6 +414,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    console.log(error);
                });
            // 默认情况下点击选项时不会自动收起