This commit is contained in:
Teo
2025-08-21 15:16:23 +08:00
parent 37e01eda4b
commit f7ec845a7b
3 changed files with 15 additions and 9 deletions

View File

@ -268,7 +268,6 @@ import { listContractor } from '@/api/project/contractor';
import { useUserStoreHook } from '@/store/modules/user';
import { getToken } from '@/utils/auth';
import logisticsDetail from './comm/logisticsDetail.vue';
import type { DrawerProps } from 'element-plus';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const route = useRoute();
const router = useRouter();
@ -385,12 +384,19 @@ const cancel = () => {
};
const handleDetail = async (row?: PurchaseDocVO) => {
detailBASEVisble.value = true;
const res = await getDetailBASE(row.id);
detailBASE.value = res.data;
console.log('🚀 ~ handleDetail ~ res:', res);
proxy?.$modal.loading('加载中');
try {
const res = await getDetailBASE(row.id);
if (res.data) {
window.open(res.data);
} else {
proxy?.$modal.msgError('查看失败');
}
} catch (error) {
proxy?.$modal.msgError('查看失败');
} finally {
proxy?.$modal.closeLoading();
}
};
/** 表单重置 */