- aggiornamento lista catalogo, ordinamento tabelle

This commit is contained in:
Surya Paolo
2025-05-08 11:06:01 +02:00
parent 82e10ef6cf
commit ef36cd5e11
5 changed files with 165 additions and 80 deletions

View File

@@ -787,7 +787,7 @@ export default defineComponent({
if (generalista) {
const catalog = getCatalogoByMyPage.value
if (catalog) {
if (catalog && !optcatalogo.value.showListaArgomenti) {
catalog.data_lista_generata = tools.getDateNow()
catalog.username_lista_generata = userStore.my.username
await saveCatalog()
@@ -1213,9 +1213,9 @@ export default defineComponent({
cat.value = tools.getCookie(getKeyCatAtLoad(), '')
if (getCatalogoByMyPage.value) {
tabcatalogo.value = tools.getCookie('TAB_CAT', 'visu')
tabcatalogo.value = tools.getCookie('TAB_CAT', 'lista')
} else {
tabcatalogo.value = 'visu'
tabcatalogo.value = 'lista'
}
optrigenera.value.visibilitaDisp = tools.getCookie((showListaArgomenti.value ? 'INC_ES_' : '') + 'VIS_DISP', costanti.DISP.DISPONIBILI)
@@ -1273,7 +1273,7 @@ export default defineComponent({
});
function getCatProds() {
return [{ label: 'Tutti', value: '', icon: undefined, color: undefined }].concat(
return [{ label: '[Seleziona un Argomento]', value: '', icon: undefined, color: undefined }].concat(
productStore.getCatProds(cosa.value).map(rec => ({
label: `${rec.name} (${productStore.getTotaliProdottiByIdCatProd(rec._id)})`,
value: rec._id,

View File

@@ -16,7 +16,6 @@
{{ $t('cataloglist.referenti') }}: <span class="text-bold">{{ getReferentiCatalogo() }}</span>
</div>
<q-tabs
v-if="optcatalogo.pdf && (tools.isEditor() || tools.isCommerciale())"
v-model="tabcatalogo"
dense
class="bg-green text-white"
@@ -39,7 +38,7 @@
</q-tab>
<q-tab
name="visu"
icon="fas fa-eye"
icon="fas fa-book"
label="Catalogo"
>
</q-tab>
@@ -58,6 +57,7 @@
>
</q-tab>
<q-tab
v-if="!tools.isUtente()"
name="tutorial"
icon="fas fa-info"
label="Tutorial"
@@ -119,12 +119,22 @@
v-if="!generatinglist"
class="text-center q-py-sm prod_trov"
>
<span v-show="productStore.getNumProdTot() !== arrProducts.length">{{
t('ecomm.prodotti_trovati', {
qta: arrProducts.length,
qtatot: productStore.getNumProdTot(),
})
}}</span>
<div
v-if="cat === '' && arrProducts.length === 0 && showListaArgomenti"
class="row justify-center text-h6"
>
Seleziona un Argomento
</div>
<span
v-else
v-show="productStore.getNumProdTot() !== arrProducts.length"
>{{
t('ecomm.prodotti_trovati', {
qta: arrProducts.length,
qtatot: productStore.getNumProdTot(),
})
}}</span
>
</div>
</q-tab-panel>
@@ -200,7 +210,7 @@
</div>
<CProductTable
v-if="loadpage"
v-if="loadpage && lista_prodotti?.length > 0"
:lista_prodotti="lista_prodotti"
@update:lista_prodotti="updateProducts"
:optcatalogo="optcatalogo"
@@ -453,12 +463,22 @@
</div>
<div class="text-center q-py-sm prod_trov">
<span v-show="productStore.getNumProdTot() !== arrProducts.length">{{
t('ecomm.prodotti_trovati', {
qta: arrProducts.length,
qtatot: productStore.getNumProdTot(),
})
}}</span>
<div
v-if="cat === '' && arrProducts.length === 0 && showListaArgomenti"
class="row justify-center text-h6"
>
Seleziona un Argomento
</div>
<span
v-else
v-show="productStore.getNumProdTot() !== arrProducts.length"
>{{
t('ecomm.prodotti_trovati', {
qta: arrProducts.length,
qtatot: productStore.getNumProdTot(),
})
}}</span
>
</div>
<div
class="row justify-around"