H5/Js/Strk.js
@@ -17,7 +17,12 @@
            depot: {},
            show: false,
            actions: [],
            ItemTblDetail:[]
            ItemBlDetail: [], // 待扫
            ItemYsDetail: [], // 已扫
            ItemTblDetail: [],
            ItemDetail: [],
            ItemBarKw: [],
            currentIndex: -1,
        }
    },
    mounted() {
@@ -43,6 +48,7 @@
                    if (json.status == 0) {
                        if (json.data.tbBillList.length <= 0) {
                            that.$toast.fail("没有可用的数据");
                            that.show = false;
                        } else {
                            that.actions = json.data.tbBillList.map(item => {
                                return { name: item }
@@ -58,6 +64,7 @@
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    console.log(error);
                    that.show = false;
                });
        },
        //onClick(index, title) {
@@ -70,6 +77,8 @@
            // 可以通过 close-on-click-action 属性开启自动收起
            this.show = false;
            this.billNo = item.name;
            // 清空库位列表
            this.ItemBarKw = [];
            this.getMesItemDetailByBillNo();
            //this.$toast(item.name);
        },
@@ -82,7 +91,9 @@
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.ItemTblDetail = json.data.tbBillList;
                        var tbBillList = json.data.tbBillList || {};
                        that.ItemBlDetail = tbBillList.blDetails || []; // 待扫
                        that.ItemYsDetail = tbBillList.ysDetails || []; // 已扫
                        that.$refs.sectionCode.focus();
                    }
                    else {
@@ -165,6 +176,7 @@
                        that.itemNo = json.data.tbBillList.itemNo;
                        that.sms = json.data.tbBillList.num;
                        that.$notify({ type: 'success', message: '扫描成功' });
                        that.$toast.success("扫描成功");
                        that.$refs.barcode.focus();
                        that.barcode = null;
                        that.getMesItemDetailByBillNo();