加入业主账户功能

This commit is contained in:
java110 2021-06-15 19:04:51 +08:00
parent f1db3059b3
commit 9fd21f2bf0
2 changed files with 173 additions and 0 deletions

View File

@ -0,0 +1,94 @@
<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="accountManageInfo.conditions.name"
class=" form-control">
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<input type="text" placeholder="请输入业主身份证号" v-model="accountManageInfo.conditions.idCard"
class=" form-control">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<input type="number" placeholder="请输入联系方式" v-model="accountManageInfo.conditions.link"
class=" form-control">
</div>
</div>
<div class="col-sm-1">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryOwnerMethod()">
<i class="fa fa-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;">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_toPayGold()">
预存
</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>
</tr>
</thead>
<tbody>
<tr v-for="account in accountManageInfo.accounts">
<td class="text-center">{{account.acctId}}</td>
<td class="text-center">{{account.acctName}}</td>
<td class="text-center">{{account.acctTypeName}}</td>
<td class="text-center">{{account.amount}}</td>
<td class="text-center">{{account.createTime}}</td>
<td class="text-center">
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_accountDetail(account)">账户明细
</button>
</div>
</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>

View File

@ -0,0 +1,79 @@
/**
入驻小区
**/
(function (vc) {
var DEFAULT_PAGE = 1;
var DEFAULT_ROWS = 10;
vc.extends({
data: {
accountManageInfo: {
accounts: [],
total: 0,
records: 1,
moreCondition: false,
scId: '',
conditions: {
name: '',
idCard: '',
link: '',
communityId: vc.getCurrentCommunity().communityId
}
}
},
_initMethod: function () {
vc.component._listshopAccounts(DEFAULT_PAGE, DEFAULT_ROWS);
},
_initEvent: function () {
vc.on('accountManage', 'listshopAccount', function (_param) {
vc.component._listAccounts(DEFAULT_PAGE, DEFAULT_ROWS);
});
vc.on('pagination', 'page_event', function (_currentPage) {
vc.component._listAccounts(_currentPage, DEFAULT_ROWS);
});
},
methods: {
_listAccounts: function (_page, _rows) {
vc.component.accountManageInfo.conditions.page = _page;
vc.component.accountManageInfo.conditions.row = _rows;
var param = {
params: vc.component.accountManageInfo.conditions
};
//发送get请求
vc.http.apiGet('/account/queryAccount',
param,
function (json, res) {
var _accountManageInfo = JSON.parse(json);
vc.component.accountManageInfo.total = _accountManageInfo.total;
vc.component.accountManageInfo.records = _accountManageInfo.records;
vc.component.accountManageInfo.shopAccounts = _accountManageInfo.data;
vc.emit('pagination', 'init', {
total: vc.component.accountManageInfo.records,
currentPage: _page
});
}, function (errInfo, error) {
console.log('请求失败处理');
}
);
},
_queryshopAccountMethod: function () {
vc.component._listshopAccounts(DEFAULT_PAGE, DEFAULT_ROWS);
},
_moreCondition: function () {
if (vc.component.accountManageInfo.moreCondition) {
vc.component.accountManageInfo.moreCondition = false;
} else {
vc.component.accountManageInfo.moreCondition = true;
}
},
_toPayGold: function () {
vc.jumpToPage('/admin.html#/pages/goods/buyGold')
}
}
});
})(window.vc);