gaoluyang
2026-08-14 1dd41e716f07af2f846e2edbef7a8e81de779006
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';
@@ -113,6 +113,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 +152,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 +168,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 +256,8 @@
        props: { type: DICT_TYPE.MES_DV_MACHINERY_STATUS },
      },
    },
    { field: 'productionEfficiency', title: '生产效率(/h)', width: 120 },
    { field: 'conveyorBelt', title: '传送履带', width: 100 },
    {
      field: 'lastCheckTime',
      title: '最近点检时间',