cnhis-design-vue 3.3.3-release.9 → 3.4.0-beta.1
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/big-table/src/hooks/useBatchEditing.js +25 -24
- package/es/components/button-print/index.d.ts +98 -8
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +98 -8
- package/es/components/button-print/src/ButtonPrint.vue2.js +12 -1
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +11 -2
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +3 -2
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +44 -6
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +194 -41
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +29 -2
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +34 -5
- package/es/components/button-print/src/utils/print.d.ts +7 -5
- package/es/components/button-print/src/utils/print.js +183 -7
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/calendar/src/Calendar.vue2.js +15 -5
- package/es/components/callback/src/components/render/popupMaps.d.ts +5 -0
- package/es/components/card-render/src/components/index.d.ts +23 -23
- package/es/components/classification/index.d.ts +258 -5
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +258 -5
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +258 -5
- package/es/components/classification/src/index.vue.d.ts +258 -5
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +6 -2
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
- package/es/components/field-editor/index.d.ts +5 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +5 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +4 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +4 -1
- 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.js +4 -4
- package/es/components/field-set/src/types/index.d.ts +2 -1
- package/es/components/form-config/index.d.ts +63 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +63 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +50 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +4 -4
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +5 -0
- 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 +5 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +5 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -0
- package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
- package/es/components/form-render/src/components/renderer/date.js +12 -10
- package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/formItem.js +10 -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/radio_checkbox.js +9 -3
- package/es/components/form-render/src/constants/index.d.ts +1 -1
- 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/useNuiThemeOverrides.d.ts +1 -2
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-chat/index.d.ts +897 -97
- package/es/components/iho-chat/src/Index.vue.d.ts +897 -97
- package/es/components/iho-chat/src/Index.vue2.js +14 -6
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +179 -6
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +48 -28
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +61 -5
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +106 -44
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +327 -13
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +18 -17
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +232 -17
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +299 -272
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +49 -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 +33 -18
- 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 +51 -4
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +77 -31
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +223 -98
- 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 +44 -26
- package/es/components/iho-chat/src/components/Video.vue2.js +56 -49
- package/es/components/iho-chat/src/hooks/useData.d.ts +51 -4
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +83 -16
- package/es/components/iho-chat/src/hooks/useVideo.js +439 -43
- 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 +2 -0
- package/es/components/iho-chat/src/utils/index.js +14 -1
- package/es/components/iho-chat/style/index.css +1 -1
- 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 +0 -22
- 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/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/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +36 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +2 -1
- package/es/components/info-header/index.d.ts +24 -17
- package/es/components/info-header/src/InfoHeader.vue.d.ts +24 -17
- package/es/components/info-header/src/InfoHeader.vue2.js +2 -2
- 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 +4 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -17
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -0
- package/es/components/info-header/src/constants/index.d.ts +1 -1
- package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +1 -2
- package/es/components/keyboard/index.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -0
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +50 -17
- package/es/components/keyboard/src/types.d.ts +17 -0
- package/es/components/keyboard/src/types.js +1 -0
- package/es/components/scale-view/index.d.ts +13 -0
- package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +2 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +4 -0
- package/es/components/search-cascader/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +8 -1
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
- package/es/components/shortcut-provider/src/types/index.d.ts +1 -0
- package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
- package/es/components/shortcut-provider/src/utils/index.js +3 -1
- package/es/components/shortcut-setter/index.d.ts +5 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -0
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +246 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +8 -2
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +104 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +250 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +116 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +43 -4
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +117 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +45 -8
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +233 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +74 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +258 -5
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +15 -6
- 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.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -1
- 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/index.d.ts +3 -3
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +32 -4
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +38 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -3
- package/es/components/table-filter/src/hooks/useAdvanced.js +5 -4
- package/es/components/table-filter/src/tool/baseOptions.js +8 -1
- package/es/components/table-filter/src/types/enums.d.ts +5 -0
- package/es/components/table-filter/src/types/enums.js +6 -1
- package/es/components/time-picker/index.d.ts +36 -4
- package/es/components/time-picker/src/TimePicker.vue.d.ts +36 -4
- package/es/components/time-picker/src/TimePicker.vue2.js +98 -13
- package/es/components/vertify/index.d.ts +1 -0
- package/es/components/vertify/index.js +1 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
- package/es/components/vertify/src/components/IdentityVerification.vue2.js +256 -0
- package/es/components/vertify/src/utils/dialog.d.ts +7 -0
- package/es/components/vertify/src/utils/dialog.js +73 -0
- package/es/components/vertify/src/utils/index.d.ts +11 -0
- package/es/components/vertify/src/utils/index.js +24 -0
- package/es/components/vod-chunk-upload/index.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +19 -2
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +104 -75
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +20 -3
- package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +6 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +6 -1
- package/es/components/vod-chunk-upload/style/index.css +1 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/hooks/useDateTime.d.ts +1 -1
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +3 -3
- package/es/shared/package.json.js +2 -2
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/package.json +5 -5
- package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +0 -4
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -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: {
|
@@ -216,6 +228,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
216
228
|
default: () => ({
|
217
229
|
isShowPrintAll: true,
|
218
230
|
printAllType: 1,
|
231
|
+
hideTemplateCodes: [],
|
219
232
|
isShowOutSetting: true,
|
220
233
|
customProps: {},
|
221
234
|
outerPrintKeys: [],
|
@@ -223,12 +236,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
223
236
|
shortcut: {},
|
224
237
|
buttonProps: {},
|
225
238
|
showMaxHeight: null,
|
226
|
-
initLoadPrintParams: false
|
239
|
+
initLoadPrintParams: false,
|
240
|
+
showPreviewDataList: false
|
227
241
|
})
|
228
242
|
},
|
229
243
|
svrUpdateIp: {
|
230
244
|
type: String
|
231
245
|
},
|
246
|
+
apptype: {
|
247
|
+
type: String
|
248
|
+
},
|
249
|
+
uuid: {
|
250
|
+
type: String
|
251
|
+
},
|
232
252
|
hidePreviewBtns: {
|
233
253
|
type: String
|
234
254
|
}
|
@@ -275,6 +295,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
275
295
|
originParams: {},
|
276
296
|
currentFormatId: "",
|
277
297
|
identityVerification: {
|
298
|
+
templateCode: "",
|
278
299
|
visible: false
|
279
300
|
},
|
280
301
|
isInited: false,
|
@@ -287,6 +308,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
287
308
|
});
|
288
309
|
const shortcutFn = ref({});
|
289
310
|
let options = ref([]);
|
311
|
+
let realOptionList = ref([]);
|
290
312
|
let operations = ref([{
|
291
313
|
label: props.previewText,
|
292
314
|
key: "previewText"
|
@@ -364,6 +386,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
364
386
|
var _a;
|
365
387
|
return ((_a = props.newPrintSetting) == null ? void 0 : _a.printAllType) || 1;
|
366
388
|
});
|
389
|
+
const hideTemplateCodes = computed(() => {
|
390
|
+
var _a;
|
391
|
+
return ((_a = props.newPrintSetting) == null ? void 0 : _a.hideTemplateCodes) || [];
|
392
|
+
});
|
367
393
|
const shortcutSettings = computed(() => {
|
368
394
|
var _a;
|
369
395
|
return ((_a = props.newPrintSetting) == null ? void 0 : _a.shortcut) || {};
|
@@ -384,6 +410,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
384
410
|
var _a;
|
385
411
|
return (_a = props.newPrintSetting) == null ? void 0 : _a.positionElement;
|
386
412
|
});
|
413
|
+
const showPreviewDataList = computed(() => {
|
414
|
+
var _a;
|
415
|
+
return (_a = props.newPrintSetting) == null ? void 0 : _a.showPreviewDataList;
|
416
|
+
});
|
387
417
|
const printAllShortcut = computed(() => {
|
388
418
|
var _a, _b;
|
389
419
|
const keys = Object.keys(shortcutSettings.value);
|
@@ -399,7 +429,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
399
429
|
});
|
400
430
|
const showSettingItems = computed(() => {
|
401
431
|
const keys = baseDownListSetting.map((base) => base.key);
|
402
|
-
return
|
432
|
+
return realOptionList.value.filter((option) => !keys.includes(option.key));
|
403
433
|
});
|
404
434
|
const isSelectedAll = computed({
|
405
435
|
get() {
|
@@ -419,10 +449,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
419
449
|
return innerPrintItems.value;
|
420
450
|
});
|
421
451
|
const initShowDownList = async () => {
|
422
|
-
var _a, _b;
|
452
|
+
var _a, _b, _c;
|
423
453
|
if (!((_b = (_a = props.newPrintSetting) == null ? void 0 : _a.outerPrintKeys) == null ? void 0 : _b.length))
|
424
454
|
await handleClickBtn();
|
425
|
-
|
455
|
+
if (((_c = innerFilterPrintItems.value) == null ? void 0 : _c.length) > 0)
|
456
|
+
downlistPopover.oneShow = true;
|
426
457
|
};
|
427
458
|
const printAllButtonClick = async (origin) => {
|
428
459
|
if (props.directPrint) {
|
@@ -443,6 +474,32 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
443
474
|
if (isIReport(curOuter.key)) {
|
444
475
|
return targetList.filter((option) => option.key != "formatEditText");
|
445
476
|
}
|
477
|
+
if (props.strategy !== "MULTI" && showPreviewDataList.value) {
|
478
|
+
const printParamsItemList = state.printParams[curOuter.templateCode];
|
479
|
+
const aa = cloneDeep(targetList).map((item) => {
|
480
|
+
if (item.key === "previewText" && (printParamsItemList == null ? void 0 : printParamsItemList.length) > 1) {
|
481
|
+
const list = printParamsItemList.map((item2) => {
|
482
|
+
return {
|
483
|
+
label: item2.printPreviewBusinessName,
|
484
|
+
key: `previewText_${item2.printPreviewBusinessName}`
|
485
|
+
};
|
486
|
+
});
|
487
|
+
item.children = [{
|
488
|
+
label: function() {
|
489
|
+
var _a, _b, _c;
|
490
|
+
try {
|
491
|
+
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";
|
492
|
+
} catch (e) {
|
493
|
+
return "\u5168\u90E8";
|
494
|
+
}
|
495
|
+
}(),
|
496
|
+
key: "previewText_all"
|
497
|
+
}, ...list];
|
498
|
+
}
|
499
|
+
return item;
|
500
|
+
});
|
501
|
+
return aa;
|
502
|
+
}
|
446
503
|
return targetList;
|
447
504
|
};
|
448
505
|
const handleTypeChange = (name, key) => {
|
@@ -454,7 +511,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
454
511
|
handleTypeChange(name, key);
|
455
512
|
};
|
456
513
|
const savePrintOutSetting = () => {
|
457
|
-
innerPrintItems.value =
|
514
|
+
innerPrintItems.value = realOptionList.value.filter((option) => !option.selected);
|
458
515
|
outerPrintItems.value = showSettingItems.value.filter((option) => option.selected);
|
459
516
|
handleClickOutHide("oneShow");
|
460
517
|
handleClickOutHide("isOutSetting");
|
@@ -463,15 +520,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
463
520
|
const handleTwoShow = (name) => {
|
464
521
|
downlistPopover[name] = true;
|
465
522
|
};
|
466
|
-
const handleClickOutHide = (
|
523
|
+
const handleClickOutHide = (showType) => {
|
467
524
|
downlistOperation.oneClickType = "";
|
468
|
-
downlistPopover[
|
469
|
-
if (
|
525
|
+
downlistPopover[showType] = false;
|
526
|
+
if (showType == "isOutSetting") {
|
470
527
|
downlistPopover.isOutSetting = false;
|
471
528
|
}
|
472
529
|
};
|
530
|
+
const hiddenPopover = () => {
|
531
|
+
for (const key in downlistPopover) {
|
532
|
+
downlistPopover[key] = false;
|
533
|
+
}
|
534
|
+
};
|
473
535
|
const callLocalServicesSuccessCb = (res, type) => {
|
474
536
|
toggleExpandLoading(false);
|
537
|
+
hiddenPopover();
|
475
538
|
let info = {
|
476
539
|
type,
|
477
540
|
formatId: state.currentFormatId,
|
@@ -486,18 +549,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
486
549
|
};
|
487
550
|
const callLocalServicesErrorCb = (res) => {
|
488
551
|
toggleExpandLoading(false);
|
552
|
+
let info = {
|
553
|
+
formatId: state.currentFormatId,
|
554
|
+
templateId: getTemplateIdByFormatId.value,
|
555
|
+
templateCode: getTemplateCodeByFormatId.value
|
556
|
+
};
|
489
557
|
encapBrowserLog({
|
490
558
|
type: "\u8FDB\u5165\u5931\u8D25\u7684\u56DE\u8C03",
|
491
559
|
res
|
492
560
|
}, "PRINT-SDK");
|
493
|
-
emit("error", res);
|
561
|
+
emit("error", res, info);
|
494
562
|
if (isObject(res) && res.type === "notInstalledApp") {
|
495
563
|
$message.error(res.message);
|
496
564
|
}
|
497
565
|
};
|
498
566
|
const callLocalServicesCancelCb = (res) => {
|
499
567
|
toggleExpandLoading(false);
|
500
|
-
|
568
|
+
let info = {
|
569
|
+
formatId: state.currentFormatId,
|
570
|
+
templateId: getTemplateIdByFormatId.value,
|
571
|
+
templateCode: getTemplateCodeByFormatId.value
|
572
|
+
};
|
573
|
+
emit("cancel", res, info);
|
501
574
|
};
|
502
575
|
const prevFnError = (type) => {
|
503
576
|
const error = {
|
@@ -512,7 +585,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
512
585
|
type,
|
513
586
|
preExecution: true
|
514
587
|
};
|
515
|
-
|
588
|
+
let info = {
|
589
|
+
formatId: state.currentFormatId,
|
590
|
+
templateId: getTemplateIdByFormatId.value,
|
591
|
+
templateCode: getTemplateCodeByFormatId.value
|
592
|
+
};
|
593
|
+
emit("error", error, info);
|
516
594
|
};
|
517
595
|
const getPrintParams = () => {
|
518
596
|
return JSON.stringify({
|
@@ -521,7 +599,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
521
599
|
} : {}
|
522
600
|
});
|
523
601
|
};
|
524
|
-
const getOnceParams = (curPrintParamList = [], templateCode) => {
|
602
|
+
const getOnceParams = (curPrintParamList = [], templateCode, name) => {
|
525
603
|
var _a, _b;
|
526
604
|
let params = {};
|
527
605
|
let obj = {};
|
@@ -533,9 +611,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
533
611
|
};
|
534
612
|
obj.datasetData[key] = datasetDataKeyVal;
|
535
613
|
} else {
|
614
|
+
const filterParamsList = name && name !== "all" ? curPrintParamList.filter((item) => item.printPreviewBusinessName === name) : curPrintParamList;
|
536
615
|
Object.keys(curPrintParamList[0]).forEach((v) => {
|
537
616
|
obj[v] = [];
|
538
|
-
|
617
|
+
filterParamsList.forEach((k) => {
|
539
618
|
if (!obj[v].includes(k[v])) {
|
540
619
|
obj[v].push(k[v]);
|
541
620
|
}
|
@@ -543,7 +622,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
543
622
|
obj[v] = obj[v].join(",");
|
544
623
|
});
|
545
624
|
}
|
546
|
-
|
625
|
+
const {
|
626
|
+
printPreviewBusinessName,
|
627
|
+
...realObj
|
628
|
+
} = obj;
|
629
|
+
params = Object.assign({}, JSON.parse(getPrintParams()), realObj, printCustomProps.value);
|
547
630
|
return JSON.stringify(params);
|
548
631
|
};
|
549
632
|
const handleClickPrintAll = () => {
|
@@ -552,7 +635,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
552
635
|
state.isClickOuterPrint = false;
|
553
636
|
const originParamsClone = state.originParams;
|
554
637
|
if (((_a = Object.keys(printAllFormatIds.value)) == null ? void 0 : _a.length) > 0) {
|
555
|
-
|
638
|
+
realOptionList.value.forEach((optItem) => {
|
556
639
|
if (printAllFormatIds.value.includes(optItem.key)) {
|
557
640
|
const tmpParam = state.printParams[optItem.templateCode];
|
558
641
|
const printToParam = originParamsClone[optItem.templateCode] || [];
|
@@ -584,6 +667,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
584
667
|
handleClickPrint(tmpParam, outer.templateCode, outer.templateId, outer.key, printToParam, true);
|
585
668
|
});
|
586
669
|
}
|
670
|
+
if (isPrintAllType.value == 3) {
|
671
|
+
const needPrintOptions = options.value.filter((optItem) => hideTemplateCodes.value.includes(optItem.templateCode) && optItem.isDefault);
|
672
|
+
if ((needPrintOptions == null ? void 0 : needPrintOptions.length) > 0) {
|
673
|
+
needPrintOptions.forEach((optItem) => {
|
674
|
+
const tmpParam = state.printParams[optItem.templateCode];
|
675
|
+
const printToParam = originParamsClone[optItem.templateCode] || [];
|
676
|
+
state.currentFormatId = optItem.key;
|
677
|
+
handleClickPrint(tmpParam, optItem.templateCode, optItem.templateId, optItem.key, printToParam, true);
|
678
|
+
});
|
679
|
+
}
|
680
|
+
}
|
587
681
|
};
|
588
682
|
const toggleExpandLoading = (isLoading, formatId) => {
|
589
683
|
if (state.isClickOuterPrint) {
|
@@ -641,13 +735,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
641
735
|
const queryParams = {
|
642
736
|
formatId,
|
643
737
|
iReportExecuteMode: state.iReportExecuteMode,
|
644
|
-
number:
|
738
|
+
number: templateCode,
|
645
739
|
templateId,
|
646
740
|
authorizationKey: authorizationKey.value,
|
647
741
|
printdlgshow: curPrintdlgshow,
|
648
742
|
signature: props.signature,
|
649
743
|
copies: props.printCopies,
|
650
744
|
svrUpdateIp: props.svrUpdateIp,
|
745
|
+
apptype: props.apptype,
|
746
|
+
uuid: props.uuid,
|
651
747
|
formatItem: curFormatIdObj
|
652
748
|
};
|
653
749
|
if (props.strategy === "MULTI") {
|
@@ -678,7 +774,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
678
774
|
state.visible = false;
|
679
775
|
});
|
680
776
|
};
|
681
|
-
const handleClickPreview = async (curPrintParamList = [], templateCode, templateId, formatId) => {
|
777
|
+
const handleClickPreview = async (curPrintParamList = [], templateCode, templateId, formatId, name) => {
|
682
778
|
if (props.showLoading && getCurrentLoading())
|
683
779
|
return;
|
684
780
|
toggleExpandLoading(true, formatId);
|
@@ -687,19 +783,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
687
783
|
templateId,
|
688
784
|
params: curPrintParamList
|
689
785
|
}).then(() => {
|
786
|
+
var _a;
|
690
787
|
state.curPrintParamList = curPrintParamList;
|
691
788
|
const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), curPrintParamList[0], printCustomProps.value));
|
692
|
-
const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(curPrintParamList, templateCode);
|
789
|
+
const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(curPrintParamList, templateCode, name);
|
790
|
+
const curFormatIdObj = (_a = state == null ? void 0 : state.formatList) == null ? void 0 : _a.find((item) => item.id == formatId);
|
693
791
|
const queryParams = {
|
694
792
|
formatId,
|
695
793
|
templateId,
|
696
794
|
iReportExecuteMode: state.iReportExecuteMode,
|
697
|
-
number:
|
795
|
+
number: templateCode,
|
698
796
|
authorizationKey: authorizationKey.value,
|
699
797
|
params,
|
700
798
|
btnprint: props.btnprint,
|
701
799
|
signature: props.signature,
|
702
|
-
hideButtons: props.hidePreviewBtns
|
800
|
+
hideButtons: props.hidePreviewBtns,
|
801
|
+
formatItem: curFormatIdObj
|
703
802
|
};
|
704
803
|
printInstance.preview(queryParams, (res) => {
|
705
804
|
callLocalServicesSuccessCb(res, "preview");
|
@@ -720,14 +819,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
720
819
|
templateId,
|
721
820
|
params: curPrintParamList
|
722
821
|
}).then(() => {
|
822
|
+
var _a;
|
723
823
|
state.curPrintParamList = curPrintParamList;
|
724
824
|
const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), curPrintParamList[0], printCustomProps.value));
|
725
825
|
const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(curPrintParamList, templateCode);
|
826
|
+
const curFormatIdObj = (_a = state == null ? void 0 : state.formatList) == null ? void 0 : _a.find((item) => item.id == formatId);
|
726
827
|
const queryParams = {
|
727
828
|
formatId,
|
728
829
|
templateId,
|
729
830
|
iReportExecuteMode: state.iReportExecuteMode,
|
730
|
-
number:
|
831
|
+
number: templateCode,
|
731
832
|
authorizationKey: authorizationKey.value,
|
732
833
|
print: {
|
733
834
|
print: "1",
|
@@ -735,7 +836,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
735
836
|
resolution: props == null ? void 0 : props.resolution
|
736
837
|
},
|
737
838
|
params,
|
738
|
-
signature: props.signature
|
839
|
+
signature: props.signature,
|
840
|
+
formatItem: curFormatIdObj
|
739
841
|
};
|
740
842
|
printInstance.downloadPDF(queryParams, (res) => callLocalServicesSuccessCb(res, "preview"), callLocalServicesErrorCb);
|
741
843
|
}).catch(() => {
|
@@ -757,6 +859,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
757
859
|
state.curPrintParamList = curPrintParamList;
|
758
860
|
state.currentFormatId = formatId;
|
759
861
|
state.identityVerification.visible = true;
|
862
|
+
state.identityVerification.templateCode = templateCode;
|
760
863
|
}).catch(() => {
|
761
864
|
prevFnError("edit");
|
762
865
|
}).finally(() => {
|
@@ -824,6 +927,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
824
927
|
case "resetPrinter":
|
825
928
|
handleResetPrinter(tmpParam, templateCode, templateId, key);
|
826
929
|
break;
|
930
|
+
default: {
|
931
|
+
if (type.includes("previewText_")) {
|
932
|
+
const name = type.split("_")[1];
|
933
|
+
handleClickPreview(tmpParam, templateCode, templateId, key, name);
|
934
|
+
return;
|
935
|
+
}
|
936
|
+
break;
|
937
|
+
}
|
827
938
|
}
|
828
939
|
};
|
829
940
|
const handleClickOutside = () => {
|
@@ -842,6 +953,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
842
953
|
templateId: v.templateId,
|
843
954
|
label: v.name,
|
844
955
|
key: v.id,
|
956
|
+
isDefault: v.defaultFlag == 1,
|
845
957
|
selected: false,
|
846
958
|
isLoading: false
|
847
959
|
};
|
@@ -857,16 +969,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
857
969
|
if (isShowOutSettingBtn.value) {
|
858
970
|
options.value.push(...baseDownListSetting);
|
859
971
|
}
|
972
|
+
realOptionList.value = options.value.filter((item) => !hideTemplateCodes.value.includes(item.templateCode));
|
860
973
|
if (((_b = (_a = props.newPrintSetting) == null ? void 0 : _a.outerPrintKeys) == null ? void 0 : _b.length) > 0) {
|
861
|
-
|
974
|
+
realOptionList.value.forEach((option) => {
|
862
975
|
var _a2;
|
863
976
|
if ((_a2 = props.newPrintSetting) == null ? void 0 : _a2.outerPrintKeys.includes(option.key)) {
|
864
977
|
option.selected = true;
|
865
978
|
}
|
866
979
|
});
|
867
|
-
outerPrintItems.value =
|
980
|
+
outerPrintItems.value = realOptionList.value.filter((option) => option.selected);
|
868
981
|
}
|
869
|
-
innerPrintItems.value =
|
982
|
+
innerPrintItems.value = realOptionList.value.filter((option) => !option.selected);
|
870
983
|
if (props.hideButtons.length > 0) {
|
871
984
|
operations.value = operations.value.filter((operation) => !props.hideButtons.includes(operation.key));
|
872
985
|
}
|
@@ -891,9 +1004,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
891
1004
|
list && list.forEach((item) => {
|
892
1005
|
if (!item.format)
|
893
1006
|
return false;
|
894
|
-
formatList.push(...item.format.map((
|
895
|
-
|
896
|
-
|
1007
|
+
formatList.push(...item.format.map((formatItem, index) => {
|
1008
|
+
const noDefault = item.format.every((item1) => item1.defaultFlag == 0);
|
1009
|
+
return Object.assign({}, formatItem, {
|
1010
|
+
templateName: item.name,
|
1011
|
+
defaultFlag: noDefault && index === 0 ? 1 : formatItem.defaultFlag
|
1012
|
+
});
|
1013
|
+
}));
|
897
1014
|
});
|
898
1015
|
return formatList;
|
899
1016
|
};
|
@@ -932,6 +1049,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
932
1049
|
obj[params[keyName]] = defaultVal;
|
933
1050
|
}
|
934
1051
|
});
|
1052
|
+
if (showPreviewDataList.value) {
|
1053
|
+
obj.printPreviewBusinessName = paramObj.printPreviewBusinessName;
|
1054
|
+
}
|
935
1055
|
return obj;
|
936
1056
|
};
|
937
1057
|
const formatItemParam = ({
|
@@ -1017,10 +1137,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1017
1137
|
return templateObj;
|
1018
1138
|
};
|
1019
1139
|
const initCRM = async (formatListResult) => {
|
1020
|
-
var _a
|
1140
|
+
var _a;
|
1021
1141
|
state.formatList = formatListResult ? formatFormatList(formatListResult.obj) : [];
|
1022
1142
|
state.iReportExecuteMode = ((_a = formatListResult == null ? void 0 : formatListResult.obj) == null ? void 0 : _a.length) > 0 ? formatListResult.obj[0].iReportExecuteMode || 1 : 1;
|
1023
|
-
state.number = ((_b = formatListResult == null ? void 0 : formatListResult.obj) == null ? void 0 : _b.length) > 0 ? formatListResult.obj[0].number || "" : "";
|
1024
1143
|
setOptions();
|
1025
1144
|
state.templateParams = mergeTemplateList(formatListResult.obj);
|
1026
1145
|
state.printParams = formatSomeTypeParams(state.templateParams, props.params);
|
@@ -1098,7 +1217,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1098
1217
|
state.printParams = formatSomeTypeParams(state.templateParams, props.params);
|
1099
1218
|
state.originParams = formatSomeOriginParams(state.templateParams, props.params);
|
1100
1219
|
};
|
1101
|
-
const verifiySuccess = (token) => {
|
1220
|
+
const verifiySuccess = (token, templateCode) => {
|
1221
|
+
var _a;
|
1102
1222
|
state.identityVerification.visible = false;
|
1103
1223
|
if (isIReport(state.currentFormatId))
|
1104
1224
|
return callLocalServicesSuccessCb({
|
@@ -1107,10 +1227,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1107
1227
|
}, "edit");
|
1108
1228
|
const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), state.curPrintParamList[0], printCustomProps.value));
|
1109
1229
|
const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(state.curPrintParamList, getTemplateCodeByFormatId.value);
|
1230
|
+
const curFormatIdObj = (_a = state == null ? void 0 : state.formatList) == null ? void 0 : _a.find((item) => item.id == state.currentFormatId);
|
1110
1231
|
const queryParams = {
|
1111
1232
|
formatId: state.currentFormatId,
|
1112
|
-
number:
|
1233
|
+
number: templateCode,
|
1113
1234
|
templateId: getTemplateIdByFormatId.value,
|
1235
|
+
formatItem: curFormatIdObj,
|
1114
1236
|
params,
|
1115
1237
|
token
|
1116
1238
|
};
|
@@ -1187,7 +1309,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1187
1309
|
expose({
|
1188
1310
|
directPrint,
|
1189
1311
|
handleShortcutStartAndStop,
|
1190
|
-
registerShort
|
1312
|
+
registerShort,
|
1313
|
+
hiddenPopover
|
1191
1314
|
});
|
1192
1315
|
return (_ctx, _cache) => {
|
1193
1316
|
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1, [createCommentVNode(" \u5916\u663E\u6309\u94AE\u96C6\u5408 "), createVNode(unref(NButtonGroup), {
|
@@ -1223,6 +1346,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1223
1346
|
}), 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), {
|
1224
1347
|
key: 0,
|
1225
1348
|
trigger: "click",
|
1349
|
+
placement: "bottom-start",
|
1226
1350
|
to: unref(positionElement),
|
1227
1351
|
"show-arrow": false,
|
1228
1352
|
show: downlistPopover.isOutSetting,
|
@@ -1299,6 +1423,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1299
1423
|
}, [createCommentVNode(" \u6253\u5370\u5168\u90E8\u6309\u94AE "), createVNode(unref(NPopover), {
|
1300
1424
|
trigger: "click",
|
1301
1425
|
"show-arrow": false,
|
1426
|
+
placement: "bottom-start",
|
1302
1427
|
to: unref(positionElement),
|
1303
1428
|
show: downlistPopover.oneShow,
|
1304
1429
|
onClickoutside: _cache[10] || (_cache[10] = ($event) => handleClickOutHide("oneShow"))
|
@@ -1323,16 +1448,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1323
1448
|
component: unref(PrintOutline),
|
1324
1449
|
size: "18"
|
1325
1450
|
}, null, 8, ["component"])]),
|
1326
|
-
default: withCtx(() => [createTextVNode(" " + toDisplayString(unref(isShowPrintAllBtn) ? function() {
|
1451
|
+
default: withCtx(() => [createTextVNode(" " + toDisplayString(!unref(isShowPrintAllBtn) || unref(isPrintAllType) == 3 ? __props.btnText : function() {
|
1327
1452
|
var _a, _b, _c;
|
1328
1453
|
try {
|
1329
1454
|
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.475")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.475")) || "\u6253\u5370\u5168\u90E8";
|
1330
1455
|
} catch (e) {
|
1331
1456
|
return "\u6253\u5370\u5168\u90E8";
|
1332
1457
|
}
|
1333
|
-
}()
|
1458
|
+
}()) + " ", 1), unref(printAllShortcut) ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(printAllShortcut)), 1)) : createCommentVNode("v-if", true)]),
|
1334
1459
|
_: 1
|
1335
|
-
}, 16, ["loading", "class"]), createVNode(unref(NButton), mergeProps({
|
1460
|
+
}, 16, ["loading", "class"]), createCommentVNode(" \u53EA\u6709\u4E0B\u62C9\u6846\u6709\u9879\uFF0C\u624D\u5C55\u793A\u56FE\u6807\u6309\u94AE "), createVNode(unref(NButton), mergeProps({
|
1336
1461
|
class: "icon-select"
|
1337
1462
|
}, unref(buttonProps)), {
|
1338
1463
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
@@ -1371,6 +1496,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1371
1496
|
class: "print-lite",
|
1372
1497
|
onClick: _cache[5] || (_cache[5] = ($event) => handleTwoShow("isOutSetting"))
|
1373
1498
|
}, [createElementVNode("span", _hoisted_10, toDisplayString(option.label), 1), createVNode(unref(NIcon), {
|
1499
|
+
class: "print-li-icon",
|
1374
1500
|
color: outerPrintItems.value.length > 0 ? "#2563F4" : "",
|
1375
1501
|
component: unref(SettingsOutline),
|
1376
1502
|
size: "18"
|
@@ -1448,6 +1574,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1448
1574
|
onClickoutside: ($event) => handleClickOutHide(option.key)
|
1449
1575
|
}, {
|
1450
1576
|
trigger: withCtx(() => [createVNode(unref(NIcon), {
|
1577
|
+
class: "print-li-icon",
|
1451
1578
|
component: unref(ArrowForwardOutline),
|
1452
1579
|
size: "18",
|
1453
1580
|
onClick: ($event) => handleTwoShow(option.key)
|
@@ -1458,10 +1585,35 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1458
1585
|
key: operation.key,
|
1459
1586
|
onMouseenter: ($event) => handleTypeChange("twoMouseType", operation.key),
|
1460
1587
|
onMouseleave: _cache[8] || (_cache[8] = ($event) => handleTypeChange("twoMouseType", ""))
|
1461
|
-
}, [
|
1588
|
+
}, [operation.children ? (openBlock(), createBlock(unref(NPopover), {
|
1589
|
+
key: 0,
|
1590
|
+
trigger: "hover",
|
1591
|
+
"show-arrow": false,
|
1592
|
+
to: false,
|
1593
|
+
placement: "right-start",
|
1594
|
+
show: downlistPopover[operation.key]
|
1595
|
+
}, {
|
1596
|
+
trigger: withCtx(() => [createElementVNode("div", _hoisted_19, [createElementVNode("span", _hoisted_20, toDisplayString(operation.label), 1), createVNode(unref(NIcon), {
|
1597
|
+
component: unref(ArrowForward),
|
1598
|
+
size: "18"
|
1599
|
+
}, null, 8, ["component"])])]),
|
1600
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(operation.children, (previewBtn) => {
|
1601
|
+
return openBlock(), createElementBlock("div", {
|
1602
|
+
class: "print-li print-preview-item",
|
1603
|
+
key: previewBtn.key
|
1604
|
+
}, [createElementVNode("div", {
|
1605
|
+
class: "print-lite",
|
1606
|
+
style: {
|
1607
|
+
"background": "transparent"
|
1608
|
+
},
|
1609
|
+
onClick: ($event) => handleSelect(previewBtn.key, option, false)
|
1610
|
+
}, toDisplayString(previewBtn.label), 9, _hoisted_21)]);
|
1611
|
+
}), 128))]),
|
1612
|
+
_: 2
|
1613
|
+
}, 1032, ["show"])) : (openBlock(), createElementBlock("div", _hoisted_22, [createElementVNode("span", {
|
1462
1614
|
class: "label",
|
1463
1615
|
onClick: ($event) => handleSelect(operation.key, option, false)
|
1464
|
-
}, toDisplayString(operation.label), 9,
|
1616
|
+
}, toDisplayString(operation.label), 9, _hoisted_23)]))], 42, _hoisted_18);
|
1465
1617
|
}), 128))])]),
|
1466
1618
|
_: 2
|
1467
1619
|
}, 1032, ["show", "onClickoutside"])) : createCommentVNode("v-if", true)], 2)], 2112))], 42, _hoisted_9);
|
@@ -1472,8 +1624,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1472
1624
|
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => state.identityVerification.visible = $event),
|
1473
1625
|
formatId: state.currentFormatId,
|
1474
1626
|
templateId: unref(getTemplateIdByFormatId),
|
1627
|
+
templateCode: state.identityVerification.templateCode,
|
1475
1628
|
onSuccess: verifiySuccess
|
1476
|
-
}), null, 16, ["modelValue", "formatId", "templateId"])], 64);
|
1629
|
+
}), null, 16, ["modelValue", "formatId", "templateId", "templateCode"])], 64);
|
1477
1630
|
};
|
1478
1631
|
}
|
1479
1632
|
});
|
@@ -110,6 +110,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
110
|
svrUpdateIp: {
|
111
111
|
type: StringConstructor;
|
112
112
|
};
|
113
|
+
apptype: {
|
114
|
+
type: StringConstructor;
|
115
|
+
};
|
116
|
+
uuid: {
|
117
|
+
type: StringConstructor;
|
118
|
+
};
|
113
119
|
hidePreviewBtns: {
|
114
120
|
type: StringConstructor;
|
115
121
|
};
|
@@ -230,6 +236,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
230
236
|
svrUpdateIp: {
|
231
237
|
type: StringConstructor;
|
232
238
|
};
|
239
|
+
apptype: {
|
240
|
+
type: StringConstructor;
|
241
|
+
};
|
242
|
+
uuid: {
|
243
|
+
type: StringConstructor;
|
244
|
+
};
|
233
245
|
hidePreviewBtns: {
|
234
246
|
type: StringConstructor;
|
235
247
|
};
|
@@ -318,6 +330,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
318
330
|
type: StringConstructor;
|
319
331
|
required: false;
|
320
332
|
};
|
333
|
+
templateCode: {
|
334
|
+
type: StringConstructor;
|
335
|
+
required: false;
|
336
|
+
};
|
321
337
|
}, {
|
322
338
|
$message: import("naive-ui").MessageApi;
|
323
339
|
DEFAULT_FORM: {
|
@@ -330,6 +346,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
330
346
|
modelValue: boolean;
|
331
347
|
formatId?: string | undefined;
|
332
348
|
templateId?: string | undefined;
|
349
|
+
templateCode?: string | undefined;
|
333
350
|
};
|
334
351
|
emit: (event: "close" | "success" | "update:modelValue" | "afterLeaveComponent", ...args: any[]) => void;
|
335
352
|
editFormRef: import("vue").Ref<{
|
@@ -418,8 +435,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
418
435
|
}[]>;
|
419
436
|
queryFileList: () => void;
|
420
437
|
onRemove: (options: {
|
421
|
-
file: import("naive-ui").UploadFileInfo;
|
422
|
-
fileList: import("naive-ui").UploadFileInfo[];
|
438
|
+
file: import("naive-ui/es/upload").UploadFileInfo;
|
439
|
+
fileList: import("naive-ui/es/upload").UploadFileInfo[];
|
423
440
|
}) => Promise<unknown>;
|
424
441
|
submit: (datas: AnyObject) => Promise<unknown>;
|
425
442
|
validateFormat: () => boolean;
|
@@ -465,6 +482,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
465
482
|
type: StringConstructor;
|
466
483
|
required: false;
|
467
484
|
};
|
485
|
+
templateCode: {
|
486
|
+
type: StringConstructor;
|
487
|
+
required: false;
|
488
|
+
};
|
468
489
|
}>> & {
|
469
490
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
470
491
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -582,6 +603,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
582
603
|
svrUpdateIp: {
|
583
604
|
type: StringConstructor;
|
584
605
|
};
|
606
|
+
apptype: {
|
607
|
+
type: StringConstructor;
|
608
|
+
};
|
609
|
+
uuid: {
|
610
|
+
type: StringConstructor;
|
611
|
+
};
|
585
612
|
hidePreviewBtns: {
|
586
613
|
type: StringConstructor;
|
587
614
|
};
|