diff --git a/src/stores/product-service/index.ts b/src/stores/product-service/index.ts index 4aa23e6f..b421e8c2 100644 --- a/src/stores/product-service/index.ts +++ b/src/stores/product-service/index.ts @@ -105,7 +105,7 @@ const useProductServiceStore = defineStore('api-product-service', () => { async function editProductServiceType( groupId: string, - data: ProductGroupUpdate & { productGroupId: string }, + data: Partial, ) { const { code, ...payload } = data; @@ -210,7 +210,10 @@ const useProductServiceStore = defineStore('api-product-service', () => { return false; } - async function editProductService(groupId: string, data: ProductGroupUpdate) { + async function editProductService( + groupId: string, + data: Partial, + ) { const { code, ...payload } = data; const res = await api.put(`/product-group/${groupId}`, { diff --git a/src/stores/product-service/types.ts b/src/stores/product-service/types.ts index 051841b3..06831bef 100644 --- a/src/stores/product-service/types.ts +++ b/src/stores/product-service/types.ts @@ -147,4 +147,5 @@ export interface ProductGroupUpdate { detail: string; name: string; code: string; + status: Status; }