diff --git a/src/views/mes/productionReport/components/ProductionReportQualityInfo.vue b/src/views/mes/productionReport/components/ProductionReportQualityInfo.vue index 64e422c2..1901b637 100644 --- a/src/views/mes/productionReport/components/ProductionReportQualityInfo.vue +++ b/src/views/mes/productionReport/components/ProductionReportQualityInfo.vue @@ -36,37 +36,38 @@ - - - - - - + + + - + + + + + - + + - import dayjs from 'dayjs' import { ZjTaskApi } from '@/api/mes/zjtask' +import { DictTag } from '@/components/DictTag' +import { DICT_TYPE } from '@/utils/dict' defineOptions({ name: 'ProductionReportQualityInfo' }) @@ -198,28 +201,6 @@ const getResultLabel = (result: number): string => { return labelMap[result] || '未知' } -/** 获取状态标签 */ -const getStatusLabel = (status: number): string => { - const labelMap: Record = { - 0: '未开始', - 1: '进行中', - 2: '已完成', - 3: '已取消' - } - return labelMap[status] || '未知' -} - -/** 获取状态类型 */ -const getStatusType = (status: number): string => { - const typeMap: Record = { - 0: 'info', - 1: 'warning', - 2: 'success', - 3: 'danger' - } - return typeMap[status] || 'info' -} - /** 格式化日期时间 */ const formatDateTime = (value: string | Date | null) => { if (!value) return '-'