|
|
@ -33,6 +33,11 @@ |
|
|
|
<span>{{ row.number }}</span> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
<template #revokeFlag="{row}"> |
|
|
|
<!-- <span>{{ getTag(row.revokeFlag)}}</span> --> |
|
|
|
|
|
|
|
<el-tag :type="getTag(row.revokeFlag).colorType">{{ getTag(row.revokeFlag).label}}</el-tag> |
|
|
|
</template> |
|
|
|
<template #action="{ row,$index }"> |
|
|
|
<ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" /> |
|
|
|
</template> |
|
|
@ -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', |
|
|
|