aggiornamento cataloghi, search
This commit is contained in:
@@ -9815,7 +9815,7 @@ export const tools = {
|
||||
},
|
||||
|
||||
getsearchList_Cataloghi() {
|
||||
return [{
|
||||
const lista = [{
|
||||
visible: true,
|
||||
label: 'Editore',
|
||||
table: 'lista_editori',
|
||||
@@ -9825,11 +9825,15 @@ export const tools = {
|
||||
keycookie: '',
|
||||
addall: true,
|
||||
arrvalue: [],
|
||||
filter: () => { },
|
||||
filter: null,
|
||||
useinput: false,
|
||||
icon: 'fas fa-user'
|
||||
}]
|
||||
|
||||
console.log('getsearchList_Cataloghi', lista)
|
||||
|
||||
return lista
|
||||
|
||||
},
|
||||
|
||||
existProp(obj: any, prop: string) {
|
||||
|
||||
@@ -144,8 +144,8 @@ export const useProducts = defineStore('Products', {
|
||||
return product.arrvariazioni[0].quantita <= 0
|
||||
},
|
||||
|
||||
isPubblicato: (state: IProductsState) => (productInfo: IProductInfo): boolean => {
|
||||
switch (productInfo?.idStatoProdotto) {
|
||||
isPubblicatoById: (state: IProductsState) => (idStatoProdotto: number): boolean => {
|
||||
switch (idStatoProdotto) {
|
||||
case 1:
|
||||
case 4:
|
||||
case 34:
|
||||
@@ -158,6 +158,10 @@ export const useProducts = defineStore('Products', {
|
||||
}
|
||||
},
|
||||
|
||||
isPubblicato: (state: IProductsState) => (productInfo: IProductInfo): boolean => {
|
||||
return state.isPubblicatoById(productInfo.idStatoProdotto)
|
||||
},
|
||||
|
||||
getDescrStatiProdottoByIdStatoProdotto: (state: IProductsState) => (idStatoProdotto: number): string => {
|
||||
const ctrec = state.stati_prodotto.find((mystatus: T_Web_StatiProdotto) => mystatus.IdStatoProdotto === idStatoProdotto)
|
||||
return (ctrec) ? ctrec.Descrizione : ''
|
||||
|
||||
@@ -229,7 +229,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return (this.servercode === toolsext.ERR_SERVERFETCH)
|
||||
},
|
||||
|
||||
getListaEditori: (state: IUserState) => {
|
||||
listaEditori: (state: IUserState): any => {
|
||||
return state.lista_editori
|
||||
},
|
||||
|
||||
|
||||
@@ -456,7 +456,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
else if (table === 'friends')
|
||||
return userStore.my.profile.friends
|
||||
else if (table === 'lista_editori') {
|
||||
ris = userStore.getListaEditori
|
||||
ris = userStore.listaEditori
|
||||
} else if (table === 'friendsandme')
|
||||
return [{ username: userStore.my.username }, ...userStore.my.profile.friends]
|
||||
// else if (table === 'mygroups')
|
||||
@@ -2614,7 +2614,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
const options: IOptQueryGM = {
|
||||
nameTable: 'T_Web_Articoli',
|
||||
query: '',
|
||||
where: 'T.IdArticolo =' + sku + ' AND T.Ean13 = ' + isbn,
|
||||
where: 'T.IdArticolo =' + sku + ' AND T.Ean13 = \'' + isbn + '\'',
|
||||
showQtaDisponibile: false,
|
||||
outhtml: false,
|
||||
cmd: shared_consts.CmdQueryMs.UPDATE,
|
||||
|
||||
Reference in New Issue
Block a user