张延森 vor 4 Jahren
Ursprung
Commit
fee8c23522

+ 1
- 0
src/pages/customer/personlist/index.jsx Datei anzeigen

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

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

+ 5
- 3
src/pages/property/bill/list/index.jsx Datei anzeigen

1
 import React, { useRef, useState, useEffect } from 'react'
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
 import router from 'umi/router'
3
 import router from 'umi/router'
4
 import NavLink from 'umi/navlink'
4
 import NavLink from 'umi/navlink'
5
 import moment from 'moment'
5
 import moment from 'moment'
210
   }
210
   }
211
 
211
 
212
   const collectionBill = row => {
212
   const collectionBill = row => {
213
+    setLoading(true)
213
     collectionBillList({ data: {billId: row.id}}).then(res => {
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
   const handleDeleteRow = row => {
220
   const handleDeleteRow = row => {

+ 7
- 6
src/pages/property/proprietor/ListWithPoints.jsx Datei anzeigen

10
 import NumRange from './components/NumRange'
10
 import NumRange from './components/NumRange'
11
 
11
 
12
 const getListWithPoints = fetchList(apis.propUser.listWithPoints)
12
 const getListWithPoints = fetchList(apis.propUser.listWithPoints)
13
+const exportListWithPoints = fetch(apis.propUser.listWithPointsExport)
13
 
14
 
14
 const Condition = props => {
15
 const Condition = props => {
15
   const [communityId, setCommunityId] = useState()
16
   const [communityId, setCommunityId] = useState()
182
   }
183
   }
183
 
184
 
184
   const handleExport = () => {
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
   useEffect(() => {
193
   useEffect(() => {
206
       <Condition onSearch={handleSearch} onReset={handleSearch} onCommunityChange={v => setCommunityId(v)} />
207
       <Condition onSearch={handleSearch} onReset={handleSearch} onCommunityChange={v => setCommunityId(v)} />
207
       <div style={{ margin: '24px 0' }}>
208
       <div style={{ margin: '24px 0' }}>
208
         <div style={{display: 'inline-block'}}>
209
         <div style={{display: 'inline-block'}}>
209
-          {/* <Button onClick={handleExport}>导出</Button> */}
210
+          <Button onClick={handleExport}>导出</Button>
210
         </div>
211
         </div>
211
       </div>
212
       </div>
212
       <List
213
       <List

+ 6
- 0
src/services/prop_user_api.js Datei anzeigen

47
       url: `${prefix}/${moduleName}/points`,
47
       url: `${prefix}/${moduleName}/points`,
48
       method: 'get',
48
       method: 'get',
49
       action: `admin.${moduleName}.points`
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
 }