tijiao
This commit is contained in:
@ -5,7 +5,7 @@ VITE_APP_TITLE = 煤科建管平台
|
||||
VITE_APP_ENV = 'development'
|
||||
|
||||
# 开发环境
|
||||
VITE_APP_BASE_API = 'http://192.168.110.213:8899'
|
||||
VITE_APP_BASE_API = 'http://192.168.110.209:8899'
|
||||
|
||||
# 无人机接口地址
|
||||
|
||||
|
@ -124,7 +124,7 @@ export const logisticsDetial = (id) => {
|
||||
|
||||
export const getDetailBASE = (id) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/pic/' + id,
|
||||
url: '/cailiaoshebei/purchaseDoc/pdf/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
/** 表单重置 */
|
||||
|
Reference in New Issue
Block a user