watch: {
activeTab: {
handler: function (val, oldVal) {
if (val === "1") {
this._getPayBillHouseList()
} else {
this._getAppReceiveBillList()
}
},
immediate: true
}
}
created () {
this.hourseId = this.$route.params.id
},
methods: {
async _getPayBillHouseList () {
let result = await getPayBillHouseList(this.hourseId)
this.payArr = result.rData
},
async _getAppReceiveBillList () {
let result = await getAppReceiveBillList(this.hourseId)
this.overPayArr = result.rData
}
},