Aggiornamento modifiche preOrdini
This commit is contained in:
@@ -51,16 +51,17 @@
|
||||
myproduct.after_price
|
||||
}}</span>
|
||||
</q-item-label>
|
||||
<q-item-label v-if="myproduct.scontisticas && myproduct.scontisticas.length > 0">
|
||||
<q-item-label
|
||||
v-if="myproduct.scontisticas && myproduct.scontisticas.length > 0"
|
||||
>
|
||||
<div
|
||||
class="prod_sconti"
|
||||
class="prod_sconti"
|
||||
v-for="(sconti, index) of myproduct.scontisticas"
|
||||
:key="index"
|
||||
>
|
||||
{{ sconti.description }}
|
||||
</div>
|
||||
</div>
|
||||
</q-item-label>
|
||||
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -116,29 +117,18 @@
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label>
|
||||
<span v-if="getQtyAvailable() < 0">
|
||||
{{ t('ecomm.preorders') }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ t('ecomm.available') }}
|
||||
</span>
|
||||
{{ t('ecomm.available') }}
|
||||
</q-item-label>
|
||||
<q-item-label>
|
||||
<span class="prod_disp">
|
||||
<span v-if="getQtyAvailable() < 0">
|
||||
{{ -getQtyAvailable() }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ getQtyAvailable() }}
|
||||
</span>
|
||||
{{ getQtyAvailable() }}
|
||||
</span>
|
||||
<div class="prod_qtywarn">
|
||||
{{ getQtyWarn() }}
|
||||
|
||||
<div
|
||||
v-if="
|
||||
tools.isManager() &&
|
||||
!!myproduct.QuantitaOrdinateInAttesa
|
||||
tools.isManager() && !!myproduct.QuantitaOrdinateInAttesa
|
||||
"
|
||||
>
|
||||
{{
|
||||
@@ -152,6 +142,43 @@
|
||||
<q-item-label> </q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
v-if="getQtyBookableAvailable() > 0"
|
||||
:clickable="tools.isManager()"
|
||||
@click="tools.isManager() ? (openlistorders = true) : null"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-icon color="blue" name="fas fa-edit" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label>
|
||||
{{ t('ecomm.preorders') }}
|
||||
</q-item-label>
|
||||
<q-item-label>
|
||||
<span class="prod_preorder">
|
||||
{{ getQtyBookableAvailable() }}
|
||||
</span>
|
||||
<div class="prod_qtywarn">
|
||||
<span v-if="getQtyWarnPreOrdered()">{{
|
||||
getQtyWarnPreOrdered()
|
||||
}}</span>
|
||||
|
||||
<div
|
||||
v-if="
|
||||
tools.isManager() && !!myproduct.QuantitaPrenotateInAttesa
|
||||
"
|
||||
>
|
||||
{{
|
||||
$t('ecomm.qta_prenotate_in_attesa', {
|
||||
qty: myproduct.QuantitaPrenotateInAttesa,
|
||||
})
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
<div class="row q-mb-sm no-wrap items-center centeritems">
|
||||
<q-btn
|
||||
@@ -175,6 +202,13 @@
|
||||
<div class="self-center no-outline" tabindex="0">
|
||||
{{ myorder.quantity }}
|
||||
</div>
|
||||
<div
|
||||
v-if="myorder.quantitypreordered"
|
||||
class="self-center no-outline"
|
||||
tabindex="0"
|
||||
>
|
||||
Preord.: {{ myorder.quantitypreordered }}
|
||||
</div>
|
||||
</template>
|
||||
</q-field>
|
||||
|
||||
@@ -221,7 +255,7 @@
|
||||
|
||||
<q-card-actions vertical align="center">
|
||||
<q-btn
|
||||
v-if="myorder.quantity > 0"
|
||||
v-if="myorder.quantity + myorder.quantitypreordered > 0"
|
||||
rounded
|
||||
icon="fas fa-shopping-cart"
|
||||
color="primary"
|
||||
@@ -282,9 +316,22 @@
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<div v-for="(singleord, index) in ordcart.items" :key="index">
|
||||
<span v-if="singleord.order.idProduct === myproduct._id">{{
|
||||
singleord.order.quantity
|
||||
}}</span>
|
||||
<span
|
||||
v-if="
|
||||
singleord.order.idProduct === myproduct._id &&
|
||||
singleord.order.quantity > 0
|
||||
"
|
||||
>
|
||||
{{ singleord.order.quantity }}</span
|
||||
>
|
||||
<span
|
||||
v-if="
|
||||
singleord.order.idProduct === myproduct._id &&
|
||||
singleord.order.quantitypreordered > 0
|
||||
"
|
||||
>
|
||||
{{ singleord.order.quantitypreordered }}</span
|
||||
>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
|
||||
Reference in New Issue
Block a user