xiaoyi
7 天以前 27c8277d717b34b55f3ea967027b53b067f77df3
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, MdWorkstationSelect } from '#/views/mes/md/workstation/components';
import { MdWorkshopSelect } from '#/views/mes/md/workstation/components';
import { DvMachineryTypeSelect } from './type/components';
@@ -76,6 +76,15 @@
      rules: 'required',
    },
    {
      fieldName: 'tbDeviceId',
      label: '数采设备ID',
      component: 'Input',
      componentProps: {
        placeholder: '请输入数采设备ID(外部数采 tbDeviceId)',
      },
      help: '与数采系统设备ID对应,用于关联设备实时数据',
    },
    {
      fieldName: 'brand',
      label: '品牌',
      component: 'Input',
@@ -120,7 +129,7 @@
        class: '!w-full',
        min: 0,
        precision: 2,
        placeholder: '请输入生产效率(每分钟)',
        placeholder: '请输入生产效率(每小时)',
      },
    },
    {
@@ -134,14 +143,6 @@
        placeholder: '请输入传送履带数量',
      },
      help: '2代表双倍效率',
    },
    {
      fieldName: 'workstationId',
      label: '工作站',
      component: markRaw(MdWorkstationSelect),
      componentProps: {
        placeholder: '请选择工作站',
      },
    },
    {
      fieldName: 'specification',
@@ -236,15 +237,6 @@
        placeholder: '请选择设备状态',
      },
    },
    {
      fieldName: 'workstationId',
      label: '工作站',
      component: markRaw(MdWorkstationSelect),
      componentProps: {
        allowClear: true,
        placeholder: '请选择工作站',
      },
    },
  ];
}
@@ -273,9 +265,8 @@
        props: { type: DICT_TYPE.MES_DV_MACHINERY_STATUS },
      },
    },
    { field: 'productionEfficiency', title: '生产效率', width: 120 },
    { field: 'productionEfficiency', title: '生产效率(/h)', width: 120 },
    { field: 'conveyorBelt', title: '传送履带', width: 100 },
    { field: 'workstationName', title: '工作站', minWidth: 140 },
    {
      field: 'lastCheckTime',
      title: '最近点检时间',