- Corretta query di estrapolazione libri su GM (Marco)
- aggiornato bestseller su fatlast1Y - non mostrare piu i libri che non hanno l'immagine (sul catalogo). - metti online i compressi
This commit is contained in:
@@ -657,7 +657,7 @@ export default defineComponent({
|
||||
const numfatturati =
|
||||
props.scheda.etichette?.bestseller?.quantiFattRaggiunti ?? 50;
|
||||
|
||||
return myproduct.value!.productInfo.fatLast6M > numfatturati;
|
||||
return myproduct.value!.productInfo.fatLast1Y > numfatturati;
|
||||
}
|
||||
} catch (e) {
|
||||
return false;
|
||||
|
||||
@@ -2015,9 +2015,6 @@
|
||||
map-options
|
||||
>
|
||||
</q-select>
|
||||
LL: {{Products.getFilePathByLinkIdTemplate(
|
||||
recscheda.scheda.linkIdTemplate
|
||||
)}}
|
||||
<q-btn
|
||||
v-if="recscheda.scheda.linkIdTemplate"
|
||||
icon="fas fa-edit"
|
||||
|
||||
@@ -787,6 +787,7 @@ export interface IAreaDiStampa {
|
||||
margini?: IBorder
|
||||
unit?: string
|
||||
format?: number[]
|
||||
format_printable: number[]
|
||||
orientation?: string
|
||||
compress?: boolean
|
||||
scalex?: number
|
||||
|
||||
@@ -62,6 +62,7 @@ export interface IProductInfo {
|
||||
vLast3M?: number,
|
||||
fatLast3M?: number,
|
||||
fatLast6M?: number,
|
||||
fatLast1Y?: number,
|
||||
vLast6M?: number,
|
||||
vLast1Y?: number,
|
||||
vLast2Y?: number,
|
||||
|
||||
@@ -47,6 +47,7 @@ import type {
|
||||
IPagina,
|
||||
IMyScheda,
|
||||
ICollana,
|
||||
ISchedaSingola,
|
||||
} from '@model';
|
||||
import { Privacy, TipoVisu } from '@model';
|
||||
|
||||
@@ -10130,7 +10131,7 @@ export const tools = {
|
||||
return myrec;
|
||||
},
|
||||
|
||||
getScaleX(optcatalogo: IOptCatalogo, scheda?: ISchedaSingola, options?: any): number | undefined {
|
||||
getScaleX(optcatalogo: IOptCatalogo, scheda?: IMyScheda, options?: any): number | undefined {
|
||||
let scalex = 1;
|
||||
if (
|
||||
optcatalogo.printable &&
|
||||
@@ -10149,13 +10150,13 @@ export const tools = {
|
||||
}
|
||||
|
||||
if (scheda) {
|
||||
scalex *= scheda.scalex || 1;
|
||||
scalex *= scheda.scalexscheda || 1;
|
||||
}
|
||||
|
||||
return scalex;
|
||||
},
|
||||
|
||||
getScaleY(optcatalogo: IOptCatalogo, scheda?: ISchedaSingola, options?: any): number | undefined {
|
||||
getScaleY(optcatalogo: IOptCatalogo, scheda?: IMyScheda, options?: any): number | undefined {
|
||||
let scaley = 1;
|
||||
if (
|
||||
optcatalogo.printable &&
|
||||
@@ -10174,7 +10175,7 @@ export const tools = {
|
||||
}
|
||||
|
||||
if (scheda) {
|
||||
scaley *= scheda?.scaley || 1;
|
||||
scaley *= scheda?.scaleyscheda || 1;
|
||||
}
|
||||
|
||||
return scaley;
|
||||
|
||||
@@ -78,6 +78,11 @@
|
||||
color="negative"
|
||||
@click="EseguiFunz('removeProductInfoWithoutDateUpdatedFromGM')"
|
||||
></q-btn>
|
||||
<q-btn
|
||||
label="Resetta Flag: Image Not Found dei Prodotti che non erano stati trovati l'img"
|
||||
color="primary"
|
||||
@click="EseguiFunz('resetImageNotFound')"
|
||||
></q-btn>
|
||||
<q-btn
|
||||
label="Estrapola ed Aggiorna TUTTI i dati Mancanti da Amazon (Scraper)"
|
||||
color="negative"
|
||||
|
||||
@@ -1612,13 +1612,10 @@ export default defineComponent({
|
||||
// Se la lista è vuota allora mostra il Tab Lista:
|
||||
if (myCatalog.value && !showListaFiltrata.value) {
|
||||
if (myCatalog.value.lista_prodotti.length === 0) {
|
||||
tabcatalogo.value = 'lista'
|
||||
tabcatalogo.value = 'lista';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
optrigenera.value.visibilitaDisp = tools.getCookie(
|
||||
(showListaFiltrata.value ? 'INC_ES_' : '') + 'VIS_DISP',
|
||||
costanti.DISP.DISPONIBILI
|
||||
@@ -2493,6 +2490,23 @@ export default defineComponent({
|
||||
if (ris && !ris.error) {
|
||||
const catalog = myCatalog.value;
|
||||
if (catalog) {
|
||||
if (instampa) {
|
||||
catalog.pdf_generato_stampa = ris.fileout;
|
||||
catalog.pdf_generato_stampa_compressed = ris.fileout_compressed;
|
||||
|
||||
catalog.pdf_generato_stampa_size = ris.filesize;
|
||||
catalog.pdf_generato_stampa_compr_size = ris.filesize_compressed;
|
||||
|
||||
catalog.data_generato_stampa = tools.getDateNow();
|
||||
} else {
|
||||
catalog.pdf_generato_compressed = ris.fileout_compressed;
|
||||
catalog.pdf_generato = ris.fileout;
|
||||
|
||||
catalog.pdf_generato_size = ris.filesize;
|
||||
catalog.pdf_generato_compr_size = ris.filesize_compressed;
|
||||
|
||||
catalog.data_generato = tools.getDateNow();
|
||||
}
|
||||
|
||||
} else {
|
||||
strout.value = JSON.stringify(ris, null, 2);
|
||||
|
||||
@@ -332,6 +332,7 @@ export default defineComponent({
|
||||
dbop: 'onlinePdfRaccolta',
|
||||
options: {
|
||||
idRaccolta: getRaccoltaCataloghiByMyPage.value._id,
|
||||
compresso: !stampa,
|
||||
stampa,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user