chenhaozhe
2026-01-12 fd299bcb75f5b7f1dd4fd68234109f5252b27ec6
components/MJGL/BillSelectorPopup.vue
@@ -91,6 +91,10 @@
            HStockOrgID: {
                type: [String, Number],
            },
            Type: {
                type: [String],
                require: true
            }
        },
        mounted() {},
        methods: {
@@ -123,9 +127,9 @@
                this.getBillList()
            },
            clickCard(bill, index) {
                console.log('this.HBillList: ',this.HBillList);
                console.log('this.HBillList: ',this.HBillList, 'index: ', index);
                let retVal = {}
                retVal[this.refTargetKey] = this.HBillList[0].filter(item => item.hmainid == bill.hmainid)
                retVal[this.refTargetKey] = bill
                this.$emit("update", {
                    retVal: retVal,
                    index: this.refTargetKey
@@ -143,22 +147,30 @@
                }
                
                if(this.refTargetKey) {
                    sWhere += ` and 设备ID = ${this.refTargetKey}`
                    // sWhere += ` and HInterID = ${this.refTargetKey}`
                }
                return sWhere
            },
            getBillList() {
                let sWhere = this.getsWhere()
                console.log('sWhere: ',sWhere);
                this.HBillList = []
                this.length = 0
                this.page = 0
                this.curPage = 1
                let url = ""
                if(this.Type == 'BY'){
                    url = "/Sb_EquipMaintainRuleBill/GetEquipMaintainRuleListPDA"
                }
                else if (this.Type == 'DJ'){
                    url = "/Sb_EquipDotCheckRuleBill/GetEquipDotCheckRuleListPDA"
                }
                else {
                }
                CommonUtils.doRequest(
                    "/Web/GetEquipmentBillsList", {
                    url, {
                        sWhere: sWhere,
                        user: getUserInfo()['Czymc'],
                        Type: "BY"
                    },
                    (res) => {
                        let {