- Sistemato link pdf che ogni volta che si aggiorna prendeva il PDF dalla cache...

- Raccolta Cataloghi, procedura che li AUTO genera in automatico.
This commit is contained in:
Surya Paolo
2025-06-13 17:45:57 +02:00
parent 286cc4e3a7
commit f146b36173
24 changed files with 353 additions and 188 deletions

View File

@@ -51,6 +51,11 @@ export default defineComponent({
type: Array,
required: true,
},
lista_prod_confronto: {
type: Array,
required: false,
default: [],
},
table: {
type: String,
required: true,
@@ -872,7 +877,7 @@ export default defineComponent({
};
// 3. Funzione per verificare se una colonna è visibile (isColumnVisible)
const isColumnVisible = (column: string, real?: boolean) => {
const isColumnVisible = (column: string, real?: boolean, element?: any) => {
if (column === 'actions' && !real) {
return false;
}
@@ -886,12 +891,14 @@ export default defineComponent({
(!props.optcatalogo.showListaArgomenti ||
(props.optcatalogo.showListaArgomenti && !isEditColumn(column)));
if (props.options?.showbuttAdd && column === 'addtolist') {
if (props.options?.showbuttAdd && column === 'addtolist'
&& (!element || !props.lista_prod_confronto.some((prod: any) => prod._id === element?._id))
) {
if (tools.isCollaboratore())
ok = true
}
if (!props.options?.showbuttAdd && column === 'addtolist') {
if (!props.options?.showbuttAdd && column === 'addtolist' && (element && props.lista_prod_confronto.some((prod: any) => prod._id === element?._id))) {
ok = false
}