0
0
Fork 0

fix: refs #4466 id reactivity

This commit is contained in:
Jorge Penadés 2024-02-02 16:07:39 +01:00
parent fed382d1fd
commit ecba57ebb6
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ const arrayData = useArrayData('InvoiceIn');
const invoiceIn = computed(() => arrayData.store.data);
const cardDescriptorRef = ref();
const correctionDialogRef = ref();
const entityId = computed(() => $props.id || route.params.id);
const entityId = computed(() => +($props.id || route.params.id));
const totalAmount = ref();
const currentAction = ref();
const config = ref();
@ -133,7 +133,6 @@ const routes = reactive({
},
});
const correctionFormData = reactive({
id: +entityId.value,
invoiceReason: 2,
invoiceType: 2,
invoiceClass: 6,
@ -475,7 +474,7 @@ const createInvoiceInCorrection = async () => {
<QItemSection>
<QInput
:label="t('Original invoice')"
v-model="correctionFormData.id"
v-model="entityId"
readonly
/>
<VnSelectFilter

View File

@ -76,6 +76,7 @@ function viewSummary(id) {
data-key="InvoiceInList"
url="InvoiceIns/filter"
order="issued DESC, id DESC"
auto-load
>
<template #body="{ rows }">
<CardList