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