From 4ec5b12d6404fae335d33e1e0b588280930eb5c6 Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Thu, 14 Dec 2023 15:20:27 +0100 Subject: [PATCH] aggiornamento ordini --- src/common/shared_vuejs.ts | 1 + src/components/CProductCard/CProductCard.ts | 4 +- src/components/CProductCard/CProductCard.vue | 7 +-- src/components/CSingleCart/CSingleCart.vue | 12 ++--- src/css/app.scss | 3 +- src/model/Products.ts | 5 +- src/rootgen/admin/importdata/importdata.ts | 52 ++++++++++++++++++-- src/rootgen/admin/importdata/importdata.vue | 24 ++++----- src/store/Modules/tools.ts | 12 ++++- src/store/Products.ts | 11 +++-- src/views/ecommerce/orderInfo/orderInfo.vue | 8 +-- 11 files changed, 97 insertions(+), 42 deletions(-) diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index aeaa3074..9175af1d 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -308,6 +308,7 @@ export const shared_consts = { CAT_SKILL_TXT: 4, CAT_NO_SPAZI: 5, CAT_GOODS_TXT: 10, + PRODUCTS: 20, }, BotType: [ diff --git a/src/components/CProductCard/CProductCard.ts b/src/components/CProductCard/CProductCard.ts index 65bf636d..1b851d87 100755 --- a/src/components/CProductCard/CProductCard.ts +++ b/src/components/CProductCard/CProductCard.ts @@ -154,8 +154,8 @@ export default defineComponent({ if (myorder.value.quantity > 0) { myproduct.value.quantityAvailable -= myorder.value.quantity } - if (myproduct.value.tempTotalQty > 0) { - myproduct.value.quantityAvailable -= myproduct.value.tempTotalQty + if (myproduct.value.QuantitaOrdinateInAttesa > 0) { + myproduct.value.quantityAvailable -= myproduct.value.QuantitaOrdinateInAttesa } } diff --git a/src/components/CProductCard/CProductCard.vue b/src/components/CProductCard/CProductCard.vue index c8e9d38e..6231df96 100755 --- a/src/components/CProductCard/CProductCard.vue +++ b/src/components/CProductCard/CProductCard.vue @@ -1,8 +1,7 @@