cnf
2025-08-26 802971e1c3f378354dbd5014a0c552f9081d4a00
H5/Js/Scllhb.js
@@ -48,10 +48,12 @@
                        console.log(json)
                        that.ItemDetail = json.data.tbBillList;
                        that.modeInfo.planNo = json.data.tbBillList.planNo;
                        that.$playSound('success');
                        that.$refs.barcode.focus();
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                        that.$refs.daa001.focus();
                        that.modeInfo.daa001 = "";
                        that.modeInfo.planNo = "";
@@ -62,6 +64,7 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    console.log(error);
                    that.$refs.daa001.focus();
                    that.modeInfo.daa001 = "";
@@ -76,10 +79,12 @@
            var that = this;
            if (that.modeInfo.daa001.length <= 0) {
                that.$toast.fail("汇报单号不能为空!");
                that.$playSound('error');
                return;
            }
            if (that.scanInfo.barcode.length * 1 <= 0) {
                that.$toast.fail("物料条码不能为空!");
                that.$playSound('error');
                return;
            }
@@ -101,6 +106,7 @@
                    }
                    else if (json.status == 2) {
                        that.$refs.splitNum.focus();
                        that.$playSound('success');
                        that.scanInfo.splitNum = json.data.tbBillList.splitNum;
                        that.scanInfo.barcodeNum = json.data.tbBillList.barcodeNum;
                    }
@@ -129,14 +135,17 @@
            var that = this;
            if (that.modeInfo.daa001.length <= 0) {
                that.$toast.fail("工单单号不能为空!");
                that.$playSound('error');
                return;
            }
            if (that.scanInfo.splitNum * 1 <= 0) {
                that.$toast.fail("拆分数量不能为空!");
                that.$playSound('error');
                return;
            }
            if (that.scanInfo.barcode.length * 1 <= 0) {
                that.$toast.fail("物料条码不能为空!");
                that.$playSound('error');
                return;
            }
            //that.ip = "";
@@ -347,6 +356,7 @@
                console.log('提取的DAA001:', this.modeInfo.daa001);
            } else {
                this.$toast.fail('工单号格式异常');
                that.$playSound('error');
                this.modeInfo.daa001 = '';
            }
            this.getModel();