|
@@ -1,5 +1,5 @@
|
1
|
1
|
import React, { useState } from 'react';
|
2
|
|
-import { Avatar, Button } from 'antd';
|
|
2
|
+import { Avatar, Button,message } from 'antd';
|
3
|
3
|
import moment from 'moment';
|
4
|
4
|
import request from '../../../utils/request';
|
5
|
5
|
import apis from '../../../services/apis';
|
|
@@ -86,14 +86,14 @@ function Recommend(props) {
|
86
|
86
|
},
|
87
|
87
|
{
|
88
|
88
|
title: '意向项目',
|
89
|
|
- dataIndex: 'intention',
|
90
|
|
- key: 'intention',
|
|
89
|
+ dataIndex: 'buildingName',
|
|
90
|
+ key: 'buildingName',
|
91
|
91
|
},
|
92
|
92
|
{
|
93
|
93
|
title: '推荐人',
|
94
|
94
|
dataIndex: 'consultantName',
|
95
|
95
|
key: 'consultantName',
|
96
|
|
- render: (_, record) => <><span>{(record.recommendName !== null ? record.recommendName : '') + " " + (record.recommendTel !== null ? record.recommendTel : '')}</span></>,
|
|
96
|
+ render: (_, record) => <><span>{(record.recommendName ? record.recommendPersonName : '') + " " + (record.recommendPhone ? record.recommendPhone : '')}</span></>,
|
97
|
97
|
},
|
98
|
98
|
{
|
99
|
99
|
title: '推荐时间',
|
|
@@ -103,16 +103,19 @@ function Recommend(props) {
|
103
|
103
|
},
|
104
|
104
|
{
|
105
|
105
|
title: '状态',
|
106
|
|
- dataIndex: 'verifyStatus',
|
107
|
|
- key: 'verifyStatus',
|
108
|
|
- render: (_, record) => <><span>{record.verifyStatus === 0 ? '待审核' : record.verifyStatus === 1 ? '已通过' : record.verifyStatus === 2 ? '已驳回' : ''}</span></>,
|
|
106
|
+ dataIndex: 'status',
|
|
107
|
+ key: 'status',
|
|
108
|
+ render: (_, record) => <><span>{record.status === '1' ? '待审核' : record.status === '2' ? '已通过' : record.status === '3' ? '已驳回' : ''}</span></>,
|
109
|
109
|
},
|
110
|
110
|
{
|
111
|
111
|
title: '操作',
|
112
|
112
|
dataIndex: 'customerId',
|
113
|
113
|
key: 'customerId',
|
114
|
114
|
render: (_, record) => (
|
115
|
|
- <><span style={{ color: 'rgba(239,39,58,1)', cursor: 'pointer' }} onClick={() => toAudit(record.customerId)}>审核</span>
|
|
115
|
+ <>{record.status === '1' &&<span style={{ color: 'rgba(239,39,58,1)', cursor: 'pointer' }} onClick={() => {
|
|
116
|
+ message.info('该功能暂未开放');
|
|
117
|
+ // toAudit(record.channelCustomerId)
|
|
118
|
+ }}>审核</span>}
|
116
|
119
|
{/* {
|
117
|
120
|
<AuthButton name="admin.customer.recommend.verify.id.put" noRight={null}>
|
118
|
121
|
{record.verifyStatus === 0 ? <span style={{ color: 'rgba(239,39,58,1)', cursor: 'pointer' }} onClick={() => toAudit(record.customerId)}>审核</span> : ''}
|
|
@@ -134,8 +137,8 @@ function Recommend(props) {
|
134
|
137
|
const searchFields=[
|
135
|
138
|
{
|
136
|
139
|
name: 'buildingId',
|
137
|
|
- label: '用户来源',
|
138
|
|
- placeholder: '请选择用户来源',
|
|
140
|
+ label: '项目',
|
|
141
|
+ placeholder: '项目',
|
139
|
142
|
render: () => <BuildingSelect style={{width: 160}} />
|
140
|
143
|
},
|
141
|
144
|
{
|
|
@@ -144,19 +147,29 @@ function Recommend(props) {
|
144
|
147
|
placeholder: '请输入姓名',
|
145
|
148
|
},
|
146
|
149
|
{
|
147
|
|
- name: 'tel',
|
|
150
|
+ name: 'phone',
|
148
|
151
|
label: '电话',
|
149
|
152
|
placeholder: '请输入电话',
|
150
|
153
|
},
|
151
|
154
|
{
|
152
|
|
- name: 'verifyStatus',
|
|
155
|
+ name: 'recommendPersonName',
|
|
156
|
+ label: '推荐人',
|
|
157
|
+ placeholder: '请输入推荐人姓名',
|
|
158
|
+ },
|
|
159
|
+ {
|
|
160
|
+ name: 'recommendPhone',
|
|
161
|
+ label: '推荐人电话',
|
|
162
|
+ placeholder: '请输入推荐人电话电话',
|
|
163
|
+ },
|
|
164
|
+ {
|
|
165
|
+ name: 'status',
|
153
|
166
|
label: '状态',
|
154
|
167
|
placeholder: '请选择状态',
|
155
|
168
|
type: 'select',
|
156
|
169
|
options: [
|
157
|
|
- {label: '未通过', value: 0},
|
158
|
|
- {label: '已通过', value: 1},
|
159
|
|
- {label: '已驳回', value: 2}
|
|
170
|
+ {label: '未通过', value: '1'},
|
|
171
|
+ {label: '已通过', value: '2'},
|
|
172
|
+ {label: '已驳回', value: '3'}
|
160
|
173
|
]
|
161
|
174
|
},
|
162
|
175
|
]
|