+
(Utente: {{ myvalue.username }} - in Data: {{ tools.getstrDateTime(myvalue.data) }})
-
+
Note: {{ myvalue.note }}
diff --git a/src/components/CProductCard/CProductCard.scss b/src/components/CProductCard/CProductCard.scss
index 316ed9da..38021dc8 100755
--- a/src/components/CProductCard/CProductCard.scss
+++ b/src/components/CProductCard/CProductCard.scss
@@ -124,14 +124,18 @@
.card_titolo_prod {
text-align: center;
padding: 4px 4px 4px 4px;
- height: 70px;
+ min-height: 90px;
}
.image-container {
- width: 316px;
- height: 316px;
+ width: 216px;
+ height: 216px;
position: relative;
- overflow: auto;
+
+ border-radius: 10px;
+ overflow: hidden;
+ background-color: #fff;
+ box-shadow: 0 4px 10px rgba(0,0,0,0.1);
@media (max-width: 718px) {
width: 200px;
@@ -143,16 +147,16 @@
.img-pic {
width: 98%;
height: 98%;
+ transition: all 0.3s ease;
object-fit: cover;
padding: 0px;
border-radius: 15px;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
- transition: transform 0.3s ease, box-shadow 0.3s ease;
z-index: 2;
}
.img-pic:hover {
- transform: scale(1.5);
+ transform: scale(1.05);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25), 0 8px 30px rgba(0, 0, 0, 0.22);
}
diff --git a/src/components/CProductCard/CProductCard.ts b/src/components/CProductCard/CProductCard.ts
index 7323d21e..36923a38 100755
--- a/src/components/CProductCard/CProductCard.ts
+++ b/src/components/CProductCard/CProductCard.ts
@@ -10,6 +10,7 @@ import { CCardState } from '../CCardState'
import { CCopyBtn } from '../CCopyBtn'
import { CMyFieldRec } from '../CMyFieldRec'
import { CBarCode } from '../CBarCode'
+import { CText } from '../CText'
import { CMyValueDb } from '../CMyValueDb'
import { func_tools, toolsext } from '@store/Modules/toolsext'
@@ -51,7 +52,7 @@ export default defineComponent({
},
components: {
CTitleBanner, CCardState, CCopyBtn,
- CMyFieldRec, CMyValueDb, CBarCode,
+ CMyFieldRec, CMyValueDb, CBarCode, CText,
},
setup(props, { emit }) {
const $q = useQuasar()
@@ -186,6 +187,7 @@ export default defineComponent({
async function updateproduct() {
+ console.log('props.id', props.id)
myproduct.value = await products.getProductById(props.id)
// products.updateQuantityAvailable(myproduct.value._id)
diff --git a/src/components/CProductCard/CProductCard.vue b/src/components/CProductCard/CProductCard.vue
index b16e06af..b7177b9c 100755
--- a/src/components/CProductCard/CProductCard.vue
+++ b/src/components/CProductCard/CProductCard.vue
@@ -1,12 +1,16 @@
-
+
-
-
+
+
@@ -72,17 +78,15 @@
- {{
- myproduct.price ? myproduct.price.toFixed(2) : 0
- }}
- {{
- myproduct.after_price
- }}
+ {{ myproduct.price ? myproduct.price.toFixed(2) : 0 }}
+ {{ myproduct.after_price }}
-
-
-
+
+
+
@@ -126,10 +136,10 @@
v-if="
(cosa === shared_consts.PROD.TUTTI && !isOrdGas()) ||
cosa === shared_consts.PROD.BOTTEGA ||
- (cosa === shared_consts.PROD.GAS &&
- products.getQtyAvailable(myproduct) > 0)
+ (cosa === shared_consts.PROD.GAS && products.getQtyAvailable(myproduct) > 0)
"
:clickable="tools.isManager()"
+ style="padding: 16px !important;"
@click="
tools.isManager() &&
!editOn &&
@@ -140,7 +150,11 @@
"
>
-
+
@@ -148,7 +162,10 @@
{{ t('ecomm.available') }}
-
+
{{ products.getQtyAvailable(myproduct) }}
-
+
{{
t('ecomm.qta_in_attesa', {
qty: myproduct.QuantitaOrdinateInAttesa,
@@ -180,10 +193,7 @@
{{ t('ecomm.bloccati') }}:
-
+
{{ myproduct.stockBloccatiQty }}
@@ -227,13 +239,22 @@
{{ myproduct.productInfo.name }}
+
+ {{ products.getAutoriByArrayAuthors(myproduct.productInfo.authors) }}
+
{{ t('ecomm.codice') }}: {{ myproduct.productInfo.code }}
-
-
+
+
-
-
+
{{ t('products.ingredienti') }}
@@ -274,23 +299,34 @@
-
-
+
+
{{ t('products.link_scheda') }}
-
+
-
+
{{ t('products.valori_nutrizionali') }}
@@ -302,14 +338,24 @@
-
+
+
+
+
+
-
+
{{ t('products.ritiro_presso') }}:
-
+
- {{
- getSingleStorehouse()
- }}
+ {{ getSingleStorehouse() }}
-
+
{{ t('products.origine') }}:
- {{ myproduct.producer.city }} ({{
- myproduct.producer.region
- }})
@@ -345,18 +390,25 @@
v-if="complete && myproduct.producer && myproduct.producer.name"
class="text-grey text-title row items-center"
>
-
+
{{ t('products.producer') }}:
-
- {{ myproduct.producer.name }}
+ {{ myproduct.producer.name }}
-
+
-
+
@@ -374,7 +426,10 @@
:type="costanti.FieldType.string"
>
-
+
@@ -382,8 +437,7 @@
@@ -442,7 +496,10 @@
"
>
-
+
@@ -450,7 +507,10 @@
{{ t('ecomm.preorders') }}
-
+
{{ myproduct.bookableAvailableQty }}
-
+
{{
t('ecomm.qta_prenotate_in_attesa', {
qty: myproduct.QuantitaPrenotateInAttesa,
@@ -496,8 +552,7 @@
@@ -511,7 +566,10 @@
{{ t('ecomm.bloccati') }}:
-
+
{{ myproduct.bookableGASBloccatiQty }}
-
+
{{ t('products.gasordine') }}
- {{
- myproduct.gasordine.name
- }}
+ {{ myproduct.gasordine.name }}
@@ -572,15 +629,18 @@
color="orange"
name="fas fa-lightbulb"
/>
-
+
{{
t('ecomm.offerta_gas_raggiunta', {
- qta:
- myproduct.qtyToReachForGas * myproduct.productInfo.weight,
+ qta: myproduct.qtyToReachForGas * myproduct.productInfo.weight,
unit: tools.getUnitsMeasure(
myproduct.productInfo.unit,
true,
@@ -590,8 +650,7 @@
}}
{{
t('ecomm.offerta_gas', {
- qta:
- myproduct.qtyToReachForGas * myproduct.productInfo.weight,
+ qta: myproduct.qtyToReachForGas * myproduct.productInfo.weight,
unit: tools.getUnitsMeasure(
myproduct.productInfo.unit,
true,
@@ -636,18 +695,16 @@
(myproduct.bookableGASBloccatiQty +
myproduct.QuantitaPrenotateInAttesa) *
myproduct.productInfo.weight,
- qtatot:
- myproduct.qtyToReachForGas * myproduct.productInfo.weight,
+ qtatot: myproduct.qtyToReachForGas * myproduct.productInfo.weight,
})
}}
-
+
-
+
{{
t('ecomm.qta_in_attesa', {
qty: myproduct.QuantitaOrdinateInAttesa,
@@ -658,10 +715,7 @@
{{ t('ecomm.bloccati') }}:
@@ -692,15 +743,16 @@
"
>
-
+
{{ timerLabelScadenza }}
- {{
- t('ecomm.ordine_scaduto')
- }}
+ {{ t('ecomm.ordine_scaduto') }}
-
+
@@ -755,7 +810,10 @@
"
>
-
+
@@ -801,9 +859,16 @@
>
-
+
-
+
{{ myorder.quantity + myorder.quantitypreordered }}
@@ -816,9 +881,7 @@
? 'grey'
: 'positive'
"
- :disable="
- checkifCartDisable() || !products.enableAddQty(myorder, myproduct)
- "
+ :disable="checkifCartDisable() || !products.enableAddQty(myorder, myproduct)"
rounded
size="md"
:label="
@@ -860,7 +923,10 @@
-
+
-
+
{{ t('ecomm.listaord') }} - {{ myproduct.productInfo.name }}
-
+
|
- {{
- shared_consts.getStatusStr(ordcart.status)
- }}
+ {{ shared_consts.getStatusStr(ordcart.status) }}
|
- |