Ver código fonte

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into dev

zhoulisen 5 anos atrás
pai
commit
bb4218acac

+ 1
- 1
src/pages/channel/recommendClients.jsx Ver arquivo

72
     dataIndex: 'sex',
72
     dataIndex: 'sex',
73
     key: 'sex',
73
     key: 'sex',
74
     align: 'center',
74
     align: 'center',
75
-    render: (text, record) => <a style={ { color: '#66B3FF' } } >{ record.sex === 1 ? '男' : '女' }</a>,
75
+    render: (text, record) => <span>{ record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知' }</span>
76
   },
76
   },
77
   {
77
   {
78
     title: '意向项目',
78
     title: '意向项目',

+ 1
- 1
src/pages/customer/customerlist/index.jsx Ver arquivo

422
       align: 'center',
422
       align: 'center',
423
       width: '10%',
423
       width: '10%',
424
       // eslint-disable-next-line no-nested-ternary
424
       // eslint-disable-next-line no-nested-ternary
425
-      render: (_, record) => <><span>{record.sex === '1' ? '男' : record.sex === '2' ? '女' : '未知'}</span></>,
425
+      render: (_, record) => <><span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span></>,
426
     },
426
     },
427
     {
427
     {
428
       title: '操作',
428
       title: '操作',

+ 22
- 16
src/pages/staff/components/CustomerChange.jsx Ver arquivo

22
   };
22
   };
23
 
23
 
24
   const batchAssistConsultant = () => {
24
   const batchAssistConsultant = () => {
25
-    if(selectIds.length < 1){
25
+    if (selectIds.length < 1) {
26
       message.info("请至少选择一条数据");
26
       message.info("请至少选择一条数据");
27
       return
27
       return
28
     }
28
     }
30
   }
30
   }
31
 
31
 
32
   const consulatanChange = (e) => {
32
   const consulatanChange = (e) => {
33
-    if(e){
34
-      data.map(x =>{ 
33
+    if (e) {
34
+      data.map(x => {
35
         selectIds.map(y => {
35
         selectIds.map(y => {
36
-          if(x.customerId === y){
36
+          if (x.customerId === y) {
37
             x.realtyConsultant = e.userId
37
             x.realtyConsultant = e.userId
38
             x.moveUserId = e.userId
38
             x.moveUserId = e.userId
39
             x.moveUserName = e.userName
39
             x.moveUserName = e.userName
46
   }
46
   }
47
 
47
 
48
   //批量保存
48
   //批量保存
49
-  const batchSaveConsultant = () =>{
49
+  const batchSaveConsultant = () => {
50
     const unMoveData = data.filter(x => !x.moveUserId)
50
     const unMoveData = data.filter(x => !x.moveUserId)
51
-    if(unMoveData.length > 0){
51
+    if (unMoveData.length > 0) {
52
       message.info("存在未分配归属客户");
52
       message.info("存在未分配归属客户");
53
       return
53
       return
54
     }
54
     }
78
       align: 'center',
78
       align: 'center',
79
     },
79
     },
80
     {
80
     {
81
-      title: '状态',
82
-      dataIndex: 'status',
83
-      key: 'status',
81
+      title: '客户状态',
82
+      dataIndex: 'reportRecommendStatus',
83
+      key: 'reportRecommendStatus',
84
       align: 'center',
84
       align: 'center',
85
+      render: (text, records) => {
86
+        if (records.status === 1) { return '报备' }
87
+        if (records.status === 2) { return '到访' }
88
+        if (records.status === 3) { return '认购' }
89
+        if (records.status === 4) { return '签约' }
90
+      },
85
     },
91
     },
86
     {
92
     {
87
       title: '调整后归属',
93
       title: '调整后归属',
93
 
99
 
94
   useEffect(() => {
100
   useEffect(() => {
95
     request({ ...apis.staff.check, params: { userId: props.userId, personId: props.consultantPersonId, buildingId: props.buildingId } }).then(data => {
101
     request({ ...apis.staff.check, params: { userId: props.userId, personId: props.consultantPersonId, buildingId: props.buildingId } }).then(data => {
96
-       setData(data)
97
-   })
102
+      setData(data)
103
+    })
98
   }, [props.userId])
104
   }, [props.userId])
99
 
105
 
100
   return (
106
   return (
101
     <div>
107
     <div>
102
-        <Button type="primary" onClick={() => batchAssistConsultant()} style={{ float: 'right', margin: '20px 0', marginLeft: '20px', zIndex: 1 }}>分配置业顾问</Button>
103
-        <Table rowSelection={rowSelection} dataSource={data} columns={columns} rowKey="customerId" pagination={false} scroll={{ y: 500 }}/>
104
-        <BatchAssistConsultant visible={consultantVisible} userId={props.userId} buildingId={props.buildingId} onCancel={consulatanChange} />
105
-        <Button type="primary" onClick={() => batchSaveConsultant()} style={{}}>保存</Button>
106
-        <Button onClick={() => cancelConsultant()} style={{}}>取消</Button>
108
+      <Button type="primary" onClick={() => batchAssistConsultant()} style={{ float: 'right', margin: '20px 0', marginLeft: '20px', zIndex: 1 }}>分配置业顾问</Button>
109
+      <Table rowSelection={rowSelection} dataSource={data} columns={columns} rowKey="customerId" pagination={false} scroll={{ y: 500 }} />
110
+      <BatchAssistConsultant visible={consultantVisible} userId={props.userId} buildingId={props.buildingId} onCancel={consulatanChange} />
111
+      <div style={{ textAlign: 'center', marginTop: '16px' }}><Button type="primary" onClick={() => batchSaveConsultant()}>保存</Button>
112
+        <Button style={{ marginLeft: '10px' }} onClick={() => cancelConsultant()}>取消</Button></div>
107
     </div>
113
     </div>
108
   )
114
   )
109
 }
115
 }

+ 3
- 0
src/pages/staff/list/StaffList.jsx Ver arquivo

97
   //迁移私客成功回调
97
   //迁移私客成功回调
98
   const moveSuccess = (e) => {
98
   const moveSuccess = (e) => {
99
     setVisible(false)
99
     setVisible(false)
100
+    if(e === 'success'){
101
+      confirm(data)()
102
+    }
100
   }
103
   }
101
 
104
 
102
   // 员工离职
105
   // 员工离职