调整列宽,格式化日期时间

dev/mobile
Jimmy 2 years ago
parent d44cd84a38
commit a3be35ca02

@ -188,10 +188,11 @@ function OrderGroupTable({ formValues }) {
if (record.buytime > 0) regularText = '(R' + record.buytime + ')'
return (
<Space>
{isNotEmpty(record.coli_guest_WhatsApp) && <WhatsAppOutlined className={['pl-1', record.last_received_time ? 'text-whatsapp' : 'text-neutral-500']} />}
<Tooltip title={record.coli_guest_WhatsApp}>
<Conditional
condition={isNotEmpty(record.coli_guest_WhatsApp)}
whenTrue={<Tooltip title={record.coli_guest_WhatsApp}><WhatsAppOutlined className={['pl-1', record.last_received_time ? 'text-whatsapp' : 'text-neutral-500']} /></Tooltip>}
/>
{text + regularText}
</Tooltip>
<Badge
count={record.unread_msg}
style={{
@ -205,7 +206,7 @@ function OrderGroupTable({ formValues }) {
{
title: '订单状态',
dataIndex: 'COLI_State',
width: 150,
width: 120,
render: (text, record) => {
// 1<InfoCircleTwoTone />2<MessageTwoTone />345<PhoneTwoTone />6<MailTwoTone />
const needTo = '要催信' + (record.coli_ordertype - 2)
@ -224,23 +225,35 @@ function OrderGroupTable({ formValues }) {
}
},
{
title: '报价title',
title: '报价 Title',
dataIndex: 'lettertitle',
ellipsis: true,
hidden: false
hidden: false,
// render: (text, record) => {
// return (
// <Tooltip title={text}>{text}</Tooltip>
// )
// }
},
{
title: '出发日期',
dataIndex: 'COLI_OrderStartDate',
width: 150,
width: 120,
hidden: false
},
{
title: '客人最后一次回复时间',
dataIndex: 'last_received_time',
width: 180,
render: (text, record) => {
if (record.last_received_time) {
return new dayjs(record.last_received_time).format('YYYY-MM-DD HH:mm:ss')
}
}
},
{
title: '附加信息',
ellipsis: true,
dataIndex: 'COLI_Introduction',
},
]

Loading…
Cancel
Save