|
@ -6,18 +6,17 @@ import { LocationArea } from '../locationArea/locationArea.data' |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const LocationRules = reactive({ |
|
|
export const LocationRules = reactive({ |
|
|
number: [ |
|
|
number: [ |
|
|
{ required: true, message: '请输入库位编号', trigger: 'blur' }, |
|
|
{ required: true, message: '请输入库位编号', trigger: 'blur' }, |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
name: [ |
|
|
name: [ |
|
|
{ required: true, message: '请输入库位名称', trigger: 'blur' }, |
|
|
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
areaNumber: [ |
|
|
areaNumber: [ |
|
|
{ required: true, message: '请选择库区编号', trigger: 'blur' }, |
|
|
{ required: true, message: '请选择库区编号', trigger: 'blur' }, |
|
|
], |
|
|
], |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
@ -43,6 +42,23 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'areaNumber', |
|
|
field: 'areaNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择库区编号', // 输入框占位文本
|
|
|
|
|
|
searchField: 'number', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '库区信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: LocationArea.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: LocationAreaApi.getLocationAreaPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: "TRUE", |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
@ -50,9 +66,9 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 170 |
|
|
width: 170 |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '描述', |
|
|
label: '描述', |
|
|