0
0
Fork 0

refactor: refs #6896 requested changes & deleted basicData and Lines warnings

This commit is contained in:
Jon Elias 2024-07-05 13:35:45 +02:00
parent 0436dbae51
commit 2f173ac2e7
2 changed files with 6 additions and 6 deletions

View File

@ -107,8 +107,8 @@ const onClientChange = async (clientId) => {
} }
}; };
async function onDataSaved(data) { async function onDataSaved(id) {
await router.push({ path: `/order/${data.id}/catalog` }); await router.push({ path: `/order/${id}/catalog` });
} }
</script> </script>
@ -117,7 +117,7 @@ async function onDataSaved(data) {
<div class="q-pa-md"> <div class="q-pa-md">
<FormModel <FormModel
:url="`Orders/${route.params.id}`" :url="`Orders/${route.params.id}`"
@on-data-saved="onDataSaved" @on-data-saved="(row) => onDataSaved(row.id)"
:model="ORDER_MODEL" :model="ORDER_MODEL"
:mapper="orderMapper" :mapper="orderMapper"
:filter="orderFilter" :filter="orderFilter"
@ -133,7 +133,7 @@ async function onDataSaved(data) {
:options="clientList" :options="clientList"
option-value="id" option-value="id"
option-label="name" option-label="name"
:option-filter="{ :filter="{
fields: ['id', 'name', 'defaultAddressFk'], fields: ['id', 'name', 'defaultAddressFk'],
}" }"
hide-selected hide-selected
@ -157,7 +157,6 @@ async function onDataSaved(data) {
option-label="street" option-label="street"
hide-selected hide-selected
:disable="!addressList?.length" :disable="!addressList?.length"
@update:model-value="onAddressChange"
> >
<template #option="scope"> <template #option="scope">
<QItem v-bind="scope.itemProps"> <QItem v-bind="scope.itemProps">

View File

@ -18,6 +18,7 @@ const { t } = useI18n();
const quasar = useQuasar(); const quasar = useQuasar();
const componentKey = ref(0); const componentKey = ref(0);
const tableLinesRef = ref(); const tableLinesRef = ref();
const order = ref();
const refresh = () => { const refresh = () => {
componentKey.value += 1; componentKey.value += 1;
}; };
@ -254,7 +255,7 @@ const columns = computed(() => [
> >
<template #column-image="{ row }"> <template #column-image="{ row }">
<div class="image-wrapper"> <div class="image-wrapper">
<VnImg :id="row?.item?.image" class="rounded" /> <VnImg :id="parseInt(row?.item?.image)" class="rounded" />
</div> </div>
</template> </template>