Browse Source

制品子件是否已撤销

intex_online20241111
zhang_li 1 month ago
parent
commit
c2e87c86b1
  1. 12
      src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue

12
src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue

@ -33,6 +33,11 @@
<span>{{ row.number }}</span> <span>{{ row.number }}</span>
</el-button> </el-button>
</template> </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 }"> <template #action="{ row,$index }">
<ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" /> <ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" />
</template> </template>
@ -98,6 +103,9 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading' import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getSwitchByCode } from '@/api/wms/switch' 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() const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'ProductscrapRecordMain' }) defineOptions({ name: 'ProductscrapRecordMain' })
@ -131,6 +139,10 @@ const getSwitchByCode1 =async () => {
} }
getSwitchByCode1() getSwitchByCode1()
const getTag = (value) => {
return dictOptions.value.find(item=>item.value === value)
}
// table // table
const buttondataTable = ref([{ const buttondataTable = ref([{
label: 'Bom', label: 'Bom',

Loading…
Cancel
Save