|
@ -73,6 +73,7 @@ import { getAccessToken } from '@/utils/auth' |
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
// 翻包记录 |
|
|
// 翻包记录 |
|
|
defineOptions({ name: 'PackageoverMain' }) |
|
|
defineOptions({ name: 'PackageoverMain' }) |
|
@ -182,9 +183,13 @@ const handlePoint = async (row) => { |
|
|
window.open(documentSrc.value + '&request_number=' + row.number) |
|
|
window.open(documentSrc.value + '&request_number=' + row.number) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
|
|
|
const { wsCache } = useCache() |
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const detailRef = ref() |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
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,"recordPackageoverMain") |
|
|
detailRef.value.openDetail(row, titleName, titleValue,"recordPackageoverMain") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|