From 20254a41e48dc818ecc194abc3e4fff5a3db0ddb Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 29 Oct 2024 17:15:03 +0700 Subject: [PATCH] fix(04): service type and store --- src/stores/product-service/index.ts | 2 ++ src/stores/product-service/types.ts | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/stores/product-service/index.ts b/src/stores/product-service/index.ts index a8aa1a63..e06c8a59 100644 --- a/src/stores/product-service/index.ts +++ b/src/stores/product-service/index.ts @@ -19,6 +19,7 @@ import { import { ref } from 'vue'; const useProductServiceStore = defineStore('api-product-service', () => { + const splitPay = ref(0); const workNameItems = ref< { id: string; @@ -501,6 +502,7 @@ const useProductServiceStore = defineStore('api-product-service', () => { return { workNameItems, + splitPay, fetchStatsProductGroup, fetchProductGroupById, diff --git a/src/stores/product-service/types.ts b/src/stores/product-service/types.ts index fcfffe96..dbc723b2 100644 --- a/src/stores/product-service/types.ts +++ b/src/stores/product-service/types.ts @@ -70,8 +70,14 @@ export interface ServiceCreate { } export interface Attributes { - showTotalPrice?: boolean; - additional: (PropString | PropNumber | PropDate | PropOptions)[]; + showTotalPrice: boolean; + additional?: (PropString | PropNumber | PropDate | PropOptions)[]; + workflowId: string; + stepProperties: { + id: string; + productsId: string[]; + attributes: (PropString | PropNumber | PropDate | PropOptions)[]; + }[]; } type PropString = { @@ -116,6 +122,7 @@ export interface ServiceById { id: string; imageUrl: 'string'; productGroupId: string; + selectedImage: string; registeredBranchId: string; }