0
0
Fork 0

refactor: refs #6899 deleted comments

This commit is contained in:
Jon Elias 2024-07-05 14:02:24 +02:00
parent 516a0642ab
commit a634d8d6e6
2 changed files with 1 additions and 9 deletions

View File

@ -7,7 +7,6 @@ import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
import { usePrintService } from 'composables/usePrintService';
import { useSession } from 'src/composables/useSession';
import VnTable from 'components/VnTable/VnTable.vue';
import InvoiceOutSummary from './Card/InvoiceOutSummary.vue';
import { toCurrency, toDate } from 'src/filters/index';
@ -17,8 +16,6 @@ import { watchEffect } from 'vue';
const { t } = useI18n();
const stateStore = useStateStore();
const session = useSession();
const tokenMultimedia = session.getTokenMultimedia();
const { viewSummary } = useSummaryDialog();
const tableRef = ref();
const invoiceOutSerialsOptions = ref([]);
@ -122,7 +119,6 @@ const columns = computed(() => [
},
{
align: 'right',
label: '',
name: 'tableActions',
actions: [
{
@ -144,8 +140,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
function openPdf(id) {
try {
const url = `api/${MODEL}/${id}/download?access_token=${tokenMultimedia}`;
window.open(url, '_blank');
openReport(`${MODEL}//${id}/download`);
} catch (err) {
console.error('Error opening PDF', err);
}
@ -170,8 +165,6 @@ function downloadPdf() {
};
openReport(`${MODEL}/downloadZip`, params);
// const url = `api/${MODEL}/downloadZip?${params}`;
// window.open(url, '_blank');
}
} catch (err) {
console.error('Error opening PDF');

View File

@ -168,7 +168,6 @@ const downloadCSV = async () => {
auto-load
:is-editable="false"
:use-model="true"
:order="''"
>
</VnTable>
</template>