Browse Source

客户列表 增加 推广人员

魏熙美 5 years ago
parent
commit
f2a1d0e11b

+ 14
- 0
src/pages/customer/customerlist/index.jsx View File

196
       align: 'center',
196
       align: 'center',
197
       width: '15%',
197
       width: '15%',
198
     },
198
     },
199
+    {
200
+      title: '推广人员',
201
+      dataIndex: 'sharePersonName',
202
+      key: 'sharePersonName',
203
+      align: 'center',
204
+      width: '15%',
205
+    },
199
   ]
206
   ]
200
 
207
 
201
   const privateColumns = [
208
   const privateColumns = [
247
         </>
254
         </>
248
       ),
255
       ),
249
     },
256
     },
257
+    {
258
+      title: '推广人员',
259
+      dataIndex: 'sharePersonName',
260
+      key: 'sharePersonName',
261
+      align: 'center',
262
+      width: '15%',
263
+    },
250
     {
264
     {
251
       title: '客户状态',
265
       title: '客户状态',
252
       dataIndex: 'reportRecommendStatus',
266
       dataIndex: 'reportRecommendStatus',

+ 3
- 3
src/pages/integralMall/exchangeRecords.jsx View File

87
       dataIndex: 'personType',
87
       dataIndex: 'personType',
88
       key: 'personType',
88
       key: 'personType',
89
       align: 'center',
89
       align: 'center',
90
-      render: (personType)=> <><span>{personType === 'Realty Consultant' ? '置业顾问' : personType === 'Sales Executive' ? '销售主管' : personType === 'estate agent' ? '经纪人' : ''}</span></>
90
+      render: (personType)=> <><span>{personType === 'Realty Consultant' ? '置业顾问' : personType === 'Sales Executive' ? '销售主管' : personType === 'estate agent' ? '经纪人' : personType === 'customer' ? '客户' : ''}</span></>
91
     },
91
     },
92
     {
92
     {
93
       title: '手机号',
93
       title: '手机号',
113
       dataIndex: 'createDate',
113
       dataIndex: 'createDate',
114
       key: 'createDate',
114
       key: 'createDate',
115
       align: 'center',
115
       align: 'center',
116
-      render: (createDate) => <><span>{moment(createDate).format('YYYY-MM-DD HH:mm')}</span></>
116
+      render: (_, recorde) => <><span>{moment(recorde.createDate).format('YYYY-MM-DD HH:mm')}</span></>,
117
     },
117
     },
118
     {
118
     {
119
       title: '领取时间',
119
       title: '领取时间',
120
       dataIndex: 'verifyDate',
120
       dataIndex: 'verifyDate',
121
       key: 'verifyDate',
121
       key: 'verifyDate',
122
       align: 'center',
122
       align: 'center',
123
-      render: (verifyDate) => <><span>{verifyDate != null ? moment(verifyDate).format('YYYY-MM-DD HH:mm') : ''}</span></>
123
+      render: (_, recorde) => <><span>{recorde.verifyDate != null ? moment(recorde.verifyDate).format('YYYY-MM-DD HH:mm') : ''}</span></>,
124
     },
124
     },
125
     {
125
     {
126
       title: '状态',
126
       title: '状态',

+ 4
- 1
src/pages/integralMall/verifyList.jsx View File

35
   }
35
   }
36
 
36
 
37
   const changeStatus = (row) => () => {
37
   const changeStatus = (row) => () => {
38
+    // console.log(new Date())
39
+    row.verifyDate = new Date()
40
+    // console.log('row.verifyDate: ', row.verifyDate)
38
     request({ ...apis.integralMall.changeTaPointsExchange, data: row}).then((data) => {
41
     request({ ...apis.integralMall.changeTaPointsExchange, data: row}).then((data) => {
39
         message.info("操作成功")
42
         message.info("操作成功")
40
-        getVerifyList({ pageNum: pageNumber, pageSize: 10, phone: props.location.query.telValue })
43
+        getVerifyList({ pageNum: 1, pageSize: 10, phone: props.location.query.telValue })
41
     })
44
     })
42
   }
45
   }
43
   
46