cnhis-design-vue 3.3.3-release.0 → 3.3.3-release.12
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/es/components/audio-sdk/index.d.ts +18 -16
- package/es/components/audio-sdk/src/Index.vue.d.ts +18 -16
- package/es/components/audio-sdk/src/Index.vue2.js +47 -12
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +6 -6
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +6 -6
- package/es/components/audio-sdk/src/components/recording.vue2.js +17 -3
- package/es/components/base-search/index.d.ts +3 -0
- package/es/components/base-search/src/index.vue.d.ts +3 -0
- package/es/components/big-table/src/components/NoData.vue2.js +8 -1
- package/es/components/big-table/src/hooks/useTableParse.js +8 -1
- package/es/components/button-print/index.d.ts +9 -3
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +9 -3
- package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +11 -4
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +113 -16
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +9 -3
- package/es/components/button-print/src/utils/print.d.ts +3 -3
- package/es/components/button-print/src/utils/print.js +36 -23
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +18 -0
- package/es/components/card-reader-sdk-cn/src/henan/index.js +8 -1
- package/es/components/classification/index.d.ts +56 -6
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +56 -6
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +56 -6
- package/es/components/classification/src/index.vue.d.ts +56 -6
- package/es/components/date-picker/src/DatePicker.vue2.js +8 -1
- package/es/components/expand-field/index.d.ts +792 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue2.js +8 -1
- package/es/components/expand-field/src/index.vue.d.ts +792 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +3 -1
- package/es/components/field-editor/index.d.ts +18 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +18 -0
- package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
- package/es/components/field-editor/src/fields.d.ts +1 -0
- package/es/components/field-editor/src/fields.js +6 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +10 -5
- package/es/components/field-set/src/FieldFilter.vue.d.ts +10 -5
- package/es/components/field-set/src/FieldSet.vue.d.ts +43 -6
- package/es/components/field-set/src/FieldSet.vue2.js +118 -69
- package/es/components/field-set/src/Index.vue2.js +8 -3
- package/es/components/field-set/src/TableStyle.vue2.js +2 -2
- package/es/components/field-set/src/components/table-row.vue.d.ts +6 -5
- package/es/components/field-set/src/components/table-row.vue2.js +21 -6
- package/es/components/field-set/src/constants/index.d.ts +1 -1
- package/es/components/field-set/src/types/index.d.ts +2 -0
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +102 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +102 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +18 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +63 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +4 -4
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +18 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +9 -2
- package/es/components/form-config/src/constants/index.d.ts +31 -1
- package/es/components/form-config/src/constants/index.js +150 -1
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -2
- package/es/components/form-config/src/hooks/useConfigurationField.js +53 -6
- package/es/components/form-config/src/hooks/useLocale.d.ts +6 -0
- package/es/components/form-config/src/hooks/useLocale.js +34 -0
- package/es/components/form-config/src/types/index.d.ts +12 -0
- package/es/components/form-render/index.d.ts +18 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +18 -0
- package/es/components/form-render/src/FormRender.vue2.js +5 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/formItem.js +17 -3
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +4 -2
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/searchCascade.js +3 -0
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +12 -3
- package/es/components/form-render/src/hooks/useBusinessBinding.js +7 -7
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +5 -2
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFieldNormalize.js +15 -0
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +2 -1
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/business.d.ts +3 -1
- package/es/components/form-render/src/utils/business.js +7 -1
- package/es/components/iho-chat/index.d.ts +861 -49
- package/es/components/iho-chat/src/Index.vue.d.ts +861 -49
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +181 -8
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +51 -41
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +66 -6
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +154 -57
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +329 -15
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +21 -19
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +235 -20
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +298 -279
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +51 -5
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +3 -3
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +48 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +34 -27
- package/es/components/iho-chat/src/components/ImageLightbox.vue.d.ts +104 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue.js +6 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +307 -0
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +53 -6
- package/es/components/iho-chat/src/components/MessageMergeForward.vue2.js +3 -3
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +64 -2
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +112 -53
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/SelectLabel.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +24 -1
- package/es/components/iho-chat/src/hooks/index.d.ts +1 -0
- package/es/components/iho-chat/src/hooks/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +51 -4
- package/es/components/iho-chat/src/hooks/useData.js +2 -7
- package/es/components/iho-chat/src/hooks/useDraggable.d.ts +25 -0
- package/es/components/iho-chat/src/hooks/useDraggable.js +160 -0
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +24 -1
- package/es/components/iho-chat/src/types/index.d.ts +37 -1
- package/es/components/iho-chat/src/utils/emoji.d.ts +1 -1
- package/es/components/iho-chat/src/utils/emoji.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +3 -3
- package/es/components/iho-chat/src/utils/index.js +27 -39
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +8 -1
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +5 -2
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +41 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +41 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +56 -22
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +19 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +18 -0
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
- package/es/components/quick-search/index.d.ts +2 -0
- package/es/components/quick-search/src/index.vue.d.ts +2 -0
- package/es/components/scale-view/index.d.ts +67 -17
- package/es/components/scale-view/src/ScaleView.vue.d.ts +70 -19
- package/es/components/scale-view/src/ScaleView.vue2.js +84 -10
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +10 -7
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +28 -4
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +10 -7
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +29 -8
- package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
- package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
- package/es/components/scale-view/src/components/ScaleScore.js +47 -4
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +20 -2
- package/es/components/scale-view/src/components/formitem/r-radio.js +2 -0
- package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
- package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
- package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +20 -5
- package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
- package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +8 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +8 -0
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +2 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
- package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
- package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
- package/es/components/scale-view/src/hooks/use-noData.js +33 -5
- package/es/components/scale-view/src/utils/judge-types.d.ts +2 -1
- package/es/components/scale-view/src/utils/judge-types.js +10 -10
- package/es/components/scale-view/src/utils/watch-form-change.d.ts +13 -0
- package/es/components/scale-view/src/utils/watch-form-change.js +71 -0
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/select-person/index.d.ts +792 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +434 -341
- package/es/components/select-person/src/SelectPerson.vue2.js +521 -675
- package/es/components/select-person/src/SelectPersonRole.vue.d.ts +630 -0
- package/es/components/select-person/src/SelectPersonRole.vue.js +6 -0
- package/es/components/select-person/src/SelectPersonRole.vue2.js +942 -0
- package/es/components/select-person/src/components/GroupItem.vue.d.ts +19 -0
- package/es/components/select-person/src/components/GroupItem.vue.js +6 -0
- package/es/components/select-person/src/components/GroupItem.vue2.js +37 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +214 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
- package/es/components/select-person/src/components/SearchGroupList.vue2.js +145 -0
- package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
- package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
- package/es/components/select-person/src/components/TagItem.vue.js +6 -0
- package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
- package/es/components/select-person/src/index.vue.d.ts +793 -1
- package/es/components/select-person/src/index.vue2.js +21 -4
- package/es/components/select-person/src/types/index.d.ts +35 -0
- package/es/components/select-person/src/types/index.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +3 -0
- package/es/components/select-person/src/utils/index.js +29 -8
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +18 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +18 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +54 -6
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +26 -10
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -2
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +37 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +18 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +44 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +2 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +55 -6
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +6 -3
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +25 -6
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +2 -2
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +20 -3
- package/es/components/table-filter/src/hooks/useRenderWidget.js +4 -0
- package/es/components/table-filter/src/tool/date.d.ts +3 -0
- package/es/components/table-filter/src/tool/date.js +139 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
- package/es/components/table-filter/src/tool/transformData.js +11 -8
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +2 -1
- package/es/components/table-filter/src/types/index.d.ts +12 -0
- package/es/components/vod-chunk-upload/index.d.ts +3 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +1 -29
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +109 -11
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +15 -1
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +72 -9
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +3 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +75 -9
- package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +3 -3
- package/es/shared/package.json.js +1 -1
- package/package.json +4 -3
@@ -340,6 +340,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
340
340
|
buttonProps: {};
|
341
341
|
showMaxHeight: null;
|
342
342
|
initLoadPrintParams: boolean;
|
343
|
+
showPreviewDataList: boolean;
|
343
344
|
};
|
344
345
|
};
|
345
346
|
svrUpdateIp: {
|
@@ -459,6 +460,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
459
460
|
buttonProps: {};
|
460
461
|
showMaxHeight: null;
|
461
462
|
initLoadPrintParams: boolean;
|
463
|
+
showPreviewDataList: boolean;
|
462
464
|
};
|
463
465
|
};
|
464
466
|
svrUpdateIp: {
|
@@ -493,6 +495,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
493
495
|
showMaxHeight: import("vue").ComputedRef<any>;
|
494
496
|
printAllFormatIds: import("vue").ComputedRef<any>;
|
495
497
|
positionElement: import("vue").ComputedRef<any>;
|
498
|
+
showPreviewDataList: import("vue").ComputedRef<any>;
|
496
499
|
printAllShortcut: import("vue").ComputedRef<any>;
|
497
500
|
showSettingItems: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
|
498
501
|
isSelectedAll: import("vue").WritableComputedRef<boolean>;
|
@@ -511,13 +514,13 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
511
514
|
callLocalServicesCancelCb: (res: unknown) => void;
|
512
515
|
prevFnError: (type: string) => void;
|
513
516
|
getPrintParams: () => string;
|
514
|
-
getOnceParams: (curPrintParamList: any[] | undefined, templateCode: string) => string;
|
517
|
+
getOnceParams: (curPrintParamList: any[] | undefined, templateCode: string, name?: string | undefined) => string;
|
515
518
|
handleClickPrintAll: () => void;
|
516
519
|
toggleExpandLoading: (isLoading: boolean, formatId?: string | undefined) => void;
|
517
520
|
getCurrentLoading: () => any;
|
518
521
|
handleOneTypePrint: (templateCode: string, templateId: string, formatId: string, isOuterClick: boolean) => void;
|
519
522
|
handleClickPrint: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string, printToParam?: never[], needContinuePrint?: boolean | undefined) => Promise<void>;
|
520
|
-
handleClickPreview: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
|
523
|
+
handleClickPreview: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string, name?: string | undefined) => Promise<void>;
|
521
524
|
handleClickPdf: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
|
522
525
|
handleClickEdit: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => void;
|
523
526
|
handleResetPrinter: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
|
@@ -540,7 +543,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
540
543
|
mergeTemplateList: (list: any[]) => any;
|
541
544
|
initCRM: (formatListResult: any) => Promise<void>;
|
542
545
|
init: () => Promise<boolean>;
|
543
|
-
registerShort: () => Promise<void>;
|
546
|
+
registerShort: (obj?: any) => Promise<void>;
|
544
547
|
handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
|
545
548
|
reformatPrintParams: () => void;
|
546
549
|
verifiySuccess: (token: string) => void;
|
@@ -557,6 +560,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
557
560
|
NCheckbox: any;
|
558
561
|
PrintOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
559
562
|
ChevronDownSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
563
|
+
ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
560
564
|
ArrowForwardOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
561
565
|
SettingsOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
562
566
|
IdentityVerification: import("vue").DefineComponent<{
|
@@ -838,6 +842,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
838
842
|
buttonProps: {};
|
839
843
|
showMaxHeight: null;
|
840
844
|
initLoadPrintParams: boolean;
|
845
|
+
showPreviewDataList: boolean;
|
841
846
|
};
|
842
847
|
};
|
843
848
|
svrUpdateIp: {
|
@@ -1592,6 +1597,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1592
1597
|
emits: (event: "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", ...args: any[]) => void;
|
1593
1598
|
directPrint: () => Promise<void>;
|
1594
1599
|
handleShortcutStartAndStop: (status: "start" | "stop") => void;
|
1600
|
+
registerShort: (obj: any) => void;
|
1595
1601
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint")[], "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1596
1602
|
printParams: {
|
1597
1603
|
type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
|
@@ -346,6 +346,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
346
346
|
buttonProps: {};
|
347
347
|
showMaxHeight: null;
|
348
348
|
initLoadPrintParams: boolean;
|
349
|
+
showPreviewDataList: boolean;
|
349
350
|
};
|
350
351
|
};
|
351
352
|
svrUpdateIp: {
|
@@ -465,6 +466,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
465
466
|
buttonProps: {};
|
466
467
|
showMaxHeight: null;
|
467
468
|
initLoadPrintParams: boolean;
|
469
|
+
showPreviewDataList: boolean;
|
468
470
|
};
|
469
471
|
};
|
470
472
|
svrUpdateIp: {
|
@@ -499,6 +501,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
499
501
|
showMaxHeight: import("vue").ComputedRef<any>;
|
500
502
|
printAllFormatIds: import("vue").ComputedRef<any>;
|
501
503
|
positionElement: import("vue").ComputedRef<any>;
|
504
|
+
showPreviewDataList: import("vue").ComputedRef<any>;
|
502
505
|
printAllShortcut: import("vue").ComputedRef<any>;
|
503
506
|
showSettingItems: import("vue").ComputedRef<AnyObject[]>;
|
504
507
|
isSelectedAll: import("vue").WritableComputedRef<boolean>;
|
@@ -517,13 +520,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
517
520
|
callLocalServicesCancelCb: (res: unknown) => void;
|
518
521
|
prevFnError: (type: string) => void;
|
519
522
|
getPrintParams: () => string;
|
520
|
-
getOnceParams: (curPrintParamList: any[] | undefined, templateCode: string) => string;
|
523
|
+
getOnceParams: (curPrintParamList: any[] | undefined, templateCode: string, name?: string | undefined) => string;
|
521
524
|
handleClickPrintAll: () => void;
|
522
525
|
toggleExpandLoading: (isLoading: boolean, formatId?: string | undefined) => void;
|
523
526
|
getCurrentLoading: () => any;
|
524
527
|
handleOneTypePrint: (templateCode: string, templateId: string, formatId: string, isOuterClick: boolean) => void;
|
525
528
|
handleClickPrint: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string, printToParam?: never[], needContinuePrint?: boolean | undefined) => Promise<void>;
|
526
|
-
handleClickPreview: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
|
529
|
+
handleClickPreview: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string, name?: string | undefined) => Promise<void>;
|
527
530
|
handleClickPdf: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
|
528
531
|
handleClickEdit: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => void;
|
529
532
|
handleResetPrinter: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
|
@@ -546,7 +549,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
546
549
|
mergeTemplateList: (list: any[]) => any;
|
547
550
|
initCRM: (formatListResult: any) => Promise<void>;
|
548
551
|
init: () => Promise<boolean>;
|
549
|
-
registerShort: () => Promise<void>;
|
552
|
+
registerShort: (obj?: any) => Promise<void>;
|
550
553
|
handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
|
551
554
|
reformatPrintParams: () => void;
|
552
555
|
verifiySuccess: (token: string) => void;
|
@@ -563,6 +566,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
563
566
|
NCheckbox: any;
|
564
567
|
PrintOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
565
568
|
ChevronDownSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
569
|
+
ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
566
570
|
ArrowForwardOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
567
571
|
SettingsOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
568
572
|
IdentityVerification: import("vue").DefineComponent<{
|
@@ -844,6 +848,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
844
848
|
buttonProps: {};
|
845
849
|
showMaxHeight: null;
|
846
850
|
initLoadPrintParams: boolean;
|
851
|
+
showPreviewDataList: boolean;
|
847
852
|
};
|
848
853
|
};
|
849
854
|
svrUpdateIp: {
|
@@ -1601,6 +1606,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1601
1606
|
emits: (event: "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", ...args: any[]) => void;
|
1602
1607
|
directPrint: () => Promise<void>;
|
1603
1608
|
handleShortcutStartAndStop: (status: 'start' | 'stop') => void;
|
1609
|
+
registerShort: (obj: any) => void;
|
1604
1610
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint")[], "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1605
1611
|
printParams: {
|
1606
1612
|
type: PropType<AnyObject[]>;
|
@@ -191,9 +191,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
191
191
|
var _a;
|
192
192
|
(_a = printComponentRef.value) == null ? void 0 : _a.handleShortcutStartAndStop(status);
|
193
193
|
};
|
194
|
+
const registerShort = (obj) => {
|
195
|
+
var _a;
|
196
|
+
(_a = printComponentRef.value) == null ? void 0 : _a.registerShort(obj);
|
197
|
+
};
|
194
198
|
expose({
|
195
199
|
directPrint,
|
196
|
-
handleShortcutStartAndStop
|
200
|
+
handleShortcutStartAndStop,
|
201
|
+
registerShort
|
197
202
|
});
|
198
203
|
return (_ctx, _cache) => {
|
199
204
|
return openBlock(), createBlock(resolveDynamicComponent(unref(isComponent)), mergeProps({
|
@@ -105,6 +105,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
105
105
|
buttonProps: {};
|
106
106
|
showMaxHeight: null;
|
107
107
|
initLoadPrintParams: boolean;
|
108
|
+
showPreviewDataList: boolean;
|
108
109
|
};
|
109
110
|
};
|
110
111
|
svrUpdateIp: {
|
@@ -227,6 +228,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
227
228
|
buttonProps: {};
|
228
229
|
showMaxHeight: null;
|
229
230
|
initLoadPrintParams: boolean;
|
231
|
+
showPreviewDataList: boolean;
|
230
232
|
};
|
231
233
|
};
|
232
234
|
svrUpdateIp: {
|
@@ -261,6 +263,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
261
263
|
showMaxHeight: import("vue").ComputedRef<any>;
|
262
264
|
printAllFormatIds: import("vue").ComputedRef<any>;
|
263
265
|
positionElement: import("vue").ComputedRef<any>;
|
266
|
+
showPreviewDataList: import("vue").ComputedRef<any>;
|
264
267
|
printAllShortcut: import("vue").ComputedRef<any>;
|
265
268
|
showSettingItems: import("vue").ComputedRef<AnyObject[]>;
|
266
269
|
isSelectedAll: import("vue").WritableComputedRef<boolean>;
|
@@ -279,13 +282,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
279
282
|
callLocalServicesCancelCb: (res: unknown) => void;
|
280
283
|
prevFnError: (type: string) => void;
|
281
284
|
getPrintParams: () => string;
|
282
|
-
getOnceParams: (curPrintParamList: any[] | undefined, templateCode: string) => string;
|
285
|
+
getOnceParams: (curPrintParamList: any[] | undefined, templateCode: string, name?: string) => string;
|
283
286
|
handleClickPrintAll: () => void;
|
284
287
|
toggleExpandLoading: (isLoading: boolean, formatId?: string) => void;
|
285
288
|
getCurrentLoading: () => any;
|
286
289
|
handleOneTypePrint: (templateCode: string, templateId: string, formatId: string, isOuterClick: boolean) => void;
|
287
290
|
handleClickPrint: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string, printToParam?: never[], needContinuePrint?: boolean) => Promise<void>;
|
288
|
-
handleClickPreview: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
|
291
|
+
handleClickPreview: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string, name?: string) => Promise<void>;
|
289
292
|
handleClickPdf: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
|
290
293
|
handleClickEdit: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => void;
|
291
294
|
handleResetPrinter: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
|
@@ -308,7 +311,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
308
311
|
mergeTemplateList: (list: any[]) => any;
|
309
312
|
initCRM: (formatListResult: any) => Promise<void>;
|
310
313
|
init: () => Promise<boolean>;
|
311
|
-
registerShort: () => Promise<void>;
|
314
|
+
registerShort: (obj?: any) => Promise<void>;
|
312
315
|
handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
|
313
316
|
reformatPrintParams: () => void;
|
314
317
|
verifiySuccess: (token: string) => void;
|
@@ -325,6 +328,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
325
328
|
NCheckbox: any;
|
326
329
|
PrintOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
327
330
|
ChevronDownSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
331
|
+
ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
328
332
|
ArrowForwardOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
329
333
|
SettingsOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
330
334
|
IdentityVerification: import("vue").DefineComponent<{
|
@@ -375,7 +379,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
375
379
|
};
|
376
380
|
rules: import("naive-ui").FormRules;
|
377
381
|
style: {
|
378
|
-
width: string;
|
382
|
+
width: string; /**
|
383
|
+
* 打印预览按钮文本
|
384
|
+
*/
|
379
385
|
};
|
380
386
|
formRef: import("vue").Ref<{
|
381
387
|
validate: import("naive-ui/es/form/src/interface").FormValidate;
|
@@ -609,6 +615,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
609
615
|
buttonProps: {};
|
610
616
|
showMaxHeight: null;
|
611
617
|
initLoadPrintParams: boolean;
|
618
|
+
showPreviewDataList: boolean;
|
612
619
|
};
|
613
620
|
};
|
614
621
|
svrUpdateIp: {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createElementVNode, defineComponent, inject, ref, reactive, computed, onMounted, onBeforeUnmount, watch, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, withCtx, renderList, createBlock, mergeProps, createTextVNode, toDisplayString, normalizeStyle, isRef, renderSlot, withModifiers, normalizeClass } from 'vue';
|
2
2
|
import { isObject } from '@vue/shared';
|
3
3
|
import { useMessage, NButtonGroup, NDropdown, NButton, NIcon, NPopover, NCheckbox, NDivider } from 'naive-ui';
|
4
|
-
import { PrintOutline, SettingsOutline, ChevronDownSharp, ArrowForwardOutline } from '@vicons/ionicons5';
|
4
|
+
import { PrintOutline, SettingsOutline, ChevronDownSharp, ArrowForwardOutline, ArrowForward } from '@vicons/ionicons5';
|
5
5
|
import { InjectionButtonPrintEmits } from '../constants/index.js';
|
6
6
|
import { Print } from '../utils/print.js';
|
7
7
|
import { isIReport } from '../utils/browserPrint.js';
|
@@ -10,6 +10,7 @@ import { format } from 'date-fns';
|
|
10
10
|
import '../api.js';
|
11
11
|
import '../../../shortcut-provider/index.js';
|
12
12
|
import { encapBrowserLog } from '../../../../shared/utils/index.js';
|
13
|
+
import { cloneDeep } from 'lodash-es';
|
13
14
|
import { useShortcuts } from '../../../shortcut-provider/src/hooks/useShortcuts.js';
|
14
15
|
|
15
16
|
const _hoisted_1 = {
|
@@ -82,7 +83,18 @@ const _hoisted_19 = {
|
|
82
83
|
"background": "transparent"
|
83
84
|
}
|
84
85
|
};
|
85
|
-
const _hoisted_20 =
|
86
|
+
const _hoisted_20 = {
|
87
|
+
class: "label"
|
88
|
+
};
|
89
|
+
const _hoisted_21 = ["onClick"];
|
90
|
+
const _hoisted_22 = {
|
91
|
+
key: 1,
|
92
|
+
class: "print-lite",
|
93
|
+
style: {
|
94
|
+
"background": "transparent"
|
95
|
+
}
|
96
|
+
};
|
97
|
+
const _hoisted_23 = ["onClick"];
|
86
98
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
87
99
|
__name: "NewPrintComponent",
|
88
100
|
props: {
|
@@ -223,7 +235,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
223
235
|
shortcut: {},
|
224
236
|
buttonProps: {},
|
225
237
|
showMaxHeight: null,
|
226
|
-
initLoadPrintParams: false
|
238
|
+
initLoadPrintParams: false,
|
239
|
+
showPreviewDataList: false
|
227
240
|
})
|
228
241
|
},
|
229
242
|
svrUpdateIp: {
|
@@ -384,6 +397,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
384
397
|
var _a;
|
385
398
|
return (_a = props.newPrintSetting) == null ? void 0 : _a.positionElement;
|
386
399
|
});
|
400
|
+
const showPreviewDataList = computed(() => {
|
401
|
+
var _a;
|
402
|
+
return (_a = props.newPrintSetting) == null ? void 0 : _a.showPreviewDataList;
|
403
|
+
});
|
387
404
|
const printAllShortcut = computed(() => {
|
388
405
|
var _a, _b;
|
389
406
|
const keys = Object.keys(shortcutSettings.value);
|
@@ -443,6 +460,32 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
443
460
|
if (isIReport(curOuter.key)) {
|
444
461
|
return targetList.filter((option) => option.key != "formatEditText");
|
445
462
|
}
|
463
|
+
if (props.strategy !== "MULTI" && showPreviewDataList.value) {
|
464
|
+
const printParamsItemList = state.printParams[curOuter.templateCode];
|
465
|
+
const aa = cloneDeep(targetList).map((item) => {
|
466
|
+
if (item.key === "previewText" && (printParamsItemList == null ? void 0 : printParamsItemList.length) > 1) {
|
467
|
+
const list = printParamsItemList.map((item2) => {
|
468
|
+
return {
|
469
|
+
label: item2.printPreviewBusinessName,
|
470
|
+
key: `previewText_${item2.printPreviewBusinessName}`
|
471
|
+
};
|
472
|
+
});
|
473
|
+
item.children = [{
|
474
|
+
label: function() {
|
475
|
+
var _a, _b, _c;
|
476
|
+
try {
|
477
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.123")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.123")) || "\u5168\u90E8";
|
478
|
+
} catch (e) {
|
479
|
+
return "\u5168\u90E8";
|
480
|
+
}
|
481
|
+
}(),
|
482
|
+
key: "previewText_all"
|
483
|
+
}, ...list];
|
484
|
+
}
|
485
|
+
return item;
|
486
|
+
});
|
487
|
+
return aa;
|
488
|
+
}
|
446
489
|
return targetList;
|
447
490
|
};
|
448
491
|
const handleTypeChange = (name, key) => {
|
@@ -521,7 +564,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
521
564
|
} : {}
|
522
565
|
});
|
523
566
|
};
|
524
|
-
const getOnceParams = (curPrintParamList = [], templateCode) => {
|
567
|
+
const getOnceParams = (curPrintParamList = [], templateCode, name) => {
|
525
568
|
var _a, _b;
|
526
569
|
let params = {};
|
527
570
|
let obj = {};
|
@@ -533,9 +576,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
533
576
|
};
|
534
577
|
obj.datasetData[key] = datasetDataKeyVal;
|
535
578
|
} else {
|
579
|
+
const filterParamsList = name && name !== "all" ? curPrintParamList.filter((item) => item.printPreviewBusinessName === name) : curPrintParamList;
|
536
580
|
Object.keys(curPrintParamList[0]).forEach((v) => {
|
537
581
|
obj[v] = [];
|
538
|
-
|
582
|
+
filterParamsList.forEach((k) => {
|
539
583
|
if (!obj[v].includes(k[v])) {
|
540
584
|
obj[v].push(k[v]);
|
541
585
|
}
|
@@ -543,7 +587,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
543
587
|
obj[v] = obj[v].join(",");
|
544
588
|
});
|
545
589
|
}
|
546
|
-
|
590
|
+
const {
|
591
|
+
printPreviewBusinessName,
|
592
|
+
...realObj
|
593
|
+
} = obj;
|
594
|
+
params = Object.assign({}, JSON.parse(getPrintParams()), realObj, printCustomProps.value);
|
547
595
|
return JSON.stringify(params);
|
548
596
|
};
|
549
597
|
const handleClickPrintAll = () => {
|
@@ -634,9 +682,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
634
682
|
templateId,
|
635
683
|
params: curPrintParamList
|
636
684
|
}).then(() => {
|
637
|
-
var _a;
|
685
|
+
var _a, _b;
|
638
686
|
state.curPrintParamList = curPrintParamList;
|
639
687
|
const curPrintdlgshow = ((_a = printCustomProps.value) == null ? void 0 : _a.printdlgshow) || props.printdlgshow;
|
688
|
+
const curFormatIdObj = (_b = state == null ? void 0 : state.formatList) == null ? void 0 : _b.find((item) => item.id == formatId);
|
640
689
|
const queryParams = {
|
641
690
|
formatId,
|
642
691
|
iReportExecuteMode: state.iReportExecuteMode,
|
@@ -646,7 +695,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
646
695
|
printdlgshow: curPrintdlgshow,
|
647
696
|
signature: props.signature,
|
648
697
|
copies: props.printCopies,
|
649
|
-
svrUpdateIp: props.svrUpdateIp
|
698
|
+
svrUpdateIp: props.svrUpdateIp,
|
699
|
+
formatItem: curFormatIdObj
|
650
700
|
};
|
651
701
|
if (props.strategy === "MULTI") {
|
652
702
|
for (let i = 0; i < curPrintParamList.length; i++) {
|
@@ -676,7 +726,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
676
726
|
state.visible = false;
|
677
727
|
});
|
678
728
|
};
|
679
|
-
const handleClickPreview = async (curPrintParamList = [], templateCode, templateId, formatId) => {
|
729
|
+
const handleClickPreview = async (curPrintParamList = [], templateCode, templateId, formatId, name) => {
|
680
730
|
if (props.showLoading && getCurrentLoading())
|
681
731
|
return;
|
682
732
|
toggleExpandLoading(true, formatId);
|
@@ -685,9 +735,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
685
735
|
templateId,
|
686
736
|
params: curPrintParamList
|
687
737
|
}).then(() => {
|
738
|
+
var _a;
|
688
739
|
state.curPrintParamList = curPrintParamList;
|
689
740
|
const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), curPrintParamList[0], printCustomProps.value));
|
690
|
-
const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(curPrintParamList, templateCode);
|
741
|
+
const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(curPrintParamList, templateCode, name);
|
742
|
+
const curFormatIdObj = (_a = state == null ? void 0 : state.formatList) == null ? void 0 : _a.find((item) => item.id == formatId);
|
691
743
|
const queryParams = {
|
692
744
|
formatId,
|
693
745
|
templateId,
|
@@ -697,7 +749,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
697
749
|
params,
|
698
750
|
btnprint: props.btnprint,
|
699
751
|
signature: props.signature,
|
700
|
-
hideButtons: props.hidePreviewBtns
|
752
|
+
hideButtons: props.hidePreviewBtns,
|
753
|
+
formatItem: curFormatIdObj
|
701
754
|
};
|
702
755
|
printInstance.preview(queryParams, (res) => {
|
703
756
|
callLocalServicesSuccessCb(res, "preview");
|
@@ -822,6 +875,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
822
875
|
case "resetPrinter":
|
823
876
|
handleResetPrinter(tmpParam, templateCode, templateId, key);
|
824
877
|
break;
|
878
|
+
default: {
|
879
|
+
if (type.includes("previewText_")) {
|
880
|
+
const name = type.split("_")[1];
|
881
|
+
handleClickPreview(tmpParam, templateCode, templateId, key, name);
|
882
|
+
return;
|
883
|
+
}
|
884
|
+
break;
|
885
|
+
}
|
825
886
|
}
|
826
887
|
};
|
827
888
|
const handleClickOutside = () => {
|
@@ -930,6 +991,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
930
991
|
obj[params[keyName]] = defaultVal;
|
931
992
|
}
|
932
993
|
});
|
994
|
+
if (showPreviewDataList.value) {
|
995
|
+
obj.printPreviewBusinessName = paramObj.printPreviewBusinessName;
|
996
|
+
}
|
933
997
|
return obj;
|
934
998
|
};
|
935
999
|
const formatItemParam = ({
|
@@ -1039,8 +1103,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1039
1103
|
state.spinning = false;
|
1040
1104
|
return true;
|
1041
1105
|
};
|
1042
|
-
const registerShort = async () => {
|
1043
|
-
const keys = Object.keys(shortcutSettings.value);
|
1106
|
+
const registerShort = async (obj) => {
|
1107
|
+
const keys = Object.keys(obj || shortcutSettings.value);
|
1044
1108
|
if (keys.length > 0) {
|
1045
1109
|
for (let i = 0; i < keys.length; i++) {
|
1046
1110
|
const key = keys[i];
|
@@ -1157,6 +1221,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1157
1221
|
immediate: true
|
1158
1222
|
});
|
1159
1223
|
async function directPrint() {
|
1224
|
+
encapBrowserLog({
|
1225
|
+
type: "\u4E3B\u52A8\u8C03\u7528\u6253\u5370\u65B9\u6CD5"
|
1226
|
+
}, "PRINT-SDK");
|
1160
1227
|
await handleClickBtn(false);
|
1161
1228
|
handleClickPrintAll();
|
1162
1229
|
}
|
@@ -1181,7 +1248,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1181
1248
|
}
|
1182
1249
|
expose({
|
1183
1250
|
directPrint,
|
1184
|
-
handleShortcutStartAndStop
|
1251
|
+
handleShortcutStartAndStop,
|
1252
|
+
registerShort
|
1185
1253
|
});
|
1186
1254
|
return (_ctx, _cache) => {
|
1187
1255
|
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1, [createCommentVNode(" \u5916\u663E\u6309\u94AE\u96C6\u5408 "), createVNode(unref(NButtonGroup), {
|
@@ -1217,6 +1285,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1217
1285
|
}), createCommentVNode(" \u5916\u663E\u8BBE\u7F6E\u6309\u94AE "), outerPrintItems.value.length > 0 && outerPrintItems.value.length == unref(showSettingItems).length && unref(isShowOutSettingBtn) && unref(isPrintAllType) != 2 ? (openBlock(), createBlock(unref(NPopover), {
|
1218
1286
|
key: 0,
|
1219
1287
|
trigger: "click",
|
1288
|
+
placement: "bottom-start",
|
1220
1289
|
to: unref(positionElement),
|
1221
1290
|
"show-arrow": false,
|
1222
1291
|
show: downlistPopover.isOutSetting,
|
@@ -1293,6 +1362,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1293
1362
|
}, [createCommentVNode(" \u6253\u5370\u5168\u90E8\u6309\u94AE "), createVNode(unref(NPopover), {
|
1294
1363
|
trigger: "click",
|
1295
1364
|
"show-arrow": false,
|
1365
|
+
placement: "bottom-start",
|
1296
1366
|
to: unref(positionElement),
|
1297
1367
|
show: downlistPopover.oneShow,
|
1298
1368
|
onClickoutside: _cache[10] || (_cache[10] = ($event) => handleClickOutHide("oneShow"))
|
@@ -1365,6 +1435,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1365
1435
|
class: "print-lite",
|
1366
1436
|
onClick: _cache[5] || (_cache[5] = ($event) => handleTwoShow("isOutSetting"))
|
1367
1437
|
}, [createElementVNode("span", _hoisted_10, toDisplayString(option.label), 1), createVNode(unref(NIcon), {
|
1438
|
+
class: "print-li-icon",
|
1368
1439
|
color: outerPrintItems.value.length > 0 ? "#2563F4" : "",
|
1369
1440
|
component: unref(SettingsOutline),
|
1370
1441
|
size: "18"
|
@@ -1442,6 +1513,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1442
1513
|
onClickoutside: ($event) => handleClickOutHide(option.key)
|
1443
1514
|
}, {
|
1444
1515
|
trigger: withCtx(() => [createVNode(unref(NIcon), {
|
1516
|
+
class: "print-li-icon",
|
1445
1517
|
component: unref(ArrowForwardOutline),
|
1446
1518
|
size: "18",
|
1447
1519
|
onClick: ($event) => handleTwoShow(option.key)
|
@@ -1452,10 +1524,35 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1452
1524
|
key: operation.key,
|
1453
1525
|
onMouseenter: ($event) => handleTypeChange("twoMouseType", operation.key),
|
1454
1526
|
onMouseleave: _cache[8] || (_cache[8] = ($event) => handleTypeChange("twoMouseType", ""))
|
1455
|
-
}, [
|
1527
|
+
}, [operation.children ? (openBlock(), createBlock(unref(NPopover), {
|
1528
|
+
key: 0,
|
1529
|
+
trigger: "hover",
|
1530
|
+
"show-arrow": false,
|
1531
|
+
to: false,
|
1532
|
+
placement: "right-start",
|
1533
|
+
show: downlistPopover[operation.key]
|
1534
|
+
}, {
|
1535
|
+
trigger: withCtx(() => [createElementVNode("div", _hoisted_19, [createElementVNode("span", _hoisted_20, toDisplayString(operation.label), 1), createVNode(unref(NIcon), {
|
1536
|
+
component: unref(ArrowForward),
|
1537
|
+
size: "18"
|
1538
|
+
}, null, 8, ["component"])])]),
|
1539
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(operation.children, (previewBtn) => {
|
1540
|
+
return openBlock(), createElementBlock("div", {
|
1541
|
+
class: "print-li print-preview-item",
|
1542
|
+
key: previewBtn.key
|
1543
|
+
}, [createElementVNode("div", {
|
1544
|
+
class: "print-lite",
|
1545
|
+
style: {
|
1546
|
+
"background": "transparent"
|
1547
|
+
},
|
1548
|
+
onClick: ($event) => handleSelect(previewBtn.key, option, false)
|
1549
|
+
}, toDisplayString(previewBtn.label), 9, _hoisted_21)]);
|
1550
|
+
}), 128))]),
|
1551
|
+
_: 2
|
1552
|
+
}, 1032, ["show"])) : (openBlock(), createElementBlock("div", _hoisted_22, [createElementVNode("span", {
|
1456
1553
|
class: "label",
|
1457
1554
|
onClick: ($event) => handleSelect(operation.key, option, false)
|
1458
|
-
}, toDisplayString(operation.label), 9,
|
1555
|
+
}, toDisplayString(operation.label), 9, _hoisted_23)]))], 42, _hoisted_18);
|
1459
1556
|
}), 128))])]),
|
1460
1557
|
_: 2
|
1461
1558
|
}, 1032, ["show", "onClickoutside"])) : createCommentVNode("v-if", true)], 2)], 2112))], 42, _hoisted_9);
|
@@ -346,6 +346,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
346
346
|
formatId: state.currentFormatId,
|
347
347
|
templateId: getTemplateIdByFormatId.value
|
348
348
|
}).then(() => {
|
349
|
+
var _a2;
|
350
|
+
const curFormatIdObj = (_a2 = state == null ? void 0 : state.formatList) == null ? void 0 : _a2.find((item) => item.id == state.currentFormatId);
|
349
351
|
const queryParams = {
|
350
352
|
iReportExecuteMode: state.iReportExecuteMode,
|
351
353
|
number: state.number,
|
@@ -355,7 +357,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
355
357
|
printdlgshow: props.printdlgshow,
|
356
358
|
signature: props.signature,
|
357
359
|
copies: props.printCopies,
|
358
|
-
svrUpdateIp: props.svrUpdateIp
|
360
|
+
svrUpdateIp: props.svrUpdateIp,
|
361
|
+
formatItem: curFormatIdObj
|
359
362
|
};
|
360
363
|
if (props.strategy === "MULTI") {
|
361
364
|
for (let i = 0; i < state.printParams.length; i++) {
|
@@ -390,7 +393,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
390
393
|
formatId: state.currentFormatId,
|
391
394
|
templateId: getTemplateIdByFormatId.value
|
392
395
|
}).then(() => {
|
396
|
+
var _a2;
|
393
397
|
const params = props.strategy === "MULTI" ? getPrintParams() : getOnceParams();
|
398
|
+
const curFormatIdObj = (_a2 = state == null ? void 0 : state.formatList) == null ? void 0 : _a2.find((item) => item.id == state.currentFormatId);
|
394
399
|
const queryParams = {
|
395
400
|
formatId: state.currentFormatId,
|
396
401
|
iReportExecuteMode: state.iReportExecuteMode,
|
@@ -400,7 +405,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
400
405
|
params,
|
401
406
|
btnprint: props.btnprint,
|
402
407
|
signature: props.signature,
|
403
|
-
hideButtons: props.hidePreviewBtns
|
408
|
+
hideButtons: props.hidePreviewBtns,
|
409
|
+
formatItem: curFormatIdObj
|
404
410
|
};
|
405
411
|
printInstance.preview(queryParams, (res) => {
|
406
412
|
callLocalServicesSuccessCb(res, "preview");
|
@@ -435,7 +441,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
435
441
|
params,
|
436
442
|
signature: props.signature
|
437
443
|
};
|
438
|
-
printInstance.downloadPDF(queryParams, (res) => callLocalServicesSuccessCb(res, "
|
444
|
+
printInstance.downloadPDF(queryParams, (res) => callLocalServicesSuccessCb(res, "download"), callLocalServicesErrorCb);
|
439
445
|
}).catch(() => {
|
440
446
|
prevFnError("download");
|
441
447
|
state.spinning = false;
|
@@ -41,7 +41,7 @@ export declare class Print {
|
|
41
41
|
_queryBase64ServicesPrint(params: AnyObject): Promise<any>;
|
42
42
|
_callPrintWithFile(queryParams: AnyObject): Promise<any>;
|
43
43
|
_handleMonitorNotify(message: string | unknown): void;
|
44
|
-
_handleResult(data: AnyObject, errorCallbackFn?: AnyFn, cancelCallbackFn?: AnyFn): false | AnyObject;
|
44
|
+
_handleResult(data: AnyObject, errorCallbackFn?: AnyFn, cancelCallbackFn?: AnyFn): false | AnyObject | undefined;
|
45
45
|
_handleResultTest(result: unknown, errorCallbackFn?: AnyFn): boolean;
|
46
46
|
_handleEventQueryPrintData(templateId: string, formatId: string, params: AnyObject, messageTimeout: number, errorCallbackFn?: AnyFn): Promise<false | {
|
47
47
|
file: any;
|
@@ -66,9 +66,9 @@ export declare class Print {
|
|
66
66
|
_queryPrintForPdf(templateId: string, formatId: string, params: string | undefined, authorizationKey: String): Promise<any>;
|
67
67
|
_browserPrint(result: AnyObject, mode: string): Promise<string | void>;
|
68
68
|
_base64ToBlob(fileBase64: string, fileType: string): Blob;
|
69
|
-
preview({ iReportExecuteMode, hideButtons, templateId, number, formatId: originFormatId, params, paramsArr, authorizationKey, signature, btnprint, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
|
69
|
+
preview({ iReportExecuteMode, hideButtons, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, signature, btnprint, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
|
70
70
|
printSync(data: AnyObject[], successCallbackFn: AnyFn, errorCallbackFn: AnyFn): Promise<void>;
|
71
|
-
printDirect({ iReportExecuteMode, templateId, number, formatId: originFormatId, params, paramsArr, authorizationKey, print, signature, printdlgshow, nobillnode, copies, svrUpdateIp, isDownloadFile, messageTimeout }: AnyObject, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn, mode?: string): Promise<false | undefined>;
|
71
|
+
printDirect({ iReportExecuteMode, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, print, signature, printdlgshow, nobillnode, copies, svrUpdateIp, isDownloadFile, messageTimeout }: AnyObject, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn, mode?: string): Promise<false | undefined>;
|
72
72
|
printToHiPrint({ templateId, formatId, params, authorizationKey }: any, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn): Promise<any>;
|
73
73
|
private _downloadPDF;
|
74
74
|
/**
|