|
|
@ -1,5 +1,5 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const RepleinshItemCodeConsumeRecordRules = reactive({ |
|
|
@ -23,11 +23,11 @@ export const RepleinshItemCodeConsumeRecord = useCrudSchemas(reactive<CrudSchema |
|
|
|
field: 'qty', |
|
|
|
sort: 'custom', |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单位', |
|
|
|
field: 'uom', |
|
|
|
sort: 'custom', |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '单位',
|
|
|
|
// field: 'uom',
|
|
|
|
// sort: 'custom',
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '车间代码', |
|
|
|
field: 'workshop', |
|
|
@ -87,6 +87,19 @@ export const RepleinshItemCodeConsumeRecord = useCrudSchemas(reactive<CrudSchema |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '日期', |
|
|
|
field: 'deliDate', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter2, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '便次', |
|
|
|
field: 'deliNo', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '业务类型', |
|
|
|
field: 'businessType', |
|
|
@ -120,6 +133,15 @@ export const RepleinshItemCodeConsumeRecord = useCrudSchemas(reactive<CrudSchema |
|
|
|
// field: 'available',
|
|
|
|
// sort: 'custom',
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
@ -140,7 +162,7 @@ export const RepleinshItemCodeConsumeRecord = useCrudSchemas(reactive<CrudSchema |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
// {
|
|
|
|
// label: '操作',
|
|
|
|
// field: 'action',
|
|
|
|