zlisen 3 anni fa
parent
commit
d889da6a57

+ 2
- 2
src/pages/customer/Customer/PrivateCustomer/index.jsx Vedi File

@@ -119,8 +119,8 @@ const PrivateCustomer = () => {
119 119
       },
120 120
       {
121 121
         title: '推广人员',
122
-        dataIndex: 'recommendName',
123
-        key: 'recommendName',
122
+        dataIndex: 'sharePersonName',
123
+        key: 'sharePersonName',
124 124
         align: 'center',
125 125
         width: '10%',
126 126
       },

+ 27
- 14
src/pages/customer/Customer/PublicCustomer/index.jsx Vedi File

@@ -10,12 +10,14 @@ import Styles from '../style.less';
10 10
 import IntegralRecord from './components/IntegralRecord';
11 11
 import Recommend from './components/Recommend';
12 12
 import AssistConsultant from './components/assistConsultant';
13
+import BatchAssistConsultant from './components/BatchAssistConsultant';
13 14
 import getSearchFields from './searchFields';
14 15
 
15 16
 const actionList = {
16 17
   integralRecord: 'integralRecord', //积分记录
17 18
   recommend: 'recommend', //推荐客户
18 19
   assistConsultant: 'assistConsultant', //分配置业顾问
20
+  batchAssistConsultant: 'batchAssistConsultant', //分配置业顾问
19 21
 };
20 22
 
21 23
 const PublicCustomer = () => {
@@ -54,12 +56,13 @@ const PublicCustomer = () => {
54 56
     if (compareSet.size != 1) {
55 57
       return message.info('选中的公客存在于不同项目中,请分开进行分配置业顾问操作');
56 58
     }
59
+    console.log(personInfo,personInfo[0].buildingId,personInfo)
57 60
     handShowModel(
58 61
       {
59 62
         customerId: personInfo,
60 63
         buildingId: personInfo[0].buildingId,
61 64
       },
62
-      actionList.assistConsultant,
65
+      actionList.batchAssistConsultant,
63 66
     );
64 67
     //   SetShowModel({
65 68
     //     [actionList[actionType]]: {
@@ -145,14 +148,18 @@ const PublicCustomer = () => {
145 148
         align: 'center',
146 149
         width: '20%',
147 150
       },
148
-      {
149
-        title: '是否归属项目',
150
-        dataIndex: '',
151
-        key: '',
152
-        align: 'center',
153
-        width: '10%',
154
-        render: (_, record) => <><span>{record.buildingId != null ? '是' : '否'}</span></>,
155
-      },
151
+      // {
152
+      //   title: '是否归属项目',
153
+      //   dataIndex: '',
154
+      //   key: '',
155
+      //   align: 'center',
156
+      //   width: '10%',
157
+      //   render: (_, record) => (
158
+      //     <>
159
+      //       <span>{record.buildingId != null ? '是' : '否'}</span>
160
+      //     </>
161
+      //   ),
162
+      // },
156 163
       {
157 164
         title: '归属项目',
158 165
         dataIndex: 'buildingName',
@@ -194,11 +201,11 @@ const PublicCustomer = () => {
194 201
             </Button>
195 202
           </AuthButton>,
196 203
 
197
-          <AuthButton name="customer.consultant.dispatch" noRight={null}>
198
-            <Button type="link" onClick={() => handShowModel(record, actionList.assistConsultant)}>
199
-              分配置业顾问
200
-            </Button>
201
-          </AuthButton>,
204
+          // <AuthButton name="customer.consultant.dispatch" noRight={null}>
205
+          //   <Button type="link" onClick={() => handShowModel(record, actionList.assistConsultant)}>
206
+          //     分配置业顾问
207
+          //   </Button>
208
+          // </AuthButton>,
202 209
         ]),
203 210
       },
204 211
     ];
@@ -276,6 +283,12 @@ const PublicCustomer = () => {
276 283
         handleCancel={handleCancel}
277 284
         onCancel={() => SetShowModel({})}
278 285
       />
286
+
287
+      <BatchAssistConsultant
288
+        modelProps={showModel[actionList.batchAssistConsultant]}
289
+        handleCancel={handleCancel}
290
+        onCancel={() => SetShowModel({})}
291
+      />
279 292
     </>
280 293
   );
281 294
 };