|
@ -5,10 +5,14 @@ import { LocationArea } from '../locationArea/locationArea.data' |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const LocationRules = reactive({ |
|
|
export const LocationRules = reactive({ |
|
|
number: [required], |
|
|
name: [ |
|
|
name: [required], |
|
|
{ required: true, message: '请输入库位名称', trigger: 'blur' }, |
|
|
areaNumber: [required], |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
concurrencyStamp: [required], |
|
|
], |
|
|
|
|
|
areaNumber: [ |
|
|
|
|
|
{ required: true, message: '请选择库区编号', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
@ -58,7 +62,7 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
dictType: DICT_TYPE.LOCATION_AREA_TYPE, |
|
|
dictType: DICT_TYPE.LOCATION_AREA_TYPE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
form: { |
|
|
form: { |
|
|
component: 'Select' |
|
|
component: 'Select' |
|
|
}, |
|
|
}, |
|
@ -68,7 +72,7 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'isInAccount', |
|
|
field: 'isInAccount', |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
@ -93,7 +97,7 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'available', |
|
|
field: 'available', |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|