소스 검색

Merge branch 'master' of http://git.ycjcjy.com/xiangsong/xs-manage

张延森 4 년 전
부모
커밋
7ef34504d8

+ 24
- 4
src/pages/property/bill/order/index.jsx 파일 보기

@@ -1,10 +1,13 @@
1 1
 import React, { useState, useEffect } from 'react'
2
-import { Select, Spin, Table, Button, Form, Input, Divider, Icon } from 'antd'
2
+import { Select, Spin, Table, Button, Form, Input, Divider, Icon, DatePicker } from 'antd'
3 3
 import NavLink from 'umi/navlink'
4
+import moment from 'moment';
4 5
 import { fetchList, apis, fetch } from '@/utils/request'
5 6
 import Search from '../../components/Search'
6 7
 import List from '../../components/List'
7 8
 
9
+const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
10
+
8 11
 const exportStatementExcel = fetch(apis.bill.exportStatementExcel)
9 12
 const getBillStatementAll = fetch(apis.bill.getBillStatementAll)
10 13
 
@@ -108,6 +111,11 @@ const Condition = props => {
108 111
               )
109 112
             }
110 113
             </Form.Item>
114
+            <Form.Item label="缴费时间">
115
+            {getFieldDecorator('createTime')(
116
+              <RangePicker placeholder={['开始时间', '结束时间']} />
117
+            )}
118
+          </Form.Item>
111 119
           </>
112 120
         )
113 121
       }}
@@ -122,9 +130,18 @@ export default props => {
122 130
   const [queryParams, setQueryParams] = useState({ pageNum: 1, pageSize: 10 })
123 131
 
124 132
   const handleSearch = vals => {
133
+    let { createTime, ...submitValue  } = vals
134
+    if (null != createTime && createTime.length > 0) {
135
+      const [startCreateDate, endCreateDate] = createTime
136
+      submitValue.startCreateDate = moment(startCreateDate).format('YYYY-MM-DD');
137
+      submitValue.endCreateDate = moment(endCreateDate).format('YYYY-MM-DD');
138
+    } else {
139
+      submitValue.startCreateDate = null
140
+      submitValue.endCreateDate = null
141
+    }
125 142
     setQueryParams({
126 143
       ...queryParams,
127
-      ...vals,
144
+      ...submitValue,
128 145
       pageNum: 1,
129 146
     })
130 147
   }
@@ -203,12 +220,15 @@ export default props => {
203 220
           dataIndex="orderStatus"
204 221
           key="orderStatus"
205 222
           render={(_, row) => StatusDict[row.orderStatus]}
223
+          sorter={(a, b) => a.orderStatus - b.orderStatus}
206 224
         />
207 225
         <Table.Column title="缴费人手机号" dataIndex="payPhone" key="payPhone" />
208 226
         <Table.Column title="缴费备注" dataIndex="payRemark" key="payRemark" />
209 227
         <Table.Column title="缴费方式" dataIndex="payType" key="payType" render={payType => PayTypeDict[payType]}/>
210
-        <Table.Column title="订单生成时间" dataIndex="createDate" key="createDate" />
211
-        <Table.Column title="缴费完成时间" dataIndex="createTime" key="createTime" />
228
+        <Table.Column title="订单生成时间" dataIndex="createDate" key="createDate" 
229
+          sorter={(a, b) => new Date(a.createDate).getTime() - new Date(b.createDate).getTime()}/>
230
+        <Table.Column title="缴费完成时间" dataIndex="createTime" key="createTime" 
231
+          sorter={(a, b) => new Date(a.createTime).getTime() - new Date(b.createTime).getTime()}/>
212 232
       </List>
213 233
 
214 234
     </div>

+ 33
- 3
src/pages/property/notice/index.jsx 파일 보기

@@ -1,11 +1,14 @@
1 1
 import React, { useState, useEffect } from 'react'
2
-import { Select, Spin, Table, Button, Form, Input, Divider, Modal,Popconfirm, notification } from 'antd'
2
+import { Select, Spin, Table, Button, Form, Input, Divider, Modal,Popconfirm, notification, DatePicker } from 'antd'
3 3
 import NavLink from 'umi/navlink'
4
+import moment from 'moment';
4 5
 import { fetch, apis } from '@/utils/request'
5 6
 import CommunitySelect from '@/components/CommunitySelect'
6 7
 import Search from '../components/Search'
7 8
 import List from '../components/List'
8 9
 
10
+const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
11
+
9 12
 const listAnnouncement = fetch(apis.announcement.listAnnouncement)
10 13
 const deleteAnnouncement = fetch(apis.announcement.deleteAnnouncement)
11 14
 const updateannouncement = fetch(apis.announcement.updateannouncement)
@@ -53,6 +56,22 @@ const Condition = props => {
53 56
               )
54 57
             }
55 58
             </Form.Item>
59
+            <Form.Item label="状态">
60
+            {
61
+              getFieldDecorator('status')(
62
+                <Select style={{minWidth: '120px'}}>
63
+                  <Select.Option value="">全部</Select.Option>
64
+                  <Select.Option value="0">未发布</Select.Option>
65
+                  <Select.Option value="1">已发布</Select.Option>
66
+                </Select>
67
+              )
68
+            }
69
+            </Form.Item>
70
+            <Form.Item label="创建时间">
71
+            {getFieldDecorator('createTime')(
72
+              <RangePicker placeholder={['开始时间', '结束时间']} />
73
+            )}
74
+          </Form.Item>
56 75
           </>
57 76
         )
