修复BUG
This commit is contained in:
@@ -185,6 +185,7 @@ const StoreOrderPage: React.FC = () => {
|
||||
dataIndex: 'items',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
defaultHiddenInTable: true,
|
||||
width: 550,
|
||||
render: (_, record) => {
|
||||
return (
|
||||
@@ -212,7 +213,7 @@ const StoreOrderPage: React.FC = () => {
|
||||
hideInForm: true,
|
||||
hideInTable: true,
|
||||
fieldProps: {
|
||||
options: stores.map((s) => ({ label: s.name, value: s.id })),
|
||||
options: [{ label: '全部', value: '' }, ...stores.map((s) => ({ label: s.name, value: s.id }))],
|
||||
showSearch: true,
|
||||
optionFilterProp: 'label',
|
||||
},
|
||||
@@ -243,6 +244,15 @@ const StoreOrderPage: React.FC = () => {
|
||||
hideInForm: true,
|
||||
hideInTable: true,
|
||||
align: 'center',
|
||||
fieldProps: {
|
||||
presets: [
|
||||
{ label: '今天', value: [dayjs(), dayjs()] },
|
||||
{ label: '昨天', value: [dayjs().subtract(1, 'day'), dayjs().subtract(1, 'day')] },
|
||||
{ label: '前天', value: [dayjs().subtract(2, 'day'), dayjs().subtract(2, 'day')] },
|
||||
{ label: '本周', value: [dayjs().startOf('week'), dayjs().endOf('week')] },
|
||||
{ label: '本月', value: [dayjs().startOf('month'), dayjs().endOf('month')] },
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '附加信息',
|
||||
@@ -281,17 +291,32 @@ const StoreOrderPage: React.FC = () => {
|
||||
align: 'center',
|
||||
hideInTable: true,
|
||||
fieldProps: {
|
||||
options: Object.entries(STORE_ORDER_STATUS_MAP).map(([value, item]) => ({
|
||||
value: Number(value),
|
||||
label: item.text,
|
||||
})),
|
||||
options: [
|
||||
{ label: '全部', value: '' },
|
||||
...Object.entries(STORE_ORDER_STATUS_MAP).map(([value, item]) => ({
|
||||
value: Number(value),
|
||||
label: item.text,
|
||||
})),
|
||||
],
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '采购单号',
|
||||
dataIndex: 'purchase_no',
|
||||
valueType: 'text',
|
||||
hideInForm: true,
|
||||
hideInTable: true,
|
||||
fieldProps: {
|
||||
placeholder: '采购单号',
|
||||
allowClear: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '采购单',
|
||||
dataIndex: 'purchase_id',
|
||||
valueType: 'digit',
|
||||
hideInForm: true,
|
||||
hideInSearch: true,
|
||||
render: (_, record) => record.purchase ? (
|
||||
<Space orientation={'vertical'}>
|
||||
<div>
|
||||
@@ -393,6 +418,7 @@ const StoreOrderPage: React.FC = () => {
|
||||
tableRef,
|
||||
operateShow: false,
|
||||
formProps: false,
|
||||
searchDefaultOpen: true,
|
||||
rowSelection: {
|
||||
selectedRowKeys,
|
||||
onChange: (keys) => setSelectedRowKeys(keys),
|
||||
|
||||
Reference in New Issue
Block a user