|
|
@ -6,6 +6,7 @@ export const MesBarCodeRules = reactive({ |
|
|
|
available: [required], |
|
|
|
lowerLim: [required], |
|
|
|
partNumber: [required], |
|
|
|
available: [{ required: true, message: '是否可用不能为空', trigger: 'change' }] |
|
|
|
}) |
|
|
|
|
|
|
|
export const MesBarCode = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
@ -166,9 +167,19 @@ export const MesBarCode = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|