From 06f5cec17277fe57653af04b3529bbd7b9e6aac2 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: Sat, 24 Jul 2021 13:33:51 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../feeCollectionDetailManage.html | 101 ++++++++++++++++++
.../feeCollectionDetailManage.js | 78 ++++++++++++++
.../feeCollectionOrderManage.html | 10 +-
.../feeCollectionOrderManage.js | 30 +++++-
4 files changed, 213 insertions(+), 6 deletions(-)
create mode 100644 public/pages/property/feeCollectionDetailManage/feeCollectionDetailManage.html
create mode 100644 public/pages/property/feeCollectionDetailManage/feeCollectionDetailManage.js
diff --git a/public/pages/property/feeCollectionDetailManage/feeCollectionDetailManage.html b/public/pages/property/feeCollectionDetailManage/feeCollectionDetailManage.html
new file mode 100644
index 000000000..a25217f9f
--- /dev/null
+++ b/public/pages/property/feeCollectionDetailManage/feeCollectionDetailManage.html
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/pages/property/feeCollectionDetailManage/feeCollectionDetailManage.js b/public/pages/property/feeCollectionDetailManage/feeCollectionDetailManage.js
new file mode 100644
index 000000000..b5db6a96a
--- /dev/null
+++ b/public/pages/property/feeCollectionDetailManage/feeCollectionDetailManage.js
@@ -0,0 +1,78 @@
+/**
+ 入驻小区
+**/
+(function (vc) {
+ var DEFAULT_PAGE = 1;
+ var DEFAULT_ROWS = 10;
+ vc.extends({
+ data: {
+ feeCollectionDetailManageInfo: {
+ feeCollectionDetails: [],
+ total: 0,
+ records: 1,
+ moreCondition: false,
+ orderId: '',
+ conditions: {
+ ownerName: '',
+ payerObjName: '',
+ collectionWay: '',
+ orderId:'',
+ communityId: vc.getCurrentCommunity().communityId
+ }
+ }
+ },
+ _initMethod: function () {
+ $that.feeCollectionDetailManageInfo.conditions.orderId = vc.getParam('orderId');
+ vc.component._listFeeCollectionOrders(DEFAULT_PAGE, DEFAULT_ROWS);
+ },
+ _initEvent: function () {
+
+ vc.on('feeCollectionDetailManage', 'listFeeCollectionOrder', function (_param) {
+ vc.component._listFeeCollectionOrders(DEFAULT_PAGE, DEFAULT_ROWS);
+ });
+ vc.on('pagination', 'page_event', function (_currentPage) {
+ vc.component._listFeeCollectionOrders(_currentPage, DEFAULT_ROWS);
+ });
+ },
+ methods: {
+ _listFeeCollectionOrders: function (_page, _rows) {
+
+ vc.component.feeCollectionDetailManageInfo.conditions.page = _page;
+ vc.component.feeCollectionDetailManageInfo.conditions.row = _rows;
+ var param = {
+ params: vc.component.feeCollectionDetailManageInfo.conditions
+ };
+
+ //发送get请求
+ vc.http.apiGet('/feeCollectionDetail/queryFeeCollectionDetail',
+ param,
+ function (json, res) {
+ var _feeCollectionDetailManageInfo = JSON.parse(json);
+ vc.component.feeCollectionDetailManageInfo.total = _feeCollectionDetailManageInfo.total;
+ vc.component.feeCollectionDetailManageInfo.records = _feeCollectionDetailManageInfo.records;
+ vc.component.feeCollectionDetailManageInfo.feeCollectionDetails = _feeCollectionDetailManageInfo.data;
+ vc.emit('pagination', 'init', {
+ total: vc.component.feeCollectionDetailManageInfo.records,
+ currentPage: _page
+ });
+ }, function (errInfo, error) {
+ console.log('请求失败处理');
+ }
+ );
+ },
+ _queryFeeCollectionOrderMethod: function () {
+ vc.component._listFeeCollectionOrders(DEFAULT_PAGE, DEFAULT_ROWS);
+
+ },
+ _moreCondition: function () {
+ if (vc.component.feeCollectionDetailManageInfo.moreCondition) {
+ vc.component.feeCollectionDetailManageInfo.moreCondition = false;
+ } else {
+ vc.component.feeCollectionDetailManageInfo.moreCondition = true;
+ }
+ }
+
+
+ }
+ });
+})(window.vc);
diff --git a/public/pages/property/feeCollectionOrderManage/feeCollectionOrderManage.html b/public/pages/property/feeCollectionOrderManage/feeCollectionOrderManage.html
index 2579a1001..1d0cafa79 100644
--- a/public/pages/property/feeCollectionOrderManage/feeCollectionOrderManage.html
+++ b/public/pages/property/feeCollectionOrderManage/feeCollectionOrderManage.html
@@ -74,6 +74,7 @@
催缴人 |
状态 |
催缴方式 |
+ 创建时间 |
操作 |
@@ -82,13 +83,18 @@
{{feeCollectionOrder.orderId}} |
{{feeCollectionOrder.collectionName}} |
{{feeCollectionOrder.staffName}} |
- {{feeCollectionOrder.stateName}} |
- {{feeCollectionOrder.collectionWay}} |
+ {{_getStateName(feeCollectionOrder.state)}} |
+ {{_getCollectionWayName(feeCollectionOrder.collectionWay)}} |
+ {{feeCollectionOrder.createTime}} |
+
+
+
|
diff --git a/public/pages/property/feeCollectionOrderManage/feeCollectionOrderManage.js b/public/pages/property/feeCollectionOrderManage/feeCollectionOrderManage.js
index e944077ea..4f156e1bd 100644
--- a/public/pages/property/feeCollectionOrderManage/feeCollectionOrderManage.js
+++ b/public/pages/property/feeCollectionOrderManage/feeCollectionOrderManage.js
@@ -16,7 +16,7 @@
collectionName: '',
staffName: '',
collectionWay: '',
- state:'',
+ state: '',
communityId: vc.getCurrentCommunity().communityId
}
}
@@ -62,9 +62,6 @@
_openAddFeeCollectionOrderModal: function () {
vc.emit('addFeeCollectionOrder', 'openAddFeeCollectionOrderModal', {});
},
- _openEditFeeCollectionOrderModel: function (_feeCollectionOrder) {
- vc.emit('editFeeCollectionOrder', 'openEditFeeCollectionOrderModal', _feeCollectionOrder);
- },
_openDeleteFeeCollectionOrderModel: function (_feeCollectionOrder) {
vc.emit('deleteFeeCollectionOrder', 'openDeleteFeeCollectionOrderModal', _feeCollectionOrder);
},
@@ -72,6 +69,31 @@
vc.component._listFeeCollectionOrders(DEFAULT_PAGE, DEFAULT_ROWS);
},
+ _getStateName: function (_state) {
+
+ //状态 W 等待催缴 ,D 催缴中 F 催缴完成
+ if (_state == 'W') {
+ return '待催缴';
+ }else if(_state == 'D'){
+ return '催缴中';
+ }
+
+ return "催缴完成";
+ },
+ _getCollectionWayName: function (_collectionWay) {
+
+ //状态 W 等待催缴 ,D 催缴中 F 催缴完成
+ if (_collectionWay == '001') {
+ return '短信方式';
+ }else if(_collectionWay == '002'){
+ return '短信微信方式';
+ }
+
+ return "微信方式";
+ },
+ _toFeeCollectionDetailModel:function(order){
+ vc.jumpToPage('/admin.html#/pages/property/feeCollectionDetailManage?orderId='+order.orderId)
+ },
_moreCondition: function () {
if (vc.component.feeCollectionOrderManageInfo.moreCondition) {
vc.component.feeCollectionOrderManageInfo.moreCondition = false;