mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化按房屋展示
This commit is contained in:
parent
69103172a2
commit
b58262ac0b
@ -80,11 +80,13 @@
|
||||
return {
|
||||
fees: [],
|
||||
ownerId: '',
|
||||
roomId:'',
|
||||
communityId: '',
|
||||
storeId: '',
|
||||
receivableAmount: 0,
|
||||
customFee: 'OFF',
|
||||
createStaffId:'',
|
||||
feeType:'OWNER',
|
||||
feeIds: []
|
||||
};
|
||||
},
|
||||
@ -94,13 +96,25 @@
|
||||
this.communityId = _param.communityId;
|
||||
this.customFee = _param.customFee;
|
||||
this.createStaffId = _param.createStaffId;
|
||||
let _that = this;
|
||||
this.roomId = _param.roomId;
|
||||
this.feeType = _param.feeType;
|
||||
_that.feeIds = [];
|
||||
getQrcodeOweFees(this, {
|
||||
ownerId: this.ownerId,
|
||||
communityId: this.communityId
|
||||
}).then(_data => {
|
||||
_that.fees = _data.data;
|
||||
|
||||
let _fees = [];
|
||||
if(_that.feeType == 'ROOM' && _that.roomId){
|
||||
_data.data.forEach(item=>{
|
||||
if(item.payerObjId == _that.roomId){
|
||||
_fees.push(item);
|
||||
}
|
||||
})
|
||||
}else{
|
||||
_fees = _data.data;
|
||||
}
|
||||
_that.fees = _fees;
|
||||
if (_data.data && _data.data.length > 0) {
|
||||
_that.storeId = _data.data[0].incomeObjId;
|
||||
}
|
||||
|
||||
@ -119,8 +119,9 @@
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
uni.navigateTo({
|
||||
url:'/pages/fee/payQrCodeFee?communityId='+_that.communityId+"&ownerId="+_data.data+"&pfqId="+_that.pfqId
|
||||
url:'/pages/fee/payQrCodeFee?communityId='+_that.communityId+"&ownerId="+_data.data.ownerId+"&roomId="+_data.data.roomId+"&pfqId="+_that.pfqId
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
@ -27,6 +27,7 @@
|
||||
data() {
|
||||
return {
|
||||
ownerId:'',
|
||||
roomId:'',
|
||||
communityId:'',
|
||||
pfqId:'',
|
||||
active:0,
|
||||
@ -48,6 +49,7 @@
|
||||
},
|
||||
onLoad(options) {
|
||||
this.ownerId = options.ownerId;
|
||||
this.roomId = options.roomId;
|
||||
this.pfqId = options.pfqId;
|
||||
this.communityId = options.communityId;
|
||||
this._loadConfig();
|
||||
@ -68,9 +70,11 @@
|
||||
if(this.active == 0){
|
||||
this.$refs.qrCodeOweFeeRef._loadFees({
|
||||
ownerId:this.ownerId,
|
||||
roomId:this.roomId,
|
||||
communityId:this.communityId,
|
||||
customFee:this.config.customFee,
|
||||
createStaffId:this.config.createStaffId
|
||||
createStaffId:this.config.createStaffId,
|
||||
feeType:this.config.feeType
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user