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 invoiceIn = computed(() => arrayData.store.data);
|
||||||
const cardDescriptorRef = ref();
|
const cardDescriptorRef = ref();
|
||||||
const correctionDialogRef = ref();
|
const correctionDialogRef = ref();
|
||||||
const entityId = computed(() => $props.id || route.params.id);
|
const entityId = computed(() => +($props.id || route.params.id));
|
||||||
const totalAmount = ref();
|
const totalAmount = ref();
|
||||||
const currentAction = ref();
|
const currentAction = ref();
|
||||||
const config = ref();
|
const config = ref();
|
||||||
|
@ -133,7 +133,6 @@ const routes = reactive({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const correctionFormData = reactive({
|
const correctionFormData = reactive({
|
||||||
id: +entityId.value,
|
|
||||||
invoiceReason: 2,
|
invoiceReason: 2,
|
||||||
invoiceType: 2,
|
invoiceType: 2,
|
||||||
invoiceClass: 6,
|
invoiceClass: 6,
|
||||||
|
@ -475,7 +474,7 @@ const createInvoiceInCorrection = async () => {
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<QInput
|
<QInput
|
||||||
:label="t('Original invoice')"
|
:label="t('Original invoice')"
|
||||||
v-model="correctionFormData.id"
|
v-model="entityId"
|
||||||
readonly
|
readonly
|
||||||
/>
|
/>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
|
|
|
@ -76,6 +76,7 @@ function viewSummary(id) {
|
||||||
data-key="InvoiceInList"
|
data-key="InvoiceInList"
|
||||||
url="InvoiceIns/filter"
|
url="InvoiceIns/filter"
|
||||||
order="issued DESC, id DESC"
|
order="issued DESC, id DESC"
|
||||||
|
auto-load
|
||||||
>
|
>
|
||||||
<template #body="{ rows }">
|
<template #body="{ rows }">
|
||||||
<CardList
|
<CardList
|
||||||
|
|
Loading…
Reference in New Issue