diff --git a/public/components/car/carDetailOwner/carDetailOwner.html b/public/components/car/carDetailOwner/carDetailOwner.html index 12e3b2859..2315efead 100644 --- a/public/components/car/carDetailOwner/carDetailOwner.html +++ b/public/components/car/carDetailOwner/carDetailOwner.html @@ -1,7 +1,7 @@
- +
@@ -45,12 +45,16 @@ + + + - + @@ -67,38 +71,46 @@ - {{owner.roomCount || 0}} - + {{owner.roomCount || 0}} + - {{owner.memberCount || 0}} - + {{owner.memberCount || 0}} + - {{owner.carCount || 0}} - + {{owner.carCount || 0}} + - {{owner.complaintCount || 0}} - + {{owner.complaintCount || 0}} + - {{owner.repairCount || 0}} - + {{owner.repairCount || 0}} + - {{owner.oweFee || '0.00'}} - + {{owner.oweFee || '0.00'}} + - {{owner.contractCount || 0}} - + {{owner.contractCount || 0}} + + + +
+ +
@@ -106,7 +118,7 @@
- +
diff --git a/public/components/car/carDetailOwner/carDetailOwner.js b/public/components/car/carDetailOwner/carDetailOwner.js index 918c21b9e..3f7789e49 100644 --- a/public/components/car/carDetailOwner/carDetailOwner.js +++ b/public/components/car/carDetailOwner/carDetailOwner.js @@ -45,7 +45,7 @@ param, function (json) { let _roomInfo = JSON.parse(json); - vc.component.carDetailOwnerInfo.owners = _roomInfo.owners; + $that.carDetailOwnerInfo.owners = _roomInfo.owners; vc.emit('carDetailOwner', 'paginationPlus', 'init', { total: _roomInfo.records, dataCount: _roomInfo.total, @@ -88,6 +88,9 @@ url: _url }); }, + _toCarDetailOwnerDetail:function(_owner){ + window.open('/#/pages/owner/ownerDetail?ownerId='+_owner.ownerId); + } } }); })(window.vc); \ No newline at end of file diff --git a/public/components/fee/simplifyRefundDeposit/simplifyRefundDeposit.html b/public/components/fee/simplifyRefundDeposit/simplifyRefundDeposit.html new file mode 100644 index 000000000..08ab377ee --- /dev/null +++ b/public/components/fee/simplifyRefundDeposit/simplifyRefundDeposit.html @@ -0,0 +1,65 @@ +
+
+
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
{{fee.payerObjName}}{{fee.feeName}}{{fee.startTime}}~{{fee.endTime}}{{fee.receivedAmount}}{{fee.createTime}}{{fee.stateName}} +
+ +
+
+ +
+
+
+
+ +
+
+
+
\ No newline at end of file diff --git a/public/components/fee/simplifyRefundDeposit/simplifyRefundDeposit.js b/public/components/fee/simplifyRefundDeposit/simplifyRefundDeposit.js new file mode 100644 index 000000000..6cdec106d --- /dev/null +++ b/public/components/fee/simplifyRefundDeposit/simplifyRefundDeposit.js @@ -0,0 +1,85 @@ +(function (vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + simplifyRefundDepositInfo: { + fees: [], + ownerId: '', + roomId: '', + roomName: '', + total: 0, + records: 0 + } + }, + _initMethod: function () { + }, + _initEvent: function () { + //切换 至费用页面 + vc.on('simplifyRefundDeposit', 'switch', function (_param) { + if (!_param.roomId) { + return; + } + $that.clearSimplifyFeeDepositInfo(); + vc.copyObject(_param, $that.simplifyRefundDepositInfo) + $that._listSimplifyFeeDeposit(DEFAULT_PAGE, DEFAULT_ROWS); + }); + vc.on('simplifyRefundDeposit', 'paginationPlus', 'page_event', + function (_currentPage) { + $that._listSimplifyFeeDeposit(_currentPage, DEFAULT_ROWS); + } + ); + }, + methods: { + _listSimplifyFeeDeposit: function (_page, _rows) { + let param = { + params: { + page: DEFAULT_PAGE, + row: DEFAULT_ROWS, + payerObjId: $that.simplifyRefundDepositInfo.roomId, + ownerId: $that.simplifyRefundDepositInfo.ownerId, + communityId: vc.getCurrentCommunity().communityId, + state:'1400', + } + }; + //发送get请求 + vc.http.apiGet('/fee.queryFeeDeposit', + param, + function (json, res) { + let _json = JSON.parse(json); + if(_json.code != 0){ + return; + } + $that.simplifyRefundDepositInfo.total = _json.total; + $that.simplifyRefundDepositInfo.records = _json.records; + $that.simplifyRefundDepositInfo.fees = _json.data; + vc.emit('simplifyRefundDeposit', 'paginationPlus', 'init', { + total: $that.simplifyRefundDepositInfo.records, + dataCount: $that.simplifyRefundDepositInfo.total, + currentPage: _page + }); + }, function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + clearSimplifyFeeDepositInfo: function () { + $that.simplifyRefundDepositInfo = { + fees: [], + ownerId: '', + roomId: '', + roomName: '', + total: 0, + records: 0 + } + }, + _openRefundModel: function (_fee) { + let _roomId = $that.simplifyRefundDepositInfo.roomId; + vc.jumpToPage('/#/pages/fee/refundDepositFee?roomId='+_roomId); + }, + _toSimplifyFeeDepositFeeDetail:function(_fee){ + vc.jumpToPage('/#/pages/property/propertyFee?feeId='+_fee.feeId); + }, + } + }); +})(window.vc); \ No newline at end of file diff --git a/public/pages/property/roomCreateFee/roomCreateFee.html b/public/pages/property/roomCreateFee/roomCreateFee.html index e9a1bb49c..f2498101d 100644 --- a/public/pages/property/roomCreateFee/roomCreateFee.html +++ b/public/pages/property/roomCreateFee/roomCreateFee.html @@ -1,320 +1,182 @@
-
- - - - -
-
+
+
+
+
+
+ {{roomCreateFeeInfo.roomName}} +
+
-
-
-
- -
-
-
-
-
-
-
- - + + + + +
+
+
+
+
+
+ + +
+
+
+ + +
+
+ +
-
- -
-
- - -
-
- - -
-
-
-
-
-
-
{{roomCreateFeeInfo.roomName}} - - - - - - -
-
- - - - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - -
{{fee.feeName}} - - {{fee.feeFlagName}}{{fee.feeTypeCdName}}{{fee.amountOwed}}{{fee.startTime}}{{_getEndTime(fee)}}~
{{_getDeadlineTime(fee)}}
-
- - - - :{{fee.preDegrees}} -
-
- - - - :{{fee.curDegrees}} -
-
- - - - :{{getOnePrice1(fee)}} -
-
- - - - :{{fee.additionalAmount}} -
-
-
- - - - :{{_getAttrValue(fee.feeAttrs,'390006')}} -
-
- - - - :{{fee.squarePrice}} -
-
- - - - :{{fee.additionalAmount}} -
-
-
- - - :{{_getAttrValue(fee.feeAttrs,'390005')}} -
-
- - - :{{_getAttrValue(fee.feeAttrs,'390003')}} -
-
-
- -
-
-
- - - :{{roomCreateFeeInfo.builtUpArea}} -
-
- - - :{{fee.squarePrice}} -
-
- - - :{{fee.additionalAmount}} -
-
- - - :{{fee.additionalAmount}} -
-
{{fee.stateName}} - - - - - - - +
- -
-
-
注意: 应收结束时间 “-” 表示未到应收时间 或 收费已结束
-
应收金额 为-1 一般为费用项公式设置出错请检查
+ + + + + + + + + + + +
-
- +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
-
diff --git a/public/pages/property/roomCreateFee/roomCreateFee.js b/public/pages/property/roomCreateFee/roomCreateFee.js index 132dc1c9c..ca19fcc57 100644 --- a/public/pages/property/roomCreateFee/roomCreateFee.js +++ b/public/pages/property/roomCreateFee/roomCreateFee.js @@ -2,120 +2,47 @@ 入驻小区 **/ (function (vc) { - var DEFAULT_PAGE = 1; - var DEFAULT_ROW = 10; - var TEMP_SEARCH = 'roomCreateFeeSearch'; vc.extends({ data: { roomCreateFeeInfo: { - total: 0, - records: 1, - floorId: '', - unitId: '', - state: '', - roomNum: '', - floorNum: '', - unitNum: '', - moreCondition: false, - fees: [], roomName: '', roomId: '', - builtUpArea: 0.00, + ownerId: '', ownerName: '', roomType: '', - hireOwnerFee: '0', - urlOwnerId: '', - conditions: { - state: '2008001', + _currentTab: 'simplifyRoomFee', + condition: { roomNum: '', - roomId: '', ownerName: '', - communityId: '' } }, - currentPage: 1, }, _initMethod: function () { vc.emit('roomTreeDiv', 'initRoomTreeDiv', { callName: 'roomCreateFee' }); - $(".popover-show").mouseover(() => { - $('.popover-show').popover('show'); - }) - $(".popover-show").mouseleave(() => { - $('.popover-show').popover('hide'); - }) - $(".popover-show-endTime").mouseover(() => { - $('.popover-show-endTime').popover('show'); - }) - $(".popover-show-endTime").mouseleave(() => { - $('.popover-show-endTime').popover('hide'); - }) - $(".popover-show-deadlineTime").mouseover(() => { - $('.popover-show-deadlineTime').popover('show'); - }) - $(".popover-show-deadlineTime").mouseleave(() => { - $('.popover-show-deadlineTime').popover('hide'); - }) }, _initEvent: function () { vc.on('roomCreateFee', 'selectRoom', function (_param) { $that.roomCreateFeeInfo.ownerName = ''; - if (vc.isBack()) { - return; - } - if (vc.notNull(vc.getParam("sign"))) { - $that.roomCreateFeeInfo.roomId = vc.getParam('payerObjId'); - $that.roomCreateFeeInfo.conditions.roomId = vc.getParam('payerObjId'); - $that.roomCreateFeeInfo.conditions.roomNum = ''; - $that.roomCreateFeeInfo.roomName = vc.getParam('roomName'); - } else { - $that.roomCreateFeeInfo.roomId = _param.roomId; - $that.roomCreateFeeInfo.conditions.roomId = _param.roomId; - $that.roomCreateFeeInfo.conditions.roomNum = ''; - $that.roomCreateFeeInfo.roomName = _param.roomName; - } + $that.roomCreateFeeInfo.ownerId = ''; + $that.roomCreateFeeInfo.roomId = _param.roomId; + $that.roomCreateFeeInfo.roomName = _param.roomName; + + $that.roomCreateFeeInfo.condition.ownerName = ''; + $that.roomCreateFeeInfo.condition.roomNum = ''; $that.listRoomInRoomCreateFee(); - $that._loadListRoomCreateFeeInfo(DEFAULT_PAGE, DEFAULT_ROW); - }); - vc.on('roomCreateFee', 'notifyRoom', function (_room) { - vc.copyObject(_room, $that.roomCreateFeeInfo); - $that.roomCreateFeeInfo.conditions.roomId = _room.roomId; - $that.roomCreateFeeInfo.conditions.roomNum = _room.floorNum + "-" + _room.unitNum + "-" + _room.roomNum; - $that.roomCreateFeeInfo.roomName = $that.roomCreateFeeInfo.conditions.roomNum; - $that._loadListRoomCreateFeeInfo(DEFAULT_PAGE, DEFAULT_ROW); }); vc.on('roomCreateFee', 'notifyRoomByOwner', function (_room) { vc.copyObject(_room, $that.roomCreateFeeInfo); - $that.roomCreateFeeInfo.conditions.roomId = _room.roomId; - $that.roomCreateFeeInfo.conditions.ownerName = _room.ownerName; - $that.roomCreateFeeInfo.conditions.roomNum = _room.floorNum + "-" + _room.unitNum + "-" + _room.roomNum; + $that.roomCreateFeeInfo.roomId = _room.roomId; $that.roomCreateFeeInfo.roomName = _room.floorNum + "-" + _room.unitNum + "-" + _room.roomNum; - $that._loadListRoomCreateFeeInfo(DEFAULT_PAGE, DEFAULT_ROW); + $that.listRoomInRoomCreateFee(); }); - vc.on('pagination', 'page_event', function (_currentPage) { - $that.updateCurrentPage(_currentPage); - $that._loadListRoomCreateFeeInfo(_currentPage, DEFAULT_ROW); - }); - vc.on('roomCreateFee', 'notify', function () { - $that._loadListRoomCreateFeeInfo(DEFAULT_PAGE, DEFAULT_ROW); - }) + }, methods: { - _openRoomCreateFeeAddModal: function (_room, _isMore) { - // vc.emit('roomCreateFeeAdd', 'openRoomCreateFeeAddModal', { - // isMore: _isMore, - // room: _room - // }); - vc.jumpToPage('/#/pages/fee/roomCreatePayFee') - }, - _openOnlyRoomCreateFeeAddModal: function (_room, _isMore) { - vc.emit('roomCreateFeeAdd', 'openRoomCreateFeeAddModal', { - isMore: _isMore, - room: _room - }); - }, - listRoomInRoomCreateFee: function (_page, _row) { + listRoomInRoomCreateFee: function () { let param = { params: { page: 1, @@ -124,219 +51,33 @@ roomId: $that.roomCreateFeeInfo.roomId, } }; - if ($that.roomCreateFeeInfo.conditions.roomNum) { + if ($that.roomCreateFeeInfo.condition.roomNum) { param.params.flag = '1'; - param.params.roomNum = $that.roomCreateFeeInfo.conditions.roomNum; + param.params.roomNum = $that.roomCreateFeeInfo.condition.roomNum; param.params.roomId = ''; + $that.roomCreateFeeInfo.roomName = ""; + $that.roomCreateFeeInfo.ownerName = ""; + $that.roomCreateFeeInfo.ownerId = ""; + $that.roomCreateFeeInfo.roomId = ""; + } //发送get请求 vc.http.apiGet('/room.queryRooms', param, function (json, res) { - var listRoomData = JSON.parse(json); - vc.copyObject(listRoomData.rooms[0], $that.roomCreateFeeInfo); - }, - function (errInfo, error) { - console.log('请求失败处理'); - } - ); - }, - _toOwnerPayFee: function (_room) { - let roomName = _room.floorNum + "栋" + _room.unitNum + "单元" + _room.roomNum + "室" - vc.jumpToPage('/#/pages/property/owePayFeeOrder?payObjId=' + _room.roomId + "&payObjType=3333&roomName=" + roomName); - }, - _printOwnOrder: function (_room) { - //打印催交单 - let roomName = _room.floorNum + "-" + _room.unitNum + "-" + _room.roomNum - window.open('/print.html#/pages/property/printOweFee?payObjId=' + _room.roomId + "&payObjType=3333&payObjName=" + roomName) - }, - _openTranslateFeeManualCollectionDetailModel: function (_room) { - let _data = { - roomId: _room.roomId, - communityId: vc.getCurrentCommunity().communityId - } - //重新同步房屋欠费 - vc.http.apiPost( - '/feeManualCollection/saveFeeManualCollection', - JSON.stringify(_data), { - emulateJSON: true - }, - function (json, res) { - //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); let _json = JSON.parse(json); - if (_json.code == 0) { - //关闭model - vc.toast("添加成功"); - vc.jumpToPage('/#/pages/property/feeManualCollectionManage'); - return; - } else { - vc.toast(_json.msg); - } + vc.copyObject(_json.rooms[0], $that.roomCreateFeeInfo); + $that.changeTab('simplifyRoomFee'); + }, function (errInfo, error) { console.log('请求失败处理'); - vc.message(errInfo); - }); - }, - /** - * 更新当前页码 - */ - updateCurrentPage: function (page) { - $that.currentPage = page; - }, - /** - * 保存搜索条件、页码 - */ - saveTempSearchData: function () { - let conditions = $that.roomCreateFeeInfo.conditions; - //缓存起来= - vc.saveData(TEMP_SEARCH, { - conditions: conditions, - currentPage: $that.currentPage - }); - }, - _downloadCollectionLetterOrder: function () { - vc.jumpToPage('/#/pages/fee/addOweFeeCallable?callableWay=EXCEL'); - //vc.emit('downloadCollectionLetterOrder', 'openExportExcel',{}) - }, - _downloadRoomCollectionLetterOrder: function (_room) { - //vc.jumpToPage('/callComponent/feeManualCollection/downloadCollectionLetterOrder?communityId=' + vc.getCurrentCommunity().communityId + "&roomId=" + _room.roomId); - vc.emit('downloadCollectionLetterOrder', 'openExportExcel', { - roomId: _room.roomId - }) - }, - _toPrintReminderFee: function (_room) { - }, - _openFeeImportExcel: function () { - vc.emit('exportFeeImportExcel', 'openExportFeeImportExcelModal', {}) - }, - _openDoCreateRoomFee: function () { - vc.emit('doImportCreateFee', 'openDoImportCreateFeeModal', {}) - }, - getOnePrice1: function (fee) { - let _price = fee.mwPrice; - if (!_price) { - return fee.squarePrice; - } - if (parseFloat(_price) > 0) { - return _price; - } - return fee.squarePrice; - }, - _loadListRoomCreateFeeInfo: function (_page, _row) { - let param = { - params: { - page: _page, - row: _row, - communityId: vc.getCurrentCommunity().communityId, - payerObjId: $that.roomCreateFeeInfo.conditions.roomId, - state: $that.roomCreateFeeInfo.conditions.state, - ownerName: $that.roomCreateFeeInfo.conditions.ownerName, - roomNum: $that.roomCreateFeeInfo.conditions.roomNum - } - }; - //发送get请求 - vc.http.apiGet('/fee.listFee', - param, - function (json) { - let _feeConfigInfo = JSON.parse(json); - if (_feeConfigInfo.code == 404) { - vc.toast(_feeConfigInfo.msg); - $that.roomCreateFeeInfo.fees = []; - } else { - $that.roomCreateFeeInfo.total = _feeConfigInfo.total; - $that.roomCreateFeeInfo.records = _feeConfigInfo.records; - $that.roomCreateFeeInfo.fees = _feeConfigInfo.fees; - if (_feeConfigInfo.fees != null && _feeConfigInfo.fees.length > 0) { - $that.roomCreateFeeInfo.roomId = _feeConfigInfo.fees[0].payerObjId; - $that.roomCreateFeeInfo.conditions.roomId = _feeConfigInfo.fees[0].payerObjId; - } - vc.emit('pagination', 'init', { - total: _feeConfigInfo.records, - dataCount: _feeConfigInfo.total, - currentPage: _page - }); - } - }, - function () { - console.log('请求失败处理'); } ); }, - _payFee: function (_fee) { - _fee.roomName = $that.roomCreateFeeInfo.roomName; - _fee.builtUpArea = $that.roomCreateFeeInfo.builtUpArea; - vc.jumpToPage('/#/pages/property/payFeeOrder?feeId=' + _fee.feeId); - }, - _editFee: function (_fee) { - // 计费结束时间 - _fee.maxEndTime = $that._getAttrValue(_fee.feeAttrs, '390010'); - vc.emit('editFee', 'openEditFeeModal', _fee); - }, - _payFeeHis: function (_fee) { - _fee.builtUpArea = $that.roomCreateFeeInfo.builtUpArea; - vc.jumpToPage('/#/pages/property/propertyFee?' + vc.objToGetParam(_fee)); - }, - _deleteFee: function (_fee) { - vc.emit('deleteFee', 'openDeleteFeeModal', { - communityId: vc.getCurrentCommunity().communityId, - feeId: _fee.feeId - }); - }, - _refreshListRoomCreateFeeInfo: function () { - $that.roomCreateFeeInfo._currentFeeConfigName = ""; - }, - _goBack: function () { - vc.goBack(); - }, - _toOwnerPayFee: function () { - vc.jumpToPage('/#/pages/property/owePayFeeOrder?payObjId=' + $that.roomCreateFeeInfo.roomId + "&payObjType=3333&roomName=" + $that.roomCreateFeeInfo.roomName); - }, - _openRoomCreateFeeComboModal: function () { - vc.jumpToPage('/#/pages/property/createFeeByCombo?payerObjId=' + - $that.roomCreateFeeInfo.roomId + - "&payerObjName=" + $that.roomCreateFeeInfo.roomName + - "&payerObjType=3333") - }, - _openAddMeterWaterModal: function () { - vc.emit('addMeterWater', 'openAddMeterWaterModal', { - roomId: $that.roomCreateFeeInfo.roomId, - roomName: $that.roomCreateFeeInfo.roomName, - ownerName: $that.roomCreateFeeInfo.ownerName - }); - }, - _getAttrValue: function (_attrs, _specCd) { - let _value = ""; - _attrs.forEach(item => { - if (item.specCd == _specCd) { - _value = item.value; - return; - } - }); - return _value; - }, - _getDeadlineTime: function (_fee) { - if (_fee.amountOwed == 0 && _fee.endTime == _fee.deadlineTime) { - return "-"; - } - if (_fee.state == '2009001') { - return "-"; - } - return vc.dateFormat(_fee.deadlineTime); - }, - _getEndTime: function (_fee) { - if (_fee.state == '2009001') { - return "-"; - } - return vc.dateFormat(_fee.endTime); - }, - _openProxyFeeModal: function () { //创建代收费用 - vc.emit('addProxyFee', 'openAddProxyFeeModal', { - roomId: $that.roomCreateFeeInfo.roomId, - roomName: $that.roomCreateFeeInfo.roomName, - ownerName: $that.roomCreateFeeInfo.ownerName - }); - }, + + + _inputRoomByOwner: function () { if ($that.roomCreateFeeInfo.timer) { clearTimeout($that.roomCreateFeeInfo.timer) @@ -344,101 +85,33 @@ $that.roomCreateFeeInfo.timer = setTimeout(() => { vc.emit('inputSearchRoomByOwner', 'searchRoom', { callComponent: 'roomCreateFee', - ownerName: $that.roomCreateFeeInfo.conditions.ownerName + ownerName: $that.roomCreateFeeInfo.condition.ownerName }); }, 1500) }, //查询 - _queryRoomCreateFeeMethod: function () { - // 关闭查询组件 - if ($that.roomCreateFeeInfo.conditions.roomNum) { - $that.roomCreateFeeInfo.roomName = $that.roomCreateFeeInfo.conditions.roomNum; - } - vc.emit('inputSearchRoomInfo', 'close', {}); - vc.emit('inputSearchRoomByOwner', 'close', {}); - $that.listRoomInRoomCreateFee(); - $that._loadListRoomCreateFeeInfo(DEFAULT_PAGE, DEFAULT_ROW); - }, + //重置 _resetRoomCreateFeeMethod: function () { - if (vc.component.roomCreateFeeInfo.roomNum && vc.component.roomCreateFeeInfo.unitNum && vc.component.roomCreateFeeInfo.floorNum) { - vc.component.roomCreateFeeInfo.roomName = vc.component.roomCreateFeeInfo.floorNum + "-" + vc.component.roomCreateFeeInfo.unitNum + - "-" + vc.component.roomCreateFeeInfo.roomNum; - vc.component.roomCreateFeeInfo.conditions.roomNum = vc.component.roomCreateFeeInfo.roomName; - vc.component.roomNumChange(); - } + // 关闭查询组件 vc.emit('inputSearchRoomInfo', 'close', {}); vc.emit('inputSearchRoomByOwner', 'close', {}); - $that.roomCreateFeeInfo.conditions.roomNum = ""; - $that.roomCreateFeeInfo.conditions.state = ""; - $that.roomCreateFeeInfo.conditions.ownerName = ""; - // $that.roomCreateFeeInfo.roomName = ""; - // $that.roomCreateFeeInfo.conditions.roomId = ""; - $that.roomCreateFeeInfo.fees = []; - $that._loadListRoomCreateFeeInfo(DEFAULT_PAGE, DEFAULT_ROW); + $that.roomCreateFeeInfo.roomNum = ""; + $that.roomCreateFeeInfo.ownerName = ""; + $that.roomCreateFeeInfo.ownerId = ""; + $that.roomCreateFeeInfo.condition.ownerName = ''; + $that.roomCreateFeeInfo.condition.roomNum = ''; + $that.changeTab('simplifyRoomFee'); }, - _viewRoomFeeConfig: function (_fee) { - let param = { - params: { - page: 1, - row: 1, - communityId: vc.getCurrentCommunity().communityId, - configId: _fee.configId - } - }; - //发送get请求 - vc.http.apiGet('/feeConfig.listFeeConfigs', param, - function (json, res) { - let _feeConfigManageInfo = JSON.parse(json); - let _feeConfig = _feeConfigManageInfo.feeConfigs[0]; - vc.emit('viewData', 'openViewDataModal', { - title: _fee.feeName + " 费用项", - data: { - "费用项ID": _feeConfig.configId, - "费用类型": _feeConfig.feeTypeCdName, - "收费项目": _feeConfig.feeName, - "费用标识": _feeConfig.feeFlagName, - "催缴类型": _feeConfig.billTypeName, - "付费类型": _feeConfig.paymentCd == '1200' ? '预付费' : '后付费', - "缴费周期": _feeConfig.paymentCycle, - "应收开始时间": _feeConfig.startTime, - "应收结束时间": _feeConfig.endTime, - "公式": _feeConfig.computingFormulaName, - "计费单价": _feeConfig.computingFormula == '2002' ? '-' : _feeConfig.squarePrice, - "附加/固定费用": _feeConfig.additionalAmount, - } - }) - }, - function (errInfo, error) { - console.log('请求失败处理'); - } - ); - }, - _viewRoomFee: function (_fee) { - let _data = { - "费用ID": _fee.feeId, - "费用标识": _fee.feeFlagName, - "费用类型": _fee.feeTypeCdName, - "付费对象": _fee.payerObjName, - "费用项": _fee.feeName, - "费用状态": _fee.stateName, - "建账时间": _fee.startTime, - "应收开始时间": $that._getEndTime(_fee), - "应收结束时间": $that._getDeadlineTime(_fee), - "批次": _fee.batchId, - }; - _fee.feeAttrs.forEach(attr => { - _data[attr.specCdName] = attr.value; - }) - vc.emit('viewData', 'openViewDataModal', { - title: _fee.feeName + " 详情", - data: _data - }); - }, - _viewRoomData: function () { - vc.emit('viewRoomData', 'showData', { - roomId: $that.roomCreateFeeInfo.roomId + + changeTab: function (_tab) { + $that.roomCreateFeeInfo._currentTab = _tab; + vc.emit(_tab, 'switch', { + ownerId: $that.roomCreateFeeInfo.ownerId, + ownerName: $that.roomCreateFeeInfo.ownerName, + roomId: $that.roomCreateFeeInfo.roomId, + roomName: $that.roomCreateFeeInfo.roomName, }) }, _roomCreateFeetoSimplifyAcceptance: function () { @@ -451,43 +124,35 @@ }) vc.jumpToPage('/#/pages/property/simplifyAcceptance?tab=业务受理'); }, - roomNumChange: function () { - let param = { - params: { - page: 1, - row: 10, - flag: 1, - roomNum: vc.component.roomCreateFeeInfo.conditions.roomNum, - communityId: vc.getCurrentCommunity().communityId - } - } - vc.http.apiGet('/room.queryRooms', - param, - function (json, res) { - let listRoomData = JSON.parse(json); - if (listRoomData.rooms.length <= 0) { - $that.roomCreateFeeInfo.roomId = ""; - $that.roomCreateFeeInfo.conditions.roomId = ""; - } - $that.roomCreateFeeInfo.roomId = listRoomData.rooms[0].roomId; - $that.roomCreateFeeInfo.conditions.roomId = listRoomData.rooms[0].roomId; - $that.roomCreateFeeInfo.roomName = listRoomData.rooms[0].roomName - /*if ($that.roomCreateFeeInfo.conditions.roomNum) { - $that.roomCreateFeeInfo.roomName = $that.roomCreateFeeInfo.conditions.roomNum; - }*/ - vc.component._loadListRoomCreateFeeInfo(DEFAULT_PAGE, DEFAULT_ROW); - }, - function (errInfo, error) { - console.log('请求失败处理'); - } - ); + _toBatchCreateFee: function (_room, _isMore) { + vc.jumpToPage('/#/pages/fee/roomCreatePayFee') + }, + _downloadCollectionLetterOrder: function () { + vc.jumpToPage('/#/pages/fee/addOweFeeCallable?callableWay=EXCEL'); + }, + _downloadRoomCollectionLetterOrder: function (_room) { + vc.emit('downloadCollectionLetterOrder', 'openExportExcel', { + roomId: _room.roomId + }) + }, + _openFeeImportExcel: function () { + vc.emit('exportFeeImportExcel', 'openExportFeeImportExcelModal', {}) + }, + _openDoCreateRoomFee: function () { + vc.emit('doImportCreateFee', 'openDoImportCreateFeeModal', {}) + }, + _openRoomCreateFeeComboModal: function () { + vc.jumpToPage('/#/pages/property/createFeeByCombo?payerObjId=' + + $that.roomCreateFeeInfo.roomId + + "&payerObjName=" + $that.roomCreateFeeInfo.roomName + + "&payerObjType=3333") }, _exportRoomCreateFee: function () { - vc.component.roomCreateFeeInfo.conditions.communityId = vc.getCurrentCommunity().communityId; - //vc.component.roomCreateFeeInfo.conditions.payerObjId= vc.component.roomCreateFeeInfo.conditions.roomId; - vc.component.roomCreateFeeInfo.conditions.pagePath = 'roomCreateFee'; + $that.roomCreateFeeInfo.conditions.communityId = vc.getCurrentCommunity().communityId; + // $that.roomCreateFeeInfo.conditions.payerObjId= $that.roomCreateFeeInfo.conditions.roomId; + $that.roomCreateFeeInfo.conditions.pagePath = 'roomCreateFee'; let param = { - params: vc.component.roomCreateFeeInfo.conditions + params: $that.roomCreateFeeInfo.conditions }; //发送get请求 vc.http.apiGet('/export.exportData', param, @@ -502,8 +167,8 @@ console.log('请求失败处理'); }); }, - _splitPayFee:function(_fee){ - vc.emit('splitFee', 'openSplitFeeModal',_fee); + _splitPayFee: function (_fee) { + vc.emit('splitFee', 'openSplitFeeModal', _fee); } } });