refs #6795 summary, order #183

Merged
carlossa merged 13 commits from 6795-claimRefact into dev 2024-02-16 13:44:42 +00:00
2 changed files with 14 additions and 4 deletions
Showing only changes of commit c87f49b86e - Show all commits

View File

@ -11,6 +11,8 @@ import CrudModel from 'components/CrudModel.vue';
import FetchData from 'components/FetchData.vue';
import VnDiscount from 'components/common/vnDiscount.vue';
import ClaimLinesImport from './ClaimLinesImport.vue';
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
import item from 'src/router/modules/item';
const quasar = useQuasar();
const route = useRoute();
@ -229,7 +231,14 @@ function showImportDialog() {
</QPopupEdit>
</QTd>
</template>
<template #body-cell-description="{ row, value }">
<QTd auto-width align="right" class="text-primary">
{{ value }}
<ItemDescriptorProxy
:id="row.sale.itemFk"
></ItemDescriptorProxy>
</QTd>
</template>
<template #body-cell-discount="{ row, value, rowIndex }">
<QTd auto-width align="right" class="text-primary">
{{ value }}

View File

@ -26,8 +26,9 @@ const STATE_COLOR = {
function stateColor(code) {
return STATE_COLOR[code];
}
function navigate(id) {
router.push({ path: `/claim/${id}` });
function navigate(event, id) {
if (event.ctrlKey || event.metaKey) window.open(window.host);
else router.push({ path: `/claim/${id}` });
}
</script>
carlossa marked this conversation as resolved
Review

Pero un return en el window.open

Pero un return en el window.open
@ -74,7 +75,7 @@ function navigate(id) {
:id="row.id"
:key="row.id"
:title="row.clientName"
@click="navigate(row.id)"
@click="navigate($event, row.id)"
v-for="row of rows"
>
<template #list-items>