mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-16 11:43:26 +08:00
optimize pay fee audti state
This commit is contained in:
parent
298f395db6
commit
79e8d8a2bf
@ -1,7 +1,7 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function (vc) {
|
||||
(function(vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
@ -19,32 +19,32 @@
|
||||
startTime: '',
|
||||
endTime: '',
|
||||
userCode: '',
|
||||
state: '',
|
||||
state: '1010',
|
||||
payerObjId: ''
|
||||
},
|
||||
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('payFeeAuditManage', 'listPayFee', function (_param) {
|
||||
_initEvent: function() {
|
||||
vc.on('payFeeAuditManage', 'listPayFee', function(_param) {
|
||||
vc.component._listPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
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 = {
|
||||
@ -53,7 +53,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);
|
||||
@ -64,30 +64,30 @@
|
||||
currentPage: _page
|
||||
});
|
||||
},
|
||||
function (errInfo, error) {
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
//查询
|
||||
_queryPayFeeMethod: function () {
|
||||
_queryPayFeeMethod: function() {
|
||||
vc.component._listPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
//重置
|
||||
_resetPayFeeMethod: function () {
|
||||
_resetPayFeeMethod: function() {
|
||||
vc.resetObject($that.payFeeAuditManageInfo.conditions);
|
||||
$that.payFeeAuditManageInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
|
||||
$that.payFeeAuditManageInfo.conditions.state = "";
|
||||
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"
|
||||
@ -97,23 +97,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('/#/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 = {
|
||||
@ -128,7 +128,7 @@
|
||||
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) {
|
||||
@ -140,12 +140,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') {
|
||||
@ -153,7 +153,7 @@
|
||||
}
|
||||
return '待审核';
|
||||
},
|
||||
_openRefundModel: function (_feeDetail) {
|
||||
_openRefundModel: function(_feeDetail) {
|
||||
_feeDetail.mainFeeInfo = {
|
||||
feeId: _feeDetail.feeId
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function (vc) {
|
||||
(function(vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
@ -20,7 +20,7 @@
|
||||
feeId: '',
|
||||
detailId: '',
|
||||
userCode: '',
|
||||
state: '',
|
||||
state: '1000',
|
||||
feeTypeCd: '',
|
||||
payerObjName: '',
|
||||
startTime: '',
|
||||
@ -28,28 +28,28 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
_initMethod: function() {
|
||||
// 初始化方法(时间插件)
|
||||
vc.component._initReturnPayFeeManageDateInfo();
|
||||
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: {
|
||||
// 新增初始化时间插件方法
|
||||
_initReturnPayFeeManageDateInfo: function () {
|
||||
_initReturnPayFeeManageDateInfo: function() {
|
||||
$('.startTime').datetimepicker({
|
||||
language: 'zh-CN',
|
||||
fontAwesome: 'fa',
|
||||
@ -60,7 +60,7 @@
|
||||
todayBtn: true
|
||||
});
|
||||
$('.startTime').datetimepicker()
|
||||
.on('changeDate', function (ev) {
|
||||
.on('changeDate', function(ev) {
|
||||
var value = $(".startTime").val();
|
||||
vc.component.returnPayFeeManageInfo.conditions.startTime = value;
|
||||
});
|
||||
@ -74,7 +74,7 @@
|
||||
todayBtn: true
|
||||
});
|
||||
$('.endTime').datetimepicker()
|
||||
.on('changeDate', function (ev) {
|
||||
.on('changeDate', function(ev) {
|
||||
var value = $(".endTime").val();
|
||||
var start = Date.parse(new Date(vc.component.returnPayFeeManageInfo.conditions.startTime))
|
||||
var end = Date.parse(new Date(value))
|
||||
@ -98,7 +98,7 @@
|
||||
e.currentTarget.blur();
|
||||
}
|
||||
},
|
||||
_listReturnPayFees: function (_page, _rows) {
|
||||
_listReturnPayFees: function(_page, _rows) {
|
||||
vc.component.returnPayFeeManageInfo.conditions.page = _page;
|
||||
vc.component.returnPayFeeManageInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
@ -108,7 +108,7 @@
|
||||
param.params.payerObjName = param.params.payerObjName.trim();
|
||||
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);
|
||||
@ -133,17 +133,17 @@
|
||||
currentPage: _page
|
||||
});
|
||||
},
|
||||
function () {
|
||||
function() {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
//查询
|
||||
_queryReturnPayFeeMethod: function () {
|
||||
_queryReturnPayFeeMethod: function() {
|
||||
vc.component._listReturnPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
//重置
|
||||
_resetReturnPayFeeMethod: function () {
|
||||
_resetReturnPayFeeMethod: function() {
|
||||
vc.component.returnPayFeeManageInfo.conditions.detailId = "";
|
||||
vc.component.returnPayFeeManageInfo.conditions.feeTypeCd = "";
|
||||
vc.component.returnPayFeeManageInfo.conditions.state = "";
|
||||
@ -152,7 +152,7 @@
|
||||
vc.component.returnPayFeeManageInfo.conditions.endTime = "";
|
||||
vc.component._listReturnPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_auditReturnPayFeeState: function (_auditInfo) {
|
||||
_auditReturnPayFeeState: function(_auditInfo) {
|
||||
vc.component.returnPayFeeManageInfo.returnPayFee.state = _auditInfo.state;
|
||||
vc.component.returnPayFeeManageInfo.returnPayFee.payableAmount = 0.0;
|
||||
//vc.component.returnPayFeeManageInfo.returnPayFee.remark = _auditInfo.remark;
|
||||
@ -162,7 +162,7 @@
|
||||
JSON.stringify(_returnPayFee), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function (json, res) {
|
||||
function(json, res) {
|
||||
let _json = JSON.parse(json);
|
||||
if (_json.code == 0) {
|
||||
vc.component._listReturnPayFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
@ -172,25 +172,25 @@
|
||||
vc.toast(_json.msg);
|
||||
}
|
||||
},
|
||||
function (errInfo, error) {
|
||||
function(errInfo, error) {
|
||||
vc.toast(errInfo);
|
||||
});
|
||||
},
|
||||
_moreCondition: function () {
|
||||
_moreCondition: function() {
|
||||
if (vc.component.returnPayFeeManageInfo.moreCondition) {
|
||||
vc.component.returnPayFeeManageInfo.moreCondition = false;
|
||||
} else {
|
||||
vc.component.returnPayFeeManageInfo.moreCondition = true;
|
||||
}
|
||||
},
|
||||
_exportFee: function () {
|
||||
_exportFee: function() {
|
||||
vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=returnPayFeeManage&' + vc.objToGetParam($that.returnPayFeeManageInfo.conditions));
|
||||
},
|
||||
_openReturnPayFeeAuditModel(_payFee) {
|
||||
vc.component.returnPayFeeManageInfo.returnPayFee = _payFee;
|
||||
vc.emit('audit', 'openAuditModal', {});
|
||||
},
|
||||
_toReturnFeeDetail: function (_payFee) {
|
||||
_toReturnFeeDetail: function(_payFee) {
|
||||
vc.jumpToPage('/#/pages/property/propertyFee?feeId=' + _payFee.feeId);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user