mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-28 00:43:58 +08:00
优化押金导出跳转到登陆页面的bug
Signed-off-by: java110 <928255095@qq.com>
This commit is contained in:
parent
22ea6cb3a8
commit
9b050d7240
@ -36,21 +36,21 @@
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
// vc.component.initFeeConfig();
|
||||
vc.component._initDate();
|
||||
// $that.initFeeConfig();
|
||||
$that._initDate();
|
||||
//与字典表收费状态关联
|
||||
vc.getDict('pay_fee', "state", function (_data) {
|
||||
vc.component.reportPayFeeDepositInfo.states = _data;
|
||||
$that.reportPayFeeDepositInfo.states = _data;
|
||||
});
|
||||
//与字典表付费对象类型关联
|
||||
vc.getDict('pay_fee', "payer_obj_type", function (_data) {
|
||||
vc.component.reportPayFeeDepositInfo.payerObjTypes = _data;
|
||||
$that.reportPayFeeDepositInfo.payerObjTypes = _data;
|
||||
});
|
||||
//与字典表退费状态关联
|
||||
vc.getDict('pay_fee_detail', "state", function (_data) {
|
||||
vc.component.reportPayFeeDepositInfo.detailStates = _data;
|
||||
$that.reportPayFeeDepositInfo.detailStates = _data;
|
||||
});
|
||||
vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
$that._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
$(".popover-show").mouseover(() => {
|
||||
$('.popover-show').popover('show');
|
||||
})
|
||||
@ -60,12 +60,12 @@
|
||||
},
|
||||
_initEvent: function () {
|
||||
vc.on('reportPayFeeDeposit', 'chooseFloor', function (_param) {
|
||||
vc.component.reportPayFeeDepositInfo.conditions.floorId = _param.floorId;
|
||||
vc.component.reportPayFeeDepositInfo.conditions.floorName = _param.floorName;
|
||||
vc.component.loadUnits(_param.floorId);
|
||||
$that.reportPayFeeDepositInfo.conditions.floorId = _param.floorId;
|
||||
$that.reportPayFeeDepositInfo.conditions.floorName = _param.floorName;
|
||||
$that.loadUnits(_param.floorId);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listFees(_currentPage, DEFAULT_ROWS);
|
||||
$that._listFees(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
@ -93,12 +93,12 @@
|
||||
$('.startTime').datetimepicker()
|
||||
.on('changeDate', function (ev) {
|
||||
var value = $(".startTime").val();
|
||||
vc.component.reportPayFeeDepositInfo.conditions.startTime = value;
|
||||
$that.reportPayFeeDepositInfo.conditions.startTime = value;
|
||||
});
|
||||
$('.endTime').datetimepicker()
|
||||
.on('changeDate', function (ev) {
|
||||
var value = $(".endTime").val();
|
||||
vc.component.reportPayFeeDepositInfo.conditions.endTime = value;
|
||||
$that.reportPayFeeDepositInfo.conditions.endTime = value;
|
||||
let start = Date.parse(new Date($that.reportPayFeeDepositInfo.conditions.startTime))
|
||||
let end = Date.parse(new Date($that.reportPayFeeDepositInfo.conditions.endTime))
|
||||
if (start - end >= 0) {
|
||||
@ -121,32 +121,32 @@
|
||||
},
|
||||
//查询
|
||||
_queryMethod: function () {
|
||||
vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
$that._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
//查询方法
|
||||
_listFees: function (_page, _rows) {
|
||||
vc.component.reportPayFeeDepositInfo.conditions.page = _page;
|
||||
vc.component.reportPayFeeDepositInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params: vc.component.reportPayFeeDepositInfo.conditions
|
||||
$that.reportPayFeeDepositInfo.conditions.page = _page;
|
||||
$that.reportPayFeeDepositInfo.conditions.row = _rows;
|
||||
let param = {
|
||||
params: $that.reportPayFeeDepositInfo.conditions
|
||||
};
|
||||
param.params.feeId = param.params.feeId.trim();
|
||||
//发送get请求
|
||||
vc.http.apiGet('/reportFeeMonthStatistics/queryPayFeeDeposit',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _reportPayFeeDepositInfo = JSON.parse(json);
|
||||
vc.component.reportPayFeeDepositInfo.total = _reportPayFeeDepositInfo.total;
|
||||
vc.component.reportPayFeeDepositInfo.records = _reportPayFeeDepositInfo.records;
|
||||
vc.component.reportPayFeeDepositInfo.depositFees = _reportPayFeeDepositInfo.data;
|
||||
vc.component.reportPayFeeDepositInfo.sumTotal = _reportPayFeeDepositInfo.sumTotal;
|
||||
if (_reportPayFeeDepositInfo.data.length > 0) {
|
||||
vc.component.reportPayFeeDepositInfo.feeConfigs = _reportPayFeeDepositInfo.data[0].feeConfigDtos
|
||||
let _json = JSON.parse(json);
|
||||
$that.reportPayFeeDepositInfo.total = _json.total;
|
||||
$that.reportPayFeeDepositInfo.records = _json.records;
|
||||
$that.reportPayFeeDepositInfo.depositFees = _json.data;
|
||||
$that.reportPayFeeDepositInfo.sumTotal = _json.sumTotal;
|
||||
if (_json.data.length > 0) {
|
||||
$that.reportPayFeeDepositInfo.feeConfigs = _json.data[0].feeConfigDtos
|
||||
}
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.reportPayFeeDepositInfo.records,
|
||||
total: $that.reportPayFeeDepositInfo.records,
|
||||
currentPage: _page,
|
||||
dataCount: vc.component.reportPayFeeDepositInfo.total
|
||||
dataCount: $that.reportPayFeeDepositInfo.total
|
||||
});
|
||||
},
|
||||
function (errInfo, error) {
|
||||
@ -156,24 +156,24 @@
|
||||
},
|
||||
//重置
|
||||
_resetMethod: function (_page, _rows) {
|
||||
vc.component.reportPayFeeDepositInfo.conditions.configId = '';
|
||||
vc.component.reportPayFeeDepositInfo.conditions.feeId = '';
|
||||
vc.component.reportPayFeeDepositInfo.conditions.payerObjType = '';
|
||||
vc.component.reportPayFeeDepositInfo.conditions.state = '';
|
||||
vc.component.reportPayFeeDepositInfo.conditions.startTime = '';
|
||||
vc.component.reportPayFeeDepositInfo.conditions.endTime = '';
|
||||
vc.component.reportPayFeeDepositInfo.conditions.detailState = '';
|
||||
vc.component.reportPayFeeDepositInfo.conditions.floorId = '';
|
||||
vc.component.reportPayFeeDepositInfo.conditions.floorName = '';
|
||||
vc.component.reportPayFeeDepositInfo.conditions.roomNum = '';
|
||||
vc.component.reportPayFeeDepositInfo.conditions.unitId = '';
|
||||
vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
$that.reportPayFeeDepositInfo.conditions.configId = '';
|
||||
$that.reportPayFeeDepositInfo.conditions.feeId = '';
|
||||
$that.reportPayFeeDepositInfo.conditions.payerObjType = '';
|
||||
$that.reportPayFeeDepositInfo.conditions.state = '';
|
||||
$that.reportPayFeeDepositInfo.conditions.startTime = '';
|
||||
$that.reportPayFeeDepositInfo.conditions.endTime = '';
|
||||
$that.reportPayFeeDepositInfo.conditions.detailState = '';
|
||||
$that.reportPayFeeDepositInfo.conditions.floorId = '';
|
||||
$that.reportPayFeeDepositInfo.conditions.floorName = '';
|
||||
$that.reportPayFeeDepositInfo.conditions.roomNum = '';
|
||||
$that.reportPayFeeDepositInfo.conditions.unitId = '';
|
||||
$that._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_moreCondition: function () {
|
||||
if (vc.component.reportPayFeeDepositInfo.moreCondition) {
|
||||
vc.component.reportPayFeeDepositInfo.moreCondition = false;
|
||||
if ($that.reportPayFeeDepositInfo.moreCondition) {
|
||||
$that.reportPayFeeDepositInfo.moreCondition = false;
|
||||
} else {
|
||||
vc.component.reportPayFeeDepositInfo.moreCondition = true;
|
||||
$that.reportPayFeeDepositInfo.moreCondition = true;
|
||||
}
|
||||
},
|
||||
_openChooseFloorMethod: function () {
|
||||
@ -193,7 +193,7 @@
|
||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||
if (res.status == 200) {
|
||||
let tmpUnits = JSON.parse(json);
|
||||
vc.component.reportPayFeeDepositInfo.roomUnits = tmpUnits;
|
||||
$that.reportPayFeeDepositInfo.roomUnits = tmpUnits;
|
||||
return;
|
||||
}
|
||||
vc.toast(json);
|
||||
@ -204,7 +204,22 @@
|
||||
});
|
||||
},
|
||||
_exportFee: function () {
|
||||
vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportPayFeeDeposit&' + vc.objToGetParam($that.reportPayFeeDepositInfo.conditions));
|
||||
$that.reportPayFeeDepositInfo.conditions.pagePath = 'reportPayFeeDeposit';
|
||||
let param = {
|
||||
params: $that.reportPayFeeDepositInfo.conditions
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.apiGet('/export.exportData', param,
|
||||
function (json, res) {
|
||||
let _json = JSON.parse(json);
|
||||
vc.toast(_json.msg);
|
||||
if (_json.code == 0) {
|
||||
vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
|
||||
}
|
||||
},
|
||||
function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
});
|
||||
},
|
||||
_openPayFeeDetail: function (_param) {
|
||||
vc.jumpToPage('/#/pages/property/propertyFee?feeId=' + _param.feeId);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user