fix: get quotation attachment on edit mode

This commit is contained in:
puriphatt 2024-11-01 17:35:36 +07:00
parent 9655597679
commit 44f27bf2ea

View file

@ -848,7 +848,10 @@ onMounted(async () => {
if (locale.value === 'tha') optionStore.globalOption = rawOption.tha;
await fetchStatus();
await getAttachment();
if (quotationFormState.value.mode === 'edit') {
await getAttachment();
}
pageState.isLoaded = true;
});
@ -1369,6 +1372,7 @@ const view = ref<View>(View.Quotation);
</q-expansion-item>
<q-expansion-item
v-if="quotationFormState.mode !== 'create'"
for="item-up"
id="item-up"
dense