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 }} + @@ -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',