|
|
@ -215,27 +215,42 @@ export const Documentsetting = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
//表单校验
|
|
|
|
export const DocumentsettingRules = reactive({ |
|
|
|
code: [ |
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
name: [ |
|
|
|
{ required: true, message: '请输入名称', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入名称', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
description: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
type: [ |
|
|
|
{ required: true, message: '请选择单据类型', trigger: 'change' } |
|
|
|
], |
|
|
|
businessType: [ |
|
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
numberPrefix: [ |
|
|
|
{ required: true, message: '请输入号码前缀', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入号码前缀', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
dateFormat: [ |
|
|
|
{ required: true, message: '请输入号码时间格式', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入号码时间格式', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
serialLength: [ |
|
|
|
{ required: true, message: '请输入号码流水长度', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入号码流水长度', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
resetPeriod: [ |
|
|
|
{ required: true, message: '请选择流水重置周期', trigger: 'change' } |
|
|
|
], |
|
|
|
separatorStr: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |