|
|
@ -71,7 +71,7 @@ import { ProductscrapJobMain,ProductscrapJobMainRules,ProductscrapJobDetail,Prod |
|
|
|
import * as ProductscrapJobMainApi from '@/api/wms/productscrapJobMain' |
|
|
|
import * as ProductscrapJobDetailApi from '@/api/wms/productscrapJobDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
|
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
|
// 制品报废任务主 |
|
|
|
defineOptions({ name: 'ProductscrapJobMain' }) |
|
|
|
|
|
|
@ -199,10 +199,13 @@ const buttonTableClick = async (val, row) => { |
|
|
|
console.log('列表-操作按钮事件-承接') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
|
const { wsCache } = useCache() |
|
|
|
/** 详情操作 */ |
|
|
|
const detailRef = ref() |
|
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name |
|
|
|
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) |
|
|
|
detailRef.value.openDetail(row, titleName, titleValue,'jobProductscrapMain') |
|
|
|
} |
|
|
|
|
|
|
|