feat(@vben/web-antd): erp-优化采购订单表单布局和功能

- 添加订单单号字段并设置为只读
- 将附件上传组件替换为 FileUpload
- 新增产品清单字段
- 调整表单项的布局和样式
- 优化订单产品清单的展示方式
This commit is contained in:
nehc
2025-07-24 17:13:15 +08:00
parent 83010b6590
commit e319888240
3 changed files with 49 additions and 24 deletions

View File

@@ -12,6 +12,15 @@ import { DICT_TYPE, getDictOptions } from '#/utils';
/** 表单的配置项 */
export function useFormSchema(): VbenFormSchema[] {
return [
{
component: 'Input',
componentProps: {
placeholder: '系统自动生成',
disabled: true,
},
fieldName: 'no',
label: '订单单号',
},
{
component: 'ApiSelect',
componentProps: {
@@ -50,17 +59,35 @@ export function useFormSchema(): VbenFormSchema[] {
},
fieldName: 'remark',
label: '备注',
formItemClass: 'col-span-2',
formItemClass: 'col-span-3',
},
{
component: 'Input',
component: 'FileUpload',
componentProps: {
placeholder: '请输入附件地址',
class: 'w-full',
maxNumber: 5,
maxSize: 10,
accept: [
'pdf',
'doc',
'docx',
'xls',
'xlsx',
'txt',
'jpg',
'jpeg',
'png',
],
showDescription: true,
},
fieldName: 'fileUrl',
label: '附件',
formItemClass: 'col-span-2',
formItemClass: 'col-span-3',
},
{
fieldName: 'product',
label: '产品清单',
component: 'Input',
formItemClass: 'col-span-3',
},
{
component: 'InputNumber',
@@ -214,6 +241,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
placeholder: '请输入订单单号',
allowClear: true,
disabled: true,
},
},
{