| | |
| | | import type { VbenFormApi, VbenFormSchema } from '#/adapter/form'; |
| | | import type { VbenFormApi, VbenFormSchema } from '#/adapter/form'; |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | import type { MesDvRepairApi } from '#/api/mes/dv/repair'; |
| | | |
| | |
| | | DICT_TYPE, |
| | | MesAutoCodeRuleCode, |
| | | MesDvRepairStatusEnum, |
| | | } 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'; |
| | | |
| | |
| | | return ['confirm', 'detail', 'finish'].includes(formType); |
| | | } |
| | | |
| | | /** 新增/修改维修工单的表单 */ |
| | | /** 新增/修改维修订单的表单 */ |
| | | export function useFormSchema( |
| | | formType: FormType, |
| | | formApi?: VbenFormApi, |
| | |
| | | format: 'YYYY-MM-DD HH:mm:ss', |
| | | placeholder: '请选择报修日期', |
| | | showTime: true, |
| | | valueFormat: 'x', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | }, |
| | | rules: 'required', |
| | | }, |
| | |
| | | format: 'YYYY-MM-DD HH:mm:ss', |
| | | placeholder: '请选择完成日期', |
| | | showTime: true, |
| | | valueFormat: 'x', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | }, |
| | | // 维修中(≥CONFIRMED)态展示;仅"完成维修"弹窗可编辑并必填,其余态只读回显 |
| | | dependencies: { |
| | |
| | | format: 'YYYY-MM-DD HH:mm:ss', |
| | | placeholder: '请选择验收日期', |
| | | showTime: true, |
| | | valueFormat: 'x', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | }, |
| | | // 验收信息为已确认(≥FINISHED)态自动产生的只读回显字段 |
| | | dependencies: { |