|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
|
|
|
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const MesRawMaterialConsumptionInfo = useCrudSchemas(reactive<CrudSchema[]>([
|
|
|
|
{
|
|
|
|
label: '成品包装号',
|
|
|
|
field: 'finishedPackingNumber',
|
|
|
|
sort: 'custom',
|
|
|
|
isSearch: true,
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '成品批次',
|
|
|
|
field: 'finishedBatch',
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
isSearch: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '成品物料代码',
|
|
|
|
field: 'finishedItemCode',
|
|
|
|
sort: 'custom',
|
|
|
|
isSearch: true,
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '成品创建时间',
|
|
|
|
field: 'finishedCreateTime',
|
|
|
|
formatter: dateFormatter,
|
|
|
|
isSearch: true,
|
|
|
|
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')]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
detail: {
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
|
|
},
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 180
|
|
|
|
},
|
|
|
|
form: {
|
|
|
|
component: 'DatePicker',
|
|
|
|
componentProps: {
|
|
|
|
type: 'datetime',
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
valueFormat: 'x',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '成品创建人',
|
|
|
|
field: 'finishedCreator',
|
|
|
|
sort: 'custom',
|
|
|
|
isTable: true,
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '唯一码',
|
|
|
|
field: 'remark',
|
|
|
|
sort: 'custom',
|
|
|
|
isSearch: true,
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '客户物料号',
|
|
|
|
field: 'customerItemCode',
|
|
|
|
sort: 'custom',
|
|
|
|
isSearch: true,
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '原料包装号',
|
|
|
|
field: 'packingNumber',
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '原料旧包装号',
|
|
|
|
field: 'oldPackingNumber',
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '原料批次',
|
|
|
|
field: 'batch',
|
|
|
|
sort: 'custom',
|
|
|
|
isSearch: true,
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '原料主表ID',
|
|
|
|
field: 'masterId',
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '原料单据号',
|
|
|
|
field: 'number',
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '原料物品代码',
|
|
|
|
field: 'itemCode',
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '原料物品名称',
|
|
|
|
field: 'itemName',
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '原料外部零件号',
|
|
|
|
field: 'outsideItemCode',
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '原料外部生产日期',
|
|
|
|
field: 'outsideProduceDate',
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '原料外部流水号',
|
|
|
|
field: 'outsideSerialNumber',
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '创建人',
|
|
|
|
field: 'creator',
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '创建时间',
|
|
|
|
field: 'createTime',
|
|
|
|
formatter: dateFormatter,
|
|
|
|
sort: 'custom',
|
|
|
|
table: {
|
|
|
|
width: 150
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]))
|