cnf
6 天以前 32274bc8fad5251f78229d67d86c234a4b32df2e
H5/Js/cprk.js
@@ -55,6 +55,7 @@
                        if (that.formData.barcode == "" || that.formData.barcode == null) {
                            that.$refs.barcode.focus();
                            that.$playSound('success');
                            that.isLoading = false;
                        } else {
                            that.getScan();
@@ -62,6 +63,7 @@
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                        that.formData.sectionCode = null;
                        that.$refs.sectionCode.focus();
                        that.isLoading = false;
@@ -72,6 +74,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    console.log(error);
                    that.formData.sectionCode = null;
                    that.$refs.sectionCode.focus();
@@ -97,6 +100,7 @@
                        //that.formData.sumQuantity = json.data.tbMesItems.quantity;
                        if (that.formData.sectionCode == "" || that.formData.sectionCode == null) {
                            that.$refs.sectionCode.focus();
                            that.$playSound('sucess');
                            that.isLoading = false;
                        } else {
                            that.getScan();
@@ -104,6 +108,7 @@
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                        that.$refs.barcode.focus();
                        that.formData.barcode = null;
                        that.isLoading = false;
@@ -112,6 +117,7 @@
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$playSound('error');
                    that.$toast.fail("网络错误,请重试!");
                    console.log(error);
                    that.$refs.barcode.focus();
@@ -122,10 +128,12 @@
            if (that.formData.sectionCode.length * 1 <= 0) {
                that.$toast.fail("库位编码不能为空!");
                that.$playSound('error');
                return;
            }
            if (that.formData.barcode.length * 1 <= 0) {
                that.$toast.fail("物料条码不能为空!");
                that.$playSound('error');
                return;
            }
            that.isLoading = true;
@@ -141,9 +149,11 @@
                        that.$refs.barcode.focus();
                        that.formData.barcode = null;
                        that.formData.cfNum = null;
                        that.$playSound('success');
                        that.$notify({ type: 'success', message: json.message });
                    }
                    else {
                        that.$playSound('error');
                        that.$toast.fail(json.message);
                        that.$refs.barcode.focus();
                        that.formData.barcode = null;
@@ -152,6 +162,7 @@
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$playSound('error');
                    that.$toast.fail("网络错误,请重试!");
                    console.log(error);
                });
@@ -199,6 +210,7 @@
            this.Message = "";
            if (this.tableData.length == 0) {
                this.Message = "条码为空,无法推送ERP";
                that.$playSound('error');
                return;
            }
            let userName = this.$loginInfo.account;
@@ -237,6 +249,7 @@
                    this.messageCenter.dealWith = 0;
                    this.messageCenter.status = 1;
                    this.messageCenter.resultData = res.msg;
                    that.$playSound('success');
                    this.updateMessage(this.messageCenter);
                }
            });
@@ -252,8 +265,10 @@
            }).then(res => {
                if (res.data.tbBillList) {
                    this.Message += "  审核成功!";
                    that.$playSound('success');
                } else {
                    this.Message += " 审核失败:";
                    that.$playSound('error');
                }
                let entity = {