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);
                });
        },
@@ -136,9 +142,11 @@
                        });
                        that.stafList = json.data.result.rksqOrderList;
                        that.$playSound('success');
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                    }
                    that.isLoading = false;
                })
@@ -183,6 +191,7 @@
                this.$refs.sjBillNo.focus();
            } else {
                this.$toast("未找到匹配的送检单号");
                that.$playSound('error');
            }
            //this.GetMesItemBlDetailByBillNo();
            //this.$toast(item.name);
@@ -203,16 +212,19 @@
                        });
                        that.stafList = json.data.tbBillList;
                        that.$playSound('success');
                        console.log('DAWDADWDADADADWD' + that.stafList);
                    }
                    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);
                });
            // 默认情况下点击选项时不会自动收起
@@ -243,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;
            }
@@ -281,11 +296,13 @@
                        console.log(entity.barcodesDetail);
                        console.log(that.BarcodesDetail);
                        that.$notify({ type: 'success', message: '扫描成功' });
                        that.$playSound('success');
                        that.$refs.barcode.focus();
                        that.barcode = null;
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                        that.$refs.barcode.focus();
                        that.barcode = null;
                    }
@@ -294,6 +311,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    console.log(error);
                });
        },
@@ -306,6 +324,7 @@
            if (!that.userInfo.loginAccount) {
                this.$toast.fail("请重新检查登录状态");
                that.$playSound('error');
                that.load = false;
                return;
            }
@@ -330,6 +349,7 @@
            if (!that.sjBillNo) {
                this.$toast.fail("送检单号不能为空");
                that.$playSound('error');
                that.load = false;
                return;
            }
@@ -344,10 +364,13 @@
                    var json = res;
                    if (json.status == 0) {
                        that.$notify({ type: 'success', message: '送检成功' });
                        that.BarcodesDetail = [];
                        that.$playSound('success');
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                    }
                    that.isLoading = false;
                    that.load = false;
@@ -355,6 +378,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    console.log(error);
                });
        },
@@ -377,10 +401,12 @@
                        console.log(that.BarcodesDetail);
                        that.$notify({ type: 'success', message: '扫描成功' });
                        that.$refs.sjBillNo.focus();
                        that.$playSound('success');
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$refs.sjBillNo.focus();
                        that.$playSound('error');
                        that.barcode = null;
                    }
                    that.isLoading = false;
@@ -388,6 +414,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    console.log(error);
                });
            // 默认情况下点击选项时不会自动收起