You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
163 lines
2.9 KiB
163 lines
2.9 KiB
1 year ago
|
import type {CrudSchema} from '@/hooks/web/useCrudSchemas'
|
||
|
import {dateFormatter} from '@/utils/formatTime'
|
||
|
|
||
|
// 表单校验
|
||
|
export const MesOrderMonthSubRules = reactive({
|
||
|
productCode: [required],
|
||
|
productName: [required],
|
||
|
bomCode: [required],
|
||
|
inStoreCode: [required],
|
||
|
planBegin: [required],
|
||
|
planEnd: [required],
|
||
|
planCount: [required],
|
||
|
productBatchcode: [required]
|
||
|
})
|
||
|
|
||
|
export const MesOrderMonthSub = useCrudSchemas(reactive<CrudSchema[]>([
|
||
|
{
|
||
|
label: '产品编码',
|
||
|
field: 'productCode',
|
||
|
sort: 'custom',
|
||
|
isTable: false,
|
||
|
isSearch: true,
|
||
|
form: {
|
||
|
component: 'SelectV2'
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
label: '产品名称',
|
||
|
field: 'productName',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
isForm: false
|
||
|
},
|
||
|
{
|
||
|
label: 'BOM编号',
|
||
|
field: 'bomCode',
|
||
|
sort: 'custom',
|
||
|
isTable: false,
|
||
|
isSearch: true
|
||
|
},
|
||
|
{
|
||
|
label: '入库仓库编码',
|
||
|
field: 'inStoreCode',
|
||
|
sort: 'custom',
|
||
|
isSearch: true
|
||
|
},
|
||
|
{
|
||
|
label: '计划数量',
|
||
|
field: 'planCount',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
form: {
|
||
|
component: 'InputNumber',
|
||
|
value: 0
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
label: '完成数量',
|
||
|
field: 'finishCount',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
form: {
|
||
|
component: 'InputNumber',
|
||
|
value: 0
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
label: '合格数量',
|
||
|
field: 'qualifiedCount',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
form: {
|
||
|
component: 'InputNumber',
|
||
|
value: 0
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
label: '不合格数量',
|
||
|
field: 'unqualifiedCount',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
form: {
|
||
|
component: 'InputNumber',
|
||
|
value: 0
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
label: '是否回冲',
|
||
|
field: 'flagBackwash',
|
||
|
sort: 'custom',
|
||
|
isSearch: true
|
||
|
},
|
||
|
{
|
||
|
label: '产品批次号',
|
||
|
field: 'productBatchcode',
|
||
|
sort: 'custom',
|
||
|
isSearch: true
|
||
|
}, {
|
||
|
label: '创建时间',
|
||
|
field: 'createTime',
|
||
|
sort: 'custom',
|
||
|
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')]
|
||
|
}
|
||
|
},
|
||
|
isForm: false
|
||
|
},
|
||
|
{
|
||
|
label: '计划开始日期',
|
||
|
field: 'planBegin',
|
||
|
sort: 'custom',
|
||
|
isSearch: true
|
||
|
},
|
||
|
{
|
||
|
label: '计划结束日期',
|
||
|
field: 'planEnd',
|
||
|
sort: 'custom',
|
||
|
isSearch: true
|
||
|
},
|
||
|
{
|
||
|
label: '实际开工日期',
|
||
|
field: 'realStart',
|
||
|
sort: 'custom',
|
||
|
isSearch: true
|
||
|
},
|
||
|
{
|
||
|
label: '实际完工日期',
|
||
|
field: 'realFinish',
|
||
|
sort: 'custom',
|
||
|
isSearch: true
|
||
|
},
|
||
|
{
|
||
|
label: '备注',
|
||
|
field: 'remark',
|
||
|
sort: 'custom',
|
||
|
isTable: false
|
||
|
},
|
||
|
{
|
||
|
label: '状态',
|
||
|
field: 'status',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
form: {
|
||
|
component: 'Radio'
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
label: '操作',
|
||
|
field: 'action',
|
||
|
isForm: false,
|
||
|
table: {
|
||
|
width: 150,
|
||
|
fixed: 'right'
|
||
|
}
|
||
|
}
|
||
|
]))
|