refactor: package workflow (#73)

* fix: service attributes type

* feat: select workflow component

* refactor: dialog properties => select work flow

* refactor: package => work new workflow step

* fix: useless  in future (service properties)

* fix: handle work undefine

---------

Co-authored-by: puriphatt <puriphat@frappet.com>
This commit is contained in:
Methapon Metanipat 2024-11-13 16:06:32 +07:00 committed by GitHub
parent bd718eb492
commit 6e796049d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 374 additions and 187 deletions

View file

@ -1,5 +1,6 @@
import { Status } from '../types';
import { UpdatedBy, CreatedBy } from 'stores/types';
import { WorkFlowPayloadStep } from '../workflow-template/types';
export interface TreeProduct {
name: string;
@ -73,12 +74,7 @@ export interface Attributes {
showTotalPrice: boolean;
additional?: (PropString | PropNumber | PropDate | PropOptions)[];
workflowId: string;
workflowName: string;
stepProperties: {
id: string;
productsId: string[];
attributes: (PropString | PropNumber | PropDate | PropOptions)[];
}[];
workflowStep: (WorkFlowPayloadStep & { productsId: string[] })[];
}
export type PropString = {