|
|
|
@ -96,19 +96,17 @@ function OrderList({ formValues }) {
|
|
|
|
|
{
|
|
|
|
|
title: '订单号',
|
|
|
|
|
dataIndex: 'COLI_ID',
|
|
|
|
|
key: 'COLI_ID',
|
|
|
|
|
width: 222,
|
|
|
|
|
render: (text, record) => {
|
|
|
|
|
if (record.COLI_LineGrade === 240003) return <Space size='middle'>{text}<Tag color='red'>重点</Tag></Space>
|
|
|
|
|
else if (record.COLI_LineGrade === 240002) return <Space size='middle'>{text}<Tag color='green'>潜力</Tag></Space>
|
|
|
|
|
else if (record.COLI_LineGrade === 240001) return <Space size='middle'>{text}<Tag color='blue'>休眠</Tag></Space>
|
|
|
|
|
else return <Space size='middle'>{text}</Space>
|
|
|
|
|
render: (text, record, index) => {
|
|
|
|
|
if (record.COLI_LineGrade === 240003) return <Space key={record.COLI_ID + index} size='middle'>{text}<Tag color='red'>重点</Tag></Space>
|
|
|
|
|
else if (record.COLI_LineGrade === 240002) return <Space key={record.COLI_ID + index} size='middle'>{text}<Tag color='green'>潜力</Tag></Space>
|
|
|
|
|
else if (record.COLI_LineGrade === 240001) return <Space key={record.COLI_ID + index} size='middle'>{text}<Tag color='blue'>休眠</Tag></Space>
|
|
|
|
|
else return <Space key={record.COLI_ID + index} size='middle'>{text}</Space>
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '客人姓名',
|
|
|
|
|
dataIndex: 'coli_guest',
|
|
|
|
|
key: 'coli_guest',
|
|
|
|
|
render: (text, record) => {
|
|
|
|
|
let regularText = ''
|
|
|
|
|
if (record.buytime > 0) regularText = '(R' + record.buytime + ')'
|
|
|
|
@ -128,7 +126,6 @@ function OrderList({ formValues }) {
|
|
|
|
|
{
|
|
|
|
|
title: '订单状态',
|
|
|
|
|
dataIndex: 'COLI_State',
|
|
|
|
|
key: 'COLI_State',
|
|
|
|
|
width: 120,
|
|
|
|
|
render: (text, record) => {
|
|
|
|
|
let extra = ''
|
|
|
|
@ -141,18 +138,15 @@ function OrderList({ formValues }) {
|
|
|
|
|
{
|
|
|
|
|
title: '报价title',
|
|
|
|
|
dataIndex: 'lettertitle',
|
|
|
|
|
key: 'lettertitle',
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '客人最后一次回复时间',
|
|
|
|
|
dataIndex: 'last_received_time',
|
|
|
|
|
key: 'last_received_time',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '附加信息',
|
|
|
|
|
dataIndex: 'COLI_Introduction',
|
|
|
|
|
key: 'COLI_Introduction',
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
const { notification } = App.useApp()
|
|
|
|
@ -166,7 +160,7 @@ function OrderList({ formValues }) {
|
|
|
|
|
.then(response => response.json())
|
|
|
|
|
.then(json => {
|
|
|
|
|
if (json.errcode === 0) {
|
|
|
|
|
setOrderData([...json.result])
|
|
|
|
|
setOrderData(json.result.map((order) => { return {...order, key: order.COLI_ID}}))
|
|
|
|
|
} else {
|
|
|
|
|
notification.error({
|
|
|
|
|
message: '查询出错',
|
|
|
|
@ -188,7 +182,7 @@ function OrderList({ formValues }) {
|
|
|
|
|
}, [formValues])
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Table loading={loading} dataSource={orderData} columns={orderColumns} />
|
|
|
|
|
<Table key='Order Table' loading={loading} dataSource={orderData} columns={orderColumns} />
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
function OrderFollow() {
|
|
|
|
|