This commit is contained in:
java110 2023-06-05 15:07:47 +08:00
parent d69fb1dd5b
commit ed19845f64
8 changed files with 118 additions and 31 deletions

View File

@ -1,19 +1,10 @@
<div class="margin-top">
<div class="row margin-top-lg">
<!-- <div class="col-lg-2 padding-right-xs padding-left-xl">
<input v-model="dataReportEarnedWayStatisticsInfo.roomNum" type="text" :placeholder="vc.i18n('请填写房屋编号','dataReportEarnedWayStatistics')" class="form-control">
</div>
<div class="col-lg-2 padding-right-xs padding-right-xl">
<button type="button" class="btn btn-primary btn-sm" style="margin-left:10px" v-on:click="_qureyDataReportEarnedStatistics()">
<i class="fa fa-search"></i>查询
<div class="text-right">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_exportReportEarnedWayExcel()">
<vc:i18n name="导出" namespace="dataReportEarnedWayStatisticsInfo"></vc:i18n>
</button>
</div>
<div class="col-lg-8 text-right">
</div> -->
</div>
<div class="margin-top">
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead>

View File

@ -48,6 +48,28 @@
}
);
},
_exportReportEarnedWayExcel: function() {
let param = {
params: {
communityId: vc.getCurrentCommunity().communityId,
startDate: $that.dataReportEarnedStatisticsInfo.startDate,
endDate: $that.dataReportEarnedStatisticsInfo.endDate,
pagePath: 'dataReportEarnedWayStatistics'
}
};
//发送get请求
vc.http.apiGet('/export.exportData', param,
function(json, res) {
let _json = JSON.parse(json);
vc.toast(_json.msg);
if (_json.code == 0) {
vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
}
},
function(errInfo, error) {
console.log('请求失败处理');
});
},
}
});
})(window.vc);

View File

@ -16,8 +16,10 @@
</button>
</div>
<div class="col-lg-4 text-right">
<div class="col-lg-8 text-right">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_exportReportFeeExcel()">
<vc:i18n name="导出" namespace="dataReportOweDetailStatistics"></vc:i18n>
</button>
</div>
</div>

View File

@ -90,6 +90,7 @@
let listFloorData = JSON.parse(json);
let _floors = listFloorData.apiFloorDataVoList;
$that.dataReportFeeStatisticsInfo.floors = _floors;
let _floorIds = [];
for (let _floorIndex = 0; _floorIndex < _floors.length; _floorIndex++) {
_floorIds.push(_floors[_floorIndex].floorId);
@ -113,6 +114,39 @@
_qureyDataReportFeeStatistics: function() {
$that._loadFloors();
},
_exportReportFeeExcel: function() {
let _floorIds = [];
let _floors = $that.dataReportFeeStatisticsInfo.floors;
for (let _floorIndex = 0; _floorIndex < _floors.length; _floorIndex++) {
_floorIds.push(_floors[_floorIndex].floorId);
}
if (!_floorIds || _floorIds.length < 1) {
vc.toast('没有可以导出的数据');
return;
}
let param = {
params: {
communityId: vc.getCurrentCommunity().communityId,
startDate: $that.dataReportFeeStatisticsInfo.startDate,
endDate: $that.dataReportFeeStatisticsInfo.endDate,
feeTypeCd: $that.dataReportFeeStatisticsInfo.feeTypeCd,
floorIds: _floorIds.join(','),
pagePath: 'dataReportFeeStatistics'
}
};
//发送get请求
vc.http.apiGet('/export.exportData', param,
function(json, res) {
let _json = JSON.parse(json);
vc.toast(_json.msg);
if (_json.code == 0) {
vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
}
},
function(errInfo, error) {
console.log('请求失败处理');
});
},
}
});
})(window.vc);

View File

@ -16,8 +16,9 @@
</div>
<div class="col-lg-4 text-right">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_exportReportOweDetailExcel()">
<vc:i18n name="导出" namespace="dataReportOweDetailStatistics"></vc:i18n>
</button>
</div>
</div>
<div class="margin-top">

View File

@ -82,6 +82,31 @@
_qureyDataReportOweDetailStatistics: function() {
$that._loadDataReportOweDetailStatisticsData(DEFAULT_PAGE, DEFAULT_ROWS);
},
_exportReportOweDetailExcel: function() {
let param = {
params: {
communityId: vc.getCurrentCommunity().communityId,
startDate: $that.dataReportOweDetailStatisticsInfo.startDate,
endDate: $that.dataReportOweDetailStatisticsInfo.endDate,
objName: $that.dataReportOweDetailStatisticsInfo.objName,
ownerName: $that.dataReportOweDetailStatisticsInfo.ownerName,
link: $that.dataReportOweDetailStatisticsInfo.link,
pagePath: 'dataReportOweDetailStatistics'
}
};
//发送get请求
vc.http.apiGet('/export.exportData', param,
function(json, res) {
let _json = JSON.parse(json);
vc.toast(_json.msg);
if (_json.code == 0) {
vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
}
},
function(errInfo, error) {
console.log('请求失败处理');
});
},
}
});
})(window.vc);

View File

@ -1,18 +1,8 @@
<div class="margin-top">
<div class="row margin-top-lg">
<!-- <div class="col-lg-2 padding-right-xs padding-left-xl">
<input v-model="dataReportOweStatisticsInfo.roomNum" type="text" :placeholder="vc.i18n('请填写房屋编号','dataReportOweStatistics')" class="form-control">
</div>
<div class="col-lg-2 padding-right-xs padding-right-xl">
<button type="button" class="btn btn-primary btn-sm" style="margin-left:10px" v-on:click="_qureyDataReportEarnedStatistics()">
<i class="fa fa-search"></i>查询
<div class="text-right">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_exportReportOweExcel()">
<vc:i18n name="导出" namespace="dataReportOweStatistics"></vc:i18n>
</button>
</div>
<div class="col-lg-8 text-right">
</div> -->
</div>
<div class="margin-top">
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">

View File

@ -13,7 +13,7 @@
roomNum: '',
startDate: '',
endDate: '',
feeAmount: '0'
}
},
@ -77,6 +77,28 @@
_qureyDataReportOweStatistics: function() {
$that._loadDataReportOweStatisticsData(DEFAULT_PAGE, DEFAULT_ROWS);
},
_exportReportOweExcel: function() {
let param = {
params: {
communityId: vc.getCurrentCommunity().communityId,
startDate: $that.dataReportEarnedStatisticsInfo.startDate,
endDate: $that.dataReportEarnedStatisticsInfo.endDate,
pagePath: 'dataReportOweStatistics'
}
};
//发送get请求
vc.http.apiGet('/export.exportData', param,
function(json, res) {
let _json = JSON.parse(json);
vc.toast(_json.msg);
if (_json.code == 0) {
vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
}
},
function(errInfo, error) {
console.log('请求失败处理');
});
},
}
});
})(window.vc);