From bc437d8f97b4714e0d8b001e510ec9a1290d8137 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Thu, 12 Oct 2023 12:10:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/fee/invoiceApply/invoiceApply.html | 24 +- .../invoiceApplyDetail.html | 214 ++++++++++++++++++ .../invoiceApplyDetail/invoiceApplyDetail.js | 87 +++++++ 3 files changed, 309 insertions(+), 16 deletions(-) create mode 100644 public/pages/fee/invoiceApplyDetail/invoiceApplyDetail.html create mode 100644 public/pages/fee/invoiceApplyDetail/invoiceApplyDetail.js diff --git a/public/pages/fee/invoiceApply/invoiceApply.html b/public/pages/fee/invoiceApply/invoiceApply.html index 276d44e7b..8762fbec7 100644 --- a/public/pages/fee/invoiceApply/invoiceApply.html +++ b/public/pages/fee/invoiceApply/invoiceApply.html @@ -4,9 +4,7 @@
@@ -29,8 +27,7 @@
- +
@@ -44,25 +41,21 @@
- +
- +
- +
-
diff --git a/public/pages/fee/invoiceApplyDetail/invoiceApplyDetail.html b/public/pages/fee/invoiceApplyDetail/invoiceApplyDetail.html new file mode 100644 index 000000000..5644449d9 --- /dev/null +++ b/public/pages/fee/invoiceApplyDetail/invoiceApplyDetail.html @@ -0,0 +1,214 @@ +
+
+
+
+ 发票详情 +
+
+ +
+
+ +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+
+ +
+ +
+
+ +
+
+ +
+ +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ + +
+ + + +
\ No newline at end of file diff --git a/public/pages/fee/invoiceApplyDetail/invoiceApplyDetail.js b/public/pages/fee/invoiceApplyDetail/invoiceApplyDetail.js new file mode 100644 index 000000000..0ea9f3783 --- /dev/null +++ b/public/pages/fee/invoiceApplyDetail/invoiceApplyDetail.js @@ -0,0 +1,87 @@ +/** +业主详情页面 + **/ +(function(vc) { + var _fileUrl = '/callComponent/download/getFile/fileByObjId'; + vc.extends({ + data: { + invoiceApplyDetailInfo: { + memberId: '', + carId: '', + carNum: '', + carTypeCd: '', + carTypeCdName: '', + carType: '', + carTypeName: '', + startTime: '', + endTime: '', + leaseType: '', + leaseTypeName: '', + areaNum: '', + num: '', + remark: '', + stateName: '', + carColor: '', + carBrand: '', + ownerId: '', + roomName: '', + carNumType: '', + paId: '', + _currentTab: 'invoiceApplyDetailFee', + needBack: false, + } + }, + _initMethod: function() { + $that.invoiceApplyDetailInfo.memberId = vc.getParam('memberId'); + if (!vc.notNull($that.invoiceApplyDetailInfo.memberId)) { + return; + } + vc.component._loadinvoiceApplyDetailInfo(); + + }, + _initEvent: function() { + vc.on('invoiceApplyDetail', 'listCarData', function(_info) { + //vc.component._loadinvoiceApplyDetailInfo(); + $that.changeTab($that.invoiceApplyDetailInfo._currentTab); + }); + }, + methods: { + _loadinvoiceApplyDetailInfo: function() { + let param = { + params: { + page: 1, + row: 1, + memberId: $that.invoiceApplyDetailInfo.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.invoiceApplyDetailInfo); + $that.changeTab($that.invoiceApplyDetailInfo._currentTab); + }, + function() { + console.log('请求失败处理'); + } + ); + }, + changeTab: function(_tab) { + $that.invoiceApplyDetailInfo._currentTab = _tab; + vc.emit(_tab, 'switch', { + memberId: $that.invoiceApplyDetailInfo.memberId, + carId: $that.invoiceApplyDetailInfo.carId, + ownerId: $that.invoiceApplyDetailInfo.ownerId, + carNum: $that.invoiceApplyDetailInfo.carNum, + paId: $that.invoiceApplyDetailInfo.paId + }) + }, + _openEditDetailOwnerCar: function() { + vc.emit('editCar', 'openEditCar', $that.invoiceApplyDetailInfo); + }, + } + }); +})(window.vc); \ No newline at end of file