|
@ -1,32 +1,32 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const ItemcodeConsumeRecordRules = reactive({ |
|
|
export const ItemcodeConsumeRecordRules = reactive({}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
export const ItemcodeConsumeRecord = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const ItemcodeConsumeRecord = useCrudSchemas( |
|
|
|
|
|
reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '供应商代码', |
|
|
label: '供应商代码', |
|
|
field: 'supplierCode', |
|
|
field: 'supplierCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '品番', |
|
|
label: '品番', |
|
|
field: 'itemCode', |
|
|
field: 'itemCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '受入号', |
|
|
label: '受入号', |
|
|
field: 'model', |
|
|
field: 'model', |
|
|
sort: 'custom', |
|
|
sort: 'custom' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '数量', |
|
|
label: '数量', |
|
|
field: 'qty', |
|
|
field: 'qty', |
|
|
sort: 'custom', |
|
|
sort: 'custom' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '消耗时间', |
|
|
label: '消耗时间', |
|
@ -39,7 +39,20 @@ export const ItemcodeConsumeRecord = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
valueFormat: 'x' |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '日期', |
|
|
|
|
|
field: 'deliDate', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
formatter: dateFormatter2, |
|
|
|
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '便次', |
|
|
|
|
|
field: 'deliNo', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '业务类型', |
|
|
label: '业务类型', |
|
@ -47,13 +60,13 @@ export const ItemcodeConsumeRecord = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
form: { |
|
|
form: { |
|
|
component: 'SelectV2' |
|
|
component: 'SelectV2' |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '发料记录号', |
|
|
label: '发料记录号', |
|
|
field: 'issueRecordNumber', |
|
|
field: 'issueRecordNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否生成', |
|
|
label: '是否生成', |
|
@ -65,19 +78,28 @@ export const ItemcodeConsumeRecord = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '备注', |
|
|
field: 'remark', |
|
|
field: 'remark', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom' |
|
|
}, |
|
|
}, |
|
|
// {
|
|
|
// {
|
|
|
// label: '是否可用默认TRUE',
|
|
|
// label: '是否可用默认TRUE',
|
|
|
// field: 'available',
|
|
|
// field: 'available',
|
|
|
// sort: 'custom',
|
|
|
// sort: 'custom',
|
|
|
// },
|
|
|
// },
|
|
|
|
|
|
{ |
|
|
|
|
|
label: '创建者', |
|
|
|
|
|
field: 'creator', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: false |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
|
field: 'createTime', |
|
|
field: 'createTime', |
|
@ -98,7 +120,7 @@ export const ItemcodeConsumeRecord = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
valueFormat: 'x' |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
} |
|
|
// {
|
|
|
// {
|
|
|
// label: '操作',
|
|
|
// label: '操作',
|
|
|
// field: 'action',
|
|
|
// field: 'action',
|
|
@ -108,4 +130,5 @@ export const ItemcodeConsumeRecord = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
// fixed: 'right'
|
|
|
// fixed: 'right'
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
])) |
|
|
]) |
|
|
|
|
|
) |
|
|