You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @returns {Array} 库位容量
|
|
|
|
*/
|
|
|
|
export const Locationcapacity = useCrudSchemas(reactive<CrudSchema[]>([
|
|
|
|
{
|
|
|
|
label: '库位代码',
|
|
|
|
field: 'locationCode',
|
|
|
|
sort: 'custom',
|
|
|
|
isSearch: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '仓库代码',
|
|
|
|
field: 'warehouseCode',
|
|
|
|
sort: 'custom',
|
|
|
|
isSearch: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '已用容量百分比',
|
|
|
|
field: 'usedCapacity',
|
|
|
|
sort: 'custom',
|
|
|
|
isSearch: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '可用容量百分比',
|
|
|
|
field: 'availableCapacity',
|
|
|
|
sort: 'custom',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '可承受过载容量百分比',
|
|
|
|
field: 'bearableOverloadCapacity',
|
|
|
|
sort: 'custom',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '是否无限容量',
|
|
|
|
field: 'isInfinity',
|
|
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
|
|
dictClass: 'string',
|
|
|
|
isSearch: true,
|
|
|
|
isTable: true,
|
|
|
|
sort: 'custom',
|
|
|
|
form: {
|
|
|
|
component: 'Switch',
|
|
|
|
value: 'TRUE',
|
|
|
|
componentProps: {
|
|
|
|
inactiveValue: 'FALSE',
|
|
|
|
activeValue: 'TRUE'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]))
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const LocationcapacityRules = reactive({
|
|
|
|
locationCode: [
|
|
|
|
{ required: true, message: '请选择库位代码', trigger: 'change' }
|
|
|
|
],
|
|
|
|
usedCapacity: [
|
|
|
|
{ required: true, message: '请输入已用容量百分比', trigger: 'blur' }
|
|
|
|
],
|
|
|
|
availableCapacity: [
|
|
|
|
{ required: true, message: '请输入可用容量百分比', trigger: 'blur' }
|
|
|
|
],
|
|
|
|
bearableOverloadCapacity: [
|
|
|
|
{ required: true, message: '请输入可承受过载容量百分比', trigger: 'blur' }
|
|
|
|
],
|
|
|
|
isInfinity: [
|
|
|
|
{ required: true, message: '请选择是否无限容量', trigger: 'change' }
|
|
|
|
],
|
|
|
|
})
|