diff --git a/public/pages/fee/feeDetail/feeDetail.html b/public/pages/fee/feeDetail/feeDetail.html new file mode 100644 index 000000000..2914b53bd --- /dev/null +++ b/public/pages/fee/feeDetail/feeDetail.html @@ -0,0 +1,189 @@ +
+
+
+
+ 费用信息 +
+
+ +
+
+ +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+
+ +
+ +
+
+ +
+ + +
+ +
+ + + +
+ + + +
\ No newline at end of file diff --git a/public/pages/fee/feeDetail/feeDetail.js b/public/pages/fee/feeDetail/feeDetail.js new file mode 100644 index 000000000..dcb873a3c --- /dev/null +++ b/public/pages/fee/feeDetail/feeDetail.js @@ -0,0 +1,87 @@ +/** +业主详情页面 + **/ + (function (vc) { + var _fileUrl = '/callComponent/download/getFile/fileByObjId'; + vc.extends({ + data: { + feeDetailInfo: { + memberId: '', + carId:'', + carNum:'', + carTypeCd:'', + carTypeCdName: '', + carType: '', + carTypeName: '', + startTime: '', + endTime: '', + leaseType:'', + leaseTypeName: '', + areaNum: '', + num:'', + remark:'', + stateName:'', + carColor:'', + carBrand:'', + ownerId:'', + roomName:'', + carNumType: '', + paId:'', + _currentTab: 'feeDetailFee', + needBack:false, + } + }, + _initMethod: function () { + $that.feeDetailInfo.memberId = vc.getParam('memberId'); + if (!vc.notNull($that.feeDetailInfo.memberId)) { + return; + } + vc.component._loadFeeDetailInfo(); + + }, + _initEvent: function () { + vc.on('feeDetail', 'listCarData', function (_info) { + //vc.component._loadFeeDetailInfo(); + $that.changeTab($that.feeDetailInfo._currentTab); + }); + }, + methods: { + _loadFeeDetailInfo: function () { + let param = { + params: { + page: 1, + row: 1, + memberId: $that.feeDetailInfo.memberId, + communityId:vc.getCurrentCommunity().communityId + } + }; + //发送get请求 + vc.http.apiGet('/owner.queryOwnerCars', + param, + function (json) { + let _carInfo = JSON.parse(json); + // 员工列表 和 岗位列表匹配 + vc.copyObject(_carInfo.data[0], $that.feeDetailInfo); + $that.changeTab($that.feeDetailInfo._currentTab); + }, + function () { + console.log('请求失败处理'); + } + ); + }, + changeTab: function (_tab) { + $that.feeDetailInfo._currentTab = _tab; + vc.emit(_tab, 'switch', { + memberId: $that.feeDetailInfo.memberId, + carId:$that.feeDetailInfo.carId, + ownerId:$that.feeDetailInfo.ownerId, + carNum:$that.feeDetailInfo.carNum, + paId:$that.feeDetailInfo.paId + }) + }, + _openEditOwnerCar: function () { + vc.emit('editCar', 'openEditCar', $that.feeDetailInfo); + }, + } + }); +})(window.vc); \ No newline at end of file