0
0
Fork 0

refs #6321 perf: rename files

This commit is contained in:
Javier Segarra 2024-03-06 20:45:53 +01:00
parent 51b8667938
commit 0dd89ec3f0
5 changed files with 19 additions and 28 deletions

View File

@ -193,7 +193,7 @@ async function changeState(value) {
/> />
</QCard> </QCard>
<QCard class="vn-one"> <QCard class="vn-one">
<a class="header link" :href="ticketUrl + 'basic-data/step-one'"> <a class="header header-link" :href="ticketUrl + 'basic-data/step-one'">
{{ t('globals.summary.basicData') }} {{ t('globals.summary.basicData') }}
<QIcon name="open_in_new" /> <QIcon name="open_in_new" />
</a> </a>
@ -236,7 +236,7 @@ async function changeState(value) {
/> />
</QCard> </QCard>
<QCard class="vn-one"> <QCard class="vn-one">
<a class="header link" :href="ticketUrl + 'observation'"> <a class="header header-link" :href="ticketUrl + 'observation'">
{{ t('ticket.pageTitles.notes') }} {{ t('ticket.pageTitles.notes') }}
<QIcon name="open_in_new" /> <QIcon name="open_in_new" />
</a> </a>
@ -258,7 +258,7 @@ async function changeState(value) {
</VnLv> </VnLv>
</QCard> </QCard>
<QCard class="vn-max"> <QCard class="vn-max">
<a class="header link" :href="ticketUrl + 'sale'"> <a class="header header-link" :href="ticketUrl + 'sale'">
{{ t('ticket.summary.saleLines') }} {{ t('ticket.summary.saleLines') }}
<QIcon name="open_in_new" /> <QIcon name="open_in_new" />
</a> </a>
@ -396,7 +396,7 @@ async function changeState(value) {
class="vn-max" class="vn-max"
v-if="ticket.packagings.length > 0 || ticket.services.length > 0" v-if="ticket.packagings.length > 0 || ticket.services.length > 0"
> >
<a class="header link" :href="ticketUrl + 'package'"> <a class="header header-link" :href="ticketUrl + 'package'">
{{ t('globals.packages') }} {{ t('globals.packages') }}
<QIcon name="open_in_new" /> <QIcon name="open_in_new" />
</a> </a>
@ -417,7 +417,7 @@ async function changeState(value) {
</template> </template>
</QTable> </QTable>
<a class="header link q-mt-xl" :href="ticketUrl + 'service'"> <a class="header header-link q-mt-xl" :href="ticketUrl + 'service'">
{{ t('ticket.summary.service') }} {{ t('ticket.summary.service') }}
<QIcon name="open_in_new" /> <QIcon name="open_in_new" />
</a> </a>

View File

@ -118,11 +118,6 @@ function isComponentVn(col) {
return tableColumnComponents?.value[col.name]?.component === 'span' ?? false; return tableColumnComponents?.value[col.name]?.component === 'span' ?? false;
} }
const tableColumnComponents = computed(() => ({ const tableColumnComponents = computed(() => ({
itemFk: {
component: QBtn,
props: { color: 'blue', flat: true },
event: () => ({}),
},
ticketFk: { ticketFk: {
component: QBtn, component: QBtn,
props: { color: 'blue', flat: true }, props: { color: 'blue', flat: true },
@ -205,12 +200,6 @@ const columns = computed(() => [
field: 'ticketFk', field: 'ticketFk',
align: 'left', align: 'left',
}, },
{
name: 'itemFk',
label: t('ticket.negative.detail.itemFk'),
field: 'itemFk',
align: 'left',
},
{ {
name: 'code', name: 'code',
label: t('ticket.negative.detail.Code'), label: t('ticket.negative.detail.Code'),
@ -358,7 +347,4 @@ async function changeState(value) {
</VnPaginate> </VnPaginate>
</template> </template>
<style lang="scss"> <style lang="scss"></style>
.q-dialog {
}
</style>

View File

@ -1,5 +1,5 @@
<script setup> <script setup>
import TicketDescriptor from './TicketDescriptor.vue'; import TicketDescriptor from './TicketLackDescriptor.vue';
const $props = defineProps({ const $props = defineProps({
id: { id: {
@ -13,3 +13,4 @@ const $props = defineProps({
</template> </template>
<style lang="scss"></style> <style lang="scss"></style>
./TicketLackDescriptor.vue

View File

@ -4,8 +4,8 @@ import { useI18n } from 'vue-i18n';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'stores/useStateStore';
import VnPaginate from 'components/ui/VnPaginate.vue'; import VnPaginate from 'components/ui/VnPaginate.vue';
import { useSession } from 'src/composables/useSession'; import { useSession } from 'src/composables/useSession';
import TicketFilter from 'pages/Ticket/Negative/TicketFilter.vue'; import TicketFilter from 'pages/Ticket/Negative/TicketLackFilter.vue';
import TicketDescriptorDialog from 'pages/Ticket/Negative/TicketDescriptorDialog.vue'; import TicketDescriptorDialog from 'pages/Ticket/Negative/TicketLackDescriptorDialog.vue';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
import VnConfirm from 'components/ui/VnConfirm.vue'; import VnConfirm from 'components/ui/VnConfirm.vue';
@ -106,6 +106,7 @@ const columns = computed(() => [
}, },
]); ]);
</script> </script>
<template> <template>
<div class="column items-center"> <div class="column items-center">
<div class="list"> <div class="list">
@ -130,6 +131,7 @@ const columns = computed(() => [
</div> </div>
</div> </div>
</template> </template>
<template #body-cell-hasCmrDms="{ value }"> <template #body-cell-hasCmrDms="{ value }">
<QTd align="center"> <QTd align="center">
<QBadge <QBadge
@ -142,17 +144,20 @@ const columns = computed(() => [
/> />
</QTd> </QTd>
</template> </template>
<template #body-cell-ticketFk="{ value }"> <template #body-cell-ticketFk="{ value }">
<QTd align="right" class="text-primary"> <QTd align="right" class="text-primary">
<span class="text-primary link">{{ value }}</span> <span class="text-primary link">{{ value }}</span>
</QTd> </QTd>
</template> </template>
<template #body-cell-clientFk="{ value }"> <template #body-cell-clientFk="{ value }">
<QTd align="right" class="text-primary"> <QTd align="right" class="text-primary">
<span class="text-primary link">{{ value }}</span> <span class="text-primary link">{{ value }}</span>
<CustomerDescriptorProxy :id="value" /> <CustomerDescriptorProxy :id="value" />
</QTd> </QTd>
</template> </template>
<template #body-cell-icons="{ value }"> <template #body-cell-icons="{ value }">
<QTd align="center"> <QTd align="center">
<QIcon <QIcon
@ -184,12 +189,7 @@ const columns = computed(() => [
round round
dense dense
v-close-popup v-close-popup
/> </QCardSection
><QCardSection class="row items-center"
><TicketDescriptorDialog
:id="currentRow.itemFk" :id="currentRow.itemFk"
></TicketDescriptorDialog></QCardSection></QCard
></QDialog>
<!-- <VnConfirm :title="t('confirmGreuges')"> <!-- <VnConfirm :title="t('confirmGreuges')">
<template #customHTML> <template #customHTML>
@ -208,15 +208,19 @@ const columns = computed(() => [
padding: 15px; padding: 15px;
width: 100%; width: 100%;
} }
.grid-style-transition { .grid-style-transition {
transition: transform 0.28s, background-color 0.28s; transition: transform 0.28s, background-color 0.28s;
} }
#true { #true {
background-color: $positive; background-color: $positive;
} }
#false { #false {
background-color: $negative; background-color: $negative;
} }
div.q-dialog__inner > div { div.q-dialog__inner > div {
max-width: fit-content !important; max-width: fit-content !important;
// background-color: red !important; // background-color: red !important;