aggio gasordine
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<template>
|
||||
<div class="row items-start q-gutter-sm">
|
||||
<q-spinner v-if="!endload" color="primary" size="3em" :thickness="2" />
|
||||
|
||||
<q-card
|
||||
:class="{
|
||||
'my-card-big': complete,
|
||||
@@ -330,6 +329,7 @@
|
||||
<q-item-section>
|
||||
<q-item-label class="">
|
||||
<CMyValueDb
|
||||
title=""
|
||||
:editOn="editOn"
|
||||
table="products"
|
||||
:id="myproduct._id"
|
||||
@@ -448,37 +448,17 @@
|
||||
</q-item-section>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item v-if="myproduct.gasordines && myproduct.gasordines.length >= 1">
|
||||
<q-item v-if="myproduct.gasordine && myproduct.gasordine.active && myproduct.idGasordine">
|
||||
<q-item-section avatar>
|
||||
<q-icon color="blue" name="fas fa-shipping-fast" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label class="subtit_prod">
|
||||
{{ t('products.gasordine') }}
|
||||
</q-item-label>
|
||||
<q-item-label
|
||||
v-if="
|
||||
tools.isArray(myproduct.gasordines) &&
|
||||
myproduct.gasordines.length > 1 &&
|
||||
(!myorder.idGasordine ||
|
||||
myorder.quantity + myorder.quantitypreordered === 0)
|
||||
"
|
||||
>
|
||||
<q-select
|
||||
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
|
||||
outlined
|
||||
v-model="gasordineSelected"
|
||||
:options="getGasordines()"
|
||||
:label="t('products.select_gasordine') + `:`"
|
||||
emit-value
|
||||
map-options
|
||||
>
|
||||
</q-select>
|
||||
</q-item-label>
|
||||
<q-item-label v-else>
|
||||
<q-item-label>
|
||||
<span class="text-title text-center">{{
|
||||
getSingleGasordine(myproduct.gasordines[0])
|
||||
myproduct.gasordine.name
|
||||
}}</span>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
@@ -624,12 +604,12 @@
|
||||
</q-item-section>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item v-if="myproduct.gasordines && myproduct.gasordines.length >= 1">
|
||||
<q-item v-if="myproduct.gasordine && myproduct.gasordine.active">
|
||||
<q-item-section avatar>
|
||||
<q-icon color="blue" name="fas fa-hourglass-half" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section v-if="!!recgasordineSelected.dataora_chiusura_ordini">
|
||||
<q-item-section v-if="!!myproduct.gasordine.dataora_chiusura_ordini">
|
||||
<q-item-label class="countdown_scadenza">
|
||||
<span v-if="timerLabelScadenza">{{ timerLabelScadenza }}</span>
|
||||
<span v-else-if="isOrdineChiuso()">{{
|
||||
@@ -639,8 +619,8 @@
|
||||
:editOn="editOn"
|
||||
:title="t('gas.dataora_chiusura_ordini')"
|
||||
table="gasordines"
|
||||
:id="recgasordineSelected._id"
|
||||
:rec="recgasordineSelected"
|
||||
:id="myproduct.gasordine._id"
|
||||
:rec="myproduct.gasordine"
|
||||
mykey="dataora_chiusura_ordini"
|
||||
debounce="1000"
|
||||
:save="updateproductmodif()"
|
||||
@@ -651,7 +631,7 @@
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item v-if="labelDataArrivoMerce || editOn">
|
||||
<q-item v-if="myproduct.gasordine && myproduct.gasordine.active && (labelDataArrivoMerce || editOn)">
|
||||
<q-item-section avatar>
|
||||
<q-icon color="red" name="fas fa-shipping-fast" />
|
||||
</q-item-section>
|
||||
@@ -662,8 +642,8 @@
|
||||
:editOn="editOn"
|
||||
:title="t('gas.data_arrivo_merce')"
|
||||
table="gasordines"
|
||||
:id="recgasordineSelected._id"
|
||||
:rec="recgasordineSelected"
|
||||
:id="myproduct.gasordine._id"
|
||||
:rec="myproduct.gasordine"
|
||||
mykey="data_arrivo_merce"
|
||||
debounce="1000"
|
||||
:save="updateproductmodif()"
|
||||
@@ -674,7 +654,7 @@
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item v-if="labelDataRitiro || editOn">
|
||||
<q-item v-if="myproduct.gasordine && myproduct.gasordine.active && (labelDataRitiro || editOn)">
|
||||
<q-item-section avatar>
|
||||
<q-icon color="green" name="fas fa-people-carry" />
|
||||
</q-item-section>
|
||||
@@ -685,8 +665,8 @@
|
||||
:editOn="editOn"
|
||||
:title="t('gas.dataora_ritiro')"
|
||||
table="gasordines"
|
||||
:id="recgasordineSelected._id"
|
||||
:rec="recgasordineSelected"
|
||||
:id="myproduct.gasordine._id"
|
||||
:rec="myproduct.gasordine"
|
||||
mykey="dataora_ritiro"
|
||||
:justifycenter="false"
|
||||
debounce="1000"
|
||||
@@ -801,6 +781,7 @@
|
||||
</div>
|
||||
<div v-if="editOn">{{ t('ecomm.active') }}:</div>
|
||||
<CMyValueDb
|
||||
title=""
|
||||
v-if="editOn"
|
||||
:editOn="editOn"
|
||||
table="products"
|
||||
|
||||
Reference in New Issue
Block a user