南骏 池
2025-02-25 f064c1aa85c6d778b1bedfb980ad42fcf50b63c9
H5/Js/Wwbl.js
@@ -8,7 +8,8 @@
                "loginAccount": '',
            },
            sms: "",
            num:"",
            num: "",
            type: "",
            billNo:"",
            daa001: "",
            barcode:"",
@@ -25,6 +26,8 @@
            loginGuid: this.GetLoginInfor().loginGuid,
            loginAccount: this.GetLoginInfor().loginAccount,
        };
        this.type = this.Request("type");
        selectType = this.type == "bl" ? selectType = "委外补料" : selectType = "委外超领";
    },
    methods: {
        getInfo() {
@@ -33,7 +36,7 @@
            var that = this;
            that.isLoading = true;
            that.AxiosHttp("post", 'MesItemBl/GetSCBLBillNo', {
                type: "委外补料",
                type: selectType,
            }, false)
                .then(function (res) {
                    var json = res;
@@ -77,7 +80,7 @@
            that.isLoading = true;
            that.AxiosHttp("post", 'MesItemBl/GetMesItemBlDetailByBillNo', {
                billNo: that.billNo,
                type: "委外补料",
                type: selectType,
            }, false)
                .then(function (res) {
                    var json = res;
@@ -85,21 +88,30 @@
                        
                        that.ItemBlDetail = json.data.tbBillList.item2;
                        that.daa001 = json.data.tbBillList.item1;
                        that.$refs.barcode.focus();
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$refs.billNo.focus();
                        that.billNo = "";
                        that.daa001 = "";
                        that.ItemBlDetail = [];
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    console.log(error);
                    //console.log(error);
                    that.$refs.billNo.focus();
                    that.billNo = "";
                    that.daa001 = "";
                    that.ItemBlDetail = [];
                });
        },
        getBarcode(value) {
        getBarcode() {
            this.barcode = value;
            //this.barcode = value;
            var that = this;
            that.isLoading = true;
@@ -144,16 +156,34 @@
                        //that.num = json.data.tbBillList.item.num;
                        //that.ItemBlDetail = json.data.tbBillList.pendingList
                        that.$notify({ type: 'success', message: '扫描成功' });
                        that.GetMesItemBlDetailByBillNo();
                        that.$refs.barcode.focus();
                        that.barcode = "";
                        that.num = "";
                        that.splitNum = "";
                    }
                    else if (json.status == 2) {
                        that.$refs.splitNum.focus();
                        that.splitNum = json.data.cfNum;
                        that.num = json.data.num;
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$refs.barcode.focus();
                        that.barcode = "";
                        that.num = "";
                        that.splitNum = "";
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    console.log(error);
                    //console.log(error);
                    that.$refs.barcode.focus();
                    that.barcode = "";
                    that.num = "";
                    that.splitNum = "";
                });
        },
        tmcf() {