mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 14:17:24 +08:00
优化 代码
This commit is contained in:
parent
58345decfc
commit
06f5cec172
@ -0,0 +1,101 @@
|
||||
<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;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入房屋/车位"
|
||||
v-model="feeCollectionDetailManageInfo.conditions.ownerName" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入房屋/车位"
|
||||
v-model="feeCollectionDetailManageInfo.conditions.payerObjName" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<select class="custom-select"
|
||||
v-model="feeCollectionDetailManageInfo.conditions.collectionWay">
|
||||
<option selected disabled value="">请选择催缴方式</option>
|
||||
<option value="001">仅短信方式</option>
|
||||
<option value="002">短信微信方式</option>
|
||||
<option value="003">仅微信方式</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm"
|
||||
v-on:click="_queryFeeCollectionOrderMethod()">
|
||||
<i class="glyphicon glyphicon-search"></i> 查询
|
||||
</button>
|
||||
</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;">
|
||||
|
||||
</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>
|
||||
<th class="text-center">状态</th>
|
||||
<th class="text-center">说明</th>
|
||||
<th class="text-center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="feeCollectionDetail in feeCollectionDetailManageInfo.feeCollectionDetails">
|
||||
<td class="text-center">{{feeCollectionDetail.payerObjName}}</td>
|
||||
<td class="text-center">{{feeCollectionDetail.ownerName}}</td>
|
||||
<td class="text-center">{{feeCollectionDetail.feeName}}</td>
|
||||
<td class="text-center">{{feeCollectionDetail.collectionWay}}</td>
|
||||
<td class="text-center">{{feeCollectionDetail.oweAmount}}</td>
|
||||
<td class="text-center">{{feeCollectionDetail.createTime}}</td>
|
||||
<td class="text-center">{{feeCollectionDetail.stateName}}</td>
|
||||
<td class="text-center">{{feeCollectionDetail.remark}}</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>
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
feeCollectionDetailManageInfo: {
|
||||
feeCollectionDetails: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
orderId: '',
|
||||
conditions: {
|
||||
ownerName: '',
|
||||
payerObjName: '',
|
||||
collectionWay: '',
|
||||
orderId:'',
|
||||
communityId: vc.getCurrentCommunity().communityId
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
$that.feeCollectionDetailManageInfo.conditions.orderId = vc.getParam('orderId');
|
||||
vc.component._listFeeCollectionOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
vc.on('feeCollectionDetailManage', 'listFeeCollectionOrder', function (_param) {
|
||||
vc.component._listFeeCollectionOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listFeeCollectionOrders(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listFeeCollectionOrders: function (_page, _rows) {
|
||||
|
||||
vc.component.feeCollectionDetailManageInfo.conditions.page = _page;
|
||||
vc.component.feeCollectionDetailManageInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params: vc.component.feeCollectionDetailManageInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/feeCollectionDetail/queryFeeCollectionDetail',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _feeCollectionDetailManageInfo = JSON.parse(json);
|
||||
vc.component.feeCollectionDetailManageInfo.total = _feeCollectionDetailManageInfo.total;
|
||||
vc.component.feeCollectionDetailManageInfo.records = _feeCollectionDetailManageInfo.records;
|
||||
vc.component.feeCollectionDetailManageInfo.feeCollectionDetails = _feeCollectionDetailManageInfo.data;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.feeCollectionDetailManageInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_queryFeeCollectionOrderMethod: function () {
|
||||
vc.component._listFeeCollectionOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
|
||||
},
|
||||
_moreCondition: function () {
|
||||
if (vc.component.feeCollectionDetailManageInfo.moreCondition) {
|
||||
vc.component.feeCollectionDetailManageInfo.moreCondition = false;
|
||||
} else {
|
||||
vc.component.feeCollectionDetailManageInfo.moreCondition = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
@ -74,6 +74,7 @@
|
||||
<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>
|
||||
@ -82,13 +83,18 @@
|
||||
<td class="text-center">{{feeCollectionOrder.orderId}}</td>
|
||||
<td class="text-center">{{feeCollectionOrder.collectionName}}</td>
|
||||
<td class="text-center">{{feeCollectionOrder.staffName}}</td>
|
||||
<td class="text-center">{{feeCollectionOrder.stateName}}</td>
|
||||
<td class="text-center">{{feeCollectionOrder.collectionWay}}</td>
|
||||
<td class="text-center">{{_getStateName(feeCollectionOrder.state)}}</td>
|
||||
<td class="text-center">{{_getCollectionWayName(feeCollectionOrder.collectionWay)}}</td>
|
||||
<td class="text-center">{{feeCollectionOrder.createTime}}</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openDeleteFeeCollectionOrderModel(feeCollectionOrder)">删除</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_toFeeCollectionDetailModel(feeCollectionOrder)">详情</button>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
collectionName: '',
|
||||
staffName: '',
|
||||
collectionWay: '',
|
||||
state:'',
|
||||
state: '',
|
||||
communityId: vc.getCurrentCommunity().communityId
|
||||
}
|
||||
}
|
||||
@ -62,9 +62,6 @@
|
||||
_openAddFeeCollectionOrderModal: function () {
|
||||
vc.emit('addFeeCollectionOrder', 'openAddFeeCollectionOrderModal', {});
|
||||
},
|
||||
_openEditFeeCollectionOrderModel: function (_feeCollectionOrder) {
|
||||
vc.emit('editFeeCollectionOrder', 'openEditFeeCollectionOrderModal', _feeCollectionOrder);
|
||||
},
|
||||
_openDeleteFeeCollectionOrderModel: function (_feeCollectionOrder) {
|
||||
vc.emit('deleteFeeCollectionOrder', 'openDeleteFeeCollectionOrderModal', _feeCollectionOrder);
|
||||
},
|
||||
@ -72,6 +69,31 @@
|
||||
vc.component._listFeeCollectionOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
|
||||
},
|
||||
_getStateName: function (_state) {
|
||||
|
||||
//状态 W 等待催缴 ,D 催缴中 F 催缴完成
|
||||
if (_state == 'W') {
|
||||
return '待催缴';
|
||||
}else if(_state == 'D'){
|
||||
return '催缴中';
|
||||
}
|
||||
|
||||
return "催缴完成";
|
||||
},
|
||||
_getCollectionWayName: function (_collectionWay) {
|
||||
|
||||
//状态 W 等待催缴 ,D 催缴中 F 催缴完成
|
||||
if (_collectionWay == '001') {
|
||||
return '短信方式';
|
||||
}else if(_collectionWay == '002'){
|
||||
return '短信微信方式';
|
||||
}
|
||||
|
||||
return "微信方式";
|
||||
},
|
||||
_toFeeCollectionDetailModel:function(order){
|
||||
vc.jumpToPage('/admin.html#/pages/property/feeCollectionDetailManage?orderId='+order.orderId)
|
||||
},
|
||||
_moreCondition: function () {
|
||||
if (vc.component.feeCollectionOrderManageInfo.moreCondition) {
|
||||
vc.component.feeCollectionOrderManageInfo.moreCondition = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user