zlisen 3 년 전
부모
커밋
815b28e849
3개의 변경된 파일30개의 추가작업 그리고 17개의 파일을 삭제
  1. 28
    15
      src/pages/customer/Recommend/index.jsx
  2. 1
    1
      src/pages/findRoom/overseas/audit.jsx
  3. 1
    1
      src/services/apis.js

+ 28
- 15
src/pages/customer/Recommend/index.jsx 파일 보기

@@ -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
  ]

+ 1
- 1
src/pages/findRoom/overseas/audit.jsx 파일 보기

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

+ 1
- 1
src/services/apis.js 파일 보기

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