@nickeylin/antd-mobile-pro 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/cjs/components/checkbox/checkbox.d.ts +1 -1
  2. package/dist/cjs/components/checkbox/index.d.ts +1 -1
  3. package/dist/cjs/components/pro-form/pro-form-item.js +2 -2
  4. package/dist/cjs/components/pro-form/pro-form.d.ts +5 -0
  5. package/dist/cjs/components/pro-form/pro-form.js +1 -0
  6. package/dist/cjs/components/pro-form/style.less +1 -3
  7. package/dist/cjs/components/pro-list/pro-list.d.ts +2 -1
  8. package/dist/cjs/components/tree-picker/index.d.ts +1 -1
  9. package/dist/cjs/components/tree-picker/tree-picker.d.ts +1 -1
  10. package/dist/es/components/checkbox/checkbox.d.ts +1 -1
  11. package/dist/es/components/checkbox/index.d.ts +1 -1
  12. package/dist/es/components/pro-form/pro-form-item.js +2 -2
  13. package/dist/es/components/pro-form/pro-form.d.ts +5 -0
  14. package/dist/es/components/pro-form/pro-form.js +2 -1
  15. package/dist/es/components/pro-form/style.less +1 -3
  16. package/dist/es/components/pro-list/pro-list.d.ts +2 -1
  17. package/dist/es/components/tree-picker/index.d.ts +1 -1
  18. package/dist/es/components/tree-picker/tree-picker.d.ts +1 -1
  19. package/dist/umd/antd-mobile-pro.min.css +1 -1
  20. package/dist/umd/antd-mobile-pro.min.js +1 -1
  21. package/package.json +3 -2
  22. package/dist/cjs/types/index.d.ts +0 -2
  23. package/dist/cjs/types/service/approve-outline.d.ts +0 -89
  24. package/dist/cjs/types/service/bpm.d.ts +0 -241
  25. package/dist/cjs/types/service/common.d.ts +0 -90
  26. package/dist/es/types/index.d.ts +0 -2
  27. package/dist/es/types/service/approve-outline.d.ts +0 -89
  28. package/dist/es/types/service/bpm.d.ts +0 -241
  29. package/dist/es/types/service/common.d.ts +0 -90
