|
|
|
@ -361,59 +361,73 @@ function OrderGroupTable({ formValues }) {
|
|
|
|
|
const paymentList = deptOrderList.filter((o) => {
|
|
|
|
|
return o.coli_ordertype === 8
|
|
|
|
|
})
|
|
|
|
|
deptItems.push(
|
|
|
|
|
{
|
|
|
|
|
key: index,
|
|
|
|
|
label: deptMap.get(deptNo),
|
|
|
|
|
children: <>
|
|
|
|
|
<Divider orientation='left'>新订单</Divider>
|
|
|
|
|
<Conditional
|
|
|
|
|
condition={newOrderList.length > 0}
|
|
|
|
|
whenTrue={<Table key={'newOrderTable' + deptNo} loading={loading} dataSource={newOrderList}
|
|
|
|
|
columns={orderColumns}
|
|
|
|
|
pagination={newOrderList.length <= 10 ? false : paginationProps} />}
|
|
|
|
|
whenFalse={<Empty />}
|
|
|
|
|
/>
|
|
|
|
|
if (formValues.type === 'advance') {
|
|
|
|
|
deptItems.push(
|
|
|
|
|
{
|
|
|
|
|
key: index,
|
|
|
|
|
label: deptMap.get(deptNo),
|
|
|
|
|
children: <>
|
|
|
|
|
<Table key={'advanceOrderTable' + deptNo} loading={loading} dataSource={deptOrderList}
|
|
|
|
|
columns={orderColumns}
|
|
|
|
|
pagination={deptOrderList.length <= 10 ? false : paginationProps} />
|
|
|
|
|
</>
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
} else {
|
|
|
|
|
deptItems.push(
|
|
|
|
|
{
|
|
|
|
|
key: index,
|
|
|
|
|
label: deptMap.get(deptNo),
|
|
|
|
|
children: <>
|
|
|
|
|
<Divider orientation='left'>新订单</Divider>
|
|
|
|
|
<Conditional
|
|
|
|
|
condition={newOrderList.length > 0}
|
|
|
|
|
whenTrue={<Table key={'newOrderTable' + deptNo} loading={loading} dataSource={newOrderList}
|
|
|
|
|
columns={orderColumns}
|
|
|
|
|
pagination={newOrderList.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={newMsgList.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={newMsgList.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={followUpList.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={followUpList.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={paymentList.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={paymentList.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={entryList.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={entryList.length <= 10 ? false : paginationProps} /> }
|
|
|
|
|
whenFalse={<Empty />}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
</>
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
</>
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|