aggiornamento Ordini GAS filtri

This commit is contained in:
Surya Paolo
2024-02-13 18:13:36 +01:00
parent 6a01379b67
commit c6e0caa3f4
71 changed files with 1105 additions and 281 deletions

View File

@@ -1,10 +1,18 @@
<template>
<div v-if="order && order.product && order.product.productInfo" class="q-pa-xs q-gutter-xs">
<div
v-if="order && order.product && order.product.productInfo"
class="q-pa-xs q-gutter-xs"
>
order: {{order}}
<div v-if="order.product">
<q-item>
<q-item-section top thumbnail class="q-ml-none">
<img
v-if="order.product && order.product.productInfo && order.product.productInfo.img"
v-if="
order.product &&
order.product.productInfo &&
order.product.productInfo.img
"
:src="`` + order.product.productInfo.img"
:alt="order.product.productInfo.name"
:class="myimgclass()"
@@ -18,6 +26,7 @@
</div>
{{ order.product.productInfo.name }}
</q-item-label>
<q-item-label caption>
<div
class="text-black text-h8"
@@ -32,6 +41,28 @@
)
}}
</div>
<div class="row q-mb-xs no-wrap items-center centeritems">
<q-input
v-if="editmode"
v-model="weight"
autofocus
debounce="500"
borderless
rounded
dense
:label="t('products.weight')"
></q-input>
<q-input
v-if="editmode"
v-model="price"
autofocus
debounce="500"
borderless
rounded
dense
:label="t('products.price')"
></q-input>
</div>
<div class="row q-mb-xs no-wrap items-center centeritems">
<q-btn
v-if="showall && !nomodif"
@@ -91,7 +122,8 @@
@click="
updateOrder({
quantitypreordered: order.quantitypreordered,
quantity: order.quantity,
quantity: order.quantity,
price: order.price,
})
"
>
@@ -132,8 +164,13 @@
: 0
}}
</span>
<span v-if="tools.isManager() && order.TotalPriceProduct !== order.TotalPriceProductCalc"
:class="isApplicatoSconto() ? 'ordine_scontato_nuovo' : ''">
<span
v-if="
tools.isManager() &&
order.TotalPriceProduct.toFixed(2) !== order.TotalPriceProductCalc.toFixed(2)
"
:class="isApplicatoSconto() ? 'ordine_scontato_nuovo' : ''"
>
(Calc: €
{{
order.TotalPriceProductCalc
@@ -148,16 +185,20 @@
>€
{{
(
(order.price * order.quantity) +
(order.price * order.quantitypreordered)
order.price * order.quantity +
order.price * order.quantitypreordered
).toFixed(2)
}}</span
>)</span
>&nbsp;
</span>
<span v-if="isApplicatoSconto() && !editmode" class="ordine_scritta_sconto">{{
$t('ecomm.sconto_applicato', { risparmio: getRisparmio() })
}}</span>
<span
v-if="isApplicatoSconto() && !editmode"
class="ordine_scritta_sconto"
>{{
$t('ecomm.sconto_applicato', { risparmio: getRisparmio() })
}}</span
>
</div>
</q-item-label>
</q-item-section>