cnhis-design-vue 3.4.0-beta.9 → 3.4.0-release.7
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/_virtual/_virtual_i18n-methods.js +5 -1
- package/es/components/audio-sdk/index.d.ts +4 -4
- package/es/components/audio-sdk/src/Index.vue.d.ts +4 -4
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +4 -4
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +4 -4
- package/es/components/base-search/index.d.ts +34 -0
- package/es/components/base-search/src/index.vue.d.ts +34 -0
- package/es/components/base-search/src/index.vue2.js +9 -1
- package/es/components/button-print/index.d.ts +32 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +32 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +4 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +77 -50
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +11 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +35 -0
- package/es/components/button-print/src/utils/print.d.ts +2 -1
- package/es/components/button-print/src/utils/print.js +13 -8
- package/es/components/callback/src/components/render/popupMaps.d.ts +110 -222
- package/es/components/classification/index.d.ts +123 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +123 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +123 -0
- package/es/components/classification/src/index.vue.d.ts +123 -0
- package/es/components/classification/src/index.vue2.js +7 -0
- package/es/components/date-picker/index.d.ts +41 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +41 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +34 -4
- package/es/components/expand-field/index.d.ts +31 -0
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +31 -0
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +31 -0
- package/es/components/expand-field/src/components/form.vue.d.ts +31 -0
- package/es/components/expand-field/src/index.vue.d.ts +31 -0
- package/es/components/fabric-chart/index.d.ts +3 -3
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +3 -3
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -0
- package/es/components/fabric-chart/src/components/PopupMenu.d.ts +4 -4
- package/es/components/fabric-chart/src/components/PopupMenu.js +57 -39
- package/es/components/fabric-chart/src/constants/index.d.ts +19 -5
- package/es/components/fabric-chart/src/constants/index.js +26 -11
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +119 -193
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +69 -117
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +18 -12
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +61 -33
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +86 -120
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -0
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +65 -113
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +63 -37
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +31 -14
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +21 -14
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +152 -208
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -9
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +138 -229
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +16 -14
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +195 -273
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -0
- package/es/components/fabric-chart/src/interface.d.ts +15 -1
- package/es/components/fabric-chart/src/utils/eventBus.d.ts +2 -0
- package/es/components/fabric-chart/src/utils/eventBus.js +5 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.js +2 -10
- package/es/components/fabric-chart/style/index.css +1 -1
- package/es/components/field-editor/index.d.ts +1 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +1 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +83 -1
- package/es/components/field-set/src/FieldColor.vue2.js +2 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +2 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
- package/es/components/field-set/src/FieldSet.vue2.js +4 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +41 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +82 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +41 -0
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue2.js +1 -0
- package/es/components/form-config/index.d.ts +24 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +24 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +19 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +48 -24
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1 -0
- package/es/components/form-config/src/constants/index.d.ts +2 -0
- package/es/components/form-config/src/constants/index.js +2 -0
- package/es/components/form-config/src/hooks/useConfigurationField.js +20 -3
- package/es/components/form-render/index.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -0
- 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/radio_checkbox.js +3 -2
- package/es/components/form-render/src/components/renderer/textarea.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/textarea.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +8 -0
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.d.ts +1 -1
- package/es/components/form-render/src/utils/index.js +5 -2
- package/es/components/iho-chat/index.d.ts +2785 -302
- package/es/components/iho-chat/src/Index.vue.d.ts +2785 -302
- package/es/components/iho-chat/src/Index.vue2.js +5 -3
- package/es/components/iho-chat/src/api/index.d.ts +89 -16
- package/es/components/iho-chat/src/api/index.js +8 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +104 -22
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +191 -29
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +191 -29
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +3 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +796 -101
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +611 -51
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +27 -28
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +217 -14
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +175 -10
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +2 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +197 -29
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +48 -11
- package/es/components/iho-chat/src/components/ContextMenu.js +7 -10
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +88 -7
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.d.ts +158 -0
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.js +6 -0
- package/es/components/iho-chat/src/components/MessageMarkdown.vue2.js +51 -0
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +176 -14
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +192 -29
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +2 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +91 -8
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +134 -11
- package/es/components/iho-chat/src/components/Video.vue.d.ts +89 -8
- package/es/components/iho-chat/src/components/userItemRender.js +2 -1
- package/es/components/iho-chat/src/constants/index.d.ts +2 -1
- package/es/components/iho-chat/src/constants/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +374 -27
- package/es/components/iho-chat/src/hooks/useData.js +31 -10
- package/es/components/iho-chat/src/hooks/useStreamOutput.d.ts +6 -0
- package/es/components/iho-chat/src/hooks/useStreamOutput.js +100 -0
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +89 -7
- package/es/components/iho-chat/src/hooks/useWebSocket.js +14 -4
- package/es/components/iho-chat/src/types/index.d.ts +39 -7
- package/es/components/iho-chat/src/utils/index.d.ts +2 -1
- package/es/components/iho-chat/src/utils/sseClient.d.ts +22 -0
- package/es/components/iho-chat/src/utils/sseClient.js +97 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +109 -222
- package/es/components/iho-table/src/IhoTable.vue.d.ts +109 -222
- package/es/components/iho-table/src/IhoTable.vue2.js +23 -14
- package/es/components/iho-table/src/constants/index.d.ts +3 -3
- package/es/components/iho-table/src/constants/index.js +0 -21
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +39 -60
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +43 -4
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +22 -8
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +7 -2
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +41 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +25 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +8 -2
- package/es/components/iho-table/src/types/index.d.ts +3 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +46 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +46 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +41 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +2 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +41 -2
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +20 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +20 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +9 -6
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +42 -2
- package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -0
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +9 -3
- package/es/components/scale-view/src/hooks/use-event.js +56 -22
- package/es/components/select-person/index.d.ts +31 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +14 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +38 -9
- package/es/components/select-person/src/index.vue.d.ts +31 -0
- package/es/components/select-person/src/index.vue2.js +4 -0
- package/es/components/select-person/src/utils/index.js +11 -9
- package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +3 -0
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +9 -3
- package/es/components/shortcut-setter/index.d.ts +2 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -0
- package/es/components/table-export-field/index.d.ts +6 -0
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +2 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +49 -18
- package/es/components/table-export-field/src/index.vue.d.ts +6 -0
- package/es/components/table-export-field/src/types/index.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +41 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +82 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +82 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +82 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +43 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +10 -2
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +43 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +10 -2
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +168 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +9 -9
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +168 -0
- package/es/components/table-filter/src/constants/index.d.ts +1 -0
- package/es/components/table-filter/src/constants/index.js +4 -1
- package/es/shared/components/CancelRadio/CancelRadio.js +3 -1
- package/es/shared/components/Ellipsis/Ellipsis.d.ts +12 -0
- package/es/shared/components/Ellipsis/Ellipsis.js +86 -0
- package/es/shared/components/Ellipsis/index.d.ts +2 -0
- package/es/shared/components/Ellipsis/index.js +2 -0
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +15 -0
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +24 -10
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +3 -2
- package/es/shared/utils/business.js +16 -0
- package/es/shared/utils/ho-edge.d.ts +12 -0
- package/es/shared/utils/ho-edge.js +58 -0
- package/package.json +3 -3
|
@@ -22,70 +22,77 @@ const _hoisted_2 = {
|
|
|
22
22
|
class: "newprint-button-outer__shortcut"
|
|
23
23
|
};
|
|
24
24
|
const _hoisted_3 = {
|
|
25
|
-
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "label bold",
|
|
27
|
+
style: {
|
|
28
|
+
"margin-right": "8px"
|
|
29
|
+
}
|
|
26
30
|
};
|
|
27
31
|
const _hoisted_4 = {
|
|
28
|
-
class: "
|
|
32
|
+
class: "print-lite"
|
|
29
33
|
};
|
|
30
34
|
const _hoisted_5 = {
|
|
31
|
-
class: "
|
|
35
|
+
class: "label bold"
|
|
32
36
|
};
|
|
33
37
|
const _hoisted_6 = {
|
|
34
|
-
class: "print-
|
|
38
|
+
class: "print-li"
|
|
35
39
|
};
|
|
36
40
|
const _hoisted_7 = {
|
|
41
|
+
class: "print-lite"
|
|
42
|
+
};
|
|
43
|
+
const _hoisted_8 = {
|
|
37
44
|
key: 0,
|
|
38
45
|
class: "newprint-button-outer__shortcut"
|
|
39
46
|
};
|
|
40
|
-
const
|
|
41
|
-
const
|
|
47
|
+
const _hoisted_9 = ["onMouseenter", "onClick"];
|
|
48
|
+
const _hoisted_10 = {
|
|
42
49
|
class: "label bold"
|
|
43
50
|
};
|
|
44
|
-
const
|
|
51
|
+
const _hoisted_11 = {
|
|
45
52
|
class: "print-lite",
|
|
46
53
|
style: {
|
|
47
54
|
"background": "transparent"
|
|
48
55
|
}
|
|
49
56
|
};
|
|
50
|
-
const
|
|
57
|
+
const _hoisted_12 = {
|
|
51
58
|
class: "label bold"
|
|
52
59
|
};
|
|
53
|
-
const
|
|
60
|
+
const _hoisted_13 = {
|
|
54
61
|
class: "print-li"
|
|
55
62
|
};
|
|
56
|
-
const
|
|
63
|
+
const _hoisted_14 = {
|
|
57
64
|
class: "print-lite",
|
|
58
65
|
style: {
|
|
59
66
|
"background": "transparent"
|
|
60
67
|
}
|
|
61
68
|
};
|
|
62
|
-
const
|
|
63
|
-
const
|
|
69
|
+
const _hoisted_15 = ["onClick"];
|
|
70
|
+
const _hoisted_16 = {
|
|
64
71
|
key: 0,
|
|
65
72
|
class: "newprint-button-outer__shortcut"
|
|
66
73
|
};
|
|
67
|
-
const
|
|
74
|
+
const _hoisted_17 = {
|
|
68
75
|
class: "newprint-button-poperOver"
|
|
69
76
|
};
|
|
70
|
-
const
|
|
71
|
-
const
|
|
77
|
+
const _hoisted_18 = ["onMouseenter"];
|
|
78
|
+
const _hoisted_19 = {
|
|
72
79
|
class: "print-lite",
|
|
73
80
|
style: {
|
|
74
81
|
"background": "transparent"
|
|
75
82
|
}
|
|
76
83
|
};
|
|
77
|
-
const
|
|
84
|
+
const _hoisted_20 = {
|
|
78
85
|
class: "label"
|
|
79
86
|
};
|
|
80
|
-
const
|
|
81
|
-
const
|
|
87
|
+
const _hoisted_21 = ["onClick"];
|
|
88
|
+
const _hoisted_22 = {
|
|
82
89
|
key: 1,
|
|
83
90
|
class: "print-lite",
|
|
84
91
|
style: {
|
|
85
92
|
"background": "transparent"
|
|
86
93
|
}
|
|
87
94
|
};
|
|
88
|
-
const
|
|
95
|
+
const _hoisted_23 = ["onClick"];
|
|
89
96
|
const downloadPdfCode = "RY7.2.21.1.M2.G94181E";
|
|
90
97
|
const formatEditTextCode = "RY7.2.21.1.M2.G33633A";
|
|
91
98
|
const resetPrintButtonCode = "RY7.2.21.1.M2.G99314S";
|
|
@@ -193,7 +200,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
193
200
|
buttonProps: {},
|
|
194
201
|
showMaxHeight: null,
|
|
195
202
|
initLoadPrintParams: false,
|
|
196
|
-
showPreviewDataList: false
|
|
203
|
+
showPreviewDataList: false,
|
|
204
|
+
noShowOutSettingText: false
|
|
197
205
|
})
|
|
198
206
|
},
|
|
199
207
|
svrUpdateIp: {
|
|
@@ -341,6 +349,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
341
349
|
var _a;
|
|
342
350
|
return (_a = props.newPrintSetting) == null ? void 0 : _a.showPreviewDataList;
|
|
343
351
|
});
|
|
352
|
+
const noShowOutSettingText = computed(() => {
|
|
353
|
+
var _a;
|
|
354
|
+
return (_a = props.newPrintSetting) == null ? void 0 : _a.noShowOutSettingText;
|
|
355
|
+
});
|
|
344
356
|
const printAllShortcut = computed(() => {
|
|
345
357
|
var _a, _b;
|
|
346
358
|
const keys = Object.keys(shortcutSettings.value);
|
|
@@ -617,14 +629,31 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
617
629
|
return state.spinning;
|
|
618
630
|
};
|
|
619
631
|
const handleOneTypePrint = (templateCode, templateId, formatId, isOuterClick) => {
|
|
620
|
-
|
|
621
|
-
|
|
632
|
+
const tmpParam = state.printParams[templateCode];
|
|
633
|
+
props.prevPrintFn({
|
|
634
|
+
templateId,
|
|
635
|
+
formatId,
|
|
636
|
+
params: tmpParam
|
|
637
|
+
}).then(() => {
|
|
638
|
+
var _a;
|
|
622
639
|
if (!tmpParam)
|
|
623
640
|
return;
|
|
624
641
|
state.isClickOuterPrint = isOuterClick;
|
|
625
642
|
state.currentFormatId = formatId;
|
|
626
|
-
const printToParam =
|
|
627
|
-
handleClickPrint(tmpParam, templateCode, templateId, formatId, printToParam);
|
|
643
|
+
const printToParam = state.originParams[templateCode] || [];
|
|
644
|
+
handleClickPrint(tmpParam, templateCode, templateId, formatId, printToParam, true);
|
|
645
|
+
if (isPrintAllType.value == 4 && ((_a = printAllFormatIds == null ? void 0 : printAllFormatIds.value) == null ? void 0 : _a.includes(formatId))) {
|
|
646
|
+
const printFormatIds = printAllFormatIds.value.filter((id) => id != formatId);
|
|
647
|
+
printFormatIds.forEach((id) => {
|
|
648
|
+
const curFormatItem = state.formatList.find((item) => item.id === id);
|
|
649
|
+
if (curFormatItem) {
|
|
650
|
+
const tmpParam2 = state.printParams[curFormatItem.number];
|
|
651
|
+
const printToParam2 = state.originParams[curFormatItem.number] || [];
|
|
652
|
+
state.currentFormatId = id;
|
|
653
|
+
handleClickPrint(tmpParam2, curFormatItem.number, curFormatItem.templateId, id, printToParam2, true);
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
}
|
|
628
657
|
});
|
|
629
658
|
};
|
|
630
659
|
const handleClickPrint = async (curPrintParamList = [], templateCode, templateId, formatId, printToParam = [], needContinuePrint) => {
|
|
@@ -719,6 +748,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
719
748
|
btnprint: props.btnprint,
|
|
720
749
|
signature: props.signature,
|
|
721
750
|
hideButtons: props.hidePreviewBtns,
|
|
751
|
+
svrUpdateIp: props.svrUpdateIp,
|
|
722
752
|
formatItem: curFormatIdObj
|
|
723
753
|
};
|
|
724
754
|
printInstance.preview(queryParams, (res) => {
|
|
@@ -1112,7 +1142,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1112
1142
|
const curTypeItem = showSettingItems.value.find((item) => item.key == key);
|
|
1113
1143
|
if (curTypeItem) {
|
|
1114
1144
|
const tmpParam = state.printParams[curTypeItem == null ? void 0 : curTypeItem.templateCode];
|
|
1115
|
-
|
|
1145
|
+
if (!tmpParam)
|
|
1146
|
+
return;
|
|
1147
|
+
const printToParam = originParamsClone[curTypeItem == null ? void 0 : curTypeItem.templateCode] || [];
|
|
1116
1148
|
handleClickPrint(tmpParam, curTypeItem.templateCode, curTypeItem.templateId, curTypeItem.key, printToParam);
|
|
1117
1149
|
}
|
|
1118
1150
|
} else {
|
|
@@ -1295,12 +1327,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1295
1327
|
class: outerPrintItems.value.length > 0 ? "printAllLeftCls" : "",
|
|
1296
1328
|
onClick: _cache[0] || (_cache[0] = ($event) => handleTwoShow("isOutSetting"))
|
|
1297
1329
|
}), {
|
|
1298
|
-
default: withCtx(() => [
|
|
1299
|
-
class: "label bold"
|
|
1300
|
-
}, i18n("10010.1.473", "\u5916\u663E\u8BBE\u7F6E"), -1)), createVNode(unref(NIcon), {
|
|
1301
|
-
style: {
|
|
1302
|
-
"margin-left": "8px"
|
|
1303
|
-
},
|
|
1330
|
+
default: withCtx(() => [!noShowOutSettingText.value ? (openBlock(), createElementBlock("span", _hoisted_3, i18n("10010.1.473", "\u5916\u663E\u8BBE\u7F6E"))) : createCommentVNode("v-if", true), createVNode(unref(NIcon), {
|
|
1304
1331
|
component: unref(SettingsOutline),
|
|
1305
1332
|
size: "18"
|
|
1306
1333
|
}, null, 8, ["component"])]),
|
|
@@ -1315,26 +1342,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1315
1342
|
return openBlock(), createElementBlock("div", {
|
|
1316
1343
|
class: "print-li",
|
|
1317
1344
|
key: sItem.key
|
|
1318
|
-
}, [createElementVNode("div",
|
|
1345
|
+
}, [createElementVNode("div", _hoisted_4, [createElementVNode("span", _hoisted_5, toDisplayString(sItem.label), 1), createVNode(unref(NCheckbox), {
|
|
1319
1346
|
checked: sItem.selected,
|
|
1320
1347
|
"onUpdate:checked": ($event) => sItem.selected = $event
|
|
1321
1348
|
}, {
|
|
1322
|
-
default: withCtx(() => [..._cache[
|
|
1349
|
+
default: withCtx(() => [..._cache[12] || (_cache[12] = [createTextVNode(i18n("10010.1.474", "\u5916\u663E"), -1)])]),
|
|
1323
1350
|
_: 2
|
|
1324
1351
|
}, 1032, ["checked", "onUpdate:checked"])])]);
|
|
1325
|
-
}), 128)), createElementVNode("div",
|
|
1352
|
+
}), 128)), createElementVNode("div", _hoisted_6, [createVNode(unref(NDivider)), createElementVNode("div", _hoisted_7, [createVNode(unref(NButton), {
|
|
1326
1353
|
type: "primary",
|
|
1327
1354
|
size: "small",
|
|
1328
1355
|
onClick: savePrintOutSetting
|
|
1329
1356
|
}, {
|
|
1330
|
-
default: withCtx(() => [..._cache[
|
|
1357
|
+
default: withCtx(() => [..._cache[13] || (_cache[13] = [createTextVNode(i18n("10010.1.244", "\u4FDD\u5B58"), -1)])]),
|
|
1331
1358
|
_: 1
|
|
1332
1359
|
}), showSettingItems.value && showSettingItems.value.length > 1 ? (openBlock(), createBlock(unref(NCheckbox), {
|
|
1333
1360
|
key: 0,
|
|
1334
1361
|
checked: isSelectedAll.value,
|
|
1335
1362
|
"onUpdate:checked": _cache[1] || (_cache[1] = ($event) => isSelectedAll.value = $event)
|
|
1336
1363
|
}, {
|
|
1337
|
-
default: withCtx(() => [..._cache[
|
|
1364
|
+
default: withCtx(() => [..._cache[14] || (_cache[14] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
|
|
1338
1365
|
_: 1
|
|
1339
1366
|
}, 8, ["checked"])) : createCommentVNode("v-if", true)])])], 4)]),
|
|
1340
1367
|
_: 1
|
|
@@ -1368,7 +1395,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1368
1395
|
component: unref(PrintOutline),
|
|
1369
1396
|
size: "18"
|
|
1370
1397
|
}, null, 8, ["component"])]),
|
|
1371
|
-
default: withCtx(() => [createTextVNode(" " + toDisplayString(!isShowPrintAllBtn.value || isPrintAllType.value == 3 ? __props.btnText : i18n("10010.1.475", "\u6253\u5370\u5168\u90E8")) + " ", 1), printAllShortcut.value ? (openBlock(), createElementBlock("span",
|
|
1398
|
+
default: withCtx(() => [createTextVNode(" " + toDisplayString(!isShowPrintAllBtn.value || isPrintAllType.value == 3 || isPrintAllType.value == 4 ? __props.btnText : i18n("10010.1.475", "\u6253\u5370\u5168\u90E8")) + " ", 1), printAllShortcut.value ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(printAllShortcut.value), 1)) : createCommentVNode("v-if", true)]),
|
|
1372
1399
|
_: 1
|
|
1373
1400
|
}, 16, ["loading", "class"]), createCommentVNode(" \u53EA\u6709\u4E0B\u62C9\u6846\u6709\u9879\uFF0C\u624D\u5C55\u793A\u56FE\u6807\u6309\u94AE "), createVNode(unref(NButton), mergeProps({
|
|
1374
1401
|
class: "icon-select"
|
|
@@ -1408,7 +1435,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1408
1435
|
trigger: withCtx(() => [createElementVNode("div", {
|
|
1409
1436
|
class: "print-lite",
|
|
1410
1437
|
onClick: _cache[5] || (_cache[5] = ($event) => handleTwoShow("isOutSetting"))
|
|
1411
|
-
}, [createElementVNode("span",
|
|
1438
|
+
}, [createElementVNode("span", _hoisted_10, toDisplayString(option.label), 1), createVNode(unref(NIcon), {
|
|
1412
1439
|
class: "print-li-icon",
|
|
1413
1440
|
color: outerPrintItems.value.length > 0 ? "#2563F4" : "",
|
|
1414
1441
|
component: unref(SettingsOutline),
|
|
@@ -1423,26 +1450,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1423
1450
|
return openBlock(), createElementBlock("div", {
|
|
1424
1451
|
class: "print-li",
|
|
1425
1452
|
key: sItem.key
|
|
1426
|
-
}, [createElementVNode("div",
|
|
1453
|
+
}, [createElementVNode("div", _hoisted_11, [createElementVNode("span", _hoisted_12, toDisplayString(sItem.label), 1), createVNode(unref(NCheckbox), {
|
|
1427
1454
|
checked: sItem.selected,
|
|
1428
1455
|
"onUpdate:checked": ($event) => sItem.selected = $event
|
|
1429
1456
|
}, {
|
|
1430
|
-
default: withCtx(() => [..._cache[
|
|
1457
|
+
default: withCtx(() => [..._cache[15] || (_cache[15] = [createTextVNode(i18n("10010.1.474", "\u5916\u663E"), -1)])]),
|
|
1431
1458
|
_: 2
|
|
1432
1459
|
}, 1032, ["checked", "onUpdate:checked"])])]);
|
|
1433
|
-
}), 128)), createElementVNode("div",
|
|
1460
|
+
}), 128)), createElementVNode("div", _hoisted_13, [createVNode(unref(NDivider)), createElementVNode("div", _hoisted_14, [createVNode(unref(NButton), {
|
|
1434
1461
|
type: "primary",
|
|
1435
1462
|
size: "small",
|
|
1436
1463
|
onClick: savePrintOutSetting
|
|
1437
1464
|
}, {
|
|
1438
|
-
default: withCtx(() => [..._cache[
|
|
1465
|
+
default: withCtx(() => [..._cache[16] || (_cache[16] = [createTextVNode(i18n("10010.1.244", "\u4FDD\u5B58"), -1)])]),
|
|
1439
1466
|
_: 1
|
|
1440
1467
|
}), showSettingItems.value && showSettingItems.value.length > 1 ? (openBlock(), createBlock(unref(NCheckbox), {
|
|
1441
1468
|
key: 0,
|
|
1442
1469
|
checked: isSelectedAll.value,
|
|
1443
1470
|
"onUpdate:checked": _cache[6] || (_cache[6] = ($event) => isSelectedAll.value = $event)
|
|
1444
1471
|
}, {
|
|
1445
|
-
default: withCtx(() => [..._cache[
|
|
1472
|
+
default: withCtx(() => [..._cache[17] || (_cache[17] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
|
|
1446
1473
|
_: 1
|
|
1447
1474
|
}, 8, ["checked"])) : createCommentVNode("v-if", true)])])], 4)]),
|
|
1448
1475
|
_: 2
|
|
@@ -1456,7 +1483,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1456
1483
|
}, [createElementVNode("span", {
|
|
1457
1484
|
class: "label bold",
|
|
1458
1485
|
onClick: ($event) => handleOneTypePrint(option.templateCode, option.templateId, option.key, false)
|
|
1459
|
-
}, [createTextVNode(toDisplayString(option.label) + " ", 1), option.shortcutLabel ? (openBlock(), createElementBlock("span",
|
|
1486
|
+
}, [createTextVNode(toDisplayString(option.label) + " ", 1), option.shortcutLabel ? (openBlock(), createElementBlock("span", _hoisted_16, toDisplayString(option.shortcutLabel), 1)) : createCommentVNode("v-if", true)], 8, _hoisted_15), state.printParams[option.templateCode] ? (openBlock(), createBlock(unref(NPopover), {
|
|
1460
1487
|
key: 0,
|
|
1461
1488
|
trigger: "click",
|
|
1462
1489
|
"show-arrow": false,
|
|
@@ -1471,7 +1498,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1471
1498
|
size: "18",
|
|
1472
1499
|
onClick: ($event) => handleTwoShow(option.key)
|
|
1473
1500
|
}, null, 8, ["component", "onClick"])]),
|
|
1474
|
-
default: withCtx(() => [createElementVNode("div",
|
|
1501
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_17, [(openBlock(true), createElementBlock(Fragment, null, renderList(getDownList(unref(operations), option), (operation) => {
|
|
1475
1502
|
return openBlock(), createElementBlock("div", {
|
|
1476
1503
|
class: normalizeClass(["print-li", downlistOperation.twoMouseType == operation.key ? "active" : ""]),
|
|
1477
1504
|
key: operation.key,
|
|
@@ -1485,7 +1512,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1485
1512
|
placement: "right-start",
|
|
1486
1513
|
show: downlistPopover[operation.key]
|
|
1487
1514
|
}, {
|
|
1488
|
-
trigger: withCtx(() => [createElementVNode("div",
|
|
1515
|
+
trigger: withCtx(() => [createElementVNode("div", _hoisted_19, [createElementVNode("span", _hoisted_20, toDisplayString(operation.label), 1), createVNode(unref(NIcon), {
|
|
1489
1516
|
component: unref(ArrowForward),
|
|
1490
1517
|
size: "18"
|
|
1491
1518
|
}, null, 8, ["component"])])]),
|
|
@@ -1499,16 +1526,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1499
1526
|
"background": "transparent"
|
|
1500
1527
|
},
|
|
1501
1528
|
onClick: ($event) => handleSelect(previewBtn.key, option, false)
|
|
1502
|
-
}, toDisplayString(previewBtn.label), 9,
|
|
1529
|
+
}, toDisplayString(previewBtn.label), 9, _hoisted_21)]);
|
|
1503
1530
|
}), 128))]),
|
|
1504
1531
|
_: 2
|
|
1505
|
-
}, 1032, ["show"])) : (openBlock(), createElementBlock("div",
|
|
1532
|
+
}, 1032, ["show"])) : (openBlock(), createElementBlock("div", _hoisted_22, [createElementVNode("span", {
|
|
1506
1533
|
class: "label",
|
|
1507
1534
|
onClick: ($event) => handleSelect(operation.key, option, false)
|
|
1508
|
-
}, toDisplayString(operation.label), 9,
|
|
1535
|
+
}, toDisplayString(operation.label), 9, _hoisted_23)]))], 42, _hoisted_18);
|
|
1509
1536
|
}), 128))])]),
|
|
1510
1537
|
_: 2
|
|
1511
|
-
}, 1032, ["show", "onClickoutside"])) : createCommentVNode("v-if", true)], 2)], 2112))], 42,
|
|
1538
|
+
}, 1032, ["show", "onClickoutside"])) : createCommentVNode("v-if", true)], 2)], 2112))], 42, _hoisted_9);
|
|
1512
1539
|
}), 128))], 4)]),
|
|
1513
1540
|
_: 3
|
|
1514
1541
|
}, 8, ["to", "show"])], 2112))]), createVNode(IdentityVerification, mergeProps(_ctx.$attrs, {
|
|
@@ -119,6 +119,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
119
119
|
hidePreviewBtns: {
|
|
120
120
|
type: StringConstructor;
|
|
121
121
|
};
|
|
122
|
+
isShowResetPrinter: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
};
|
|
122
125
|
}>, {
|
|
123
126
|
$attrs: {
|
|
124
127
|
[x: string]: unknown;
|
|
@@ -245,6 +248,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
245
248
|
hidePreviewBtns: {
|
|
246
249
|
type: StringConstructor;
|
|
247
250
|
};
|
|
251
|
+
isShowResetPrinter: {
|
|
252
|
+
type: BooleanConstructor;
|
|
253
|
+
};
|
|
248
254
|
}>> & Readonly<{}> & {}>;
|
|
249
255
|
emit: any;
|
|
250
256
|
defaultFormatInfo: AnyObject;
|
|
@@ -284,6 +290,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
284
290
|
handleClickPreview: () => Promise<void>;
|
|
285
291
|
handleClickPdf: () => Promise<void>;
|
|
286
292
|
handleClickEdit: () => void;
|
|
293
|
+
handleResetPrinter: () => Promise<void>;
|
|
287
294
|
handleSelect: (key: string, option: AnyObject) => Promise<void>;
|
|
288
295
|
handleClickOutside: () => void;
|
|
289
296
|
instantiatePrintSDK: () => false | undefined;
|
|
@@ -642,6 +649,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
642
649
|
hidePreviewBtns: {
|
|
643
650
|
type: StringConstructor;
|
|
644
651
|
};
|
|
652
|
+
isShowResetPrinter: {
|
|
653
|
+
type: BooleanConstructor;
|
|
654
|
+
};
|
|
645
655
|
}>> & Readonly<{}>, {
|
|
646
656
|
params: AnyObject[];
|
|
647
657
|
btnText: string;
|
|
@@ -666,5 +676,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
666
676
|
showLoading: boolean;
|
|
667
677
|
hideButtons: unknown[];
|
|
668
678
|
printCustomProps: Record<string, any>;
|
|
679
|
+
isShowResetPrinter: boolean;
|
|
669
680
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
670
681
|
export default _default;
|
|
@@ -125,6 +125,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
125
125
|
},
|
|
126
126
|
hidePreviewBtns: {
|
|
127
127
|
type: String
|
|
128
|
+
},
|
|
129
|
+
isShowResetPrinter: {
|
|
130
|
+
type: Boolean
|
|
128
131
|
}
|
|
129
132
|
},
|
|
130
133
|
setup(__props, {
|
|
@@ -167,6 +170,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
167
170
|
}, {
|
|
168
171
|
label: props.formatEditText,
|
|
169
172
|
key: "formatEditText"
|
|
173
|
+
}, {
|
|
174
|
+
label: i18n("10010.1.484", "\u91CD\u7F6E\u6253\u5370\u673A"),
|
|
175
|
+
key: "resetPrinter"
|
|
170
176
|
}, ...((_a = props.externalOptionConfig) == null ? void 0 : _a.options) || []]);
|
|
171
177
|
const tempOptions = ref([]);
|
|
172
178
|
const currentFormatItem = computed(() => {
|
|
@@ -371,6 +377,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
371
377
|
btnprint: props.btnprint,
|
|
372
378
|
signature: props.signature,
|
|
373
379
|
hideButtons: props.hidePreviewBtns,
|
|
380
|
+
svrUpdateIp: props.svrUpdateIp,
|
|
374
381
|
formatItem: curFormatIdObj
|
|
375
382
|
};
|
|
376
383
|
printInstance.preview(queryParams, (res) => {
|
|
@@ -433,6 +440,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
433
440
|
state.spinning = false;
|
|
434
441
|
});
|
|
435
442
|
};
|
|
443
|
+
const handleResetPrinter = async () => {
|
|
444
|
+
if (props.showLoading && state.spinning)
|
|
445
|
+
return;
|
|
446
|
+
state.spinning = true;
|
|
447
|
+
props.prevFn("resetPrinter", {
|
|
448
|
+
formatId: state.currentFormatId,
|
|
449
|
+
templateId: getTemplateIdByFormatId.value
|
|
450
|
+
}).then(async () => {
|
|
451
|
+
const data = await printInstance.resetPrinter(state.currentFormatId, state.iReportExecuteMode);
|
|
452
|
+
state.spinning = false;
|
|
453
|
+
if ((data == null ? void 0 : data.result) == "success") {
|
|
454
|
+
$message.success((data == null ? void 0 : data.message) || i18n("10010.1.487", "\u91CD\u7F6E\u6253\u5370\u673A\u6210\u529F"));
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
$message.warning((data == null ? void 0 : data.message) || i18n("10010.1.488", "\u91CD\u7F6E\u6253\u5370\u673A\u5931\u8D25"));
|
|
458
|
+
}).catch(() => {
|
|
459
|
+
prevFnError("resetPrinter");
|
|
460
|
+
state.spinning = false;
|
|
461
|
+
}).finally(() => {
|
|
462
|
+
state.visible = false;
|
|
463
|
+
});
|
|
464
|
+
};
|
|
436
465
|
const handleSelect = async (key, option) => {
|
|
437
466
|
var _a2, _b;
|
|
438
467
|
switch (key) {
|
|
@@ -448,6 +477,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
448
477
|
case "downloadPdf":
|
|
449
478
|
handleClickPdf();
|
|
450
479
|
break;
|
|
480
|
+
case "resetPrinter":
|
|
481
|
+
handleResetPrinter();
|
|
482
|
+
break;
|
|
451
483
|
default: {
|
|
452
484
|
state.visible = false;
|
|
453
485
|
const formatObj = state.formatList.find((item) => item.id === key) || {};
|
|
@@ -548,6 +580,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
548
580
|
if (isIReport(state.currentFormatId)) {
|
|
549
581
|
options.value = tempOptions.value.filter((option) => option.key != "formatEditText");
|
|
550
582
|
}
|
|
583
|
+
if (!props.isShowResetPrinter) {
|
|
584
|
+
options.value = options.value.filter((option) => option.key != "resetPrinter");
|
|
585
|
+
}
|
|
551
586
|
};
|
|
552
587
|
const formatFormatList = (list) => {
|
|
553
588
|
let formatList = [];
|
|
@@ -68,8 +68,9 @@ export declare class Print {
|
|
|
68
68
|
_queryPrintForPdf(templateId: string, formatId: string, params: string | undefined, authorizationKey: String): Promise<any>;
|
|
69
69
|
_browserPrint(result: AnyObject, mode: string): Promise<string | void>;
|
|
70
70
|
_base64ToBlob(fileBase64: string, fileType: string): Blob;
|
|
71
|
-
preview({ iReportExecuteMode, hideButtons, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, signature, btnprint, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
|
|
71
|
+
preview({ iReportExecuteMode, hideButtons, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, signature, btnprint, svrUpdateIp, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
|
|
72
72
|
printSync(data: AnyObject[], successCallbackFn: AnyFn, errorCallbackFn: AnyFn): Promise<void>;
|
|
73
|
+
isObject(o: any): boolean;
|
|
73
74
|
printDirect({ iReportExecuteMode, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, print, signature, printdlgshow, nobillnode, copies, svrUpdateIp, apptype, uuid, printname, priority, isShowQueueProgressNotify, isDownloadFile, messageTimeout }: AnyObject, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn, printQueueCallbackFn?: AnyFn, mode?: string): Promise<false | undefined>;
|
|
74
75
|
printToHiPrint({ templateId, formatId, params, authorizationKey }: any, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn): Promise<any>;
|
|
75
76
|
private _downloadPDF;
|
|
@@ -308,11 +308,10 @@ class Print {
|
|
|
308
308
|
}
|
|
309
309
|
async getPicAndUpload(obj) {
|
|
310
310
|
try {
|
|
311
|
-
const isObject = (o) => Object.prototype.toString.call(o) === "[object Object]";
|
|
312
311
|
if ((obj == null ? void 0 : obj.result) === "success" && (obj == null ? void 0 : obj.uploadTemplateFlag) == "Y" && !(obj == null ? void 0 : obj.filebase64) && this.queryServicesParams) {
|
|
313
|
-
const params = isObject(this.queryServicesParams.params) ? this.queryServicesParams.params : JSON.parse(this.queryServicesParams.params);
|
|
312
|
+
const params = this.isObject(this.queryServicesParams.params) ? this.queryServicesParams.params : JSON.parse(this.queryServicesParams.params);
|
|
314
313
|
params.uploadTemplateFlag = "Y";
|
|
315
|
-
this.queryServicesParams.params =
|
|
314
|
+
this.queryServicesParams.params = params;
|
|
316
315
|
this.queryServicesParams.cmdid = PRINT_CMD_ID;
|
|
317
316
|
this.queryServicesParams.print = {
|
|
318
317
|
print: 1,
|
|
@@ -320,7 +319,7 @@ class Print {
|
|
|
320
319
|
zip: 0
|
|
321
320
|
};
|
|
322
321
|
this.queryServicesParams.paramsArr = [{
|
|
323
|
-
params
|
|
322
|
+
params
|
|
324
323
|
}];
|
|
325
324
|
const data = await this._queryBase64ServicesPrint(this.queryServicesParams);
|
|
326
325
|
}
|
|
@@ -866,8 +865,10 @@ class Print {
|
|
|
866
865
|
authorizationKey,
|
|
867
866
|
signature,
|
|
868
867
|
btnprint,
|
|
868
|
+
svrUpdateIp,
|
|
869
869
|
messageTimeout = 0
|
|
870
870
|
}, successCallbackFn, errorCallbackFn) {
|
|
871
|
+
params = this.isObject(params) || !params ? params : JSON.parse(params);
|
|
871
872
|
const iReportStatus = isIReport(originFormatId);
|
|
872
873
|
const formatId = this.getIReportFormatId(iReportStatus, originFormatId);
|
|
873
874
|
if (iReportStatus && (isDomestic || iReportExecuteMode == 2)) {
|
|
@@ -894,7 +895,7 @@ class Print {
|
|
|
894
895
|
return false;
|
|
895
896
|
try {
|
|
896
897
|
const hideButtonsValue = hideButtons ? hideButtons : (formatItem == null ? void 0 : formatItem.previewCanExport) === void 0 || (formatItem == null ? void 0 : formatItem.previewCanExport) ? void 0 : "Export";
|
|
897
|
-
const btnprintValue = btnprint != "1" ? btnprint : (formatItem == null ? void 0 : formatItem.previewCanPrint) === false ? "0" : "1";
|
|
898
|
+
const btnprintValue = btnprint != "1" && btnprint !== void 0 ? btnprint : (formatItem == null ? void 0 : formatItem.previewCanPrint) === false ? "0" : "1";
|
|
898
899
|
const watermark = (formatItem == null ? void 0 : formatItem.showWatermark) ? "1" : void 0;
|
|
899
900
|
const result = await this._handleEventDirect({
|
|
900
901
|
templateId,
|
|
@@ -905,6 +906,7 @@ class Print {
|
|
|
905
906
|
cmdid: this.isRemote ? PRINT_CMD_ID : PREVIEW_CMD_ID,
|
|
906
907
|
watermark,
|
|
907
908
|
signature,
|
|
909
|
+
svrUpdateIp,
|
|
908
910
|
btnprint: btnprintValue,
|
|
909
911
|
hideButtons: hideButtonsValue,
|
|
910
912
|
messageTimeout
|
|
@@ -991,6 +993,9 @@ class Print {
|
|
|
991
993
|
this._handleMonitorNotify(error);
|
|
992
994
|
}
|
|
993
995
|
}
|
|
996
|
+
isObject(o) {
|
|
997
|
+
return Object.prototype.toString.call(o) === "[object Object]";
|
|
998
|
+
}
|
|
994
999
|
async printDirect({
|
|
995
1000
|
iReportExecuteMode,
|
|
996
1001
|
templateId,
|
|
@@ -1014,7 +1019,7 @@ class Print {
|
|
|
1014
1019
|
isDownloadFile = true,
|
|
1015
1020
|
messageTimeout = 0
|
|
1016
1021
|
}, successCallbackFn, errorCallbackFn, cancelCallbackFn, printQueueCallbackFn, mode = "printDirect") {
|
|
1017
|
-
|
|
1022
|
+
params = this.isObject(params) || !params ? params : JSON.parse(params);
|
|
1018
1023
|
const iReportStatus = isIReport(originFormatId);
|
|
1019
1024
|
const formatId = this.getIReportFormatId(iReportStatus, originFormatId);
|
|
1020
1025
|
if (iReportStatus && (isDomestic || iReportExecuteMode == 2)) {
|
|
@@ -1059,7 +1064,7 @@ class Print {
|
|
|
1059
1064
|
return false;
|
|
1060
1065
|
try {
|
|
1061
1066
|
if (formatItem == null ? void 0 : formatItem.queuePrint) {
|
|
1062
|
-
const printParams = isObject(params) ? cloneDeep(params) : params;
|
|
1067
|
+
const printParams = this.isObject(params) ? cloneDeep(params) : params;
|
|
1063
1068
|
paramsArr = [{
|
|
1064
1069
|
params: printParams
|
|
1065
1070
|
}];
|
|
@@ -1078,7 +1083,7 @@ class Print {
|
|
|
1078
1083
|
}
|
|
1079
1084
|
this._notifyPrintQueueMap.callback.set(uuid, printQueueCallbackFn);
|
|
1080
1085
|
}
|
|
1081
|
-
const printdlgshowValue = printdlgshow != "0" ? printdlgshow : (formatItem == null ? void 0 : formatItem.showPrintDialog) ? "1" : "0";
|
|
1086
|
+
const printdlgshowValue = printdlgshow != "0" && printdlgshow !== void 0 ? printdlgshow : (formatItem == null ? void 0 : formatItem.showPrintDialog) ? "1" : "0";
|
|
1082
1087
|
const watermark = (formatItem == null ? void 0 : formatItem.showWatermark) ? "1" : void 0;
|
|
1083
1088
|
const result = await this._handleEventDirect({
|
|
1084
1089
|
templateId,
|