Compare commits

...

4 Commits

Author SHA1 Message Date
Guillermo Bonet 3c77076718 Merge pull request 'refactor: refs #7950 Created cmr model' (!911) from 7950-cmrModelUnify into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #911
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2024-11-15 06:04:51 +00:00
Guillermo Bonet c607fc5f61 Merge branch 'dev' into 7950-cmrModelUnify
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 06:03:30 +00:00
Guillermo Bonet 8db3ab4d47 Merge branch 'dev' into 7950-cmrModelUnify
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-13 06:13:23 +00:00
Guillermo Bonet 40ecd6e358 refactor: refs #7950 Created cmr model
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-12 08:28:02 +01:00
1 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ function getApiUrl() {
return new URL(window.location).origin; return new URL(window.location).origin;
} }
function getCmrUrl(value) { function getCmrUrl(value) {
return `${getApiUrl()}/api/Routes/${value}/cmr?access_token=${token}`; return `${getApiUrl()}/api/Cmrs/${value}/print?access_token=${token}`;
} }
function downloadPdfs() { function downloadPdfs() {
if (!selectedRows.value.length) { if (!selectedRows.value.length) {
@ -129,7 +129,7 @@ function downloadPdfs() {
let cmrs = []; let cmrs = [];
for (let value of selectedRows.value) cmrs.push(value.cmrFk); for (let value of selectedRows.value) cmrs.push(value.cmrFk);
// prettier-ignore // prettier-ignore
return window.open(`${getApiUrl()}/api/Routes/downloadCmrsZip?ids=${cmrs.join(',')}&access_token=${token}`); return window.open(`${getApiUrl()}/api/Cmrs/downloadZip?ids=${cmrs.join(',')}&access_token=${token}`);
} }
</script> </script>
<template> <template>
@ -149,7 +149,7 @@ function downloadPdfs() {
<VnTable <VnTable
ref="tableRef" ref="tableRef"
data-key="CmrList" data-key="CmrList"
url="Routes/cmrs" url="Cmrs/filter"
:columns="columns" :columns="columns"
:right-search="true" :right-search="true"
default-mode="table" default-mode="table"