| | |
| | | <script lang="ts" setup> |
| | | <script lang="ts" setup> |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | import type { MesProWorkOrderApi } from '#/api/mes/pro/workorder'; |
| | | |
| | | import { computed, nextTick, ref } from 'vue'; |
| | | |
| | | import { DICT_TYPE } from '../../../../../packages/constants/src'; |
| | | import { getDictLabel } from '../../../../../packages/effects/hooks/src'; |
| | | import { DICT_TYPE } from '@vben/constants'; |
| | | import { getDictLabel } from '@vben/hooks'; |
| | | |
| | | import { Alert, Button, message, Modal } from 'ant-design-vue'; |
| | | |
| | |
| | | defineProps<{ |
| | | status?: number; |
| | | type?: number; |
| | | checkMethod?: (row: MesProWorkOrderApi.WorkOrder) => boolean; |
| | | }>(), |
| | | { |
| | | status: undefined, |
| | | type: undefined, |
| | | checkMethod: undefined, |
| | | }, |
| | | ); |
| | | const emit = defineEmits<{ |
| | |
| | | highlight: true, |
| | | range: true, |
| | | reserve: true, |
| | | checkMethod: props.checkMethod ? ({ row }) => props.checkMethod!(row) : undefined, |
| | | }, |
| | | radioConfig: { |
| | | highlight: true, |
| | | trigger: 'row', |
| | | checkMethod: props.checkMethod ? ({ row }) => props.checkMethod!(row) : undefined, |
| | | }, |
| | | proxyConfig: { |
| | | ajax: { |