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