From c2e87c86b1269e2e9e31e2e29f983797952a9ce7 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 16 Oct 2024 11:41:54 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=B6=E5=93=81=E5=AD=90=E4=BB=B6=E6=98=AF?=
=?UTF-8?q?=E5=90=A6=E5=B7=B2=E6=92=A4=E9=94=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../productscrap/productscrapRecordMain/index.vue | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue
index 5fc2871a6..9e046d2ee 100644
--- a/src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue
+++ b/src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue
@@ -33,6 +33,11 @@
{{ row.number }}
+
+
+
+ {{ getTag(row.revokeFlag).label}}
+
@@ -98,6 +103,9 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch'
+import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
+const dictOptions= ref(getStrDictOptions(DICT_TYPE.TRUE_FALSE))
+console.log(344,dictOptions.value)
const { loadStart, loadDone } = usePageLoading()
// 制品报废记录主
defineOptions({ name: 'ProductscrapRecordMain' })
@@ -131,6 +139,10 @@ const getSwitchByCode1 =async () => {
}
getSwitchByCode1()
+const getTag = (value) => {
+ return dictOptions.value.find(item=>item.value === value)
+}
+
// 详情 table 操作扩展 按钮
const buttondataTable = ref([{
label: 'Bom',