gaoluyang
7 天以前 989079fa94f9dd01f36c039b8498fe6c6acb55d5
设备台账/设备统计:去掉所属工序字段

工序在主数据里没有维护入口(生产基础数据只有工厂/车间/工作站,工序表为空),
设备新增时下拉无任何可选项,属于死字段:去掉表单、搜索项与列表/统计列。

Co-Authored-By: Claude Code <noreply@anthropic.com>
已修改2个文件
21 ■■■■■ 文件已修改
src/views/mes/dv/machinery/data.ts 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mes/dv/statistics/data.ts 1 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mes/dv/machinery/data.ts
@@ -16,7 +16,6 @@
import { z } from '#/adapter/form';
import { generateAutoCode } from '#/api/mes/md/autocode/record';
import { MdWorkshopSelect } from '#/views/mes/md/workstation/components';
import { ProProcessSelect } from '#/views/mes/process-design/process/components';
import { DvMachineryTypeSelect } from './type/components';
@@ -101,15 +100,6 @@
        placeholder: '请选择所属车间',
      },
      rules: 'selectRequired',
    },
    {
      fieldName: 'processId',
      label: '所属工序',
      component: markRaw(ProProcessSelect),
      componentProps: {
        allowClear: true,
        placeholder: '请选择所属工序',
      },
    },
    {
      fieldName: 'status',
@@ -262,15 +252,6 @@
      },
    },
    {
      fieldName: 'processId',
      label: '所属工序',
      component: markRaw(ProProcessSelect),
      componentProps: {
        allowClear: true,
        placeholder: '请选择所属工序',
      },
    },
    {
      fieldName: 'status',
      label: '设备状态',
      component: 'Select',
@@ -299,7 +280,6 @@
    { field: 'specification', title: '规格型号', minWidth: 140 },
    { field: 'machineryTypeName', title: '设备类型', minWidth: 140 },
    { field: 'workshopName', title: '所属车间', minWidth: 140 },
    { field: 'processName', title: '所属工序', minWidth: 140 },
    {
      field: 'status',
      title: '设备状态',
src/views/mes/dv/statistics/data.ts
@@ -29,7 +29,6 @@
    { field: 'machineryName', title: '设备名称', minWidth: 140 },
    { field: 'machineryTypeName', title: '设备类型', minWidth: 120 },
    { field: 'workshopName', title: '所属车间', minWidth: 120 },
    { field: 'processName', title: '所属工序', minWidth: 120 },
    {
      field: 'status',
      title: '设备状态',