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

@ -5,7 +5,7 @@ VITE_APP_TITLE = 煤科建管平台
VITE_APP_ENV = 'development' VITE_APP_ENV = 'development'
# 开发环境 # 开发环境
VITE_APP_BASE_API = 'http://192.168.110.213:8899' VITE_APP_BASE_API = 'http://192.168.110.209:8899'
# 无人机接口地址 # 无人机接口地址

View File

@ -124,7 +124,7 @@ export const logisticsDetial = (id) => {
export const getDetailBASE = (id) => { export const getDetailBASE = (id) => {
return request({ return request({
url: '/cailiaoshebei/purchaseDoc/pic/' + id, url: '/cailiaoshebei/purchaseDoc/pdf/' + id,
method: 'get' method: 'get'
}); });
}; };

View File

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