refactor: refs #8363 translations and fixed popup

This commit is contained in:
Jon Elias 2025-04-10 08:56:05 +02:00
parent b7ed24dd72
commit 289f5ce404
3 changed files with 24 additions and 5 deletions

View File

@ -877,6 +877,11 @@ components:
active: Is active
floramondo: Is floramondo
showBadDates: Show future items
name: Nombre
rate2: Grouping price
rate3: Packing price
minPrice: Min. Price
itemFk: Item id
userPanel:
copyToken: Token copied to clipboard
settings: Settings

View File

@ -961,6 +961,11 @@ components:
to: Hasta
floramondo: Floramondo
showBadDates: Ver items a futuro
name: Nombre
rate2: Precio grouping
rate3: Precio packing
minPrice: Precio mínimo
itemFk: Id item
userPanel:
copyToken: Token copiado al portapapeles
settings: Configuración

View File

@ -218,6 +218,11 @@ const dateStyle = (date) =>
}
: { color: dateColor, 'background-color': 'transparent' };
const onDataSaved = () => {
tableRef.value.CrudModelRef.saveChanges();
selectedRows.value = [];
};
onMounted(() => {
if (tableRef.value) {
tableRef.value.showForm = false;
@ -227,9 +232,13 @@ onMounted(() => {
watch(
() => tableRef.value?.showForm,
(newVal) => {
if (newVal === false && tableRef.value) {
isToClone.value = false;
tableRef.value.create.title = t('Create fixed price');
if (!newVal) {
tableRef.value.create.title = '';
tableRef.value.create.formInitialData = { warehouseFk: warehouse };
if (tableRef.value) {
isToClone.value = false;
tableRef.value.create.title = t('Create fixed price');
}
}
},
);
@ -290,9 +299,9 @@ watch(
<template #column-name="{ row }">
<span class="link">
{{ row.name }}
<ItemDescriptorProxy :id="row.itemFk" />
</span>
<span class="subName">{{ row.subName }}</span>
<ItemDescriptorProxy :id="row.itemFk" />
<FetchedTags :item="row" :columns="6" />
</template>
<template #column-started="{ row }">
@ -371,7 +380,7 @@ watch(
)
"
:beforeSave="beforeSave"
@on-data-saved="tableRef.CrudModelRef.saveChanges()"
@on-data-saved="onDataSaved"
/>
</QDialog>
</template>