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.
70 lines
1.2 KiB
70 lines
1.2 KiB
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
// 表单校验
|
|
export const ItemOutLocationRules = reactive({
|
|
number: [required],
|
|
itemNumber: [required],
|
|
locationNumber: [required],
|
|
})
|
|
|
|
export const ItemOutLocation = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '出库编号',
|
|
field: 'number',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '备件名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '库位编号',
|
|
field: 'locationNumber',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch',
|
|
sort: 'custom',
|
|
isSearch: false,
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
sort: 'custom',
|
|
isSearch: false,
|
|
dictType: DICT_TYPE.ITEM_OUT_IN_TYPE,
|
|
dictClass: 'string',
|
|
form: {
|
|
component: 'Select'
|
|
},
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty',
|
|
sort: 'custom',
|
|
isSearch: false,
|
|
},
|
|
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
sort: 'custom',
|
|
formatter: dateFormatter,
|
|
isTable: true,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isForm: false,
|
|
table: {
|
|
fixed: 'right'
|
|
}
|
|
}
|
|
]))
|
|
|