只有今日任务才分组订单

dev/timezone
Jimmy Liow 1 year ago
parent 90b8e5de40
commit 90b0d78184

@ -361,19 +361,7 @@ function OrderGroupTable({ formValues }) {
const paymentList = deptOrderList.filter((o) => { const paymentList = deptOrderList.filter((o) => {
return o.coli_ordertype === 8 return o.coli_ordertype === 8
}) })
if (formValues.type === 'advance') { if (formValues.type === 'today') {
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( deptItems.push(
{ {
key: index, key: index,
@ -427,6 +415,18 @@ function OrderGroupTable({ formValues }) {
</> </>
} }
) )
} else {
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} />
</>
}
)
} }
}) })

Loading…
Cancel
Save