gaoluyang
5 小时以前 f81a415c710c7306be428c03dd447350479610d5
src/views/mes/dv/machinery/data.ts
@@ -15,7 +15,7 @@
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';
@@ -113,6 +113,37 @@
      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',
@@ -205,6 +236,15 @@
        placeholder: '请选择设备状态',
      },
    },
    {
      fieldName: 'workstationId',
      label: '工作站',
      component: markRaw(MdWorkstationSelect),
      componentProps: {
        allowClear: true,
        placeholder: '请选择工作站',
      },
    },
  ];
}
@@ -233,6 +273,9 @@
        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: '最近点检时间',