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

View file

@ -70,8 +70,14 @@ export interface ServiceCreate {
} }
export interface Attributes { export interface Attributes {
showTotalPrice?: boolean; showTotalPrice: boolean;
additional: (PropString | PropNumber | PropDate | PropOptions)[]; additional?: (PropString | PropNumber | PropDate | PropOptions)[];
workflowId: string;
stepProperties: {
id: string;
productsId: string[];
attributes: (PropString | PropNumber | PropDate | PropOptions)[];
}[];
} }
type PropString = { type PropString = {
@ -116,6 +122,7 @@ export interface ServiceById {
id: string; id: string;
imageUrl: 'string'; imageUrl: 'string';
productGroupId: string; productGroupId: string;
selectedImage: string;
registeredBranchId: string; registeredBranchId: string;
} }