- aggiornato carrello e bottoni sul catalogo

This commit is contained in:
Surya Paolo
2025-06-12 10:08:07 +02:00
parent d99ad47483
commit 2dac04fb16
36 changed files with 707 additions and 745 deletions

View File

@@ -56,7 +56,8 @@
'flex', // Classi comuni
'image-container',
{ 'shadow-2': options.in_3d && !optcatalogo.pdf }, // Classe condizionale
scheda.testo_right_attaccato.font?.posiz_text === costanti.POSIZ_TESTO.IN_BASSO
scheda.testo_right_attaccato.font?.posiz_text ===
costanti.POSIZ_TESTO.IN_BASSO
? ''
: 'flex flex-row', // Layout flessibile
]"
@@ -83,7 +84,7 @@
),
}"
>
<div>
<div style="position: relative">
<a
:href="myproduct.productInfo.link_macro"
target="_blank"
@@ -136,9 +137,34 @@
: undefined,
display: 'block',
}"
@click="click_opendetail()"
/>
@click.stop.prevent="naviga(`/product/` + myproduct._id)"
>
</q-img>
</a>
<div class="row no-wrap q-col-gutter-x-xs items-center semi-transparent" style="position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); z-index: 10">
<div v-if="!optcatalogo.generazionePDFInCorso">
<q-btn
icon="fas fa-external-link-alt"
color="primary"
class="no-print"
rounded
size="sm"
@click.stop.prevent="tools.openUrl(myproduct.productInfo.link_macro)"
>
</q-btn>
</div>
<div v-if="!optcatalogo.generazionePDFInCorso">
<q-btn
icon-right="fas fa-cart-plus"
color="positive"
class="no-print"
rounded
size="sm"
@click.stop.prevent="addtoCart(true)"
>
</q-btn>
</div>
</div>
<div
v-if="
(tools.isManager() || tools.isEditor()) &&
@@ -229,7 +255,8 @@
</q-item>-->
<q-item
v-if="
!optcatalogo.generazionePDFInCorso && (editOn || options.show_edit_book)
!optcatalogo.generazionePDFInCorso &&
(editOn || options.show_edit_book)
"
clickable
v-close-popup
@@ -332,7 +359,8 @@
</q-item>
<q-item
v-if="
!optcatalogo.generazionePDFInCorso && (editOn || options.show_edit_book)
!optcatalogo.generazionePDFInCorso &&
(editOn || options.show_edit_book)
"
clickable
v-close-popup
@@ -346,7 +374,9 @@
/>
</q-item-section>
<q-item-section>
<q-item-label>Visualizza dati Estrapolati (dal WEB Esterno)</q-item-label>
<q-item-label
>Visualizza dati Estrapolati (dal WEB Esterno)</q-item-label
>
</q-item-section>
</q-item>
@@ -392,7 +422,9 @@
/>
</q-item-section>
<q-item-section>
<q-item-label>Visualizza su GM (con le Quantità in Magazzino)</q-item-label>
<q-item-label
>Visualizza su GM (con le Quantità in Magazzino)</q-item-label
>
</q-item-section>
</q-item>
</q-list>
@@ -410,14 +442,19 @@
:idPage="idPage"
>
<div
v-if="scheda.testo_right_attaccato.font?.posiz_text !== costanti.POSIZ_TESTO.IN_BASSO"
v-if="
scheda.testo_right_attaccato.font?.posiz_text !==
costanti.POSIZ_TESTO.IN_BASSO
"
:style="{
alignSelf:
scheda.testo_right_attaccato.font?.posiz_text === costanti.POSIZ_TESTO.IN_BASSO
scheda.testo_right_attaccato.font?.posiz_text ===
costanti.POSIZ_TESTO.IN_BASSO
? ''
: 'center',
marginTop:
scheda.testo_right_attaccato.font?.posiz_text === costanti.POSIZ_TESTO.IN_BASSO
scheda.testo_right_attaccato.font?.posiz_text ===
costanti.POSIZ_TESTO.IN_BASSO
? 'auto'
: '0',
}"
@@ -436,17 +473,39 @@
:value="myproduct.productInfo.code"
:format="scheda.barcode.format"
:fontsizeprop="scheda.barcode.font?.size"
:gap="tools.adjustSize(optcatalogo, scheda.barcode.size?.gap, scheda, true)"
:gap="
tools.adjustSize(
optcatalogo,
scheda.barcode.size?.gap,
scheda,
true
)
"
:width="
parseInt(
tools.adjustSize(optcatalogo, scheda.barcode.size?.width, scheda, true)
tools.adjustSize(
optcatalogo,
scheda.barcode.size?.width,
scheda,
true
)
)
"
:widthlines="
tools.adjustSize(optcatalogo, scheda.barcode.widthlines, scheda, true)
tools.adjustSize(
optcatalogo,
scheda.barcode.widthlines,
scheda,
true
)
"
:height="
tools.adjustSize(optcatalogo, scheda.barcode.size?.height, scheda, false)
tools.adjustSize(
optcatalogo,
scheda.barcode.size?.height,
scheda,
false
)
"
:show_at_right="scheda.barcode?.show_at_right"
>
@@ -475,7 +534,10 @@
</div>
</CText>
<div
v-if="scheda.testo_right_attaccato.font?.posiz_text === costanti.POSIZ_TESTO.IN_BASSO"
v-if="
scheda.testo_right_attaccato.font?.posiz_text ===
costanti.POSIZ_TESTO.IN_BASSO
"
class="flexible-width"
:style="{
marginTop: 'auto',
@@ -495,17 +557,39 @@
:value="myproduct.productInfo.code"
:format="scheda.barcode.format"
:fontsizeprop="scheda.barcode.font?.size"
:gap="tools.adjustSize(optcatalogo, scheda.barcode.size?.gap, scheda, true)"
:gap="
tools.adjustSize(
optcatalogo,
scheda.barcode.size?.gap,
scheda,
true
)
"
:width="
parseInt(
tools.adjustSize(optcatalogo, scheda.barcode.size?.width, scheda, true)
tools.adjustSize(
optcatalogo,
scheda.barcode.size?.width,
scheda,
true
)
)
"
:widthlines="
tools.adjustSize(optcatalogo, scheda.barcode.widthlines, scheda, true)
tools.adjustSize(
optcatalogo,
scheda.barcode.widthlines,
scheda,
true
)
"
:height="
tools.adjustSize(optcatalogo, scheda.barcode.size?.height, scheda, false)
tools.adjustSize(
optcatalogo,
scheda.barcode.size?.height,
scheda,
false
)
"
:show_at_right="scheda.barcode.show_at_right"
>
@@ -623,7 +707,9 @@
</div>
</td>
<td class="text-center">
<strong>{{ tools.getNomeUtenteEUsernameByRecUser(ordcart.user) }}</strong>
<strong>{{
tools.getNomeUtenteEUsernameByRecUser(ordcart.user)
}}</strong>
</td>
<td class="text-center">
<strong>{{ shared_consts.getStatusStr(ordcart.status) }}</strong>
@@ -635,7 +721,8 @@
>
<span
v-if="
singleord.order.idProduct === myproduct._id && singleord.order.quantity > 0
singleord.order.idProduct === myproduct._id &&
singleord.order.quantity > 0
"
>
{{ singleord.order.quantity }}</span
@@ -670,7 +757,9 @@
</q-dialog>
<q-dialog
v-if="true && myproduct && myproduct.productInfo && myproduct.productInfo.link_scheda"
v-if="
true && myproduct && myproduct.productInfo && myproduct.productInfo.link_scheda
"
v-model="apriSchedaPDF"
maximized
>
@@ -707,7 +796,9 @@
</q-dialog>
<q-dialog
v-if="false && myproduct && myproduct.productInfo && myproduct.productInfo.link_scheda"
v-if="
false && myproduct && myproduct.productInfo && myproduct.productInfo.link_scheda
"
v-model="apriSchedaPDF"
fullscreen
>