mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 06:09:11 +08:00
优化费用导入
This commit is contained in:
parent
f88dccddac
commit
3433d23211
@ -76,10 +76,7 @@
|
||||
<div class="ibox-title">
|
||||
<h5>房屋信息</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
<button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
|
||||
v-on:click="_openRoomFeeImport(null,true)">
|
||||
费用导入
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
|
||||
v-on:click="_openRoomCreateFeeAddModal(null,true)">
|
||||
<i class="fa fa-plus"></i> 批量创建
|
||||
@ -167,5 +164,5 @@
|
||||
|
||||
<vc:create path="property/roomCreateFeeAdd"></vc:create>
|
||||
|
||||
<vc:create path="property/importRoomFee"></vc:create>
|
||||
|
||||
</div>
|
||||
103
public/pages/property/roomFeeImport/roomFeeImport.html
Normal file
103
public/pages/property/roomFeeImport/roomFeeImport.html
Normal file
@ -0,0 +1,103 @@
|
||||
<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()">{{roomFeeImport.moreCondition == true?'隐藏':'更多'}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入导入ID" v-model="roomFeeImport.conditions.importFeeId"
|
||||
class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<select class="custom-select" v-model="roomFeeImport.conditions.curBill">
|
||||
<option selected value="">请选择账单类型</option>
|
||||
<option value="T">当期账单</option>
|
||||
<option value="F">往期账单</option>
|
||||
|
||||
</select></div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryImportFeeMethod()">
|
||||
<i class="fa fa-search"></i> 查询
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4" v-if="roomFeeImport.moreCondition == true">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入信息ID" v-model="roomFeeImport.conditions.activitiesId"
|
||||
class=" form-control">
|
||||
</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" style="margin-left:10px"
|
||||
v-on:click="_openRoomFeeImport(null,true)">
|
||||
费用导入
|
||||
</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">导入ID</th>
|
||||
<th class="text-center">费用类型</th>
|
||||
<th class="text-center">创建时间</th>
|
||||
<th class="text-right">操作</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="fee in roomFeeImport.improtFees">
|
||||
<td class="text-center">{{fee.importFeeId}}</td>
|
||||
<td class="text-center">{{fee.feeTypeCd}}</td>
|
||||
<td class="text-center">{{fee.createTime}}</td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs" v-on:click="_openImportFeeDetail(fee)">详情
|
||||
</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>
|
||||
<vc:create path="property/importRoomFee"></vc:create>
|
||||
</div>
|
||||
77
public/pages/property/roomFeeImport/roomFeeImport.js
Normal file
77
public/pages/property/roomFeeImport/roomFeeImport.js
Normal file
@ -0,0 +1,77 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
roomFeeImport: {
|
||||
improtFees: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
title: '',
|
||||
conditions: {
|
||||
importFeeId: '',
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
$that._listFees(DEFAULT_PAGE,DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
vc.on('roomFeeImport', 'listFee', function (_param) {
|
||||
vc.component._listImportFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listbills(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listImportFees: function (_page, _rows) {
|
||||
|
||||
vc.component.roomFeeImport.conditions.page = _page;
|
||||
vc.component.roomFeeImport.conditions.row = _rows;
|
||||
vc.component.roomFeeImport.conditions.communityId = vc.getCurrentCommunity().communityId;
|
||||
var param = {
|
||||
params: vc.component.roomFeeImport.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/importFee/queryImportFee',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _roomFeeImport = JSON.parse(json);
|
||||
vc.component.roomFeeImport.total = _roomFeeImport.total;
|
||||
vc.component.roomFeeImport.records = _roomFeeImport.records;
|
||||
vc.component.roomFeeImport.improtFees = _roomFeeImport.data;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.roomFeeImport.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_openImportFeeDetail: function (_bill) {
|
||||
vc.jumpToPage('/admin.html#/pages/property/billOweManage?'+vc.objToGetParam(_bill));
|
||||
|
||||
},
|
||||
_queryImportFeeMethod: function () {
|
||||
vc.component._listImportFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
|
||||
},
|
||||
_moreCondition: function () {
|
||||
if (vc.component.roomFeeImport.moreCondition) {
|
||||
vc.component.roomFeeImport.moreCondition = false;
|
||||
} else {
|
||||
vc.component.roomFeeImport.moreCondition = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
Loading…
Reference in New Issue
Block a user