forked from verdnatura/salix-front
fix: refs #4466 id reactivity
This commit is contained in:
parent
fed382d1fd
commit
ecba57ebb6
|
@ -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
|
||||
|
|
|
@ -76,6 +76,7 @@ function viewSummary(id) {
|
|||
data-key="InvoiceInList"
|
||||
url="InvoiceIns/filter"
|
||||
order="issued DESC, id DESC"
|
||||
auto-load
|
||||
>
|
||||
<template #body="{ rows }">
|
||||
<CardList
|
||||
|
|
Loading…
Reference in New Issue