cnf
2025-11-24 b0123f19bc932842122f931aa9486e4cad1b4a2b
H5/Js/cprk.js
@@ -16,6 +16,8 @@
            itemInsFormData: {},
            tableData: [],
            itemTableData: [],
            itemDetail: [],
            barcodeDetail: [],
            barMessage: "",
            Message: "",
@@ -92,11 +94,11 @@
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.formData.itemNo = json.data.tbMesItems.itemNo;
                        that.formData.itemName = json.data.tbMesItems.itemName;
                        that.formData.itemModel = json.data.tbMesItems.itemModel;
                        that.formData.barQuantity = json.data.tbBillList.quantity;
                        that.formData.DAA001 = json.data.tbBillList.billNo;
                        that.formData.itemNo = json.data.tbBillList.barcodeInfo[0].ITEM_NO;
                        that.formData.itemName = json.data.tbBillList.barcodeInfo[0].item_name;
                        that.formData.itemModel = json.data.tbBillList.barcodeInfo[0].item_model;
                        that.formData.barQuantity = json.data.tbBillList.barcodeInfo[0].QUANTITY;
                        that.formData.DAA001 = json.data.tbBillList.barcodeInfo[0].BILL_NO;
                        //that.formData.sumQuantity = json.data.tbMesItems.quantity;
                        if (that.formData.sectionCode == "" || that.formData.sectionCode == null) {
                            that.$refs.sectionCode.focus();
@@ -126,6 +128,31 @@
        getScan() {
            var that = this;
            that.AxiosHttp("post", 'MesCprk/GetBarInfo', {
                sectionCode: that.formData.sectionCode,
                userName: that.userInfo.loginAccount,
                barcode: that.formData.barcode,
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.itemDetail = json.data.tbBillList.xcslItemList
                        that.barcodeDetail = json.data.tbBillList.xcslWjsBarList
                    }
                    else {
                        that.formData.barcode = null;
                        that.isLoading = false;
                    }
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$playSound('error');
                    that.$toast.fail("网络错误,请重试!");
                    console.log(error);
                    that.$refs.barcode.focus();
                });
            if (that.formData.sectionCode.length * 1 <= 0) {
                that.$toast.fail("库位编码不能为空!");
                that.$playSound('error');
@@ -151,6 +178,7 @@
                        that.formData.cfNum = null;
                        that.$playSound('success');
                        that.$notify({ type: 'success', message: json.message });
                    }
                    else {
                        that.$playSound('error');