供应商消息以及代码优化

This commit is contained in:
孙景学
2025-07-04 08:47:01 +08:00
parent 359559f61b
commit 87baa97ae1
8 changed files with 45 additions and 25 deletions

View File

@ -64,7 +64,7 @@ const SupplierMessage: React.FC = () => {
dataIndex: 'index',
key: 'index',
align: 'center',
width: 60,
width: 80,
render: (_: any, __: any, idx: number) => ((pagination.current! - 1) * pagination.pageSize!) + idx + 1,
},
{
@ -115,10 +115,10 @@ const SupplierMessage: React.FC = () => {
<>
<Form form={form} layout="inline" style={{ marginBottom: 12 }}>
<Form.Item name="content" label="消息内容">
<Input placeholder="请输入消息内容" style={{ width: 220 }} maxLength={50} />
<Input placeholder="请输入消息内容" style={{ width: 220 }} maxLength={50} allowClear />
</Form.Item>
<Form.Item name="type" label="业务类型">
<Select style={{ width: 200 }} placeholder="请选择业务类型">
<Select style={{ width: 200 }} placeholder="请选择业务类型" allowClear>
{messageTypeOptions.map(opt => (
<Select.Option key={opt.value} value={opt.value}>{opt.label}</Select.Option>
))}