张延森 4 年 前
コミット
fee8c23522

+ 1
- 0
src/pages/customer/personlist/index.jsx ファイルの表示

@@ -122,6 +122,7 @@ export default props => {
122 122
 
123 123
           return sex == 1 ? '男' : '女'
124 124
         }} />
125
+        <Table.Column title="生日" dataIndex="birthday" key="birthday" />
125 126
         <Table.Column title="推荐人" dataIndex="sharePersonName" key="sharePersonName" />
126 127
         {/* <Table.Column title="总积分" dataIndex="points" key="points" /> */}
127 128
         <Table.Column title="创建时间" dataIndex="createDate" key="createDate" render={t => moment(t).format('YYYY-MM-DD HH:mm')} />

+ 1
- 0
src/pages/mpSetting/components/TemplateItem.jsx ファイルの表示

@@ -10,6 +10,7 @@ export default props => {
10 10
     {typeCode: 'birthday', typeName: '生日'},
11 11
     {typeCode: 'festival', typeName: '节日'},
12 12
     {typeCode: 'ticket', typeName: '工单'},
13
+    {typeCode: 'property-fee', typeName: '物业费'},
13 14
   ])
14 15
 
15 16
   const handleChange = e => {

+ 5
- 3
src/pages/property/bill/list/index.jsx ファイルの表示

@@ -1,5 +1,5 @@
1 1
 import React, { useRef, useState, useEffect } from 'react'
2
-import { Spin, Form, Input, Divider, Button, Row, Col, Popconfirm, DatePicker, Select } from 'antd'
2
+import { Spin, Form, Input, Divider, Button, Row, Col, Popconfirm, DatePicker, Select, notification } from 'antd'
3 3
 import router from 'umi/router'
4 4
 import NavLink from 'umi/navlink'
5 5
 import moment from 'moment'
@@ -210,9 +210,11 @@ export default props => {
210 210
   }
211 211
 
212 212
   const collectionBill = row => {
213
+    setLoading(true)
213 214
     collectionBillList({ data: {billId: row.id}}).then(res => {
214
-      notification.success({ message: '催缴成功' })
215
-    })
215
+      notification.success({ message: '催缴任务启动成功' })
216
+      setLoading(false)
217
+    }).catch(e => console.error(e) || setLoading(false))
216 218
   }
217 219
 
218 220
   const handleDeleteRow = row => {

+ 7
- 6
src/pages/property/proprietor/ListWithPoints.jsx ファイルの表示

@@ -10,6 +10,7 @@ import useRoomSelect from '../utils/hooks/useRoomSelect'
10 10
 import NumRange from './components/NumRange'
11 11
 
12 12
 const getListWithPoints = fetchList(apis.propUser.listWithPoints)
13
+const exportListWithPoints = fetch(apis.propUser.listWithPointsExport)
13 14
 
14 15
 const Condition = props => {
15 16
   const [communityId, setCommunityId] = useState()
@@ -182,11 +183,11 @@ export default props => {
182 183
   }
183 184
 
184 185
   const handleExport = () => {
185
-    // setLoading(true)
186
-    // buildingInfoListExport({ data: {...queryParams, communityId, pageNum: 1, pageSize: 9999} }).then(res => {
187
-    //   setLoading(false)
188
-    //   exportExcel(res, "业主列表")
189
-    // }).catch(() => setLoading(false))
186
+    setLoading(true)
187
+    exportListWithPoints({params: {...queryParams, communityId}}).then(res => {
188
+      setLoading(false)
189
+      exportExcel(res, "业主积分")
190
+    }).catch(() => setLoading(false))
190 191
   }
191 192
 
192 193
   useEffect(() => {
@@ -206,7 +207,7 @@ export default props => {
206 207
       <Condition onSearch={handleSearch} onReset={handleSearch} onCommunityChange={v => setCommunityId(v)} />
207 208
       <div style={{ margin: '24px 0' }}>
208 209
         <div style={{display: 'inline-block'}}>
209
-          {/* <Button onClick={handleExport}>导出</Button> */}
210
+          <Button onClick={handleExport}>导出</Button>
210 211
         </div>
211 212
       </div>
212 213
       <List

+ 6
- 0
src/services/prop_user_api.js ファイルの表示

@@ -47,6 +47,12 @@ export default prefix => {
47 47
       url: `${prefix}/${moduleName}/points`,
48 48
       method: 'get',
49 49
       action: `admin.${moduleName}.points`
50
+    },
51
+
52
+    listWithPointsExport: {
53
+      url: `${prefix}/${moduleName}/points/export`,
54
+      method: 'get',
55
+      action: `admin.${moduleName}.points-export`
50 56
     }
51 57
   }
52 58
 }