mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 14:17:24 +08:00
优化代码
This commit is contained in:
parent
5b75c5a78b
commit
f1baa9772e
119
public/pages/property/payFeeAuditManage/payFeeAuditManage.html
Normal file
119
public/pages/property/payFeeAuditManage/payFeeAuditManage.html
Normal file
@ -0,0 +1,119 @@
|
||||
<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;">
|
||||
<button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
|
||||
v-on:click="_moreCondition()">{{payFeeAuditManageInfo.moreCondition == true?'隐藏':'更多'}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<select class="custom-select" v-model="payFeeAuditManageInfo.conditions.payObjType">
|
||||
<option v-for="(item,index) in payFeeAuditManageInfo.payObjTypes" :key="index" v-bind:value="item.statusCd">{{item.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<select class="custom-select" v-model="payFeeAuditManageInfo.conditions.state">
|
||||
<option value="1010">待审核</option>
|
||||
<option value="2020">审核通过</option>
|
||||
<option value="3030">审核未通过</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请填写房屋 楼栋-单元-室" v-model="payFeeAuditManageInfo.conditions.payerObjId" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryPayFeeMethod()">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" v-if="payFeeAuditManageInfo.moreCondition == true">
|
||||
<div class="col-sm-4">
|
||||
<input size="16" type="text" placeholder="请填写员工编码" v-model="payFeeAuditManageInfo.conditions.userCode" class="form-control">
|
||||
</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="_exportExcel()">
|
||||
<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">房屋</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>
|
||||
<td class="text-center">实付金额</td>
|
||||
<td class="text-center">操作员工</td>
|
||||
<td class="text-center">缴费时间</td>
|
||||
<td class="text-center">审核状态</td>
|
||||
<td class="text-center">审核说明</td>
|
||||
<td class="text-center">缴费备注</td>
|
||||
<td class="text-right">详情</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="payFee in payFeeAuditManageInfo.payFees">
|
||||
<td class="text-center">{{payFee.payObjName}}</td>
|
||||
<td class="text-center">{{payFee.feeName}}</td>
|
||||
<td class="text-center">{{payFee.cycles}}个月</td>
|
||||
<td class="text-center">{{payFee.endTime}}</td>
|
||||
<td class="text-center">{{payFee.endTime}}</td>
|
||||
<td class="text-center">{{payFee.receivableAmount}}</td>
|
||||
<td class="text-center">{{payFee.receivedAmount}}</td>
|
||||
<td class="text-center">{{payFee.userName}}</td>
|
||||
<td class="text-center">{{payFee.createTime}}</td>
|
||||
<td class="text-center">{{payFee.stateName}}</td>
|
||||
<td class="text-center">{{payFee.message}}</td>
|
||||
<td class="text-center">{{payFee.remark}}</td>
|
||||
<td class="text-right">
|
||||
<button class="btn btn-link btn-xs"
|
||||
v-on:click="_detailFee(payFee)">详情
|
||||
</button>
|
||||
<button class="btn btn-link btn-xs"
|
||||
v-on:click="_auditFee(payFee)">审核费用
|
||||
</button>
|
||||
</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>
|
||||
</div>
|
||||
97
public/pages/property/payFeeAuditManage/payFeeAuditManage.js
Normal file
97
public/pages/property/payFeeAuditManage/payFeeAuditManage.js
Normal file
@ -0,0 +1,97 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 30;
|
||||
vc.extends({
|
||||
data: {
|
||||
payFeeAuditManageInfo: {
|
||||
payFees: [],
|
||||
payObjTypes:[],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
name: '',
|
||||
conditions: {
|
||||
communityId: vc.getCurrentCommunity().communityId,
|
||||
payObjType: '3333',
|
||||
startTime: '',
|
||||
endTime: '',
|
||||
userCode:'',
|
||||
state:''
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
vc.component._listPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
//vc.component._listFeeType();
|
||||
vc.getDict('pay_fee',"payer_obj_type",function(_data){
|
||||
vc.component.payFeeAuditManageInfo.payObjTypes = _data;
|
||||
});
|
||||
},
|
||||
_initEvent: function () {
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listpayFees(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listPayFees: function (_page, _rows) {
|
||||
vc.component.payFeeAuditManageInfo.conditions.page = _page;
|
||||
vc.component.payFeeAuditManageInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params: vc.component.payFeeAuditManageInfo.conditions
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.apGet('/payFeeAudit/queryPayFeeAudit',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _payFeeAuditManageInfo = JSON.parse(json);
|
||||
vc.component.payFeeAuditManageInfo.total = _payFeeAuditManageInfo.total;
|
||||
vc.component.payFeeAuditManageInfo.records = parseInt(_payFeeAuditManageInfo.total/_rows +1);
|
||||
vc.component.payFeeAuditManageInfo.payFees = _payFeeAuditManageInfo.data;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.payFeeAuditManageInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_queryPayFeeMethod: function () {
|
||||
vc.component._listPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
|
||||
},
|
||||
_moreCondition: function () {
|
||||
if (vc.component.payFeeAuditManageInfo.moreCondition) {
|
||||
vc.component.payFeeAuditManageInfo.moreCondition = false;
|
||||
} else {
|
||||
vc.component.payFeeAuditManageInfo.moreCondition = true;
|
||||
}
|
||||
},
|
||||
_listFeeType: function () {
|
||||
var param = {
|
||||
params:{
|
||||
"hc":"cc@cc"
|
||||
}
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.get('payFeeAuditManage',
|
||||
'listFeeType',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _feeTypesInfo = JSON.parse(json);
|
||||
vc.component.payFeeAuditManageInfo.payFeeTypes = _feeTypesInfo;
|
||||
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_detailFee:function(_fee){
|
||||
vc.jumpToPage('/admin.html#/pages/property/propertyFee?'+vc.objToGetParam(_fee));
|
||||
}
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
@ -31,7 +31,7 @@
|
||||
vc.component._listImportFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listbills(_currentPage, DEFAULT_ROWS);
|
||||
vc.component._listImportFees(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user