refactor: refs #5835
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2023-12-18 15:36:56 +01:00
parent c9023449c9
commit 94278e2f53
3 changed files with 26 additions and 33 deletions

View File

@ -5,7 +5,7 @@ import { dashIfEmpty } from 'src/filters';
const $props = defineProps({ const $props = defineProps({
label: { type: String, default: null }, label: { type: String, default: null },
value: { value: {
type: [String, Boolean], type: [String, Boolean, Number],
default: null, default: null,
}, },
info: { type: String, default: null }, info: { type: String, default: null },

View File

@ -265,7 +265,7 @@ function getLink(param) {
</QCardSection> </QCardSection>
<VnLv <VnLv
:label="t('invoiceIn.summary.sage')" :label="t('invoiceIn.summary.sage')"
:value="invoiceIn.sageWithholding.withholding" :value="invoiceIn.sageWithholding?.withholding"
/> />
<VnLv <VnLv
:label="t('invoiceIn.summary.vat')" :label="t('invoiceIn.summary.vat')"

View File

@ -84,9 +84,9 @@ function viewSummary(id) {
:key="row.id" :key="row.id"
:title="row.supplierRef" :title="row.supplierRef"
@click="navigate(row.id)" @click="navigate(row.id)"
:id="row.id"
> >
<template #list-items> <template #list-items>
<VnLv label="ID" :value="row.id" />
<VnLv <VnLv
:label="t('invoiceIn.list.supplierRef')" :label="t('invoiceIn.list.supplierRef')"
:value="row.supplierRef" :value="row.supplierRef"
@ -112,42 +112,35 @@ function viewSummary(id) {
:label="t('invoiceIn.list.amount')" :label="t('invoiceIn.list.amount')"
:value="toCurrency(row.amount)" :value="toCurrency(row.amount)"
/> />
<VnLv :label="t('invoiceIn.list.isBooked')"> <VnLv
<template #value> :label="t('invoiceIn.list.isBooked')"
<QCheckbox :value="!!row.isBooked"
class="no-pointer-events"
v-model="row.isBooked"
size="xs"
:true-value="1"
:false-value="0"
/> />
</template> </template>
</VnLv>
</template>
<template #actions> <template #actions>
<QBtn <QBtn
flat :label="t('components.smartCard.openCard')"
icon="arrow_circle_right"
@click.stop="navigate(row.id)" @click.stop="navigate(row.id)"
> class="bg-vn-dark"
<QTooltip> outline
{{ t('components.smartCard.openCard') }} type="reset"
</QTooltip> />
</QBtn>
<QBtn flat icon="preview" @click.stop="viewSummary(row.id)">
<QTooltip>
{{ t('components.smartCard.openSummary') }}
</QTooltip>
</QBtn>
<QBtn <QBtn
flat :label="t('components.smartCard.openSummary')"
icon="cloud_download" @click.stop="viewSummary(row.id)"
color="primary"
type="submit"
style="margin-top: 15px"
/>
<QBtn
:label="t('components.smartCard.downloadFile')"
style="margin-top: 15px"
outline
@click.stop="downloadFile(row.dmsFk)" @click.stop="downloadFile(row.dmsFk)"
> type="submit"
<QTooltip> color="primary"
{{ t('components.smartCard.downloadFile') }} />
</QTooltip>
</QBtn>
</template> </template>
</CardList> </CardList>
</template> </template>