From 0de4716c803b9b0ed78e9c99d06b5e96c87d3836 Mon Sep 17 00:00:00 2001 From: hwj Date: Tue, 21 Apr 2026 17:13:12 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E7=94=9F=E4=BA=A7=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8-=E8=B4=A8=E6=A3=80=E4=BF=A1=E6=81=AF=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProductionReportQualityInfo.vue | 57 +++++++------------ 1 file changed, 19 insertions(+), 38 deletions(-) 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 '-'