|
|
@ -437,76 +437,80 @@ export const rules = reactive({ |
|
|
|
{ validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} |
|
|
|
], |
|
|
|
name: [ |
|
|
|
{ required: true, message: '请输入名称', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入名称', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
], |
|
|
|
desc1: [ |
|
|
|
{ required: true, message: '请输入描述1', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入描述1', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
], |
|
|
|
desc2: [ |
|
|
|
{ required: true, message: '请输入描述2', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入描述2', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
], |
|
|
|
status: [ |
|
|
|
{ required: true, message: '请选择状态', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择状态', trigger: 'change' }, |
|
|
|
], |
|
|
|
uom: [ |
|
|
|
{ required: true, message: '请选择计量单位', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择计量单位', trigger: 'change' }, |
|
|
|
], |
|
|
|
altUom: [ |
|
|
|
{ required: true, message: '请选择替代计量单位', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择替代计量单位', trigger: 'change' }, |
|
|
|
], |
|
|
|
isStdPack: [ |
|
|
|
{ required: true, message: '请选择是否标包', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择是否标包', trigger: 'change' }, |
|
|
|
], |
|
|
|
enableBuy: [ |
|
|
|
{ required: true, message: '请选择是否可采购', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择是否可采购', trigger: 'change' }, |
|
|
|
], |
|
|
|
enableMake: [ |
|
|
|
{ required: true, message: '请选择是否可制造', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择是否可制造', trigger: 'change' }, |
|
|
|
], |
|
|
|
enableOutsourcing: [ |
|
|
|
{ required: true, message: '请选择是否可委外加工', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择是否可委外加工', trigger: 'change' }, |
|
|
|
], |
|
|
|
isRecycled: [ |
|
|
|
{ required: true, message: '请选择回收件', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择回收件', trigger: 'change' }, |
|
|
|
], |
|
|
|
isPhantom: [ |
|
|
|
{ required: true, message: '请选择虚零件', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择虚零件', trigger: 'change' }, |
|
|
|
], |
|
|
|
abcClass: [ |
|
|
|
{ required: true, message: '请选择ABC类', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择ABC类', trigger: 'change' }, |
|
|
|
], |
|
|
|
type: [ |
|
|
|
{ required: true, message: '请选择类型', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择类型', trigger: 'change' }, |
|
|
|
], |
|
|
|
category: [ |
|
|
|
{ required: true, message: '请选择种类', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择种类', trigger: 'change' }, |
|
|
|
], |
|
|
|
itemGroup: [ |
|
|
|
{ required: true, message: '请选择分组', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择分组', trigger: 'change' }, |
|
|
|
], |
|
|
|
color: [ |
|
|
|
{ required: true, message: '请选择颜色', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择颜色', trigger: 'change' }, |
|
|
|
], |
|
|
|
configuration: [ |
|
|
|
{ required: true, message: '请选择配置', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择配置', trigger: 'change' }, |
|
|
|
], |
|
|
|
project: [ |
|
|
|
{ required: true, message: '请输入项目', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入项目', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
], |
|
|
|
eqLevel: [ |
|
|
|
{ required: true, message: '请选择质量等级', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择质量等级', trigger: 'change' }, |
|
|
|
], |
|
|
|
validityDays: [ |
|
|
|
{ required: true, message: '请输入有效天数', trigger: 'change' } |
|
|
|
{ required: true, message: '请输入有效天数', trigger: 'change' }, |
|
|
|
], |
|
|
|
available: [ |
|
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }, |
|
|
|
], |
|
|
|
activeTime: [ |
|
|
|
{ required: true, message: '请输入生效时间', trigger: 'change' } |
|
|
|
{ required: true, message: '请输入生效时间', trigger: 'change' }, |
|
|
|
], |
|
|
|
expireTime: [ |
|
|
|
{ required: true, message: '请输入失效时间', trigger: 'change' } |
|
|
|
{ required: true, message: '请输入失效时间', trigger: 'change' }, |
|
|
|
], |
|
|
|
}) |
|
|
|
console.log(Itembasic) |