- edit campi prodotti

- edit ordini
This commit is contained in:
Surya Paolo
2024-01-13 00:29:02 +01:00
parent 89e8575aae
commit 3ffa2893e5
23 changed files with 749 additions and 65 deletions

View File

@@ -24,7 +24,7 @@
v-if="order.product.productInfo.unit"
>
{{ tools.getWeightTotalByOrder(order) }}
{{ tools.getUnitsMeasure(order.product.productInfo.unit, true) }}
{{ tools.getUnitsMeasure(order.product.productInfo.unit, true, order.product.productInfo.weight) }}
</div>
<div class="row q-mb-xs no-wrap items-center centeritems">
<q-btn
@@ -49,7 +49,7 @@
borderless
rounded
dense
:label="$t('products.quantity')"
:label="t('products.quantity')"
></q-input>
<q-input
v-model="order.quantitypreordered"
@@ -58,11 +58,22 @@
borderless
rounded
dense
@update:model-value="updateOrder"
:label="$t('ecomm.preord')"
:label="t('ecomm.preord')"
></q-input>
</div>
<div v-else-if="showall" :class="`q-mx-sm text-blue-14 qta` ">
<div v-if="tools.isManager">
<q-btn
outline
rounded
dense
color="green"
icon="fas fa-redo"
:label="t('orderscart.update_order')"
@click="updateOrder({quantitypreordered: order.quantitypreordered, quantity: order.quantity})"
>
</q-btn>
</div>
<div v-else-if="showall" :class="`q-mx-sm text-blue-14 qta`">
{{ order.quantity + order.quantitypreordered }}
</div>
@@ -86,7 +97,7 @@
<q-item-label>
<div class="col-2 no-wrap text-subtitle3_short q-mr-sm">
<span class="prezzo_singolo">
{{ (order.quantity + order.quantitypreordered) }} x
{{ order.quantity + order.quantitypreordered }} x
{{ order.price ? order.price : 0 }}
</span>
<span :class="isApplicatoSconto() ? 'ordine_scontato_nuovo' : ''">
@@ -103,8 +114,8 @@
>
{{
(
(order.price * order.quantity) +
(order.price * order.quantitypreordered)
order.price * order.quantity +
order.price * order.quantitypreordered
).toFixed(2)
}}</span
>)</span