Sfoglia il codice sorgente

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

zhoulisen 5 anni fa
parent
commit
bb4218acac

+ 1
- 1
src/pages/channel/recommendClients.jsx Vedi File

@@ -72,7 +72,7 @@ const columns = [
72 72
     dataIndex: 'sex',
73 73
     key: 'sex',
74 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 78
     title: '意向项目',

+ 1
- 1
src/pages/customer/customerlist/index.jsx Vedi File

@@ -422,7 +422,7 @@ function body(props) {
422 422
       align: 'center',
423 423
       width: '10%',
424 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 428
       title: '操作',

+ 22
- 16
src/pages/staff/components/CustomerChange.jsx Vedi File

@@ -22,7 +22,7 @@ const CustomerChange = (props) => {
22 22
   };
23 23
 
24 24
   const batchAssistConsultant = () => {
25
-    if(selectIds.length < 1){
25
+    if (selectIds.length < 1) {
26 26
       message.info("请至少选择一条数据");
27 27
       return
28 28
     }
@@ -30,10 +30,10 @@ const CustomerChange = (props) => {
30 30
   }
31 31
 
32 32
   const consulatanChange = (e) => {
33
-    if(e){
34
-      data.map(x =>{ 
33
+    if (e) {
34
+      data.map(x => {
35 35
         selectIds.map(y => {
36
-          if(x.customerId === y){
36
+          if (x.customerId === y) {
37 37
             x.realtyConsultant = e.userId
38 38
             x.moveUserId = e.userId
39 39
             x.moveUserName = e.userName
@@ -46,9 +46,9 @@ const CustomerChange = (props) => {
46 46
   }
47 47
 
48 48
   //批量保存
49
-  const batchSaveConsultant = () =>{
49
+  const batchSaveConsultant = () => {
50 50
     const unMoveData = data.filter(x => !x.moveUserId)
51
-    if(unMoveData.length > 0){
51
+    if (unMoveData.length > 0) {
52 52
       message.info("存在未分配归属客户");
53 53
       return
54 54
     }
@@ -78,10 +78,16 @@ const CustomerChange = (props) => {
78 78
       align: 'center',
79 79
     },
80 80
     {
81
-      title: '状态',
82
-      dataIndex: 'status',
83
-      key: 'status',
81
+      title: '客户状态',
82
+      dataIndex: 'reportRecommendStatus',
83
+      key: 'reportRecommendStatus',
84 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 93
       title: '调整后归属',
@@ -93,17 +99,17 @@ const CustomerChange = (props) => {
93 99
 
94 100
   useEffect(() => {
95 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 104
   }, [props.userId])
99 105
 
100 106
   return (
101 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 113
     </div>
108 114
   )
109 115
 }

+ 3
- 0
src/pages/staff/list/StaffList.jsx Vedi File

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