/** 业主详情页面 **/ (function (vc) { var _fileUrl = '/callComponent/download/getFile/fileByObjId'; vc.extends({ data: { adminCarDetailInfo: { memberId: '', carId:'', carNum:'', carTypeCd:'', carTypeCdName: '', carType: '', carTypeName: '', startTime: '', endTime: '', leaseType:'', leaseTypeName: '', areaNum: '', num:'', remark:'', stateName:'', carColor:'', carBrand:'', ownerId:'', roomName:'', carNumType: '', paId:'', _currentTab: 'aCarDetailFee', needBack:false, } }, _initMethod: function () { $that.adminCarDetailInfo.memberId = vc.getParam('memberId'); if (!vc.notNull($that.adminCarDetailInfo.memberId)) { return; } $that._loadCarDetailInfo(); }, _initEvent: function () { vc.on('adminCarDetail', 'listCarData', function (_info) { //$that._loadCarDetailInfo(); $that.changeTab($that.adminCarDetailInfo._currentTab); }); }, methods: { _loadCarDetailInfo: function () { let param = { params: { page: 1, row: 1, memberId: $that.adminCarDetailInfo.memberId, } }; //发送get请求 vc.http.apiGet('/owner.queryAdminOwnerCars', param, function (json) { let _carInfo = JSON.parse(json); // 员工列表 和 岗位列表匹配 vc.copyObject(_carInfo.data[0], $that.adminCarDetailInfo); $that.changeTab($that.adminCarDetailInfo._currentTab); }, function () { console.log('请求失败处理'); } ); }, changeTab: function (_tab) { $that.adminCarDetailInfo._currentTab = _tab; vc.emit(_tab, 'switch', { memberId: $that.adminCarDetailInfo.memberId, carId:$that.adminCarDetailInfo.carId, ownerId:$that.adminCarDetailInfo.ownerId, carNum:$that.adminCarDetailInfo.carNum, paId:$that.adminCarDetailInfo.paId, areaNum:$that.adminCarDetailInfo.areaNum }) }, _openEditDetailOwnerCar: function () { vc.emit('editCar', 'openEditCar', $that.adminCarDetailInfo); }, } }); })(window.vc);