@dazhicheng/ui 1.6.77 → 1.6.78
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.
- package/dist/assets/svg/download.svg.js +1 -1
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-button/index.d.ts +28 -28
- package/dist/components/tt-button/index.vue.d.ts +16 -16
- package/dist/components/tt-custom-export-modal/src/assets/search.svg.js +5 -5
- package/dist/components/tt-custom-export-modal/src/assets/star.svg.js +3 -3
- package/dist/components/tt-custom-export-modal/src/assets/trash.svg.js +7 -7
- package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.js +1 -1
- package/dist/components/tt-drawer/index.d.ts +109 -109
- package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +60 -60
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-empty/index.d.ts +4 -4
- package/dist/components/tt-form/src/components/FormElInput.vue.d.ts +10 -10
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-image/index.d.ts +29 -29
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +20 -20
- package/dist/components/tt-image/tt-image.d.ts +29 -29
- package/dist/components/tt-input-textarea/index.vue.d.ts +40 -40
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-modal/index.d.ts +150 -150
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +42 -42
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +17 -17
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +5 -5
- package/dist/components/tt-panel-select/src/index.vue.d.ts +5 -5
- package/dist/components/tt-upload/index.d.ts +60 -60
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +37 -37
- package/dist/components/tt-upload/src/typing.d.ts +17 -17
- package/dist/hooks/basicDataCodes.d.ts +3 -1
- package/dist/hooks/basicDataCodes.js +33 -22
- package/dist/hooks/usePanelSelectSchemas.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -51,7 +51,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
51
51
|
readonly type: import('vue').PropType<string>;
|
|
52
52
|
readonly default: ".pdf,.xlsx,.xls,.doc,.docx,.jpg,.jpeg,.png";
|
|
53
53
|
};
|
|
54
|
-
beforeUpload: import('element-plus/es/utils/
|
|
54
|
+
beforeUpload: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>) | (() => (rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>) | {
|
|
55
55
|
(): (rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
56
56
|
new (): any;
|
|
57
57
|
readonly prototype: any;
|
|
@@ -150,7 +150,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
150
150
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
151
151
|
__epPropKey: true;
|
|
152
152
|
};
|
|
153
|
-
onRemove: import('element-plus/es/utils/
|
|
153
|
+
onRemove: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
154
154
|
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
155
155
|
new (): any;
|
|
156
156
|
readonly prototype: any;
|
|
@@ -159,7 +159,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
159
159
|
new (): any;
|
|
160
160
|
readonly prototype: any;
|
|
161
161
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
162
|
-
onChange: import('element-plus/es/utils/
|
|
162
|
+
onChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
163
163
|
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
164
164
|
new (): any;
|
|
165
165
|
readonly prototype: any;
|
|
@@ -168,7 +168,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
168
168
|
new (): any;
|
|
169
169
|
readonly prototype: any;
|
|
170
170
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
171
|
-
onPreview: import('element-plus/es/utils/
|
|
171
|
+
onPreview: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
172
172
|
(): (uploadFile: UploadFile) => void;
|
|
173
173
|
new (): any;
|
|
174
174
|
readonly prototype: any;
|
|
@@ -177,7 +177,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
177
177
|
new (): any;
|
|
178
178
|
readonly prototype: any;
|
|
179
179
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
180
|
-
onSuccess: import('element-plus/es/utils/
|
|
180
|
+
onSuccess: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
181
181
|
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
182
182
|
new (): any;
|
|
183
183
|
readonly prototype: any;
|
|
@@ -186,7 +186,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
186
186
|
new (): any;
|
|
187
187
|
readonly prototype: any;
|
|
188
188
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
189
|
-
onProgress: import('element-plus/es/utils/
|
|
189
|
+
onProgress: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (evt: import('element-plus').UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: import('element-plus').UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
190
190
|
(): (evt: import('element-plus').UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
191
191
|
new (): any;
|
|
192
192
|
readonly prototype: any;
|
|
@@ -195,7 +195,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
195
195
|
new (): any;
|
|
196
196
|
readonly prototype: any;
|
|
197
197
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
198
|
-
onError: import('element-plus/es/utils/
|
|
198
|
+
onError: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
199
199
|
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
200
200
|
new (): any;
|
|
201
201
|
readonly prototype: any;
|
|
@@ -204,7 +204,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
204
204
|
new (): any;
|
|
205
205
|
readonly prototype: any;
|
|
206
206
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
207
|
-
onExceed: import('element-plus/es/utils/
|
|
207
|
+
onExceed: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void) | {
|
|
208
208
|
(): (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void;
|
|
209
209
|
new (): any;
|
|
210
210
|
readonly prototype: any;
|
|
@@ -214,25 +214,25 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
214
214
|
readonly prototype: any;
|
|
215
215
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
216
216
|
crossorigin: {
|
|
217
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/
|
|
217
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | (((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials")) | null)[], unknown, unknown>>;
|
|
218
218
|
readonly required: false;
|
|
219
219
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
220
220
|
__epPropKey: true;
|
|
221
221
|
};
|
|
222
222
|
headers: {
|
|
223
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/
|
|
223
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | (((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers)) | null)[], unknown, unknown>>;
|
|
224
224
|
readonly required: false;
|
|
225
225
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
226
226
|
__epPropKey: true;
|
|
227
227
|
};
|
|
228
|
-
method: import('element-plus/es/utils/
|
|
229
|
-
data: import('element-plus/es/utils/
|
|
230
|
-
name: import('element-plus/es/utils/
|
|
228
|
+
method: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
229
|
+
data: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (((new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>))) | null)[], unknown, unknown, () => import('element-plus/es/utils/typescript.mjs').Mutable<{}>, boolean>;
|
|
230
|
+
name: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
231
231
|
withCredentials: BooleanConstructor;
|
|
232
|
-
fileList: import('element-plus/es/utils/
|
|
233
|
-
autoUpload: import('element-plus/es/utils/
|
|
234
|
-
listType: import('element-plus/es/utils/
|
|
235
|
-
httpRequest: import('element-plus/es/utils/
|
|
232
|
+
fileList: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus').UploadUserFile[]) | (() => import('element-plus').UploadUserFile[]) | (((new (...args: any[]) => import('element-plus').UploadUserFile[]) | (() => import('element-plus').UploadUserFile[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
233
|
+
autoUpload: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
234
|
+
listType: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "text" | "picture" | "picture-card", unknown, "text", boolean>;
|
|
235
|
+
httpRequest: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus').UploadRequestHandler) | (() => import('element-plus').UploadRequestHandler) | {
|
|
236
236
|
(): import('element-plus').UploadRequestHandler;
|
|
237
237
|
new (): any;
|
|
238
238
|
readonly prototype: any;
|
|
@@ -270,7 +270,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
270
270
|
readonly type: import('vue').PropType<string>;
|
|
271
271
|
readonly default: ".pdf,.xlsx,.xls,.doc,.docx,.jpg,.jpeg,.png";
|
|
272
272
|
};
|
|
273
|
-
beforeUpload: import('element-plus/es/utils/
|
|
273
|
+
beforeUpload: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>) | (() => (rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>) | {
|
|
274
274
|
(): (rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
275
275
|
new (): any;
|
|
276
276
|
readonly prototype: any;
|
|
@@ -369,7 +369,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
369
369
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
370
370
|
__epPropKey: true;
|
|
371
371
|
};
|
|
372
|
-
onRemove: import('element-plus/es/utils/
|
|
372
|
+
onRemove: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
373
373
|
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
374
374
|
new (): any;
|
|
375
375
|
readonly prototype: any;
|
|
@@ -378,7 +378,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
378
378
|
new (): any;
|
|
379
379
|
readonly prototype: any;
|
|
380
380
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
381
|
-
onChange: import('element-plus/es/utils/
|
|
381
|
+
onChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
382
382
|
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
383
383
|
new (): any;
|
|
384
384
|
readonly prototype: any;
|
|
@@ -387,7 +387,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
387
387
|
new (): any;
|
|
388
388
|
readonly prototype: any;
|
|
389
389
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
390
|
-
onPreview: import('element-plus/es/utils/
|
|
390
|
+
onPreview: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
391
391
|
(): (uploadFile: UploadFile) => void;
|
|
392
392
|
new (): any;
|
|
393
393
|
readonly prototype: any;
|
|
@@ -396,7 +396,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
396
396
|
new (): any;
|
|
397
397
|
readonly prototype: any;
|
|
398
398
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
399
|
-
onSuccess: import('element-plus/es/utils/
|
|
399
|
+
onSuccess: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
400
400
|
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
401
401
|
new (): any;
|
|
402
402
|
readonly prototype: any;
|
|
@@ -405,7 +405,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
405
405
|
new (): any;
|
|
406
406
|
readonly prototype: any;
|
|
407
407
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
408
|
-
onProgress: import('element-plus/es/utils/
|
|
408
|
+
onProgress: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (evt: import('element-plus').UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: import('element-plus').UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
409
409
|
(): (evt: import('element-plus').UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
410
410
|
new (): any;
|
|
411
411
|
readonly prototype: any;
|
|
@@ -414,7 +414,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
414
414
|
new (): any;
|
|
415
415
|
readonly prototype: any;
|
|
416
416
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
417
|
-
onError: import('element-plus/es/utils/
|
|
417
|
+
onError: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
418
418
|
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
419
419
|
new (): any;
|
|
420
420
|
readonly prototype: any;
|
|
@@ -423,7 +423,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
423
423
|
new (): any;
|
|
424
424
|
readonly prototype: any;
|
|
425
425
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
426
|
-
onExceed: import('element-plus/es/utils/
|
|
426
|
+
onExceed: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void) | {
|
|
427
427
|
(): (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void;
|
|
428
428
|
new (): any;
|
|
429
429
|
readonly prototype: any;
|
|
@@ -433,25 +433,25 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
433
433
|
readonly prototype: any;
|
|
434
434
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
435
435
|
crossorigin: {
|
|
436
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/
|
|
436
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | (((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials")) | null)[], unknown, unknown>>;
|
|
437
437
|
readonly required: false;
|
|
438
438
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
439
439
|
__epPropKey: true;
|
|
440
440
|
};
|
|
441
441
|
headers: {
|
|
442
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/
|
|
442
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | (((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers)) | null)[], unknown, unknown>>;
|
|
443
443
|
readonly required: false;
|
|
444
444
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
445
445
|
__epPropKey: true;
|
|
446
446
|
};
|
|
447
|
-
method: import('element-plus/es/utils/
|
|
448
|
-
data: import('element-plus/es/utils/
|
|
449
|
-
name: import('element-plus/es/utils/
|
|
447
|
+
method: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
448
|
+
data: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (((new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>))) | null)[], unknown, unknown, () => import('element-plus/es/utils/typescript.mjs').Mutable<{}>, boolean>;
|
|
449
|
+
name: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
450
450
|
withCredentials: BooleanConstructor;
|
|
451
|
-
fileList: import('element-plus/es/utils/
|
|
452
|
-
autoUpload: import('element-plus/es/utils/
|
|
453
|
-
listType: import('element-plus/es/utils/
|
|
454
|
-
httpRequest: import('element-plus/es/utils/
|
|
451
|
+
fileList: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus').UploadUserFile[]) | (() => import('element-plus').UploadUserFile[]) | (((new (...args: any[]) => import('element-plus').UploadUserFile[]) | (() => import('element-plus').UploadUserFile[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
452
|
+
autoUpload: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
453
|
+
listType: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "text" | "picture" | "picture-card", unknown, "text", boolean>;
|
|
454
|
+
httpRequest: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus').UploadRequestHandler) | (() => import('element-plus').UploadRequestHandler) | {
|
|
455
455
|
(): import('element-plus').UploadRequestHandler;
|
|
456
456
|
new (): any;
|
|
457
457
|
readonly prototype: any;
|
|
@@ -476,7 +476,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
476
476
|
onDownload?: ((file: TtUploadFileItem) => any) | undefined;
|
|
477
477
|
onTemplateDownload?: (() => any) | undefined;
|
|
478
478
|
}>, {
|
|
479
|
-
data: import('element-plus/es/utils/
|
|
479
|
+
data: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | ((new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | null)[], unknown, unknown>;
|
|
480
480
|
drag: boolean;
|
|
481
481
|
onProgress: (evt: import('element-plus').UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
482
482
|
onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
@@ -512,8 +512,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
512
512
|
onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
513
513
|
onExceed: (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void;
|
|
514
514
|
fileList: import('element-plus').UploadUserFile[];
|
|
515
|
-
autoUpload: import('element-plus/es/utils/
|
|
516
|
-
listType: import('element-plus/es/utils/
|
|
515
|
+
autoUpload: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
516
|
+
listType: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
517
517
|
httpRequest: import('element-plus').UploadRequestHandler;
|
|
518
518
|
directory: boolean;
|
|
519
519
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -81,7 +81,7 @@ export declare const ttUploadProps: {
|
|
|
81
81
|
readonly default: ".pdf,.xlsx,.xls,.doc,.docx,.jpg,.jpeg,.png";
|
|
82
82
|
};
|
|
83
83
|
/** 上传前的钩子;在内置类型/大小/数量校验通过后调用,返回 false 可阻止上传 */
|
|
84
|
-
readonly beforeUpload: import('element-plus/es/utils/
|
|
84
|
+
readonly beforeUpload: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>) | (() => (rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>) | {
|
|
85
85
|
(): (rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
86
86
|
new (): any;
|
|
87
87
|
readonly prototype: any;
|
|
@@ -205,7 +205,7 @@ export declare const ttUploadProps: {
|
|
|
205
205
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
206
206
|
__epPropKey: true;
|
|
207
207
|
};
|
|
208
|
-
readonly onRemove: import('element-plus/es/utils/
|
|
208
|
+
readonly onRemove: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void) | (() => (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void) | {
|
|
209
209
|
(): (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
210
210
|
new (): any;
|
|
211
211
|
readonly prototype: any;
|
|
@@ -214,7 +214,7 @@ export declare const ttUploadProps: {
|
|
|
214
214
|
new (): any;
|
|
215
215
|
readonly prototype: any;
|
|
216
216
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
217
|
-
readonly onChange: import('element-plus/es/utils/
|
|
217
|
+
readonly onChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void) | (() => (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void) | {
|
|
218
218
|
(): (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
219
219
|
new (): any;
|
|
220
220
|
readonly prototype: any;
|
|
@@ -223,7 +223,7 @@ export declare const ttUploadProps: {
|
|
|
223
223
|
new (): any;
|
|
224
224
|
readonly prototype: any;
|
|
225
225
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
226
|
-
readonly onPreview: import('element-plus/es/utils/
|
|
226
|
+
readonly onPreview: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (uploadFile: import('element-plus').UploadFile) => void) | (() => (uploadFile: import('element-plus').UploadFile) => void) | {
|
|
227
227
|
(): (uploadFile: import('element-plus').UploadFile) => void;
|
|
228
228
|
new (): any;
|
|
229
229
|
readonly prototype: any;
|
|
@@ -232,7 +232,7 @@ export declare const ttUploadProps: {
|
|
|
232
232
|
new (): any;
|
|
233
233
|
readonly prototype: any;
|
|
234
234
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
235
|
-
readonly onSuccess: import('element-plus/es/utils/
|
|
235
|
+
readonly onSuccess: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void) | (() => (response: any, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void) | {
|
|
236
236
|
(): (response: any, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
237
237
|
new (): any;
|
|
238
238
|
readonly prototype: any;
|
|
@@ -241,7 +241,7 @@ export declare const ttUploadProps: {
|
|
|
241
241
|
new (): any;
|
|
242
242
|
readonly prototype: any;
|
|
243
243
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
244
|
-
readonly onProgress: import('element-plus/es/utils/
|
|
244
|
+
readonly onProgress: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (evt: import('element-plus').UploadProgressEvent, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void) | (() => (evt: import('element-plus').UploadProgressEvent, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void) | {
|
|
245
245
|
(): (evt: import('element-plus').UploadProgressEvent, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
246
246
|
new (): any;
|
|
247
247
|
readonly prototype: any;
|
|
@@ -250,7 +250,7 @@ export declare const ttUploadProps: {
|
|
|
250
250
|
new (): any;
|
|
251
251
|
readonly prototype: any;
|
|
252
252
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
253
|
-
readonly onError: import('element-plus/es/utils/
|
|
253
|
+
readonly onError: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void) | (() => (error: Error, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void) | {
|
|
254
254
|
(): (error: Error, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
255
255
|
new (): any;
|
|
256
256
|
readonly prototype: any;
|
|
@@ -259,7 +259,7 @@ export declare const ttUploadProps: {
|
|
|
259
259
|
new (): any;
|
|
260
260
|
readonly prototype: any;
|
|
261
261
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
262
|
-
readonly onExceed: import('element-plus/es/utils/
|
|
262
|
+
readonly onExceed: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void) | {
|
|
263
263
|
(): (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void;
|
|
264
264
|
new (): any;
|
|
265
265
|
readonly prototype: any;
|
|
@@ -269,25 +269,25 @@ export declare const ttUploadProps: {
|
|
|
269
269
|
readonly prototype: any;
|
|
270
270
|
}) | null)[], unknown, unknown, () => void, boolean>;
|
|
271
271
|
readonly crossorigin: {
|
|
272
|
-
readonly type: PropType<import('element-plus/es/utils/
|
|
272
|
+
readonly type: PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | (((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials")) | null)[], unknown, unknown>>;
|
|
273
273
|
readonly required: false;
|
|
274
274
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
275
275
|
__epPropKey: true;
|
|
276
276
|
};
|
|
277
277
|
readonly headers: {
|
|
278
|
-
readonly type: PropType<import('element-plus/es/utils/
|
|
278
|
+
readonly type: PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | (((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers)) | null)[], unknown, unknown>>;
|
|
279
279
|
readonly required: false;
|
|
280
280
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
281
281
|
__epPropKey: true;
|
|
282
282
|
};
|
|
283
|
-
readonly method: import('element-plus/es/utils/
|
|
284
|
-
readonly data: import('element-plus/es/utils/
|
|
285
|
-
readonly name: import('element-plus/es/utils/
|
|
283
|
+
readonly method: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
284
|
+
readonly data: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (((new (...args: any[]) => import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>> | Promise<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>)) | (() => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus/es/utils/typescript.mjs').Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>))) | null)[], unknown, unknown, () => import('element-plus/es/utils/typescript.mjs').Mutable<{}>, boolean>;
|
|
285
|
+
readonly name: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
286
286
|
readonly withCredentials: BooleanConstructor;
|
|
287
|
-
readonly fileList: import('element-plus/es/utils/
|
|
288
|
-
readonly autoUpload: import('element-plus/es/utils/
|
|
289
|
-
readonly listType: import('element-plus/es/utils/
|
|
290
|
-
readonly httpRequest: import('element-plus/es/utils/
|
|
287
|
+
readonly fileList: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus').UploadUserFile[]) | (() => import('element-plus').UploadUserFile[]) | (((new (...args: any[]) => import('element-plus').UploadUserFile[]) | (() => import('element-plus').UploadUserFile[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
288
|
+
readonly autoUpload: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
289
|
+
readonly listType: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "text" | "picture" | "picture-card", unknown, "text", boolean>;
|
|
290
|
+
readonly httpRequest: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus').UploadRequestHandler) | (() => import('element-plus').UploadRequestHandler) | {
|
|
291
291
|
(): import('element-plus').UploadRequestHandler;
|
|
292
292
|
new (): any;
|
|
293
293
|
readonly prototype: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 基础数据 code 常量,页面传入 hooks 时使用。
|
|
3
3
|
* 区域层级 type:1-洲,2-区域,3-国家,4-城市,5-机场
|
|
4
|
-
* 字典类:SALES_ORDER_TYPE / SALES_ORDER_PRODUCT_TYPE 对应 sysDictItem 字典编码
|
|
4
|
+
* 字典类:SALES_ORDER_TYPE / SALES_ORDER_PRODUCT_TYPE / CURRENCY_CODE 对应 sysDictItem 字典编码
|
|
5
5
|
*/
|
|
6
6
|
export declare const CODES: {
|
|
7
7
|
readonly AIRLINE: "airline";
|
|
@@ -14,6 +14,8 @@ export declare const CODES: {
|
|
|
14
14
|
readonly SALES_ORDER_TYPE: "SALES_ORDER_TYPE";
|
|
15
15
|
/** 产品类型(字典 SALES_ORDER_PRODUCT_TYPE) */
|
|
16
16
|
readonly SALES_ORDER_PRODUCT_TYPE: "SALES_ORDER_PRODUCT_TYPE";
|
|
17
|
+
/** 币种(字典 CURRENCY_CODE) */
|
|
18
|
+
readonly CURRENCY_CODE: "CURRENCY_CODE";
|
|
17
19
|
/** 用户(/iam/user/page) */
|
|
18
20
|
readonly USER: "user";
|
|
19
21
|
/** 角色(/iam/role/queryAllRoles) */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getAllBasicAirline as
|
|
1
|
+
import { getAllBasicAirline as S, getDictItemsByCodes as O, listChainByTypeAirportRegionLevel as A } from "../api/basicData.js";
|
|
2
2
|
import { queryAllRoles as L } from "../api/dataTypeContext.js";
|
|
3
3
|
import { fetchUserListOnce as I } from "./userListCache.js";
|
|
4
|
-
import { secondaryDropdownListLossReason as T, primaryDropdownListLossReason as
|
|
5
|
-
import { listAllSupplierPurchase as
|
|
4
|
+
import { secondaryDropdownListLossReason as T, primaryDropdownListLossReason as R } from "../api/lossReason.js";
|
|
5
|
+
import { listAllSupplierPurchase as _, listAllValidSupplierManage as P, getAllConfigListSupplierConfigManage as h } from "../api/supplier.js";
|
|
6
6
|
const o = {
|
|
7
7
|
AIRLINE: "airline",
|
|
8
8
|
CONTINENT: "continent",
|
|
@@ -14,6 +14,8 @@ const o = {
|
|
|
14
14
|
SALES_ORDER_TYPE: "SALES_ORDER_TYPE",
|
|
15
15
|
/** 产品类型(字典 SALES_ORDER_PRODUCT_TYPE) */
|
|
16
16
|
SALES_ORDER_PRODUCT_TYPE: "SALES_ORDER_PRODUCT_TYPE",
|
|
17
|
+
/** 币种(字典 CURRENCY_CODE) */
|
|
18
|
+
CURRENCY_CODE: "CURRENCY_CODE",
|
|
17
19
|
/** 用户(/iam/user/page) */
|
|
18
20
|
USER: "user",
|
|
19
21
|
/** 角色(/iam/role/queryAllRoles) */
|
|
@@ -97,7 +99,7 @@ function Z(a) {
|
|
|
97
99
|
}), Array.from(e.values());
|
|
98
100
|
}
|
|
99
101
|
function ee(a, e) {
|
|
100
|
-
return e || (a === o.CONTINENT ? d.NONE : a === o.AIRPORT || a === o.CITY ? d.COUNTRY : a === o.COUNTRY || a === o.REGION ? d.CONTINENT : a === o.LOSS_REASON ? d.BUSINESS_TYPE : a === o.LOSS_REASON_SECONDARY ? d.PRIMARY_REASON : a === o.SUPPLIER_CONFIG ? d.SUPPLIER_MANAGE_NAME : d.PINYIN);
|
|
102
|
+
return e || (a === o.CONTINENT || a === o.CURRENCY_CODE ? d.NONE : a === o.AIRPORT || a === o.CITY ? d.COUNTRY : a === o.COUNTRY || a === o.REGION ? d.CONTINENT : a === o.LOSS_REASON ? d.BUSINESS_TYPE : a === o.LOSS_REASON_SECONDARY ? d.PRIMARY_REASON : a === o.SUPPLIER_CONFIG ? d.SUPPLIER_MANAGE_NAME : d.PINYIN);
|
|
101
103
|
}
|
|
102
104
|
const K = {
|
|
103
105
|
1: { codeKey: "continentCode", nameKey: "continentName", statusKey: "continentStatus" },
|
|
@@ -106,7 +108,7 @@ const K = {
|
|
|
106
108
|
4: { codeKey: "cityCode", nameKey: "cityName", statusKey: "cityStatus" },
|
|
107
109
|
5: { codeKey: "airportCode", nameKey: "airportName", statusKey: "airportStatus" }
|
|
108
110
|
};
|
|
109
|
-
function
|
|
111
|
+
function Y(a = []) {
|
|
110
112
|
return (Array.isArray(a) ? a : []).filter((e) => e == null ? void 0 : e.airlineCode).map((e) => {
|
|
111
113
|
const l = e.airlineType, n = l != null ? String(l) : "";
|
|
112
114
|
return {
|
|
@@ -117,7 +119,7 @@ function M(a = []) {
|
|
|
117
119
|
};
|
|
118
120
|
});
|
|
119
121
|
}
|
|
120
|
-
function
|
|
122
|
+
function M(a) {
|
|
121
123
|
if (!a || typeof a != "object" || Array.isArray(a))
|
|
122
124
|
return a || {};
|
|
123
125
|
const e = a.continentCode || a.regionCode || a.countryCode || a.cityCode || a.airportCode, l = [1, 2, 3, 4, 5].some((u) => a[String(u)] || a[u]);
|
|
@@ -140,7 +142,7 @@ function Y(a) {
|
|
|
140
142
|
return r;
|
|
141
143
|
}
|
|
142
144
|
function w(a) {
|
|
143
|
-
return (Array.isArray(a) ? a : []).map((l) =>
|
|
145
|
+
return (Array.isArray(a) ? a : []).map((l) => M(l || {}));
|
|
144
146
|
}
|
|
145
147
|
function U(a = [], e, l) {
|
|
146
148
|
return (Array.isArray(a) ? a : []).filter((n) => n == null ? void 0 : n[e]).map((n) => ({
|
|
@@ -149,13 +151,13 @@ function U(a = [], e, l) {
|
|
|
149
151
|
value: n[e]
|
|
150
152
|
}));
|
|
151
153
|
}
|
|
152
|
-
const
|
|
154
|
+
const D = [o.CONTINENT, o.REGION, o.COUNTRY, o.CITY, o.AIRPORT], y = {
|
|
153
155
|
[o.CONTINENT]: 1,
|
|
154
156
|
[o.REGION]: 2,
|
|
155
157
|
[o.COUNTRY]: 3,
|
|
156
158
|
[o.CITY]: 4,
|
|
157
159
|
[o.AIRPORT]: 5
|
|
158
|
-
},
|
|
160
|
+
}, F = {
|
|
159
161
|
[o.CONTINENT]: { codeKey: "continentCode", nameKey: "continentName" },
|
|
160
162
|
[o.REGION]: { codeKey: "regionCode", nameKey: "regionName" },
|
|
161
163
|
[o.COUNTRY]: { codeKey: "countryCode", nameKey: "countryName" },
|
|
@@ -164,14 +166,14 @@ const F = [o.CONTINENT, o.REGION, o.COUNTRY, o.CITY, o.AIRPORT], y = {
|
|
|
164
166
|
};
|
|
165
167
|
o.CONTINENT, o.REGION, o.COUNTRY, o.CITY;
|
|
166
168
|
function N(a) {
|
|
167
|
-
return
|
|
169
|
+
return D.includes(a);
|
|
168
170
|
}
|
|
169
171
|
function ae(a, e) {
|
|
170
172
|
return !N(a) || !N(e) ? !1 : y[a] > y[e];
|
|
171
173
|
}
|
|
172
174
|
function re(a, e) {
|
|
173
175
|
if (!N(e)) return [];
|
|
174
|
-
const { codeKey: l, nameKey: n } =
|
|
176
|
+
const { codeKey: l, nameKey: n } = F[e], s = /* @__PURE__ */ new Map();
|
|
175
177
|
return (Array.isArray(a) ? a : []).forEach((r) => {
|
|
176
178
|
const u = r == null ? void 0 : r[l];
|
|
177
179
|
if (u == null || u === "") return;
|
|
@@ -229,10 +231,10 @@ function m(a = []) {
|
|
|
229
231
|
});
|
|
230
232
|
}), s;
|
|
231
233
|
}
|
|
232
|
-
function
|
|
234
|
+
function C(a, e = G) {
|
|
233
235
|
return async (l) => {
|
|
234
236
|
try {
|
|
235
|
-
const n = await
|
|
237
|
+
const n = await O({
|
|
236
238
|
dictCodeList: [a],
|
|
237
239
|
permissionOnlyCode: l == null ? void 0 : l.permissionOnlyCode
|
|
238
240
|
}), s = (n == null ? void 0 : n[a]) || [];
|
|
@@ -313,8 +315,8 @@ const ne = {
|
|
|
313
315
|
defaultShowAll: !0,
|
|
314
316
|
async fetchOptions() {
|
|
315
317
|
try {
|
|
316
|
-
const a = await
|
|
317
|
-
return
|
|
318
|
+
const a = await S();
|
|
319
|
+
return Y(a || []);
|
|
318
320
|
} catch {
|
|
319
321
|
return [];
|
|
320
322
|
}
|
|
@@ -373,7 +375,7 @@ const ne = {
|
|
|
373
375
|
valueField: "value",
|
|
374
376
|
parentField: "parentItemCode"
|
|
375
377
|
},
|
|
376
|
-
fetchOptions:
|
|
378
|
+
fetchOptions: C(o.SALES_ORDER_TYPE, m)
|
|
377
379
|
},
|
|
378
380
|
[o.SALES_ORDER_PRODUCT_TYPE]: {
|
|
379
381
|
defaultFieldName: "productType",
|
|
@@ -387,7 +389,16 @@ const ne = {
|
|
|
387
389
|
valueField: "itemCode",
|
|
388
390
|
parentField: "parentItemCode"
|
|
389
391
|
},
|
|
390
|
-
fetchOptions:
|
|
392
|
+
fetchOptions: C(o.SALES_ORDER_PRODUCT_TYPE)
|
|
393
|
+
},
|
|
394
|
+
[o.CURRENCY_CODE]: {
|
|
395
|
+
defaultFieldName: "currencyCodes",
|
|
396
|
+
defaultLabel: "币种",
|
|
397
|
+
defaultExcludeLabel: "排除币种",
|
|
398
|
+
defaultMultiple: !0,
|
|
399
|
+
defaultShowAll: !1,
|
|
400
|
+
defaultShowNav: !1,
|
|
401
|
+
fetchOptions: C(o.CURRENCY_CODE)
|
|
391
402
|
},
|
|
392
403
|
[o.USER]: {
|
|
393
404
|
defaultFieldName: "userIds",
|
|
@@ -427,7 +438,7 @@ const ne = {
|
|
|
427
438
|
defaultShowAll: !1,
|
|
428
439
|
async fetchOptions() {
|
|
429
440
|
try {
|
|
430
|
-
const a = await
|
|
441
|
+
const a = await R();
|
|
431
442
|
return $(a || []);
|
|
432
443
|
} catch {
|
|
433
444
|
return [];
|
|
@@ -444,7 +455,7 @@ const ne = {
|
|
|
444
455
|
try {
|
|
445
456
|
const [a, e] = await Promise.all([
|
|
446
457
|
T(),
|
|
447
|
-
|
|
458
|
+
R()
|
|
448
459
|
]), l = /* @__PURE__ */ new Map();
|
|
449
460
|
return (e || []).forEach((n) => {
|
|
450
461
|
(n == null ? void 0 : n.id) !== void 0 && (n == null ? void 0 : n.id) !== null && l.set(n.id, n.reasonName || String(n.id));
|
|
@@ -477,7 +488,7 @@ const ne = {
|
|
|
477
488
|
defaultShowAll: !1,
|
|
478
489
|
async fetchOptions() {
|
|
479
490
|
try {
|
|
480
|
-
const a = await
|
|
491
|
+
const a = await P();
|
|
481
492
|
return H(a || []);
|
|
482
493
|
} catch {
|
|
483
494
|
return [];
|
|
@@ -493,7 +504,7 @@ const ne = {
|
|
|
493
504
|
defaultShowNav: !1,
|
|
494
505
|
async fetchOptions() {
|
|
495
506
|
try {
|
|
496
|
-
const a = await
|
|
507
|
+
const a = await _();
|
|
497
508
|
return k(a || []);
|
|
498
509
|
} catch {
|
|
499
510
|
return [];
|
|
@@ -504,7 +515,7 @@ const ne = {
|
|
|
504
515
|
export {
|
|
505
516
|
o as CODES,
|
|
506
517
|
ne as CODE_REGISTRY,
|
|
507
|
-
|
|
518
|
+
D as GEO_LEVEL_CODES,
|
|
508
519
|
d as GROUP_BY,
|
|
509
520
|
ae as canDeriveGeoLevel,
|
|
510
521
|
re as deriveRegionLevelOptionsFromGeoSource,
|
|
@@ -52,7 +52,7 @@ export interface PanelSelectFieldConfig<TValues extends Recordable = Recordable>
|
|
|
52
52
|
exclude?: PanelSelectExcludeConfig<TValues>;
|
|
53
53
|
/**
|
|
54
54
|
* 分组方式。
|
|
55
|
-
* -
|
|
55
|
+
* - 洲 / 币种默认 `none`;机场/城市默认 `country`;国家/区域默认 `continent`
|
|
56
56
|
* - 亏损原因默认 `businessType`;细类默认 `primaryReason`;配置号默认 `supplierManageName`
|
|
57
57
|
* - 航司可传 `airlineType`(1-境内 / 2-境外);默认仍为 `pinyin`
|
|
58
58
|
* - 可传 `continent` / `region` / `country` / `businessType` / `primaryReason` / `supplierManageName` / `airlineType` / `pinyin` / `none`
|