58 77
       }}
@@ -74,9 +93,18 @@ export default props => {
74 93
   const [queryParams, setQueryParams] = useState({ pageNum: 1, pageSize: 10 })
75 94
 
76 95
   const handleSearch = vals => {
96
+    let { createTime, ...submitValue  } = vals
97
+    if (null != createTime && createTime.length > 0) {
98
+      const [startCreateDate, endCreateDate] = createTime
99
+      submitValue.startCreateDate = moment(startCreateDate).format('YYYY-MM-DD');
100
+      submitValue.endCreateDate = moment(endCreateDate).format('YYYY-MM-DD');
101
+    } else {
102
+      submitValue.startCreateDate = null
103
+      submitValue.endCreateDate = null
104
+    }
77 105
     setQueryParams({
78 106
       ...queryParams,
79
-      ...vals,
107
+      ...submitValue,
80 108
       pageNum: 1,
81 109
     })
82 110
   }
@@ -147,8 +175,10 @@ export default props => {
147 175
           dataIndex="status"
148 176
           key="status"
149 177
           render={(_, row) => StatusDict[row.status]}
178
+          sorter={(a, b) => a.status - b.status}
150 179
         />
151
-        <Table.Column title="创建时间" dataIndex="createDate" key="createDate" />
180
+        <Table.Column title="创建时间" dataIndex="createDate" key="createDate" 
181
+        sorter={(a, b) => new Date(a.createDate).getTime() - new Date(b.createDate).getTime()}/>
152 182
         {/* <Table.Column title="发布人" dataIndex="createUserName" key="createUserName" />
153 183
         <Table.Column title="修改时间" dataIndex="updateDate" key="updateDate" />
154 184
         <Table.Column title="修改人" dataIndex="updateDateName" key="updateDateName" /> */}

+ 1
- 1
src/pages/property/proprietor/Detail.jsx 파일 보기

@@ -63,7 +63,7 @@ export default props => {
63 63
       <Section title="基本信息">
64 64
         <Descriptions column={3}>
65 65
           <Descriptions.Item label="姓名">{userData.ownerName}</Descriptions.Item>
66
-          <Descriptions.Item label="性别">{userData.gender === '2' ? '女' : '男'}</Descriptions.Item>
66
+          <Descriptions.Item label="性别">{!userData.idCard ? '' : (userData.idCard.substring(-2, 1) - 0) % 2 === 1 ? '男' : '女'}</Descriptions.Item>
67 67
           <Descriptions.Item label="手机号">{userData.phone}</Descriptions.Item>
68 68
           <Descriptions.Item label="微信昵称">{userData.nickname}</Descriptions.Item>
69 69
           <Descriptions.Item label="微信ID">{userData.openid}</Descriptions.Item>

+ 13
- 1
src/pages/property/proprietor/index.jsx 파일 보기

@@ -155,6 +155,17 @@ const Condition = props => {
155 155
               )
156 156
             }
157 157
             </Form.Item>
158
+            <Form.Item>
159
+            {
160
+              getFieldDecorator('verifyStatus')(
161
+                <Select style={{ width: '200px' }} placeholder="审核状态">
162
+                  <Select.Option value={0}>未审核</Select.Option>
163
+                  <Select.Option value={1}>审核通过</Select.Option>
164
+                  <Select.Option value={2}>审核不通过</Select.Option>
165
+                </Select>
166
+              )
167
+            }
168
+            </Form.Item>
158 169
           </>
159 170
         )
160 171
       }}
@@ -310,8 +321,9 @@ export default props => {
310 321
               </span>
311 322
             )
312 323
           }}
324
+          sorter={(a, b) => a.verifyStatus - b.verifyStatus}
313 325
         />
314
-        <Table.Column title="编辑人" dataIndex="updateName" key="updateName" />
326
+        <Table.Column title="审核人" dataIndex="updateName" key="updateName" />
315 327
         <Table.Column title="编辑时间" dataIndex="createDate" key="createDate" />
316 328
         <Table.Column
317 329
           title="操作"

+ 2
- 1
src/pages/property/ticket/index.jsx 파일 보기

@@ -181,8 +181,9 @@ export default props => {
181 181
           }}
182 182
         />
183 183
         <Table.Column title="发起人" dataIndex="createUserNmae" key="createUserNmae" />
184
+        <Table.Column title="业主楼栋信息" dataIndex="address" key="address" />
184 185
         <Table.Column title="发起时间" dataIndex="createDate" key="createDate" />
185
-        <Table.Column title="流转状态" dataIndex="status" key="status" render={x => getDictValue(StatusDict, x)} />
186
+        <Table.Column title="流转状态" dataIndex="status" key="status" render={x => getDictValue(StatusDict, x)}/>
186 187
         <Table.Column title="当前处理人" dataIndex="tpUserNmae" key="tpUserNmae" />
187 188
         <Table.Column title="最近操作时间" dataIndex="updateDate" key="updateDate" />
188 189
       </List>