- Sistemato i Referenti (e non Editori), quando crei un nuovo Catalogo ti imposta la proprietà a te, ma chiunque Collaboratore potrebbe cmq modificartelo.

This commit is contained in:
Surya Paolo
2025-07-01 12:59:39 +02:00
parent 4b65400d50
commit 9e95fe622b
29 changed files with 138 additions and 84 deletions

View File

@@ -1123,6 +1123,12 @@ export default defineComponent({
}
}
async function lista_Aggiornata() {
myCatalog.value.data_lista_updated = tools.getDateNow();
myCatalog.value.username_lista_updated = userStore.my.username;
await saveCatalog();
}
async function saveCatalog() {
const catalog = myCatalog.value;
const mydata = {
@@ -1519,6 +1525,8 @@ export default defineComponent({
const productIds = myarr.map((product) => product._id);
let mydata = {
data_lista_updated: tools.getDateNow(),
username_lista_updated: userStore.my.username,
lista_prodotti: productIds,
};
@@ -1535,6 +1543,8 @@ export default defineComponent({
if (ricarica) {
generatearrProdToViewSorted(true, false);
}
// lista_Aggiornata();
}
/*function getProducts() {
@@ -2509,7 +2519,6 @@ export default defineComponent({
catalog.data_generato = tools.getDateNow();
}
} else {
strout.value = JSON.stringify(ris, null, 2);
}