From f49b3ecdc092a546b49046e679772e5856cfd47d Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 20 Jun 2024 15:05:44 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20=20=E0=B8=AA=E0=B8=B4=E0=B8=99=E0=B8=84=E0=B9=89?= =?UTF-8?q?=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TotalProductCardComponent.vue | 75 ++++++++++++------- src/pages/04_product-service/MainPage.vue | 67 +++++++++++++++-- 2 files changed, 107 insertions(+), 35 deletions(-) diff --git a/src/components/04_product-service/TotalProductCardComponent.vue b/src/components/04_product-service/TotalProductCardComponent.vue index ba80b404..9b75fed2 100644 --- a/src/components/04_product-service/TotalProductCardComponent.vue +++ b/src/components/04_product-service/TotalProductCardComponent.vue @@ -3,32 +3,47 @@ import { ref } from 'vue'; import AppBox from 'components/app/AppBox.vue'; const addedProduct = ref(false); +import { ProductList } from 'src/stores/product-service/types'; + const baseUrl = ref(import.meta.env.VITE_API_BASE_URL); -defineProps<{ - title?: string; - code?: string; - dense?: boolean; - outlined?: boolean; - readonly?: boolean; - separator?: boolean; - typeProduct?: string; - price?: number; - process?: number; - id?: string; - status?: boolean; -}>(); + +withDefaults( + defineProps<{ + data: ProductList; + title?: string; + + dense?: boolean; + outlined?: boolean; + readonly?: boolean; + separator?: boolean; + typeProduct?: string; + status?: boolean; + + isAddProduct?: boolean; + isSelected?: boolean; + }>(), + { + isSelected: false, + }, +);