- Export Lista

- Ordinamento
- PDF Risolto Salvataggio ed invio al server direttamente.
This commit is contained in:
Surya Paolo
2025-05-08 23:32:13 +02:00
parent ef36cd5e11
commit f9d73ae836
32 changed files with 1138 additions and 756 deletions

View File

@@ -129,6 +129,10 @@ export const useProducts = defineStore('Products', {
},
getCollane: (state: IProductsState) => (): ICollana[] => {
return state.collane
},
isDisponibile: (state: IProductsState) => (product: IProduct): boolean => {
return product?.arrvariazioni?.[0]?.quantita > 1
},
@@ -365,7 +369,7 @@ export const useProducts = defineStore('Products', {
},
getTotaliProdottiByIdCollana: (state: IProductsState) => (idCollana: string): number => {
const myfirstcat = state.collanetotali!.find((rec: ICollaneTotali) => rec._id === idCollana)
const myfirstcat = state.collane.find((rec: ICollaneTotali) => rec._id === idCollana)
if (myfirstcat) {
return myfirstcat.quanti!
@@ -1759,6 +1763,8 @@ export const useProducts = defineStore('Products', {
let arr: any = []
const globalStore = useGlobalStore()
arr.push({ label: '[Nessuna]', value: '' })
if (arrschede) {
@@ -1766,7 +1772,8 @@ export const useProducts = defineStore('Products', {
let pagename = ''
if (recscheda.scheda) {
if (recscheda.idPageOrig) {
const page = this.mypage?.find((page) => (`${page._id}`) === recscheda.idPageOrig)
const page = globalStore.getPageById(recscheda.idPageOrig)
// const page = this.mypage?.find((page) => (`${page._id}`) === recscheda.idPageOrig)
pagename = page ? page.title! : ''
}
if (pagename)