zlisen 3 years ago
parent
commit
815b28e849

+ 28
- 15
src/pages/customer/Recommend/index.jsx View File

1
 import React, { useState } from 'react';
1
 import React, { useState } from 'react';
2
-import {  Avatar, Button } from 'antd';
2
+import {  Avatar, Button,message } from 'antd';
3
 import moment from 'moment';
3
 import moment from 'moment';
4
 import request from '../../../utils/request';
4
 import request from '../../../utils/request';
5
 import apis from '../../../services/apis';
5
 import apis from '../../../services/apis';
86
     },
86
     },
87
     {
87
     {
88
       title: '意向项目',
88
       title: '意向项目',
89
-      dataIndex: 'intention',
90
-      key: 'intention',
89
+      dataIndex: 'buildingName',
90
+      key: 'buildingName',
91
     },
91
     },
92
     {
92
     {
93
       title: '推荐人',
93
       title: '推荐人',
94
       dataIndex: 'consultantName',
94
       dataIndex: 'consultantName',
95
       key: 'consultantName',
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
       title: '推荐时间',
99
       title: '推荐时间',
103
     },
103
     },
104
     {
104
     {
105
       title: '状态',
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
       title: '操作',
111
       title: '操作',
112
       dataIndex: 'customerId',
112
       dataIndex: 'customerId',
113
       key: 'customerId',
113
       key: 'customerId',
114
       render: (_, record) => (
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
             <AuthButton name="admin.customer.recommend.verify.id.put" noRight={null}>
120
             <AuthButton name="admin.customer.recommend.verify.id.put" noRight={null}>
118
               {record.verifyStatus === 0 ? <span style={{ color: 'rgba(239,39,58,1)', cursor: 'pointer' }} onClick={() => toAudit(record.customerId)}>审核</span> : ''}
121
               {record.verifyStatus === 0 ? <span style={{ color: 'rgba(239,39,58,1)', cursor: 'pointer' }} onClick={() => toAudit(record.customerId)}>审核</span> : ''}
134
  const searchFields=[
137
  const searchFields=[
135
      {
138
      {
136
       name: 'buildingId',
139
       name: 'buildingId',
137
-      label: '用户来源',
138
-      placeholder: '请选择用户来源',
140
+      label: '项目',
141
+      placeholder: '项目',
139
       render: () => <BuildingSelect style={{width: 160}} />
142
       render: () => <BuildingSelect style={{width: 160}} />
140
     },
143
     },
141
   {
144
   {
144
     placeholder: '请输入姓名',
147
     placeholder: '请输入姓名',
145
   },
148
   },
146
   {
149
   {
147
-    name: 'tel',
150
+    name: 'phone',
148
     label: '电话',
151
     label: '电话',
149
     placeholder: '请输入电话',
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
     label: '状态',
166
     label: '状态',
154
     placeholder: '请选择状态',
167
     placeholder: '请选择状态',
155
     type: 'select',
168
     type: 'select',
156
     options: [
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
  ]

+ 1
- 1
src/pages/findRoom/overseas/audit.jsx View File

68
           }
68
           }
69
         });
69
         });
70
 
70
 
71
-        console.log(b, 'questionnaire');
71
+        
72
         props.form.setFieldsValue({
72
         props.form.setFieldsValue({
73
           ...res,
73
           ...res,
74
           reportDate: moment(res.reportDate),
74
           reportDate: moment(res.reportDate),

+ 1
- 1
src/services/apis.js View File

353
     },
353
     },
354
     recommender: {
354
     recommender: {
355
       method: 'GET',
355
       method: 'GET',
356
-      url: `${prefix}/customer/recommend/recommender`,
356
+      url: `${prefix}/channelCustomer`,
357
       action: 'admin.customer.recommend.recommender.get',
357
       action: 'admin.customer.recommend.recommender.get',
358
     },
358
     },
359
     auto: {
359
     auto: {