Bläddra i källkod

客户列表 增加 推广人员

魏熙美 5 år sedan
förälder
incheckning
f2a1d0e11b

+ 14
- 0
src/pages/customer/customerlist/index.jsx Visa fil

@@ -196,6 +196,13 @@ function body(props) {
196 196
       align: 'center',
197 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 208
   const privateColumns = [
@@ -247,6 +254,13 @@ function body(props) {
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 265
       title: '客户状态',
252 266
       dataIndex: 'reportRecommendStatus',

+ 3
- 3
src/pages/integralMall/exchangeRecords.jsx Visa fil

@@ -87,7 +87,7 @@ function record(props) {
87 87
       dataIndex: 'personType',
88 88
       key: 'personType',
89 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 93
       title: '手机号',
@@ -113,14 +113,14 @@ function record(props) {
113 113
       dataIndex: 'createDate',
114 114
       key: 'createDate',
115 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 119
       title: '领取时间',
120 120
       dataIndex: 'verifyDate',
121 121
       key: 'verifyDate',
122 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 126
       title: '状态',

+ 4
- 1
src/pages/integralMall/verifyList.jsx Visa fil

@@ -35,9 +35,12 @@ const header = (props) => {
35 35
   }
36 36
 
37 37
   const changeStatus = (row) => () => {
38
+    // console.log(new Date())
39
+    row.verifyDate = new Date()
40
+    // console.log('row.verifyDate: ', row.verifyDate)
38 41
     request({ ...apis.integralMall.changeTaPointsExchange, data: row}).then((data) => {
39 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