南骏 池
2025-06-04 8c04a75113d2316aa104b826b8930738afd8b088
H5/Js/Qtrk.js
@@ -17,6 +17,7 @@
            active: 0,
            show: false,
            actions: [],
            ItemDetail: [],
        }
    },
    mounted() {
@@ -82,7 +83,10 @@
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.ItemBlDetail = json.data.tbBillList;
                        //that.ItemBlDetail = json.data.tbBillList;
                        that.ItemDetail = json.data.tbBillList;
                        that.$refs.sectionCode.focus();
                        that.sectionCode = null;
                    }
                    else {
                        that.$toast.fail(json.message);
@@ -95,12 +99,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 +122,7 @@
                that.isLoading = false;
                return;
            }
            that.AxiosHttp("post", 'MesItemQtrk/ScanInDepotsQT', {
                billNo: that.billNo,
                sectionCode: that.sectionCode
@@ -118,9 +131,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 +146,9 @@
                    console.log(error);
                });
        },
        getBarcode(value) {
        getBarcode() {
            this.barcode = value;
            //this.barcode = value;
            var that = this;
            that.isLoading = true;
@@ -177,10 +193,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;
                })