优化押金导出跳转到登陆页面的bug

Signed-off-by: java110 <928255095@qq.com>
This commit is contained in:
java110 2025-05-14 07:12:06 +00:00 committed by Gitee
parent 22ea6cb3a8
commit 9b050d7240
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -36,21 +36,21 @@
} }
}, },
_initMethod: function () { _initMethod: function () {
// vc.component.initFeeConfig(); // $that.initFeeConfig();
vc.component._initDate(); $that._initDate();
//与字典表收费状态关联 //与字典表收费状态关联
vc.getDict('pay_fee', "state", function (_data) { 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.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.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").mouseover(() => {
$('.popover-show').popover('show'); $('.popover-show').popover('show');
}) })
@ -60,12 +60,12 @@
}, },
_initEvent: function () { _initEvent: function () {
vc.on('reportPayFeeDeposit', 'chooseFloor', function (_param) { vc.on('reportPayFeeDeposit', 'chooseFloor', function (_param) {
vc.component.reportPayFeeDepositInfo.conditions.floorId = _param.floorId; $that.reportPayFeeDepositInfo.conditions.floorId = _param.floorId;
vc.component.reportPayFeeDepositInfo.conditions.floorName = _param.floorName; $that.reportPayFeeDepositInfo.conditions.floorName = _param.floorName;
vc.component.loadUnits(_param.floorId); $that.loadUnits(_param.floorId);
}); });
vc.on('pagination', 'page_event', function (_currentPage) { vc.on('pagination', 'page_event', function (_currentPage) {
vc.component._listFees(_currentPage, DEFAULT_ROWS); $that._listFees(_currentPage, DEFAULT_ROWS);
}); });
}, },
methods: { methods: {
@ -93,12 +93,12 @@
$('.startTime').datetimepicker() $('.startTime').datetimepicker()
.on('changeDate', function (ev) { .on('changeDate', function (ev) {
var value = $(".startTime").val(); var value = $(".startTime").val();
vc.component.reportPayFeeDepositInfo.conditions.startTime = value; $that.reportPayFeeDepositInfo.conditions.startTime = value;
}); });
$('.endTime').datetimepicker() $('.endTime').datetimepicker()
.on('changeDate', function (ev) { .on('changeDate', function (ev) {
var value = $(".endTime").val(); 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 start = Date.parse(new Date($that.reportPayFeeDepositInfo.conditions.startTime))
let end = Date.parse(new Date($that.reportPayFeeDepositInfo.conditions.endTime)) let end = Date.parse(new Date($that.reportPayFeeDepositInfo.conditions.endTime))
if (start - end >= 0) { if (start - end >= 0) {
@ -121,32 +121,32 @@
}, },
//查询 //查询
_queryMethod: function () { _queryMethod: function () {
vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS); $that._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
}, },
//查询方法 //查询方法
_listFees: function (_page, _rows) { _listFees: function (_page, _rows) {
vc.component.reportPayFeeDepositInfo.conditions.page = _page; $that.reportPayFeeDepositInfo.conditions.page = _page;
vc.component.reportPayFeeDepositInfo.conditions.row = _rows; $that.reportPayFeeDepositInfo.conditions.row = _rows;
var param = { let param = {
params: vc.component.reportPayFeeDepositInfo.conditions params: $that.reportPayFeeDepositInfo.conditions
}; };
param.params.feeId = param.params.feeId.trim(); param.params.feeId = param.params.feeId.trim();
//发送get请求 //发送get请求
vc.http.apiGet('/reportFeeMonthStatistics/queryPayFeeDeposit', vc.http.apiGet('/reportFeeMonthStatistics/queryPayFeeDeposit',
param, param,
function (json, res) { function (json, res) {
var _reportPayFeeDepositInfo = JSON.parse(json); let _json = JSON.parse(json);
vc.component.reportPayFeeDepositInfo.total = _reportPayFeeDepositInfo.total; $that.reportPayFeeDepositInfo.total = _json.total;
vc.component.reportPayFeeDepositInfo.records = _reportPayFeeDepositInfo.records; $that.reportPayFeeDepositInfo.records = _json.records;
vc.component.reportPayFeeDepositInfo.depositFees = _reportPayFeeDepositInfo.data; $that.reportPayFeeDepositInfo.depositFees = _json.data;
vc.component.reportPayFeeDepositInfo.sumTotal = _reportPayFeeDepositInfo.sumTotal; $that.reportPayFeeDepositInfo.sumTotal = _json.sumTotal;
if (_reportPayFeeDepositInfo.data.length > 0) { if (_json.data.length > 0) {
vc.component.reportPayFeeDepositInfo.feeConfigs = _reportPayFeeDepositInfo.data[0].feeConfigDtos $that.reportPayFeeDepositInfo.feeConfigs = _json.data[0].feeConfigDtos
} }
vc.emit('pagination', 'init', { vc.emit('pagination', 'init', {
total: vc.component.reportPayFeeDepositInfo.records, total: $that.reportPayFeeDepositInfo.records,
currentPage: _page, currentPage: _page,
dataCount: vc.component.reportPayFeeDepositInfo.total dataCount: $that.reportPayFeeDepositInfo.total
}); });
}, },
function (errInfo, error) { function (errInfo, error) {
@ -156,24 +156,24 @@
}, },
//重置 //重置
_resetMethod: function (_page, _rows) { _resetMethod: function (_page, _rows) {
vc.component.reportPayFeeDepositInfo.conditions.configId = ''; $that.reportPayFeeDepositInfo.conditions.configId = '';
vc.component.reportPayFeeDepositInfo.conditions.feeId = ''; $that.reportPayFeeDepositInfo.conditions.feeId = '';
vc.component.reportPayFeeDepositInfo.conditions.payerObjType = ''; $that.reportPayFeeDepositInfo.conditions.payerObjType = '';
vc.component.reportPayFeeDepositInfo.conditions.state = ''; $that.reportPayFeeDepositInfo.conditions.state = '';
vc.component.reportPayFeeDepositInfo.conditions.startTime = ''; $that.reportPayFeeDepositInfo.conditions.startTime = '';
vc.component.reportPayFeeDepositInfo.conditions.endTime = ''; $that.reportPayFeeDepositInfo.conditions.endTime = '';
vc.component.reportPayFeeDepositInfo.conditions.detailState = ''; $that.reportPayFeeDepositInfo.conditions.detailState = '';
vc.component.reportPayFeeDepositInfo.conditions.floorId = ''; $that.reportPayFeeDepositInfo.conditions.floorId = '';
vc.component.reportPayFeeDepositInfo.conditions.floorName = ''; $that.reportPayFeeDepositInfo.conditions.floorName = '';
vc.component.reportPayFeeDepositInfo.conditions.roomNum = ''; $that.reportPayFeeDepositInfo.conditions.roomNum = '';
vc.component.reportPayFeeDepositInfo.conditions.unitId = ''; $that.reportPayFeeDepositInfo.conditions.unitId = '';
vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS); $that._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
}, },
_moreCondition: function () { _moreCondition: function () {
if (vc.component.reportPayFeeDepositInfo.moreCondition) { if ($that.reportPayFeeDepositInfo.moreCondition) {
vc.component.reportPayFeeDepositInfo.moreCondition = false; $that.reportPayFeeDepositInfo.moreCondition = false;
} else { } else {
vc.component.reportPayFeeDepositInfo.moreCondition = true; $that.reportPayFeeDepositInfo.moreCondition = true;
} }
}, },
_openChooseFloorMethod: function () { _openChooseFloorMethod: function () {
@ -193,7 +193,7 @@
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0); //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
if (res.status == 200) { if (res.status == 200) {
let tmpUnits = JSON.parse(json); let tmpUnits = JSON.parse(json);
vc.component.reportPayFeeDepositInfo.roomUnits = tmpUnits; $that.reportPayFeeDepositInfo.roomUnits = tmpUnits;
return; return;
} }
vc.toast(json); vc.toast(json);
@ -204,7 +204,22 @@
}); });
}, },
_exportFee: function () { _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) { _openPayFeeDetail: function (_param) {
vc.jumpToPage('/#/pages/property/propertyFee?feeId=' + _param.feeId); vc.jumpToPage('/#/pages/property/propertyFee?feeId=' + _param.feeId);