|
|
|
@ -10,9 +10,9 @@ import {
|
|
|
|
|
DatePicker,
|
|
|
|
|
Empty,
|
|
|
|
|
Flex, Form, Input,
|
|
|
|
|
Radio, Row,
|
|
|
|
|
Radio, Row, Typography,
|
|
|
|
|
Select, Space, Switch, Table,
|
|
|
|
|
Tabs,
|
|
|
|
|
Tabs, Divider,
|
|
|
|
|
Tag, Tooltip
|
|
|
|
|
} from 'antd'
|
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
@ -21,6 +21,7 @@ import { Link } from 'react-router-dom'
|
|
|
|
|
import { useShallow } from 'zustand/react/shallow'
|
|
|
|
|
|
|
|
|
|
const { RangePicker } = DatePicker
|
|
|
|
|
const { Title } = Typography
|
|
|
|
|
|
|
|
|
|
const AdvanceSearchForm = memo(function noName({ initialValues, onSubmit }) {
|
|
|
|
|
|
|
|
|
@ -195,19 +196,16 @@ function OrderGroupTable({ formValues }) {
|
|
|
|
|
{
|
|
|
|
|
title: '订单状态',
|
|
|
|
|
dataIndex: 'COLI_State',
|
|
|
|
|
width: 120,
|
|
|
|
|
width: 140,
|
|
|
|
|
render: (text, record) => {
|
|
|
|
|
// 1新订单<InfoCircleTwoTone />;2未读消息<MessageTwoTone />;3需一催;4需二催;5需三催<PhoneTwoTone />;6未处理邮件<MailTwoTone />
|
|
|
|
|
const needTo = '要催信' + (record.coli_ordertype - 2)
|
|
|
|
|
let statusIcon = ''
|
|
|
|
|
if (record.coli_ordertype === 1) statusIcon = <Tooltip title='新订单'><InfoCircleTwoTone /></Tooltip>
|
|
|
|
|
else if (record.coli_ordertype === 2) statusIcon = <Tooltip title='新消息'><MessageTwoTone /></Tooltip>
|
|
|
|
|
else if (record.coli_ordertype === 3 || record.coli_ordertype === 4 || record.coli_ordertype === 5) statusIcon = <Tooltip title={needTo}><PhoneTwoTone /></Tooltip>
|
|
|
|
|
else if (record.coli_ordertype === 6) statusIcon = <Tooltip title='老邮件'><MailTwoTone /></Tooltip>
|
|
|
|
|
let extra = ''
|
|
|
|
|
if (record.coli_ordertype === 3 || record.coli_ordertype === 4 || record.coli_ordertype === 5) {
|
|
|
|
|
extra = '(' + (record.coli_ordertype - 2) + '催)'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Space>
|
|
|
|
|
{statusIcon}
|
|
|
|
|
{extra}
|
|
|
|
|
{text}
|
|
|
|
|
</Space>
|
|
|
|
|
)
|
|
|
|
@ -347,13 +345,73 @@ function OrderGroupTable({ formValues }) {
|
|
|
|
|
|
|
|
|
|
deptKeys.forEach((deptNo, index) => {
|
|
|
|
|
const deptOrderList = groupOrderData[deptNo]
|
|
|
|
|
// 1新订单;2未读消息;3需一催;4需二催;5需三催;6未处理邮件
|
|
|
|
|
const newOrderList = deptOrderList.filter((o) => {
|
|
|
|
|
return o.coli_ordertype === 1
|
|
|
|
|
})
|
|
|
|
|
const newMsgList = deptOrderList.filter((o) => {
|
|
|
|
|
return o.coli_ordertype === 2
|
|
|
|
|
})
|
|
|
|
|
const followUpList = deptOrderList.filter((o) => {
|
|
|
|
|
return o.coli_ordertype === 3 || o.coli_ordertype === 4 || o.coli_ordertype === 5
|
|
|
|
|
})
|
|
|
|
|
const paymentList = deptOrderList.filter((o) => {
|
|
|
|
|
return o.coli_ordertype === 1000
|
|
|
|
|
})
|
|
|
|
|
const entryList = deptOrderList.filter((o) => {
|
|
|
|
|
return o.coli_ordertype === 20000
|
|
|
|
|
})
|
|
|
|
|
deptItems.push(
|
|
|
|
|
{
|
|
|
|
|
key: index,
|
|
|
|
|
label: deptMap.get(deptNo),
|
|
|
|
|
children: <Table key={'Order Table' + deptNo} loading={loading} dataSource={deptOrderList}
|
|
|
|
|
columns={orderColumns}
|
|
|
|
|
pagination={deptOrderList.length <= 10 ? false : paginationProps} />
|
|
|
|
|
children: <>
|
|
|
|
|
<Divider orientation='left'>新订单</Divider>
|
|
|
|
|
<Conditional
|
|
|
|
|
condition={newOrderList.length > 0}
|
|
|
|
|
whenTrue={<Table key={'newOrderTable' + deptNo} loading={loading} dataSource={newOrderList}
|
|
|
|
|
columns={orderColumns}
|
|
|
|
|
pagination={deptOrderList.length <= 10 ? false : paginationProps} />}
|
|
|
|
|
whenFalse={<Empty />}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<Divider orientation='left'>新消息/老邮件</Divider>
|
|
|
|
|
<Conditional
|
|
|
|
|
condition={newMsgList.length > 0}
|
|
|
|
|
whenTrue={<Table key={'newMsgTable' + deptNo} loading={loading} dataSource={newMsgList}
|
|
|
|
|
columns={orderColumns}
|
|
|
|
|
pagination={deptOrderList.length <= 10 ? false : paginationProps} />}
|
|
|
|
|
whenFalse={<Empty />}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<Divider orientation='left'>催信</Divider>
|
|
|
|
|
<Conditional
|
|
|
|
|
condition={followUpList.length > 0}
|
|
|
|
|
whenTrue={<Table key={'followUpTable' + deptNo} loading={loading} dataSource={followUpList}
|
|
|
|
|
columns={orderColumns}
|
|
|
|
|
pagination={deptOrderList.length <= 10 ? false : paginationProps} />}
|
|
|
|
|
whenFalse={<Empty />}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<Divider orientation='left'>余款收付</Divider>
|
|
|
|
|
<Conditional
|
|
|
|
|
condition={paymentList.length > 0}
|
|
|
|
|
whenTrue={<Table key={'paymentTable' + deptNo} loading={loading} dataSource={paymentList}
|
|
|
|
|
columns={orderColumns}
|
|
|
|
|
pagination={deptOrderList.length <= 10 ? false : paginationProps} />}
|
|
|
|
|
whenFalse={<Empty />}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<Divider orientation='left'>入境提醒</Divider>
|
|
|
|
|
<Conditional
|
|
|
|
|
condition={entryList.length > 0}
|
|
|
|
|
whenTrue={<Table key={'entryTable' + deptNo} loading={loading} dataSource={entryList}
|
|
|
|
|
columns={orderColumns}
|
|
|
|
|
pagination={deptOrderList.length <= 10 ? false : paginationProps} /> }
|
|
|
|
|
whenFalse={<Empty />}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
</>
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|