import type { CrudSchema } from '@/hooks/web/useCrudSchemas' // 表单校验 export const ItemInLocationRules = reactive({ number: [required], itemNumber: [required], locationNumber: [required], }) export const ItemInLocation = useCrudSchemas(reactive([ { 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' } } ]))