@szjy/workflow 0.1.23 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -26,6 +26,7 @@ export declare const GET_USER_TYPES: {
26
26
  GET_MULTI_USERS: string;
27
27
  CREATOR_RELATED: string;
28
28
  CREATOR_ORG_ROLE_RELATED: string;
29
+ COMPANY_TYPE_DEPARTMENT_ROLE: string;
29
30
  UNKNOWN: string;
30
31
  };
31
32
  export declare const GET_USER_TYPES_OPTIONS: {
@@ -43,13 +44,19 @@ export declare enum SearchWithCompanyType {
43
44
  SELF_ORG = "SELF_ORG",// 本单位
44
45
  CONSTRUCTION_ORG = "CONSTRUCTION_ORG",// 施工单位
45
46
  SUPERVISORY_ORG = "SUPERVISORY_ORG",// 监理单位
46
- BUILD_ORG = "BUILD_ORG"
47
+ BUILD_ORG = "BUILD_ORG",// 建设单位,
48
+ DESIGN_ORG = "DESIGN_ORG",// 设计单位,
49
+ CONSULTING_ORG = "CONSULTING_ORG"
47
50
  }
48
- export declare const getLabelByComponyType: (type: SearchWithCompanyType) => "" | "本单位" | "施工单位" | "监理单位" | "建设单位";
51
+ export declare const getLabelByComponyType: (type: SearchWithCompanyType) => "" | "本单位" | "施工单位" | "监理单位" | "建设单位" | "设计单位" | "咨询单位";
49
52
  export declare const SEARCH_WITH_COMPANY_TYPE_OPTIONS: {
50
53
  label: string;
51
54
  value: SearchWithCompanyType;
52
55
  }[];
56
+ export declare const SEARCH_WITH_COMPANY_ROLE_OPTIONS: {
57
+ label: string;
58
+ value: SearchWithCompanyType;
59
+ }[];
53
60
  export declare const DEFAULT_USER_SEARCH_INFO: {
54
61
  enabled: boolean;
55
62
  searchType: SearchType;
@@ -70,6 +77,14 @@ export declare const DEFAULT_USER_SEARCH_WITH_ROLE: {
70
77
  roleNameList: never[];
71
78
  };
72
79
  };
80
+ export declare const DEFAULT_SEARCH_WITH_COMPANY_ROLE: {
81
+ enabled: boolean;
82
+ searchType: SearchType;
83
+ searchWithCompanyAndRoleNameInfo: {
84
+ searchWithCompanyType: SearchWithCompanyType;
85
+ roleNameList: never[];
86
+ };
87
+ };
73
88
  export declare const DEFAULT_ORG_SEARCH_INFO: {
74
89
  enabled: boolean;
75
90
  searchType: SearchType;
@@ -57,8 +57,8 @@ export type SearchWithCompanyAndTitleInfo = {
57
57
  };
58
58
  export type SearchWithCompanyAndRoleNameInfo = {
59
59
  searchWithCompanyType: SearchWithCompanyType;
60
- filterWithDepartment: boolean;
61
- departmentName: string;
60
+ filterWithDepartment?: boolean;
61
+ departmentName?: string;
62
62
  roleNameList: string[];
63
63
  };
64
64
  export type UserSearchInfoType = {
@@ -4,7 +4,7 @@ export declare const addTaskListenerItem: (element: Element, event: string, expr
4
4
  export declare const initApprovalItems: (element: Element) => void;
5
5
  export declare const initSignReceiptItems: (element: Element) => void;
6
6
  export declare const initReformItems: (element: Element) => void;
7
- export declare const getUserValue: (element: Element) => any;
7
+ export declare const getUserValue: (element: Element) => UserJSON;
8
8
  export declare const updateUserValue: (element: Element, userJson: Partial<UserJSON>) => void;
9
9
  export declare const KEY_ADD_TO_AFTER_REFORM_TASK = "addToMyCompleteAfterReformTask";
10
10
  export declare const getReformTaskFieldValue: (element: Element) => boolean;
@@ -0,0 +1,35 @@
1
+ import { PropType } from 'vue';
2
+ import { UserSearchWithRoleType } from '../../../biz-logic/leave/types';
3
+ import { SearchWithCompanyType } from '../../../biz-logic/leave/constant';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ searchInfo: {
6
+ type: PropType<UserSearchWithRoleType>;
7
+ default: {
8
+ enabled: boolean;
9
+ searchType: import("../../../biz-logic/leave/constant").SearchType;
10
+ searchWithCompanyAndRoleNameInfo: {
11
+ searchWithCompanyType: SearchWithCompanyType;
12
+ roleNameList: never[];
13
+ };
14
+ };
15
+ };
16
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ "update:searchInfo": (searchInfo: UserSearchWithRoleType) => void;
18
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
+ searchInfo: {
20
+ type: PropType<UserSearchWithRoleType>;
21
+ default: {
22
+ enabled: boolean;
23
+ searchType: import("../../../biz-logic/leave/constant").SearchType;
24
+ searchWithCompanyAndRoleNameInfo: {
25
+ searchWithCompanyType: SearchWithCompanyType;
26
+ roleNameList: never[];
27
+ };
28
+ };
29
+ };
30
+ }>> & {
31
+ "onUpdate:searchInfo"?: ((searchInfo: UserSearchWithRoleType) => any) | undefined;
32
+ }, {
33
+ searchInfo: UserSearchWithRoleType;
34
+ }, {}>;
35
+ export default _default;
@@ -1,4 +1,5 @@
1
1
  import { FieldItemType, FieldPermissionConfigMapNode, PermissionJSONLike } from "./store/permission/constants";
2
+ import { EsignJSONLike } from './store/esign';
2
3
  export declare const getWorkflowXml: () => Promise<string | undefined>;
3
4
  export declare function initXmlToStore(xml: string): Promise<void>;
4
5
  export declare function updateProcessId(processId: string): void;
@@ -8,3 +9,10 @@ export declare function getPermissionJSON(): {
8
9
  };
9
10
  export declare function setPermissionByFields(permissonJSON: PermissionJSONLike, fields: FieldItemType[]): void;
10
11
  export declare function updatePermFields(fields: FieldItemType[]): void;
12
+ export declare function getEsignJSON(): {
13
+ initEsignConfig: {};
14
+ taskToEsignConfigMap: {
15
+ [key: string]: import("./store/esign").EsignConfig;
16
+ };
17
+ };
18
+ export declare function setEsignConfig(esignJSON: EsignJSONLike): void;
@@ -1,4 +1,4 @@
1
- import { getPermissionJSON, initXmlToStore, updateProcessId, setPermissionByFields, updatePermFields } from "./exposeApi";
1
+ import { getPermissionJSON, initXmlToStore, updateProcessId, setPermissionByFields, updatePermFields, getEsignJSON, setEsignConfig } from "./exposeApi";
2
2
  import BpmnModeler from 'bpmn-js/lib/Modeler.js';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  mode: {
@@ -16,6 +16,8 @@ declare const _default: import("vue").DefineComponent<{
16
16
  getPermissionJSON: typeof getPermissionJSON;
17
17
  setPermissionByFields: typeof setPermissionByFields;
18
18
  updatePermFields: typeof updatePermFields;
19
+ getEsignJSON: typeof getEsignJSON;
20
+ setEsignConfig: typeof setEsignConfig;
19
21
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
22
  init: (modeler: BpmnModeler) => void;
21
23
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -0,0 +1,53 @@
1
+ export type EsignConfig = {
2
+ needSign?: boolean;
3
+ needSeal?: boolean;
4
+ };
5
+ type TaskIdMapEsignConfig = {
6
+ [key: string]: EsignConfig;
7
+ };
8
+ declare const EDITABLE_KEY = "taskToEsignConfigMap";
9
+ export type EsignJSONLike = {
10
+ [EDITABLE_KEY]?: TaskIdMapEsignConfig;
11
+ [key: string]: any;
12
+ };
13
+ declare const useEsignStore: import("pinia").StoreDefinition<"esign", import("pinia")._UnwrapAll<Pick<{
14
+ allTaskEsignMap: import("vue").Ref<TaskIdMapEsignConfig>;
15
+ curNodeId: import("vue").Ref<string>;
16
+ setCurNodeId: (id?: string) => void;
17
+ setTaskConfig: (id?: string, config?: EsignConfig) => void;
18
+ curTaskMap: import("vue").ComputedRef<any>;
19
+ getTaskConfig: (id?: string) => EsignConfig;
20
+ updateEsingConfig: (newConfig?: EsignConfig) => void;
21
+ getEsignJSON: () => {
22
+ initEsignConfig: {};
23
+ taskToEsignConfigMap: TaskIdMapEsignConfig;
24
+ };
25
+ initFromEsignJSON: (json: EsignJSONLike) => void;
26
+ }, "curNodeId" | "allTaskEsignMap">>, Pick<{
27
+ allTaskEsignMap: import("vue").Ref<TaskIdMapEsignConfig>;
28
+ curNodeId: import("vue").Ref<string>;
29
+ setCurNodeId: (id?: string) => void;
30
+ setTaskConfig: (id?: string, config?: EsignConfig) => void;
31
+ curTaskMap: import("vue").ComputedRef<any>;
32
+ getTaskConfig: (id?: string) => EsignConfig;
33
+ updateEsingConfig: (newConfig?: EsignConfig) => void;
34
+ getEsignJSON: () => {
35
+ initEsignConfig: {};
36
+ taskToEsignConfigMap: TaskIdMapEsignConfig;
37
+ };
38
+ initFromEsignJSON: (json: EsignJSONLike) => void;
39
+ }, "curTaskMap">, Pick<{
40
+ allTaskEsignMap: import("vue").Ref<TaskIdMapEsignConfig>;
41
+ curNodeId: import("vue").Ref<string>;
42
+ setCurNodeId: (id?: string) => void;
43
+ setTaskConfig: (id?: string, config?: EsignConfig) => void;
44
+ curTaskMap: import("vue").ComputedRef<any>;
45
+ getTaskConfig: (id?: string) => EsignConfig;
46
+ updateEsingConfig: (newConfig?: EsignConfig) => void;
47
+ getEsignJSON: () => {
48
+ initEsignConfig: {};
49
+ taskToEsignConfigMap: TaskIdMapEsignConfig;
50
+ };
51
+ initFromEsignJSON: (json: EsignJSONLike) => void;
52
+ }, "setCurNodeId" | "setTaskConfig" | "getTaskConfig" | "updateEsingConfig" | "getEsignJSON" | "initFromEsignJSON">>;
53
+ export default useEsignStore;