spring
2026-07-03 2540d86f0dbd77f654f558c3bf9d5ddbe7422f16
src/views/mes/pro/andon/record/data.ts
@@ -1,4 +1,4 @@
import type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
import type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { MesProAndonConfigApi } from '#/api/mes/pro/andon/config';
import type { MesProAndonRecordApi } from '#/api/mes/pro/andon/record';
@@ -82,7 +82,7 @@
  return [
    { field: 'workstationCode', title: '工作站编码', width: 140 },
    { field: 'workstationName', title: '工作站名称', minWidth: 140 },
    { field: 'workOrderCode', title: '工单编码', width: 140 },
    { field: 'workOrderCode', title: '订单编码', width: 140 },
    { field: 'processName', title: '工序名称', width: 140 },
    { field: 'userNickname', title: '发起人', width: 110 },
    {
@@ -129,7 +129,7 @@
/**
 * 新增/处置/详情安灯呼叫记录的表单
 *
 * - create:录入呼叫主体信息(工作站/发起人/工单/工序/呼叫原因/备注)
 * - create:录入呼叫主体信息(工作站/发起人/订单/工序/呼叫原因/备注)
 * - update:呼叫主体只读展示创建时的快照字段(workstationName/workOrderCode/processName/reason),编辑处置时间/处置人/备注
 * - detail:所有字段只读
 */
@@ -187,16 +187,16 @@
    isCreate
      ? {
          fieldName: 'workOrderId',
          label: '生产工单',
          label: '生产订单',
          component: markRaw(ProWorkOrderSelect),
          componentProps: {
            placeholder: '请选择工单(可选)',
            placeholder: '请选择订单(可选)',
            status: MesProWorkOrderStatusEnum.CONFIRMED,
          },
        }
      : {
          fieldName: 'workOrderCode',
          label: '生产工单',
          label: '生产订单',
          component: 'Input',
          componentProps: {
            disabled: true,