forked from verdnatura/salix-front
refactor: refs #6896 requested changes & deleted basicData and Lines warnings
This commit is contained in:
parent
0436dbae51
commit
2f173ac2e7
|
@ -107,8 +107,8 @@ const onClientChange = async (clientId) => {
|
|||
}
|
||||
};
|
||||
|
||||
async function onDataSaved(data) {
|
||||
await router.push({ path: `/order/${data.id}/catalog` });
|
||||
async function onDataSaved(id) {
|
||||
await router.push({ path: `/order/${id}/catalog` });
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@ -117,7 +117,7 @@ async function onDataSaved(data) {
|
|||
<div class="q-pa-md">
|
||||
<FormModel
|
||||
:url="`Orders/${route.params.id}`"
|
||||
@on-data-saved="onDataSaved"
|
||||
@on-data-saved="(row) => onDataSaved(row.id)"
|
||||
:model="ORDER_MODEL"
|
||||
:mapper="orderMapper"
|
||||
:filter="orderFilter"
|
||||
|
@ -133,7 +133,7 @@ async function onDataSaved(data) {
|
|||
:options="clientList"
|
||||
option-value="id"
|
||||
option-label="name"
|
||||
:option-filter="{
|
||||
:filter="{
|
||||
fields: ['id', 'name', 'defaultAddressFk'],
|
||||
}"
|
||||
hide-selected
|
||||
|
@ -157,7 +157,6 @@ async function onDataSaved(data) {
|
|||
option-label="street"
|
||||
hide-selected
|
||||
:disable="!addressList?.length"
|
||||
@update:model-value="onAddressChange"
|
||||
>
|
||||
<template #option="scope">
|
||||
<QItem v-bind="scope.itemProps">
|
||||
|
|
|
@ -18,6 +18,7 @@ const { t } = useI18n();
|
|||
const quasar = useQuasar();
|
||||
const componentKey = ref(0);
|
||||
const tableLinesRef = ref();
|
||||
const order = ref();
|
||||
const refresh = () => {
|
||||
componentKey.value += 1;
|
||||
};
|
||||
|
@ -254,7 +255,7 @@ const columns = computed(() => [
|
|||
>
|
||||
<template #column-image="{ row }">
|
||||
<div class="image-wrapper">
|
||||
<VnImg :id="row?.item?.image" class="rounded" />
|
||||
<VnImg :id="parseInt(row?.item?.image)" class="rounded" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue