优化采购单
This commit is contained in:
@@ -37,6 +37,7 @@ import { getStoreOptions } from '@/api/customer/store.ts';
|
||||
import type IStore from '@/domain/iStore.ts';
|
||||
import AuthButton from '@/components/AuthButton';
|
||||
import { DeleteOutlined, SettingOutlined, UnorderedListOutlined } from '@ant-design/icons';
|
||||
import {PURCHASE_STATUS_MAP} from "@/domain/iPurchaseOrder.ts";
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
|
||||
@@ -344,10 +345,28 @@ const StoreOrderPage: React.FC = () => {
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '采购单ID',
|
||||
title: '采购单',
|
||||
dataIndex: 'purchase_id',
|
||||
valueType: 'digit',
|
||||
hideInForm: true,
|
||||
render: (_, record) => record.purchase ? (
|
||||
<Space orientation={'vertical'}>
|
||||
<div>
|
||||
<Text type={'secondary'}>采购单号:</Text>
|
||||
{record.purchase.purchase_no}
|
||||
</div>
|
||||
<div>
|
||||
<Text type={'secondary'}>采购单日期:</Text>
|
||||
{record.purchase.purchase_date}
|
||||
</div>
|
||||
<div>
|
||||
<Text type={'secondary'}>采购单状态:</Text>
|
||||
<Tag color={PURCHASE_STATUS_MAP[record.purchase.status ?? 0]?.color}>
|
||||
{PURCHASE_STATUS_MAP[record.purchase.status ?? 0]?.text}
|
||||
</Tag>
|
||||
</div>
|
||||
</Space>
|
||||
) : '-'
|
||||
},
|
||||
{
|
||||
title: '账单ID',
|
||||
|
||||
Reference in New Issue
Block a user