南骏 池
2025-02-15 a1272018d3c8d0b5a520ab53588518122f6b5bf6
H5/Js/Qtrk.js
@@ -95,12 +95,20 @@
                    console.log(error);
                });
        },
        getSectionCode(value) {
        getSectionCode() {
            var that = this;
            that.sectionCode = value;
            //that.sectionCode = value;
            if (!that.barcode) {
                this.$toast.fail("条码不能为空");
            //if (!that.barcode) {
            //    this.$toast.fail("条码不能为空");
            //    that.isLoading = false;
            //    return;
            //}
            if (!that.billNo) {
                this.$toast.fail("申请单号不能为空");
                that.$refs.sectionCode.focus();
                that.sectionCode = null;
                that.isLoading = false;
                return;
            }
@@ -110,6 +118,7 @@
                that.isLoading = false;
                return;
            }
            that.AxiosHttp("post", 'MesItemQtrk/ScanInDepotsQT', {
                billNo: that.billNo,
                sectionCode: that.sectionCode
@@ -118,9 +127,12 @@
                    var json = res;
                    if (json.status == 0) {
                        that.$notify({ type: 'success', message: json.data.tbBillList });
                        that.$refs.barcode.focus();
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$refs.sectionCode.focus();
                        that.sectionCode = null;
                    }
                    that.isLoading = false;
                })
@@ -130,9 +142,9 @@
                    console.log(error);
                });
        },
        getBarcode(value) {
        getBarcode() {
            this.barcode = value;
            //this.barcode = value;
            var that = this;
            that.isLoading = true;
@@ -177,10 +189,13 @@
                        that.barcode = null;
                        that.ItemBlDetail = json.data.items;
                        that.$notify({ type: 'success', message: '扫描成功' });
                        that.$refs.barcode.focus();
                        //that.GetMesItemBlDetailByBillNo()
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$refs.barcode.focus();
                        that.barcode = null;
                    }
                    that.isLoading = false;
                })