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.
143 lines
2.5 KiB
143 lines
2.5 KiB
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
// 表单校验
|
|
export const WorkSchedulingRules = reactive({
|
|
})
|
|
|
|
export const WorkScheduling = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '主键',
|
|
field: 'id',
|
|
sort: 'custom',
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
isForm: false,
|
|
},
|
|
{
|
|
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: 'planMaserCode',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '任务编号',
|
|
field: 'schedulingCode',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '产品编号',
|
|
field: 'productCode',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '车间',
|
|
field: 'workroomCode',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '产线',
|
|
field: 'lineCode',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '工艺路线',
|
|
field: 'prouteCode',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '计划数量',
|
|
field: 'planCount',
|
|
sort: 'custom',
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '完工数量',
|
|
field: 'finishCount',
|
|
sort: 'custom',
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '合格数量',
|
|
field: 'qualifiedCount',
|
|
sort: 'custom',
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '不合格数量',
|
|
field: 'unqualifiedCount',
|
|
sort: 'custom',
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '执行状态',
|
|
field: 'flagDo',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '当前工序',
|
|
field: 'workingNode',
|
|
sort: 'custom',
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '当前任务号',
|
|
field: 'workingTaskSort',
|
|
sort: 'custom',
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '工单模式',
|
|
field: 'formType',
|
|
sort: 'custom',
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '生产序号',
|
|
field: 'workSort',
|
|
sort: 'custom',
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isForm: false,
|
|
table: {
|
|
width: 150,
|
|
fixed: 'right'
|
|
}
|
|
}
|
|
]))
|
|
|