| | |
| | | status?: number; // 设备状态 |
| | | lastMaintenTime?: Date; // 最近保养时间 |
| | | lastCheckTime?: Date; // 最近点检时间 |
| | | productionEfficiency?: number; // 生产效率 |
| | | conveyorBelt?: number; // 传送履带数量 |
| | | workstationId?: number; // 工作站编号 |
| | | workstationName?: string; // 工作站名称 |
| | | remark?: string; // 备注 |
| | | createTime?: Date; // 创建时间 |
| | | } |
| | |
| | | |
| | | import { z } from '#/adapter/form'; |
| | | import { generateAutoCode } from '#/api/mes/md/autocode/record'; |
| | | import { MdWorkshopSelect } from '#/views/mes/md/workstation/components'; |
| | | import { MdWorkshopSelect, MdWorkstationSelect } from '#/views/mes/md/workstation/components'; |
| | | |
| | | import { DvMachineryTypeSelect } from './type/components'; |
| | | |
| | |
| | | rules: z.number().default(MesDvMachineryStatusEnum.STOP), |
| | | }, |
| | | { |
| | | fieldName: 'productionEfficiency', |
| | | label: '生产效率', |
| | | component: 'InputNumber', |
| | | componentProps: { |
| | | class: '!w-full', |
| | | min: 0, |
| | | precision: 2, |
| | | placeholder: '请输入生产效率(每分钟)', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'conveyorBelt', |
| | | label: '传送履带', |
| | | component: 'InputNumber', |
| | | componentProps: { |
| | | class: '!w-full', |
| | | min: 0, |
| | | precision: 0, |
| | | placeholder: '请输入传送履带数量', |
| | | }, |
| | | help: '2代表双倍效率', |
| | | }, |
| | | { |
| | | fieldName: 'workstationId', |
| | | label: '工作站', |
| | | component: markRaw(MdWorkstationSelect), |
| | | componentProps: { |
| | | placeholder: '请选择工作站', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'specification', |
| | | label: '规格型号', |
| | | component: 'Input', |
| | |
| | | placeholder: '请选择设备状态', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'workstationId', |
| | | label: '工作站', |
| | | component: markRaw(MdWorkstationSelect), |
| | | componentProps: { |
| | | allowClear: true, |
| | | placeholder: '请选择工作站', |
| | | }, |
| | | }, |
| | | ]; |
| | | } |
| | | |
| | |
| | | props: { type: DICT_TYPE.MES_DV_MACHINERY_STATUS }, |
| | | }, |
| | | }, |
| | | { field: 'productionEfficiency', title: '生产效率', width: 120 }, |
| | | { field: 'conveyorBelt', title: '传送履带', width: 100 }, |
| | | { field: 'workstationName', title: '工作站', minWidth: 140 }, |
| | | { |
| | | field: 'lastCheckTime', |
| | | title: '最近点检时间', |