|
|
@ -1,8 +1,8 @@
|
|
|
|
import { useNavigate } from 'react-router-dom'
|
|
|
|
import { useNavigate } from 'react-router-dom'
|
|
|
|
import { memo, useMemo, useCallback, useEffect, useState } from 'react'
|
|
|
|
import { memo, useMemo, useCallback, useEffect, useState } from 'react'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
Row, Col, Divider, Table, Card, Button, Input,
|
|
|
|
Row, Badge, Divider, Table, Card, Button, Input,
|
|
|
|
Space, Segmented, Radio, Select, Flex, Spin, Form, Switch, DatePicker, List, Avatar
|
|
|
|
Space, Tag, Radio, Select, Flex, Spin, Form, Switch, DatePicker, List, Avatar
|
|
|
|
} from 'antd'
|
|
|
|
} from 'antd'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
StarFilled, ZoomInOutlined, StarOutlined, BarsOutlined, AppstoreOutlined, SearchOutlined
|
|
|
|
StarFilled, ZoomInOutlined, StarOutlined, BarsOutlined, AppstoreOutlined, SearchOutlined
|
|
|
@ -83,29 +83,11 @@ const columns = [
|
|
|
|
title: '订单号',
|
|
|
|
title: '订单号',
|
|
|
|
dataIndex: 'orderNumber',
|
|
|
|
dataIndex: 'orderNumber',
|
|
|
|
key: 'orderNumber',
|
|
|
|
key: 'orderNumber',
|
|
|
|
width: 300,
|
|
|
|
width: 222,
|
|
|
|
render: (text, record, inde) => {
|
|
|
|
render: (text, record, index) => {
|
|
|
|
return (
|
|
|
|
if (index === 1) return <Space size='middle'>{text}<Tag color='red'>重点</Tag></Space>
|
|
|
|
<Space size='middle'>
|
|
|
|
else if (index === 2) return <Space size='middle'>{text}<Tag color='green'>潜力</Tag></Space>
|
|
|
|
{text}
|
|
|
|
else return <Space size='middle'>{text}<Tag color='blue'>休眠</Tag></Space>
|
|
|
|
<Segmented
|
|
|
|
|
|
|
|
options={[
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: '潜力',
|
|
|
|
|
|
|
|
value: '潜力',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: '重点',
|
|
|
|
|
|
|
|
value: '重点',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: '休眠',
|
|
|
|
|
|
|
|
value: '休眠',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</Space>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -116,6 +98,13 @@ const columns = [
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Space size='middle'>
|
|
|
|
<Space size='middle'>
|
|
|
|
<a>{text}</a>
|
|
|
|
<a>{text}</a>
|
|
|
|
|
|
|
|
<Badge
|
|
|
|
|
|
|
|
className="site-badge-count-109"
|
|
|
|
|
|
|
|
count={Math.floor(Math.random() * (100 - 2 + 1) + 2)}
|
|
|
|
|
|
|
|
style={{
|
|
|
|
|
|
|
|
backgroundColor: '#52c41a',
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</Space>
|
|
|
|
</Space>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -125,42 +114,11 @@ const columns = [
|
|
|
|
dataIndex: 'orderStatus',
|
|
|
|
dataIndex: 'orderStatus',
|
|
|
|
key: 'orderStatus',
|
|
|
|
key: 'orderStatus',
|
|
|
|
width: 120,
|
|
|
|
width: 120,
|
|
|
|
render: (text, record, inde) => {
|
|
|
|
render: (text, record, index) => {
|
|
|
|
return (
|
|
|
|
if (index === 1) return text + '(一催)'
|
|
|
|
<Select
|
|
|
|
else if (index === 2) return text + '(二催)'
|
|
|
|
defaultValue='新订单'
|
|
|
|
else if (index === 3) return text + '(三催)'
|
|
|
|
style={{
|
|
|
|
else return text
|
|
|
|
width: 100,
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
bordered={false}
|
|
|
|
|
|
|
|
options={[
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
value: '新订单',
|
|
|
|
|
|
|
|
label: '新订单',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
value: '报价中',
|
|
|
|
|
|
|
|
label: '报价中',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
value: '丢失',
|
|
|
|
|
|
|
|
label: '丢失',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
value: '一催',
|
|
|
|
|
|
|
|
label: '一催',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
value: '二催',
|
|
|
|
|
|
|
|
label: '二催',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
value: '三催',
|
|
|
|
|
|
|
|
label: '三催',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -184,7 +142,7 @@ const columns = [
|
|
|
|
const AdvanceSearchForm = memo(function ({ onSubmit }) {
|
|
|
|
const AdvanceSearchForm = memo(function ({ onSubmit }) {
|
|
|
|
const [form] = Form.useForm()
|
|
|
|
const [form] = Form.useForm()
|
|
|
|
function handleSubmit(values) {
|
|
|
|
function handleSubmit(values) {
|
|
|
|
onSubmit(values)
|
|
|
|
onSubmit?.(values)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Form
|
|
|
|
<Form
|
|
|
@ -319,8 +277,7 @@ function OrderFollow() {
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</Space>
|
|
|
|
</Space>
|
|
|
|
<Divider plain orientation='left'></Divider>
|
|
|
|
<Divider plain orientation='left'></Divider>
|
|
|
|
{/* {orderListMemo} */}
|
|
|
|
{orderListMemo}
|
|
|
|
<OrderList searchCriteria={searchCriteria} />
|
|
|
|
|
|
|
|
</>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|