Browse Source

Merge branch 'intex' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into intex

intex_online20250410
王宇飞 2 weeks ago
parent
commit
4911058d93
  1. 223
      src/views/wms/issueManage/itemcodeConsumeRecord/itemcodeConsumeRecord.data.ts

223
src/views/wms/issueManage/itemcodeConsumeRecord/itemcodeConsumeRecord.data.ts

@ -1,111 +1,134 @@
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: '供应商代码', {
field: 'supplierCode', label: '供应商代码',
sort: 'custom', field: 'supplierCode',
isSearch: true, sort: 'custom',
}, isSearch: true
{ },
label: '品番', {
field: 'itemCode', label: '品番',
sort: 'custom', field: 'itemCode',
isSearch: true, sort: 'custom',
}, isSearch: true
{ },
label: '受入号', {
field: 'model', label: '受入号',
sort: 'custom', field: 'model',
}, sort: 'custom'
{ },
label: '数量', {
field: 'qty', label: '数量',
sort: 'custom', field: 'qty',
}, sort: 'custom'
{ },
label: '消耗时间', {
field: 'consumeTime', label: '消耗时间',
sort: 'custom', field: 'consumeTime',
formatter: dateFormatter, sort: 'custom',
form: { formatter: dateFormatter,
component: 'DatePicker', form: {
componentProps: { component: 'DatePicker',
type: 'datetime', componentProps: {
valueFormat: 'x' type: 'datetime',
valueFormat: 'x'
}
}
},
{
label: '日期',
field: 'deliDate',
sort: 'custom',
formatter: dateFormatter2,
isForm: false
},
{
label: '便次',
field: 'deliNo',
sort: 'custom',
isSearch: true
},
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
form: {
component: 'SelectV2'
} }
}, },
}, {
{ label: '发料记录号',
label: '业务类型', field: 'issueRecordNumber',
field: 'businessType', sort: 'custom',
sort: 'custom', isSearch: true
form: { },
component: 'SelectV2' {
}, label: '是否生成',
}, field: 'isGenerate',
{ dictType: DICT_TYPE.TRUE_FALSE,
label: '发料记录号', dictClass: 'string',
field: 'issueRecordNumber', isSearch: true,
sort: 'custom', isTable: true,
isSearch: true, sort: 'custom',
}, table: {
{ width: 150
label: '是否生成', }
field: 'isGenerate',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch:true,
isTable: true,
sort: 'custom',
table: {
width: 150
}, },
}, {
{ label: '备注',
label: '备注', field: 'remark',
field: 'remark', isSearch: true,
isSearch:true, sort: 'custom'
sort: 'custom',
},
// {
// label: '是否可用默认TRUE',
// field: 'available',
// sort: 'custom',
// },
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom', // {
table: { // label: '是否可用默认TRUE',
width: 180 // field: 'available',
// sort: 'custom',
// },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isForm: false
}, },
hiddenInMain: true, {
form: { label: '创建时间',
component: 'DatePicker', field: 'createTime',
componentProps: { formatter: dateFormatter,
type: 'datetime', detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss'
valueFormat: 'x' },
sort: 'custom',
table: {
width: 180
},
hiddenInMain: true,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
} }
} }
}, // {
// { // label: '操作',
// label: '操作', // field: 'action',
// field: 'action', // isForm: false,
// isForm: false, // table: {
// table: { // width: 150,
// width: 150, // fixed: 'right'
// fixed: 'right' // }
// } // }
// } ])
])) )

Loading…
Cancel
Save