| | |
| | | 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'; |
| | | import { MdWorkstationSelect } from '#/views/mes/md/workstation/components'; |
| | | import { ProProcessSelect } from '#/views/mes/pro/process/components'; |
| | | import { ProProcessSelect } from '#/views/mes/process-design/process/components'; |
| | | import { ProWorkOrderSelect } from '#/views/mes/pro/workorder/components'; |
| | | |
| | | import { AndonConfigSelect } from '../config/components'; |
| | |
| | | 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 }, |
| | | { |
| | |
| | | /** |
| | | * 新增/处置/详情安灯呼叫记录的表单 |
| | | * |
| | | * - create:录入呼叫主体信息(工作站/发起人/工单/工序/呼叫原因/备注) |
| | | * - create:录入呼叫主体信息(工作站/发起人/订单/工序/呼叫原因/备注) |
| | | * - update:呼叫主体只读展示创建时的快照字段(workstationName/workOrderCode/processName/reason),编辑处置时间/处置人/备注 |
| | | * - detail:所有字段只读 |
| | | */ |
| | |
| | | isCreate |
| | | ? { |
| | | fieldName: 'workOrderId', |
| | | label: '生产工单', |
| | | label: '生产订单', |
| | | component: markRaw(ProWorkOrderSelect), |
| | | componentProps: { |
| | | placeholder: '请选择工单(可选)', |
| | | placeholder: '请选择订单(可选)', |
| | | status: MesProWorkOrderStatusEnum.CONFIRMED, |
| | | }, |
| | | } |
| | | : { |
| | | fieldName: 'workOrderCode', |
| | | label: '生产工单', |
| | | label: '生产订单', |
| | | component: 'Input', |
| | | componentProps: { |
| | | disabled: true, |