From 586dc959ca9b6aad3ffd0699f8ab1c6301bdbc0f Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期二, 31 三月 2026 21:00:55 +0800
Subject: [PATCH] fix: 设备状态改为下拉选择
---
src/views/qualityManagement/finalInspection/components/formDia.vue | 69 +++++++++++++++++++---------------
1 files changed, 39 insertions(+), 30 deletions(-)
diff --git a/src/views/qualityManagement/finalInspection/components/formDia.vue b/src/views/qualityManagement/finalInspection/components/formDia.vue
index 332b3fd..436425c 100644
--- a/src/views/qualityManagement/finalInspection/components/formDia.vue
+++ b/src/views/qualityManagement/finalInspection/components/formDia.vue
@@ -134,10 +134,19 @@
</el-select>
</template>
<template #deviceStatus="{ row }">
- <el-tag v-if="row.deviceStatus" :type="getDeviceStatusType(row.deviceStatus)">
- {{ row.deviceStatus }}
- </el-tag>
- <span v-else style="color: #999">-</span>
+ <el-select
+ v-model="row.deviceStatus"
+ placeholder="璇烽�夋嫨"
+ default-first-option
+ clearable
+ style="width: 100%"
+ >
+ <el-option label="姝e父" value="姝e父" />
+ <el-option label="鍋滄満" value="鍋滄満" />
+ <el-option label="杩愯" value="杩愯" />
+ <el-option label="缁翠慨" value="缁翠慨" />
+ <el-option label="/" value="/" />
+ </el-select>
</template>
<template #result="{ row }">
<el-input v-model="row.result" placeholder="璇疯緭鍏�" clearable />
@@ -222,32 +231,32 @@
prop: "standardValue",
width: 180
},
- {
- label: "鍗曚綅",
- prop: "unit",
- width: 80
- },
- {
- label: "妫�娴嬪櫒鍏�",
- prop: "instrument",
- dataType: 'slot',
- slot: 'instrument',
- width: 220
- },
- {
- label: "璁惧鐘舵��",
- prop: "deviceStatus",
- dataType: 'slot',
- slot: 'deviceStatus',
- width: 120
- },
- {
- label: "妫�娴嬬粨鏋�",
- prop: "result",
- dataType: 'slot',
- slot: 'result',
- minWidth: 150
- },
+ {
+ label: "鍗曚綅",
+ prop: "unit",
+ width: 70
+ },
+ {
+ label: "妫�娴嬪櫒鍏�",
+ prop: "instrument",
+ dataType: 'slot',
+ slot: 'instrument',
+ width: 220
+ },
+ {
+ label: "璁惧鐘舵��",
+ prop: "deviceStatus",
+ dataType: 'slot',
+ slot: 'deviceStatus',
+ width: 120
+ },
+ {
+ label: "妫�娴嬬粨鏋�",
+ prop: "result",
+ dataType: 'slot',
+ slot: 'result',
+ width: 150
+ },
{
label: "缁撴灉鍒ゆ柇",
prop: "resultJudgment",
--
Gitblit v1.9.3