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.
53 lines
940 B
53 lines
940 B
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
|
|
|
// 表单校验
|
|
export const ItemInLocationRules = reactive({
|
|
number: [required],
|
|
itemNumber: [required],
|
|
locationNumber: [required],
|
|
})
|
|
|
|
export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '入库编号',
|
|
field: 'number',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '备件编号',
|
|
field: 'itemNumber',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '库位编号',
|
|
field: 'locationNumber',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '入库类型',
|
|
field: 'type',
|
|
sort: 'custom',
|
|
isSearch: false,
|
|
form: {
|
|
component: 'Select'
|
|
},
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty',
|
|
sort: 'custom',
|
|
isSearch: false,
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isForm: false,
|
|
table: {
|
|
width: 150,
|
|
fixed: 'right'
|
|
}
|
|
}
|
|
]))
|
|
|