From c02e03db7a2aa6ee79466b90d1a8211930bddcd3 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Mon, 18 Sep 2023 16:41:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8D=E6=87=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../simplifyHisFee/simplifyHisFee.html | 74 ++++++++-- .../property/simplifyHisFee/simplifyHisFee.js | 62 +++++++-- public/components/property/xxx/xxx.html | 0 public/components/property/xxx/xxx.js | 0 .../parkingAreaManage/parkingAreaManage.html | 126 +++++++++--------- 5 files changed, 168 insertions(+), 94 deletions(-) create mode 100644 public/components/property/xxx/xxx.html create mode 100644 public/components/property/xxx/xxx.js diff --git a/public/components/property/simplifyHisFee/simplifyHisFee.html b/public/components/property/simplifyHisFee/simplifyHisFee.html index cf0305559..34f77acc6 100644 --- a/public/components/property/simplifyHisFee/simplifyHisFee.html +++ b/public/components/property/simplifyHisFee/simplifyHisFee.html @@ -9,23 +9,20 @@ - - - - + + - - - + + + + - - - + @@ -34,9 +31,7 @@ - - - + @@ -54,6 +49,17 @@ {{feeDetail.payerObjName}} + + {{feeDetail.receiptCode}} + + +
+ 手工生成 +
+
+ - +
+ {{feeDetail.cycles}} @@ -110,6 +116,46 @@ - + + \ No newline at end of file diff --git a/public/components/property/simplifyHisFee/simplifyHisFee.js b/public/components/property/simplifyHisFee/simplifyHisFee.js index 8269bc105..0a7a3e1ad 100644 --- a/public/components/property/simplifyHisFee/simplifyHisFee.js +++ b/public/components/property/simplifyHisFee/simplifyHisFee.js @@ -1,7 +1,7 @@ /** 入驻小区 **/ -(function (vc) { +(function(vc) { var DEFAULT_PAGE = 1; var DEFAULT_ROWS = 10; vc.extends({ @@ -10,14 +10,16 @@ total: 0, records: 1, feeDetails: [], - ownerId: '' + ownerId: '', + feeDetail: {}, + receiptType: 'Y', + receiptCode: '' } }, - _initMethod: function () { - }, - _initEvent: function () { + _initMethod: function() {}, + _initEvent: function() { //切换 至费用页面 - vc.on('simplifyHisFee', 'switch', function (_param) { + vc.on('simplifyHisFee', 'switch', function(_param) { $that.clearSimplifyHisFeeInfo(); if (_param.ownerId == '') { return; @@ -26,16 +28,16 @@ $that._listSimplifyFeeDetails(DEFAULT_PAGE, DEFAULT_ROWS); }); - vc.on('simplifyHisFee', 'notify', function () { + vc.on('simplifyHisFee', 'notify', function() { $that._listSimplifyFeeDetails(DEFAULT_PAGE, DEFAULT_ROWS); }); vc.on('simplifyHisFee', 'paginationPlus', 'page_event', - function (_currentPage) { + function(_currentPage) { vc.component._listSimplifyFeeDetails(_currentPage, DEFAULT_ROWS); }); }, methods: { - _listSimplifyFeeDetails: function (_page, _row) { + _listSimplifyFeeDetails: function(_page, _row) { let param = { params: { page: _page, @@ -48,7 +50,7 @@ //发送get请求 vc.http.apiGet('/fee.queryFeeDetail', param, - function (json) { + function(json) { let _feeConfigInfo = JSON.parse(json); vc.component.simplifyHisFeeInfo.total = _feeConfigInfo.total; vc.component.simplifyHisFeeInfo.records = _feeConfigInfo.records; @@ -59,22 +61,54 @@ currentPage: _page }); }, - function () { + function() { console.log('请求失败处理'); } ); }, - clearSimplifyHisFeeInfo: function () { + clearSimplifyHisFeeInfo: function() { $that.simplifyHisFeeInfo = { total: 0, records: 1, feeDetails: [], - ownerId: '' + ownerId: '', + feeDetail: {}, + receiptType: 'Y', + receiptCode: '' } }, - _toRefundFee: function (_detail) { + _toRefundFee: function(_detail) { vc.jumpToPage('/#/pages/property/propertyFee?feeId=' + _detail.feeId); + }, + _openGeneratorReceiptCode: function(_detail) { + $that.simplifyHisFeeInfo.feeDetail = _detail; + $('#generatorReceiptModel').modal('show'); + }, + _generatorReceiptCode: function() { + let _data = { + detailId: $that.simplifyHisFeeInfo.feeDetail.detailId, + communityId: vc.getCurrentCommunity().communityId, + receiptCode: $that.simplifyHisFeeInfo.receiptCode + }; + vc.http.apiPost('/receipt.generatorReceipt', + JSON.stringify(_data), { + emulateJSON: true + }, + function(json, res) { + let _json = JSON.parse(json); + vc.toast(_json.msg); + if (_json.code != '0') { + return; + } + $that._listSimplifyFeeDetails(DEFAULT_PAGE, DEFAULT_ROWS); + $('#generatorReceiptModel').modal('hide'); + + }, + function(errInfo, error) { + console.log('请求失败处理'); + vc.toast(errInfo); + }); } } }); diff --git a/public/components/property/xxx/xxx.html b/public/components/property/xxx/xxx.html new file mode 100644 index 000000000..e69de29bb diff --git a/public/components/property/xxx/xxx.js b/public/components/property/xxx/xxx.js new file mode 100644 index 000000000..e69de29bb diff --git a/public/pages/property/parkingAreaManage/parkingAreaManage.html b/public/pages/property/parkingAreaManage/parkingAreaManage.html index 04e37def2..6c4d317ed 100644 --- a/public/pages/property/parkingAreaManage/parkingAreaManage.html +++ b/public/pages/property/parkingAreaManage/parkingAreaManage.html @@ -12,14 +12,12 @@
- +
- +
@@ -52,8 +50,7 @@
- @@ -62,80 +59,77 @@
- - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + - + + + - - - + + +
- - - - - - - {{item.specName}} - - - - - - -
+ + + + + + + {{item.specName}} + + + + + + +
{{parkingArea.paId}}{{parkingArea.num}} - {{vc.i18n('地上停车场','parkingAreaManage')}} - - {{vc.i18n('地下停车场','parkingAreaManage')}} - - {{item}} - - {{parkingArea.remark}} - {{parkingArea.createTime}} -
-
{{parkingArea.paId}}{{parkingArea.num}} + {{vc.i18n('地上停车场','parkingAreaManage')}} + + {{vc.i18n('地下停车场','parkingAreaManage')}} + + {{item}} + + {{parkingArea.remark}} + {{parkingArea.createTime}} +
+ -
-
-
+
+ -
- -
- -
-
-
    -
    +
      +