From 3ef03a5d1793c3f356c1db70d4cebfbf13d729c7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 10 Apr 2023 08:53:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E5=BC=80=E5=8F=91=E8=B4=B9?= =?UTF-8?q?=E7=94=A8=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/pages/fee/feeDetail/feeDetail.html | 189 ++++++++++++++++++++++ public/pages/fee/feeDetail/feeDetail.js | 87 ++++++++++ 2 files changed, 276 insertions(+) create mode 100644 public/pages/fee/feeDetail/feeDetail.html create mode 100644 public/pages/fee/feeDetail/feeDetail.js 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