feat: add workflow template fields (#63)
* feat: add type detail * feat: option => agencies type * feat: agencies i18n * fix: workflow => add institution type * refactor: map option specific category, key * feat: select menu with search components * feat: workflow => add field step description & agencies * fix: workflow => table page * refactor: workflow => floating dialog submit --------- Co-authored-by: Methapon Metanipat <methapon@frappet.com>
This commit is contained in:
parent
55f6a5f84e
commit
9708258e7a
9 changed files with 708 additions and 251 deletions
|
|
@ -4,6 +4,7 @@ export type WorkflowStep = {
|
|||
id: string;
|
||||
order: number;
|
||||
name: string;
|
||||
detail?: string;
|
||||
type: string | null;
|
||||
|
||||
// NOTE: for list like type only
|
||||
|
|
@ -14,11 +15,13 @@ export type WorkflowStep = {
|
|||
userId: string;
|
||||
user: CreatedBy;
|
||||
}[];
|
||||
responsibleInstitution: string[];
|
||||
};
|
||||
|
||||
export type WorkflowTemplate = {
|
||||
id: string;
|
||||
name: string;
|
||||
detail: string | null;
|
||||
registeredBranchId: string;
|
||||
step: WorkflowStep[];
|
||||
status: Status;
|
||||
|
|
@ -36,8 +39,10 @@ export type WorkflowTemplatePayload = {
|
|||
step: {
|
||||
name: string;
|
||||
type?: string | null;
|
||||
detail?: string | null;
|
||||
value?: string[];
|
||||
responsiblePersonId?: string[];
|
||||
responsibleInstitution?: string[];
|
||||
}[];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue