optimzie report function

This commit is contained in:
java110 2023-05-16 18:51:58 +08:00
parent 057264ef5b
commit df761e3b13
2 changed files with 23 additions and 6 deletions

View File

@ -98,9 +98,9 @@
<vc:i18n name="导出" namespace="reportFeeSummary"></vc:i18n>
</span>
</button>
<button type="button" class="btn btn-white btn-sm" v-on:click="_printFeeSummary()">
<!-- <button type="button" class="btn btn-white btn-sm" v-on:click="_printFeeSummary()">
<vc:i18n name="打印" namespace="reportFeeSummary"></vc:i18n>
</button>
</button> -->
</div>
</div>
<div class="ibox-content">
@ -134,7 +134,7 @@
<tr v-for="fee in reportFeeSummaryInfo.fees">
<td class="text-center">{{fee.roomCount}}</td>
<td class="text-center">{{fee.feeRoomCount}}</td>
<td class="text-center">{{fee.feeRoomCount}}</td>
<td class="text-center">{{fee.oweRoomCount}}</td>
<td class="text-center">{{fee.hisOweFee}}</td>
<td class="text-center">{{fee.curOweFee}}</td>
<td class="text-center">{{(fee.curOweFee+fee.hisOweFee).toFixed(2)}}</td>
@ -160,10 +160,10 @@
</div>
</div>
<div class="margin-top bg-white">
<div class="margin-top bg-white padding-top padding-left">
<vc:create path="report/floorFeeSummary"></vc:create>
</div>
<div class="margin-top bg-white">
<div class="margin-top bg-white padding-top padding-left">
<vc:create path="report/configFeeSummary"></vc:create>
</div>
</div>

View File

@ -152,7 +152,24 @@
});
},
_exportExcel: function() {
vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportFeeSummary&' + vc.objToGetParam($that.reportFeeSummaryInfo.conditions));
//vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportFeeSummary&' + vc.objToGetParam($that.reportFeeSummaryInfo.conditions));
$that.reportFeeSummaryInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
$that.reportFeeSummaryInfo.conditions.pagePath = 'reportFeeSummary';
let param = {
params: $that.reportFeeSummaryInfo.conditions
};
//发送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('请求失败处理');
});
},
_toDetail: function(_fee) {
let _configIds = "";