xiaoyi
6 天以前 27c8277d717b34b55f3ea967027b53b067f77df3
src/views/mes/dv/machinery/data.ts
@@ -8,8 +8,8 @@
  DICT_TYPE,
  MesAutoCodeRuleCode,
  MesDvMachineryStatusEnum,
} from '..\..\..\..\packages\constants\src';
import { getDictOptions } from '..\..\..\..\packages\effects\hooks\src';
} from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { Button } from 'ant-design-vue';
@@ -76,6 +76,15 @@
      rules: 'required',
    },
    {
      fieldName: 'tbDeviceId',
      label: '数采设备ID',
      component: 'Input',
      componentProps: {
        placeholder: '请输入数采设备ID(外部数采 tbDeviceId)',
      },
      help: '与数采系统设备ID对应,用于关联设备实时数据',
    },
    {
      fieldName: 'brand',
      label: '品牌',
      component: 'Input',
@@ -113,6 +122,29 @@
      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: 'specification',
      label: '规格型号',
      component: 'Input',
@@ -129,7 +161,7 @@
        disabled: true,
        format: 'YYYY-MM-DD HH:mm:ss',
        showTime: true,
        valueFormat: 'x',
        valueFormat: 'YYYY-MM-DD HH:mm:ss',
      },
      dependencies: {
        triggerFields: ['id'],
@@ -145,7 +177,7 @@
        disabled: true,
        format: 'YYYY-MM-DD HH:mm:ss',
        showTime: true,
        valueFormat: 'x',
        valueFormat: 'YYYY-MM-DD HH:mm:ss',
      },
      dependencies: {
        triggerFields: ['id'],
@@ -233,6 +265,8 @@
        props: { type: DICT_TYPE.MES_DV_MACHINERY_STATUS },
      },
    },
    { field: 'productionEfficiency', title: '生产效率(/h)', width: 120 },
    { field: 'conveyorBelt', title: '传送履带', width: 100 },
    {
      field: 'lastCheckTime',
      title: '最近点检时间',