mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
优化山东济南物业反馈的 优化建议
This commit is contained in:
parent
bf22867fb4
commit
5a075cd004
@ -1,8 +1,8 @@
|
||||
<div id="breadcrumb" class="border-bottom white-bg" v-if="breadCrumbs.length > 0">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item" v-for="(item,index) in breadCrumbs">
|
||||
<span class="nav-link active" aria-current="page" @click="_changeSmallTab(item)">{{item.pageName}}
|
||||
<i class="fa fa-remove margin-left-sm"></i>
|
||||
<span class="nav-link " v-bind:class="{'active':item.active=='1'}" aria-current="page" @click="_changeSmallTab(item)">{{item.pageName}}
|
||||
<i class="fa fa-remove margin-left-sm" @click.stop="_deleteSmallTab(item)"></i>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@ -1,66 +1,79 @@
|
||||
/**
|
||||
菜单 处理
|
||||
**/
|
||||
(function(vc){
|
||||
(function(vc) {
|
||||
var vm = new Vue({
|
||||
el:'#breadcrumb',
|
||||
data:{
|
||||
breadCrumbs:[]
|
||||
},
|
||||
mounted:function(){
|
||||
//this._freshBreadCrumbByUrl();
|
||||
// 监听事件
|
||||
document.addEventListener('initVcFrameworkFinish', function (e) {
|
||||
el: '#breadcrumb',
|
||||
data: {
|
||||
breadCrumbs: []
|
||||
},
|
||||
mounted: function() {
|
||||
//this._freshBreadCrumbByUrl();
|
||||
// 监听事件
|
||||
document.addEventListener('initVcFrameworkFinish', function(e) {
|
||||
// e.target matches elem
|
||||
vm.breadCrumbs = [];
|
||||
vm._freshBreadCrumbByUrl();
|
||||
}, false);
|
||||
},
|
||||
methods:{
|
||||
_freshBreadCrumbByUrl:function(){
|
||||
},
|
||||
methods: {
|
||||
_freshBreadCrumbByUrl: function() {
|
||||
|
||||
let tabs = vc.getTabFromLocal();
|
||||
|
||||
let _tmpMenus = vc.getMenus();
|
||||
|
||||
if(_tmpMenus == null || _tmpMenus == undefined){
|
||||
return ;
|
||||
if (_tmpMenus == null || _tmpMenus == undefined) {
|
||||
return;
|
||||
}
|
||||
let _curPath = location.hash;
|
||||
if (_curPath.indexOf('?') != -1) {
|
||||
_curPath = _curPath.substring(0, _curPath.indexOf('?'));
|
||||
}
|
||||
|
||||
tabs.forEach(item => {
|
||||
let _path = item;
|
||||
if(_path.indexOf('?') != -1){
|
||||
_path = _path.substring(0,_path.indexOf('?'));
|
||||
if (_path.indexOf('?') != -1) {
|
||||
_path = _path.substring(0, _path.indexOf('?'));
|
||||
}
|
||||
let _url = vc.getUrl()+_path;
|
||||
|
||||
_tmpMenus.forEach(_menu =>{
|
||||
_menu.childs.forEach(child=>{
|
||||
console.log(_url,child.href)
|
||||
if(_url == child.href){
|
||||
_tmpBreadCrumbInf = {
|
||||
href: child.href,
|
||||
pageName: child.name,
|
||||
active:'0'
|
||||
};
|
||||
this.breadCrumbs.push(_tmpBreadCrumbInf);
|
||||
let _url = vc.getUrl() + _path;
|
||||
|
||||
_tmpMenus.forEach(_menu => {
|
||||
_menu.childs.forEach(child => {
|
||||
//console.log(_url, child.href)
|
||||
if (_url != child.href) {
|
||||
return;
|
||||
}
|
||||
_tmpBreadCrumbInf = {
|
||||
href: item,
|
||||
pageName: child.name,
|
||||
active: '0'
|
||||
};
|
||||
if (_path == _curPath) {
|
||||
_tmpBreadCrumbInf.active = '1'
|
||||
}
|
||||
this.breadCrumbs.push(_tmpBreadCrumbInf);
|
||||
})
|
||||
})
|
||||
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
_getRealUrl:function(_url){
|
||||
if(_url.indexOf('?') != -1){
|
||||
_getRealUrl: function(_url) {
|
||||
if (_url.indexOf('?') != -1) {
|
||||
return _url.substring(0, _url.indexOf('?'));
|
||||
}
|
||||
return _url;
|
||||
},
|
||||
_changeSmallTab:function(){
|
||||
|
||||
_changeSmallTab: function(_item) {
|
||||
vc.jumpToPage(vc.getUrl() + _item.href)
|
||||
},
|
||||
_deleteSmallTab: function(_item) {
|
||||
vc.deleteTabToLocal(_item.href);
|
||||
vm.breadCrumbs = [];
|
||||
vm._freshBreadCrumbByUrl();
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
|
||||
@ -127,6 +127,11 @@
|
||||
_gotoPage: function(_href) {
|
||||
// 子菜单默认选中
|
||||
this._setSelectedMenusChild(_href);
|
||||
if (_href.indexOf('?') > -1) {
|
||||
_href += "&tab=on"
|
||||
} else {
|
||||
_href += "?tab=on"
|
||||
}
|
||||
vc.jumpToPage(_href);
|
||||
},
|
||||
|
||||
|
||||
@ -5,7 +5,8 @@
|
||||
<div class="ibox-title">
|
||||
<h5>账户明细</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
|
||||
<button type="button" class="btn btn-white btn-sm" style="margin-left:10px" v-on:click="_goBack()">
|
||||
返回</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function (vc) {
|
||||
(function(vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
@ -20,21 +20,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
_initMethod: function() {
|
||||
$that.accountDetailManageInfo.conditions.acctId = vc.getParam('acctId');
|
||||
vc.component._listAccountDetails(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent: function () {
|
||||
_initEvent: function() {
|
||||
|
||||
vc.on('accountDetailManage', 'listAccountDetail', function (_param) {
|
||||
vc.on('accountDetailManage', 'listAccountDetail', function(_param) {
|
||||
vc.component._listAccountDetails(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.on('pagination', 'page_event', function(_currentPage) {
|
||||
vc.component._listAccountDetails(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listAccountDetails: function (_page, _rows) {
|
||||
_listAccountDetails: function(_page, _rows) {
|
||||
|
||||
vc.component.accountDetailManageInfo.conditions.page = _page;
|
||||
vc.component.accountDetailManageInfo.conditions.row = _rows;
|
||||
@ -45,7 +45,7 @@
|
||||
//发送get请求
|
||||
vc.http.apiGet('/account/queryOwnerAccountDetail',
|
||||
param,
|
||||
function (json, res) {
|
||||
function(json, res) {
|
||||
var _accountDetailManageInfo = JSON.parse(json);
|
||||
vc.component.accountDetailManageInfo.total = _accountDetailManageInfo.total;
|
||||
vc.component.accountDetailManageInfo.records = _accountDetailManageInfo.records;
|
||||
@ -54,23 +54,27 @@
|
||||
total: vc.component.accountDetailManageInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_queryAccountDetailMethod: function () {
|
||||
_queryAccountDetailMethod: function() {
|
||||
vc.component._listAccountDetails(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_moreCondition: function () {
|
||||
_moreCondition: function() {
|
||||
if (vc.component.accountDetailManageInfo.moreCondition) {
|
||||
vc.component.accountDetailManageInfo.moreCondition = false;
|
||||
} else {
|
||||
vc.component.accountDetailManageInfo.moreCondition = true;
|
||||
}
|
||||
},
|
||||
_goBack: function() {
|
||||
vc.goBack();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
})(window.vc);
|
||||
@ -1,4 +1,4 @@
|
||||
(function (vc) {
|
||||
(function(vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
@ -32,8 +32,8 @@
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'listOweFeeInfo.feeConfigs': function () {//'goodList'是我要渲染的对象,也就是我要等到它渲染完才能调用函数
|
||||
this.$nextTick(function () {
|
||||
'listOweFeeInfo.feeConfigs': function() { //'goodList'是我要渲染的对象,也就是我要等到它渲染完才能调用函数
|
||||
this.$nextTick(function() {
|
||||
$('#configIds').selectpicker({
|
||||
title: '请选择费用项',
|
||||
styleBase: 'form-control',
|
||||
@ -42,15 +42,15 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
vc.getDict('report_owe_fee', "payer_obj_type", function (_data) {
|
||||
_initMethod: function() {
|
||||
vc.getDict('report_owe_fee', "payer_obj_type", function(_data) {
|
||||
vc.component.listOweFeeInfo.payObjTypes = _data;
|
||||
});
|
||||
vc.component._loadListOweFeeInfo(1, 10);
|
||||
$that._listFeeConfigs();
|
||||
},
|
||||
_initEvent: function () {
|
||||
$('#configIds').on('changed.bs.select', function (e, clickedIndex, isSelected, previousValue) {
|
||||
_initEvent: function() {
|
||||
$('#configIds').on('changed.bs.select', function(e, clickedIndex, isSelected, previousValue) {
|
||||
// do something...
|
||||
console.log(e, clickedIndex, isSelected, previousValue)
|
||||
if (isSelected) {
|
||||
@ -70,17 +70,17 @@
|
||||
}
|
||||
});
|
||||
vc.on('pagination', 'page_event',
|
||||
function (_currentPage) {
|
||||
function(_currentPage) {
|
||||
vc.component._loadListOweFeeInfo(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('listOweFee', 'chooseFloor', function (_param) {
|
||||
vc.on('listOweFee', 'chooseFloor', function(_param) {
|
||||
vc.component.listOweFeeInfo.conditions.floorId = _param.floorId;
|
||||
vc.component.listOweFeeInfo.conditions.floorName = _param.floorName;
|
||||
vc.component.loadUnits(_param.floorId);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_loadListOweFeeInfo: function (_page, _row) {
|
||||
_loadListOweFeeInfo: function(_page, _row) {
|
||||
vc.component.listOweFeeInfo.conditions.page = _page;
|
||||
vc.component.listOweFeeInfo.conditions.row = _row;
|
||||
vc.component.listOweFeeInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
|
||||
@ -98,7 +98,7 @@
|
||||
//发送get请求
|
||||
vc.http.apiGet('/reportOweFee/queryReportOweFee',
|
||||
param,
|
||||
function (json) {
|
||||
function(json) {
|
||||
var _feeConfigInfo = JSON.parse(json);
|
||||
vc.component.listOweFeeInfo.total = _feeConfigInfo.total;
|
||||
vc.component.listOweFeeInfo.records = _feeConfigInfo.records;
|
||||
@ -108,15 +108,16 @@
|
||||
dataCount: _feeConfigInfo.total,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function () {
|
||||
},
|
||||
function() {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_goBack: function () {
|
||||
_goBack: function() {
|
||||
vc.goBack();
|
||||
},
|
||||
_moreCondition: function () {
|
||||
_moreCondition: function() {
|
||||
if (vc.component.listOweFeeInfo.moreCondition) {
|
||||
vc.component.listOweFeeInfo.moreCondition = false;
|
||||
} else {
|
||||
@ -124,16 +125,17 @@
|
||||
}
|
||||
},
|
||||
//查询
|
||||
_queryOweFeeMethod: function () {
|
||||
_queryOweFeeMethod: function() {
|
||||
vc.component._loadListOweFeeInfo(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
//重置
|
||||
_resetOweFeeMethod: function () {
|
||||
vc.component.listOweFeeInfo.conditions.payObjType = "";
|
||||
vc.component.listOweFeeInfo.conditions.num = "";
|
||||
_resetOweFeeMethod: function() {
|
||||
vc.resetObject($that.listOweFeeInfo.conditions);
|
||||
$that.listOweFeeInfo.feeConfigNames = [];
|
||||
$('#configIds').selectpicker('deselectAll');
|
||||
vc.component._loadListOweFeeInfo(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_listFeeConfigs: function () {
|
||||
_listFeeConfigs: function() {
|
||||
var param = {
|
||||
params: {
|
||||
page: 1,
|
||||
@ -143,15 +145,15 @@
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.get('feeConfigManage', 'list', param,
|
||||
function (json, res) {
|
||||
function(json, res) {
|
||||
var _feeConfigManageInfo = JSON.parse(json);
|
||||
vc.component.listOweFeeInfo.feeConfigs = _feeConfigManageInfo.feeConfigs;
|
||||
},
|
||||
function (errInfo, error) {
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
});
|
||||
},
|
||||
_getFeeOweAmount: function (item, fee) {
|
||||
_getFeeOweAmount: function(item, fee) {
|
||||
let _items = fee.items;
|
||||
if (!_items) {
|
||||
return 0;
|
||||
@ -165,7 +167,7 @@
|
||||
})
|
||||
return _value;
|
||||
},
|
||||
_getFeeOweAllAmount: function (item) {
|
||||
_getFeeOweAllAmount: function(item) {
|
||||
let _fees = $that.listOweFeeInfo.fees;
|
||||
let _amountOwed = 0.0;
|
||||
_fees.forEach(_feeItem => {
|
||||
@ -181,7 +183,7 @@
|
||||
});
|
||||
return _amountOwed.toFixed(2);
|
||||
},
|
||||
_getAllFeeOweAmount: function (_fee) {
|
||||
_getAllFeeOweAmount: function(_fee) {
|
||||
let _feeConfigNames = $that.listOweFeeInfo.feeConfigNames;
|
||||
if (_feeConfigNames.length < 1) {
|
||||
return _fee.amountOwed;
|
||||
@ -197,7 +199,7 @@
|
||||
})
|
||||
return _amountOwed.toFixed(2);
|
||||
},
|
||||
_getFeeOweAllAmounts: function () {
|
||||
_getFeeOweAllAmounts: function() {
|
||||
if (!window.$that) {
|
||||
return;
|
||||
}
|
||||
@ -209,7 +211,7 @@
|
||||
});
|
||||
return _amountOwed.toFixed(2);
|
||||
},
|
||||
_exportFee: function () {
|
||||
_exportFee: function() {
|
||||
let _configIds = "";
|
||||
$that.listOweFeeInfo.feeConfigNames.forEach(item => {
|
||||
_configIds += (item.configId + ',')
|
||||
@ -219,10 +221,10 @@
|
||||
}
|
||||
vc.jumpToPage('/callComponent/exportReportFee/exportData?communityId=' + vc.getCurrentCommunity().communityId + "&pagePath=listOweFee&configIds=" + _configIds);
|
||||
},
|
||||
_toFeeCollectionOrderManage: function () {
|
||||
_toFeeCollectionOrderManage: function() {
|
||||
vc.jumpToPage('/admin.html#/pages/property/feeCollectionOrderManage');
|
||||
},
|
||||
loadUnits: function (_floorId) {
|
||||
loadUnits: function(_floorId) {
|
||||
var param = {
|
||||
params: {
|
||||
floorId: _floorId,
|
||||
@ -233,7 +235,7 @@
|
||||
'room',
|
||||
'loadUnits',
|
||||
param,
|
||||
function (json, res) {
|
||||
function(json, res) {
|
||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||
if (res.status == 200) {
|
||||
let tmpUnits = JSON.parse(json);
|
||||
@ -242,15 +244,15 @@
|
||||
}
|
||||
vc.toast(json);
|
||||
},
|
||||
function (errInfo, error) {
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
vc.toast(errInfo);
|
||||
});
|
||||
},
|
||||
_openChooseFloorMethod: function () {
|
||||
_openChooseFloorMethod: function() {
|
||||
vc.emit('searchFloor', 'openSearchFloorModel', {});
|
||||
},
|
||||
_getFeeOweAllTotalAmount: function (_item) {
|
||||
_getFeeOweAllTotalAmount: function(_item) {
|
||||
let _value = 0;
|
||||
let _itemTotalOweAmounts = $that.listOweFeeInfo.fees[0].itemTotalOweAmounts;
|
||||
if (!$that.listOweFeeInfo.fees[0] || !$that.listOweFeeInfo.fees[0].itemTotalOweAmounts) {
|
||||
@ -268,4 +270,4 @@
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
})(window.vc);
|
||||
@ -34,7 +34,7 @@
|
||||
//vc.component.listOwnerInfo.conditions.ownerId = _ownerId;
|
||||
}
|
||||
$that._getColumns(function() {
|
||||
vc.component._listOwnerData(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
vc.component._listOwnerData($that.listOwnerInfo.currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
_initEvent: function() {
|
||||
|
||||
@ -21,24 +21,27 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<select class="custom-select" v-model="payFeeAuditManageInfo.conditions.state"
|
||||
placeholder="请选择状态">
|
||||
<select class="custom-select" v-model="payFeeAuditManageInfo.conditions.state" placeholder="请选择状态">
|
||||
<option value="1010">待审核</option>
|
||||
<option value="2020">审核通过</option>
|
||||
<option value="3030">审核未通过</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-sm-3" v-if="payFeeAuditManageInfo.conditions.payObjType =='666'">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请填写房屋 楼栋-单元-室"
|
||||
v-model="payFeeAuditManageInfo.conditions.payerObjId" class="form-control">
|
||||
<input type="text" placeholder="请填写车牌号" v-model="payFeeAuditManageInfo.conditions.payerObjId" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3" v-else>
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请填写房屋 楼栋-单元-室" v-model="payFeeAuditManageInfo.conditions.payerObjId" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryPayFeeMethod()">
|
||||
<i class="fa fa-search"></i>查询
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_resetPayFeeMethod()">
|
||||
<button type="button" class="btn btn-white btn-sm" v-on:click="_resetPayFeeMethod()">
|
||||
<i class="fa fa-repeat"></i>重置
|
||||
</button>
|
||||
</div>
|
||||
@ -60,63 +63,58 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<table class="footable table table-stripped toggle-arrow-tiny"
|
||||
data-page-size="15">
|
||||
<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>
|
||||
<th class="text-center">审核状态</th>
|
||||
<th class="text-center">审核说明</th>
|
||||
<th class="text-center">缴费备注</th>
|
||||
<th class="text-center">详情</th>
|
||||
</tr>
|
||||
<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>
|
||||
<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="payFee in payFeeAuditManageInfo.payFees">
|
||||
<td class="text-center">{{payFee.payerObjName}}</td>
|
||||
<td class="text-center">{{payFee.feeName}}</td>
|
||||
<td class="text-center">{{payFee.cycles}}个月</td>
|
||||
<td class="text-center">{{payFee.startTime}}</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">
|
||||
<span class="badge badge-success" v-if="payFee.state == '2020'">{{_getState(payFee.state)}}</span>
|
||||
<span class="badge badge-danger" v-else-if="payFee.state == '3030'">{{_getState(payFee.state)}}</span>
|
||||
<span class="badge badge-info" v-else>{{_getState(payFee.state)}}</span>
|
||||
</td>
|
||||
<td class="text-center">{{payFee.message}}</td>
|
||||
<td class="text-center">{{payFee.remark}}</td>
|
||||
<td class="text-center">
|
||||
<button class="btn btn-link btn-xs"
|
||||
v-on:click="_detailFee(payFee)">详情
|
||||
<tr v-for="payFee in payFeeAuditManageInfo.payFees">
|
||||
<td class="text-center">{{payFee.payerObjName}}</td>
|
||||
<td class="text-center">{{payFee.feeName}}</td>
|
||||
<td class="text-center">{{payFee.cycles}}个月</td>
|
||||
<td class="text-center">{{payFee.startTime}}</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">
|
||||
<span class="badge badge-success" v-if="payFee.state == '2020'">{{_getState(payFee.state)}}</span>
|
||||
<span class="badge badge-danger" v-else-if="payFee.state == '3030'">{{_getState(payFee.state)}}</span>
|
||||
<span class="badge badge-info" v-else>{{_getState(payFee.state)}}</span>
|
||||
</td>
|
||||
<td class="text-center">{{payFee.message}}</td>
|
||||
<td class="text-center">{{payFee.remark}}</td>
|
||||
<td class="text-center">
|
||||
<button class="btn btn-link btn-xs" v-on:click="_detailFee(payFee)">详情
|
||||
</button>
|
||||
<button class="btn btn-link btn-xs"
|
||||
v-if="payFee.state != '2020' && payFee.state != '3030' "
|
||||
v-on:click="_openAuditFeeModal(payFee)">审核费用
|
||||
<button class="btn btn-link btn-xs" v-if="payFee.state != '2020' && payFee.state != '3030' " v-on:click="_openAuditFeeModal(payFee)">审核费用
|
||||
</button>
|
||||
<button class="btn btn-link btn-xs" v-if=" payFee.state == '3030' "
|
||||
v-on:click="_openRefundModel(payFee)">退费
|
||||
<button class="btn btn-link btn-xs" v-if=" payFee.state == '3030' " v-on:click="_openRefundModel(payFee)">退费
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="13">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="13">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
@ -127,4 +125,4 @@
|
||||
</div>
|
||||
<vc:create path="common/audit" callBackListener="payFeeAuditManage" callBackFunction="audtiNotify"></vc:create>
|
||||
<vc:create path="property/returnPayFee"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function (vc) {
|
||||
(function(vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
@ -25,23 +25,23 @@
|
||||
curPayFee: {}
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
_initMethod: function() {
|
||||
vc.component._listPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
//vc.component._listFeeType();
|
||||
vc.getDict('pay_fee', "payer_obj_type", function (_data) {
|
||||
vc.getDict('pay_fee', "payer_obj_type", function(_data) {
|
||||
vc.component.payFeeAuditManageInfo.payObjTypes = _data;
|
||||
});
|
||||
},
|
||||
_initEvent: function () {
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
_initEvent: function() {
|
||||
vc.on('pagination', 'page_event', function(_currentPage) {
|
||||
vc.component._listPayFees(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('payFeeAuditManage', 'audtiNotify', function (_param) {
|
||||
vc.on('payFeeAuditManage', 'audtiNotify', function(_param) {
|
||||
$that._auditFee(_param);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listPayFees: function (_page, _rows) {
|
||||
_listPayFees: function(_page, _rows) {
|
||||
vc.component.payFeeAuditManageInfo.conditions.page = _page;
|
||||
vc.component.payFeeAuditManageInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
@ -50,7 +50,7 @@
|
||||
//发送get请求
|
||||
vc.http.apiGet('/payFeeAudit/queryPayFeeAudit',
|
||||
param,
|
||||
function (json, res) {
|
||||
function(json, res) {
|
||||
var _payFeeAuditManageInfo = JSON.parse(json);
|
||||
vc.component.payFeeAuditManageInfo.total = _payFeeAuditManageInfo.total;
|
||||
vc.component.payFeeAuditManageInfo.records = parseInt(_payFeeAuditManageInfo.total / _rows + 1);
|
||||
@ -60,30 +60,32 @@
|
||||
dataCount: vc.component.payFeeAuditManageInfo.total,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
//查询
|
||||
_queryPayFeeMethod: function () {
|
||||
_queryPayFeeMethod: function() {
|
||||
vc.component._listPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
//重置
|
||||
_resetPayFeeMethod: function () {
|
||||
vc.component.payFeeAuditManageInfo.conditions.payObjType = "";
|
||||
vc.component.payFeeAuditManageInfo.conditions.state = "";
|
||||
vc.component.payFeeAuditManageInfo.conditions.payerObjId = "";
|
||||
_resetPayFeeMethod: function() {
|
||||
vc.resetObject($that.payFeeAuditManageInfo.conditions);
|
||||
$that.payFeeAuditManageInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
|
||||
$that.payFeeAuditManageInfo.conditions.state = "1010";
|
||||
|
||||
vc.component._listPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_moreCondition: function () {
|
||||
_moreCondition: function() {
|
||||
if (vc.component.payFeeAuditManageInfo.moreCondition) {
|
||||
vc.component.payFeeAuditManageInfo.moreCondition = false;
|
||||
} else {
|
||||
vc.component.payFeeAuditManageInfo.moreCondition = true;
|
||||
}
|
||||
},
|
||||
_listFeeType: function () {
|
||||
_listFeeType: function() {
|
||||
var param = {
|
||||
params: {
|
||||
"hc": "cc@cc"
|
||||
@ -93,22 +95,23 @@
|
||||
vc.http.get('payFeeAuditManage',
|
||||
'listFeeType',
|
||||
param,
|
||||
function (json, res) {
|
||||
function(json, res) {
|
||||
var _feeTypesInfo = JSON.parse(json);
|
||||
vc.component.payFeeAuditManageInfo.payFeeTypes = _feeTypesInfo;
|
||||
}, function (errInfo, error) {
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_detailFee: function (_fee) {
|
||||
_detailFee: function(_fee) {
|
||||
vc.jumpToPage('/admin.html#/pages/property/propertyFee?' + vc.objToGetParam(_fee));
|
||||
},
|
||||
_openAuditFeeModal: function (_payFee) { // 打开 审核框
|
||||
_openAuditFeeModal: function(_payFee) { // 打开 审核框
|
||||
$that.payFeeAuditManageInfo.curPayFee = _payFee;
|
||||
vc.emit('audit', 'openAuditModal', {});
|
||||
},
|
||||
_auditFee: function (_param) {
|
||||
_auditFee: function(_param) {
|
||||
//2020 审核通过 3030 未审核
|
||||
let _state = _param.state == '1100' ? '2020' : '3030';
|
||||
let _data = {
|
||||
@ -120,11 +123,10 @@
|
||||
};
|
||||
vc.http.apiPost(
|
||||
'/payFeeAudit/savePayFeeAudit',
|
||||
JSON.stringify(_data),
|
||||
{
|
||||
JSON.stringify(_data), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function (json, res) {
|
||||
function(json, res) {
|
||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||
let _json = JSON.parse(json);
|
||||
if (_json.code == 0) {
|
||||
@ -134,12 +136,12 @@
|
||||
}
|
||||
vc.toast(_json.msg);
|
||||
},
|
||||
function (errInfo, error) {
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
vc.toast(errInfo);
|
||||
});
|
||||
},
|
||||
_getState: function (_state) {
|
||||
_getState: function(_state) {
|
||||
if (_state == '2020') {
|
||||
return '审核通过';
|
||||
} else if (_state == '3030') {
|
||||
@ -147,7 +149,7 @@
|
||||
}
|
||||
return '待审核';
|
||||
},
|
||||
_openRefundModel: function (_feeDetail) {
|
||||
_openRefundModel: function(_feeDetail) {
|
||||
_feeDetail.mainFeeInfo = {
|
||||
feeId: _feeDetail.feeId
|
||||
}
|
||||
@ -155,4 +157,4 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
})(window.vc);
|
||||
@ -9,7 +9,7 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="缴费ID" v-model="returnPayFeeManageInfo.conditions.detailId" class=" form-control">
|
||||
<input type="text" placeholder="缴费单号" v-model="returnPayFeeManageInfo.conditions.detailId" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
@ -34,6 +34,13 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请填写房屋编号 车辆编号等" v-model="returnPayFeeManageInfo.conditions.payerObjName" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -50,7 +57,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">退款单号</th>
|
||||
<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>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function (vc) {
|
||||
(function(vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
@ -21,30 +21,31 @@
|
||||
detailId: '',
|
||||
userCode: '',
|
||||
state: '',
|
||||
feeTypeCd: ''
|
||||
feeTypeCd: '',
|
||||
payerObjName: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
_initMethod: function() {
|
||||
vc.component._listReturnPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
vc.getDict('return_pay_fee', "state", function (_data) {
|
||||
vc.getDict('return_pay_fee', "state", function(_data) {
|
||||
vc.component.returnPayFeeManageInfo.returnPayFeeStates = _data;
|
||||
});
|
||||
vc.getDict('pay_fee_config', "fee_type_cd", function (_data) {
|
||||
vc.getDict('pay_fee_config', "fee_type_cd", function(_data) {
|
||||
vc.component.returnPayFeeManageInfo.feeTypes = _data;
|
||||
});
|
||||
},
|
||||
_initEvent: function () {
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
_initEvent: function() {
|
||||
vc.on('pagination', 'page_event', function(_currentPage) {
|
||||
vc.component._listReturnPayFees(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
|
||||
vc.on('returnPayFeeManage', 'notifyAuditInfo', function (_auditInfo) {
|
||||
vc.on('returnPayFeeManage', 'notifyAuditInfo', function(_auditInfo) {
|
||||
vc.component._auditReturnPayFeeState(_auditInfo);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listReturnPayFees: function (_page, _rows) {
|
||||
_listReturnPayFees: function(_page, _rows) {
|
||||
vc.component.returnPayFeeManageInfo.conditions.page = _page;
|
||||
vc.component.returnPayFeeManageInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
@ -52,7 +53,7 @@
|
||||
};
|
||||
vc.http.apiGet('returnPayFee.listReturnPayFees',
|
||||
param,
|
||||
function (json) {
|
||||
function(json) {
|
||||
var _returnPayFeeManageInfo = JSON.parse(json);
|
||||
vc.component.returnPayFeeManageInfo.total = _returnPayFeeManageInfo.total;
|
||||
// vc.component.returnPayFeeManageInfo.records = parseInt(_returnPayFeeManageInfo.total/_rows +1);
|
||||
@ -63,32 +64,32 @@
|
||||
dataCount: vc.component.returnPayFeeManageInfo.total,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function () {
|
||||
},
|
||||
function() {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_queryReturnPayFeeMethod: function () {
|
||||
_queryReturnPayFeeMethod: function() {
|
||||
vc.component._listReturnPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_auditReturnPayFeeState: function (_auditInfo) {
|
||||
_auditReturnPayFeeState: function(_auditInfo) {
|
||||
vc.component.returnPayFeeManageInfo.returnPayFee.state = _auditInfo.state;
|
||||
//vc.component.returnPayFeeManageInfo.returnPayFee.remark = _auditInfo.remark;
|
||||
let _returnPayFee = vc.component.returnPayFeeManageInfo.returnPayFee;
|
||||
vc.http.apiPost(
|
||||
'returnPayFee.updateReturnPayFee',
|
||||
JSON.stringify(_returnPayFee),
|
||||
{
|
||||
JSON.stringify(_returnPayFee), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function (json, res) {
|
||||
function(json, res) {
|
||||
if (res.status == 200) {
|
||||
vc.component._listReturnPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
return;
|
||||
}
|
||||
vc.toast(json);
|
||||
},
|
||||
function (errInfo, error) {
|
||||
function(errInfo, error) {
|
||||
vc.toast(errInfo);
|
||||
});
|
||||
},
|
||||
@ -96,9 +97,9 @@
|
||||
vc.component.returnPayFeeManageInfo.returnPayFee = _payFee;
|
||||
vc.emit('audit', 'openAuditModal', {});
|
||||
},
|
||||
_toReturnFeeDetail: function (_payFee) {
|
||||
_toReturnFeeDetail: function(_payFee) {
|
||||
vc.jumpToPage('/admin.html#/pages/property/propertyFee?feeId=' + _payFee.feeId);
|
||||
}
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
})(window.vc);
|
||||
@ -1350,6 +1350,15 @@
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
vcFramework.resetObject = function(org) {
|
||||
//for(key in Object.getOwnPropertyNames(dst)){
|
||||
for (let key in org) {
|
||||
if (typeof(key) == "string") {
|
||||
org[key] = ''
|
||||
}
|
||||
}
|
||||
};
|
||||
//扩展 现有的对象 没有的属性扩充上去
|
||||
vcFramework.extendObject = function(org, dst) {
|
||||
for (let key in dst) {
|
||||
@ -2001,7 +2010,7 @@
|
||||
//获取参数
|
||||
let _tab = vc.getParam('tab')
|
||||
|
||||
if(_tab){
|
||||
if (_tab) {
|
||||
vcFramework.setTabToLocal(_componentUrl);
|
||||
}
|
||||
refreshVcFramework();
|
||||
@ -2637,7 +2646,7 @@
|
||||
routes.splice(loction, 1);
|
||||
}
|
||||
|
||||
if(routes.length > 20){
|
||||
if (routes.length > 20) {
|
||||
routes.shift();
|
||||
}
|
||||
|
||||
@ -2734,11 +2743,11 @@
|
||||
//判断是否已经有 如果有则删除
|
||||
for (let tabIndex = 0; tabIndex < tabs.length; tabIndex++) {
|
||||
_tmpTab = tabs[tabIndex];
|
||||
if (_tmpTab[tabIndex] == _obj) {
|
||||
return ;
|
||||
if (_tmpTab == _obj) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(tabs.length > 20){
|
||||
if (tabs.length > 10) {
|
||||
tabs.shift();
|
||||
}
|
||||
tabs.push(_obj);
|
||||
@ -2746,13 +2755,14 @@
|
||||
}
|
||||
|
||||
vcFramework.deleteTabToLocal = function(_obj) {
|
||||
let routes = vcFramework.getPageRouteFromLocal();
|
||||
let tabs = vcFramework.getTabFromLocal();
|
||||
for (let tabIndex = 0; tabIndex < tabs.length; tabIndex++) {
|
||||
_tmpTab = tabs[tabIndex];
|
||||
if (_tmpTab[tabIndex] == _obj) {
|
||||
tabs.splice(tabIndex,1);
|
||||
console.log(_tmpTab[tabIndex], _obj)
|
||||
if (_tmpTab == _obj) {
|
||||
tabs.splice(tabIndex, 1);
|
||||
}
|
||||
}
|
||||
window.localStorage.setItem('vcPageRoute', JSON.stringify(routes));
|
||||
window.localStorage.setItem('vcTab', JSON.stringify(tabs));
|
||||
}
|
||||
})(window.vcFramework);
|
||||
Loading…
Reference in New Issue
Block a user