fix(04): service type and store

This commit is contained in:
puriphatt 2024-10-29 17:15:03 +07:00
parent 1515be2d68
commit 20254a41e4
2 changed files with 11 additions and 2 deletions

View file

@ -19,6 +19,7 @@ import {
import { ref } from 'vue';
const useProductServiceStore = defineStore('api-product-service', () => {
const splitPay = ref<number>(0);
const workNameItems = ref<
{
id: string;
@ -501,6 +502,7 @@ const useProductServiceStore = defineStore('api-product-service', () => {
return {
workNameItems,
splitPay,
fetchStatsProductGroup,
fetchProductGroupById,

View file

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