- Email Ordine da template HTML

- Corretto altro
This commit is contained in:
Surya Paolo
2023-12-28 15:53:16 +01:00
parent d90b46c206
commit 196b19ac66
11 changed files with 21 additions and 27 deletions

View File

@@ -47,4 +47,9 @@
.product_code { .product_code {
font-size: 0.75rem; font-size: 0.75rem;
color: gray; color: gray;
}
.label-qta{
font-size: 1.15rem;
font-weight: bold;
} }

View File

@@ -181,8 +181,6 @@
{{ products.getQtyAvailable(myproduct) }} {{ products.getQtyAvailable(myproduct) }}
</span> </span>
<div class="prod_qtywarn"> <div class="prod_qtywarn">
{{ getQtyWarn() }}
<div <div
v-if=" v-if="
tools.isManager() && !!myproduct.QuantitaOrdinateInAttesa tools.isManager() && !!myproduct.QuantitaOrdinateInAttesa
@@ -217,10 +215,6 @@
{{ products.getQtyBookableAvailable(myproduct) }} {{ products.getQtyBookableAvailable(myproduct) }}
</span> </span>
<div class="prod_qtywarn"> <div class="prod_qtywarn">
<span v-if="getQtyWarnPreOrdered()">{{
getQtyWarnPreOrdered()
}}</span>
<div <div
v-if=" v-if="
tools.isManager() && !!myproduct.QuantitaPrenotateInAttesa tools.isManager() && !!myproduct.QuantitaPrenotateInAttesa
@@ -281,11 +275,10 @@
<q-field <q-field
outlined outlined
dense dense
style="width: 40px; height: 30px"
class="q-mx-xs" class="q-mx-xs"
> >
<template v-slot:control> <template v-slot:control>
<div class="self-center no-outline" tabindex="0"> <div class="no-outline label-qta text-center" tabindex="0">
{{ myorder.quantity + myorder.quantitypreordered }} {{ myorder.quantity + myorder.quantitypreordered }}
</div> </div>
</template> </template>

View File

@@ -42,4 +42,9 @@
.q-item__section--thumbnail img{ .q-item__section--thumbnail img{
height: 100px; height: 100px;
}
.qta{
font-size: 1.15rem;
font-weight: bold;
} }

View File

@@ -41,19 +41,10 @@
}) })
" "
></q-btn> ></q-btn>
<div v-if="showall" :class="`q-mx-sm text-blue-14`"> <div v-if="showall" :class="`q-mx-sm text-blue-14 qta` ">
{{ order.quantity }} {{ order.quantity + order.quantitypreordered }}
</div>
<div v-if="order.quantity > 0 && order.quantitypreordered > 0">
+ {{ t('ecomm.preord') }}:
</div> </div>
<div
v-if="order.quantitypreordered > 0"
:class="`q-mx-sm text-blue-14`"
>
{{ order.quantitypreordered }}
</div>
<q-btn <q-btn
v-if="showall && !nomodif" v-if="showall && !nomodif"
icon-right="fas fa-cart-plus" icon-right="fas fa-cart-plus"

View File

@@ -2738,19 +2738,19 @@ export const tools = {
}) })
}, },
showPositiveNotif(q: any, msg: string, time?: number) { showPositiveNotif(q: any, msg: string, time?: number, group?: any) {
this.showNotif(q, msg, { color: 'positive', icon: 'notifications' }, time) this.showNotif(q, msg, { color: 'positive', icon: 'notifications' }, time, group)
}, },
showNegativeNotif(q: any, msg: string, time = 5000) { showNegativeNotif(q: any, msg: string, time = 5000, group?: any) {
this.showNotif(q, msg, { color: 'negative', icon: 'notifications' }, time) this.showNotif(q, msg, { color: 'negative', icon: 'notifications' }, time, group)
}, },
showNeutralNotif(q: any, msg: string, time = 10000) { showNeutralNotif(q: any, msg: string, time = 10000) {
this.showNotif(q, msg, { color: 'info', icon: 'notifications' }, time) this.showNotif(q, msg, { color: 'info', icon: 'notifications' }, time)
}, },
showNotif(q: any, msg: string, data?: INotify | null, time?: number) { showNotif(q: any, msg: string, data?: INotify | null, time?: number, group?: any) {
let myicon = data ? data.icon : 'ion-add' let myicon = data ? data.icon : 'ion-add'
if (!myicon) { if (!myicon) {
myicon = 'ion-add' myicon = 'ion-add'
@@ -2760,7 +2760,7 @@ export const tools = {
mycolor = 'primary' mycolor = 'primary'
} }
q.notify({ q.notify({
// group: '', group: group ?? '',
message: msg, message: msg,
icon: myicon, icon: myicon,
classes: 'my-notif-class', classes: 'my-notif-class',

View File

@@ -718,7 +718,7 @@ export const useProducts = defineStore('Products', {
if (qta > 1 || qta === 0) if (qta > 1 || qta === 0)
strprod = t('ecomm.prodotti') strprod = t('ecomm.prodotti')
if (qta > 0) { if (qta >= 0) {
msg = t('ecomm.prod_sul_carrello', { strprod, qty: qta }) msg = t('ecomm.prod_sul_carrello', { strprod, qty: qta })
} }
@@ -726,7 +726,7 @@ export const useProducts = defineStore('Products', {
if (ris === null || ris.myord.quantity === 0) if (ris === null || ris.myord.quantity === 0)
tools.showNotif($q, msg) tools.showNotif($q, msg)
else else
tools.showPositiveNotif($q, msg) tools.showPositiveNotif($q, msg, undefined, 'prodotto')
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB