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 }}