diff --git a/src/composables/downloadFile.js b/src/composables/downloadFile.js index 12639dcd6..ae8b7d3eb 100644 --- a/src/composables/downloadFile.js +++ b/src/composables/downloadFile.js @@ -4,8 +4,15 @@ import { getUrl } from './getUrl'; const { getTokenMultimedia } = useSession(); const token = getTokenMultimedia(); -export async function downloadFile(id, model = 'dms', urlPath = '/downloadFile', url) { - let appUrl = await getUrl('', 'lilium'); +export async function downloadFile( + id, + model = 'dms', + urlPath = '/downloadFile', + url, + route = '', + app = 'lilium' +) { + let appUrl = await getUrl(route, app); appUrl = appUrl.replace('/#/', ''); window.open(url ?? `${appUrl}/api/${model}/${id}${urlPath}?access_token=${token}`); } diff --git a/src/pages/Worker/Card/WorkerPda.vue b/src/pages/Worker/Card/WorkerPda.vue index 6f6e594b8..780310703 100644 --- a/src/pages/Worker/Card/WorkerPda.vue +++ b/src/pages/Worker/Card/WorkerPda.vue @@ -18,8 +18,7 @@ const { t } = useI18n(); const { notify } = useNotify(); const paginate = ref(); -const downloadDocuware = ref(true); -const sendToTablet = ref(true); +const isDocuware = ref(false); const dialog = ref(); const route = useRoute(); const { openConfirmationModal } = useVnConfirm(); @@ -72,6 +71,11 @@ const handleDownloadDocuware = async (deviceProductionFk) => {}; @on-fetch="(data) => (deviceProductions = data)" auto-load /> + {}; {}; {};