cnhis-design-vue 3.3.3-beta.7 → 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 +40 -5
- 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 +7 -2
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +7 -2
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +10 -3
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +105 -11
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +5 -2
- package/es/components/button-print/src/utils/print.d.ts +1 -1
- package/es/components/button-print/src/utils/print.js +7 -3
- 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 +6 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +6 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +38 -1
- 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 +2 -1
- 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/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 +53 -3
- package/es/components/scale-view/src/ScaleView.vue.d.ts +56 -5
- package/es/components/scale-view/src/ScaleView.vue2.js +79 -4
- 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 +3 -0
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +26 -2
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +3 -0
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +27 -6
- 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 +45 -3
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +16 -2
- 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 +18 -3
- 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/select-person/index.d.ts +792 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +433 -273
- package/es/components/select-person/src/SelectPerson.vue.js +6 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +788 -0
- package/es/components/select-person/src/SelectPersonRole.vue.js +2 -2
- 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 +25 -2
- 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
@@ -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>;
|
@@ -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: {
|
@@ -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>;
|
@@ -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 = () => {
|
@@ -678,7 +726,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
678
726
|
state.visible = false;
|
679
727
|
});
|
680
728
|
};
|
681
|
-
const handleClickPreview = async (curPrintParamList = [], templateCode, templateId, formatId) => {
|
729
|
+
const handleClickPreview = async (curPrintParamList = [], templateCode, templateId, formatId, name) => {
|
682
730
|
if (props.showLoading && getCurrentLoading())
|
683
731
|
return;
|
684
732
|
toggleExpandLoading(true, formatId);
|
@@ -687,9 +735,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
687
735
|
templateId,
|
688
736
|
params: curPrintParamList
|
689
737
|
}).then(() => {
|
738
|
+
var _a;
|
690
739
|
state.curPrintParamList = curPrintParamList;
|
691
740
|
const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), curPrintParamList[0], printCustomProps.value));
|
692
|
-
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);
|
693
743
|
const queryParams = {
|
694
744
|
formatId,
|
695
745
|
templateId,
|
@@ -699,7 +749,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
699
749
|
params,
|
700
750
|
btnprint: props.btnprint,
|
701
751
|
signature: props.signature,
|
702
|
-
hideButtons: props.hidePreviewBtns
|
752
|
+
hideButtons: props.hidePreviewBtns,
|
753
|
+
formatItem: curFormatIdObj
|
703
754
|
};
|
704
755
|
printInstance.preview(queryParams, (res) => {
|
705
756
|
callLocalServicesSuccessCb(res, "preview");
|
@@ -824,6 +875,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
824
875
|
case "resetPrinter":
|
825
876
|
handleResetPrinter(tmpParam, templateCode, templateId, key);
|
826
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
|
+
}
|
827
886
|
}
|
828
887
|
};
|
829
888
|
const handleClickOutside = () => {
|
@@ -932,6 +991,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
932
991
|
obj[params[keyName]] = defaultVal;
|
933
992
|
}
|
934
993
|
});
|
994
|
+
if (showPreviewDataList.value) {
|
995
|
+
obj.printPreviewBusinessName = paramObj.printPreviewBusinessName;
|
996
|
+
}
|
935
997
|
return obj;
|
936
998
|
};
|
937
999
|
const formatItemParam = ({
|
@@ -1159,6 +1221,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1159
1221
|
immediate: true
|
1160
1222
|
});
|
1161
1223
|
async function directPrint() {
|
1224
|
+
encapBrowserLog({
|
1225
|
+
type: "\u4E3B\u52A8\u8C03\u7528\u6253\u5370\u65B9\u6CD5"
|
1226
|
+
}, "PRINT-SDK");
|
1162
1227
|
await handleClickBtn(false);
|
1163
1228
|
handleClickPrintAll();
|
1164
1229
|
}
|
@@ -1220,6 +1285,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1220
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), {
|
1221
1286
|
key: 0,
|
1222
1287
|
trigger: "click",
|
1288
|
+
placement: "bottom-start",
|
1223
1289
|
to: unref(positionElement),
|
1224
1290
|
"show-arrow": false,
|
1225
1291
|
show: downlistPopover.isOutSetting,
|
@@ -1296,6 +1362,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1296
1362
|
}, [createCommentVNode(" \u6253\u5370\u5168\u90E8\u6309\u94AE "), createVNode(unref(NPopover), {
|
1297
1363
|
trigger: "click",
|
1298
1364
|
"show-arrow": false,
|
1365
|
+
placement: "bottom-start",
|
1299
1366
|
to: unref(positionElement),
|
1300
1367
|
show: downlistPopover.oneShow,
|
1301
1368
|
onClickoutside: _cache[10] || (_cache[10] = ($event) => handleClickOutHide("oneShow"))
|
@@ -1368,6 +1435,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1368
1435
|
class: "print-lite",
|
1369
1436
|
onClick: _cache[5] || (_cache[5] = ($event) => handleTwoShow("isOutSetting"))
|
1370
1437
|
}, [createElementVNode("span", _hoisted_10, toDisplayString(option.label), 1), createVNode(unref(NIcon), {
|
1438
|
+
class: "print-li-icon",
|
1371
1439
|
color: outerPrintItems.value.length > 0 ? "#2563F4" : "",
|
1372
1440
|
component: unref(SettingsOutline),
|
1373
1441
|
size: "18"
|
@@ -1445,6 +1513,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1445
1513
|
onClickoutside: ($event) => handleClickOutHide(option.key)
|
1446
1514
|
}, {
|
1447
1515
|
trigger: withCtx(() => [createVNode(unref(NIcon), {
|
1516
|
+
class: "print-li-icon",
|
1448
1517
|
component: unref(ArrowForwardOutline),
|
1449
1518
|
size: "18",
|
1450
1519
|
onClick: ($event) => handleTwoShow(option.key)
|
@@ -1455,10 +1524,35 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1455
1524
|
key: operation.key,
|
1456
1525
|
onMouseenter: ($event) => handleTypeChange("twoMouseType", operation.key),
|
1457
1526
|
onMouseleave: _cache[8] || (_cache[8] = ($event) => handleTypeChange("twoMouseType", ""))
|
1458
|
-
}, [
|
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", {
|
1459
1553
|
class: "label",
|
1460
1554
|
onClick: ($event) => handleSelect(operation.key, option, false)
|
1461
|
-
}, toDisplayString(operation.label), 9,
|
1555
|
+
}, toDisplayString(operation.label), 9, _hoisted_23)]))], 42, _hoisted_18);
|
1462
1556
|
}), 128))])]),
|
1463
1557
|
_: 2
|
1464
1558
|
}, 1032, ["show", "onClickoutside"])) : createCommentVNode("v-if", true)], 2)], 2112))], 42, _hoisted_9);
|
@@ -393,7 +393,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
393
393
|
formatId: state.currentFormatId,
|
394
394
|
templateId: getTemplateIdByFormatId.value
|
395
395
|
}).then(() => {
|
396
|
+
var _a2;
|
396
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);
|
397
399
|
const queryParams = {
|
398
400
|
formatId: state.currentFormatId,
|
399
401
|
iReportExecuteMode: state.iReportExecuteMode,
|
@@ -403,7 +405,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
403
405
|
params,
|
404
406
|
btnprint: props.btnprint,
|
405
407
|
signature: props.signature,
|
406
|
-
hideButtons: props.hidePreviewBtns
|
408
|
+
hideButtons: props.hidePreviewBtns,
|
409
|
+
formatItem: curFormatIdObj
|
407
410
|
};
|
408
411
|
printInstance.preview(queryParams, (res) => {
|
409
412
|
callLocalServicesSuccessCb(res, "preview");
|
@@ -438,7 +441,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
438
441
|
params,
|
439
442
|
signature: props.signature
|
440
443
|
};
|
441
|
-
printInstance.downloadPDF(queryParams, (res) => callLocalServicesSuccessCb(res, "
|
444
|
+
printInstance.downloadPDF(queryParams, (res) => callLocalServicesSuccessCb(res, "download"), callLocalServicesErrorCb);
|
442
445
|
}).catch(() => {
|
443
446
|
prevFnError("download");
|
444
447
|
state.spinning = false;
|
@@ -66,7 +66,7 @@ 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
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>;
|
@@ -753,6 +753,7 @@ class Print {
|
|
753
753
|
templateId,
|
754
754
|
number,
|
755
755
|
formatId: originFormatId,
|
756
|
+
formatItem,
|
756
757
|
params = "",
|
757
758
|
paramsArr,
|
758
759
|
authorizationKey,
|
@@ -785,6 +786,8 @@ class Print {
|
|
785
786
|
if (!this._handleResultTest(testResult, errorCallbackFn))
|
786
787
|
return false;
|
787
788
|
try {
|
789
|
+
const hideButtonsValue = hideButtons ? hideButtons : (formatItem == null ? void 0 : formatItem.previewCanExport) === void 0 || (formatItem == null ? void 0 : formatItem.previewCanExport) ? void 0 : "Export";
|
790
|
+
const btnprintValue = btnprint != "1" ? btnprint : (formatItem == null ? void 0 : formatItem.previewCanPrint) === false ? "0" : "1";
|
788
791
|
const result = await this._handleEventDirect({
|
789
792
|
templateId,
|
790
793
|
number,
|
@@ -793,8 +796,8 @@ class Print {
|
|
793
796
|
paramsArr,
|
794
797
|
cmdid: this.isRemote ? PRINT_CMD_ID : PREVIEW_CMD_ID,
|
795
798
|
signature,
|
796
|
-
btnprint,
|
797
|
-
hideButtons,
|
799
|
+
btnprint: btnprintValue,
|
800
|
+
hideButtons: hideButtonsValue,
|
798
801
|
messageTimeout
|
799
802
|
});
|
800
803
|
const handledResult = this._handleResult(result, errorCallbackFn);
|
@@ -983,6 +986,7 @@ class Print {
|
|
983
986
|
}];
|
984
987
|
params = "";
|
985
988
|
}
|
989
|
+
const printdlgshowValue = printdlgshow != "0" ? printdlgshow : (formatItem == null ? void 0 : formatItem.showPrintDialog) ? "1" : "0";
|
986
990
|
const result = await this._handleEventDirect({
|
987
991
|
templateId,
|
988
992
|
number,
|
@@ -992,7 +996,7 @@ class Print {
|
|
992
996
|
cmdid: PRINT_CMD_ID,
|
993
997
|
print,
|
994
998
|
signature,
|
995
|
-
printdlgshow,
|
999
|
+
printdlgshow: printdlgshowValue,
|
996
1000
|
nobillnode,
|
997
1001
|
copies,
|
998
1002
|
svrUpdateIp,
|
@@ -1 +1 @@
|
|
1
|
-
.dropdown-button{border-color:#d5d5d5!important;color:#212121;padding-right:0}.dropdown-button .n-button__content{height:100%}.dropdown-button .n-button__content .n-icon{align-items:center;display:flex;height:100%;justify-content:center;padding-right:10px;width:30px}.c-dropdown .n-dropdown-menu-wrapper span.active{color:#5585f5}.login-form-button{border-radius:24px;color:#fff;font-size:16px;height:50px;width:100%}.login-form-button-print{padding-top:15px}.login-form-button-print .n-input{border-radius:6px;color:#757575;font-size:14px;height:50px;line-height:50px}.c-button-print-modal .n-form-item-feedback-wrapper{display:none}.c-button-preview-modal{max-width:none!important}.c-button-preview-modal .n-dialog__content{height:98%}.newprint-button-component .icon-select{padding:0 8px!important}.newprint-button-poperOver{border-radius:3px;overflow-y:auto}.newprint-button-poperOver .bold{font-weight:700}.newprint-button-poperOver .isDisabled{color:#999;cursor:default}.newprint-button-poperOver .print-li{overflow:hidden}.newprint-button-poperOver .print-li .n-divider{margin-bottom:6px;margin-top:6px}.newprint-button-poperOver .print-li .print-lite{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:32px;justify-content:space-between;margin:3px 0}.newprint-button-poperOver .print-li .print-lite .label{padding:0 8px;white-space:nowrap}.newprint-button-poperOver .print-li .print-lite .n-icon{align-items:center;border-radius:0 3px 3px 0;display:flex;height:100%;justify-content:center;width:30px}.newprint-button-poperOver .print-li .print-lite .n-checkbox{white-space:nowrap}.newprint-button-poperOver .print-li.active{color:#2563f4}.newprint-button-poperOver .print-li.active .print-lite{background:rgba(37,99,244,.1)}.newprint-button-poperOver .print-li.active .
|
1
|
+
.dropdown-button{border-color:#d5d5d5!important;color:#212121;padding-right:0}.dropdown-button .n-button__content{height:100%}.dropdown-button .n-button__content .n-icon{align-items:center;display:flex;height:100%;justify-content:center;padding-right:10px;width:30px}.c-dropdown .n-dropdown-menu-wrapper span.active{color:#5585f5}.login-form-button{border-radius:24px;color:#fff;font-size:16px;height:50px;width:100%}.login-form-button-print{padding-top:15px}.login-form-button-print .n-input{border-radius:6px;color:#757575;font-size:14px;height:50px;line-height:50px}.c-button-print-modal .n-form-item-feedback-wrapper{display:none}.c-button-preview-modal{max-width:none!important}.c-button-preview-modal .n-dialog__content{height:98%}.newprint-button-component .icon-select{padding:0 8px!important}.newprint-button-poperOver{border-radius:3px;overflow-y:auto}.newprint-button-poperOver .bold{font-weight:700}.newprint-button-poperOver .isDisabled{color:#999;cursor:default}.newprint-button-poperOver .print-li{overflow:hidden}.newprint-button-poperOver .print-li .n-divider{margin-bottom:6px;margin-top:6px}.newprint-button-poperOver .print-li .print-lite{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:32px;justify-content:space-between;margin:3px 0;white-space:nowrap}.newprint-button-poperOver .print-li .print-lite .label{padding:0 8px;white-space:nowrap}.newprint-button-poperOver .print-li .print-lite .n-icon{align-items:center;border-radius:0 3px 3px 0;display:flex;height:100%;justify-content:center;width:30px}.newprint-button-poperOver .print-li .print-lite .n-checkbox{white-space:nowrap}.newprint-button-poperOver .print-li.active{color:#2563f4}.newprint-button-poperOver .print-li.active .print-lite{background:rgba(37,99,244,.1)}.newprint-button-poperOver .print-li.active .print-li-icon{background:rgba(37,99,244,.15)}.newprint-button-poperOver .print-li .print-preview-item:hover{color:#2563f4}.newprint-button-outer{align-items:center;display:flex;overflow-x:auto}.newprint-button-outer .outButtonGroup .isPrintDisabled .n-button__border{border-right-width:0!important}.newprint-button-outer .outButtonGroup .n-button.n-button--disabled+.n-button.n-button--default-type:not(.n-button--disabled) .n-button__border{border-left-width:1px!important}.newprint-button-outer .outerLastButton .n-button__border{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}.newprint-button-outer .outerLastButton:hover .n-button__state-border{border-bottom-right-radius:0;border-top-right-radius:0}.newprint-button-outer .printAllLeftCls .n-button__border,.newprint-button-outer .printAllLeftCls:hover .n-button__state-border{border-bottom-left-radius:0;border-top-left-radius:0}.newprint-button-outer__shortcut{color:#76797f}
|
@@ -35,6 +35,10 @@ export declare const CallbackMaps: Map<string, {
|
|
35
35
|
businessFormatter: {
|
36
36
|
type: import("vue").PropType<import("../../../../../components/form-render").FormBusinessFormatter>;
|
37
37
|
};
|
38
|
+
nominalAge: {
|
39
|
+
type: BooleanConstructor;
|
40
|
+
default: boolean;
|
41
|
+
};
|
38
42
|
schema: {
|
39
43
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
40
44
|
[key: symbol]: any;
|
@@ -207,6 +211,7 @@ export declare const CallbackMaps: Map<string, {
|
|
207
211
|
type: BooleanConstructor;
|
208
212
|
};
|
209
213
|
lazyRender: BooleanConstructor;
|
214
|
+
linebreaksToTitle: BooleanConstructor;
|
210
215
|
dialogFn: {};
|
211
216
|
}, {
|
212
217
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -239,6 +244,10 @@ export declare const CallbackMaps: Map<string, {
|
|
239
244
|
businessFormatter: {
|
240
245
|
type: import("vue").PropType<import("../../../../../components/form-render").FormBusinessFormatter>;
|
241
246
|
};
|
247
|
+
nominalAge: {
|
248
|
+
type: BooleanConstructor;
|
249
|
+
default: boolean;
|
250
|
+
};
|
242
251
|
schema: {
|
243
252
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
244
253
|
[key: symbol]: any;
|
@@ -411,6 +420,7 @@ export declare const CallbackMaps: Map<string, {
|
|
411
420
|
type: BooleanConstructor;
|
412
421
|
};
|
413
422
|
lazyRender: BooleanConstructor;
|
423
|
+
linebreaksToTitle: BooleanConstructor;
|
414
424
|
dialogFn: {};
|
415
425
|
}>> & {
|
416
426
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
@@ -588,6 +598,7 @@ export declare const CallbackMaps: Map<string, {
|
|
588
598
|
feedbackType: "default" | "tooltip";
|
589
599
|
fixMemoLeak: boolean;
|
590
600
|
lazyRender: boolean;
|
601
|
+
linebreaksToTitle: boolean;
|
591
602
|
dialogFn: any;
|
592
603
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
593
604
|
[key: symbol]: any;
|
@@ -804,6 +815,10 @@ export declare const CallbackMaps: Map<string, {
|
|
804
815
|
businessFormatter: {
|
805
816
|
type: import("vue").PropType<import("../../../../../components/form-render").FormBusinessFormatter>;
|
806
817
|
};
|
818
|
+
nominalAge: {
|
819
|
+
type: BooleanConstructor;
|
820
|
+
default: boolean;
|
821
|
+
};
|
807
822
|
schema: {
|
808
823
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
809
824
|
[key: symbol]: any;
|
@@ -976,6 +991,7 @@ export declare const CallbackMaps: Map<string, {
|
|
976
991
|
type: BooleanConstructor;
|
977
992
|
};
|
978
993
|
lazyRender: BooleanConstructor;
|
994
|
+
linebreaksToTitle: BooleanConstructor;
|
979
995
|
dialogFn: {};
|
980
996
|
}>> & {
|
981
997
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
@@ -1010,6 +1026,8 @@ export declare const CallbackMaps: Map<string, {
|
|
1010
1026
|
feedbackType: "default" | "tooltip";
|
1011
1027
|
fixMemoLeak: boolean;
|
1012
1028
|
lazyRender: boolean;
|
1029
|
+
linebreaksToTitle: boolean;
|
1030
|
+
nominalAge: boolean;
|
1013
1031
|
operationalFormInit: boolean;
|
1014
1032
|
incrementalRender: boolean;
|
1015
1033
|
}>;
|
@@ -208,7 +208,14 @@ const ageCodeMap = {
|
|
208
208
|
return "\u5468";
|
209
209
|
}
|
210
210
|
}(),
|
211
|
-
N:
|
211
|
+
N: function() {
|
212
|
+
var _a, _b, _c;
|
213
|
+
try {
|
214
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.638")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.638")) || "\u5206\u949F";
|
215
|
+
} catch (e) {
|
216
|
+
return "\u5206\u949F";
|
217
|
+
}
|
218
|
+
}()
|
212
219
|
};
|
213
220
|
function birthdayToAge(birthday) {
|
214
221
|
const {
|