This commit is contained in:
java110 2023-05-25 18:37:23 +08:00
parent c187f4644c
commit 872a6e8feb

View File

@ -7,52 +7,7 @@
dataReportInfo: { dataReportInfo: {
curDay: 'today', curDay: 'today',
_currentTab: 'dataReportEarnedStatistics', _currentTab: 'dataReportEarnedStatistics',
fees: [{ fees: [],
name: '实收金额',
value: '1000000元',
}, {
name: '优惠金额',
value: '3元',
}, {
name: '滞纳金',
value: '3元',
}, {
name: '账户预存',
value: '3元',
}, {
name: '账户扣款',
value: '3元',
}, {
name: '临时车收入',
value: '3元',
}, {
name: '押金退款',
value: '3元',
}, {
name: '退款订单数',
value: '1000元',
}, {
name: '退款金额',
value: '3元',
}, {
name: '欠费金额',
value: '3元',
}, {
name: '微信收入',
value: '3元',
}, {
name: '支付宝收入',
value: '1000元',
}, {
name: '现金收入',
value: '3元',
}, {
name: '转账收入',
value: '3元',
}, {
name: '充电金额',
value: '3元',
}, ],
orders: [{ orders: [{
name: '投诉单', name: '投诉单',
value: '3元', value: '3元',
@ -201,10 +156,10 @@
_initMethod: function() { _initMethod: function() {
$that._initDate(); $that._initDate();
$that.changeTab($that.dataReportInfo._currentTab); $that.changeTab($that.dataReportInfo._currentTab);
$that._loadDataReportFee();
}, },
_initEvent: function() { _initEvent: function() {
vc.on('dataReport', 'listOwnerData', function(_info) { vc.on('dataReport', 'listOwnerData', function(_info) {
vc.component._loadOwnerInfo();
$that.changeTab($that.dataReportInfo._currentTab); $that.changeTab($that.dataReportInfo._currentTab);
}); });
}, },
@ -253,25 +208,16 @@
} }
}, },
_loadOwnerInfo: function() { _loadDataReportFee: function() {
let param = { let param = {
params: { params: $that.dataReportInfo.conditions
ownerId: $that.dataReportInfo.ownerId,
page: 1,
row: 1,
communityId: vc.getCurrentCommunity().communityId,
ownerTypeCd: '1001'
}
} }
//发送get请求 //发送get请求
vc.http.apiGet('/owner.queryOwners', vc.http.apiGet('/dataReport.queryFeeDataReport',
param, param,
function(json, res) { function(json, res) {
var listOwnerData = JSON.parse(json); let _json = JSON.parse(json);
vc.copyObject(listOwnerData.owners[0], vc.component.dataReportInfo); $that.dataReportInfo.fees = _json.data
$that.dataReportInfo.attrs = listOwnerData.owners[0].ownerAttrDtos
//加载图片
vc.component._loadOwnerPhoto();
}, },
function(errInfo, error) { function(errInfo, error) {
console.log('请求失败处理'); console.log('请求失败处理');