|
@@ -39,7 +39,7 @@ function body(props) {
|
39
|
39
|
const [dataPub, setDataPub] = useState({ records: [] })
|
40
|
40
|
// 默认私客
|
41
|
41
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
42
|
|
- const [customerType, setCustomerType] = useState('private')
|
|
42
|
+ const [customerType, setCustomerType] = useState('public')
|
43
|
43
|
|
44
|
44
|
// 调整归属 ============ start
|
45
|
45
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -423,7 +423,7 @@ function body(props) {
|
423
|
423
|
dataIndex: 'name',
|
424
|
424
|
key: 'name',
|
425
|
425
|
align: 'center',
|
426
|
|
- width: '10%',
|
|
426
|
+ // width: '10%',
|
427
|
427
|
// eslint-disable-next-line no-nested-ternary
|
428
|
428
|
render: (_, record) => <><Navigate onClick={() => publicCustomerDetail(record)}>{record.name || record.nickname}</Navigate></>,
|
429
|
429
|
},
|
|
@@ -434,28 +434,28 @@ function body(props) {
|
434
|
434
|
align: 'center',
|
435
|
435
|
width: '15%',
|
436
|
436
|
},
|
437
|
|
- {
|
438
|
|
- title: '是否归属项目',
|
439
|
|
- dataIndex: '',
|
440
|
|
- key: '',
|
441
|
|
- align: 'center',
|
442
|
|
- width: '10%',
|
443
|
|
- render: (_, record) => <><span>{record.buildingId != null ? '是' : '否'}</span></>,
|
444
|
|
- },
|
445
|
|
- {
|
446
|
|
- title: '归属项目',
|
447
|
|
- dataIndex: 'buildingName',
|
448
|
|
- key: 'buildingName',
|
449
|
|
- align: 'center',
|
450
|
|
- width: '15%',
|
451
|
|
- },
|
452
|
|
- {
|
453
|
|
- title: '推广人员',
|
454
|
|
- dataIndex: 'sharePersonName',
|
455
|
|
- key: 'sharePersonName',
|
456
|
|
- align: 'center',
|
457
|
|
- width: '10%',
|
458
|
|
- },
|
|
437
|
+ // {
|
|
438
|
+ // title: '是否归属项目',
|
|
439
|
+ // dataIndex: '',
|
|
440
|
+ // key: '',
|
|
441
|
+ // align: 'center',
|
|
442
|
+ // width: '10%',
|
|
443
|
+ // render: (_, record) => <><span>{record.buildingId != null ? '是' : '否'}</span></>,
|
|
444
|
+ // },
|
|
445
|
+ // {
|
|
446
|
+ // title: '归属项目',
|
|
447
|
+ // dataIndex: 'buildingName',
|
|
448
|
+ // key: 'buildingName',
|
|
449
|
+ // align: 'center',
|
|
450
|
+ // width: '15%',
|
|
451
|
+ // },
|
|
452
|
+ // {
|
|
453
|
+ // title: '推广人员',
|
|
454
|
+ // dataIndex: 'sharePersonName',
|
|
455
|
+ // key: 'sharePersonName',
|
|
456
|
+ // align: 'center',
|
|
457
|
+ // width: '10%',
|
|
458
|
+ // },
|
459
|
459
|
{
|
460
|
460
|
title: '性别',
|
461
|
461
|
dataIndex: 'sex',
|
|
@@ -473,12 +473,12 @@ function body(props) {
|
473
|
473
|
width: '20%',
|
474
|
474
|
render: withActions((text, record) => [
|
475
|
475
|
<EditIcon color="#FF4A4A" text="查看详情" onClick={() => publicCustomerDetail(record)} />,
|
476
|
|
- <AuthButton name="admin.customer.recommend" noRight={null}>
|
477
|
|
- <Button className={customerType === 'private' ? Styles.displayS : Styles.text} type="link" onClick={() => showRecommend(record.personId)}>推荐客户</Button>
|
478
|
|
- </AuthButton>,
|
479
|
|
- <AuthButton name="admin.customer.assign" noRight={null}>
|
480
|
|
- <Button className={customerType === 'private' ? Styles.displayS : Styles.text} type="link" onClick={() => assistConsultant(record.customerId, record.buildingId)}>分配置业顾问</Button>
|
481
|
|
- </AuthButton>,
|
|
476
|
+ // <AuthButton name="admin.customer.recommend" noRight={null}>
|
|
477
|
+ // <Button className={customerType === 'private' ? Styles.displayS : Styles.text} type="link" onClick={() => showRecommend(record.personId)}>推荐客户</Button>
|
|
478
|
+ // </AuthButton>,
|
|
479
|
+ // <AuthButton name="admin.customer.assign" noRight={null}>
|
|
480
|
+ // <Button className={customerType === 'private' ? Styles.displayS : Styles.text} type="link" onClick={() => assistConsultant(record.customerId, record.buildingId)}>分配置业顾问</Button>
|
|
481
|
+ // </AuthButton>,
|
482
|
482
|
<AuthButton name="admin.mine.taPointsRecords.point.record" noRight={null}>
|
483
|
483
|
<Button className={Styles.text} type="link" onClick={() => showRecord(record)}>积分记录</Button>
|
484
|
484
|
</AuthButton>
|
|
@@ -632,20 +632,20 @@ function body(props) {
|
632
|
632
|
return (
|
633
|
633
|
<>
|
634
|
634
|
<Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
|
635
|
|
- {customerType === 'public' && <Form.Item>
|
|
635
|
+ {/* {customerType === 'public' && <Form.Item>
|
636
|
636
|
{getFieldDecorator('belongStatus')(
|
637
|
637
|
<Select style={{ width: '180px' }} placeholder="是否归属项目" onChange={handleSelectChange}>
|
638
|
638
|
<Option value={1}>是</Option>
|
639
|
639
|
<Option value={0}>否</Option>
|
640
|
640
|
</Select>,
|
641
|
641
|
)}
|
642
|
|
- </Form.Item>}
|
643
|
|
- <Form.Item>
|
|
642
|
+ </Form.Item>} */}
|
|
643
|
+ {/* <Form.Item>
|
644
|
644
|
{getFieldDecorator('buildingId')(
|
645
|
645
|
<BuildSelect />,
|
646
|
646
|
)}
|
647
|
|
- </Form.Item>
|
648
|
|
- {customerType === 'private' && <Form.Item>
|
|
647
|
+ </Form.Item> */}
|
|
648
|
+ {/* {customerType === 'private' && <Form.Item>
|
649
|
649
|
{getFieldDecorator('status')(
|
650
|
650
|
<Select style={{ width: '180px' }} placeholder="状态" onChange={handleSelectChange}>
|
651
|
651
|
<Option value={1}>报备</Option>
|
|
@@ -654,7 +654,7 @@ function body(props) {
|
654
|
654
|
<Option value={4}>签约</Option>
|
655
|
655
|
</Select>,
|
656
|
656
|
)}
|
657
|
|
- </Form.Item>}
|
|
657
|
+ </Form.Item>} */}
|
658
|
658
|
<Form.Item>
|
659
|
659
|
{getFieldDecorator('name')(
|
660
|
660
|
<Input
|
|
@@ -671,7 +671,7 @@ function body(props) {
|
671
|
671
|
/>,
|
672
|
672
|
)}
|
673
|
673
|
</Form.Item>
|
674
|
|
- {customerType === 'private' && <Form.Item>
|
|
674
|
+ {/* {customerType === 'private' && <Form.Item>
|
675
|
675
|
{getFieldDecorator('consultName')(
|
676
|
676
|
<Input placeholder="置业顾问" />,
|
677
|
677
|
)}
|
|
@@ -680,7 +680,7 @@ function body(props) {
|
680
|
680
|
{getFieldDecorator('consultTel')(
|
681
|
681
|
<Input placeholder="置业顾问电话" />,
|
682
|
682
|
)}
|
683
|
|
- </Form.Item>}
|
|
683
|
+ </Form.Item>} */}
|
684
|
684
|
<Form.Item >
|
685
|
685
|
{getFieldDecorator('startCreateDate')(
|
686
|
686
|
<DatePicker placeholder="注册开始时间" format="YYYY-MM-DD HH:mm:ss" showTime={{ format: 'HH:mm:ss' }} />)}
|
|
@@ -689,16 +689,16 @@ function body(props) {
|
689
|
689
|
{getFieldDecorator('endCreateDate')(
|
690
|
690
|
<DatePicker placeholder="注册结束时间" format="YYYY-MM-DD HH:mm:ss" showTime={{ format: 'HH:mm:ss' }} />)}
|
691
|
691
|
</Form.Item>
|
692
|
|
- <Form.Item>
|
|
692
|
+ {/* <Form.Item>
|
693
|
693
|
{getFieldDecorator('sceneType')(
|
694
|
694
|
<WxDictSelect />,
|
695
|
695
|
)}
|
696
|
|
- </Form.Item>
|
697
|
|
- <Form.Item>
|
|
696
|
+ </Form.Item> */}
|
|
697
|
+ {/* <Form.Item>
|
698
|
698
|
{getFieldDecorator('sharePersonName')(
|
699
|
699
|
<Input placeholder="推广人" />,
|
700
|
700
|
)}
|
701
|
|
- </Form.Item>
|
|
701
|
+ </Form.Item> */}
|
702
|
702
|
<Form.Item>
|
703
|
703
|
<AuthButton name="admin.customer.recommend.search" noRight={null}>
|
704
|
704
|
<Button type="primary" htmlType="submit" >
|
|
@@ -718,11 +718,11 @@ function body(props) {
|
718
|
718
|
</Button>
|
719
|
719
|
</AuthButton> :
|
720
|
720
|
<>
|
721
|
|
- <AuthButton name="admin.customer.import" noRight={null}>
|
|
721
|
+ {/* <AuthButton name="admin.customer.import" noRight={null}>
|
722
|
722
|
<Button type="primary" onClick={() => batchAssistConsultant()} style={{ float: 'right', margin: '20px 0', marginLeft: '20px', zIndex: 1 }}>
|
723
|
723
|
批量分配置业顾问
|
724
|
724
|
</Button>
|
725
|
|
- </AuthButton>
|
|
725
|
+ </AuthButton> */}
|
726
|
726
|
<AuthButton name="admin.customer.import" noRight={null}>
|
727
|
727
|
<Button type="primary" loading={loadingStatus} onClick={() => exportCustomer()} style={{ float: 'right', margin: '20px 0', zIndex: 1 }}>
|
728
|
728
|
导出
|
|
@@ -732,12 +732,12 @@ function body(props) {
|
732
|
732
|
}
|
733
|
733
|
|
734
|
734
|
|
735
|
|
- <div style={{ margin: '20px 0' }}>
|
|
735
|
+ {/* <div style={{ margin: '20px 0' }}>
|
736
|
736
|
<Radio.Group value={customerType} onChange={radioButtonHandleSizeChange} buttonStyle="solid">
|
737
|
737
|
<Radio.Button value="private">私客</Radio.Button>
|
738
|
738
|
<Radio.Button value="public">公客</Radio.Button>
|
739
|
739
|
</Radio.Group>
|
740
|
|
- </div>
|
|
740
|
+ </div> */}
|
741
|
741
|
{customerType === 'private' ?
|
742
|
742
|
<Table
|
743
|
743
|
// onRow={record => {
|