H5/Js/Sttl.js
@@ -14,11 +14,12 @@
            selectType: "",
            daa001: "",
            barcode: "",
            ItemBlDetail:[],
            modeInfo: [],
            active: 0,
            show: false,
            actions: [],
            ItemBlDetail: [], // 待扫
            ItemYsDetail: [], // 已扫
            ItemTblDetail: [],
            ItemDetail: [],
            ItemBarKw: [],
@@ -51,6 +52,7 @@
            console.log('当前选中项:', this.selItem); // 调试用
            this.GetBarKwByItem();
            //this.active = 1;            //自动切换到库位列表tab
        },
        GetBarKwByItem() {
@@ -118,7 +120,7 @@
        //onClick(index, title) {
        //    this.$toast(`${index} ${title}`);
        //    this.$notify({ type: 'success', message: '某某物料扫码成功某某物料扫码成功某某物料扫码成功某某物料扫码成功' });
        //that.$playSound('success');
        //},
        onSelect(item) {
            // 默认情况下点击选项时不会自动收起
@@ -142,8 +144,10 @@
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.ItemBlDetail = json.data.tbBillList;
                        //that.daa001 = json.data.tbBillList.item1;
                        //that.ItemBlDetail = json.data.tbBillList;
                        var tbBillList = json.data.tbBillList || {};
                        that.ItemBlDetail = tbBillList.blDetails || []; // 待扫
                        that.ItemYsDetail = tbBillList.ysDetails || []; // 已扫
                        that.$refs.barcode.focus();
                    }
                    else {
@@ -213,11 +217,13 @@
                        that.num = null;
                        //that.ItemBlDetail = json.data.tbBillList.item2
                        that.$notify({ type: 'success', message: '扫描成功' });
                        that.$playSound('success');
                        that.GetMesItemDetailByBillNo();
                        that.$refs.barcode.focus();
                        that.barcode = "";
                        that.num = "";
                        that.splitNum = "";
                        that.GetBarKwByItem();                        // 退料后刷新库位
                        
                    } else if (json.status == 2) {
@@ -301,11 +307,14 @@
                    if (json.status == 0) {
                        that.ItemBlDetail = json.data.pendingList;
                        that.$notify({ type: 'success', message: '扫描成功' });
                        that.$playSound('success');
                        that.sendPrintMessage(json.data.tbBillList);//打印
                        that.$refs.barcode.focus();
                        that.barcode = "";
                        that.num = "";
                        that.splitNum = "";
                        that.GetMesItemDetailByBillNo();
                        that.GetBarKwByItem();// 退料后刷新库位
                    }
                    else {
                        that.$toast.fail(json.message);