gaoluyang
2 天以前 b64a0deae5b5d33f9e20671a68936b27f0b9b00b
src/views/mes/pro/andon/record/data.ts
@@ -1,12 +1,12 @@
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';
import { markRaw } from 'vue';
import { DICT_TYPE, MesProWorkOrderStatusEnum } from '../../../../../packages/constants/src';
import { getDictOptions } from '../../../../../packages/effects/hooks/src';
import { DICT_TYPE, MesProWorkOrderStatusEnum } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { getSimpleUserList } from '#/api/system/user';
import { getRangePickerDefaultProps } from '#/utils';
@@ -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,