diff --git a/public/components/fee/communityFeeTypeTree/communityFeeTypeTree.html b/public/components/fee/communityFeeTypeTree/communityFeeTypeTree.html new file mode 100644 index 000000000..de2aaf833 --- /dev/null +++ b/public/components/fee/communityFeeTypeTree/communityFeeTypeTree.html @@ -0,0 +1,6 @@ + +
+
+
+ +
\ No newline at end of file diff --git a/public/components/fee/communityFeeTypeTree/communityFeeTypeTree.js b/public/components/fee/communityFeeTypeTree/communityFeeTypeTree.js new file mode 100644 index 000000000..79a5bc833 --- /dev/null +++ b/public/components/fee/communityFeeTypeTree/communityFeeTypeTree.js @@ -0,0 +1,93 @@ +(function (vc) { + let DEFAULT_PAGE = 1; + let DEFAULT_ROW = 10; + vc.extends({ + data: { + communityFeeTypeTreeInfo: { + feeTypeCds: [], + callName: '' + } + }, + _initMethod: function () { + }, + _initEvent: function () { + vc.on('communityFeeTypeTree', 'initCommunityFeeTypeTree', function (_param) { + $that.communityFeeTypeTreeInfo.callName = _param.callName; + $that._loadCommunityFeeTypeTree(); + }); + }, + methods: { + _loadCommunityFeeTypeTree: function () { + let param = { + params: { + hc:1.8 + } + }; + //发送get请求 + vc.http.apiGet('/community.queryCommunityFeeTypeTree', + param, + function (json) { + let _json = JSON.parse(json); + $that.communityFeeTypeTreeInfo.feeTypeCds = _json.data; + $that._initJsTreeCommunityFeeTypeTree(); + }, + function () { + console.log('请求失败处理'); + }); + }, + _initJsTreeCommunityFeeTypeTree: function () { + let _data = $that.communityFeeTypeTreeInfo.feeTypeCds; + $.jstree.destroy() + $("#jstree_communityFeeTypeTreeDiv").jstree({ + "checkbox": { + "keep_selected_style": false + }, + 'state': { //一些初始化状态 + "opened": true, + }, + 'core': { + "check_callback": true, + 'data': _data + } + }); + $("#jstree_communityFeeTypeTreeDiv").on("ready.jstree", function (e, data) { + $('#jstree_communityFeeTypeTreeDiv').jstree('select_node', _data[0].children[0].id /* , true */); + }); + $('#jstree_communityFeeTypeTreeDiv').on("changed.jstree", function (e, data) { + if (data.action == 'model' || data.action == 'ready') { + return; + } + let _selected = data.selected[0]; + if (_selected.startsWith('c_')) { + vc.emit($that.communityFeeTypeTreeInfo.callName, 'selectCommunity', { + communityName: data.node.original.communityName, + communityId: data.node.original.communityId + }) + return; + } + if (_selected.startsWith('f_')) { + console.log(data.node); + vc.emit($that.communityFeeTypeTreeInfo.callName, 'selectFeeTypeCd', { + feeTypeCd: data.node.original.feeTypeCd, + communityId: data.node.original.communityId + }) + return; + } + //console.log(_selected, data.node.original.unitId) + if (_selected.startsWith('l_')) { + vc.emit($that.communityFeeTypeTreeInfo.callName, 'selectFeeFlag', { + feeFlag: data.node.original.feeFlag, + feeTypeCd: data.node.original.feeTypeCd, + communityId: data.node.original.communityId + }) + } + + }); + $('#jstree_communityFeeTypeTreeDiv') + .on('click', '.jstree-anchor', function (e) { + $(this).jstree(true).toggle_node(e.target); + }) + }, + } + }); +})(window.vc); \ No newline at end of file diff --git a/public/pages/fee/adminFeeConfig/adminFeeConfig.html b/public/pages/fee/adminFeeConfig/adminFeeConfig.html new file mode 100644 index 000000000..06e77c474 --- /dev/null +++ b/public/pages/fee/adminFeeConfig/adminFeeConfig.html @@ -0,0 +1,159 @@ +
+
+
+ +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+ + +
+
+
+
+ +
+
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
{{feeConfig.configId}}{{feeConfig.feeTypeCdName}}{{feeConfig.feeName}}{{feeConfig.feeFlagName}}{{feeConfig.paymentCd == '1200' ? '预付费':'后付费'}}{{feeConfig.paymentCycle}}{{feeConfig.computingFormulaName}}{{feeConfig.computingFormula == '2002' ? + '-':feeConfig.squarePrice}} + {{feeConfig.additionalAmount}}{{feeConfig.deductFrom == 'Y' ? '是':'否'}}{{feeConfig.state == 'Y'?'启用':'停用'}}
+ +
+
+
+ 费用标识:分为周期费用和一次性费用,周期费是连续收费的费用比如物业费每年都会收取,所以物业费建议用周期费; +
+
+ 一次性费用表示费用只收取一次比如押金,下次收费时还需要手工创建到房屋上; +
+
+ 付费类型:分为预付费和后付费,预付费表示费用提前收费 后付费表示之后收取; +
+
+
+ +
+
+ +
+
+
+ + + +
+
\ No newline at end of file diff --git a/public/pages/fee/adminFeeConfig/adminFeeConfig.js b/public/pages/fee/adminFeeConfig/adminFeeConfig.js new file mode 100644 index 000000000..648894b63 --- /dev/null +++ b/public/pages/fee/adminFeeConfig/adminFeeConfig.js @@ -0,0 +1,144 @@ +/** + 入驻小区 + **/ +(function (vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + adminFeeConfigInfo: { + feeConfigs: [], + total: 0, + records: 1, + moreCondition: false, + feeName: '', + paymentCds: [], + billTypes: [], + isDefaults: [], + curPage: DEFAULT_PAGE, + conditions: { + configId: '', + feeFlag: '', + billType: '', + feeName: '', + feeTypeCd: '', + isDefault: 'F', + paymentCd: '', + deductFrom: '' + } + } + }, + _initMethod: function () { + vc.emit('communityFeeTypeTree', 'initCommunityFeeTypeTree',{ + callName:'adminFeeConfig' + }); + $that._listAdminFeeConfigs(DEFAULT_PAGE, DEFAULT_ROWS); + //关联字典表费用类型 + + //关联字典表付费类型 + vc.getDict('pay_fee_config', 'payment_cd', function (_data) { + $that.adminFeeConfigInfo.paymentCds = _data; + }); + //关联字典表费用项 + vc.getDict('pay_fee_config', 'is_default', function (_data) { + $that.adminFeeConfigInfo.isDefaults = _data; + }) + }, + _initEvent: function () { + vc.on('adminFeeConfig', 'selectCommunity', function (_param) { + $that.adminFeeConfigInfo.conditions.communityId = _param.communityId; + $that.adminFeeConfigInfo.conditions.feeTypeCd = ''; + $that.adminFeeConfigInfo.conditions.feeFlag = ''; + $that._listAdminFeeConfigs(DEFAULT_PAGE,DEFAULT_ROWS); + }); + vc.on('adminFeeConfig', 'selectFeeTypeCd', function (_param) { + $that.adminFeeConfigInfo.conditions.communityId = _param.communityId; + $that.adminFeeConfigInfo.conditions.feeTypeCd = _param.feeTypeCd; + $that.adminFeeConfigInfo.conditions.feeFlag = ''; + $that._listAdminFeeConfigs(DEFAULT_PAGE,DEFAULT_ROWS); + + }); + vc.on('adminFeeConfig', 'selectFeeFlag', function (_param) { + $that.adminFeeConfigInfo.conditions.communityId = _param.communityId; + $that.adminFeeConfigInfo.conditions.feeTypeCd = _param.feeTypeCd; + $that.adminFeeConfigInfo.conditions.feeFlag = _param.feeFlag; + $that._listAdminFeeConfigs(DEFAULT_PAGE,DEFAULT_ROWS); + }); + vc.on('adminFeeConfig', 'listFeeConfig', + function (_param) { + $that._listAdminFeeConfigs($that.adminFeeConfigInfo.curPage, DEFAULT_ROWS); + }); + vc.on('pagination', 'page_event', + function (_currentPage) { + $that.adminFeeConfigInfo.curPage = _currentPage; + $that._listAdminFeeConfigs(_currentPage, DEFAULT_ROWS); + }); + }, + methods: { + //查询方法 + _listAdminFeeConfigs: function (_page, _rows) { + $that.adminFeeConfigInfo.conditions.page = _page; + $that.adminFeeConfigInfo.conditions.row = _rows; + let param = { + params: $that.adminFeeConfigInfo.conditions + }; + //发送get请求 + vc.http.apiGet('/feeConfig.queryAdminFeeConfigs', + param, + function (json, res) { + let _json = JSON.parse(json); + $that.adminFeeConfigInfo.total = _json.total; + $that.adminFeeConfigInfo.records = _json.records; + $that.adminFeeConfigInfo.feeConfigs = _json.feeConfigs; + vc.emit('pagination', 'init', { + total: $that.adminFeeConfigInfo.records, + dataCount: $that.adminFeeConfigInfo.total, + currentPage: _page + }); + }, + function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + //重置方法 + _resetListFeeConfigs: function () { + $that.adminFeeConfigInfo.conditions.configId = ''; + $that.adminFeeConfigInfo.conditions.feeName = ''; + $that.adminFeeConfigInfo.conditions.feeTypeCd = ''; + $that.adminFeeConfigInfo.conditions.feeFlag = ''; + $that.adminFeeConfigInfo.conditions.paymentCd = ''; + $that.adminFeeConfigInfo.conditions.billType = ''; + $that.adminFeeConfigInfo.conditions.isDefault = ''; + $that.adminFeeConfigInfo.conditions.deductFrom = ''; + $that._listAdminFeeConfigs(DEFAULT_PAGE, DEFAULT_ROWS); + }, + + //查询 + _queryFeeConfigMethod: function () { + $that._listAdminFeeConfigs(DEFAULT_PAGE, DEFAULT_ROWS); + }, + //重置 + _resetFeeConfigMethod: function () { + $that._resetListFeeConfigs(DEFAULT_PAGE, DEFAULT_ROWS); + }, + _moreCondition: function () { + if ($that.adminFeeConfigInfo.moreCondition) { + $that.adminFeeConfigInfo.moreCondition = false; + } else { + $that.adminFeeConfigInfo.moreCondition = true; + } + }, + _settingConfigDiscount: function (_feeConfig) { + vc.jumpToPage('/#/pages/property/payFeeConfigDiscountManage?configId=' + _feeConfig.configId + "&feeName=" + _feeConfig.feeName); + }, + swatchFeeTypeCd: function (item) { + $that.adminFeeConfigInfo.conditions.feeTypeCd = item.statusCd; + $that._listAdminFeeConfigs(DEFAULT_PAGE, DEFAULT_ROWS); + }, + _openFeeConfigDetail: function (_feeConfig) { + window.open('/#/pages/fee/feeConfigDetail?configId=' + _feeConfig.configId) + } + } + }); +})(window.vc); \ No newline at end of file