况洋洋
2025-07-10 6c03505f24d8a22eb2988ab16d7154e95da5a358
H5/Js/PurchaseInventory.js
@@ -34,6 +34,9 @@
            sectionCode:"",
            depotData: [],
            ItemDetail: [],
            rkType: "正常入库",
            show: false,//下拉框的显示
            actions: [{ name: "正常入库" }, { name: "工废入库" }, { name: "料废入库" }],//下拉框的数值
        }
    },
    mounted() {
@@ -44,6 +47,19 @@
        };
    },
    methods: {
        getInfo() {
            this.show = true;
        },
        onSelect(item) {
            // 默认情况下点击选项时不会自动收起
            // 可以通过 close-on-click-action 属性开启自动收起
            this.show = false;
            this.rkType = item.name;
            //this.GetMesItemBlDetailByBillNo();
            //this.$toast(item.name);
        },
        getModel() {
            var that = this;
            that.isLoading = true;
@@ -93,17 +109,15 @@
                sectionCode: that.sectionCode,
                userName: that.userInfo.loginAccount,
                barcode: that.formData.barcode,
                cgrkType: that.actions
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        //that.formData.itemNo = json.data.tbBillList.itemNo;
                        //that.formData.sumQuantity = json.data.tbBillList.sumQuantity;
                        that.ItemDetail = json.data.tbBillList.itemInDetails;
                        //that.itemInsFormData = json.data.tbBillList.itemIns;
                        //that.itemTableData = json.data.tbBillList.itemInDetails;g
                        that.tableData = json.data.tbBillList.itemBarCDetails;
                        //that.barMessage = json.data.tbBillList.message;
                        that.$refs.barcode.focus();
                        that.formData.barcode = null;
                        that.$notify({ type: 'success', message: json.message });