cnhis-design-vue 3.3.1-beta.9 → 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 +393 -36
- package/es/components/ai-chat/index.js +10 -1
- package/es/components/ai-chat/src/Index.vue.d.ts +393 -36
- 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.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 +86 -99
- package/es/components/audio-sdk/index.js +11 -1
- package/es/components/audio-sdk/src/Index.vue.d.ts +84 -97
- package/es/components/audio-sdk/src/Index.vue.js +6 -1
- package/es/components/audio-sdk/src/Index.vue2.js +133 -1
- package/es/components/audio-sdk/src/audioSDK.d.ts +64 -24
- package/es/components/audio-sdk/src/audioSDK.js +387 -1
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +29 -13
- package/es/components/audio-sdk/src/components/recording-modal.vue.js +6 -1
- package/es/components/audio-sdk/src/components/recording-modal.vue2.js +40 -1
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +30 -13
- 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 +4 -1
- package/es/components/audio-sdk/src/utils/index.js +48 -1
- 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.js +167 -1
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +45 -1
- 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.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 -2
- 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,714 @@
|
|
1
|
-
import{defineComponent as t,useAttrs as e,inject as n,ref as a,reactive as i,computed as r,onMounted as o,watch as l,openBlock as s,createElementBlock as d,Fragment as u,createVNode as p,unref as m,withCtx as c,renderSlot as f,withModifiers as v,createTextVNode as g,toDisplayString as y,mergeProps as w}from"vue";import{isObject as b}from"@vue/shared";import{useMessage as I,NDropdown as h,NButton as P,NIcon as F}from"naive-ui";import{ChevronDown as k}from"@vicons/ionicons5";import{InjectionButtonPrintEmits as x}from"../constants/index.js";import{Print as T}from"../utils/print.js";import{isIReport as S}from"../utils/browserPrint.js";import L from"./IdentityVerification.vue.js";import{format as E}from"date-fns";import{savePrivateFormatApi as j,getPrivateFormatApi as M}from"../api.js";import{cloneDeep as C}from"lodash-es";var O,D,R,B,N,V,U=t({__name:"OldPrintComponent",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:(null==(O=window.getLanguageByCode)?void 0:O.call(window,"10010.1.478"))||"打印",type:String},printText:{default:(null==(D=window.getLanguageByCode)?void 0:D.call(window,"10010.1.479"))||"直接打印",type:String},previewText:{default:(null==(R=window.getLanguageByCode)?void 0:R.call(window,"10010.1.480"))||"打印预览",type:String},pdfLoadText:{default:(null==(B=window.getLanguageByCode)?void 0:B.call(window,"10010.1.481"))||"下载pdf",type:String},formatEditText:{default:(null==(N=window.getLanguageByCode)?void 0:N.call(window,"10010.1.482"))||"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},queryTemplateParams:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:(null==(V=window.getLanguageByCode)?void 0:V.call(window,"10010.1.483"))||"请选中需要打印的数据",type:String},noDefaultFormatMsg:{default:"获取打印格式失败,请联系管理员!",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},printCustomProps:{type:Object,default:()=>({})},placement:{type:String},svrUpdateIp:{type:String}},setup(t,{expose:O}){var D;const R=t,B=e(),N=I();let V;String(navigator.platform).toLowerCase().includes("linux");const U=n(x),z={},A=a(""),J=i({spinning:!1,visible:!1,formatList:[],templateParams:{},printParams:[],currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null,iReportExecuteMode:1});let q=a([{label:R.printText,key:"printText"},{label:R.previewText,key:"previewText"},{label:R.pdfLoadText,key:"downloadPdf"},{label:R.formatEditText,key:"formatEditText"},...(null==(D=R.externalOptionConfig)?void 0:D.options)||[]]);const K=a([]),_=r((()=>{if(!J.currentFormatId)return{};let t=J.currentFormatId;return J.formatList.find((e=>e.id===t))})),G=r((()=>{var t,e;return(null==(t=_.value)?void 0:t.name)||(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.485"))||"格式选择"})),H=r((()=>{let t=J.formatList.find((t=>t.id===J.currentFormatId));return null==t?void 0:t.templateId})),Y=async t=>{if(R.directPrint){if(J.spinning)return;return"button"===t?void await ct():ut()}return ut()},$=t=>p("span",{class:{active:t.key===J.currentFormatId}},[t.label]),Q=(t,e)=>{J.spinning=!1;let n={type:e,formatId:J.currentFormatId,templateId:H.value};U("success",t,n)},W=t=>{J.spinning=!1,U("error",t),b(t)&&"notInstalledApp"===t.type&&N.error(t.message)},X=t=>{J.spinning=!1,U("cancel",t)},Z=t=>{var e;const n={message:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.486"))||"前置条件执行错误",type:t,preExecution:!0};U("error",n)},tt=(t=0)=>{var e;const n=(null==(e=R.printParams)?void 0:e.length)?R.printParams[t]:J.printParams[t];return JSON.stringify({...n||{},...R.token?{token:R.token}:{},...R.printCustomProps||{}})},et=()=>{var t,e;let n={},a={};if(null==(t=J.templateParams.customizeDataset)?void 0:t.length){const t=(null==(e=Object.keys(J.printParams[0].datasetData||{}))?void 0:e[0])||"",n=JSON.stringify(J.printParams.map((e=>JSON.parse(e.datasetData[t]))));a={datasetData:{}},a.datasetData[t]=n}else Object.keys(J.printParams[0]).forEach((t=>{a[t]=[],J.printParams.forEach((e=>{a[t].includes(e[t])||a[t].push(e[t])})),a[t]=a[t].join(",")}));return n=Object.assign({},JSON.parse(tt(0)),a),JSON.stringify(n)},nt=((t,e,n=!0)=>{let a=null;return function(...i){a&&clearTimeout(a),n&&!a&&t.apply(null,i),a=setTimeout((()=>{a=null,!n&&t.apply(null,i)}),e)}})((()=>{let t=J.printParams.length;const e=async e=>{try{--t<=0&&Q(e,"print")}catch(t){console.log("error",t)}};R.showLoading&&J.spinning||(J.spinning=!0,R.prevFn("print",{formatId:J.currentFormatId,templateId:H.value}).then((()=>{const t={iReportExecuteMode:J.iReportExecuteMode,formatId:J.currentFormatId,templateId:H.value,authorizationKey:A.value,printdlgshow:R.printdlgshow,signature:R.signature,copies:R.printCopies,svrUpdateIp:R.svrUpdateIp};if("MULTI"===R.strategy)for(let n=0;n<J.printParams.length;n++)n>0&&(t.printdlgshow="0"),V.printDirect({...t,params:tt(n)},e,W,X);else V.printDirect({...t,params:et()},(t=>{Q(t,"print")}),W,X)})).catch((()=>{Z("print"),J.spinning=!1})).finally((()=>{J.visible=!1})))}),800,!0),at=async(t,e)=>{var n,a;switch(t){case"printText":nt();break;case"previewText":(async()=>{R.showLoading&&J.spinning||(J.spinning=!0,R.prevFn("preview",{formatId:J.currentFormatId,templateId:H.value}).then((()=>{const t="MULTI"===R.strategy?tt():et(),e={formatId:J.currentFormatId,iReportExecuteMode:J.iReportExecuteMode,templateId:H.value,authorizationKey:A.value,params:t,btnprint:R.btnprint,signature:R.signature};V.preview(e,(t=>{Q(t,"preview")}),W)})).catch((()=>{Z("preview"),J.spinning=!1})).finally((()=>{J.visible=!1})))})();break;case"formatEditText":R.showLoading&&J.spinning||(J.spinning=!0,R.prevFn("edit",{formatId:J.currentFormatId,templateId:H.value}).then((()=>{J.identityVerification.visible=!0})).catch((()=>{Z("edit")})).finally((()=>{J.visible=!1,J.spinning=!1})));break;case"downloadPdf":(async()=>{R.showLoading&&J.spinning||(J.spinning=!0,R.prevFn("download",{formatId:J.currentFormatId,templateId:H.value}).then((()=>{const t="MULTI"===R.strategy?tt():et(),e={formatId:J.currentFormatId,iReportExecuteMode:J.iReportExecuteMode,templateId:H.value,authorizationKey:A.value,print:{print:"1",type:"1",resolution:null==R?void 0:R.resolution},params:t,signature:R.signature};V.downloadPDF(e,(t=>Q(t,"preview")),W)})).catch((()=>{Z("download"),J.spinning=!1})).finally((()=>{J.visible=!1})))})();break;default:{J.visible=!1;const i=J.formatList.find((e=>e.id===t))||{};if(Object.keys(i).length>0){S(t)?q.value=K.value.filter((t=>"formatEditText"!=t.key)):q.value=K.value,J.currentFormatId=t;const[e]=q.value;e.label=(null==i?void 0:i.name)||e.label,await j({formatForms:[{...i}],name:z.name||i.templateName,number:z.number||i.number,templateId:z.templateId||i.templateId,...z.id?{id:z.id}:{}},{token:R.token})}else null==(a=null==(n=R.externalOptionConfig)?void 0:n.onSelect)||a.call(n,t,e,{formatId:J.currentFormatId});break}}},it=()=>{J.visible=!1,U("clickoutside")},rt=()=>(J.isInited=!1,J.spinning=!1,setTimeout((()=>{J.visible=!1}),0),!1),ot=(t,e,n)=>{const a={};return e.forEach((e=>{let i=((t,e)=>{const n={DATE:"yyyy-MM-dd",DATETIME:"yyyy-MM-dd HH:mm:ss"};let a=e;return Object.keys(n).includes(t.type)&&e&&e instanceof Date&&(a=E(e,n[t.type])),(null==t?void 0:t.defaultValue)||a})(e,t[e[n]]);t[e[n]]&&i&&(a[e[n]]=i)})),a},lt=({customizeDataset:t=[],param:e=[]},n=[])=>n.map((n=>{let a={};return t.forEach((t=>{const e=t.dataSetting[0].selectFieldList;a.datasetData={[t.name]:JSON.stringify(ot(n,e,"fieldName"))}})),a=Object.assign({},a,ot(n,e,"key")),a})),st=async t=>{var e,n;if(J.formatList=t?(t=>{let e=[];return t&&t.forEach((t=>{if(!t.format)return!1;e.push(...t.format.map((e=>Object.assign({},e,{templateName:t.name}))))})),e})(t.obj):[],J.iReportExecuteMode=(null==(e=null==t?void 0:t.obj)?void 0:e.length)>0&&t.obj[0].iReportExecuteMode||1,J.currentFormatId=await(async(t,e)=>{var n;if(!(null==t?void 0:t.length))return"";if(!B.isDoc){const{data:e}=await M({templateId:t[0].templateId},{token:R.token});if("SUCCESS"===e.result){const{formatForms:a=[]}=e.map||{};Object.assign(z,e.map||{});const i=null==(n=null==a?void 0:a[0])?void 0:n.id;if(i&&t.map((t=>t.id)).includes(i))return i}}const a=t.find((t=>1==t[e]));return(null==a?void 0:a.id)||t[0].id})(J.formatList,"defaultFlag"),!J.currentFormatId)return q.value=[],N.error(R.noDefaultFormatMsg),rt();(()=>{var t;const e=J.formatList.map((t=>({label:t.name,key:t.id})));q.value.unshift({label:G.value,key:"format",children:e}),R.hideButtons.length>0&&(q.value=q.value.filter((t=>!R.hideButtons.includes(t.key))));const n=sessionStorage.getItem("portal");if(n){const e=JSON.parse(n),a=(null==(t=null==e?void 0:e.user)?void 0:t.currentRoleResourceObj)||{},i=Object.keys(a);i.includes("RY7.2.21.1.M2.G94181E")||(q.value=q.value.filter((t=>"downloadPdf"!=t.key))),i.includes("RY7.2.21.1.M2.G33633A")||(q.value=q.value.filter((t=>"formatEditText"!=t.key)))}K.value=C(q.value),S(J.currentFormatId)&&(q.value=K.value.filter((t=>"formatEditText"!=t.key)))})();let a=null==(n=await R.queryTemplateParams())?void 0:n.obj;if(!a||!H.value)return N.error("获取打印模板失败,请联系管理员!"),rt();J.templateParams=a,J.printParams=lt(J.templateParams,R.params)},dt=async()=>{var t;if(J.isInited)return!0;J.isInited=!0,J.spinning=!0,(()=>{if(V)return!1;V=new T})();const e=await R.queryPrintFormatByNumber();return await st(e),(null==(t=e.obj)?void 0:t.length)>0&&(A.value=e.obj[0].authorizationKey||""),J.spinning=!1,!0},ut=async(t=!0)=>{var e,n;if(await R.clickPrevFn())if((null==(e=R.params)?void 0:e.length)||(null==(n=R.printParams)?void 0:n.length)){if(!J.visible){if(!await dt())return!1}t&&(J.visible=!J.visible)}else N.warning(R.noDataMsg)},pt=()=>{J.watchPrintParamsReformatFn&&J.watchPrintParamsReformatFn(),J.isInited?J.printParams=lt(J.templateParams,R.params):J.watchPrintParamsReformatFn=()=>l((()=>J.isInited),(t=>{if(!t)return!1;pt()}))},mt=t=>{if(J.identityVerification.visible=!1,S(J.currentFormatId))return Q(null,"edit");const e={formatId:J.currentFormatId,templateId:H.value,params:tt(),token:t};V.editPrintFormat(e,(t=>{Q(t,"edit")}),W)};async function ct(){await ut(!1),nt()}return o((()=>{J.isInited=!1})),l((()=>R.params),(t=>{if(!(null==t?void 0:t.length))return!1;pt()}),{deep:!0}),O({directPrint:ct}),(e,n)=>(s(),d(u,null,[p(m(h),{class:"c-dropdown",placement:t.placement,trigger:"click",show:J.visible,onClickoutside:it,options:m(q),onSelect:at,"render-label":$},{default:c((()=>[f(e.$slots,"button",{handleClickPrintBtn:ut,printSpinning:J.spinning,printbtnText:t.btnText,printVisible:J.visible},(()=>[p(m(P),{class:"dropdown-button",loading:t.showLoading&&J.spinning,onClick:n[1]||(n[1]=v((()=>Y("button")),["stop"]))},{default:c((()=>[g(y(t.btnText)+" ",1),p(m(F),{component:m(k),size:"18",style:{"margin-left":"5px"},onClick:n[0]||(n[0]=v((()=>Y("icon")),["stop"]))},null,8,["component"])])),_:1},8,["loading"])]))])),_:3},8,["placement","show","options"]),p(L,w(m(B),{modelValue:J.identityVerification.visible,"onUpdate:modelValue":n[2]||(n[2]=t=>J.identityVerification.visible=t),formatId:J.currentFormatId,templateId:m(H),onSuccess:mt}),null,16,["modelValue","formatId","templateId"])],64))}});export{U as default};
|
1
|
+
import { defineComponent, useAttrs, inject, ref, reactive, computed, onMounted, watch, openBlock, createElementBlock, Fragment, createVNode, unref, withCtx, renderSlot, withModifiers, createTextVNode, toDisplayString, mergeProps } from 'vue';
|
2
|
+
import { isObject } from '@vue/shared';
|
3
|
+
import { useMessage, NDropdown, NButton, NIcon } from 'naive-ui';
|
4
|
+
import { ChevronDown } 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 { savePrivateFormatApi, getPrivateFormatApi } from '../api.js';
|
11
|
+
import { cloneDeep } from 'lodash-es';
|
12
|
+
|
13
|
+
var _a, _b, _c, _d, _e, _f;
|
14
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
15
|
+
__name: "OldPrintComponent",
|
16
|
+
props: {
|
17
|
+
printParams: {
|
18
|
+
type: Array
|
19
|
+
},
|
20
|
+
params: {
|
21
|
+
default: () => [],
|
22
|
+
type: Array
|
23
|
+
},
|
24
|
+
btnText: {
|
25
|
+
default: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.478")) || "\u6253\u5370",
|
26
|
+
type: String
|
27
|
+
},
|
28
|
+
printText: {
|
29
|
+
default: ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.479")) || "\u76F4\u63A5\u6253\u5370",
|
30
|
+
type: String
|
31
|
+
},
|
32
|
+
previewText: {
|
33
|
+
default: ((_c = window.getLanguageByCode) == null ? void 0 : _c.call(window, "10010.1.480")) || "\u6253\u5370\u9884\u89C8",
|
34
|
+
type: String
|
35
|
+
},
|
36
|
+
pdfLoadText: {
|
37
|
+
default: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.481")) || "\u4E0B\u8F7Dpdf",
|
38
|
+
type: String
|
39
|
+
},
|
40
|
+
formatEditText: {
|
41
|
+
default: ((_e = window.getLanguageByCode) == null ? void 0 : _e.call(window, "10010.1.482")) || "\u683C\u5F0F\u7F16\u8F91",
|
42
|
+
type: String
|
43
|
+
},
|
44
|
+
prevFn: {
|
45
|
+
default: () => Promise.resolve(),
|
46
|
+
type: Function
|
47
|
+
},
|
48
|
+
queryPrintFormatByNumber: {
|
49
|
+
default: () => Promise.resolve({}),
|
50
|
+
type: Function
|
51
|
+
},
|
52
|
+
queryTemplateParams: {
|
53
|
+
default: () => Promise.resolve({}),
|
54
|
+
type: Function
|
55
|
+
},
|
56
|
+
strategy: {
|
57
|
+
default: "MULTI",
|
58
|
+
type: String
|
59
|
+
},
|
60
|
+
clickPrevFn: {
|
61
|
+
default: () => Promise.resolve(true),
|
62
|
+
type: Function
|
63
|
+
},
|
64
|
+
noDataMsg: {
|
65
|
+
default: ((_f = window.getLanguageByCode) == null ? void 0 : _f.call(window, "10010.1.483")) || "\u8BF7\u9009\u4E2D\u9700\u8981\u6253\u5370\u7684\u6570\u636E",
|
66
|
+
type: String
|
67
|
+
},
|
68
|
+
noDefaultFormatMsg: {
|
69
|
+
default: "\u83B7\u53D6\u6253\u5370\u683C\u5F0F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01",
|
70
|
+
type: String
|
71
|
+
},
|
72
|
+
token: {
|
73
|
+
type: String
|
74
|
+
},
|
75
|
+
printdlgshow: {
|
76
|
+
default: "0",
|
77
|
+
type: String
|
78
|
+
},
|
79
|
+
btnprint: {
|
80
|
+
type: String,
|
81
|
+
default: "1"
|
82
|
+
},
|
83
|
+
directPrint: {
|
84
|
+
type: Boolean,
|
85
|
+
default: false
|
86
|
+
},
|
87
|
+
externalOptionConfig: {
|
88
|
+
type: Object,
|
89
|
+
default: () => ({})
|
90
|
+
},
|
91
|
+
signature: {
|
92
|
+
type: String
|
93
|
+
},
|
94
|
+
showLoading: {
|
95
|
+
type: Boolean,
|
96
|
+
default: true
|
97
|
+
},
|
98
|
+
hideButtons: {
|
99
|
+
type: Array,
|
100
|
+
default: () => []
|
101
|
+
},
|
102
|
+
printCopies: {
|
103
|
+
type: Number
|
104
|
+
},
|
105
|
+
resolution: {
|
106
|
+
type: Number
|
107
|
+
},
|
108
|
+
printCustomProps: {
|
109
|
+
type: Object,
|
110
|
+
default: () => ({})
|
111
|
+
},
|
112
|
+
placement: {
|
113
|
+
type: String
|
114
|
+
},
|
115
|
+
svrUpdateIp: {
|
116
|
+
type: String
|
117
|
+
},
|
118
|
+
hidePreviewBtns: {
|
119
|
+
type: String
|
120
|
+
}
|
121
|
+
},
|
122
|
+
setup(__props, {
|
123
|
+
expose
|
124
|
+
}) {
|
125
|
+
var _a2;
|
126
|
+
const props = __props;
|
127
|
+
const $attrs = useAttrs();
|
128
|
+
const $message = useMessage();
|
129
|
+
let printInstance;
|
130
|
+
const downloadPdfCode = "RY7.2.21.1.M2.G94181E";
|
131
|
+
const formatEditTextCode = "RY7.2.21.1.M2.G33633A";
|
132
|
+
String(navigator.platform).toLowerCase().includes("linux");
|
133
|
+
const emit = inject(InjectionButtonPrintEmits);
|
134
|
+
const defaultFormatInfo = {};
|
135
|
+
const authorizationKey = ref("");
|
136
|
+
const state = reactive({
|
137
|
+
spinning: false,
|
138
|
+
visible: false,
|
139
|
+
formatList: [],
|
140
|
+
templateParams: {},
|
141
|
+
printParams: [],
|
142
|
+
currentFormatId: "",
|
143
|
+
identityVerification: {
|
144
|
+
visible: false
|
145
|
+
},
|
146
|
+
isInited: false,
|
147
|
+
watchPrintParamsReformatFn: null,
|
148
|
+
spinTimer: null,
|
149
|
+
iReportExecuteMode: 1
|
150
|
+
});
|
151
|
+
let options = ref([{
|
152
|
+
label: props.printText,
|
153
|
+
key: "printText"
|
154
|
+
}, {
|
155
|
+
label: props.previewText,
|
156
|
+
key: "previewText"
|
157
|
+
}, {
|
158
|
+
label: props.pdfLoadText,
|
159
|
+
key: "downloadPdf"
|
160
|
+
}, {
|
161
|
+
label: props.formatEditText,
|
162
|
+
key: "formatEditText"
|
163
|
+
}, ...((_a2 = props.externalOptionConfig) == null ? void 0 : _a2.options) || []]);
|
164
|
+
const tempOptions = ref([]);
|
165
|
+
const currentFormatItem = computed(() => {
|
166
|
+
if (!state.currentFormatId)
|
167
|
+
return {};
|
168
|
+
let id = state.currentFormatId;
|
169
|
+
return state.formatList.find((item) => item.id === id);
|
170
|
+
});
|
171
|
+
const formatTitle = computed(() => {
|
172
|
+
var _a3, _b2;
|
173
|
+
return ((_a3 = currentFormatItem.value) == null ? void 0 : _a3.name) || ((_b2 = window.getLanguageByCode) == null ? void 0 : _b2.call(window, "10010.1.485")) || "\u683C\u5F0F\u9009\u62E9";
|
174
|
+
});
|
175
|
+
const getTemplateIdByFormatId = computed(() => {
|
176
|
+
let find = state.formatList.find((item) => item.id === state.currentFormatId);
|
177
|
+
return find == null ? void 0 : find.templateId;
|
178
|
+
});
|
179
|
+
const buttonClick = async (origin) => {
|
180
|
+
if (props.directPrint) {
|
181
|
+
if (state.spinning)
|
182
|
+
return;
|
183
|
+
if (origin === "button") {
|
184
|
+
await directPrint();
|
185
|
+
return;
|
186
|
+
} else {
|
187
|
+
return handleClickBtn();
|
188
|
+
}
|
189
|
+
}
|
190
|
+
return handleClickBtn();
|
191
|
+
};
|
192
|
+
const renderLabel = (option) => {
|
193
|
+
return createVNode("span", {
|
194
|
+
"class": {
|
195
|
+
active: option.key === state.currentFormatId
|
196
|
+
}
|
197
|
+
}, [option.label]);
|
198
|
+
};
|
199
|
+
const debounce = (fn, delay, immediate = true) => {
|
200
|
+
let timer = null;
|
201
|
+
return function(...args) {
|
202
|
+
if (timer)
|
203
|
+
clearTimeout(timer);
|
204
|
+
immediate && !timer && fn.apply(null, args);
|
205
|
+
timer = setTimeout(() => {
|
206
|
+
timer = null;
|
207
|
+
!immediate && fn.apply(null, args);
|
208
|
+
}, delay);
|
209
|
+
};
|
210
|
+
};
|
211
|
+
const callLocalServicesSuccessCb = (res, type) => {
|
212
|
+
state.spinning = false;
|
213
|
+
let info = {
|
214
|
+
type,
|
215
|
+
formatId: state.currentFormatId,
|
216
|
+
templateId: getTemplateIdByFormatId.value
|
217
|
+
};
|
218
|
+
emit("success", res, info);
|
219
|
+
};
|
220
|
+
const callLocalServicesErrorCb = (res) => {
|
221
|
+
state.spinning = false;
|
222
|
+
emit("error", res);
|
223
|
+
if (isObject(res) && res.type === "notInstalledApp") {
|
224
|
+
$message.error(res.message);
|
225
|
+
}
|
226
|
+
};
|
227
|
+
const callLocalServicesCancelCb = (res) => {
|
228
|
+
state.spinning = false;
|
229
|
+
emit("cancel", res);
|
230
|
+
};
|
231
|
+
const prevFnError = (type) => {
|
232
|
+
var _a3;
|
233
|
+
const error = {
|
234
|
+
message: ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.486")) || "\u524D\u7F6E\u6761\u4EF6\u6267\u884C\u9519\u8BEF",
|
235
|
+
type,
|
236
|
+
preExecution: true
|
237
|
+
};
|
238
|
+
emit("error", error);
|
239
|
+
};
|
240
|
+
const getPrintParams = (index = 0) => {
|
241
|
+
var _a3;
|
242
|
+
const params = ((_a3 = props.printParams) == null ? void 0 : _a3.length) ? props.printParams[index] : state.printParams[index];
|
243
|
+
return JSON.stringify({
|
244
|
+
...params || {},
|
245
|
+
...props.token ? {
|
246
|
+
token: props.token
|
247
|
+
} : {},
|
248
|
+
...props.printCustomProps || {}
|
249
|
+
});
|
250
|
+
};
|
251
|
+
const getOnceParams = () => {
|
252
|
+
var _a3, _b2;
|
253
|
+
let params = {};
|
254
|
+
let obj = {};
|
255
|
+
if ((_a3 = state.templateParams.customizeDataset) == null ? void 0 : _a3.length) {
|
256
|
+
const key = ((_b2 = Object.keys(state.printParams[0].datasetData || {})) == null ? void 0 : _b2[0]) || "";
|
257
|
+
const datasetDataKeyVal = JSON.stringify(state.printParams.map((v) => JSON.parse(v.datasetData[key])));
|
258
|
+
obj = {
|
259
|
+
datasetData: {}
|
260
|
+
};
|
261
|
+
obj.datasetData[key] = datasetDataKeyVal;
|
262
|
+
} else {
|
263
|
+
Object.keys(state.printParams[0]).forEach((v) => {
|
264
|
+
obj[v] = [];
|
265
|
+
state.printParams.forEach((k) => {
|
266
|
+
if (!obj[v].includes(k[v])) {
|
267
|
+
obj[v].push(k[v]);
|
268
|
+
}
|
269
|
+
});
|
270
|
+
obj[v] = obj[v].join(",");
|
271
|
+
});
|
272
|
+
}
|
273
|
+
params = Object.assign({}, JSON.parse(getPrintParams(0)), obj);
|
274
|
+
return JSON.stringify(params);
|
275
|
+
};
|
276
|
+
const handleClickPrint = () => {
|
277
|
+
let len = state.printParams.length;
|
278
|
+
const callLocalServicesSuccessCbTmp = async (data) => {
|
279
|
+
try {
|
280
|
+
if (--len <= 0) {
|
281
|
+
callLocalServicesSuccessCb(data, "print");
|
282
|
+
}
|
283
|
+
} catch (error) {
|
284
|
+
console.log("error", error);
|
285
|
+
}
|
286
|
+
};
|
287
|
+
if (props.showLoading && state.spinning)
|
288
|
+
return;
|
289
|
+
state.spinning = true;
|
290
|
+
props.prevFn("print", {
|
291
|
+
formatId: state.currentFormatId,
|
292
|
+
templateId: getTemplateIdByFormatId.value
|
293
|
+
}).then(() => {
|
294
|
+
const queryParams = {
|
295
|
+
iReportExecuteMode: state.iReportExecuteMode,
|
296
|
+
formatId: state.currentFormatId,
|
297
|
+
templateId: getTemplateIdByFormatId.value,
|
298
|
+
authorizationKey: authorizationKey.value,
|
299
|
+
printdlgshow: props.printdlgshow,
|
300
|
+
signature: props.signature,
|
301
|
+
copies: props.printCopies,
|
302
|
+
svrUpdateIp: props.svrUpdateIp
|
303
|
+
};
|
304
|
+
if (props.strategy === "MULTI") {
|
305
|
+
for (let i = 0; i < state.printParams.length; i++) {
|
306
|
+
if (i > 0)
|
307
|
+
queryParams.printdlgshow = "0";
|
308
|
+
printInstance.printDirect({
|
309
|
+
...queryParams,
|
310
|
+
params: getPrintParams(i)
|
311
|
+
}, callLocalServicesSuccessCbTmp, callLocalServicesErrorCb, callLocalServicesCancelCb);
|
312
|
+
}
|
313
|
+
} else {
|
314
|
+
printInstance.printDirect({
|
315
|
+
...queryParams,
|
316
|
+
params: getOnceParams()
|
317
|
+
}, (res) => {
|
318
|
+
callLocalServicesSuccessCb(res, "print");
|
319
|
+
}, callLocalServicesErrorCb, callLocalServicesCancelCb);
|
320
|
+
}
|
321
|
+
}).catch(() => {
|
322
|
+
prevFnError("print");
|
323
|
+
state.spinning = false;
|
324
|
+
}).finally(() => {
|
325
|
+
state.visible = false;
|
326
|
+
});
|
327
|
+
};
|
328
|
+
const handleDebounceClickPrint = debounce(handleClickPrint, 800, true);
|
329
|
+
const handleClickPreview = async () => {
|
330
|
+
if (props.showLoading && state.spinning)
|
331
|
+
return;
|
332
|
+
state.spinning = true;
|
333
|
+
props.prevFn("preview", {
|
334
|
+
formatId: state.currentFormatId,
|
335
|
+
templateId: getTemplateIdByFormatId.value
|
336
|
+
}).then(() => {
|
337
|
+
const params = props.strategy === "MULTI" ? getPrintParams() : getOnceParams();
|
338
|
+
const queryParams = {
|
339
|
+
formatId: state.currentFormatId,
|
340
|
+
iReportExecuteMode: state.iReportExecuteMode,
|
341
|
+
templateId: getTemplateIdByFormatId.value,
|
342
|
+
authorizationKey: authorizationKey.value,
|
343
|
+
params,
|
344
|
+
btnprint: props.btnprint,
|
345
|
+
signature: props.signature,
|
346
|
+
hideButtons: props.hidePreviewBtns
|
347
|
+
};
|
348
|
+
printInstance.preview(queryParams, (res) => {
|
349
|
+
callLocalServicesSuccessCb(res, "preview");
|
350
|
+
}, callLocalServicesErrorCb);
|
351
|
+
}).catch(() => {
|
352
|
+
prevFnError("preview");
|
353
|
+
state.spinning = false;
|
354
|
+
}).finally(() => {
|
355
|
+
state.visible = false;
|
356
|
+
});
|
357
|
+
};
|
358
|
+
const handleClickPdf = async () => {
|
359
|
+
if (props.showLoading && state.spinning)
|
360
|
+
return;
|
361
|
+
state.spinning = true;
|
362
|
+
props.prevFn("download", {
|
363
|
+
formatId: state.currentFormatId,
|
364
|
+
templateId: getTemplateIdByFormatId.value
|
365
|
+
}).then(() => {
|
366
|
+
const params = props.strategy === "MULTI" ? getPrintParams() : getOnceParams();
|
367
|
+
const queryParams = {
|
368
|
+
formatId: state.currentFormatId,
|
369
|
+
iReportExecuteMode: state.iReportExecuteMode,
|
370
|
+
templateId: getTemplateIdByFormatId.value,
|
371
|
+
authorizationKey: authorizationKey.value,
|
372
|
+
print: {
|
373
|
+
print: "1",
|
374
|
+
type: "1",
|
375
|
+
resolution: props == null ? void 0 : props.resolution
|
376
|
+
},
|
377
|
+
params,
|
378
|
+
signature: props.signature
|
379
|
+
};
|
380
|
+
printInstance.downloadPDF(queryParams, (res) => callLocalServicesSuccessCb(res, "preview"), callLocalServicesErrorCb);
|
381
|
+
}).catch(() => {
|
382
|
+
prevFnError("download");
|
383
|
+
state.spinning = false;
|
384
|
+
}).finally(() => {
|
385
|
+
state.visible = false;
|
386
|
+
});
|
387
|
+
};
|
388
|
+
const handleClickEdit = () => {
|
389
|
+
if (props.showLoading && state.spinning)
|
390
|
+
return;
|
391
|
+
state.spinning = true;
|
392
|
+
props.prevFn("edit", {
|
393
|
+
formatId: state.currentFormatId,
|
394
|
+
templateId: getTemplateIdByFormatId.value
|
395
|
+
}).then(() => {
|
396
|
+
state.identityVerification.visible = true;
|
397
|
+
}).catch(() => {
|
398
|
+
prevFnError("edit");
|
399
|
+
}).finally(() => {
|
400
|
+
state.visible = false;
|
401
|
+
state.spinning = false;
|
402
|
+
});
|
403
|
+
};
|
404
|
+
const handleSelect = async (key, option) => {
|
405
|
+
var _a3, _b2;
|
406
|
+
switch (key) {
|
407
|
+
case "printText":
|
408
|
+
handleDebounceClickPrint();
|
409
|
+
break;
|
410
|
+
case "previewText":
|
411
|
+
handleClickPreview();
|
412
|
+
break;
|
413
|
+
case "formatEditText":
|
414
|
+
handleClickEdit();
|
415
|
+
break;
|
416
|
+
case "downloadPdf":
|
417
|
+
handleClickPdf();
|
418
|
+
break;
|
419
|
+
default: {
|
420
|
+
state.visible = false;
|
421
|
+
const formatObj = state.formatList.find((item) => item.id === key) || {};
|
422
|
+
if (Object.keys(formatObj).length > 0) {
|
423
|
+
if (isIReport(key)) {
|
424
|
+
options.value = tempOptions.value.filter((option2) => option2.key != "formatEditText");
|
425
|
+
} else {
|
426
|
+
options.value = tempOptions.value;
|
427
|
+
}
|
428
|
+
state.currentFormatId = key;
|
429
|
+
const [firstItem] = options.value;
|
430
|
+
firstItem.label = (formatObj == null ? void 0 : formatObj.name) || firstItem.label;
|
431
|
+
await savePrivateFormatApi({
|
432
|
+
formatForms: [{
|
433
|
+
...formatObj
|
434
|
+
}],
|
435
|
+
name: defaultFormatInfo.name || formatObj.templateName,
|
436
|
+
number: defaultFormatInfo.number || formatObj.number,
|
437
|
+
templateId: defaultFormatInfo.templateId || formatObj.templateId,
|
438
|
+
...defaultFormatInfo.id ? {
|
439
|
+
id: defaultFormatInfo.id
|
440
|
+
} : {}
|
441
|
+
}, {
|
442
|
+
token: props.token
|
443
|
+
});
|
444
|
+
} else {
|
445
|
+
(_b2 = (_a3 = props.externalOptionConfig) == null ? void 0 : _a3.onSelect) == null ? void 0 : _b2.call(_a3, key, option, {
|
446
|
+
formatId: state.currentFormatId
|
447
|
+
});
|
448
|
+
}
|
449
|
+
break;
|
450
|
+
}
|
451
|
+
}
|
452
|
+
};
|
453
|
+
const handleClickOutside = () => {
|
454
|
+
state.visible = false;
|
455
|
+
emit("clickoutside");
|
456
|
+
};
|
457
|
+
const instantiatePrintSDK = () => {
|
458
|
+
if (printInstance)
|
459
|
+
return false;
|
460
|
+
printInstance = new Print();
|
461
|
+
};
|
462
|
+
const getDefaultFormatId = async (list, key) => {
|
463
|
+
var _a3;
|
464
|
+
if (!(list == null ? void 0 : list.length))
|
465
|
+
return "";
|
466
|
+
if (!$attrs.isDoc) {
|
467
|
+
const {
|
468
|
+
data
|
469
|
+
} = await getPrivateFormatApi({
|
470
|
+
templateId: list[0].templateId
|
471
|
+
}, {
|
472
|
+
token: props.token
|
473
|
+
});
|
474
|
+
if (data.result === "SUCCESS") {
|
475
|
+
const {
|
476
|
+
formatForms = []
|
477
|
+
} = data.map || {};
|
478
|
+
Object.assign(defaultFormatInfo, data.map || {});
|
479
|
+
const id = (_a3 = formatForms == null ? void 0 : formatForms[0]) == null ? void 0 : _a3.id;
|
480
|
+
if (id && list.map((item) => item.id).includes(id))
|
481
|
+
return id;
|
482
|
+
}
|
483
|
+
}
|
484
|
+
const findDefault = list.find((item) => item[key] == 1);
|
485
|
+
return (findDefault == null ? void 0 : findDefault.id) || list[0].id;
|
486
|
+
};
|
487
|
+
const setOptions = () => {
|
488
|
+
var _a3;
|
489
|
+
const children = state.formatList.map((v) => {
|
490
|
+
return {
|
491
|
+
label: v.name,
|
492
|
+
key: v.id
|
493
|
+
};
|
494
|
+
});
|
495
|
+
options.value.unshift({
|
496
|
+
label: formatTitle.value,
|
497
|
+
key: "format",
|
498
|
+
children
|
499
|
+
});
|
500
|
+
if (props.hideButtons.length > 0) {
|
501
|
+
options.value = options.value.filter((option) => !props.hideButtons.includes(option.key));
|
502
|
+
}
|
503
|
+
const portalStr = sessionStorage.getItem("portal");
|
504
|
+
if (portalStr) {
|
505
|
+
const portal = JSON.parse(portalStr);
|
506
|
+
const limitObj = ((_a3 = portal == null ? void 0 : portal.user) == null ? void 0 : _a3.currentRoleResourceObj) || {};
|
507
|
+
const limitList = Object.keys(limitObj);
|
508
|
+
if (!limitList.includes(downloadPdfCode)) {
|
509
|
+
options.value = options.value.filter((option) => option.key != "downloadPdf");
|
510
|
+
}
|
511
|
+
if (!limitList.includes(formatEditTextCode)) {
|
512
|
+
options.value = options.value.filter((option) => option.key != "formatEditText");
|
513
|
+
}
|
514
|
+
}
|
515
|
+
tempOptions.value = cloneDeep(options.value);
|
516
|
+
if (isIReport(state.currentFormatId)) {
|
517
|
+
options.value = tempOptions.value.filter((option) => option.key != "formatEditText");
|
518
|
+
}
|
519
|
+
};
|
520
|
+
const formatFormatList = (list) => {
|
521
|
+
let formatList = [];
|
522
|
+
list && list.forEach((item) => {
|
523
|
+
if (!item.format)
|
524
|
+
return false;
|
525
|
+
formatList.push(...item.format.map((format2) => Object.assign({}, format2, {
|
526
|
+
templateName: item.name
|
527
|
+
})));
|
528
|
+
});
|
529
|
+
return formatList;
|
530
|
+
};
|
531
|
+
const requestError = () => {
|
532
|
+
state.isInited = false;
|
533
|
+
state.spinning = false;
|
534
|
+
setTimeout(() => {
|
535
|
+
state.visible = false;
|
536
|
+
}, 0);
|
537
|
+
return false;
|
538
|
+
};
|
539
|
+
const formatDefaultVal = (i, tableVal) => {
|
540
|
+
const formatMap = {
|
541
|
+
DATE: "yyyy-MM-dd",
|
542
|
+
DATETIME: "yyyy-MM-dd HH:mm:ss"
|
543
|
+
};
|
544
|
+
let tVal = tableVal;
|
545
|
+
if (Object.keys(formatMap).includes(i.type) && tableVal && tableVal instanceof Date) {
|
546
|
+
tVal = format(tableVal, formatMap[i.type]);
|
547
|
+
}
|
548
|
+
return (i == null ? void 0 : i.defaultValue) || tVal;
|
549
|
+
};
|
550
|
+
const formatPrintParams = (paramObj, fieldList, keyName) => {
|
551
|
+
const obj = {};
|
552
|
+
fieldList.forEach((i) => {
|
553
|
+
let defaultVal = formatDefaultVal(i, paramObj[i[keyName]]);
|
554
|
+
if (paramObj[i[keyName]] && defaultVal) {
|
555
|
+
obj[i[keyName]] = defaultVal;
|
556
|
+
}
|
557
|
+
});
|
558
|
+
return obj;
|
559
|
+
};
|
560
|
+
const formatParams = ({
|
561
|
+
customizeDataset = [],
|
562
|
+
param = []
|
563
|
+
}, params = []) => {
|
564
|
+
return params.map((paramObj) => {
|
565
|
+
let res = {};
|
566
|
+
customizeDataset.forEach((dataSetItem) => {
|
567
|
+
const selectFieldList = dataSetItem.dataSetting[0].selectFieldList;
|
568
|
+
res["datasetData"] = {
|
569
|
+
[dataSetItem.name]: JSON.stringify(formatPrintParams(paramObj, selectFieldList, "fieldName"))
|
570
|
+
};
|
571
|
+
});
|
572
|
+
res = Object.assign({}, res, formatPrintParams(paramObj, param, "key"));
|
573
|
+
return res;
|
574
|
+
});
|
575
|
+
};
|
576
|
+
const initCRM = async (formatListResult) => {
|
577
|
+
var _a3, _b2;
|
578
|
+
state.formatList = formatListResult ? formatFormatList(formatListResult.obj) : [];
|
579
|
+
state.iReportExecuteMode = ((_a3 = formatListResult == null ? void 0 : formatListResult.obj) == null ? void 0 : _a3.length) > 0 ? formatListResult.obj[0].iReportExecuteMode || 1 : 1;
|
580
|
+
state.currentFormatId = await getDefaultFormatId(state.formatList, "defaultFlag");
|
581
|
+
if (!state.currentFormatId) {
|
582
|
+
options.value = [];
|
583
|
+
$message.error(props.noDefaultFormatMsg);
|
584
|
+
return requestError();
|
585
|
+
}
|
586
|
+
setOptions();
|
587
|
+
let templateParamsResult = (_b2 = await props.queryTemplateParams()) == null ? void 0 : _b2.obj;
|
588
|
+
if (templateParamsResult && getTemplateIdByFormatId.value) {
|
589
|
+
state.templateParams = templateParamsResult;
|
590
|
+
} else {
|
591
|
+
$message.error("\u83B7\u53D6\u6253\u5370\u6A21\u677F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01");
|
592
|
+
return requestError();
|
593
|
+
}
|
594
|
+
state.printParams = formatParams(state.templateParams, props.params);
|
595
|
+
};
|
596
|
+
const init = async () => {
|
597
|
+
var _a3;
|
598
|
+
if (state.isInited)
|
599
|
+
return true;
|
600
|
+
state.isInited = true;
|
601
|
+
state.spinning = true;
|
602
|
+
instantiatePrintSDK();
|
603
|
+
const formatListResult = await props.queryPrintFormatByNumber();
|
604
|
+
await initCRM(formatListResult);
|
605
|
+
if (((_a3 = formatListResult.obj) == null ? void 0 : _a3.length) > 0)
|
606
|
+
authorizationKey.value = formatListResult.obj[0].authorizationKey || "";
|
607
|
+
state.spinning = false;
|
608
|
+
return true;
|
609
|
+
};
|
610
|
+
const handleClickBtn = async (visible = true) => {
|
611
|
+
var _a3, _b2;
|
612
|
+
const status = await props.clickPrevFn();
|
613
|
+
if (!status)
|
614
|
+
return;
|
615
|
+
if (!((_a3 = props.params) == null ? void 0 : _a3.length) && !((_b2 = props.printParams) == null ? void 0 : _b2.length)) {
|
616
|
+
$message.warning(props.noDataMsg);
|
617
|
+
return;
|
618
|
+
}
|
619
|
+
if (!state.visible) {
|
620
|
+
let result = await init();
|
621
|
+
if (!result)
|
622
|
+
return false;
|
623
|
+
}
|
624
|
+
if (visible) {
|
625
|
+
state.visible = !state.visible;
|
626
|
+
}
|
627
|
+
};
|
628
|
+
const reformatPrintParams = () => {
|
629
|
+
state.watchPrintParamsReformatFn && state.watchPrintParamsReformatFn();
|
630
|
+
if (!state.isInited) {
|
631
|
+
state.watchPrintParamsReformatFn = () => watch(() => state.isInited, (val) => {
|
632
|
+
if (!val)
|
633
|
+
return false;
|
634
|
+
reformatPrintParams();
|
635
|
+
});
|
636
|
+
return;
|
637
|
+
}
|
638
|
+
state.printParams = formatParams(state.templateParams, props.params);
|
639
|
+
};
|
640
|
+
const verifiySuccess = (token) => {
|
641
|
+
state.identityVerification.visible = false;
|
642
|
+
if (isIReport(state.currentFormatId))
|
643
|
+
return callLocalServicesSuccessCb(null, "edit");
|
644
|
+
const queryParams = {
|
645
|
+
formatId: state.currentFormatId,
|
646
|
+
templateId: getTemplateIdByFormatId.value,
|
647
|
+
params: getPrintParams(),
|
648
|
+
token
|
649
|
+
};
|
650
|
+
printInstance.editPrintFormat(queryParams, (res) => {
|
651
|
+
callLocalServicesSuccessCb(res, "edit");
|
652
|
+
}, callLocalServicesErrorCb);
|
653
|
+
};
|
654
|
+
onMounted(() => {
|
655
|
+
state.isInited = false;
|
656
|
+
});
|
657
|
+
watch(() => props.params, (val) => {
|
658
|
+
if (!(val == null ? void 0 : val.length))
|
659
|
+
return false;
|
660
|
+
reformatPrintParams();
|
661
|
+
}, {
|
662
|
+
deep: true
|
663
|
+
});
|
664
|
+
async function directPrint() {
|
665
|
+
await handleClickBtn(false);
|
666
|
+
handleDebounceClickPrint();
|
667
|
+
}
|
668
|
+
expose({
|
669
|
+
directPrint
|
670
|
+
});
|
671
|
+
return (_ctx, _cache) => {
|
672
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(NDropdown), {
|
673
|
+
class: "c-dropdown",
|
674
|
+
placement: __props.placement,
|
675
|
+
trigger: "click",
|
676
|
+
show: state.visible,
|
677
|
+
onClickoutside: handleClickOutside,
|
678
|
+
options: unref(options),
|
679
|
+
onSelect: handleSelect,
|
680
|
+
"render-label": renderLabel
|
681
|
+
}, {
|
682
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "button", {
|
683
|
+
handleClickPrintBtn: handleClickBtn,
|
684
|
+
printSpinning: state.spinning,
|
685
|
+
printbtnText: __props.btnText,
|
686
|
+
printVisible: state.visible
|
687
|
+
}, () => [createVNode(unref(NButton), {
|
688
|
+
class: "dropdown-button",
|
689
|
+
loading: __props.showLoading && state.spinning,
|
690
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => buttonClick("button"), ["stop"]))
|
691
|
+
}, {
|
692
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.btnText) + " ", 1), createVNode(unref(NIcon), {
|
693
|
+
component: unref(ChevronDown),
|
694
|
+
size: "18",
|
695
|
+
style: {
|
696
|
+
"margin-left": "5px"
|
697
|
+
},
|
698
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => buttonClick("icon"), ["stop"]))
|
699
|
+
}, null, 8, ["component"])]),
|
700
|
+
_: 1
|
701
|
+
}, 8, ["loading"])])]),
|
702
|
+
_: 3
|
703
|
+
}, 8, ["placement", "show", "options"]), createVNode(IdentityVerification, mergeProps(unref($attrs), {
|
704
|
+
modelValue: state.identityVerification.visible,
|
705
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => state.identityVerification.visible = $event),
|
706
|
+
formatId: state.currentFormatId,
|
707
|
+
templateId: unref(getTemplateIdByFormatId),
|
708
|
+
onSuccess: verifiySuccess
|
709
|
+
}), null, 16, ["modelValue", "formatId", "templateId"])], 64);
|
710
|
+
};
|
711
|
+
}
|
712
|
+
});
|
713
|
+
|
714
|
+
export { _sfc_main as default };
|