feat: workflow template properties (#70)
* feat: add i18n * refactor/feat: workflow attributes type * refactor: workflow => gray stat card * refactor: select menu with search => separator * feat: workflow => workflow step properties * fix: workflow type * fix: dialog properties component => model data * fix: form flow => prevent toggle expansion with keyboard * refactor: workflow step data & change status * fix: form flow properties btn * refactor: side menu => hide sub index * feat: workflow => avatar & status on table * refactor: workflow => drawer id and dialog id * feat: workflow => card * fix: agencies => format address
This commit is contained in:
parent
8a2a010776
commit
42e2f2b21d
12 changed files with 1257 additions and 225 deletions
|
|
@ -81,14 +81,14 @@ export interface Attributes {
|
|||
}[];
|
||||
}
|
||||
|
||||
type PropString = {
|
||||
export type PropString = {
|
||||
type: 'string';
|
||||
fieldName: string;
|
||||
isPhoneNumber: boolean;
|
||||
phoneNumberLength: number;
|
||||
};
|
||||
|
||||
type PropNumber = {
|
||||
export type PropNumber = {
|
||||
type: 'number';
|
||||
fieldName: string;
|
||||
comma: boolean;
|
||||
|
|
@ -96,12 +96,12 @@ type PropNumber = {
|
|||
decimalPlace: number;
|
||||
};
|
||||
|
||||
type PropDate = {
|
||||
export type PropDate = {
|
||||
type: 'date';
|
||||
fieldName: string;
|
||||
};
|
||||
|
||||
type PropOptions = {
|
||||
export type PropOptions = {
|
||||
type: 'array';
|
||||
fieldName: string;
|
||||
options: string[];
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
import {
|
||||
PropDate,
|
||||
PropNumber,
|
||||
PropOptions,
|
||||
PropString,
|
||||
} from '../product-service/types';
|
||||
import { CreatedBy, Status } from '../types';
|
||||
|
||||
export type WorkflowStep = {
|
||||
|
|
@ -16,6 +22,7 @@ export type WorkflowStep = {
|
|||
user: CreatedBy;
|
||||
}[];
|
||||
responsibleInstitution: string[];
|
||||
attributes: WorkFlowAttributes;
|
||||
};
|
||||
|
||||
export type WorkflowTemplate = {
|
||||
|
|
@ -36,14 +43,7 @@ export type WorkflowTemplatePayload = {
|
|||
registeredBranchId?: string;
|
||||
status: Status;
|
||||
name: string;
|
||||
step: {
|
||||
name: string;
|
||||
type?: string | null;
|
||||
detail?: string | null;
|
||||
value?: string[];
|
||||
responsiblePersonId?: string[];
|
||||
responsibleInstitution?: string[];
|
||||
}[];
|
||||
step: WorkFlowPayloadStep[];
|
||||
};
|
||||
|
||||
export type WorkflowUserInTable = {
|
||||
|
|
@ -60,3 +60,17 @@ export type WorkflowUserInTable = {
|
|||
code: string;
|
||||
}[];
|
||||
};
|
||||
|
||||
export type WorkFlowAttributes = {
|
||||
properties: (PropString | PropNumber | PropDate | PropOptions)[];
|
||||
};
|
||||
|
||||
export type WorkFlowPayloadStep = {
|
||||
name: string;
|
||||
type?: string | null;
|
||||
detail?: string | null;
|
||||
value?: string[];
|
||||
responsiblePersonId?: string[];
|
||||
responsibleInstitution?: string[];
|
||||
attributes: WorkFlowAttributes;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue