diff --git a/src/utils/enum.js b/src/utils/enum.js
index cf04fb8e..06ddce2f 100644
--- a/src/utils/enum.js
+++ b/src/utils/enum.js
@@ -184,4 +184,12 @@ export const schedulePeriodEnum = new EnumFactory({
'minutes': '分钟',
'hours': '小时',
'days': '天',
-})
\ No newline at end of file
+})
+
+export const wmState = new EnumFactory({
+ 10: { text: '合格', type: 'success' },
+ 20: { text: '不合格', type: 'warning' },
+ 30: { text: '返修', type: 'warning' },
+ 40: { text: '检验', type: 'primary' },
+ 50: { text: '报废', type: 'danger' },
+}, parseInt)
\ No newline at end of file
diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue
index 6b38f4f3..dac8f8df 100644
--- a/src/views/wpm_gx/inm.vue
+++ b/src/views/wpm_gx/inm.vue
@@ -36,11 +36,18 @@
:params="params"
:query="query"
>
-
+ {{
+ wmState[scope.row.state]?.text
+ }}
+
-
@@ -79,7 +86,7 @@
已检验
未检验
-
+ -->