From c78ae555821c2a6b1b1febf4c4b7912dc0252e83 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Tue, 25 Jun 2024 14:30:51 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TotalProductCardComponent.vue | 39 +++++++++---------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/src/components/04_product-service/TotalProductCardComponent.vue b/src/components/04_product-service/TotalProductCardComponent.vue index d374f5be..55e8ac89 100644 --- a/src/components/04_product-service/TotalProductCardComponent.vue +++ b/src/components/04_product-service/TotalProductCardComponent.vue @@ -6,13 +6,17 @@ import { dateFormat } from 'src/utils/datetime'; const addedProduct = ref(false); -import { ProductList, Service } from 'src/stores/product-service/types'; +import { + ServiceAndProduct, + ProductList, + Service, +} from 'src/stores/product-service/types'; const baseUrl = ref(import.meta.env.VITE_API_BASE_URL); withDefaults( defineProps<{ - data?: ProductList; + data?: ServiceAndProduct; title?: string; dense?: boolean; @@ -24,11 +28,6 @@ withDefaults( isAddProduct?: boolean; isSelected?: boolean; - code?: string; - price?: number; - id?: string; - process?: number; - createdAt?: string; index?: number; isDisabled?: boolean; }>(), @@ -111,7 +110,7 @@ withDefaults( @@ -143,10 +142,10 @@ withDefaults(
-
{{ code ?? 'code' }}
+
{{ data?.code ?? 'code' }}
@@ -157,27 +156,27 @@ withDefaults(
- ฿ {{ price }} + ฿ {{ data?.price }}