import products dinamically
This commit is contained in:
@@ -121,7 +121,8 @@
|
||||
</q-item>
|
||||
<q-item
|
||||
v-if="
|
||||
cosa === shared_consts.PROD.TUTTI || cosa === shared_consts.PROD.BOTTEGA ||
|
||||
(cosa === shared_consts.PROD.TUTTI && !isOrdGas()) ||
|
||||
cosa === shared_consts.PROD.BOTTEGA ||
|
||||
(cosa === shared_consts.PROD.GAS &&
|
||||
products.getQtyAvailable(myproduct) > 0)
|
||||
"
|
||||
@@ -251,6 +252,19 @@
|
||||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-card-section v-if="complete && myproduct.productInfo.link_scheda">
|
||||
<div class="text-blue text-title row">
|
||||
<q-icon size="sm" name="fas fa-list-ul" class="q-mr-sm" />
|
||||
{{ t('products.link_scheda') }}
|
||||
</div>
|
||||
<div class="row items-center">
|
||||
<div class="text-title text-grey-9">
|
||||
<a :href="myproduct.productInfo.link_scheda" target="_blank"
|
||||
>Apri Scheda</a
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-card-section
|
||||
v-if="complete && myproduct.productInfo.valori_nutrizionali"
|
||||
>
|
||||
@@ -347,8 +361,8 @@
|
||||
<q-card-section v-if="isOrdGas()">
|
||||
<q-item
|
||||
v-if="
|
||||
myproduct.bookableAvailableQty > 0 ||
|
||||
myproduct.maxbookableGASQty > 0
|
||||
(myproduct.bookableAvailableQty > 0 && myproduct.bookableAvailableQty < shared_consts.MAX_QTA_PREORD) ||
|
||||
(myproduct.maxbookableGASQty > 0 && myproduct.maxbookableGASQty < shared_consts.MAX_QTA_PREORD) || editOn
|
||||
"
|
||||
:clickable="tools.isManager()"
|
||||
@click="
|
||||
@@ -371,6 +385,19 @@
|
||||
<span v-if="!editOn" class="prod_preorder">
|
||||
{{ myproduct.bookableAvailableQty }}
|
||||
</span>
|
||||
<CMyValueDb
|
||||
v-if="editOn"
|
||||
:editOn="editOn"
|
||||
:title="t('products.bookableAvailableQty')"
|
||||
table="products"
|
||||
:id="myproduct._id"
|
||||
:rec="myproduct"
|
||||
mykey="bookableAvailableQty"
|
||||
debounce="1000"
|
||||
:save="updateproductmodif()"
|
||||
:type="costanti.FieldType.number"
|
||||
>
|
||||
</CMyValueDb>
|
||||
<CMyValueDb
|
||||
v-if="editOn"
|
||||
:editOn="editOn"
|
||||
@@ -448,7 +475,13 @@
|
||||
</q-item-section>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item v-if="myproduct.gasordine && myproduct.gasordine.active && myproduct.idGasordine">
|
||||
<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>
|
||||
@@ -577,7 +610,13 @@
|
||||
</q-item-section>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item v-if="myproduct.gasordine && myproduct.gasordine.active && (myproduct.gasordine.dataora_chiusura_ordini || editOn)">
|
||||
<q-item
|
||||
v-if="
|
||||
myproduct.gasordine &&
|
||||
myproduct.gasordine.active &&
|
||||
(myproduct.gasordine.dataora_chiusura_ordini || editOn)
|
||||
"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-icon color="blue" name="fas fa-hourglass-half" />
|
||||
</q-item-section>
|
||||
@@ -604,7 +643,13 @@
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item v-if="myproduct.gasordine && myproduct.gasordine.active && (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>
|
||||
@@ -627,7 +672,13 @@
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item v-if="myproduct.gasordine && myproduct.gasordine.active && (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>
|
||||
|
||||
Reference in New Issue
Block a user