- corretto scheda prodotto, record salvato
This commit is contained in:
@@ -62,7 +62,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function SaveValue(newVal: any, valinitial: any) {
|
||||
console.log('SaveValue', newVal)
|
||||
// console.log('SaveValue', newVal)
|
||||
|
||||
const mydata: ICfgServer = {
|
||||
chiave: keysel.value,
|
||||
|
||||
@@ -11,6 +11,21 @@
|
||||
@click="EseguiFunz('MigrateMSSQLToMongoDb', {tutte: true})"
|
||||
></q-btn>
|
||||
|
||||
<q-btn
|
||||
label="Migrazione del DB MSSQL su MongoDB (Parte 1)"
|
||||
color="positive"
|
||||
@click="EseguiFunz('MigrateMSSQLToMongoDb', {parte1: true})"
|
||||
></q-btn>
|
||||
<q-btn
|
||||
label="Migrazione del DB MSSQL su MongoDB (Parte 2)"
|
||||
color="positive"
|
||||
@click="EseguiFunz('MigrateMSSQLToMongoDb', {parte2: true})"
|
||||
></q-btn>
|
||||
<q-btn
|
||||
label="Migrazione del DB MSSQL su MongoDB (Parte 3)"
|
||||
color="positive"
|
||||
@click="EseguiFunz('MigrateMSSQLToMongoDb', {parte3: true})"
|
||||
></q-btn>
|
||||
<q-btn
|
||||
label="Migrazione del DB MSSQL su MongoDB (ALCUNE)"
|
||||
color="positive"
|
||||
|
||||
@@ -112,6 +112,7 @@ body {
|
||||
margin-bottom: calc(5 * var(--scalecatalog) * 1px);
|
||||
font-size: calc(20 * var(--scalecatalog) * 1px);
|
||||
height: calc(380 * var(--scalecatalog) * 1px);
|
||||
line-height: 130%;
|
||||
}
|
||||
|
||||
.book-text-down {
|
||||
@@ -121,7 +122,6 @@ body {
|
||||
|
||||
.book-pagina-title {
|
||||
font-family: 'DINPro', sans-serif;
|
||||
color: white;
|
||||
margin-top: calc(20 * var(--scalecatalog) * 1px);
|
||||
margin-bottom: calc(5 * var(--scalecatalog) * 1px);
|
||||
font-size: calc(35 * var(--scalecatalog) * 1px);
|
||||
|
||||
@@ -214,6 +214,16 @@ export default defineComponent({
|
||||
|
||||
let testo = getTextSostituito(recscheda.scheda!.dimensioni.pagina?.testo_title)
|
||||
|
||||
const catalog = getCatalogoByMyPage.value
|
||||
|
||||
let clcol = ''
|
||||
|
||||
if (catalog.pagina_introduttiva_sfondo_nero) {
|
||||
clcol = `text-white`
|
||||
}
|
||||
|
||||
testo = `<span class="book-pagina-title ${clcol}">` + testo + `</span>`
|
||||
|
||||
return testo
|
||||
|
||||
})
|
||||
@@ -489,6 +499,7 @@ export default defineComponent({
|
||||
filtroProductTypes: number[],
|
||||
filtroExcludeProductTypes: number[],
|
||||
filtroidTipologie: number[],
|
||||
filtroidTipoFormato: number[],
|
||||
editore: string[],
|
||||
idCollane: string[],
|
||||
arrargomstr: any[],
|
||||
@@ -507,6 +518,7 @@ export default defineComponent({
|
||||
filtroProductTypes.length === 0 || (filtroProductTypes.length === 1 && filtroProductTypes[0] === 0);
|
||||
const boolfiltroVuotoExcludeProductTypes = filtroExcludeProductTypes.length === 0;
|
||||
const boolfiltroVuotoidTipologie = filtroidTipologie.length === 0;
|
||||
const boolfiltroVuotoidTipoFormato = filtroidTipoFormato.length === 0;
|
||||
const boolfiltroVuotoEditore = editore.length === 0;
|
||||
const boolfiltroVuotoCollane = idCollane.length === 0;
|
||||
const boolfiltroVuotoArgomenti = arrargomstr.length === 0;
|
||||
@@ -587,6 +599,10 @@ export default defineComponent({
|
||||
? true
|
||||
: filtroidTipologie.includes(product.arrvariazioni?.[0].idTipologia);
|
||||
|
||||
const hasidTipoFormato = boolfiltroVuotoidTipoFormato
|
||||
? true
|
||||
: filtroidTipoFormato.includes(product.arrvariazioni?.[0].idTipoFormato);
|
||||
|
||||
// Filtri per editore
|
||||
const hasPublished = boolfiltroVuotoEditore
|
||||
? se_tutti_veri
|
||||
@@ -615,7 +631,7 @@ export default defineComponent({
|
||||
const filtri = [hasArgomentiCat, hasCategoria, hasCollana, hasPublished];
|
||||
|
||||
// Decido se combinare in AND o OR sulla base della scelta globale
|
||||
let risult = searchMatch && hasAuthor && productgassel && hasidTipologie
|
||||
let risult = searchMatch && hasAuthor && productgassel && hasidTipologie && hasidTipoFormato
|
||||
|
||||
if (op_andor.condition_andor === costanti.OP_ANDOR.OP_AND) {
|
||||
risult = risult && filtri.every(Boolean); // Tutti i gruppi devono essere veri
|
||||
@@ -653,6 +669,7 @@ export default defineComponent({
|
||||
const filtroProductTypes = optcatalogo.value.productTypes || [0];
|
||||
const filtroExcludeProductTypes = optcatalogo.value.excludeproductTypes || [0];
|
||||
const filtroidTipologie = optcatalogo.value.idTipologie || [];
|
||||
const filtroidTipoFormato = optcatalogo.value.idTipoFormato || [];
|
||||
const editore = getEditoreDaFiltrare(optcatalogo.value.editore);
|
||||
const filtroPublishers = editore || [];
|
||||
const idCollane = getIdCollaneDaFiltrare(optcatalogo.value.idCollane);
|
||||
@@ -693,6 +710,7 @@ export default defineComponent({
|
||||
filtroProductTypes,
|
||||
filtroExcludeProductTypes,
|
||||
filtroidTipologie,
|
||||
filtroidTipoFormato,
|
||||
filtroPublishers,
|
||||
filtroCollane,
|
||||
arrargomstr,
|
||||
@@ -752,6 +770,7 @@ export default defineComponent({
|
||||
!arraysEqual(scheda.productTypes, schedaprec?.productTypes) ||
|
||||
!arraysEqual(scheda.excludeproductTypes, schedaprec?.excludeproductTypes) ||
|
||||
!arraysEqual(scheda.idTipologie, schedaprec?.idTipologie) ||
|
||||
!arraysEqual(scheda.idTipoFormato, schedaprec?.idTipoFormato) ||
|
||||
!arraysEqual(scheda.editore, schedaprec?.editore) ||
|
||||
!arraysEqual(scheda.idCollane, schedaprec?.idCollane)
|
||||
;
|
||||
@@ -767,6 +786,7 @@ export default defineComponent({
|
||||
const filtroProductTypes = scheda.productTypes || [0];
|
||||
const filtroExcludeProductTypes = scheda.excludeproductTypes || [0];
|
||||
const filtroidTipologie = scheda.idTipologie || [];
|
||||
const filtroidTipoFormato = scheda.idTipoFormato || [];
|
||||
const editore = getEditoreDaFiltrare(scheda.editore);
|
||||
const filtroPublishers = editore || [];
|
||||
const idCollane = getIdCollaneDaFiltrare(scheda.idCollane);
|
||||
@@ -795,6 +815,7 @@ export default defineComponent({
|
||||
filtroProductTypes,
|
||||
filtroExcludeProductTypes,
|
||||
filtroidTipologie,
|
||||
filtroidTipoFormato,
|
||||
filtroPublishers,
|
||||
filtroCollane,
|
||||
arrargomstr,
|
||||
@@ -1091,7 +1112,11 @@ export default defineComponent({
|
||||
if (showListaArgomenti.value)
|
||||
cat.value = tools.getCookie(getKeyCatAtLoad(), '')
|
||||
|
||||
tabcatalogo.value = tools.getCookie('TAB_CAT', 'visu')
|
||||
if (getCatalogoByMyPage.value) {
|
||||
tabcatalogo.value = tools.getCookie('TAB_CAT', 'visu')
|
||||
} else {
|
||||
tabcatalogo.value = 'visu'
|
||||
}
|
||||
|
||||
optrigenera.value.visibilitaDisp = tools.getCookie((showListaArgomenti.value ? 'INC_ES_' : '') + 'VIS_DISP', costanti.DISP.DISPONIBILI)
|
||||
optrigenera.value.stato = tools.getCookie((showListaArgomenti.value ? 'INC_ES_' : '') + 'VIS_STATO', costanti.STATO.IN_COMMERCIO)
|
||||
|
||||
@@ -190,6 +190,7 @@
|
||||
</div>
|
||||
|
||||
<CProductTable
|
||||
v-if="loadpage"
|
||||
:lista_prodotti="lista_prodotti"
|
||||
@update:lista_prodotti="updateProducts"
|
||||
:optcatalogo="optcatalogo"
|
||||
@@ -698,37 +699,24 @@
|
||||
<pre>
|
||||
<strong>PASSI DA COMPIERE PER FARE AGGIORNAMENTI :</strong>
|
||||
|
||||
1. Ottenere il file delle descrizioni aggiornato (da Matteo chiedere l'export di tutti i prodotti presenti su GruppoMacro - XML)
|
||||
1. Ottenere il file delle descrizioni aggiornato (esportare tutti i prodotti presenti su GruppoMacro - XML)
|
||||
<a
|
||||
href="https://www.gruppomacro.com/admin/prodotti_esportazione.php"
|
||||
target="_blank"
|
||||
>Esporta Prodotti (XML)</a>
|
||||
|
||||
|
||||
2. Eseguire "IMPORTA DESCRIZIONI E LINK DA SITO GRUPPOMACRO (XML)" - importa_descrizioni_e_link.xml
|
||||
|
||||
3. Visualizza
|
||||
<a
|
||||
href="http://vps-88271abb.vps.ovh.net/apimacro/public/view-articles-fatturati"
|
||||
target="_blank"
|
||||
>Ranking</a> -
|
||||
3. Visualizza:
|
||||
<a
|
||||
href="http://vps-88271abb.vps.ovh.net/apimacro/public/view-articles-sales"
|
||||
target="_blank"
|
||||
>(Ranking Ordini)</a>
|
||||
>Articoli Venduti</a>
|
||||
e controlla se tutto ok
|
||||
<br>
|
||||
|
||||
4. Esporta il file del Ranking ed importarlo con "IMPORTA RANKING DA JSON"
|
||||
<a
|
||||
href="http://vps-88271abb.vps.ovh.net/apimacro/public/export-articles-sales-json"
|
||||
target="_blank"
|
||||
>(Esporta Ranking Venduti e Fatturati)</a
|
||||
>
|
||||
|
||||
5. Scarica Catalogo (<a
|
||||
href="https://www.fioredellavita.it/wp-content/uploads/woo-feed/custom/json/primofeed-2.json"
|
||||
target="_blank"
|
||||
>Catalogo primofeed-2.json</a
|
||||
>)
|
||||
|
||||
6. Esegui "Importa Cataloghi da JSON (ImportaMacro)"
|
||||
|
||||
7. GENERARE UN CATALOGO cliccando su "CREA CATALOGO ..."
|
||||
4 . GENERARE UN CATALOGO cliccando su "CREA CATALOGO ..."
|
||||
|
||||
8. <a
|
||||
href="https://gruppomacro.app/admin/convertPDF"
|
||||
@@ -749,11 +737,6 @@
|
||||
target="_blank"
|
||||
>Tabella Argomenti </a>
|
||||
|
||||
<a
|
||||
href="https://www.fioredellavita.it/wp-admin/admin.php?page=webappick-manage-feeds"
|
||||
target="_blank"
|
||||
>Gestisci Campi Catalogo FDV (CTXFEED)</a
|
||||
>
|
||||
<a
|
||||
href="http://vps-88271abb.vps.ovh.net/apimacro/public/view-lista-ordini-totale/2024-11-01"
|
||||
target="_blank"
|
||||
@@ -775,11 +758,27 @@
|
||||
<CMyDialog
|
||||
v-model="rigeneraLibri"
|
||||
title="Rigenera Lista"
|
||||
class="q-ma-md"
|
||||
class="q-ma-sm"
|
||||
>
|
||||
<q-card class="q-ma-md">
|
||||
<q-card class="q-ma-sm">
|
||||
<q-card-section>
|
||||
<div style="width: 600px; margin: 0 auto">
|
||||
<div style="width: 800px; margin: 0 auto">
|
||||
<CMyValueDb
|
||||
v-if="getCatalogoByMyPage"
|
||||
:editOn="true"
|
||||
:title="t('cataloglist.idTipoFormato')"
|
||||
table="catalogs"
|
||||
:id="getCatalogoByMyPage._id"
|
||||
:rec="getCatalogoByMyPage"
|
||||
mykey="idTipoFormato"
|
||||
debounce="1000"
|
||||
:type="costanti.FieldType.multiselect"
|
||||
jointable="t_web_tipiformatos"
|
||||
class="q-mb-md"
|
||||
:dense="false"
|
||||
>
|
||||
</CMyValueDb>
|
||||
|
||||
<div class="row">
|
||||
<CMyValueDb
|
||||
v-if="getCatalogoByMyPage"
|
||||
@@ -795,8 +794,6 @@
|
||||
:dense="false"
|
||||
>
|
||||
</CMyValueDb>
|
||||
</div>
|
||||
<div>
|
||||
<CMyValueDb
|
||||
v-if="getCatalogoByMyPage"
|
||||
:editOn="true"
|
||||
|
||||
Reference in New Issue
Block a user