|
|
@ -1,19 +1,23 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import * as LocationAreaApi from '@/api/eam/basic/locationArea' |
|
|
|
import { LocationArea } from '@/views/eam/basic/locationArea/locationArea.data' |
|
|
|
|
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import * as LocationApi from '@/api/eam/basic/location' |
|
|
|
import { Location } from '@/views/eam/basic/location/location.data' |
|
|
|
|
|
|
|
import { validateNumber } from '@/utils/validator' |
|
|
|
// 表单校验
|
|
|
|
export const ItemOutLocationRules = reactive({ |
|
|
|
// number: [required],
|
|
|
|
itemNumber: [required], |
|
|
|
qty: [required], |
|
|
|
locationNumber: [required], |
|
|
|
qty: [ |
|
|
|
required, |
|
|
|
{ validator: validateNumber, message: '数量不能等于0', trigger: 'blur' }, |
|
|
|
], |
|
|
|
locationNumber: [required] |
|
|
|
}) |
|
|
|
|
|
|
|
export const ItemOutLocation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const ItemOutLocation = useCrudSchemas( |
|
|
|
reactive<CrudSchema[]>([ |
|
|
|
// {
|
|
|
|
// label: '编号',
|
|
|
|
// field: 'number',
|
|
|
@ -116,7 +120,7 @@ export const ItemOutLocation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '领用人', |
|
|
|
field: 'receiver', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isSearch: false |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '出库类型',
|
|
|
@ -142,6 +146,22 @@ export const ItemOutLocation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
search: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
type: 'daterange', |
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|
field: 'action', |
|
|
@ -152,4 +172,5 @@ export const ItemOutLocation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
fixed: 'right' |
|
|
|
} |
|
|
|
} |
|
|
|
])) |
|
|
|
]) |
|
|
|
) |
|
|
|