diff --git a/public/work-image.png b/public/service-image.png similarity index 100% rename from public/work-image.png rename to public/service-image.png diff --git a/src/components/04_product-service/TotalProductCardComponent.vue b/src/components/04_product-service/TotalProductCardComponent.vue index 316fd0eb..f8a05bce 100644 --- a/src/components/04_product-service/TotalProductCardComponent.vue +++ b/src/components/04_product-service/TotalProductCardComponent.vue @@ -3,13 +3,13 @@ import { ref } from 'vue'; import AppBox from 'components/app/AppBox.vue'; const addedProduct = ref(false); -import { ProductList } from 'src/stores/product-service/types'; +import { ProductList, Service } from 'src/stores/product-service/types'; const baseUrl = ref(import.meta.env.VITE_API_BASE_URL); withDefaults( defineProps<{ - data: ProductList; + data?: ProductList; title?: string; dense?: boolean; @@ -19,9 +19,13 @@ withDefaults( typeProduct?: string; status?: boolean; - index?: number; isAddProduct?: boolean; isSelected?: boolean; + + code?: string; + price?: number; + id?: string; + process?: number; }>(), { isSelected: false, @@ -102,13 +106,13 @@ withDefaults( size="18px" text-color="white" > - {{ index !== undefined ? index + 1 : 0 }} + 1 -
{{ data.code ?? 'code' }}
+
{{ code ?? 'code' }}
@@ -123,7 +127,7 @@ withDefaults( class="flex justify-end text-bold" style="color: var(--green-10)" > - ฿ {{ data.price }} + ฿ {{ price }}