From 705b15b833c8135d45ae326490b9fef70ab7ffe2 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 15 Aug 2024 11:08:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20wmaterial=E5=A2=9E=E5=8A=A0state?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/enum.js | 10 +++++++++- src/views/wpm_gx/inm.vue | 23 ++++++++++++++++------- 2 files changed, 25 insertions(+), 8 deletions(-) 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 8d49bedd..5ee71fdf 100644 --- a/src/views/wpm_gx/inm.vue +++ b/src/views/wpm_gx/inm.vue @@ -36,11 +36,18 @@ :params="params" :query="query" > - + - @@ -79,7 +86,7 @@ 已检验 未检验 - + -->