@@ -1,241 +0,0 @@
1
- import { TagProps } from 'antd-mobile';
2
-
3
- declare global {
4
- declare namespace Service {
5
- namespace BPM {
6
- interface Organization {
7
- id: string;
8
- code: string;
9
- name: string;
10
- shortName: string;
11
- refCode: string;
12
- nodeLevel: number;
13
- codePath: string;
14
- namePath: string;
15
- parentId: null | string;
16
- rank: number;
17
- tenantCode: string;
18
- frozen: boolean;
19
- children: Organization[];
20
- creatorId: null;
21
- creatorAccount: null;
22
- creatorName: null;
23
- createdDate: null;
24
- lastEditorId: null;
25
- lastEditorAccount: null;
26
- lastEditorName: null;
27
- lastEditedDate: null;
28
- }
29
-
30
- interface Employee {
31
- id: string;
32
- code: string;
33
- userName: string;
34
- frozen: boolean;
35
- createAdmin: boolean;
36
- email: null | string;
37
- organizationId: string;
38
- organizationCode: string;
39
- organizationName: string;
40
- organizationCodePath: string;
41
- organizationNamePath: string;
42
- positionCode?: string;
43
- positionId?: string;
44
- positionName?: string;
45
- remark?: string;
46
- }
47
-
48
- interface Executor
49
- extends Pick<
50
- Employee,
51
- | 'id'
52
- | 'code'
53
- | 'organizationId'
54
- | 'organizationCode'
55
- | 'organizationName'
56
- | 'positionCode'
57
- | 'positionId'
58
- | 'positionName'
59
- | 'remark'
60
- > {
61
- name: string;
62
- }
63
- type ExecutorType = 'RadioBox' | 'CheckBox' | 'ReadOnly';
64
-
65
- interface NextNodeInfo {
66
- allowChooseInstancy: boolean;
67
- chooseExecutorType: ExecutorType;
68
- chooseTypeRemark: string;
69
- executorList?: Executor[];
70
- executorType: string | 'AnyOne';
71
- executorTypeRemark: string;
72
- id: string;
73
- manualSelected: false;
74
- name: string; // '部门领导审批';
75
- nodeType: string; // 'Approve';
76
- nodeTypeRemark: string; // '审批任务';
77
- solidifyNode: boolean;
78
- }
79
-
80
- interface UsualOpinion {
81
- id: string;
82
- businessModuleId?: string;
83
- businessModuleName?: string;
84
- businessEntityId?: string;
85
- businessEntityName?: string;
86
- flowTypeId?: string;
87
- flowTypeName?: string;
88
- code: string; // 'TY001';
89
- opinion: string; // '同意';
90
- rank: number;
91
- tenantCode: string; // 'RCSIT';
92
- private: boolean;
93
- }
94
-
95
- interface TaskBusiness {
96
- businessCode: string; // R000001632
97
- businessEntityName: string; // 费用报销单
98
- businessId: string; // 62525B0A-C250-11ED-BD09-0242C0A84419
99
- businessModelRemark: string; // 【Q000】报销 (制单人:田一怡)
100
- businessMoney: string; // 2115.00
101
- businessName: string; // 费用报销单
102
- }
103
-
104
- interface TaskActionButton {
105
- executeButton: string;
106
- executeButtonRemark: string;
107
- disagreeChooseReturnOrNot: false;
108
- }
109
-
110
- interface TaskHead
111
- extends Pick<
112
- TaskBusiness,
113
- 'businessCode' | 'businessId' | 'businessModelRemark' | 'businessName'
114
- > {
115
- allowApproveAttachments: null | string[];
116
-
117
- createFlowTime: string; // 2024-03-16 10:37:15
118
- createFlowUserAccount: string;
119
- createFlowUserName: string;
120
- currentAuditScenesCode: null;
121
- currentAuditScenesName: null;
122
- currentShowLastAuditInfo: false;
123
- defaultOpinion: null | string;
124
- executeButtonList: null | TaskActionButton[];
125
- flowInstanceId: string; // 1950148B-E33E-11EE-B430-A27E7C17739C
126
- flowName: string; // 费用报销-智能接单-需比对
127
- labelReason: null | string;
128
- lastDocumentList: null | string[];
129
- lastStepExecutionTime: null | string;
130
- lastStepOpinion: null | string;
131
- lastStepStartTime: null | string;
132
- lastStepUserAccount: null | string;
133
- lastStepUserName: null | string;
134
- opinionList: null | UsualOpinion[];
135
- phoneUrl: string; // Beimbursement
136
- serviceName: string;
137
- solidifyFlow: null | boolean;
138
- taskName: null | string;
139
- }
140
-
141
- interface DicisionNode {
142
- chooseDicisionType: 'RadioBox' | 'ReadOnly';
143
- chooseTypeRemark: string;
144
- id: string;
145
- name: string;
146
- nodeType: string;
147
- nodeTypeRemark: string;
148
- select: boolean;
149
- defaultChoose: boolean;
150
- }
151
-
152
- /** 流程审批单据详情行项目 */
153
- interface ApproveOutlineDataItem {
154
- properties: { key: string; value: string }[];
155
- attachments?: null;
156
- itemTitle?: string; // '机票信息';
157
- items?: ApproveOutlineDataItem[];
158
- tile?: false;
159
- }
160
- interface ApproveOutlineDataHead {
161
- key: string;
162
- value: string;
163
- /**
164
- * 详细信息类型,可选,不设置表示无详细信息。配置后,将以 popup 方式弹出详细信息。可选值:DEFAULT,LINK。
165
- */
166
- detailType?: 'DEFAULT' | 'LINK';
167
- /**
168
- * detailType设为DEFAULT时,将按照待办的“移动端处理url”方式解析;LINK时,将通过iframe加载,再以popup方式展示该链接的内容。
169
- */
170
- detailUrl?: string;
171
- }
172
- /**
173
- * 流程审批通用单据详情
174
- */
175
- interface ApproveOutlineData {
176
- businessDocIds?: string[];
177
- head?: ApproveOutlineDataHead[];
178
- items?: ApproveOutlineDataItem[];
179
- haveDetail?: true;
180
- headTitle?: string; // "商旅结算单:(Q000)四川虹信软件股份有限公司-2022-02"
181
- invoiceDocIds?: null | string[];
182
- invoiceItems?: InvoiceItem[];
183
- shareOrderDocIds?: null | string[];
184
- tags?: (TagProps & { title: string })[];
185
- linkList?: {
186
- /**
187
- * 显示的文字
188
- */
189
- key: string;
190
- /**
191
- * 链接地址
192
- */
193
- value: string;
194
- }[];
195
- attachments?: {
196
- infos: {
197
- /**
198
- * 附件id
199
- */
200
- docId: string;
201
- /**
202
- * 附件类型
203
- */
204
- documentType?: string; //附件类型
205
- /**
206
- * 附件名称
207
- */
208
- fileName?: string; //附件名称
209
- /**
210
- * 附件大小
211
- */
212
- fileSize?: number; //附件大小
213
- }[];
214
- /**
215
- * 附件分类名称,默认为“附件”
216
- */
217
- title?: string;
218
- }[];
219
- }
220
-
221
- interface FlowType {
222
- flowDefinitionKey: string;
223
- flowDefinitionName: string;
224
- flowDefinitionId: string;
225
- flowTypeName: string;
226
- flowTypeId: string;
227
- solidifyFlow?: boolean;
228
- appointExecutorAtStart: boolean;
229
- }
230
-
231
- /**
232
- * 流程初始节点信息
233
- */
234
- interface UsableFlowListData {
235
- usableFlowList: FlowType[];
236
- nodeListOfFirstUsableFlow: NextNodeInfo[];
237
- solidifyFlow?: boolean;
238
- }
239
- }
240
- }
241
- }
@@ -1,90 +0,0 @@
1
- declare namespace Service {
2
- namespace FindByPage {
3
- type SortType = 'ASC' | 'DESC';
4
- interface SortOrder {
5
- direction: SortType;
6
- property: string;
7
- }
8
- type FilterOperator =
9
- | 'EQ'
10
- | 'NE'
11
- | 'LK'
12
- | 'NC'
13
- | 'LLK'
14
- | 'BN'
15
- | 'RLK'
16
- | 'EN'
17
- | 'BT'
18
- | 'GT'
19
- | 'LT'
20
- | 'GE'
21
- | 'LE'
22
- | 'IN'
23
- | 'BK'
24
- | 'NB'
25
- | 'NU'
26
- | 'NN'
27
- | 'PLT'
28
- | 'PLE';
29
- interface Filter {
30
- fieldName: string;
31
- fieldType?: string;
32
- operator?: FilterOperator;
33
- value: any;
34
- }
35
- interface RequestParams {
36
- filters?: Filter[];
37
- quickSearchProperties?: string[];
38
- quickSearchValue?: string;
39
- sortOrders?: SortOrder[];
40
- [key: string]: any;
41
- }
42
-
43
- interface ResponseData<T = any> {
44
- page: number;
45
- /** 总条数 */
46
- records: number;
47
- rows: T[];
48
- summaryInfo: null;
49
- /** 总分页数量 */
50
- total: number;
51
- }
52
- }
53
- interface InvoiceItem {
54
- amount: number;
55
- billingDate: string;
56
- buyerName: string;
57
- buyerTaxCode: string;
58
- checkCode: null;
59
- createdDate: string;
60
- creatorAccount: string;
61
- creatorId: string;
62
- creatorName: string;
63
- deleted: 0 | 1;
64
- edmCutDocId: string;
65
- edmDocId: string;
66
- id: string;
67
- inputMode: string;
68
- inputModeEnumRemark: string;
69
- inspectionWarn: null;
70
- invoiceCode: null;
71
- invoiceNumber: string;
72
- invoiceState: null;
73
- invoiceTypeCode: string;
74
- invoiceTypeName: string;
75
- itemNo: null;
76
- lastEditedDate: string;
77
- lastEditorAccount: string;
78
- lastEditorId: string;
79
- lastEditorName: string;
80
- notes: null;
81
- requestId: string;
82
- sellerName: string;
83
- sellerTaxCode: string;
84
- sourceId: string;
85
- tax: number;
86
- taxAmount: number;
87
- taxRate: number;
88
- tenantCode: string;
89
- }
90
- }