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