mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-26 08:16:47 +08:00
92 lines
3.7 KiB
JavaScript
92 lines
3.7 KiB
JavaScript
/**
|
|
入驻小区
|
|
**/
|
|
(function (vc) {
|
|
var DEFAULT_PAGE = 1;
|
|
var DEFAULT_ROWS = 10;
|
|
vc.extends({
|
|
data: {
|
|
roomFeeImport: {
|
|
improtFees: [],
|
|
feeTypeCds: [],
|
|
total: 0,
|
|
records: 1,
|
|
moreCondition: false,
|
|
title: '',
|
|
conditions: {
|
|
importFeeId: '',
|
|
feeTypeCd: ''
|
|
}
|
|
}
|
|
},
|
|
_initMethod: function () {
|
|
vc.getDict('pay_fee_config', "fee_type_cd", function (_data) {
|
|
vc.component.roomFeeImport.feeTypeCds = _data;
|
|
});
|
|
$that._listImportFees(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._listImportFees(_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
|
|
};
|
|
param.params.importFeeId = param.params.importFeeId.trim();
|
|
//发送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,
|
|
dataCount: vc.component.roomFeeImport.total,
|
|
currentPage: _page
|
|
});
|
|
},
|
|
function (errInfo, error) {
|
|
console.log('请求失败处理');
|
|
}
|
|
);
|
|
},
|
|
_openImportFeeDetail: function (_fee) {
|
|
vc.jumpToPage('/#/pages/property/roomFeeImportDetail?importFeeId=' + _fee.importFeeId);
|
|
},
|
|
//查询
|
|
_queryImportFeeMethod: function () {
|
|
vc.component._listImportFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
|
},
|
|
//重置
|
|
_resetImportFeeMethod: function () {
|
|
vc.component.roomFeeImport.conditions.importFeeId = "";
|
|
vc.component.roomFeeImport.conditions.feeTypeCd = "";
|
|
vc.component._listImportFees(DEFAULT_PAGE, DEFAULT_ROWS);
|
|
},
|
|
_openRoomFeeImport: function () {
|
|
vc.emit('importRoomFee', 'openImportRoomFeeModal', {});
|
|
},
|
|
_moreCondition: function () {
|
|
if (vc.component.roomFeeImport.moreCondition) {
|
|
vc.component.roomFeeImport.moreCondition = false;
|
|
} else {
|
|
vc.component.roomFeeImport.moreCondition = true;
|
|
}
|
|
},
|
|
_openFeeSharing: function () {
|
|
vc.emit('feeSharing', 'openFeeSharingModal', {});
|
|
}
|
|
}
|
|
});
|
|
})(window.vc); |