|
|
@ -33,9 +33,6 @@ |
|
|
|
<span>{{ row.number }}</span> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
<template #revokeFlag="{row}"> |
|
|
|
<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> |
|
|
@ -101,8 +98,7 @@ 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)) |
|
|
|
import { cloneDeep } from 'lodash-es' |
|
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
|
// 制品报废记录主 |
|
|
|
defineOptions({ name: 'ProductscrapRecordMain' }) |
|
|
@ -114,7 +110,7 @@ const route = useRoute() // 路由信息 |
|
|
|
const routeName = ref() |
|
|
|
routeName.value = route.name |
|
|
|
const tableColumns = ref([...ProductscrapRecordMain.allSchemas.tableColumns,...ProductscrapRecordDetail.allSchemas.tableMainColumns]) |
|
|
|
const ProductscrapRecordMainAllSchema =ref(JSON.parse(JSON.stringify(ProductscrapRecordMain))) |
|
|
|
const ProductscrapRecordMainAllSchema = ref(cloneDeep(ProductscrapRecordMain)) |
|
|
|
// 是否启用QMS开启显示q1q2q3 |
|
|
|
const EnableQms = ref(true) |
|
|
|
const updateKey = ref(0) |
|
|
@ -136,10 +132,6 @@ const getSwitchByCode1 =async () => { |
|
|
|
} |
|
|
|
getSwitchByCode1() |
|
|
|
|
|
|
|
const getTag = (value) => { |
|
|
|
return dictOptions.value.find(item=>item.value === value) |
|
|
|
} |
|
|
|
|
|
|
|
// 详情 table 操作扩展 按钮 |
|
|
|
const buttondataTable = ref([{ |
|
|
|
label: 'Bom', |
|
|
|