mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
加入 缴费明细表
This commit is contained in:
parent
0f166282c0
commit
e4eaa64ec3
135
public/pages/property/reportPayFeeDetail/reportPayFeeDetail.html
Normal file
135
public/pages/property/reportPayFeeDetail/reportPayFeeDetail.html
Normal file
@ -0,0 +1,135 @@
|
|||||||
|
<div class=" animated fadeInRight ecommerce">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="ibox ">
|
||||||
|
<div class="ibox-title">
|
||||||
|
<h5>查询条件</h5>
|
||||||
|
<div class="ibox-tools" style="top:10px;">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="ibox-content">
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-sm-4">
|
||||||
|
<div class="form-group input-group">
|
||||||
|
<input type="text" placeholder="请选择楼栋"
|
||||||
|
v-model="reportPayFeeDetailInfo.conditions.floorName" class=" form-control">
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<button type="button" class="btn btn-primary btn-sm"
|
||||||
|
v-on:click="_openChooseFloorMethod()"><i class="fa fa-search"></i> 选择
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-3">
|
||||||
|
<div class="form-group">
|
||||||
|
<select class="form-control-md form-control input-s-sm inline"
|
||||||
|
v-model="reportPayFeeDetailInfo.conditions.unitId">
|
||||||
|
<option selected value="">请选择单元</option>
|
||||||
|
<option v-for="(unit,index) in reportPayFeeDetailInfo.roomUnits" :key="index"
|
||||||
|
v-bind:value="unit.unitId">
|
||||||
|
{{unit.unitNum}}单元
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" placeholder="请填写房屋编号" class="form-control form-control-md"
|
||||||
|
v-model="reportPayFeeDetailInfo.conditions.roomNum">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-sm-1">
|
||||||
|
<button type="button" class="btn btn-primary btn-md" v-on:click="_queryMethod()"><i
|
||||||
|
class="fa fa-search"></i> 查询
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-sm-4">
|
||||||
|
<div class="form-group input-group">
|
||||||
|
<input type="text" placeholder="请选择开始时间"
|
||||||
|
v-model="reportPayFeeDetailInfo.conditions.startTime" class=" form-control startTime">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-3">
|
||||||
|
<div class="form-group input-group">
|
||||||
|
<input type="text" placeholder="请选择结束时间"
|
||||||
|
v-model="reportPayFeeDetailInfo.conditions.endTime" class=" form-control endTime">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="ibox">
|
||||||
|
<div class="ibox-title">
|
||||||
|
<h5>缴费明细表</h5>
|
||||||
|
<div class="ibox-tools" style="top:10px;">
|
||||||
|
<button type="button" class="btn btn-primary btn-sm" v-on:click="_exportFee()">
|
||||||
|
<i class="fa fa-plus"></i>
|
||||||
|
导出
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="ibox-content">
|
||||||
|
|
||||||
|
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<!-- <th class="text-center">信息ID</th> -->
|
||||||
|
<th class="text-center">费用编号</th>
|
||||||
|
<th class="text-center">房号</th>
|
||||||
|
<th class="text-center">费用项</th>
|
||||||
|
<th class="text-center">缴费开始时间</th>
|
||||||
|
<th class="text-center">缴费结束时间</th>
|
||||||
|
<th class="text-center">缴费时间</th>
|
||||||
|
<th class="text-center">应收金额</th>
|
||||||
|
<th class="text-center">实收金额</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="(fee,index) in reportPayFeeDetailInfo.fees">
|
||||||
|
<td class="text-center">{{index+1}}</td>
|
||||||
|
<td class="text-center">{{fee.objName}}</td>
|
||||||
|
<td class="text-center">{{fee.feeName}}</td>
|
||||||
|
<td class="text-center">{{fee.startTime}}</td>
|
||||||
|
<td class="text-center">{{fee.endTime}}</td>
|
||||||
|
<td class="text-center">{{fee.createTime}}</td>
|
||||||
|
<td class="text-center">{{fee.receivableAmount}}</td>
|
||||||
|
<td class="text-center">{{fee.receivedAmount}}</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td colspan="7">
|
||||||
|
<ul class="pagination float-right"></ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
<!-- 分页 -->
|
||||||
|
<vc:create path="frame/pagination"></vc:create>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<vc:create path="property/searchFloor" emitChooseFloor="reportPayFeeDetail" emitLoadData="xx"></vc:create>
|
||||||
|
</div>
|
||||||
118
public/pages/property/reportPayFeeDetail/reportPayFeeDetail.js
Normal file
118
public/pages/property/reportPayFeeDetail/reportPayFeeDetail.js
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
/**
|
||||||
|
入驻小区
|
||||||
|
**/
|
||||||
|
(function (vc) {
|
||||||
|
var DEFAULT_PAGE = 1;
|
||||||
|
var DEFAULT_ROWS = 10;
|
||||||
|
vc.extends({
|
||||||
|
data: {
|
||||||
|
reportPayFeeDetailInfo: {
|
||||||
|
fees: [],
|
||||||
|
total: 0,
|
||||||
|
records: 1,
|
||||||
|
moreCondition: false,
|
||||||
|
title: '',
|
||||||
|
roomUnits: [],
|
||||||
|
conditions: {
|
||||||
|
floorId: '',
|
||||||
|
floorName: '',
|
||||||
|
roomNum: '',
|
||||||
|
unitId: '',
|
||||||
|
startTime:'',
|
||||||
|
endTime:''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
_initMethod: function () {
|
||||||
|
vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||||
|
vc.initDateMonth('startTime', function (_startTime) {
|
||||||
|
$that.reportPayFeeDetailInfo.conditions.startTime = _startTime;
|
||||||
|
});
|
||||||
|
|
||||||
|
vc.initDateMonth('endTime', function (_endTime) {
|
||||||
|
$that.reportPayFeeDetailInfo.conditions.endTime = _endTime;
|
||||||
|
let start = Date.parse(new Date($that.reportPayFeeDetailInfo.conditions.startTime + "-01"))
|
||||||
|
let end = Date.parse(new Date($that.reportPayFeeDetailInfo.conditions.endTime + "-01"))
|
||||||
|
if (start - end >= 0) {
|
||||||
|
vc.toast("结束时间必须大于开始时间")
|
||||||
|
$that.reportPayFeeDetailInfo.conditions.endTime = '';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
_initEvent: function () {
|
||||||
|
|
||||||
|
vc.on('reportPayFeeDetail', 'chooseFloor', function (_param) {
|
||||||
|
vc.component.reportPayFeeDetailInfo.conditions.floorId = _param.floorId;
|
||||||
|
vc.component.reportPayFeeDetailInfo.conditions.floorName = _param.floorName;
|
||||||
|
vc.component.loadUnits(_param.floorId);
|
||||||
|
|
||||||
|
});
|
||||||
|
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||||
|
vc.component._listFees(_currentPage, DEFAULT_ROWS);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
_queryMethod:function(){
|
||||||
|
vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||||
|
},
|
||||||
|
_listFees: function (_page, _rows) {
|
||||||
|
|
||||||
|
vc.component.reportPayFeeDetailInfo.conditions.page = _page;
|
||||||
|
vc.component.reportPayFeeDetailInfo.conditions.row = _rows;
|
||||||
|
vc.component.reportPayFeeDetailInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
|
||||||
|
var param = {
|
||||||
|
params: vc.component.reportPayFeeDetailInfo.conditions
|
||||||
|
};
|
||||||
|
|
||||||
|
//发送get请求
|
||||||
|
vc.http.apiGet('/reportFeeMonthStatistics/queryPayFeeDetail',
|
||||||
|
param,
|
||||||
|
function (json, res) {
|
||||||
|
var _reportPayFeeDetailInfo = JSON.parse(json);
|
||||||
|
vc.component.reportPayFeeDetailInfo.total = _reportPayFeeDetailInfo.total;
|
||||||
|
vc.component.reportPayFeeDetailInfo.records = _reportPayFeeDetailInfo.records;
|
||||||
|
vc.component.reportPayFeeDetailInfo.fees = _reportPayFeeDetailInfo.data;
|
||||||
|
vc.emit('pagination', 'init', {
|
||||||
|
total: vc.component.reportPayFeeDetailInfo.records,
|
||||||
|
currentPage: _page
|
||||||
|
});
|
||||||
|
}, function (errInfo, error) {
|
||||||
|
console.log('请求失败处理');
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
loadUnits: function (_floorId) {
|
||||||
|
var param = {
|
||||||
|
params: {
|
||||||
|
floorId: _floorId,
|
||||||
|
communityId: vc.getCurrentCommunity().communityId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
vc.http.get(
|
||||||
|
'room',
|
||||||
|
'loadUnits',
|
||||||
|
param,
|
||||||
|
function (json, res) {
|
||||||
|
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||||
|
if (res.status == 200) {
|
||||||
|
let tmpUnits = JSON.parse(json);
|
||||||
|
vc.component.reportPayFeeDetailInfo.roomUnits = tmpUnits;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
vc.toast(json);
|
||||||
|
},
|
||||||
|
function (errInfo, error) {
|
||||||
|
console.log('请求失败处理');
|
||||||
|
vc.toast(errInfo);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
_openChooseFloorMethod:function(){
|
||||||
|
vc.emit('searchFloor','openSearchFloorModel',{});
|
||||||
|
},
|
||||||
|
_exportFee:function(){
|
||||||
|
vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportPayFeeDetail&'+vc.objToGetParam($that.reportPayFeeDetailInfo.conditions));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})(window.vc);
|
||||||
Loading…
Reference in New Issue
Block a user