cdk
2 天以前 05909b4ca845d54ade85c8d2a91340bfafd0c58b
H5/Js/Dbck.js
@@ -11,7 +11,7 @@
            num: "",
            fum: "",
            billNo: "",
            barcode:"",
            barcode: "",
            ItemBlDetail: [], // 待扫
            ItemYsDetail: [], // 已扫
@@ -35,56 +35,56 @@
        };
    },
    methods: {
            handleRowClick(item, index) {
                if (this.isLoading) {
                    return;
                }
        handleRowClick(item, index) {
            if (this.isLoading) {
                return;
            }
                // 重置所有行的选中状态
                this.currentIndex = -1;
            // 重置所有行的选中状态
            this.currentIndex = -1;
                // 设置当前选中行
                this.currentIndex = index;
                this.selItem = {
                    itemid: item.itemId,
                    index: index
                };
            // 设置当前选中行
            this.currentIndex = index;
            this.selItem = {
                itemid: item.itemId,
                index: index
            };
                console.log('当前选中项:', this.selItem); // 调试用
            console.log('当前选中项:', this.selItem); // 调试用
                this.GetBarKwByItem();
                //this.active = 1;            //自动切换到库位列表tab
            },
            GetBarKwByItem() {
            this.GetBarKwByItem();
            //this.active = 1;            //自动切换到库位列表tab
        },
        GetBarKwByItem() {
                var that = this;
                that.isLoading = true;
                that.AxiosHttp("post", 'Womdaa/GetBarKwByItemCK', {
                    itemId: that.selItem.itemid,
                    userName: that.userInfo.loginAccount,
                    type: 'DBCK',//调拨出库
                    billNo: that.billNo
                }, false)
                    .then(function (res) {
                        var json = res;
                        if (json.status == 0) {
                            that.ItemBarKw = json.data.tbBillList;
                        }
                        else {
                            that.$toast.fail(json.message);
                            that.$playSound('error');
                            that.ItemBarKw = [];
                        }
                        that.isLoading = false;
                    })
                    .catch(function (error) {
                        that.isLoading = false;
                        that.$toast.fail("网络错误,请重试!");
            var that = this;
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/GetBarKwByItemCK', {
                itemId: that.selItem.itemid,
                userName: that.userInfo.loginAccount,
                type: 'DBCK',//调拨出库
                billNo: that.billNo
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.ItemBarKw = json.data.tbBillList;
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$playSound('error');
                        console.log(error);
                        that.ItemBarKw = [];
                    });
            },
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$playSound('error');
                    console.log(error);
                    that.ItemBarKw = [];
                });
        },
        getInfo() {
            this.show = true;
@@ -148,6 +148,9 @@
                        that.ItemYsDetail = tbBillList.ysDetails || []; // 已扫
                        that.$refs.barcode.focus();
                        that.barcode = "";
                        // 重置库位查询中所有行的选中状态
                        that.currentIndex = -1;
                        that.ItemBarKw = [];
                    }
                    else {
                        that.$toast.fail(json.message);