cnhis-design-vue 3.3.1-beta.7 → 3.3.1-release.4
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/_plugin-vue_export-helper.js +9 -1
- package/es/components/ai-chat/index.d.ts +394 -43
- package/es/components/ai-chat/index.js +10 -1
- package/es/components/ai-chat/src/Index.vue.d.ts +394 -43
- package/es/components/ai-chat/src/Index.vue.js +6 -1
- package/es/components/ai-chat/src/Index.vue2.js +175 -1
- package/es/components/ai-chat/src/api/index.d.ts +8 -0
- package/es/components/ai-chat/src/api/index.js +87 -0
- package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +38 -0
- package/es/components/ai-chat/src/components/ChatAudio.vue.js +6 -0
- package/es/components/ai-chat/src/components/ChatAudio.vue2.js +103 -0
- package/es/components/ai-chat/src/components/ChatBI.vue.d.ts +2 -2
- package/es/components/ai-chat/src/components/ChatBI.vue.js +6 -1
- package/es/components/ai-chat/src/components/ChatBI.vue2.js +73 -1
- package/es/components/ai-chat/src/components/ChatCard.js +403 -1
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +75 -31
- package/es/components/ai-chat/src/components/ChatFooter.vue.js +6 -1
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +373 -1
- package/es/components/ai-chat/src/components/ChatMain.d.ts +1 -7
- package/es/components/ai-chat/src/components/ChatMain.js +350 -1
- package/es/components/ai-chat/src/components/ChatMainDefault.d.ts +2 -0
- package/es/components/ai-chat/src/components/ChatMainDefault.js +278 -0
- package/es/components/ai-chat/src/components/ChatPatient.vue.d.ts +2 -2
- package/es/components/ai-chat/src/components/ChatPatient.vue.js +6 -1
- package/es/components/ai-chat/src/components/ChatPatient.vue2.js +218 -1
- package/es/components/ai-chat/src/components/ChatPrompt.vue.d.ts +2 -2
- package/es/components/ai-chat/src/components/ChatPrompt.vue.js +6 -1
- package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +143 -1
- package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +57 -0
- package/es/components/ai-chat/src/components/ChatRight.vue.js +6 -0
- package/es/components/ai-chat/src/components/ChatRight.vue2.js +190 -0
- package/es/components/ai-chat/src/components/card/JsonCard.d.ts +25 -0
- package/es/components/ai-chat/src/components/card/JsonCard.js +574 -0
- package/es/components/ai-chat/src/components/message-render/CardRender.d.ts +16 -0
- package/es/components/ai-chat/src/components/message-render/CardRender.js +80 -0
- package/es/components/ai-chat/src/components/message-render/FormRender.d.ts +16 -0
- package/es/components/ai-chat/src/components/message-render/FormRender.js +173 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.d.ts +36 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.js +6 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue2.js +96 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.d.ts +105 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.js +6 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue2.js +260 -0
- package/es/components/ai-chat/src/components/svgs/AddIcon.vue.js +18 -0
- package/es/components/ai-chat/src/components/svgs/AudioIcon.vue.js +37 -0
- package/es/components/ai-chat/src/components/svgs/KeyboardIcon.vue.js +20 -0
- package/es/components/ai-chat/src/components/svgs/MicroPhone.vue.js +48 -0
- package/es/components/ai-chat/src/hooks/index.d.ts +2 -0
- package/es/components/ai-chat/src/hooks/index.js +2 -0
- package/es/components/ai-chat/src/hooks/useChartAudioContext.d.ts +18 -0
- package/es/components/ai-chat/src/hooks/useChartAudioContext.js +202 -0
- package/es/components/ai-chat/src/hooks/useData.d.ts +77 -0
- package/es/components/ai-chat/src/hooks/useData.js +289 -0
- package/es/components/ai-chat/src/hooks/useFooterContext.d.ts +38 -0
- package/es/components/ai-chat/src/hooks/useFooterContext.js +218 -0
- package/es/components/ai-chat/src/hooks/useProgram.d.ts +14 -0
- package/es/components/ai-chat/src/hooks/useProgram.js +306 -0
- package/es/components/ai-chat/src/hooks/useSSE.d.ts +9 -0
- package/es/components/ai-chat/src/hooks/useSSE.js +138 -0
- package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +4 -0
- package/es/components/ai-chat/src/hooks/useWebsocket.js +66 -0
- package/es/components/ai-chat/src/types/index.d.ts +1 -3
- package/es/components/ai-chat/src/types/index.js +1 -1
- package/es/components/ai-chat/src/utils/index.d.ts +6 -0
- package/es/components/ai-chat/src/utils/index.js +41 -1
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/annotation-edit/index.js +10 -1
- package/es/components/annotation-edit/src/AnnotationEdit.js +223 -1
- package/es/components/audio-sdk/index.d.ts +291 -2
- package/es/components/audio-sdk/index.js +11 -1
- package/es/components/audio-sdk/src/Index.vue.d.ts +291 -0
- package/es/components/audio-sdk/src/Index.vue.js +6 -0
- package/es/components/audio-sdk/src/Index.vue2.js +133 -0
- package/es/components/audio-sdk/src/audioSDK.d.ts +64 -28
- package/es/components/audio-sdk/src/audioSDK.js +387 -1
- package/es/components/audio-sdk/src/components/form.vue.d.ts +6 -4
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +107 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue.js +6 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue2.js +40 -0
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +51 -11
- package/es/components/audio-sdk/src/components/recording.vue.js +6 -1
- package/es/components/audio-sdk/src/components/recording.vue2.js +113 -1
- package/es/components/audio-sdk/src/utils/index.d.ts +7 -0
- package/es/components/audio-sdk/src/utils/index.js +48 -0
- package/es/components/audio-sdk/src/utils/recordingModal.d.ts +1 -3
- package/es/components/audio-sdk/src/utils/recordingModal.js +57 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/index.js +10 -1
- package/es/components/base-search/src/index.vue.js +6 -1
- package/es/components/base-search/src/index.vue2.js +325 -1
- package/es/components/big-table/index.js +15 -1
- package/es/components/big-table/src/BigTable.vue.js +6 -1
- package/es/components/big-table/src/BigTable.vue2.js +2525 -1
- package/es/components/big-table/src/bigTableEmits.js +3 -1
- package/es/components/big-table/src/bigTableProps.js +218 -1
- package/es/components/big-table/src/bigTableState.js +69 -1
- package/es/components/big-table/src/components/NoData.vue.js +6 -1
- package/es/components/big-table/src/components/NoData.vue2.js +74 -1
- package/es/components/big-table/src/components/edit-form/edit-date.js +215 -1
- package/es/components/big-table/src/components/edit-form/edit-input.js +96 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +143 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +6 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue2.js +110 -1
- package/es/components/big-table/src/components/edit-form/edit-time.js +122 -1
- package/es/components/big-table/src/components/edit-form/useCommon.js +23 -1
- package/es/components/big-table/src/components/input-button.vue.js +6 -1
- package/es/components/big-table/src/components/input-button.vue2.js +38 -1
- package/es/components/big-table/src/components/separate.vue.js +6 -1
- package/es/components/big-table/src/components/separate.vue2.js +37 -1
- package/es/components/big-table/src/constants/index.js +3 -1
- package/es/components/big-table/src/hooks/index.js +9 -1
- package/es/components/big-table/src/hooks/useAnchor.js +56 -1
- package/es/components/big-table/src/hooks/useAnnotation.js +21 -1
- package/es/components/big-table/src/hooks/useBatchEditing.js +302 -1
- package/es/components/big-table/src/hooks/useEdit.js +144 -1
- package/es/components/big-table/src/hooks/useEvent.js +116 -1
- package/es/components/big-table/src/hooks/useFormat.js +519 -1
- package/es/components/big-table/src/hooks/useNestTable.js +101 -1
- package/es/components/big-table/src/hooks/useSeparateRow.js +209 -1
- package/es/components/big-table/src/hooks/useTableParse.js +142 -1
- package/es/components/big-table/src/utils.js +653 -1
- package/es/components/body-select/index.js +10 -1
- package/es/components/body-select/src/config/index.js +103 -1
- package/es/components/body-select/src/hooks/renderCanvas.js +94 -1
- package/es/components/body-select/src/index.vue.js +6 -1
- package/es/components/body-select/src/index.vue2.js +137 -1
- package/es/components/bpmn-workflow/index.js +10 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +6 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue2.js +269 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1480 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +99 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +114 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +40 -1
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +14 -1
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +10 -1
- package/es/components/branch-notice/index.js +10 -1
- package/es/components/branch-notice/src/BranchNotice.vue.js +6 -1
- package/es/components/branch-notice/src/BranchNotice.vue2.js +128 -1
- package/es/components/branch-notice/src/canstants.js +10 -1
- package/es/components/branch-notice/src/components/NoticeItem.vue.js +6 -1
- package/es/components/branch-notice/src/components/NoticeItem.vue2.js +110 -1
- package/es/components/branch-notice/src/components/NoticeItemAside.vue.js +6 -1
- package/es/components/branch-notice/src/components/NoticeItemAside.vue2.js +71 -1
- package/es/components/branch-notice/src/components/NoticeOperationList.vue.js +6 -1
- package/es/components/branch-notice/src/components/NoticeOperationList.vue2.js +57 -1
- package/es/components/branch-notice/src/drawLine.js +183 -1
- package/es/components/branch-notice/src/hooks/useTheme.js +31 -1
- package/es/components/button-print/index.d.ts +30 -0
- package/es/components/button-print/index.js +12 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +30 -0
- package/es/components/button-print/src/ButtonPrint.vue.js +6 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +164 -1
- package/es/components/button-print/src/api.js +43 -1
- package/es/components/button-print/src/components/EditFormat.vue.js +6 -1
- package/es/components/button-print/src/components/EditFormat.vue2.js +178 -1
- package/es/components/button-print/src/components/IdentityVerification.vue.js +6 -1
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +199 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue.js +6 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1314 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue.js +6 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +714 -1
- package/es/components/button-print/src/components/Preview.vue.js +6 -1
- package/es/components/button-print/src/components/Preview.vue2.js +78 -1
- package/es/components/button-print/src/constants/index.js +3 -1
- package/es/components/button-print/src/utils/browserPrint.js +60 -1
- package/es/components/button-print/src/utils/dialog.js +102 -1
- package/es/components/button-print/src/utils/index.js +2 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -2
- package/es/components/button-print/src/utils/print.js +1146 -1
- package/es/components/calendar/index.d.ts +126 -3
- package/es/components/calendar/index.js +10 -1
- package/es/components/calendar/src/Calendar.vue.d.ts +126 -2
- package/es/components/calendar/src/Calendar.vue.js +6 -1
- package/es/components/calendar/src/Calendar.vue2.js +262 -1
- package/es/components/callback/index.js +10 -1
- package/es/components/callback/src/components/dialog/drawer.vue.js +6 -1
- package/es/components/callback/src/components/dialog/drawer.vue2.js +123 -1
- package/es/components/callback/src/components/dialog/modal.vue.js +6 -1
- package/es/components/callback/src/components/dialog/modal.vue2.js +134 -1
- package/es/components/callback/src/components/popup/index.vue.js +87 -1
- package/es/components/callback/src/components/render/drawerIframe/index.vue.js +6 -1
- package/es/components/callback/src/components/render/drawerIframe/index.vue2.js +170 -1
- package/es/components/callback/src/components/render/enums.js +7 -1
- package/es/components/callback/src/components/render/index.vue.js +152 -1
- package/es/components/callback/src/components/render/popupMaps.js +30 -1
- package/es/components/callback/src/index.vue.js +6 -1
- package/es/components/callback/src/index.vue2.js +33 -1
- package/es/components/card-reader-sdk/index.js +2 -1
- package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +4 -8
- package/es/components/card-reader-sdk/src/cardReaderSDK.js +169 -1
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue.js +6 -1
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +63 -1
- package/es/components/card-reader-sdk/src/constants/index.js +162 -1
- package/es/components/card-reader-sdk/src/insuranceSDK.js +116 -1
- package/es/components/card-reader-sdk/src/utils/ensureUID2IdCard.js +42 -1
- package/es/components/card-reader-sdk/src/utils/index.js +31 -1
- package/es/components/card-reader-sdk/src/utils/readHealthCard.js +61 -1
- package/es/components/card-reader-sdk-cn/index.js +10 -1
- package/es/components/card-reader-sdk-cn/src/henan/index.js +200 -1
- package/es/components/card-render/index.js +10 -1
- package/es/components/card-render/src/CardRender.vue.js +6 -1
- package/es/components/card-render/src/CardRender.vue2.js +77 -1
- package/es/components/card-render/src/components/Box.vue.js +6 -1
- package/es/components/card-render/src/components/Box.vue2.js +91 -1
- package/es/components/card-render/src/components/Button.vue.d.ts +3 -0
- package/es/components/card-render/src/components/Button.vue.js +6 -1
- package/es/components/card-render/src/components/Button.vue2.js +103 -1
- package/es/components/card-render/src/components/Divider.vue.js +6 -1
- package/es/components/card-render/src/components/Divider.vue2.js +42 -1
- package/es/components/card-render/src/components/Field.vue.js +6 -1
- package/es/components/card-render/src/components/Field.vue2.js +186 -1
- package/es/components/card-render/src/components/FieldGroup.vue.js +6 -1
- package/es/components/card-render/src/components/FieldGroup.vue2.js +127 -1
- package/es/components/card-render/src/components/Image.vue.js +6 -1
- package/es/components/card-render/src/components/Image.vue2.js +78 -1
- package/es/components/card-render/src/components/Label.vue.js +6 -1
- package/es/components/card-render/src/components/Label.vue2.js +75 -1
- package/es/components/card-render/src/components/Row.vue.js +6 -1
- package/es/components/card-render/src/components/Row.vue2.js +130 -1
- package/es/components/card-render/src/components/ScaleView.vue.d.ts +39 -0
- package/es/components/card-render/src/components/ScaleView.vue.js +6 -0
- package/es/components/card-render/src/components/ScaleView.vue2.js +88 -0
- package/es/components/card-render/src/components/Slot.js +65 -1
- package/es/components/card-render/src/components/Table.vue.d.ts +104 -0
- package/es/components/card-render/src/components/Table.vue.js +6 -0
- package/es/components/card-render/src/components/Table.vue2.js +141 -0
- package/es/components/card-render/src/components/Text.vue.d.ts +1 -0
- package/es/components/card-render/src/components/Text.vue.js +6 -1
- package/es/components/card-render/src/components/Text.vue2.js +69 -1
- package/es/components/card-render/src/components/index.d.ts +139 -0
- package/es/components/card-render/src/components/index.js +34 -1
- package/es/components/card-render/src/constants/index.d.ts +4 -1
- package/es/components/card-render/src/constants/index.js +19 -1
- package/es/components/card-render/src/hooks/useCommon.js +43 -1
- package/es/components/card-render/src/utils/index.js +93 -1
- package/es/components/card-render/style/index.css +1 -1
- package/es/components/classification/index.js +10 -1
- package/es/components/classification/src/components/search-filter/index.vue.js +6 -1
- package/es/components/classification/src/components/search-filter/index.vue2.js +182 -1
- package/es/components/classification/src/components/set-classification/index.vue.js +6 -1
- package/es/components/classification/src/components/set-classification/index.vue2.js +214 -1
- package/es/components/classification/src/components/table-modal/index.vue.js +6 -1
- package/es/components/classification/src/components/table-modal/index.vue2.js +404 -1
- package/es/components/classification/src/const/index.js +3 -1
- package/es/components/classification/src/index.vue.js +6 -1
- package/es/components/classification/src/index.vue2.js +854 -1
- package/es/components/config-provider/index.js +10 -1
- package/es/components/config-provider/src/ConfigProvider.js +47 -1
- package/es/components/config-provider/src/utils/index.js +18 -1
- package/es/components/date-picker/index.js +10 -1
- package/es/components/date-picker/src/DatePicker.vue.js +6 -1
- package/es/components/date-picker/src/DatePicker.vue2.js +275 -1
- package/es/components/default-page/index.js +10 -1
- package/es/components/default-page/src/constants/index.js +126 -1
- package/es/components/default-page/src/index.vue.js +6 -1
- package/es/components/default-page/src/index.vue2.js +97 -1
- package/es/components/drag-scroll/index.js +1 -1
- package/es/components/drag-scroll/src/index.js +156 -1
- package/es/components/editor/index.js +10 -1
- package/es/components/editor/src/Editor.js +80 -1
- package/es/components/editor/style/index.css +1 -0
- package/es/components/expand-field/index.js +10 -1
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue.js +6 -1
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +142 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue.js +6 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue2.js +169 -1
- package/es/components/expand-field/src/components/PersonModal.vue.js +6 -1
- package/es/components/expand-field/src/components/PersonModal.vue2.js +130 -1
- package/es/components/expand-field/src/components/form.vue.js +6 -1
- package/es/components/expand-field/src/components/form.vue2.js +1116 -1
- package/es/components/expand-field/src/constants/index.js +3 -1
- package/es/components/expand-field/src/hooks/useAsyncData.js +35 -1
- package/es/components/expand-field/src/index.vue.js +6 -1
- package/es/components/expand-field/src/index.vue2.js +263 -1
- package/es/components/expand-field/src/utils/constant.js +50 -1
- package/es/components/expand-field/src/utils/index.js +22 -1
- package/es/components/expand-field/src/utils/tool.js +29 -1
- package/es/components/fabric-chart/index.d.ts +6 -2
- package/es/components/fabric-chart/index.js +10 -1
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +6 -2
- package/es/components/fabric-chart/src/FabricChart.vue.js +6 -1
- package/es/components/fabric-chart/src/FabricChart.vue2.js +174 -1
- package/es/components/fabric-chart/src/components/PopupMenu.js +112 -1
- package/es/components/fabric-chart/src/components/PopupTip.vue.js +6 -1
- package/es/components/fabric-chart/src/components/PopupTip.vue2.js +69 -1
- package/es/components/fabric-chart/src/components/useStyle.js +43 -1
- package/es/components/fabric-chart/src/constants/index.js +89 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +918 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +210 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +261 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +221 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +241 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +554 -1
- package/es/components/fabric-chart/src/hooks/index.js +12 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +384 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +173 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.js +4 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +919 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +272 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1027 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +356 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +847 -1
- package/es/components/fabric-chart/src/hooks/temperature/index.js +6 -1
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +93 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1101 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +352 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +201 -1
- package/es/components/fabric-chart/src/hooks/temperature/useRight.js +21 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +420 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +169 -1
- package/es/components/fabric-chart/src/hooks/useCommon.js +70 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +151 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +370 -1
- package/es/components/fabric-chart/src/hooks/useEvent.js +134 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +83 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +75 -1
- package/es/components/fabric-chart/src/hooks/useShadow.js +137 -1
- package/es/components/fabric-chart/src/interface.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/index.js +94 -1
- package/es/components/field-editor/index.js +10 -1
- package/es/components/field-editor/src/FieldEditor.vue.js +6 -1
- package/es/components/field-editor/src/FieldEditor.vue2.js +90 -1
- package/es/components/field-editor/src/fields.js +200 -1
- package/es/components/field-set/index.js +10 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldColor.vue.js +6 -1
- package/es/components/field-set/src/FieldColor.vue2.js +240 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.js +6 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +302 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.js +6 -1
- package/es/components/field-set/src/FieldSet.vue2.js +573 -1
- package/es/components/field-set/src/Index.vue.js +6 -1
- package/es/components/field-set/src/Index.vue2.js +184 -1
- package/es/components/field-set/src/TableStyle.vue.js +6 -1
- package/es/components/field-set/src/TableStyle.vue2.js +149 -1
- package/es/components/field-set/src/components/condition.vue.js +6 -1
- package/es/components/field-set/src/components/condition.vue2.js +440 -1
- package/es/components/field-set/src/components/edit-dialog.vue.js +6 -1
- package/es/components/field-set/src/components/edit-dialog.vue2.js +315 -1
- package/es/components/field-set/src/components/edit-filter.vue.js +6 -1
- package/es/components/field-set/src/components/edit-filter.vue2.js +55 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue.js +6 -1
- package/es/components/field-set/src/components/table-row.vue2.js +532 -1
- package/es/components/field-set/src/constants/filter.js +109 -1
- package/es/components/field-set/src/constants/index.js +225 -1
- package/es/components/field-set/src/utils/index.js +112 -1
- package/es/components/form-config/index.d.ts +35 -10
- package/es/components/form-config/index.js +11 -1
- package/es/components/form-config/src/FormConfig.vue.d.ts +35 -10
- package/es/components/form-config/src/FormConfig.vue.js +6 -1
- package/es/components/form-config/src/FormConfig.vue2.js +245 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +6 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue2.js +105 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +6 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +60 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +28 -8
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +6 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +199 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +7 -2
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +6 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +625 -1
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +63 -1
- package/es/components/form-config/src/components/index.js +6 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +6 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue2.js +46 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +6 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +62 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +6 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +80 -1
- package/es/components/form-config/src/components/renderer/index.js +3 -1
- package/es/components/form-config/src/constants/index.js +198 -1
- package/es/components/form-config/src/hooks/index.js +3 -1
- package/es/components/form-config/src/hooks/useConfigurationField.js +123 -1
- package/es/components/form-config/src/hooks/useDataNormalize.js +53 -1
- package/es/components/form-config/src/hooks/useLocale.js +62 -1
- package/es/components/form-config/src/hooks/usePresetRenderer.js +36 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +100 -1
- package/es/components/form-config/src/utils/index.js +52 -1
- package/es/components/form-render/index.js +39 -1
- package/es/components/form-render/src/FormRender.vue.js +6 -1
- package/es/components/form-render/src/FormRender.vue2.js +507 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.js +6 -1
- package/es/components/form-render/src/FormRenderWrapper.vue2.js +44 -1
- package/es/components/form-render/src/components/renderer/combination/combination.js +102 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/index.js +2 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +82 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/useDeepValidate.js +34 -1
- package/es/components/form-render/src/components/renderer/combination/index.js +3 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +190 -1
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +160 -1
- package/es/components/form-render/src/components/renderer/complex.js +46 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/date.js +210 -1
- package/es/components/form-render/src/components/renderer/formItem.js +370 -1
- package/es/components/form-render/src/components/renderer/index.js +45 -1
- package/es/components/form-render/src/components/renderer/input.js +87 -1
- package/es/components/form-render/src/components/renderer/inputGroup.js +13 -1
- package/es/components/form-render/src/components/renderer/inputNumber.js +105 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +154 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +6 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +131 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.js +11 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +246 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.js +227 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +323 -1
- package/es/components/form-render/src/components/renderer/select.js +395 -1
- package/es/components/form-render/src/components/renderer/simpleComponent.js +54 -1
- package/es/components/form-render/src/components/renderer/slider.js +38 -1
- package/es/components/form-render/src/components/renderer/switch.js +113 -1
- package/es/components/form-render/src/components/renderer/text.js +112 -1
- package/es/components/form-render/src/components/renderer/textarea.js +65 -1
- package/es/components/form-render/src/components/renderer/time.js +27 -1
- package/es/components/form-render/src/components/tooltipMessage.vue.js +6 -1
- package/es/components/form-render/src/components/tooltipMessage.vue2.js +44 -1
- package/es/components/form-render/src/constants/index.js +47 -1
- package/es/components/form-render/src/hooks/index.js +25 -1
- package/es/components/form-render/src/hooks/useAnchor.js +108 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +137 -1
- package/es/components/form-render/src/hooks/useChangeContext.js +22 -1
- package/es/components/form-render/src/hooks/useCommonInjection.js +58 -1
- package/es/components/form-render/src/hooks/useCommonLog.js +12 -1
- package/es/components/form-render/src/hooks/useComplexOptions.js +189 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +416 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +253 -1
- package/es/components/form-render/src/hooks/useFieldVisitor.js +60 -1
- package/es/components/form-render/src/hooks/useFormContext.js +83 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +281 -1
- package/es/components/form-render/src/hooks/useFormField.js +14 -1
- package/es/components/form-render/src/hooks/useFormGraph.js +18 -1
- package/es/components/form-render/src/hooks/useFormItemDeps.js +54 -1
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +12 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +400 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +151 -1
- package/es/components/form-render/src/hooks/useLowCodeEvent.js +33 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +86 -1
- package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +87 -1
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +39 -1
- package/es/components/form-render/src/hooks/useOperationalForm.js +55 -1
- package/es/components/form-render/src/hooks/usePresetScope.js +37 -1
- package/es/components/form-render/src/hooks/useSelectedSetting.js +27 -1
- package/es/components/form-render/src/hooks/useWordbookSetting.js +54 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +8 -3
- package/es/components/form-render/src/utils/business.js +208 -1
- package/es/components/form-render/src/utils/dom.js +45 -1
- package/es/components/form-render/src/utils/index.js +363 -1
- package/es/components/form-render/src/utils/schema.js +133 -1
- package/es/components/form-render/src/utils/valueFormatter.js +30 -1
- package/es/components/grid/index.js +11 -1
- package/es/components/grid/src/Grid.js +28 -1
- package/es/components/grid/src/hooks.js +18 -1
- package/es/components/guide/index.js +1 -1
- package/es/components/guide/src/renderer.d.ts +2 -2
- package/es/components/guide/src/renderer.js +155 -1
- package/es/components/guide/src/useGuide.js +210 -1
- package/es/components/guide/src/utils/index.js +285 -1
- package/es/components/iho-chat/index.d.ts +206 -4
- package/es/components/iho-chat/index.js +10 -1
- package/es/components/iho-chat/src/Index.vue.d.ts +206 -4
- package/es/components/iho-chat/src/Index.vue.js +6 -1
- package/es/components/iho-chat/src/Index.vue2.js +159 -1
- package/es/components/iho-chat/src/api/index.d.ts +1 -0
- package/es/components/iho-chat/src/api/index.js +176 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +8 -0
- package/es/components/iho-chat/src/components/ChatAdd.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +682 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +11 -3
- package/es/components/iho-chat/src/components/ChatFile.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +266 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +7 -0
- package/es/components/iho-chat/src/components/ChatFooter.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +640 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +96 -2
- package/es/components/iho-chat/src/components/ChatHeader.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +231 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +77 -0
- package/es/components/iho-chat/src/components/ChatMain.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +635 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +71 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +441 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +8 -2
- package/es/components/iho-chat/src/components/ChatSearch.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +431 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +10 -0
- package/es/components/iho-chat/src/components/ChatSet.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +433 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +244 -1
- package/es/components/iho-chat/src/components/MessageEvent.vue.js +6 -1
- package/es/components/iho-chat/src/components/MessageEvent.vue2.js +146 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +70 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.js +6 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue2.js +154 -1
- package/es/components/iho-chat/src/components/MessageTemplate.vue.js +6 -1
- package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +201 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +7 -0
- package/es/components/iho-chat/src/components/MultipleVideo.vue.js +6 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +421 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +3 -0
- package/es/components/iho-chat/src/components/PersonProfile.vue.js +6 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +228 -1
- package/es/components/iho-chat/src/components/SelectLabel.vue.js +6 -1
- package/es/components/iho-chat/src/components/SelectLabel.vue2.js +128 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +3 -1
- package/es/components/iho-chat/src/components/SiderList.vue.js +6 -1
- package/es/components/iho-chat/src/components/SiderList.vue2.js +340 -1
- package/es/components/iho-chat/src/components/Video.vue.js +6 -1
- package/es/components/iho-chat/src/components/Video.vue2.js +303 -1
- package/es/components/iho-chat/src/components/userItemRender.js +58 -1
- package/es/components/iho-chat/src/constants/index.d.ts +9 -2
- package/es/components/iho-chat/src/constants/index.js +51 -1
- package/es/components/iho-chat/src/hooks/index.js +3 -1
- package/es/components/iho-chat/src/hooks/useData.js +403 -1
- package/es/components/iho-chat/src/hooks/useSearchPatientList.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useSearchPatientList.js +82 -0
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +82 -1
- package/es/components/iho-chat/src/hooks/useVideo.js +110 -1
- package/es/components/iho-chat/src/hooks/useWebSocket.js +220 -1
- package/es/components/iho-chat/src/utils/asyncQueue.js +36 -1
- package/es/components/iho-chat/src/utils/chatSock.js +82 -1
- package/es/components/iho-chat/src/utils/emoji.js +14 -1
- package/es/components/iho-chat/src/utils/index.d.ts +6 -0
- package/es/components/iho-chat/src/utils/index.js +259 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +3 -0
- package/es/components/iho-table/index.js +73 -1
- package/es/components/iho-table/src/IhoTable.vue.js +6 -1
- package/es/components/iho-table/src/IhoTable.vue2.js +368 -1
- package/es/components/iho-table/src/constants/index.js +97 -1
- package/es/components/iho-table/src/hooks/export.js +2 -1
- package/es/components/iho-table/src/hooks/index.js +2 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +167 -1
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +45 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -3
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +31 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +29 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +118 -1
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +28 -1
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +31 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +28 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +172 -1
- package/es/components/iho-table/src/hooks/useTableContext.js +25 -1
- package/es/components/iho-table/src/hooks/useTablePlugin.js +32 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/index.js +19 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +54 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +96 -1
- package/es/components/iho-table/src/plugins/bindEventSettingPlugin.js +38 -1
- package/es/components/iho-table/src/plugins/colorAndIconPlugin.js +48 -1
- package/es/components/iho-table/src/plugins/copyPastePlugin.js +117 -1
- package/es/components/iho-table/src/plugins/crossHeaderPlugin.js +143 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin.js +79 -1
- package/es/components/iho-table/src/plugins/defaultValuePlugin.js +49 -1
- package/es/components/iho-table/src/plugins/dragScrollPlugin.js +99 -1
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue.js +6 -1
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +324 -1
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/index.js +60 -1
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/treeFilter.vue.js +10 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +6 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +46 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +75 -1
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/index.js +49 -1
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue.js +6 -1
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +119 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +6 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +303 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +189 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.js +6 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +91 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/index.js +78 -1
- package/es/components/iho-table/src/plugins/filterVisibleEventPlugin.js +35 -1
- package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.js +111 -1
- package/es/components/iho-table/src/plugins/headerPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +115 -1
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.js +6 -1
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue2.js +40 -1
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +56 -1
- package/es/components/iho-table/src/plugins/index.d.ts +79 -3
- package/es/components/iho-table/src/plugins/index.js +81 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin.js +73 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +118 -1
- package/es/components/iho-table/src/plugins/maxCheckSizePlugin.js +36 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin.js +57 -1
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/index.js +115 -1
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/utils.js +56 -1
- package/es/components/iho-table/src/plugins/pluginHooks/index.js +1 -1
- package/es/components/iho-table/src/plugins/pluginHooks/useFilter.js +38 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +6 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +207 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +94 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +35 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +20 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +107 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +89 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.js +6 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue2.js +117 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +102 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.js +70 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +338 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +268 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +21 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +6 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +125 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +321 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +52 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/switchRendererPlugin.js +92 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +6 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +233 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +88 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +107 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +49 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +60 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.js +48 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +56 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +92 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +69 -1
- package/es/components/iho-table/src/plugins/rowClickPlugin.js +42 -1
- package/es/components/iho-table/src/plugins/rowDragPlugin.js +187 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +38 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +58 -1
- package/es/components/iho-table/src/plugins/stickyFixedPlugin.js +300 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin.js +446 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/index.js +80 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/constants.js +3 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.js +37 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useColumn2Data.js +33 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useCurrentColumn.js +52 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useData2Column.js +54 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEditCell.js +96 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEventConvert.js +46 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useExpose.js +18 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useHeaderCSS.js +45 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useHoverColumn.js +77 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowClassName.js +65 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowHeight.js +20 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useTriggerRow.js +35 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/renderer.js +165 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +290 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin.js +133 -1
- package/es/components/iho-table/src/plugins/wordbookSettingPlugin.js +41 -1
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
- package/es/components/iho-table/src/types/pluginType.js +16 -1
- package/es/components/iho-table/src/utils/index.js +347 -1
- package/es/components/iho-table/src/utils/separateMap.js +17 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +226 -1
- package/es/components/info-header/index.js +10 -1
- package/es/components/info-header/src/InfoHeader.vue.js +6 -1
- package/es/components/info-header/src/InfoHeader.vue2.js +190 -1
- package/es/components/info-header/src/components/index.js +2 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +6 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +190 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +6 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +69 -1
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +6 -1
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue2.js +85 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +6 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +43 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.js +6 -1
- package/es/components/info-header/src/components/infoDescription/index.vue2.js +155 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.js +6 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +248 -1
- package/es/components/info-header/src/constants/index.js +4 -1
- package/es/components/info-header/src/hooks/useThemeOverrides.js +52 -1
- package/es/components/keyboard/index.js +10 -1
- package/es/components/keyboard/src/Keyboard.vue.js +6 -1
- package/es/components/keyboard/src/Keyboard.vue2.js +203 -1
- package/es/components/keyboard/src/components/InputNumber.vue.js +6 -1
- package/es/components/keyboard/src/components/InputNumber.vue2.js +88 -1
- package/es/components/keyboard/src/components/NumberPanel.vue.js +6 -1
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +329 -1
- package/es/components/keyboard/src/constants/index.js +6 -1
- package/es/components/keyboard/src/utils/index.js +5 -1
- package/es/components/map/index.js +10 -1
- package/es/components/map/src/Map.vue.js +6 -1
- package/es/components/map/src/Map.vue2.js +360 -1
- package/es/components/picture-clipper/index.js +10 -1
- package/es/components/picture-clipper/src/PictureClipper.vue.js +6 -1
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +232 -1
- package/es/components/quick-search/index.js +10 -1
- package/es/components/quick-search/src/index.vue.js +6 -1
- package/es/components/quick-search/src/index.vue2.js +526 -1
- package/es/components/recommend-search/index.js +10 -1
- package/es/components/recommend-search/src/RecommendSearch.vue.js +6 -1
- package/es/components/recommend-search/src/RecommendSearch.vue2.js +121 -1
- package/es/components/recommend-search/src/components/BaseSearch.js +173 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +6 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue2.js +162 -1
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +6 -1
- package/es/components/recommend-search/src/components/RecommendMenu.vue2.js +90 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +6 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +174 -1
- package/es/components/recommend-search/src/constant/index.js +9 -1
- package/es/components/scale-view/index.d.ts +14 -1
- package/es/components/scale-view/index.js +34 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +14 -1
- package/es/components/scale-view/src/ScaleView.vue.js +6 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +297 -1
- package/es/components/scale-view/src/components/AnswerParse.vue.js +6 -1
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +82 -1
- package/es/components/scale-view/src/components/DescribeContent.vue.js +6 -1
- package/es/components/scale-view/src/components/DescribeContent.vue2.js +28 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +6 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +295 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue.js +6 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +139 -1
- package/es/components/scale-view/src/components/LoadingCom.vue.js +17 -1
- package/es/components/scale-view/src/components/NoData.vue.js +6 -1
- package/es/components/scale-view/src/components/NoData.vue2.js +74 -1
- package/es/components/scale-view/src/components/ScaleScore.js +63 -1
- package/es/components/scale-view/src/components/composables/choose-common.js +84 -1
- package/es/components/scale-view/src/components/formitem/address.js +3993 -1
- package/es/components/scale-view/src/components/formitem/r-address.js +226 -1
- package/es/components/scale-view/src/components/formitem/r-cascader.js +134 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +325 -1
- package/es/components/scale-view/src/components/formitem/r-collection.js +111 -1
- package/es/components/scale-view/src/components/formitem/r-datetime.js +303 -1
- package/es/components/scale-view/src/components/formitem/r-input.js +108 -1
- package/es/components/scale-view/src/components/formitem/r-map.js +108 -1
- package/es/components/scale-view/src/components/formitem/r-radio.js +291 -1
- package/es/components/scale-view/src/components/formitem/r-select.js +244 -1
- package/es/components/scale-view/src/components/formitem/r-sign.js +184 -1
- package/es/components/scale-view/src/components/formitem/r-upload.js +221 -1
- package/es/components/scale-view/src/components/formitem/sign-com.js +307 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.js +128 -1
- package/es/components/scale-view/src/directive/drag-move.js +135 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +483 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +548 -1
- package/es/components/scale-view/src/hooks/scaleview-methods.js +182 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +120 -1
- package/es/components/scale-view/src/hooks/scaleview-state.js +42 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +300 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +209 -1
- package/es/components/scale-view/src/hooks/use-component.js +86 -1
- package/es/components/scale-view/src/hooks/use-evaluate.js +143 -1
- package/es/components/scale-view/src/hooks/use-event.js +147 -1
- package/es/components/scale-view/src/hooks/use-noData.js +41 -1
- package/es/components/scale-view/src/utils/judge-types.js +67 -1
- package/es/components/search-cascader/index.js +10 -1
- package/es/components/search-cascader/src/SearchCascader.vue.js +6 -1
- package/es/components/search-cascader/src/SearchCascader.vue2.js +309 -1
- package/es/components/search-cascader/src/components/ClearIcon.vue.js +32 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +320 -1
- package/es/components/search-cascader/src/components/index.js +1 -1
- package/es/components/search-cascader/src/constants/index.js +6 -1
- package/es/components/search-cascader/src/utils/index.js +11 -1
- package/es/components/select-label/index.js +15 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +6 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +450 -1
- package/es/components/select-label/src/SelectLabel.vue.js +6 -1
- package/es/components/select-label/src/SelectLabel.vue2.js +473 -1
- package/es/components/select-label/src/components/label-classify.vue.js +6 -1
- package/es/components/select-label/src/components/label-classify.vue2.js +150 -1
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.js +6 -1
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +146 -1
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.js +6 -1
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +214 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.js +6 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +106 -1
- package/es/components/select-label/src/index.vue.js +6 -1
- package/es/components/select-label/src/index.vue2.js +104 -1
- package/es/components/select-person/index.js +10 -1
- package/es/components/select-person/src/SelectPerson.vue.js +6 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +857 -1
- package/es/components/select-person/src/SelectPersonType.vue.js +6 -1
- package/es/components/select-person/src/SelectPersonType.vue2.js +532 -1
- package/es/components/select-person/src/components/SearchMultiple.vue.js +6 -1
- package/es/components/select-person/src/components/SearchMultiple.vue2.js +196 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue.js +6 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +269 -1
- package/es/components/select-person/src/constants/index.js +3 -1
- package/es/components/select-person/src/index.vue.js +6 -1
- package/es/components/select-person/src/index.vue2.js +146 -1
- package/es/components/select-person/src/types/enums.js +15 -1
- package/es/components/select-person/src/utils/index.js +113 -1
- package/es/components/shortcut-provider/index.js +12 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +6 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +52 -1
- package/es/components/shortcut-provider/src/constants/index.js +8 -1
- package/es/components/shortcut-provider/src/hooks/index.js +2 -1
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +15 -1
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +213 -1
- package/es/components/shortcut-provider/src/utils/index.js +108 -1
- package/es/components/shortcut-setter/index.d.ts +7 -2
- package/es/components/shortcut-setter/index.js +10 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +7 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +6 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +127 -1
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +6 -1
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +105 -1
- package/es/components/slider-tree/index.js +11 -1
- package/es/components/slider-tree/src/hooks/useAsyncData.js +35 -1
- package/es/components/slider-tree/src/index.vue.js +6 -1
- package/es/components/slider-tree/src/index.vue2.js +253 -1
- package/es/components/slider-tree/src/utils/index.js +10 -1
- package/es/components/slider-tree/src/utils/tool.js +12 -1
- package/es/components/step-notice/index.js +10 -1
- package/es/components/step-notice/src/StepNotice.vue.js +6 -1
- package/es/components/step-notice/src/StepNotice.vue2.js +113 -1
- package/es/components/step-notice/src/components/NoticeConnection.vue.js +6 -1
- package/es/components/step-notice/src/components/NoticeConnection.vue2.js +94 -1
- package/es/components/step-notice/src/components/NoticeItem.vue.js +6 -1
- package/es/components/step-notice/src/components/NoticeItem.vue2.js +112 -1
- package/es/components/step-notice/src/components/NoticeItemAside.vue.js +6 -1
- package/es/components/step-notice/src/components/NoticeItemAside.vue2.js +71 -1
- package/es/components/step-notice/src/components/NoticeOperationList.vue.js +6 -1
- package/es/components/step-notice/src/components/NoticeOperationList.vue2.js +57 -1
- package/es/components/step-notice/src/hooks/useTheme.js +31 -1
- package/es/components/step-notice/src/utils.js +10 -1
- package/es/components/steps-wheel/index.d.ts +18 -0
- package/es/components/steps-wheel/index.js +10 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +18 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.js +6 -1
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +514 -1
- package/es/components/steps-wheel/src/constants/index.js +7 -1
- package/es/components/table-export-field/index.js +10 -1
- package/es/components/table-export-field/src/components/ExportModal.vue.js +6 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +374 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +6 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +249 -1
- package/es/components/table-export-field/src/constants/index.js +3 -1
- package/es/components/table-export-field/src/hooks/useAsyncData.js +35 -1
- package/es/components/table-export-field/src/index.vue.js +6 -1
- package/es/components/table-export-field/src/index.vue2.js +178 -1
- package/es/components/table-export-field/src/tool.js +12 -1
- package/es/components/table-filter/index.js +2 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.js +6 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +98 -1
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.js +6 -1
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue2.js +63 -1
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.js +6 -1
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue2.js +43 -1
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.js +6 -1
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue2.js +38 -1
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.js +6 -1
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue2.js +60 -1
- package/es/components/table-filter/src/components/bi-filter/components/index.js +8 -1
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +166 -1
- package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +155 -1
- package/es/components/table-filter/src/components/bi-filter/index.vue.js +6 -1
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +385 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +119 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +127 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +230 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +83 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +35 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +84 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +302 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +64 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +127 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue2.js +137 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.js +13 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +12 -1
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +82 -1
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +88 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +368 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue2.js +60 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +157 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +119 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +76 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +210 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +125 -1
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +70 -1
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +86 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +195 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +121 -1
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +78 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +327 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +213 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectTree.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectTree.vue2.js +52 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue2.js +138 -1
- package/es/components/table-filter/src/components/render-widget/components/index.js +17 -1
- package/es/components/table-filter/src/components/render-widget/enums.js +47 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +160 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +519 -1
- package/es/components/table-filter/src/components/render-widget/helpers/enums.js +58 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +156 -1
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +9 -1
- package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.js +75 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +172 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +495 -1
- package/es/components/table-filter/src/constants/index.js +6 -1
- package/es/components/table-filter/src/directive/resize.js +13 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +230 -1
- package/es/components/table-filter/src/hooks/useAsyncData.js +31 -1
- package/es/components/table-filter/src/hooks/useMixins.js +41 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +132 -1
- package/es/components/table-filter/src/tool/baseOptions.js +60 -1
- package/es/components/table-filter/src/tool/resizeSensor.js +123 -1
- package/es/components/table-filter/src/tool/transformData.js +168 -1
- package/es/components/table-filter/src/types/enums.js +85 -1
- package/es/components/time-line/index.js +10 -1
- package/es/components/time-line/src/TimeLine.vue.js +6 -1
- package/es/components/time-line/src/TimeLine.vue2.js +64 -1
- package/es/components/time-picker/index.js +10 -1
- package/es/components/time-picker/src/TimePicker.vue.js +6 -1
- package/es/components/time-picker/src/TimePicker.vue2.js +59 -1
- package/es/components/tooth-bitmap/index.js +10 -1
- package/es/components/tooth-bitmap/src/ToothBitmap.vue.js +6 -1
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +190 -1
- package/es/components/vod-chunk-upload/index.js +14 -1
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +6 -1
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +485 -1
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +74 -1
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +122 -1
- package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +98 -1
- package/es/components/vod-chunk-upload/src/hooks/vod-data.js +28 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +2 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +6 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +349 -1
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +100 -1
- package/es/shared/assets/img/ai__avatar.png.js +3 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +3 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +3 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +3 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +3 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +3 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +3 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +3 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +3 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +3 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +3 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +3 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +3 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +3 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +3 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +3 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +3 -1
- package/es/shared/assets/img/emoji/emoji.png.js +678 -1
- package/es/shared/assets/img/failure.png.js +3 -1
- package/es/shared/assets/img/file-emr.png.js +3 -0
- package/es/shared/assets/img/file.png.js +3 -0
- package/es/shared/assets/img/logo.png.js +3 -1
- package/es/shared/assets/img/no-permission.png.js +3 -1
- package/es/shared/assets/img/nodata.png.js +3 -1
- package/es/shared/assets/img/notfound.png.js +3 -1
- package/es/shared/assets/img/qr.png.js +3 -1
- package/es/shared/assets/img/success.png.js +3 -1
- package/es/shared/assets/img/table_style_1.png.js +3 -1
- package/es/shared/assets/img/table_style_2.png.js +3 -1
- package/es/shared/assets/img/table_style_3.png.js +3 -1
- package/es/shared/assets/img/table_style_4.png.js +3 -1
- package/es/shared/assets/img/tooth/tooth.png.js +38 -1
- package/es/shared/assets/img/use.png.js +3 -0
- package/es/shared/assets/img/video.png.js +3 -1
- package/es/shared/assets/img/video_default_cover.png.js +3 -1
- package/es/shared/assets/img/xb_big.png.js +3 -1
- package/es/shared/assets/img/xb_small.png.js +3 -1
- package/es/shared/components/ArrowIcon/ArrowIcon.vue.js +22 -1
- package/es/shared/components/ArrowIcon/index.js +2 -1
- package/es/shared/components/CancelRadio/CancelRadio.js +41 -1
- package/es/shared/components/CancelRadio/index.js +2 -1
- package/es/shared/components/DateIcon/DateIcon.vue.js +29 -1
- package/es/shared/components/DateIcon/index.js +2 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +161 -1
- package/es/shared/components/InputNumberSlash/index.js +2 -1
- package/es/shared/components/JSONTree/JSONTree.vue.js +6 -1
- package/es/shared/components/JSONTree/JSONTree.vue2.js +44 -1
- package/es/shared/components/JSONTree/index.js +2 -1
- package/es/shared/components/SelectPage/SelectPage.vue.js +6 -1
- package/es/shared/components/SelectPage/SelectPage.vue2.js +59 -1
- package/es/shared/components/SelectPage/index.js +2 -1
- package/es/shared/components/SlotRender/SlotRender.js +35 -1
- package/es/shared/components/SlotRender/index.js +2 -1
- package/es/shared/components/SvgIcon/SvgIcon.vue.js +6 -1
- package/es/shared/components/SvgIcon/SvgIcon.vue2.js +34 -1
- package/es/shared/components/SvgIcon/index.js +2 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +6 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue2.js +76 -1
- package/es/shared/components/TextOverTooltip/index.js +2 -1
- package/es/shared/components/VueDraggable/index.js +2 -1
- package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.js +35 -1
- package/es/shared/components/VueDraggable/src/core/componentStructure.js +54 -1
- package/es/shared/components/VueDraggable/src/core/renderHelper.js +47 -1
- package/es/shared/components/VueDraggable/src/core/sortableEvents.js +14 -1
- package/es/shared/components/VueDraggable/src/util/console.js +9 -1
- package/es/shared/components/VueDraggable/src/util/htmlHelper.js +11 -1
- package/es/shared/components/VueDraggable/src/util/string.js +11 -1
- package/es/shared/components/VueDraggable/src/util/tags.js +130 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.js +265 -1
- package/es/shared/components/no-data/NoData.vue.js +6 -1
- package/es/shared/components/no-data/NoData.vue2.js +99 -1
- package/es/shared/components/no-data/index.js +2 -1
- package/es/shared/components/player-vod/player.js +121 -1
- package/es/shared/components/player-vod/video-modal.js +91 -1
- package/es/shared/directive/flexibleResize.js +167 -1
- package/es/shared/directive/index.js +1 -1
- package/es/shared/global/variable.js +3 -1
- package/es/shared/hooks/index.js +12 -1
- package/es/shared/hooks/selectHooks/index.js +5 -1
- package/es/shared/hooks/selectHooks/useMenuWidthAuto.js +30 -1
- package/es/shared/hooks/selectHooks/useOptionFiltered.js +33 -1
- package/es/shared/hooks/selectHooks/useSearchContent.js +50 -1
- package/es/shared/hooks/selectHooks/useSelectAllowModify.js +84 -1
- package/es/shared/hooks/selectHooks/useSelectRenders.js +106 -1
- package/es/shared/hooks/useAsyncQueue/index.js +127 -1
- package/es/shared/hooks/useDateTime.js +231 -1
- package/es/shared/hooks/useFormRequest/index.js +164 -1
- package/es/shared/hooks/useLevelSearchCascader.d.ts +1 -0
- package/es/shared/hooks/useLevelSearchCascader.js +309 -1
- package/es/shared/hooks/useScrollLoading.js +22 -1
- package/es/shared/hooks/useTheme.js +29 -1
- package/es/shared/hooks/useVersion.js +9 -1
- package/es/shared/package.json.js +26 -1
- package/es/shared/utils/anime.js +136 -1
- package/es/shared/utils/business.js +233 -1
- package/es/shared/utils/fabricjs/index.js +15624 -1
- package/es/shared/utils/index.js +320 -1
- package/es/shared/utils/loadViewer.js +11 -1
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +63 -1
- package/es/shared/utils/tapable/AsyncParallelHook.js +27 -1
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +18 -1
- package/es/shared/utils/tapable/AsyncSeriesHook.js +27 -1
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +12 -1
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +22 -1
- package/es/shared/utils/tapable/Hook.js +140 -1
- package/es/shared/utils/tapable/HookCodeFactory.js +456 -1
- package/es/shared/utils/tapable/SyncBailHook.js +19 -1
- package/es/shared/utils/tapable/SyncHook.js +34 -1
- package/es/shared/utils/tapable/SyncLoopHook.js +13 -1
- package/es/shared/utils/tapable/SyncWaterfallHook.js +47 -1
- package/es/shared/utils/utilExpand.js +770 -1
- package/es/shared/utils/vexutils.js +60 -1
- package/es/shared/utils/vexutilsExpand.js +774 -1
- package/package.json +78 -76
- package/es/components/audio-sdk/src/components/form.vue.js +0 -1
- package/es/components/audio-sdk/src/components/form.vue2.js +0 -1
@@ -1 +1,1314 @@
|
|
1
|
-
import{createElementVNode as e,defineComponent as t,inject as n,ref as a,reactive as i,computed as r,onMounted as l,onBeforeUnmount as o,watch as s,openBlock as u,createElementBlock as d,Fragment as c,createCommentVNode as p,createVNode as m,unref as v,withCtx as g,renderList as y,createBlock as f,mergeProps as w,createTextVNode as h,toDisplayString as k,normalizeStyle as b,isRef as P,renderSlot as C,withModifiers as S,normalizeClass as I}from"vue";import{isObject as L}from"@vue/shared";import{useMessage as O,NButtonGroup as x,NDropdown as T,NButton as j,NIcon as M,NPopover as E,NCheckbox as F,NDivider as B}from"naive-ui";import{PrintOutline as N,SettingsOutline as _,ChevronDownSharp as D,ArrowForwardOutline as R}from"@vicons/ionicons5";import{InjectionButtonPrintEmits as J}from"../constants/index.js";import{Print as U}from"../utils/print.js";import{isIReport as z}from"../utils/browserPrint.js";import A from"./IdentityVerification.vue.js";import{format as K}from"date-fns";import"../api.js";import"../../../shortcut-provider/index.js";import{encapBrowserLog as V}from"../../../../shared/utils/index.js";import{useShortcuts as H}from"../../../shortcut-provider/src/hooks/useShortcuts.js";var $,G,Y,q,Q,W,X;const Z={class:"newprint-button-outer"},ee={key:0,class:"newprint-button-outer__shortcut"},te=e("span",{class:"label bold"},(null==($=window.getLanguageByCode)?void 0:$.call(window,"10010.1.473"))||"外显设置",-1),ne={class:"print-lite"},ae={class:"label bold"},ie={class:"print-li"},re={class:"print-lite"},le={key:0,class:"newprint-button-outer__shortcut"},oe=["onMouseenter","onClick"],se={class:"label bold"},ue={class:"print-lite",style:{background:"transparent"}},de={class:"label bold"},ce={class:"print-li"},pe={class:"print-lite",style:{background:"transparent"}},me=["onClick"],ve={key:0,class:"newprint-button-outer__shortcut"},ge={class:"newprint-button-poperOver"},ye=["onMouseenter"],fe={class:"print-lite",style:{background:"transparent"}},we=["onClick"];var he=t({__name:"NewPrintComponent",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:(null==(G=window.getLanguageByCode)?void 0:G.call(window,"10010.1.478"))||"打印",type:String},printText:{default:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.479"))||"直接打印",type:String},previewText:{default:(null==(q=window.getLanguageByCode)?void 0:q.call(window,"10010.1.480"))||"打印预览",type:String},pdfLoadText:{default:(null==(Q=window.getLanguageByCode)?void 0:Q.call(window,"10010.1.481"))||"下载pdf",type:String},formatEditText:{default:(null==(W=window.getLanguageByCode)?void 0:W.call(window,"10010.1.482"))||"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:(null==(X=window.getLanguageByCode)?void 0:X.call(window,"10010.1.483"))||"请选中需要打印的数据",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0},hideButtons:{type:Array,default:()=>[]},printCopies:{type:Number},resolution:{type:Number},newPrintSetting:{type:Object,default:()=>({isShowPrintAll:!0,printAllType:1,isShowOutSetting:!0,customProps:{},outerPrintKeys:[],defaultFormatId:"",shortcut:{},buttonProps:{},showMaxHeight:null})},svrUpdateIp:{type:String}},setup(t,{expose:$}){var G,Y,q;const Q=t;String(navigator.platform).toLowerCase().includes("linux");const W=[{label:(null==(G=window.getLanguageByCode)?void 0:G.call(window,"10010.1.476"))||"分割线",key:"divider"},{label:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.473"))||"外显设置",key:"outSetting"}],X=O();let he;const ke=n(J),be=a(""),Pe=i({spinning:!1,visible:!1,formatList:[],templateParams:[],printParams:[],originParams:{},currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null,isClickOuterPrint:!1,curPrintParamList:[],iReportExecuteMode:1}),Ce=a({});let Se=a([]),Ie=a([{label:Q.previewText,key:"previewText"},{label:Q.pdfLoadText,key:"downloadPdf"},{label:Q.formatEditText,key:"formatEditText"},{label:(null==(q=window.getLanguageByCode)?void 0:q.call(window,"10010.1.484"))||"重置打印机",key:"resetPrinter"}]);const Le=i({oneMouseType:"",oneClickType:"",twoMouseType:""}),Oe=i({oneShow:!1,isOperation:!1,isOutSetting:!1}),xe=a([]),Te=a([]),je=r((()=>{if(!Pe.currentFormatId)return{};let e=Pe.currentFormatId;return Pe.formatList.find((t=>t.id===e))}));r((()=>{var e,t;return(null==(e=je.value)?void 0:e.name)||(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.485"))||"格式选择"}));const Me=r((()=>{let e=Pe.formatList.find((e=>e.id===Pe.currentFormatId));return null==e?void 0:e.templateId})),Ee=r((()=>{let e=Pe.formatList.find((e=>e.id===Pe.currentFormatId));return null==e?void 0:e.number})),Fe=r((()=>{var e;return null==(e=Q.newPrintSetting)?void 0:e.isShowPrintAll})),Be=r((()=>{var e;return null==(e=Q.newPrintSetting)?void 0:e.isShowOutSetting})),Ne=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.customProps)||{}})),_e=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.defaultFormatId)||""})),De=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.printAllType)||1})),Re=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.shortcut)||{}})),Je=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.buttonProps)||{}})),Ue=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.showMaxHeight)||{}})),ze=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.printAllFormatIds)||[]})),Ae=r((()=>{var e;return null==(e=Q.newPrintSetting)?void 0:e.positionElement})),Ke=r((()=>{var e,t;const n=Object.keys(Re.value);if(n.length>0){if(_e.value&&n.includes(_e.value))return(null==(e=Re.value[_e.value])?void 0:e.shortcutLabel)||"";if(n.includes("all"))return(null==(t=Re.value.all)?void 0:t.shortcutLabel)||""}return""})),Ve=r((()=>{const e=W.map((e=>e.key));return Se.value.filter((t=>!e.includes(t.key)))})),He=r({get:()=>Ve.value.every((e=>e.selected)),set(e){Ve.value.forEach((t=>{t.selected=e}))}}),$e=r((()=>{var e;return 2===(null==(e=xe.value)?void 0:e.length)?xe.value.filter((e=>"divider"!==e.key)):xe.value})),Ge=async()=>{var e,t;(null==(t=null==(e=Q.newPrintSetting)?void 0:e.outerPrintKeys)?void 0:t.length)||await bt(),Oe.oneShow=!0},Ye=async e=>{if(Q.directPrint){if(Pe.spinning)return;return"button"===e?void(Fe.value?await St():_e.value?async function(e){await bt(!1);const t=xe.value.find((t=>t.key==e));t&&st(t.templateCode,t.templateId,t.key,!1)}(_e.value):Ge()):Ge()}return Ge()},qe=(e,t)=>Pe.printParams[t.templateCode]?z(t.key)?e.filter((e=>"formatEditText"!=e.key)):e:[],Qe=(e,t)=>{Le[e]=t},We=()=>{xe.value=Se.value.filter((e=>!e.selected)),Te.value=Ve.value.filter((e=>e.selected)),Ze("oneShow"),Ze("isOutSetting"),ke("saveOuterPrint",Te.value)},Xe=e=>{Oe[e]=!0},Ze=e=>{Le.oneClickType="",Oe[e]=!1,"isOutSetting"==e&&(Oe.isOutSetting=!1)},et=(e,t)=>{lt(!1);let n={type:t,formatId:Pe.currentFormatId,templateId:(null==e?void 0:e.templateId)||Me.value,templateCode:(null==e?void 0:e.templateCode)||Ee.value};V({type:"进入成功的回调",info:n},"PRINT-SDK"),ke("success",e,n)},tt=e=>{lt(!1),V({type:"进入失败的回调",res:e},"PRINT-SDK"),ke("error",e),L(e)&&"notInstalledApp"===e.type&&X.error(e.message)},nt=e=>{lt(!1),ke("cancel",e)},at=e=>{var t;const n={message:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.486"))||"前置条件执行错误",type:e,preExecution:!0};ke("error",n)},it=()=>JSON.stringify({...Q.token?{token:Q.token}:{}}),rt=(e=[],t)=>{var n,a;let i={},r={};if((null==(n=Pe.templateParams[t].customizeDataset)?void 0:n.length)>0){const t=(null==(a=Object.keys(e[0].datasetData||{}))?void 0:a[0])||"",n=JSON.stringify(e.map((e=>JSON.parse(e.datasetData[t]))));r={datasetData:{}},r.datasetData[t]=n}else Object.keys(e[0]).forEach((t=>{r[t]=[],e.forEach((e=>{r[t].includes(e[t])||r[t].push(e[t])})),r[t]=r[t].join(",")}));return i=Object.assign({},JSON.parse(it()),r,Ne.value),JSON.stringify(i)},lt=(e,t)=>{if(Pe.isClickOuterPrint){if(e&&t){const n=Te.value.find((e=>e.key==t));return void(n&&(n.isLoading=e))}Te.value.forEach((e=>{e.isLoading=!1}))}else Pe.spinning=e},ot=()=>Pe.isClickOuterPrint?Te.value.some((e=>e.isLoading)):Pe.spinning,st=(e,t,n,a)=>{const i=Pe.printParams[e];if(!i)return;Pe.isClickOuterPrint=a,Pe.currentFormatId=n;const r=Pe.originParams[e]||[];ut(i,e,t,n,r)},ut=async(e=[],t,n,a,i=[],r)=>{let l=e.length;const o=async e=>{try{--l<=0&&et(e,"print")}catch(e){console.log("error",e)}};Q.showLoading&&ot()&&!r||(lt(!0,a),Q.prevFn("print",{formatId:a,templateId:n,params:e}).then((()=>{var r;Pe.curPrintParamList=e;const l=(null==(r=Ne.value)?void 0:r.printdlgshow)||Q.printdlgshow,s={formatId:a,iReportExecuteMode:Pe.iReportExecuteMode,templateId:n,authorizationKey:be.value,printdlgshow:l,signature:Q.signature,copies:Q.printCopies,svrUpdateIp:Q.svrUpdateIp};if("MULTI"===Q.strategy)for(let t=0;t<e.length;t++){t>0&&(s.printdlgshow="0");const n=JSON.stringify(Object.assign({},JSON.parse(it()),e[t],Ne.value));he.printDirect({...s,params:n},o,tt,nt)}else he.printDirect({...s,params:rt(e,t)},(e=>{e.params=i,e.templateCode=t,e.templateId=n,et(e,"print")}),tt,nt)})).catch((()=>{at("print"),lt(!1)})).finally((()=>{Pe.visible=!1})))},dt=async(e,{templateCode:t,templateId:n,key:a},i)=>{const r=Pe.printParams[t];if(r)switch(Pe.isClickOuterPrint=i,Pe.currentFormatId=a,e){case"previewText":(async(e=[],t,n,a)=>{Q.showLoading&&ot()||(lt(!0,a),Q.prevFn("preview",{formatId:a,templateId:n,params:e}).then((()=>{Pe.curPrintParamList=e;const i=JSON.stringify(Object.assign({},JSON.parse(it()),e[0],Ne.value)),r="MULTI"===Q.strategy?i:rt(e,t),l={formatId:a,templateId:n,iReportExecuteMode:Pe.iReportExecuteMode,authorizationKey:be.value,params:r,btnprint:Q.btnprint,signature:Q.signature};he.preview(l,(e=>{et(e,"preview")}),tt)})).catch((()=>{at("preview"),lt(!1)})).finally((()=>{Pe.visible=!1})))})(r,t,n,a);break;case"formatEditText":((e=[],t,n,a)=>{Q.showLoading&&ot()||(lt(!0,a),Q.prevFn("edit",{formatId:a,templateId:n,params:e}).then((()=>{Pe.curPrintParamList=e,Pe.currentFormatId=a,Pe.identityVerification.visible=!0})).catch((()=>{at("edit")})).finally((()=>{lt(!1)})))})(r,0,n,a);break;case"downloadPdf":(async(e=[],t,n,a)=>{Q.showLoading&&ot()||(lt(!0,a),Q.prevFn("download",{formatId:a,templateId:n,params:e}).then((()=>{Pe.curPrintParamList=e;const i=JSON.stringify(Object.assign({},JSON.parse(it()),e[0],Ne.value)),r="MULTI"===Q.strategy?i:rt(e,t),l={formatId:a,templateId:n,iReportExecuteMode:Pe.iReportExecuteMode,authorizationKey:be.value,print:{print:"1",type:"1",resolution:null==Q?void 0:Q.resolution},params:r,signature:Q.signature};he.downloadPDF(l,(e=>et(e,"preview")),tt)})).catch((()=>{at("download"),lt(!1)})).finally((()=>{Pe.visible=!1})))})(r,t,n,a);break;case"resetPrinter":(async(e=[],t,n,a)=>{var i,r,l;if(!Q.showLoading||!ot()){lt(!0,a);try{const e=await he.resetPrinter(a,Pe.iReportExecuteMode);if(lt(!1),"success"==(null==e?void 0:e.result))return void X.success((null==e?void 0:e.message)||(null==(i=window.getLanguageByCode)?void 0:i.call(window,"10010.1.487"))||"重置打印机成功");X.warning((null==e?void 0:e.message)||(null==(r=window.getLanguageByCode)?void 0:r.call(window,"10010.1.488"))||"重置打印机失败")}catch(e){lt(!1),X.warning((null==e?void 0:e.message)||(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.488"))||"重置打印机失败")}}})(r,0,0,a)}},ct=()=>{},pt=(e,t=[])=>{let n={};return(t=t||[]).forEach((t=>{n=Object.assign({},yt(n,t,e))})),n},mt=(e,t=[])=>{let n={};return(t=t||[]).forEach((t=>{n=Object.assign({},ft(n,t,e))})),n},vt=(e,t,n)=>{const a={};return t.forEach((t=>{let i=((e,t)=>{const n={DATE:"yyyy-MM-dd",DATETIME:"yyyy-MM-dd HH:mm:ss"};let a=t;return Object.keys(n).includes(e.type)&&t&&t instanceof Date&&(a=K(t,n[e.type])),(null==e?void 0:e.defaultValue)||a})(t,e[t[n]]);e[t[n]]&&i&&(a[t[n]]=i)})),a},gt=({customizeDataset:e=[],param:t=[]},n={})=>{let a={};return e.forEach((e=>{const t=e.dataSetting[0].selectFieldList;a.datasetData||(a.datasetData={}),a.datasetData[e.name]=JSON.stringify(vt(n,t,"fieldName"))})),a=Object.assign({},a,vt(n,t,"key")),a},yt=(e,t,n)=>{if(t.templateNumbers){for(let a=0;a<t.templateNumbers.length;a++){const i=t.templateNumbers[a],r=n[i];if(!r)return e;e[i]||(e[i]=[]),e[i].push(gt(r,t))}return e}const a=Object.keys(n);for(let i=0;i<a.length;i++){const r=a[i],l=n[r];if(!l)return e;e[r]||(e[r]=[]),e[r].push(gt(l,t))}return e},ft=(e,t,n)=>{if(t.templateNumbers){for(let a=0;a<t.templateNumbers.length;a++){const i=t.templateNumbers[a];if(!n[i])return e;e[i]||(e[i]=[]),e[i].push(t)}return e}const a=Object.keys(n);for(let i=0;i<a.length;i++){const r=a[i];if(!n[r])return e;e[r]||(e[r]=[]),e[r].push(t)}return e},wt=async e=>{var t;Pe.formatList=e?(e=>{let t=[];return e&&e.forEach((e=>{if(!e.format)return!1;t.push(...e.format.map((t=>Object.assign({},t,{templateName:e.name}))))})),t})(e.obj):[],Pe.iReportExecuteMode=(null==(t=null==e?void 0:e.obj)?void 0:t.length)>0&&e.obj[0].iReportExecuteMode||1,(()=>{var e,t,n;const a=Object.keys(Re.value),i=Pe.formatList.map((e=>{const t={templateCode:e.number,templateId:e.templateId,label:e.name,key:e.id,selected:!1,isLoading:!1};if(a.includes(e.id)){const n=Re.value[e.id];n&&(t.shortcutLabel=n.shortcutLabel)}return t}));Se.value.unshift(...i),Be.value&&Se.value.push(...W),(null==(t=null==(e=Q.newPrintSetting)?void 0:e.outerPrintKeys)?void 0:t.length)>0&&(Se.value.forEach((e=>{var t;(null==(t=Q.newPrintSetting)?void 0:t.outerPrintKeys.includes(e.key))&&(e.selected=!0)})),Te.value=Se.value.filter((e=>e.selected))),xe.value=Se.value.filter((e=>!e.selected)),Q.hideButtons.length>0&&(Ie.value=Ie.value.filter((e=>!Q.hideButtons.includes(e.key))));const r=sessionStorage.getItem("portal");if(r){const e=JSON.parse(r),t=(null==(n=null==e?void 0:e.user)?void 0:n.currentRoleResourceObj)||{},a=Object.keys(t);a.includes("RY7.2.21.1.M2.G94181E")||(Ie.value=Ie.value.filter((e=>"downloadPdf"!=e.key))),a.includes("RY7.2.21.1.M2.G33633A")||(Ie.value=Ie.value.filter((e=>"formatEditText"!=e.key))),a.includes("RY7.2.21.1.M2.G99314S")||(Ie.value=Ie.value.filter((e=>"resetPrinter"!=e.key)))}})(),Pe.templateParams=(e=>{let t={};return e&&e.forEach((e=>{if(!e.templateConfig)return!1;t[e.number]=e.templateConfig})),t})(e.obj),Pe.printParams=pt(Pe.templateParams,Q.params),Pe.originParams=mt(Pe.templateParams,Q.params),kt()},ht=async()=>{var e;if(Pe.isInited)return!0;Pe.isInited=!0,Pe.spinning=!0,(()=>{if(he)return!1;he=new U})();const t=await Q.queryPrintFormatByNumber();return await wt(t),(null==(e=t.obj)?void 0:e.length)>0&&(be.value=t.obj[0].authorizationKey||""),Pe.spinning=!1,!0},kt=async()=>{const e=Object.keys(Re.value);if(e.length>0)for(let t=0;t<e.length;t++){const n=e[t],a=Re.value[n],{stop:i,signature:r}=H().register({label:a.code,shortcutSignature:a.shortcutKey,operation:["state","reset"],callback(){"all"==n&&Ye("button");const e=Ve.value.map((e=>e.key)),t=Pe.originParams;if(e.includes(n)){const e=Ve.value.find((e=>e.key==n));if(e){const n=Pe.printParams[null==e?void 0:e.templateCode],a=t[null==e?void 0:e.templateCode]||[];ut(n,e.templateCode,e.templateId,e.key,a)}}}});Ce.value[n]=i}},bt=async(e=!0)=>{if(await Q.clickPrevFn()){if(!Pe.visible){if(!await ht())return!1}e&&(Pe.visible=!Pe.visible)}},Pt=e=>{if(Pe.identityVerification.visible=!1,z(Pe.currentFormatId))return et({result:"success",message:""},"edit");const t=JSON.stringify(Object.assign({},JSON.parse(it()),Pe.curPrintParamList[0],Ne.value)),n="MULTI"===Q.strategy?t:rt(Pe.curPrintParamList,Ee.value),a={formatId:Pe.currentFormatId,templateId:Me.value,params:n,token:e};he.editPrintFormat(a,(e=>{et(e,"edit")}),tt)},Ct=(e,t)=>{const n=Te.value[t+1];return t<Te.value.length-1&&!Pe.printParams[e.templateCode]&&Pe.printParams[n.templateCode]};async function St(){await bt(!1),(()=>{var e;const t=Object.keys(Pe.printParams);Pe.isClickOuterPrint=!1;const n=Pe.originParams;if((null==(e=Object.keys(ze.value))?void 0:e.length)>0)Se.value.forEach((e=>{if(ze.value.includes(e.key)){const t=Pe.printParams[e.templateCode],a=n[e.templateCode]||[];Pe.currentFormatId=e.key,ut(t,e.templateCode,e.templateId,e.key,a,!0)}}));else{if(1==De.value)for(let e=0;e<t.length;e++){const a=t[e],i=Pe.printParams[a],r=n[a]||[],l=Pe.formatList.filter((e=>e.number==a));l&&l.length>0&&l.forEach((e=>{Pe.currentFormatId=e.id,ut(i,e.number,e.templateId,e.id,r,!0)}))}2==De.value&&Te.value.forEach((e=>{const t=Pe.printParams[e.templateCode],a=n[e.templateCode]||[];Pe.currentFormatId=e.key,ut(t,e.templateCode,e.templateId,e.key,a,!0)}))}})()}return l((()=>{Pe.isInited=!1})),o((()=>{const e=Object.keys(Ce.value);e.length>0&&e.forEach((e=>{Ce.value[e]&&Ce.value[e]()}))})),s((()=>Q.params),(e=>{Object.keys(Pe.templateParams).length>0&&(Pe.printParams=pt(Pe.templateParams,Q.params),Pe.originParams=mt(Pe.templateParams,Q.params))}),{deep:!0}),s((()=>{var e;return null==(e=Q.newPrintSetting)?void 0:e.outerPrintKeys}),(async e=>{(null==e?void 0:e.length)>0&&await bt(!1)}),{deep:!0,immediate:!0}),$({directPrint:St}),(n,a)=>(u(),d(c,null,[e("div",Z,[p(" 外显按钮集合 "),m(v(x),{class:"outButtonGroup"},{default:g((()=>[(u(!0),d(c,null,y(Te.value,((e,n)=>(u(),f(v(T),{key:e.key,class:"c-dropdown",placement:"bottom-start",trigger:"hover",onClickoutside:ct,options:qe(v(Ie),e),onSelect:t=>dt(t,e,!0)},{default:g((()=>[m(v(j),w(v(Je),{disabled:!Pe.printParams[e.templateCode],loading:t.showLoading&&e.isLoading,onClick:t=>st(e.templateCode,e.templateId,e.key,!0),class:n==Te.value.length-1?"outerLastButton":Ct(e,n)?"isPrintDisabled":""}),{icon:g((()=>[m(v(M),{component:v(N),size:"18"},null,8,["component"])])),default:g((()=>[h(" "+k(e.label)+" ",1),e.shortcutLabel?(u(),d("span",ee,k(e.shortcutLabel),1)):p("v-if",!0)])),_:2},1040,["disabled","loading","onClick","class"])])),_:2},1032,["options","onSelect"])))),128))])),_:1}),p(" 外显设置按钮 "),Te.value.length>0&&Te.value.length==v(Ve).length&&v(Be)&&2!=v(De)?(u(),f(v(E),{key:0,trigger:"click",to:v(Ae),"show-arrow":!1,show:Oe.isOutSetting,onClickoutside:a[2]||(a[2]=e=>Ze("isOutSetting"))},{trigger:g((()=>[m(v(j),w(v(Je),{class:Te.value.length>0?"printAllLeftCls":"",onClick:a[0]||(a[0]=e=>Xe("isOutSetting"))}),{default:g((()=>[te,m(v(M),{style:{"margin-left":"8px"},component:v(_),size:"18"},null,8,["component"])])),_:1},16,["class"])])),default:g((()=>[e("div",{class:"newprint-button-poperOver",style:b({maxHeight:v(Ue)?`${v(Ue)}px`:void 0})},[(u(!0),d(c,null,y(v(Ve),(t=>(u(),d("div",{class:"print-li",key:t.key},[e("div",ne,[e("span",ae,k(t.label),1),m(v(F),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.474"))||"外显")]})),_:2},1032,["checked","onUpdate:checked"])])])))),128)),e("div",ie,[m(v(B)),e("div",re,[m(v(j),{type:"primary",size:"small",onClick:We},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1}),v(Ve)&&v(Ve).length>1?(u(),f(v(F),{key:0,checked:v(He),"onUpdate:checked":a[1]||(a[1]=e=>P(He)?He.value=e:null)},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1},8,["checked"])):p("v-if",!0)])])],4)])),_:1},8,["to","show"])):(u(),d(c,{key:1},[p(" 打印全部按钮 "),m(v(E),{trigger:"click","show-arrow":!1,to:v(Ae),show:Oe.oneShow,onClickoutside:a[10]||(a[10]=e=>Ze("oneShow"))},{trigger:g((()=>[C(n.$slots,"button",{handleClickPrintBtn:Ge,handlePrintBySetting:()=>Ye("button"),printSpinning:Pe.spinning,printbtnText:t.btnText,printVisible:Pe.visible},(()=>[m(v(x),{class:"newprint-button-component",onClick:a[4]||(a[4]=S((()=>Ye("icon")),["stop"]))},{default:g((()=>[m(v(j),w({loading:t.showLoading&&Pe.spinning},v(Je),{onClick:a[3]||(a[3]=S((()=>Ye("button")),["stop"])),class:Te.value.length>0?"printAllLeftCls":""}),{icon:g((()=>[m(v(M),{component:v(N),size:"18"},null,8,["component"])])),default:g((()=>{var e;return[h(" "+k(v(Fe)?(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.475"))||"打印全部":t.btnText)+" ",1),v(Ke)?(u(),d("span",le,k(v(Ke)),1)):p("v-if",!0)]})),_:1},16,["loading","class"]),m(v(j),w({class:"icon-select"},v(Je)),{icon:g((()=>[m(v(M),{component:v(D),size:"18"},null,8,["component"])])),_:1},16)])),_:1})]))])),default:g((()=>[e("div",{class:"newprint-button-poperOver",style:b({maxHeight:v(Ue)?`${v(Ue)}px`:void 0})},[(u(!0),d(c,null,y(v($e),(t=>(u(),d("div",{class:I(["print-li",Le.oneMouseType==t.key||Le.oneClickType==t.key?"active":""]),key:t.key,onMouseenter:e=>Qe("oneMouseType",t.key),onMouseleave:a[9]||(a[9]=e=>Qe("oneMouseType","")),onClick:e=>((e,t,n)=>{if(!Pe.printParams[n.templateCode])return[];Qe(e,t)})("oneClickType",t.key,t)},["divider"==t.key?(u(),f(v(B),{key:0})):"outSetting"==t.key?(u(),d(c,{key:1},[p(" 第二层外显设置 "),m(v(E),{trigger:"click","show-arrow":!1,to:!1,placement:"right-start",show:Oe.isOutSetting,onClickoutside:a[7]||(a[7]=e=>Ze("isOutSetting"))},{trigger:g((()=>[e("div",{class:"print-lite",onClick:a[5]||(a[5]=e=>Xe("isOutSetting"))},[e("span",se,k(t.label),1),m(v(M),{color:Te.value.length>0?"#2563F4":"",component:v(_),size:"18"},null,8,["color","component"])])])),default:g((()=>[e("div",{class:"newprint-button-poperOver",style:b({maxHeight:v(Ue)?`${v(Ue)}px`:void 0})},[(u(!0),d(c,null,y(v(Ve),(t=>(u(),d("div",{class:"print-li",key:t.key},[e("div",ue,[e("span",de,k(t.label),1),m(v(F),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.474"))||"外显")]})),_:2},1032,["checked","onUpdate:checked"])])])))),128)),e("div",ce,[m(v(B)),e("div",pe,[m(v(j),{type:"primary",size:"small",onClick:We},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1}),v(Ve)&&v(Ve).length>1?(u(),f(v(F),{key:0,checked:v(He),"onUpdate:checked":a[6]||(a[6]=e=>P(He)?He.value=e:null)},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1},8,["checked"])):p("v-if",!0)])])],4)])),_:2},1032,["show"])],2112)):(u(),d(c,{key:2},[p(" 第二层功能操作 "),e("div",{class:I(["print-lite",Pe.printParams[t.templateCode]?"":"isDisabled"]),style:{background:"transparent"}},[e("span",{class:"label bold",onClick:e=>st(t.templateCode,t.templateId,t.key,!1)},[h(k(t.label)+" ",1),t.shortcutLabel?(u(),d("span",ve,k(t.shortcutLabel),1)):p("v-if",!0)],8,me),Pe.printParams[t.templateCode]?(u(),f(v(E),{key:0,trigger:"click","show-arrow":!1,to:!1,placement:"right-start",show:Oe[t.key],onClickoutside:e=>Ze(t.key)},{trigger:g((()=>[m(v(M),{component:v(R),size:"18",onClick:e=>Xe(t.key)},null,8,["component","onClick"])])),default:g((()=>[e("div",ge,[(u(!0),d(c,null,y(qe(v(Ie),t),(n=>(u(),d("div",{class:I(["print-li",Le.twoMouseType==n.key?"active":""]),key:n.key,onMouseenter:e=>Qe("twoMouseType",n.key),onMouseleave:a[8]||(a[8]=e=>Qe("twoMouseType",""))},[e("div",fe,[e("span",{class:"label",onClick:e=>dt(n.key,t,!1)},k(n.label),9,we)])],42,ye)))),128))])])),_:2},1032,["show","onClickoutside"])):p("v-if",!0)],2)],2112))],42,oe)))),128))],4)])),_:3},8,["to","show"])],2112))]),m(A,w(n.$attrs,{modelValue:Pe.identityVerification.visible,"onUpdate:modelValue":a[11]||(a[11]=e=>Pe.identityVerification.visible=e),formatId:Pe.currentFormatId,templateId:v(Me),onSuccess:Pt}),null,16,["modelValue","formatId","templateId"])],64))}});export{he as default};
|
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
|
+
import { isObject } from '@vue/shared';
|
3
|
+
import { useMessage, NButtonGroup, NDropdown, NButton, NIcon, NPopover, NCheckbox, NDivider } from 'naive-ui';
|
4
|
+
import { PrintOutline, SettingsOutline, ChevronDownSharp, ArrowForwardOutline } from '@vicons/ionicons5';
|
5
|
+
import { InjectionButtonPrintEmits } from '../constants/index.js';
|
6
|
+
import { Print } from '../utils/print.js';
|
7
|
+
import { isIReport } from '../utils/browserPrint.js';
|
8
|
+
import IdentityVerification from './IdentityVerification.vue.js';
|
9
|
+
import { format } from 'date-fns';
|
10
|
+
import '../api.js';
|
11
|
+
import '../../../shortcut-provider/index.js';
|
12
|
+
import { encapBrowserLog } from '../../../../shared/utils/index.js';
|
13
|
+
import { useShortcuts } from '../../../shortcut-provider/src/hooks/useShortcuts.js';
|
14
|
+
|
15
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
16
|
+
const _hoisted_1 = {
|
17
|
+
class: "newprint-button-outer"
|
18
|
+
};
|
19
|
+
const _hoisted_2 = {
|
20
|
+
key: 0,
|
21
|
+
class: "newprint-button-outer__shortcut"
|
22
|
+
};
|
23
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", {
|
24
|
+
class: "label bold"
|
25
|
+
}, ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.473")) || "\u5916\u663E\u8BBE\u7F6E", -1);
|
26
|
+
const _hoisted_4 = {
|
27
|
+
class: "print-lite"
|
28
|
+
};
|
29
|
+
const _hoisted_5 = {
|
30
|
+
class: "label bold"
|
31
|
+
};
|
32
|
+
const _hoisted_6 = {
|
33
|
+
class: "print-li"
|
34
|
+
};
|
35
|
+
const _hoisted_7 = {
|
36
|
+
class: "print-lite"
|
37
|
+
};
|
38
|
+
const _hoisted_8 = {
|
39
|
+
key: 0,
|
40
|
+
class: "newprint-button-outer__shortcut"
|
41
|
+
};
|
42
|
+
const _hoisted_9 = ["onMouseenter", "onClick"];
|
43
|
+
const _hoisted_10 = {
|
44
|
+
class: "label bold"
|
45
|
+
};
|
46
|
+
const _hoisted_11 = {
|
47
|
+
class: "print-lite",
|
48
|
+
style: {
|
49
|
+
"background": "transparent"
|
50
|
+
}
|
51
|
+
};
|
52
|
+
const _hoisted_12 = {
|
53
|
+
class: "label bold"
|
54
|
+
};
|
55
|
+
const _hoisted_13 = {
|
56
|
+
class: "print-li"
|
57
|
+
};
|
58
|
+
const _hoisted_14 = {
|
59
|
+
class: "print-lite",
|
60
|
+
style: {
|
61
|
+
"background": "transparent"
|
62
|
+
}
|
63
|
+
};
|
64
|
+
const _hoisted_15 = ["onClick"];
|
65
|
+
const _hoisted_16 = {
|
66
|
+
key: 0,
|
67
|
+
class: "newprint-button-outer__shortcut"
|
68
|
+
};
|
69
|
+
const _hoisted_17 = {
|
70
|
+
class: "newprint-button-poperOver"
|
71
|
+
};
|
72
|
+
const _hoisted_18 = ["onMouseenter"];
|
73
|
+
const _hoisted_19 = {
|
74
|
+
class: "print-lite",
|
75
|
+
style: {
|
76
|
+
"background": "transparent"
|
77
|
+
}
|
78
|
+
};
|
79
|
+
const _hoisted_20 = ["onClick"];
|
80
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
81
|
+
__name: "NewPrintComponent",
|
82
|
+
props: {
|
83
|
+
printParams: {
|
84
|
+
type: Array
|
85
|
+
},
|
86
|
+
params: {
|
87
|
+
default: () => [],
|
88
|
+
type: Array
|
89
|
+
},
|
90
|
+
btnText: {
|
91
|
+
default: ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.478")) || "\u6253\u5370",
|
92
|
+
type: String
|
93
|
+
},
|
94
|
+
printText: {
|
95
|
+
default: ((_c = window.getLanguageByCode) == null ? void 0 : _c.call(window, "10010.1.479")) || "\u76F4\u63A5\u6253\u5370",
|
96
|
+
type: String
|
97
|
+
},
|
98
|
+
previewText: {
|
99
|
+
default: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.480")) || "\u6253\u5370\u9884\u89C8",
|
100
|
+
type: String
|
101
|
+
},
|
102
|
+
pdfLoadText: {
|
103
|
+
default: ((_e = window.getLanguageByCode) == null ? void 0 : _e.call(window, "10010.1.481")) || "\u4E0B\u8F7Dpdf",
|
104
|
+
type: String
|
105
|
+
},
|
106
|
+
formatEditText: {
|
107
|
+
default: ((_f = window.getLanguageByCode) == null ? void 0 : _f.call(window, "10010.1.482")) || "\u683C\u5F0F\u7F16\u8F91",
|
108
|
+
type: String
|
109
|
+
},
|
110
|
+
prevFn: {
|
111
|
+
default: () => Promise.resolve(),
|
112
|
+
type: Function
|
113
|
+
},
|
114
|
+
queryPrintFormatByNumber: {
|
115
|
+
default: () => Promise.resolve({}),
|
116
|
+
type: Function
|
117
|
+
},
|
118
|
+
strategy: {
|
119
|
+
default: "MULTI",
|
120
|
+
type: String
|
121
|
+
},
|
122
|
+
clickPrevFn: {
|
123
|
+
default: () => Promise.resolve(true),
|
124
|
+
type: Function
|
125
|
+
},
|
126
|
+
noDataMsg: {
|
127
|
+
default: ((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.483")) || "\u8BF7\u9009\u4E2D\u9700\u8981\u6253\u5370\u7684\u6570\u636E",
|
128
|
+
type: String
|
129
|
+
},
|
130
|
+
token: {
|
131
|
+
type: String
|
132
|
+
},
|
133
|
+
printdlgshow: {
|
134
|
+
default: "0",
|
135
|
+
type: String
|
136
|
+
},
|
137
|
+
btnprint: {
|
138
|
+
type: String,
|
139
|
+
default: "1"
|
140
|
+
},
|
141
|
+
directPrint: {
|
142
|
+
type: Boolean,
|
143
|
+
default: false
|
144
|
+
},
|
145
|
+
externalOptionConfig: {
|
146
|
+
type: Object,
|
147
|
+
default: () => ({})
|
148
|
+
},
|
149
|
+
signature: {
|
150
|
+
type: String
|
151
|
+
},
|
152
|
+
showLoading: {
|
153
|
+
type: Boolean,
|
154
|
+
default: true
|
155
|
+
},
|
156
|
+
hideButtons: {
|
157
|
+
type: Array,
|
158
|
+
default: () => []
|
159
|
+
},
|
160
|
+
printCopies: {
|
161
|
+
type: Number
|
162
|
+
},
|
163
|
+
resolution: {
|
164
|
+
type: Number
|
165
|
+
},
|
166
|
+
newPrintSetting: {
|
167
|
+
type: Object,
|
168
|
+
default: () => ({
|
169
|
+
isShowPrintAll: true,
|
170
|
+
printAllType: 1,
|
171
|
+
isShowOutSetting: true,
|
172
|
+
customProps: {},
|
173
|
+
outerPrintKeys: [],
|
174
|
+
defaultFormatId: "",
|
175
|
+
shortcut: {},
|
176
|
+
buttonProps: {},
|
177
|
+
showMaxHeight: null
|
178
|
+
})
|
179
|
+
},
|
180
|
+
svrUpdateIp: {
|
181
|
+
type: String
|
182
|
+
},
|
183
|
+
hidePreviewBtns: {
|
184
|
+
type: String
|
185
|
+
}
|
186
|
+
},
|
187
|
+
setup(__props, {
|
188
|
+
expose
|
189
|
+
}) {
|
190
|
+
var _a2, _b2, _c2;
|
191
|
+
const props = __props;
|
192
|
+
String(navigator.platform).toLowerCase().includes("linux");
|
193
|
+
const baseDownListSetting = [{
|
194
|
+
label: ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.476")) || "\u5206\u5272\u7EBF",
|
195
|
+
key: "divider"
|
196
|
+
}, {
|
197
|
+
label: ((_b2 = window.getLanguageByCode) == null ? void 0 : _b2.call(window, "10010.1.473")) || "\u5916\u663E\u8BBE\u7F6E",
|
198
|
+
key: "outSetting"
|
199
|
+
}];
|
200
|
+
const $message = useMessage();
|
201
|
+
let printInstance;
|
202
|
+
const downloadPdfCode = "RY7.2.21.1.M2.G94181E";
|
203
|
+
const formatEditTextCode = "RY7.2.21.1.M2.G33633A";
|
204
|
+
const resetPrintButtonCode = "RY7.2.21.1.M2.G99314S";
|
205
|
+
const emit = inject(InjectionButtonPrintEmits);
|
206
|
+
const authorizationKey = ref("");
|
207
|
+
const state = reactive({
|
208
|
+
spinning: false,
|
209
|
+
visible: false,
|
210
|
+
formatList: [],
|
211
|
+
templateParams: [],
|
212
|
+
printParams: [],
|
213
|
+
originParams: {},
|
214
|
+
currentFormatId: "",
|
215
|
+
identityVerification: {
|
216
|
+
visible: false
|
217
|
+
},
|
218
|
+
isInited: false,
|
219
|
+
watchPrintParamsReformatFn: null,
|
220
|
+
spinTimer: null,
|
221
|
+
isClickOuterPrint: false,
|
222
|
+
curPrintParamList: [],
|
223
|
+
iReportExecuteMode: 1
|
224
|
+
});
|
225
|
+
const shortcutFn = ref({});
|
226
|
+
let options = ref([]);
|
227
|
+
let operations = ref([{
|
228
|
+
label: props.previewText,
|
229
|
+
key: "previewText"
|
230
|
+
}, {
|
231
|
+
label: props.pdfLoadText,
|
232
|
+
key: "downloadPdf"
|
233
|
+
}, {
|
234
|
+
label: props.formatEditText,
|
235
|
+
key: "formatEditText"
|
236
|
+
}, {
|
237
|
+
label: ((_c2 = window.getLanguageByCode) == null ? void 0 : _c2.call(window, "10010.1.484")) || "\u91CD\u7F6E\u6253\u5370\u673A",
|
238
|
+
key: "resetPrinter"
|
239
|
+
}]);
|
240
|
+
const downlistOperation = reactive({
|
241
|
+
oneMouseType: "",
|
242
|
+
oneClickType: "",
|
243
|
+
twoMouseType: ""
|
244
|
+
});
|
245
|
+
const downlistPopover = reactive({
|
246
|
+
oneShow: false,
|
247
|
+
isOperation: false,
|
248
|
+
isOutSetting: false
|
249
|
+
});
|
250
|
+
const innerPrintItems = ref([]);
|
251
|
+
const outerPrintItems = ref([]);
|
252
|
+
const currentFormatItem = computed(() => {
|
253
|
+
if (!state.currentFormatId)
|
254
|
+
return {};
|
255
|
+
let id = state.currentFormatId;
|
256
|
+
return state.formatList.find((item) => item.id === id);
|
257
|
+
});
|
258
|
+
computed(() => {
|
259
|
+
var _a3, _b3;
|
260
|
+
return ((_a3 = currentFormatItem.value) == null ? void 0 : _a3.name) || ((_b3 = window.getLanguageByCode) == null ? void 0 : _b3.call(window, "10010.1.485")) || "\u683C\u5F0F\u9009\u62E9";
|
261
|
+
});
|
262
|
+
const getTemplateIdByFormatId = computed(() => {
|
263
|
+
let find = state.formatList.find((item) => item.id === state.currentFormatId);
|
264
|
+
return find == null ? void 0 : find.templateId;
|
265
|
+
});
|
266
|
+
const getTemplateCodeByFormatId = computed(() => {
|
267
|
+
let find = state.formatList.find((item) => item.id === state.currentFormatId);
|
268
|
+
return find == null ? void 0 : find.number;
|
269
|
+
});
|
270
|
+
const isShowPrintAllBtn = computed(() => {
|
271
|
+
var _a3;
|
272
|
+
return (_a3 = props.newPrintSetting) == null ? void 0 : _a3.isShowPrintAll;
|
273
|
+
});
|
274
|
+
const isShowOutSettingBtn = computed(() => {
|
275
|
+
var _a3;
|
276
|
+
return (_a3 = props.newPrintSetting) == null ? void 0 : _a3.isShowOutSetting;
|
277
|
+
});
|
278
|
+
const printCustomProps = computed(() => {
|
279
|
+
var _a3;
|
280
|
+
return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.customProps) || {};
|
281
|
+
});
|
282
|
+
const defaultPrintFormatId = computed(() => {
|
283
|
+
var _a3;
|
284
|
+
return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.defaultFormatId) || "";
|
285
|
+
});
|
286
|
+
const isPrintAllType = computed(() => {
|
287
|
+
var _a3;
|
288
|
+
return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.printAllType) || 1;
|
289
|
+
});
|
290
|
+
const shortcutSettings = computed(() => {
|
291
|
+
var _a3;
|
292
|
+
return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.shortcut) || {};
|
293
|
+
});
|
294
|
+
const buttonProps = computed(() => {
|
295
|
+
var _a3;
|
296
|
+
return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.buttonProps) || {};
|
297
|
+
});
|
298
|
+
const showMaxHeight = computed(() => {
|
299
|
+
var _a3;
|
300
|
+
return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.showMaxHeight) || {};
|
301
|
+
});
|
302
|
+
const printAllFormatIds = computed(() => {
|
303
|
+
var _a3;
|
304
|
+
return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.printAllFormatIds) || [];
|
305
|
+
});
|
306
|
+
const positionElement = computed(() => {
|
307
|
+
var _a3;
|
308
|
+
return (_a3 = props.newPrintSetting) == null ? void 0 : _a3.positionElement;
|
309
|
+
});
|
310
|
+
const printAllShortcut = computed(() => {
|
311
|
+
var _a3, _b3;
|
312
|
+
const keys = Object.keys(shortcutSettings.value);
|
313
|
+
if (keys.length > 0) {
|
314
|
+
if (defaultPrintFormatId.value && keys.includes(defaultPrintFormatId.value)) {
|
315
|
+
return ((_a3 = shortcutSettings.value[defaultPrintFormatId.value]) == null ? void 0 : _a3.shortcutLabel) || "";
|
316
|
+
}
|
317
|
+
if (keys.includes("all")) {
|
318
|
+
return ((_b3 = shortcutSettings.value["all"]) == null ? void 0 : _b3.shortcutLabel) || "";
|
319
|
+
}
|
320
|
+
}
|
321
|
+
return "";
|
322
|
+
});
|
323
|
+
const showSettingItems = computed(() => {
|
324
|
+
const keys = baseDownListSetting.map((base) => base.key);
|
325
|
+
return options.value.filter((option) => !keys.includes(option.key));
|
326
|
+
});
|
327
|
+
const isSelectedAll = computed({
|
328
|
+
get() {
|
329
|
+
return showSettingItems.value.every((option) => option.selected);
|
330
|
+
},
|
331
|
+
set(value) {
|
332
|
+
showSettingItems.value.forEach((option) => {
|
333
|
+
option.selected = value;
|
334
|
+
});
|
335
|
+
}
|
336
|
+
});
|
337
|
+
const innerFilterPrintItems = computed(() => {
|
338
|
+
var _a3;
|
339
|
+
if (((_a3 = innerPrintItems.value) == null ? void 0 : _a3.length) === 2) {
|
340
|
+
return innerPrintItems.value.filter((item) => item.key !== "divider");
|
341
|
+
}
|
342
|
+
return innerPrintItems.value;
|
343
|
+
});
|
344
|
+
const initShowDownList = async () => {
|
345
|
+
var _a3, _b3;
|
346
|
+
if (!((_b3 = (_a3 = props.newPrintSetting) == null ? void 0 : _a3.outerPrintKeys) == null ? void 0 : _b3.length))
|
347
|
+
await handleClickBtn();
|
348
|
+
downlistPopover.oneShow = true;
|
349
|
+
};
|
350
|
+
const printAllButtonClick = async (origin) => {
|
351
|
+
if (props.directPrint) {
|
352
|
+
if (state.spinning)
|
353
|
+
return;
|
354
|
+
if (origin === "button") {
|
355
|
+
isShowPrintAllBtn.value ? await directPrint() : defaultPrintFormatId.value ? directDefaultFormatPrint(defaultPrintFormatId.value) : initShowDownList();
|
356
|
+
return;
|
357
|
+
} else {
|
358
|
+
return initShowDownList();
|
359
|
+
}
|
360
|
+
}
|
361
|
+
return initShowDownList();
|
362
|
+
};
|
363
|
+
const getDownList = (targetList, curOuter) => {
|
364
|
+
if (!state.printParams[curOuter.templateCode])
|
365
|
+
return [];
|
366
|
+
if (isIReport(curOuter.key)) {
|
367
|
+
return targetList.filter((option) => option.key != "formatEditText");
|
368
|
+
}
|
369
|
+
return targetList;
|
370
|
+
};
|
371
|
+
const handleTypeChange = (name, key) => {
|
372
|
+
downlistOperation[name] = key;
|
373
|
+
};
|
374
|
+
const handleTypeClick = (name, key, option) => {
|
375
|
+
if (!state.printParams[option.templateCode])
|
376
|
+
return [];
|
377
|
+
handleTypeChange(name, key);
|
378
|
+
};
|
379
|
+
const savePrintOutSetting = () => {
|
380
|
+
innerPrintItems.value = options.value.filter((option) => !option.selected);
|
381
|
+
outerPrintItems.value = showSettingItems.value.filter((option) => option.selected);
|
382
|
+
handleClickOutHide("oneShow");
|
383
|
+
handleClickOutHide("isOutSetting");
|
384
|
+
emit("saveOuterPrint", outerPrintItems.value);
|
385
|
+
};
|
386
|
+
const handleTwoShow = (name) => {
|
387
|
+
downlistPopover[name] = true;
|
388
|
+
};
|
389
|
+
const handleClickOutHide = (shwoType) => {
|
390
|
+
downlistOperation.oneClickType = "";
|
391
|
+
downlistPopover[shwoType] = false;
|
392
|
+
if (shwoType == "isOutSetting") {
|
393
|
+
downlistPopover.isOutSetting = false;
|
394
|
+
}
|
395
|
+
};
|
396
|
+
const callLocalServicesSuccessCb = (res, type) => {
|
397
|
+
toggleExpandLoading(false);
|
398
|
+
let info = {
|
399
|
+
type,
|
400
|
+
formatId: state.currentFormatId,
|
401
|
+
templateId: (res == null ? void 0 : res.templateId) || getTemplateIdByFormatId.value,
|
402
|
+
templateCode: (res == null ? void 0 : res.templateCode) || getTemplateCodeByFormatId.value
|
403
|
+
};
|
404
|
+
encapBrowserLog({
|
405
|
+
type: "\u8FDB\u5165\u6210\u529F\u7684\u56DE\u8C03",
|
406
|
+
info
|
407
|
+
}, "PRINT-SDK");
|
408
|
+
emit("success", res, info);
|
409
|
+
};
|
410
|
+
const callLocalServicesErrorCb = (res) => {
|
411
|
+
toggleExpandLoading(false);
|
412
|
+
encapBrowserLog({
|
413
|
+
type: "\u8FDB\u5165\u5931\u8D25\u7684\u56DE\u8C03",
|
414
|
+
res
|
415
|
+
}, "PRINT-SDK");
|
416
|
+
emit("error", res);
|
417
|
+
if (isObject(res) && res.type === "notInstalledApp") {
|
418
|
+
$message.error(res.message);
|
419
|
+
}
|
420
|
+
};
|
421
|
+
const callLocalServicesCancelCb = (res) => {
|
422
|
+
toggleExpandLoading(false);
|
423
|
+
emit("cancel", res);
|
424
|
+
};
|
425
|
+
const prevFnError = (type) => {
|
426
|
+
var _a3;
|
427
|
+
const error = {
|
428
|
+
message: ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.486")) || "\u524D\u7F6E\u6761\u4EF6\u6267\u884C\u9519\u8BEF",
|
429
|
+
type,
|
430
|
+
preExecution: true
|
431
|
+
};
|
432
|
+
emit("error", error);
|
433
|
+
};
|
434
|
+
const getPrintParams = () => {
|
435
|
+
return JSON.stringify({
|
436
|
+
...props.token ? {
|
437
|
+
token: props.token
|
438
|
+
} : {}
|
439
|
+
});
|
440
|
+
};
|
441
|
+
const getOnceParams = (curPrintParamList = [], templateCode) => {
|
442
|
+
var _a3, _b3;
|
443
|
+
let params = {};
|
444
|
+
let obj = {};
|
445
|
+
if (((_a3 = state.templateParams[templateCode].customizeDataset) == null ? void 0 : _a3.length) > 0) {
|
446
|
+
const key = ((_b3 = Object.keys(curPrintParamList[0].datasetData || {})) == null ? void 0 : _b3[0]) || "";
|
447
|
+
const datasetDataKeyVal = JSON.stringify(curPrintParamList.map((v) => JSON.parse(v.datasetData[key])));
|
448
|
+
obj = {
|
449
|
+
datasetData: {}
|
450
|
+
};
|
451
|
+
obj.datasetData[key] = datasetDataKeyVal;
|
452
|
+
} else {
|
453
|
+
Object.keys(curPrintParamList[0]).forEach((v) => {
|
454
|
+
obj[v] = [];
|
455
|
+
curPrintParamList.forEach((k) => {
|
456
|
+
if (!obj[v].includes(k[v])) {
|
457
|
+
obj[v].push(k[v]);
|
458
|
+
}
|
459
|
+
});
|
460
|
+
obj[v] = obj[v].join(",");
|
461
|
+
});
|
462
|
+
}
|
463
|
+
params = Object.assign({}, JSON.parse(getPrintParams()), obj, printCustomProps.value);
|
464
|
+
return JSON.stringify(params);
|
465
|
+
};
|
466
|
+
const handleClickPrintAll = () => {
|
467
|
+
var _a3;
|
468
|
+
const templateNumbers = Object.keys(state.printParams);
|
469
|
+
state.isClickOuterPrint = false;
|
470
|
+
const originParamsClone = state.originParams;
|
471
|
+
if (((_a3 = Object.keys(printAllFormatIds.value)) == null ? void 0 : _a3.length) > 0) {
|
472
|
+
options.value.forEach((optItem) => {
|
473
|
+
if (printAllFormatIds.value.includes(optItem.key)) {
|
474
|
+
const tmpParam = state.printParams[optItem.templateCode];
|
475
|
+
const printToParam = originParamsClone[optItem.templateCode] || [];
|
476
|
+
state.currentFormatId = optItem.key;
|
477
|
+
handleClickPrint(tmpParam, optItem.templateCode, optItem.templateId, optItem.key, printToParam, true);
|
478
|
+
}
|
479
|
+
});
|
480
|
+
return;
|
481
|
+
}
|
482
|
+
if (isPrintAllType.value == 1) {
|
483
|
+
for (let i = 0; i < templateNumbers.length; i++) {
|
484
|
+
const templateCode = templateNumbers[i];
|
485
|
+
const tmpParam = state.printParams[templateCode];
|
486
|
+
const printToParam = originParamsClone[templateCode] || [];
|
487
|
+
const formatTypeList = state.formatList.filter((format2) => format2.number == templateCode);
|
488
|
+
if (formatTypeList && formatTypeList.length > 0) {
|
489
|
+
formatTypeList.forEach((format2) => {
|
490
|
+
state.currentFormatId = format2.id;
|
491
|
+
handleClickPrint(tmpParam, format2.number, format2.templateId, format2.id, printToParam, true);
|
492
|
+
});
|
493
|
+
}
|
494
|
+
}
|
495
|
+
}
|
496
|
+
if (isPrintAllType.value == 2) {
|
497
|
+
outerPrintItems.value.forEach((outer) => {
|
498
|
+
const tmpParam = state.printParams[outer.templateCode];
|
499
|
+
const printToParam = originParamsClone[outer.templateCode] || [];
|
500
|
+
state.currentFormatId = outer.key;
|
501
|
+
handleClickPrint(tmpParam, outer.templateCode, outer.templateId, outer.key, printToParam, true);
|
502
|
+
});
|
503
|
+
}
|
504
|
+
};
|
505
|
+
const toggleExpandLoading = (isLoading, formatId) => {
|
506
|
+
if (state.isClickOuterPrint) {
|
507
|
+
if (isLoading && formatId) {
|
508
|
+
const curOption = outerPrintItems.value.find((outer) => outer.key == formatId);
|
509
|
+
if (curOption)
|
510
|
+
curOption.isLoading = isLoading;
|
511
|
+
return;
|
512
|
+
}
|
513
|
+
outerPrintItems.value.forEach((outer) => {
|
514
|
+
outer.isLoading = false;
|
515
|
+
});
|
516
|
+
} else {
|
517
|
+
state.spinning = isLoading;
|
518
|
+
}
|
519
|
+
};
|
520
|
+
const getCurrentLoading = () => {
|
521
|
+
if (state.isClickOuterPrint) {
|
522
|
+
return outerPrintItems.value.some((outer) => outer.isLoading);
|
523
|
+
}
|
524
|
+
return state.spinning;
|
525
|
+
};
|
526
|
+
const handleOneTypePrint = (templateCode, templateId, formatId, isOuterClick) => {
|
527
|
+
const tmpParam = state.printParams[templateCode];
|
528
|
+
if (!tmpParam)
|
529
|
+
return;
|
530
|
+
state.isClickOuterPrint = isOuterClick;
|
531
|
+
state.currentFormatId = formatId;
|
532
|
+
const printToParam = state.originParams[templateCode] || [];
|
533
|
+
handleClickPrint(tmpParam, templateCode, templateId, formatId, printToParam);
|
534
|
+
};
|
535
|
+
const handleClickPrint = async (curPrintParamList = [], templateCode, templateId, formatId, printToParam = [], needContinuePrint) => {
|
536
|
+
let len = curPrintParamList.length;
|
537
|
+
const callLocalServicesSuccessCbTmp = async (data) => {
|
538
|
+
try {
|
539
|
+
if (--len <= 0) {
|
540
|
+
callLocalServicesSuccessCb(data, "print");
|
541
|
+
}
|
542
|
+
} catch (error) {
|
543
|
+
console.log("error", error);
|
544
|
+
}
|
545
|
+
};
|
546
|
+
if (props.showLoading && getCurrentLoading() && !needContinuePrint)
|
547
|
+
return;
|
548
|
+
toggleExpandLoading(true, formatId);
|
549
|
+
props.prevFn("print", {
|
550
|
+
formatId,
|
551
|
+
templateId,
|
552
|
+
params: curPrintParamList
|
553
|
+
}).then(() => {
|
554
|
+
var _a3;
|
555
|
+
state.curPrintParamList = curPrintParamList;
|
556
|
+
const curPrintdlgshow = ((_a3 = printCustomProps.value) == null ? void 0 : _a3.printdlgshow) || props.printdlgshow;
|
557
|
+
const queryParams = {
|
558
|
+
formatId,
|
559
|
+
iReportExecuteMode: state.iReportExecuteMode,
|
560
|
+
templateId,
|
561
|
+
authorizationKey: authorizationKey.value,
|
562
|
+
printdlgshow: curPrintdlgshow,
|
563
|
+
signature: props.signature,
|
564
|
+
copies: props.printCopies,
|
565
|
+
svrUpdateIp: props.svrUpdateIp
|
566
|
+
};
|
567
|
+
if (props.strategy === "MULTI") {
|
568
|
+
for (let i = 0; i < curPrintParamList.length; i++) {
|
569
|
+
if (i > 0)
|
570
|
+
queryParams.printdlgshow = "0";
|
571
|
+
const params = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), curPrintParamList[i], printCustomProps.value));
|
572
|
+
printInstance.printDirect({
|
573
|
+
...queryParams,
|
574
|
+
params
|
575
|
+
}, callLocalServicesSuccessCbTmp, callLocalServicesErrorCb, callLocalServicesCancelCb);
|
576
|
+
}
|
577
|
+
} else {
|
578
|
+
printInstance.printDirect({
|
579
|
+
...queryParams,
|
580
|
+
params: getOnceParams(curPrintParamList, templateCode)
|
581
|
+
}, (res) => {
|
582
|
+
res.params = printToParam;
|
583
|
+
res.templateCode = templateCode;
|
584
|
+
res.templateId = templateId;
|
585
|
+
callLocalServicesSuccessCb(res, "print");
|
586
|
+
}, callLocalServicesErrorCb, callLocalServicesCancelCb);
|
587
|
+
}
|
588
|
+
}).catch(() => {
|
589
|
+
prevFnError("print");
|
590
|
+
toggleExpandLoading(false);
|
591
|
+
}).finally(() => {
|
592
|
+
state.visible = false;
|
593
|
+
});
|
594
|
+
};
|
595
|
+
const handleClickPreview = async (curPrintParamList = [], templateCode, templateId, formatId) => {
|
596
|
+
if (props.showLoading && getCurrentLoading())
|
597
|
+
return;
|
598
|
+
toggleExpandLoading(true, formatId);
|
599
|
+
props.prevFn("preview", {
|
600
|
+
formatId,
|
601
|
+
templateId,
|
602
|
+
params: curPrintParamList
|
603
|
+
}).then(() => {
|
604
|
+
state.curPrintParamList = curPrintParamList;
|
605
|
+
const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), curPrintParamList[0], printCustomProps.value));
|
606
|
+
const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(curPrintParamList, templateCode);
|
607
|
+
const queryParams = {
|
608
|
+
formatId,
|
609
|
+
templateId,
|
610
|
+
iReportExecuteMode: state.iReportExecuteMode,
|
611
|
+
authorizationKey: authorizationKey.value,
|
612
|
+
params,
|
613
|
+
btnprint: props.btnprint,
|
614
|
+
signature: props.signature,
|
615
|
+
hideButtons: props.hidePreviewBtns
|
616
|
+
};
|
617
|
+
printInstance.preview(queryParams, (res) => {
|
618
|
+
callLocalServicesSuccessCb(res, "preview");
|
619
|
+
}, callLocalServicesErrorCb);
|
620
|
+
}).catch(() => {
|
621
|
+
prevFnError("preview");
|
622
|
+
toggleExpandLoading(false);
|
623
|
+
}).finally(() => {
|
624
|
+
state.visible = false;
|
625
|
+
});
|
626
|
+
};
|
627
|
+
const handleClickPdf = async (curPrintParamList = [], templateCode, templateId, formatId) => {
|
628
|
+
if (props.showLoading && getCurrentLoading())
|
629
|
+
return;
|
630
|
+
toggleExpandLoading(true, formatId);
|
631
|
+
props.prevFn("download", {
|
632
|
+
formatId,
|
633
|
+
templateId,
|
634
|
+
params: curPrintParamList
|
635
|
+
}).then(() => {
|
636
|
+
state.curPrintParamList = curPrintParamList;
|
637
|
+
const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), curPrintParamList[0], printCustomProps.value));
|
638
|
+
const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(curPrintParamList, templateCode);
|
639
|
+
const queryParams = {
|
640
|
+
formatId,
|
641
|
+
templateId,
|
642
|
+
iReportExecuteMode: state.iReportExecuteMode,
|
643
|
+
authorizationKey: authorizationKey.value,
|
644
|
+
print: {
|
645
|
+
print: "1",
|
646
|
+
type: "1",
|
647
|
+
resolution: props == null ? void 0 : props.resolution
|
648
|
+
},
|
649
|
+
params,
|
650
|
+
signature: props.signature
|
651
|
+
};
|
652
|
+
printInstance.downloadPDF(queryParams, (res) => callLocalServicesSuccessCb(res, "preview"), callLocalServicesErrorCb);
|
653
|
+
}).catch(() => {
|
654
|
+
prevFnError("download");
|
655
|
+
toggleExpandLoading(false);
|
656
|
+
}).finally(() => {
|
657
|
+
state.visible = false;
|
658
|
+
});
|
659
|
+
};
|
660
|
+
const handleClickEdit = (curPrintParamList = [], templateCode, templateId, formatId) => {
|
661
|
+
if (props.showLoading && getCurrentLoading())
|
662
|
+
return;
|
663
|
+
toggleExpandLoading(true, formatId);
|
664
|
+
props.prevFn("edit", {
|
665
|
+
formatId,
|
666
|
+
templateId,
|
667
|
+
params: curPrintParamList
|
668
|
+
}).then(() => {
|
669
|
+
state.curPrintParamList = curPrintParamList;
|
670
|
+
state.currentFormatId = formatId;
|
671
|
+
state.identityVerification.visible = true;
|
672
|
+
}).catch(() => {
|
673
|
+
prevFnError("edit");
|
674
|
+
}).finally(() => {
|
675
|
+
toggleExpandLoading(false);
|
676
|
+
});
|
677
|
+
};
|
678
|
+
const handleResetPrinter = async (curPrintParamList = [], templateCode, templateId, formatId) => {
|
679
|
+
var _a3, _b3, _c3;
|
680
|
+
if (props.showLoading && getCurrentLoading())
|
681
|
+
return;
|
682
|
+
toggleExpandLoading(true, formatId);
|
683
|
+
try {
|
684
|
+
const data = await printInstance.resetPrinter(formatId, state.iReportExecuteMode);
|
685
|
+
toggleExpandLoading(false);
|
686
|
+
if ((data == null ? void 0 : data.result) == "success") {
|
687
|
+
$message.success((data == null ? void 0 : data.message) || ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.487")) || "\u91CD\u7F6E\u6253\u5370\u673A\u6210\u529F");
|
688
|
+
return;
|
689
|
+
}
|
690
|
+
$message.warning((data == null ? void 0 : data.message) || ((_b3 = window.getLanguageByCode) == null ? void 0 : _b3.call(window, "10010.1.488")) || "\u91CD\u7F6E\u6253\u5370\u673A\u5931\u8D25");
|
691
|
+
} catch (error) {
|
692
|
+
toggleExpandLoading(false);
|
693
|
+
$message.warning((error == null ? void 0 : error.message) || ((_c3 = window.getLanguageByCode) == null ? void 0 : _c3.call(window, "10010.1.488")) || "\u91CD\u7F6E\u6253\u5370\u673A\u5931\u8D25");
|
694
|
+
}
|
695
|
+
};
|
696
|
+
const handleSelect = async (type, {
|
697
|
+
templateCode,
|
698
|
+
templateId,
|
699
|
+
key
|
700
|
+
}, isOuterClick) => {
|
701
|
+
const tmpParam = state.printParams[templateCode];
|
702
|
+
if (!tmpParam)
|
703
|
+
return;
|
704
|
+
state.isClickOuterPrint = isOuterClick;
|
705
|
+
state.currentFormatId = key;
|
706
|
+
switch (type) {
|
707
|
+
case "previewText":
|
708
|
+
handleClickPreview(tmpParam, templateCode, templateId, key);
|
709
|
+
break;
|
710
|
+
case "formatEditText":
|
711
|
+
handleClickEdit(tmpParam, templateCode, templateId, key);
|
712
|
+
break;
|
713
|
+
case "downloadPdf":
|
714
|
+
handleClickPdf(tmpParam, templateCode, templateId, key);
|
715
|
+
break;
|
716
|
+
case "resetPrinter":
|
717
|
+
handleResetPrinter(tmpParam, templateCode, templateId, key);
|
718
|
+
break;
|
719
|
+
}
|
720
|
+
};
|
721
|
+
const handleClickOutside = () => {
|
722
|
+
};
|
723
|
+
const instantiatePrintSDK = () => {
|
724
|
+
if (printInstance)
|
725
|
+
return false;
|
726
|
+
printInstance = new Print();
|
727
|
+
};
|
728
|
+
const setOptions = () => {
|
729
|
+
var _a3, _b3, _c3;
|
730
|
+
const shortKeys = Object.keys(shortcutSettings.value);
|
731
|
+
const children = state.formatList.map((v) => {
|
732
|
+
const item = {
|
733
|
+
templateCode: v.number,
|
734
|
+
templateId: v.templateId,
|
735
|
+
label: v.name,
|
736
|
+
key: v.id,
|
737
|
+
selected: false,
|
738
|
+
isLoading: false
|
739
|
+
};
|
740
|
+
if (shortKeys.includes(v.id)) {
|
741
|
+
const curTypeItem = shortcutSettings.value[v.id];
|
742
|
+
if (curTypeItem) {
|
743
|
+
item.shortcutLabel = curTypeItem.shortcutLabel;
|
744
|
+
}
|
745
|
+
}
|
746
|
+
return item;
|
747
|
+
});
|
748
|
+
options.value.unshift(...children);
|
749
|
+
if (isShowOutSettingBtn.value) {
|
750
|
+
options.value.push(...baseDownListSetting);
|
751
|
+
}
|
752
|
+
if (((_b3 = (_a3 = props.newPrintSetting) == null ? void 0 : _a3.outerPrintKeys) == null ? void 0 : _b3.length) > 0) {
|
753
|
+
options.value.forEach((option) => {
|
754
|
+
var _a4;
|
755
|
+
if ((_a4 = props.newPrintSetting) == null ? void 0 : _a4.outerPrintKeys.includes(option.key)) {
|
756
|
+
option.selected = true;
|
757
|
+
}
|
758
|
+
});
|
759
|
+
outerPrintItems.value = options.value.filter((option) => option.selected);
|
760
|
+
}
|
761
|
+
innerPrintItems.value = options.value.filter((option) => !option.selected);
|
762
|
+
if (props.hideButtons.length > 0) {
|
763
|
+
operations.value = operations.value.filter((operation) => !props.hideButtons.includes(operation.key));
|
764
|
+
}
|
765
|
+
const portalStr = sessionStorage.getItem("portal");
|
766
|
+
if (portalStr) {
|
767
|
+
const portal = JSON.parse(portalStr);
|
768
|
+
const limitObj = ((_c3 = portal == null ? void 0 : portal.user) == null ? void 0 : _c3.currentRoleResourceObj) || {};
|
769
|
+
const limitList = Object.keys(limitObj);
|
770
|
+
if (!limitList.includes(downloadPdfCode)) {
|
771
|
+
operations.value = operations.value.filter((option) => option.key != "downloadPdf");
|
772
|
+
}
|
773
|
+
if (!limitList.includes(formatEditTextCode)) {
|
774
|
+
operations.value = operations.value.filter((option) => option.key != "formatEditText");
|
775
|
+
}
|
776
|
+
if (!limitList.includes(resetPrintButtonCode)) {
|
777
|
+
operations.value = operations.value.filter((option) => option.key != "resetPrinter");
|
778
|
+
}
|
779
|
+
}
|
780
|
+
};
|
781
|
+
const formatFormatList = (list) => {
|
782
|
+
let formatList = [];
|
783
|
+
list && list.forEach((item) => {
|
784
|
+
if (!item.format)
|
785
|
+
return false;
|
786
|
+
formatList.push(...item.format.map((format2) => Object.assign({}, format2, {
|
787
|
+
templateName: item.name
|
788
|
+
})));
|
789
|
+
});
|
790
|
+
return formatList;
|
791
|
+
};
|
792
|
+
const formatDefaultVal = (i, tableVal) => {
|
793
|
+
const formatMap = {
|
794
|
+
DATE: "yyyy-MM-dd",
|
795
|
+
DATETIME: "yyyy-MM-dd HH:mm:ss"
|
796
|
+
};
|
797
|
+
let tVal = tableVal;
|
798
|
+
if (Object.keys(formatMap).includes(i.type) && tableVal && tableVal instanceof Date) {
|
799
|
+
tVal = format(tableVal, formatMap[i.type]);
|
800
|
+
}
|
801
|
+
return (i == null ? void 0 : i.defaultValue) || tVal;
|
802
|
+
};
|
803
|
+
const formatSomeTypeParams = (templateParams, params = []) => {
|
804
|
+
let mergeParams = {};
|
805
|
+
params = params ? params : [];
|
806
|
+
params.forEach((paramObj) => {
|
807
|
+
mergeParams = Object.assign({}, findTemplateAndInsertData(mergeParams, paramObj, templateParams));
|
808
|
+
});
|
809
|
+
return mergeParams;
|
810
|
+
};
|
811
|
+
const formatSomeOriginParams = (templateParams, params = []) => {
|
812
|
+
let mergeOriginParams = {};
|
813
|
+
params = params ? params : [];
|
814
|
+
params.forEach((paramObj) => {
|
815
|
+
mergeOriginParams = Object.assign({}, findTemplateAndInsertParams(mergeOriginParams, paramObj, templateParams));
|
816
|
+
});
|
817
|
+
return mergeOriginParams;
|
818
|
+
};
|
819
|
+
const formatPrintParams = (paramObj, fieldList, keyName) => {
|
820
|
+
const obj = {};
|
821
|
+
fieldList.forEach((params) => {
|
822
|
+
let defaultVal = formatDefaultVal(params, paramObj[params[keyName]]);
|
823
|
+
if (paramObj[params[keyName]] && defaultVal) {
|
824
|
+
obj[params[keyName]] = defaultVal;
|
825
|
+
}
|
826
|
+
});
|
827
|
+
return obj;
|
828
|
+
};
|
829
|
+
const formatItemParam = ({
|
830
|
+
customizeDataset = [],
|
831
|
+
param = []
|
832
|
+
}, paramObj = {}) => {
|
833
|
+
let res = {};
|
834
|
+
customizeDataset.forEach((dataSetItem) => {
|
835
|
+
const selectFieldList = dataSetItem.dataSetting[0].selectFieldList;
|
836
|
+
if (!res["datasetData"]) {
|
837
|
+
res["datasetData"] = {};
|
838
|
+
}
|
839
|
+
res["datasetData"][dataSetItem.name] = JSON.stringify(formatPrintParams(paramObj, selectFieldList, "fieldName"));
|
840
|
+
});
|
841
|
+
res = Object.assign({}, res, formatPrintParams(paramObj, param, "key"));
|
842
|
+
return res;
|
843
|
+
};
|
844
|
+
const findTemplateAndInsertData = (mergeData, paramItem, templateParams) => {
|
845
|
+
if (paramItem.templateNumbers) {
|
846
|
+
for (let i = 0; i < paramItem.templateNumbers.length; i++) {
|
847
|
+
const tempNumber = paramItem.templateNumbers[i];
|
848
|
+
const templateObj = templateParams[tempNumber];
|
849
|
+
if (!templateObj) {
|
850
|
+
return mergeData;
|
851
|
+
}
|
852
|
+
if (!mergeData[tempNumber]) {
|
853
|
+
mergeData[tempNumber] = [];
|
854
|
+
}
|
855
|
+
mergeData[tempNumber].push(formatItemParam(templateObj, paramItem));
|
856
|
+
}
|
857
|
+
return mergeData;
|
858
|
+
}
|
859
|
+
const templateParamKeys = Object.keys(templateParams);
|
860
|
+
for (let i = 0; i < templateParamKeys.length; i++) {
|
861
|
+
const tempNumber = templateParamKeys[i];
|
862
|
+
const templateObj = templateParams[tempNumber];
|
863
|
+
if (!templateObj) {
|
864
|
+
return mergeData;
|
865
|
+
}
|
866
|
+
if (!mergeData[tempNumber]) {
|
867
|
+
mergeData[tempNumber] = [];
|
868
|
+
}
|
869
|
+
mergeData[tempNumber].push(formatItemParam(templateObj, paramItem));
|
870
|
+
}
|
871
|
+
return mergeData;
|
872
|
+
};
|
873
|
+
const findTemplateAndInsertParams = (mergeData, paramItem, templateParams) => {
|
874
|
+
if (paramItem.templateNumbers) {
|
875
|
+
for (let i = 0; i < paramItem.templateNumbers.length; i++) {
|
876
|
+
const tempNumber = paramItem.templateNumbers[i];
|
877
|
+
const templateObj = templateParams[tempNumber];
|
878
|
+
if (!templateObj) {
|
879
|
+
return mergeData;
|
880
|
+
}
|
881
|
+
if (!mergeData[tempNumber]) {
|
882
|
+
mergeData[tempNumber] = [];
|
883
|
+
}
|
884
|
+
mergeData[tempNumber].push(paramItem);
|
885
|
+
}
|
886
|
+
return mergeData;
|
887
|
+
}
|
888
|
+
const templateParamKeys = Object.keys(templateParams);
|
889
|
+
for (let i = 0; i < templateParamKeys.length; i++) {
|
890
|
+
const tempNumber = templateParamKeys[i];
|
891
|
+
const templateObj = templateParams[tempNumber];
|
892
|
+
if (!templateObj) {
|
893
|
+
return mergeData;
|
894
|
+
}
|
895
|
+
if (!mergeData[tempNumber]) {
|
896
|
+
mergeData[tempNumber] = [];
|
897
|
+
}
|
898
|
+
mergeData[tempNumber].push(paramItem);
|
899
|
+
}
|
900
|
+
return mergeData;
|
901
|
+
};
|
902
|
+
const mergeTemplateList = (list) => {
|
903
|
+
let templateObj = {};
|
904
|
+
list && list.forEach((item) => {
|
905
|
+
if (!item.templateConfig)
|
906
|
+
return false;
|
907
|
+
templateObj[item.number] = item.templateConfig;
|
908
|
+
});
|
909
|
+
return templateObj;
|
910
|
+
};
|
911
|
+
const initCRM = async (formatListResult) => {
|
912
|
+
var _a3;
|
913
|
+
state.formatList = formatListResult ? formatFormatList(formatListResult.obj) : [];
|
914
|
+
state.iReportExecuteMode = ((_a3 = formatListResult == null ? void 0 : formatListResult.obj) == null ? void 0 : _a3.length) > 0 ? formatListResult.obj[0].iReportExecuteMode || 1 : 1;
|
915
|
+
setOptions();
|
916
|
+
state.templateParams = mergeTemplateList(formatListResult.obj);
|
917
|
+
state.printParams = formatSomeTypeParams(state.templateParams, props.params);
|
918
|
+
state.originParams = formatSomeOriginParams(state.templateParams, props.params);
|
919
|
+
registerShort();
|
920
|
+
};
|
921
|
+
const init = async () => {
|
922
|
+
var _a3;
|
923
|
+
if (state.isInited)
|
924
|
+
return true;
|
925
|
+
state.isInited = true;
|
926
|
+
state.spinning = true;
|
927
|
+
instantiatePrintSDK();
|
928
|
+
const formatListResult = await props.queryPrintFormatByNumber();
|
929
|
+
await initCRM(formatListResult);
|
930
|
+
if (((_a3 = formatListResult.obj) == null ? void 0 : _a3.length) > 0)
|
931
|
+
authorizationKey.value = formatListResult.obj[0].authorizationKey || "";
|
932
|
+
state.spinning = false;
|
933
|
+
return true;
|
934
|
+
};
|
935
|
+
const registerShort = async () => {
|
936
|
+
const keys = Object.keys(shortcutSettings.value);
|
937
|
+
if (keys.length > 0) {
|
938
|
+
for (let i = 0; i < keys.length; i++) {
|
939
|
+
const key = keys[i];
|
940
|
+
const field = shortcutSettings.value[key];
|
941
|
+
const {
|
942
|
+
stop,
|
943
|
+
signature
|
944
|
+
} = useShortcuts().register({
|
945
|
+
label: field.code,
|
946
|
+
shortcutSignature: field.shortcutKey,
|
947
|
+
operation: ["state", "reset"],
|
948
|
+
callback() {
|
949
|
+
if (key == "all") {
|
950
|
+
printAllButtonClick("button");
|
951
|
+
}
|
952
|
+
const formatIds = showSettingItems.value.map((item) => item.key);
|
953
|
+
const originParamsClone = state.originParams;
|
954
|
+
if (formatIds.includes(key)) {
|
955
|
+
const curTypeItem = showSettingItems.value.find((item) => item.key == key);
|
956
|
+
if (curTypeItem) {
|
957
|
+
const tmpParam = state.printParams[curTypeItem == null ? void 0 : curTypeItem.templateCode];
|
958
|
+
const printToParam = originParamsClone[curTypeItem == null ? void 0 : curTypeItem.templateCode] || [];
|
959
|
+
handleClickPrint(tmpParam, curTypeItem.templateCode, curTypeItem.templateId, curTypeItem.key, printToParam);
|
960
|
+
}
|
961
|
+
}
|
962
|
+
}
|
963
|
+
});
|
964
|
+
shortcutFn.value[key] = stop;
|
965
|
+
}
|
966
|
+
}
|
967
|
+
};
|
968
|
+
const handleClickBtn = async (visible = true) => {
|
969
|
+
const status = await props.clickPrevFn();
|
970
|
+
if (!status)
|
971
|
+
return;
|
972
|
+
if (!state.visible) {
|
973
|
+
let result = await init();
|
974
|
+
if (!result)
|
975
|
+
return false;
|
976
|
+
}
|
977
|
+
if (visible) {
|
978
|
+
state.visible = !state.visible;
|
979
|
+
}
|
980
|
+
};
|
981
|
+
const reformatPrintParams = () => {
|
982
|
+
state.printParams = formatSomeTypeParams(state.templateParams, props.params);
|
983
|
+
state.originParams = formatSomeOriginParams(state.templateParams, props.params);
|
984
|
+
};
|
985
|
+
const verifiySuccess = (token) => {
|
986
|
+
state.identityVerification.visible = false;
|
987
|
+
if (isIReport(state.currentFormatId))
|
988
|
+
return callLocalServicesSuccessCb({
|
989
|
+
result: "success",
|
990
|
+
message: ""
|
991
|
+
}, "edit");
|
992
|
+
const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), state.curPrintParamList[0], printCustomProps.value));
|
993
|
+
const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(state.curPrintParamList, getTemplateCodeByFormatId.value);
|
994
|
+
const queryParams = {
|
995
|
+
formatId: state.currentFormatId,
|
996
|
+
templateId: getTemplateIdByFormatId.value,
|
997
|
+
params,
|
998
|
+
token
|
999
|
+
};
|
1000
|
+
printInstance.editPrintFormat(queryParams, (res) => {
|
1001
|
+
callLocalServicesSuccessCb(res, "edit");
|
1002
|
+
}, callLocalServicesErrorCb);
|
1003
|
+
};
|
1004
|
+
const isPrintDisabled = (outer, j) => {
|
1005
|
+
const nextOuter = outerPrintItems.value[j + 1];
|
1006
|
+
const isLimit = j < outerPrintItems.value.length - 1;
|
1007
|
+
return isLimit && !state.printParams[outer.templateCode] && state.printParams[nextOuter.templateCode];
|
1008
|
+
};
|
1009
|
+
onMounted(() => {
|
1010
|
+
state.isInited = false;
|
1011
|
+
});
|
1012
|
+
onBeforeUnmount(() => {
|
1013
|
+
const shortcutKeys = Object.keys(shortcutFn.value);
|
1014
|
+
if (shortcutKeys.length > 0) {
|
1015
|
+
shortcutKeys.forEach((key) => {
|
1016
|
+
shortcutFn.value[key] && shortcutFn.value[key]();
|
1017
|
+
});
|
1018
|
+
}
|
1019
|
+
});
|
1020
|
+
watch(() => props.params, (val) => {
|
1021
|
+
const keys = Object.keys(state.templateParams);
|
1022
|
+
if (keys.length > 0) {
|
1023
|
+
reformatPrintParams();
|
1024
|
+
}
|
1025
|
+
}, {
|
1026
|
+
deep: true
|
1027
|
+
});
|
1028
|
+
watch(() => {
|
1029
|
+
var _a3;
|
1030
|
+
return (_a3 = props.newPrintSetting) == null ? void 0 : _a3.outerPrintKeys;
|
1031
|
+
}, async (val) => {
|
1032
|
+
if ((val == null ? void 0 : val.length) > 0) {
|
1033
|
+
await handleClickBtn(false);
|
1034
|
+
}
|
1035
|
+
}, {
|
1036
|
+
deep: true,
|
1037
|
+
immediate: true
|
1038
|
+
});
|
1039
|
+
async function directPrint() {
|
1040
|
+
await handleClickBtn(false);
|
1041
|
+
handleClickPrintAll();
|
1042
|
+
}
|
1043
|
+
async function directDefaultFormatPrint(defaultFormatId) {
|
1044
|
+
await handleClickBtn(false);
|
1045
|
+
const curFormat = innerPrintItems.value.find((option) => option.key == defaultFormatId);
|
1046
|
+
if (curFormat) {
|
1047
|
+
handleOneTypePrint(curFormat.templateCode, curFormat.templateId, curFormat.key, false);
|
1048
|
+
}
|
1049
|
+
}
|
1050
|
+
expose({
|
1051
|
+
directPrint
|
1052
|
+
});
|
1053
|
+
return (_ctx, _cache) => {
|
1054
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1, [createCommentVNode(" \u5916\u663E\u6309\u94AE\u96C6\u5408 "), createVNode(unref(NButtonGroup), {
|
1055
|
+
class: "outButtonGroup"
|
1056
|
+
}, {
|
1057
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(outerPrintItems.value, (outer, j) => {
|
1058
|
+
return openBlock(), createBlock(unref(NDropdown), {
|
1059
|
+
key: outer.key,
|
1060
|
+
class: "c-dropdown",
|
1061
|
+
placement: "bottom-start",
|
1062
|
+
trigger: "hover",
|
1063
|
+
onClickoutside: handleClickOutside,
|
1064
|
+
options: getDownList(unref(operations), outer),
|
1065
|
+
onSelect: (type) => handleSelect(type, outer, true)
|
1066
|
+
}, {
|
1067
|
+
default: withCtx(() => [createVNode(unref(NButton), mergeProps(unref(buttonProps), {
|
1068
|
+
disabled: !state.printParams[outer.templateCode],
|
1069
|
+
loading: __props.showLoading && outer.isLoading,
|
1070
|
+
onClick: ($event) => handleOneTypePrint(outer.templateCode, outer.templateId, outer.key, true),
|
1071
|
+
class: j == outerPrintItems.value.length - 1 ? "outerLastButton" : isPrintDisabled(outer, j) ? "isPrintDisabled" : ""
|
1072
|
+
}), {
|
1073
|
+
icon: withCtx(() => [createVNode(unref(NIcon), {
|
1074
|
+
component: unref(PrintOutline),
|
1075
|
+
size: "18"
|
1076
|
+
}, null, 8, ["component"])]),
|
1077
|
+
default: withCtx(() => [createTextVNode(" " + toDisplayString(outer.label) + " ", 1), outer.shortcutLabel ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(outer.shortcutLabel), 1)) : createCommentVNode("v-if", true)]),
|
1078
|
+
_: 2
|
1079
|
+
}, 1040, ["disabled", "loading", "onClick", "class"])]),
|
1080
|
+
_: 2
|
1081
|
+
}, 1032, ["options", "onSelect"]);
|
1082
|
+
}), 128))]),
|
1083
|
+
_: 1
|
1084
|
+
}), 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), {
|
1085
|
+
key: 0,
|
1086
|
+
trigger: "click",
|
1087
|
+
to: unref(positionElement),
|
1088
|
+
"show-arrow": false,
|
1089
|
+
show: downlistPopover.isOutSetting,
|
1090
|
+
onClickoutside: _cache[2] || (_cache[2] = ($event) => handleClickOutHide("isOutSetting"))
|
1091
|
+
}, {
|
1092
|
+
trigger: withCtx(() => [createVNode(unref(NButton), mergeProps(unref(buttonProps), {
|
1093
|
+
class: outerPrintItems.value.length > 0 ? "printAllLeftCls" : "",
|
1094
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleTwoShow("isOutSetting"))
|
1095
|
+
}), {
|
1096
|
+
default: withCtx(() => [_hoisted_3, createVNode(unref(NIcon), {
|
1097
|
+
style: {
|
1098
|
+
"margin-left": "8px"
|
1099
|
+
},
|
1100
|
+
component: unref(SettingsOutline),
|
1101
|
+
size: "18"
|
1102
|
+
}, null, 8, ["component"])]),
|
1103
|
+
_: 1
|
1104
|
+
}, 16, ["class"])]),
|
1105
|
+
default: withCtx(() => [createElementVNode("div", {
|
1106
|
+
class: "newprint-button-poperOver",
|
1107
|
+
style: normalizeStyle({
|
1108
|
+
maxHeight: unref(showMaxHeight) ? `${unref(showMaxHeight)}px` : void 0
|
1109
|
+
})
|
1110
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(showSettingItems), (sItem) => {
|
1111
|
+
return openBlock(), createElementBlock("div", {
|
1112
|
+
class: "print-li",
|
1113
|
+
key: sItem.key
|
1114
|
+
}, [createElementVNode("div", _hoisted_4, [createElementVNode("span", _hoisted_5, toDisplayString(sItem.label), 1), createVNode(unref(NCheckbox), {
|
1115
|
+
checked: sItem.selected,
|
1116
|
+
"onUpdate:checked": ($event) => sItem.selected = $event
|
1117
|
+
}, {
|
1118
|
+
default: withCtx(() => {
|
1119
|
+
var _a3;
|
1120
|
+
return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.474")) || "\u5916\u663E")];
|
1121
|
+
}),
|
1122
|
+
_: 2
|
1123
|
+
}, 1032, ["checked", "onUpdate:checked"])])]);
|
1124
|
+
}), 128)), createElementVNode("div", _hoisted_6, [createVNode(unref(NDivider)), createElementVNode("div", _hoisted_7, [createVNode(unref(NButton), {
|
1125
|
+
type: "primary",
|
1126
|
+
size: "small",
|
1127
|
+
onClick: savePrintOutSetting
|
1128
|
+
}, {
|
1129
|
+
default: withCtx(() => {
|
1130
|
+
var _a3;
|
1131
|
+
return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.244")) || "\u4FDD\u5B58")];
|
1132
|
+
}),
|
1133
|
+
_: 1
|
1134
|
+
}), unref(showSettingItems) && unref(showSettingItems).length > 1 ? (openBlock(), createBlock(unref(NCheckbox), {
|
1135
|
+
key: 0,
|
1136
|
+
checked: unref(isSelectedAll),
|
1137
|
+
"onUpdate:checked": _cache[1] || (_cache[1] = ($event) => isRef(isSelectedAll) ? isSelectedAll.value = $event : null)
|
1138
|
+
}, {
|
1139
|
+
default: withCtx(() => {
|
1140
|
+
var _a3;
|
1141
|
+
return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.37")) || "\u5168\u9009")];
|
1142
|
+
}),
|
1143
|
+
_: 1
|
1144
|
+
}, 8, ["checked"])) : createCommentVNode("v-if", true)])])], 4)]),
|
1145
|
+
_: 1
|
1146
|
+
}, 8, ["to", "show"])) : (openBlock(), createElementBlock(Fragment, {
|
1147
|
+
key: 1
|
1148
|
+
}, [createCommentVNode(" \u6253\u5370\u5168\u90E8\u6309\u94AE "), createVNode(unref(NPopover), {
|
1149
|
+
trigger: "click",
|
1150
|
+
"show-arrow": false,
|
1151
|
+
to: unref(positionElement),
|
1152
|
+
show: downlistPopover.oneShow,
|
1153
|
+
onClickoutside: _cache[10] || (_cache[10] = ($event) => handleClickOutHide("oneShow"))
|
1154
|
+
}, {
|
1155
|
+
trigger: withCtx(() => [renderSlot(_ctx.$slots, "button", {
|
1156
|
+
handleClickPrintBtn: initShowDownList,
|
1157
|
+
handlePrintBySetting: () => printAllButtonClick("button"),
|
1158
|
+
printSpinning: state.spinning,
|
1159
|
+
printbtnText: __props.btnText,
|
1160
|
+
printVisible: state.visible
|
1161
|
+
}, () => [createVNode(unref(NButtonGroup), {
|
1162
|
+
class: "newprint-button-component",
|
1163
|
+
onClick: _cache[4] || (_cache[4] = withModifiers(() => printAllButtonClick("icon"), ["stop"]))
|
1164
|
+
}, {
|
1165
|
+
default: withCtx(() => [createVNode(unref(NButton), mergeProps({
|
1166
|
+
loading: __props.showLoading && state.spinning
|
1167
|
+
}, unref(buttonProps), {
|
1168
|
+
onClick: _cache[3] || (_cache[3] = withModifiers(() => printAllButtonClick("button"), ["stop"])),
|
1169
|
+
class: outerPrintItems.value.length > 0 ? "printAllLeftCls" : ""
|
1170
|
+
}), {
|
1171
|
+
icon: withCtx(() => [createVNode(unref(NIcon), {
|
1172
|
+
component: unref(PrintOutline),
|
1173
|
+
size: "18"
|
1174
|
+
}, null, 8, ["component"])]),
|
1175
|
+
default: withCtx(() => {
|
1176
|
+
var _a3;
|
1177
|
+
return [createTextVNode(" " + toDisplayString(unref(isShowPrintAllBtn) ? ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.475")) || "\u6253\u5370\u5168\u90E8" : __props.btnText) + " ", 1), unref(printAllShortcut) ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(printAllShortcut)), 1)) : createCommentVNode("v-if", true)];
|
1178
|
+
}),
|
1179
|
+
_: 1
|
1180
|
+
}, 16, ["loading", "class"]), createVNode(unref(NButton), mergeProps({
|
1181
|
+
class: "icon-select"
|
1182
|
+
}, unref(buttonProps)), {
|
1183
|
+
icon: withCtx(() => [createVNode(unref(NIcon), {
|
1184
|
+
component: unref(ChevronDownSharp),
|
1185
|
+
size: "18"
|
1186
|
+
}, null, 8, ["component"])]),
|
1187
|
+
_: 1
|
1188
|
+
}, 16)]),
|
1189
|
+
_: 1
|
1190
|
+
})])]),
|
1191
|
+
default: withCtx(() => [createElementVNode("div", {
|
1192
|
+
class: "newprint-button-poperOver",
|
1193
|
+
style: normalizeStyle({
|
1194
|
+
maxHeight: unref(showMaxHeight) ? `${unref(showMaxHeight)}px` : void 0
|
1195
|
+
})
|
1196
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(innerFilterPrintItems), (option) => {
|
1197
|
+
return openBlock(), createElementBlock("div", {
|
1198
|
+
class: normalizeClass(["print-li", downlistOperation.oneMouseType == option.key || downlistOperation.oneClickType == option.key ? "active" : ""]),
|
1199
|
+
key: option.key,
|
1200
|
+
onMouseenter: ($event) => handleTypeChange("oneMouseType", option.key),
|
1201
|
+
onMouseleave: _cache[9] || (_cache[9] = ($event) => handleTypeChange("oneMouseType", "")),
|
1202
|
+
onClick: ($event) => handleTypeClick("oneClickType", option.key, option)
|
1203
|
+
}, [option.key == "divider" ? (openBlock(), createBlock(unref(NDivider), {
|
1204
|
+
key: 0
|
1205
|
+
})) : option.key == "outSetting" ? (openBlock(), createElementBlock(Fragment, {
|
1206
|
+
key: 1
|
1207
|
+
}, [createCommentVNode(" \u7B2C\u4E8C\u5C42\u5916\u663E\u8BBE\u7F6E "), createVNode(unref(NPopover), {
|
1208
|
+
trigger: "click",
|
1209
|
+
"show-arrow": false,
|
1210
|
+
to: false,
|
1211
|
+
placement: "right-start",
|
1212
|
+
show: downlistPopover.isOutSetting,
|
1213
|
+
onClickoutside: _cache[7] || (_cache[7] = ($event) => handleClickOutHide("isOutSetting"))
|
1214
|
+
}, {
|
1215
|
+
trigger: withCtx(() => [createElementVNode("div", {
|
1216
|
+
class: "print-lite",
|
1217
|
+
onClick: _cache[5] || (_cache[5] = ($event) => handleTwoShow("isOutSetting"))
|
1218
|
+
}, [createElementVNode("span", _hoisted_10, toDisplayString(option.label), 1), createVNode(unref(NIcon), {
|
1219
|
+
color: outerPrintItems.value.length > 0 ? "#2563F4" : "",
|
1220
|
+
component: unref(SettingsOutline),
|
1221
|
+
size: "18"
|
1222
|
+
}, null, 8, ["color", "component"])])]),
|
1223
|
+
default: withCtx(() => [createElementVNode("div", {
|
1224
|
+
class: "newprint-button-poperOver",
|
1225
|
+
style: normalizeStyle({
|
1226
|
+
maxHeight: unref(showMaxHeight) ? `${unref(showMaxHeight)}px` : void 0
|
1227
|
+
})
|
1228
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(showSettingItems), (sItem) => {
|
1229
|
+
return openBlock(), createElementBlock("div", {
|
1230
|
+
class: "print-li",
|
1231
|
+
key: sItem.key
|
1232
|
+
}, [createElementVNode("div", _hoisted_11, [createElementVNode("span", _hoisted_12, toDisplayString(sItem.label), 1), createVNode(unref(NCheckbox), {
|
1233
|
+
checked: sItem.selected,
|
1234
|
+
"onUpdate:checked": ($event) => sItem.selected = $event
|
1235
|
+
}, {
|
1236
|
+
default: withCtx(() => {
|
1237
|
+
var _a3;
|
1238
|
+
return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.474")) || "\u5916\u663E")];
|
1239
|
+
}),
|
1240
|
+
_: 2
|
1241
|
+
}, 1032, ["checked", "onUpdate:checked"])])]);
|
1242
|
+
}), 128)), createElementVNode("div", _hoisted_13, [createVNode(unref(NDivider)), createElementVNode("div", _hoisted_14, [createVNode(unref(NButton), {
|
1243
|
+
type: "primary",
|
1244
|
+
size: "small",
|
1245
|
+
onClick: savePrintOutSetting
|
1246
|
+
}, {
|
1247
|
+
default: withCtx(() => {
|
1248
|
+
var _a3;
|
1249
|
+
return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.244")) || "\u4FDD\u5B58")];
|
1250
|
+
}),
|
1251
|
+
_: 1
|
1252
|
+
}), unref(showSettingItems) && unref(showSettingItems).length > 1 ? (openBlock(), createBlock(unref(NCheckbox), {
|
1253
|
+
key: 0,
|
1254
|
+
checked: unref(isSelectedAll),
|
1255
|
+
"onUpdate:checked": _cache[6] || (_cache[6] = ($event) => isRef(isSelectedAll) ? isSelectedAll.value = $event : null)
|
1256
|
+
}, {
|
1257
|
+
default: withCtx(() => {
|
1258
|
+
var _a3;
|
1259
|
+
return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.37")) || "\u5168\u9009")];
|
1260
|
+
}),
|
1261
|
+
_: 1
|
1262
|
+
}, 8, ["checked"])) : createCommentVNode("v-if", true)])])], 4)]),
|
1263
|
+
_: 2
|
1264
|
+
}, 1032, ["show"])], 2112)) : (openBlock(), createElementBlock(Fragment, {
|
1265
|
+
key: 2
|
1266
|
+
}, [createCommentVNode(" \u7B2C\u4E8C\u5C42\u529F\u80FD\u64CD\u4F5C "), createElementVNode("div", {
|
1267
|
+
class: normalizeClass(["print-lite", !state.printParams[option.templateCode] ? "isDisabled" : ""]),
|
1268
|
+
style: {
|
1269
|
+
"background": "transparent"
|
1270
|
+
}
|
1271
|
+
}, [createElementVNode("span", {
|
1272
|
+
class: "label bold",
|
1273
|
+
onClick: ($event) => handleOneTypePrint(option.templateCode, option.templateId, option.key, false)
|
1274
|
+
}, [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), {
|
1275
|
+
key: 0,
|
1276
|
+
trigger: "click",
|
1277
|
+
"show-arrow": false,
|
1278
|
+
to: false,
|
1279
|
+
placement: "right-start",
|
1280
|
+
show: downlistPopover[option.key],
|
1281
|
+
onClickoutside: ($event) => handleClickOutHide(option.key)
|
1282
|
+
}, {
|
1283
|
+
trigger: withCtx(() => [createVNode(unref(NIcon), {
|
1284
|
+
component: unref(ArrowForwardOutline),
|
1285
|
+
size: "18",
|
1286
|
+
onClick: ($event) => handleTwoShow(option.key)
|
1287
|
+
}, null, 8, ["component", "onClick"])]),
|
1288
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_17, [(openBlock(true), createElementBlock(Fragment, null, renderList(getDownList(unref(operations), option), (operation) => {
|
1289
|
+
return openBlock(), createElementBlock("div", {
|
1290
|
+
class: normalizeClass(["print-li", downlistOperation.twoMouseType == operation.key ? "active" : ""]),
|
1291
|
+
key: operation.key,
|
1292
|
+
onMouseenter: ($event) => handleTypeChange("twoMouseType", operation.key),
|
1293
|
+
onMouseleave: _cache[8] || (_cache[8] = ($event) => handleTypeChange("twoMouseType", ""))
|
1294
|
+
}, [createElementVNode("div", _hoisted_19, [createElementVNode("span", {
|
1295
|
+
class: "label",
|
1296
|
+
onClick: ($event) => handleSelect(operation.key, option, false)
|
1297
|
+
}, toDisplayString(operation.label), 9, _hoisted_20)])], 42, _hoisted_18);
|
1298
|
+
}), 128))])]),
|
1299
|
+
_: 2
|
1300
|
+
}, 1032, ["show", "onClickoutside"])) : createCommentVNode("v-if", true)], 2)], 2112))], 42, _hoisted_9);
|
1301
|
+
}), 128))], 4)]),
|
1302
|
+
_: 3
|
1303
|
+
}, 8, ["to", "show"])], 2112))]), createVNode(IdentityVerification, mergeProps(_ctx.$attrs, {
|
1304
|
+
modelValue: state.identityVerification.visible,
|
1305
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => state.identityVerification.visible = $event),
|
1306
|
+
formatId: state.currentFormatId,
|
1307
|
+
templateId: unref(getTemplateIdByFormatId),
|
1308
|
+
onSuccess: verifiySuccess
|
1309
|
+
}), null, 16, ["modelValue", "formatId", "templateId"])], 64);
|
1310
|
+
};
|
1311
|
+
}
|
1312
|
+
});
|
1313
|
+
|
1314
|
+
export { _sfc_main as default };
|