cnhis-design-vue 3.3.2-release.0 → 3.3.2-release.2

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.
Files changed (251) hide show
  1. package/es/components/audio-sdk/index.d.ts +173 -146
  2. package/es/components/audio-sdk/src/Index.vue.d.ts +174 -147
  3. package/es/components/audio-sdk/src/Index.vue2.js +131 -53
  4. package/es/components/audio-sdk/src/audioSDK.d.ts +29 -26
  5. package/es/components/audio-sdk/src/audioSDK.js +123 -42
  6. package/es/components/audio-sdk/src/components/readyCountdown.vue.d.ts +31 -0
  7. package/es/components/audio-sdk/src/components/readyCountdown.vue.js +6 -0
  8. package/es/components/audio-sdk/src/components/readyCountdown.vue2.js +46 -0
  9. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +138 -10
  10. package/es/components/audio-sdk/src/components/recording.vue.d.ts +139 -11
  11. package/es/components/audio-sdk/src/components/recording.vue2.js +318 -74
  12. package/es/components/audio-sdk/src/hooks/useChartAudioContext.d.ts +24 -0
  13. package/es/components/audio-sdk/src/hooks/useChartAudioContext.js +176 -0
  14. package/es/components/audio-sdk/src/svgs/Close.vue.js +26 -0
  15. package/es/components/audio-sdk/src/svgs/Continue.vue.js +20 -0
  16. package/es/components/audio-sdk/src/svgs/Enlarge.vue.js +20 -0
  17. package/es/components/audio-sdk/src/svgs/Pause.vue.js +20 -0
  18. package/es/components/audio-sdk/src/svgs/WaveView.vue.js +20 -0
  19. package/es/components/audio-sdk/src/svgs/Zoom.vue.js +27 -0
  20. package/es/components/audio-sdk/src/types/index.d.ts +42 -0
  21. package/es/components/audio-sdk/src/types/index.js +10 -0
  22. package/es/components/audio-sdk/src/utils/recordingModal.d.ts +9 -3
  23. package/es/components/audio-sdk/src/utils/recordingModal.js +57 -32
  24. package/es/components/audio-sdk/style/index.css +1 -1
  25. package/es/components/base-search/src/index.vue2.js +30 -18
  26. package/es/components/big-table/src/BigTable.vue2.js +191 -133
  27. package/es/components/big-table/src/components/NoData.vue2.js +16 -4
  28. package/es/components/big-table/src/components/edit-form/edit-date.js +12 -6
  29. package/es/components/big-table/src/components/edit-form/edit-input.js +8 -2
  30. package/es/components/big-table/src/components/edit-form/edit-select.js +21 -17
  31. package/es/components/big-table/src/components/edit-form/edit-time.js +11 -4
  32. package/es/components/big-table/src/components/input-button.vue2.js +8 -4
  33. package/es/components/big-table/src/hooks/useNestTable.js +18 -4
  34. package/es/components/big-table/src/hooks/useTableParse.js +16 -3
  35. package/es/components/body-select/src/index.vue2.js +24 -4
  36. package/es/components/button-print/index.d.ts +12 -4
  37. package/es/components/button-print/src/ButtonPrint.vue.d.ts +12 -4
  38. package/es/components/button-print/src/ButtonPrint.vue2.js +52 -11
  39. package/es/components/button-print/src/components/EditFormat.vue2.js +16 -8
  40. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -2
  41. package/es/components/button-print/src/components/IdentityVerification.vue2.js +104 -49
  42. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +7 -2
  43. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +244 -95
  44. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +5 -2
  45. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +92 -32
  46. package/es/components/button-print/src/components/Preview.vue.d.ts +5 -2
  47. package/es/components/button-print/src/components/Preview.vue2.js +14 -4
  48. package/es/components/button-print/src/utils/dialog.js +26 -8
  49. package/es/components/button-print/src/utils/print.d.ts +5 -5
  50. package/es/components/button-print/src/utils/print.js +108 -21
  51. package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +8 -2
  52. package/es/components/card-reader-sdk/src/utils/readHealthCard.js +16 -4
  53. package/es/components/card-reader-sdk-cn/src/henan/index.js +38 -11
  54. package/es/components/card-render/src/components/index.d.ts +23 -23
  55. package/es/components/classification/src/components/search-filter/index.vue2.js +24 -10
  56. package/es/components/classification/src/components/set-classification/index.vue2.js +24 -7
  57. package/es/components/classification/src/components/table-modal/index.vue2.js +324 -165
  58. package/es/components/classification/src/index.vue2.js +261 -69
  59. package/es/components/default-page/src/constants/index.js +144 -19
  60. package/es/components/default-page/src/index.vue2.js +8 -2
  61. package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +75 -51
  62. package/es/components/expand-field/src/components/FormItemPerson.vue2.js +46 -38
  63. package/es/components/expand-field/src/components/PersonModal.vue2.js +62 -50
  64. package/es/components/expand-field/src/components/form.vue2.js +783 -412
  65. package/es/components/expand-field/src/index.vue2.js +88 -22
  66. package/es/components/expand-field/src/utils/constant.js +88 -12
  67. package/es/components/fabric-chart/src/components/PopupMenu.js +32 -15
  68. package/es/components/fabric-chart/src/constants/index.js +72 -10
  69. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +18 -4
  70. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +8 -2
  71. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +32 -5
  72. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -2
  73. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +63 -41
  74. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  75. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +5 -1
  76. package/es/components/fabric-chart/src/hooks/useCommon.js +24 -4
  77. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +4 -1
  78. package/es/components/fabric-chart/src/hooks/useDraw.js +19 -0
  79. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  80. package/es/components/fabric-chart/src/utils/index.js +2 -2
  81. package/es/components/field-editor/src/fields.js +232 -30
  82. package/es/components/field-set/src/FieldColor.vue.d.ts +2 -2
  83. package/es/components/field-set/src/FieldColor.vue2.js +88 -21
  84. package/es/components/field-set/src/FieldFilter.vue.d.ts +2 -2
  85. package/es/components/field-set/src/FieldFilter.vue2.js +32 -16
  86. package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
  87. package/es/components/field-set/src/FieldSet.vue2.js +210 -57
  88. package/es/components/field-set/src/Index.vue2.js +40 -6
  89. package/es/components/field-set/src/TableStyle.vue2.js +48 -13
  90. package/es/components/field-set/src/components/condition.vue2.js +26 -10
  91. package/es/components/field-set/src/components/edit-dialog.vue2.js +148 -68
  92. package/es/components/field-set/src/components/edit-filter.vue2.js +24 -4
  93. package/es/components/field-set/src/components/table-row.vue.d.ts +2 -2
  94. package/es/components/field-set/src/components/table-row.vue2.js +123 -42
  95. package/es/components/field-set/src/constants/filter.js +328 -42
  96. package/es/components/field-set/src/constants/index.js +504 -64
  97. package/es/components/field-set/src/utils/index.js +1 -1
  98. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +91 -46
  99. package/es/components/form-config/src/constants/index.js +80 -11
  100. package/es/components/form-config/src/hooks/useLocale.js +240 -31
  101. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +8 -4
  102. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +8 -4
  103. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +8 -2
  104. package/es/components/form-render/src/components/renderer/input.js +3 -2
  105. package/es/components/form-render/src/components/renderer/radio_checkbox.js +8 -4
  106. package/es/components/form-render/src/components/renderer/remoteSearch.js +8 -2
  107. package/es/components/form-render/src/components/renderer/switch.js +24 -4
  108. package/es/components/form-render/src/components/renderer/textarea.js +5 -4
  109. package/es/components/form-render/src/utils/schema.js +26 -6
  110. package/es/components/iho-chat/src/Index.vue2.js +42 -38
  111. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +108 -33
  112. package/es/components/iho-chat/src/components/ChatFile.vue2.js +132 -90
  113. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +110 -48
  114. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +40 -20
  115. package/es/components/iho-chat/src/components/ChatMain.vue2.js +55 -23
  116. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +77 -45
  117. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +256 -208
  118. package/es/components/iho-chat/src/components/ChatSet.vue2.js +306 -208
  119. package/es/components/iho-chat/src/components/ContextMenu.js +50 -9
  120. package/es/components/iho-chat/src/components/MessageEvent.vue2.js +16 -4
  121. package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +8 -2
  122. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +104 -18
  123. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +66 -11
  124. package/es/components/iho-chat/src/components/SelectLabel.vue2.js +47 -43
  125. package/es/components/iho-chat/src/components/SiderList.vue2.js +68 -38
  126. package/es/components/iho-chat/src/components/Video.vue2.js +38 -11
  127. package/es/components/iho-chat/src/hooks/useVideo.js +15 -4
  128. package/es/components/iho-chat/src/utils/index.js +79 -14
  129. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +8 -2
  130. package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +40 -15
  131. package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +40 -15
  132. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  133. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +50 -20
  134. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +16 -8
  135. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +10 -3
  136. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +42 -15
  137. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  138. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +18 -12
  139. package/es/components/index.css +1 -1
  140. package/es/components/info-header/src/components/patientInfo/index.vue2.js +144 -25
  141. package/es/components/keyboard/src/Keyboard.vue2.js +20 -8
  142. package/es/components/keyboard/src/components/NumberPanel.vue2.js +51 -37
  143. package/es/components/map/src/Map.vue2.js +8 -4
  144. package/es/components/picture-clipper/src/PictureClipper.vue2.js +16 -8
  145. package/es/components/quick-search/src/index.vue2.js +176 -131
  146. package/es/components/recommend-search/src/components/BaseSearch.js +14 -8
  147. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +28 -8
  148. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +18 -5
  149. package/es/components/scale-view/src/ScaleView.vue2.js +16 -8
  150. package/es/components/scale-view/src/components/NoData.vue2.js +16 -4
  151. package/es/components/scale-view/src/components/formitem/r-cascader.js +8 -2
  152. package/es/components/scale-view/src/components/formitem/r-checkbox.js +24 -6
  153. package/es/components/scale-view/src/components/formitem/r-input.js +8 -2
  154. package/es/components/scale-view/src/components/formitem/r-map.js +8 -2
  155. package/es/components/scale-view/src/components/formitem/r-radio.js +24 -6
  156. package/es/components/scale-view/src/components/formitem/r-select.js +8 -2
  157. package/es/components/scale-view/src/components/formitem/r-sign.js +32 -11
  158. package/es/components/scale-view/src/components/formitem/standard-modal.js +16 -3
  159. package/es/components/scale-view/src/hooks/scaleview-computed.js +24 -5
  160. package/es/components/scale-view/src/hooks/scaleview-methods.js +16 -4
  161. package/es/components/scale-view/src/hooks/scaleview-submit.js +16 -3
  162. package/es/components/scale-view/src/hooks/scaleview-validate.js +40 -9
  163. package/es/components/search-cascader/src/SearchCascader.vue2.js +20 -14
  164. package/es/components/select-label/src/LabelFormContent.vue2.js +53 -21
  165. package/es/components/select-label/src/SelectLabel.vue2.js +81 -51
  166. package/es/components/select-label/src/components/label-classify.vue2.js +28 -11
  167. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +18 -5
  168. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +34 -8
  169. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +18 -5
  170. package/es/components/select-person/src/SelectPerson.vue2.js +214 -141
  171. package/es/components/select-person/src/SelectPersonType.vue2.js +127 -102
  172. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +9 -2
  173. package/es/components/select-person/src/index.vue2.js +20 -7
  174. package/es/components/slider-tree/src/index.vue2.js +16 -3
  175. package/es/components/table-export-field/index.d.ts +1 -0
  176. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -0
  177. package/es/components/table-export-field/src/components/ExportModal.vue2.js +187 -113
  178. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +147 -88
  179. package/es/components/table-export-field/src/index.vue.d.ts +1 -0
  180. package/es/components/table-export-field/src/index.vue2.js +28 -12
  181. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +32 -5
  182. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +264 -34
  183. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +214 -135
  184. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +16 -3
  185. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +9 -2
  186. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +39 -6
  187. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +18 -5
  188. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +29 -18
  189. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +16 -3
  190. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +8 -2
  191. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +195 -130
  192. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +26 -7
  193. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -6
  194. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +34 -8
  195. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +21 -8
  196. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +8 -4
  197. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +19 -6
  198. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +16 -3
  199. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +24 -10
  200. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1648 -207
  201. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +8 -2
  202. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +16 -3
  203. package/es/components/table-filter/src/tool/baseOptions.js +144 -19
  204. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +32 -16
  205. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +22 -2
  206. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +8 -4
  207. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +16 -8
  208. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  209. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  210. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  211. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  212. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  213. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  214. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  215. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  216. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  217. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  218. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  219. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  220. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  221. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  222. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  223. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  224. package/es/shared/assets/img/failure.png.js +1 -1
  225. package/es/shared/assets/img/no-permission.png.js +1 -1
  226. package/es/shared/assets/img/nodata.png.js +1 -1
  227. package/es/shared/assets/img/notfound.png.js +1 -1
  228. package/es/shared/assets/img/qr.png.js +1 -1
  229. package/es/shared/assets/img/success.png.js +1 -1
  230. package/es/shared/assets/img/table_style_2.png.js +1 -1
  231. package/es/shared/assets/img/video.png.js +1 -1
  232. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  233. package/es/shared/assets/img/xb_big.png.js +1 -1
  234. package/es/shared/assets/img/xb_small.png.js +1 -1
  235. package/es/shared/hooks/selectHooks/useSelectAllowModify.js +2 -2
  236. package/es/shared/package.json.js +1 -1
  237. package/package.json +2 -2
  238. package/es/components/audio-sdk/src/components/recording-modal.vue.js +0 -6
  239. package/es/components/audio-sdk/src/components/recording-modal.vue2.js +0 -40
  240. package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +0 -4
  241. package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +0 -4
  242. package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +0 -4
  243. package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +0 -4
  244. package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +0 -4
  245. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  246. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  247. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  248. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  249. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  250. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  251. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -251,6 +251,7 @@ declare const _default: import("vue").DefineComponent<{
251
251
  watchPrintParamsReformatFn: null;
252
252
  spinTimer: null;
253
253
  iReportExecuteMode: number;
254
+ number: string;
254
255
  };
255
256
  options: import("vue").Ref<AnyObject[]>;
256
257
  tempOptions: import("vue").Ref<AnyObject[]>;
@@ -330,7 +331,7 @@ declare const _default: import("vue").DefineComponent<{
330
331
  formatId?: string | undefined;
331
332
  templateId?: string | undefined;
332
333
  };
333
- emit: (event: "close" | "success" | "update:modelValue", ...args: any[]) => void;
334
+ emit: (event: "close" | "success" | "update:modelValue" | "afterLeaveComponent", ...args: any[]) => void;
334
335
  editFormRef: import("vue").Ref<{
335
336
  submit: Function;
336
337
  } | null>;
@@ -349,6 +350,7 @@ declare const _default: import("vue").DefineComponent<{
349
350
  restoreValidation: () => void;
350
351
  } | null>;
351
352
  handleClickClose: () => void;
353
+ handleAfterLeave: () => void;
352
354
  loading: import("vue").Ref<boolean>;
353
355
  submit: () => Promise<false | undefined>;
354
356
  handleClickSubmit: () => void;
@@ -440,7 +442,7 @@ declare const _default: import("vue").DefineComponent<{
440
442
  required: true;
441
443
  };
442
444
  }>>, {}>;
443
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "update:modelValue")[], "close" | "success" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
445
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "update:modelValue" | "afterLeaveComponent")[], "close" | "success" | "update:modelValue" | "afterLeaveComponent", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
444
446
  verifyUser: {
445
447
  type: FunctionConstructor;
446
448
  required: false;
@@ -467,6 +469,7 @@ declare const _default: import("vue").DefineComponent<{
467
469
  onSuccess?: ((...args: any[]) => any) | undefined;
468
470
  onClose?: ((...args: any[]) => any) | undefined;
469
471
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
472
+ onAfterLeaveComponent?: ((...args: any[]) => any) | undefined;
470
473
  }, {
471
474
  verifyUser: Function;
472
475
  identityVerificationTitle: string;
@@ -10,7 +10,6 @@ import { format } from 'date-fns';
10
10
  import { savePrivateFormatApi, getPrivateFormatApi } from '../api.js';
11
11
  import { cloneDeep } from 'lodash-es';
12
12
 
13
- var _a, _b, _c, _d, _e, _f;
14
13
  var _sfc_main = /* @__PURE__ */ defineComponent({
15
14
  __name: "OldPrintComponent",
16
15
  props: {
@@ -22,23 +21,58 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
22
21
  type: Array
23
22
  },
24
23
  btnText: {
25
- default: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.478")) || "\u6253\u5370",
24
+ default: function() {
25
+ var _a, _b, _c;
26
+ try {
27
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.478")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.478")) || "\u6253\u5370";
28
+ } catch (e) {
29
+ return "\u6253\u5370";
30
+ }
31
+ }(),
26
32
  type: String
27
33
  },
28
34
  printText: {
29
- default: ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.479")) || "\u76F4\u63A5\u6253\u5370",
35
+ default: function() {
36
+ var _a, _b, _c;
37
+ try {
38
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.479")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.479")) || "\u76F4\u63A5\u6253\u5370";
39
+ } catch (e) {
40
+ return "\u76F4\u63A5\u6253\u5370";
41
+ }
42
+ }(),
30
43
  type: String
31
44
  },
32
45
  previewText: {
33
- default: ((_c = window.getLanguageByCode) == null ? void 0 : _c.call(window, "10010.1.480")) || "\u6253\u5370\u9884\u89C8",
46
+ default: function() {
47
+ var _a, _b, _c;
48
+ try {
49
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.480")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.480")) || "\u6253\u5370\u9884\u89C8";
50
+ } catch (e) {
51
+ return "\u6253\u5370\u9884\u89C8";
52
+ }
53
+ }(),
34
54
  type: String
35
55
  },
36
56
  pdfLoadText: {
37
- default: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.481")) || "\u4E0B\u8F7Dpdf",
57
+ default: function() {
58
+ var _a, _b, _c;
59
+ try {
60
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.481")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.481")) || "\u4E0B\u8F7Dpdf";
61
+ } catch (e) {
62
+ return "\u4E0B\u8F7Dpdf";
63
+ }
64
+ }(),
38
65
  type: String
39
66
  },
40
67
  formatEditText: {
41
- default: ((_e = window.getLanguageByCode) == null ? void 0 : _e.call(window, "10010.1.482")) || "\u683C\u5F0F\u7F16\u8F91",
68
+ default: function() {
69
+ var _a, _b, _c;
70
+ try {
71
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.482")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.482")) || "\u683C\u5F0F\u7F16\u8F91";
72
+ } catch (e) {
73
+ return "\u683C\u5F0F\u7F16\u8F91";
74
+ }
75
+ }(),
42
76
  type: String
43
77
  },
44
78
  prevFn: {
@@ -62,7 +96,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
62
96
  type: Function
63
97
  },
64
98
  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",
99
+ default: function() {
100
+ var _a, _b, _c;
101
+ try {
102
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.483")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.483")) || "\u8BF7\u9009\u4E2D\u9700\u8981\u6253\u5370\u7684\u6570\u636E";
103
+ } catch (e) {
104
+ return "\u8BF7\u9009\u4E2D\u9700\u8981\u6253\u5370\u7684\u6570\u636E";
105
+ }
106
+ }(),
66
107
  type: String
67
108
  },
68
109
  noDefaultFormatMsg: {
@@ -122,7 +163,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
122
163
  setup(__props, {
123
164
  expose
124
165
  }) {
125
- var _a2;
166
+ var _a;
126
167
  const props = __props;
127
168
  const $attrs = useAttrs();
128
169
  const $message = useMessage();
@@ -146,7 +187,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
146
187
  isInited: false,
147
188
  watchPrintParamsReformatFn: null,
148
189
  spinTimer: null,
149
- iReportExecuteMode: 1
190
+ iReportExecuteMode: 1,
191
+ number: ""
150
192
  });
151
193
  let options = ref([{
152
194
  label: props.printText,
@@ -160,7 +202,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
160
202
  }, {
161
203
  label: props.formatEditText,
162
204
  key: "formatEditText"
163
- }, ...((_a2 = props.externalOptionConfig) == null ? void 0 : _a2.options) || []]);
205
+ }, ...((_a = props.externalOptionConfig) == null ? void 0 : _a.options) || []]);
164
206
  const tempOptions = ref([]);
165
207
  const currentFormatItem = computed(() => {
166
208
  if (!state.currentFormatId)
@@ -169,8 +211,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
169
211
  return state.formatList.find((item) => item.id === id);
170
212
  });
171
213
  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";
214
+ var _a2;
215
+ return ((_a2 = currentFormatItem.value) == null ? void 0 : _a2.name) || function() {
216
+ var _a3, _b, _c;
217
+ try {
218
+ return ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.485")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.485")) || "\u683C\u5F0F\u9009\u62E9";
219
+ } catch (e) {
220
+ return "\u683C\u5F0F\u9009\u62E9";
221
+ }
222
+ }();
174
223
  });
175
224
  const getTemplateIdByFormatId = computed(() => {
176
225
  let find = state.formatList.find((item) => item.id === state.currentFormatId);
@@ -229,17 +278,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
229
278
  emit("cancel", res);
230
279
  };
231
280
  const prevFnError = (type) => {
232
- var _a3;
233
281
  const error = {
234
- message: ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.486")) || "\u524D\u7F6E\u6761\u4EF6\u6267\u884C\u9519\u8BEF",
282
+ message: function() {
283
+ var _a2, _b, _c;
284
+ try {
285
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.486")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.486")) || "\u524D\u7F6E\u6761\u4EF6\u6267\u884C\u9519\u8BEF";
286
+ } catch (e) {
287
+ return "\u524D\u7F6E\u6761\u4EF6\u6267\u884C\u9519\u8BEF";
288
+ }
289
+ }(),
235
290
  type,
236
291
  preExecution: true
237
292
  };
238
293
  emit("error", error);
239
294
  };
240
295
  const getPrintParams = (index = 0) => {
241
- var _a3;
242
- const params = ((_a3 = props.printParams) == null ? void 0 : _a3.length) ? props.printParams[index] : state.printParams[index];
296
+ var _a2;
297
+ const params = ((_a2 = props.printParams) == null ? void 0 : _a2.length) ? props.printParams[index] : state.printParams[index];
243
298
  return JSON.stringify({
244
299
  ...params || {},
245
300
  ...props.token ? {
@@ -249,11 +304,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
249
304
  });
250
305
  };
251
306
  const getOnceParams = () => {
252
- var _a3, _b2;
307
+ var _a2, _b;
253
308
  let params = {};
254
309
  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]) || "";
310
+ if ((_a2 = state.templateParams.customizeDataset) == null ? void 0 : _a2.length) {
311
+ const key = ((_b = Object.keys(state.printParams[0].datasetData || {})) == null ? void 0 : _b[0]) || "";
257
312
  const datasetDataKeyVal = JSON.stringify(state.printParams.map((v) => JSON.parse(v.datasetData[key])));
258
313
  obj = {
259
314
  datasetData: {}
@@ -293,6 +348,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
293
348
  }).then(() => {
294
349
  const queryParams = {
295
350
  iReportExecuteMode: state.iReportExecuteMode,
351
+ number: state.number,
296
352
  formatId: state.currentFormatId,
297
353
  templateId: getTemplateIdByFormatId.value,
298
354
  authorizationKey: authorizationKey.value,
@@ -338,6 +394,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
338
394
  const queryParams = {
339
395
  formatId: state.currentFormatId,
340
396
  iReportExecuteMode: state.iReportExecuteMode,
397
+ number: state.number,
341
398
  templateId: getTemplateIdByFormatId.value,
342
399
  authorizationKey: authorizationKey.value,
343
400
  params,
@@ -367,6 +424,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
367
424
  const queryParams = {
368
425
  formatId: state.currentFormatId,
369
426
  iReportExecuteMode: state.iReportExecuteMode,
427
+ number: state.number,
370
428
  templateId: getTemplateIdByFormatId.value,
371
429
  authorizationKey: authorizationKey.value,
372
430
  print: {
@@ -402,7 +460,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
402
460
  });
403
461
  };
404
462
  const handleSelect = async (key, option) => {
405
- var _a3, _b2;
463
+ var _a2, _b;
406
464
  switch (key) {
407
465
  case "printText":
408
466
  handleDebounceClickPrint();
@@ -442,7 +500,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
442
500
  token: props.token
443
501
  });
444
502
  } else {
445
- (_b2 = (_a3 = props.externalOptionConfig) == null ? void 0 : _a3.onSelect) == null ? void 0 : _b2.call(_a3, key, option, {
503
+ (_b = (_a2 = props.externalOptionConfig) == null ? void 0 : _a2.onSelect) == null ? void 0 : _b.call(_a2, key, option, {
446
504
  formatId: state.currentFormatId
447
505
  });
448
506
  }
@@ -460,7 +518,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
460
518
  printInstance = new Print();
461
519
  };
462
520
  const getDefaultFormatId = async (list, key) => {
463
- var _a3;
521
+ var _a2;
464
522
  if (!(list == null ? void 0 : list.length))
465
523
  return "";
466
524
  if (!$attrs.isDoc) {
@@ -476,7 +534,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
476
534
  formatForms = []
477
535
  } = data.map || {};
478
536
  Object.assign(defaultFormatInfo, data.map || {});
479
- const id = (_a3 = formatForms == null ? void 0 : formatForms[0]) == null ? void 0 : _a3.id;
537
+ const id = (_a2 = formatForms == null ? void 0 : formatForms[0]) == null ? void 0 : _a2.id;
480
538
  if (id && list.map((item) => item.id).includes(id))
481
539
  return id;
482
540
  }
@@ -485,7 +543,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
485
543
  return (findDefault == null ? void 0 : findDefault.id) || list[0].id;
486
544
  };
487
545
  const setOptions = () => {
488
- var _a3;
546
+ var _a2;
489
547
  const children = state.formatList.map((v) => {
490
548
  return {
491
549
  label: v.name,
@@ -503,7 +561,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
503
561
  const portalStr = sessionStorage.getItem("portal");
504
562
  if (portalStr) {
505
563
  const portal = JSON.parse(portalStr);
506
- const limitObj = ((_a3 = portal == null ? void 0 : portal.user) == null ? void 0 : _a3.currentRoleResourceObj) || {};
564
+ const limitObj = ((_a2 = portal == null ? void 0 : portal.user) == null ? void 0 : _a2.currentRoleResourceObj) || {};
507
565
  const limitList = Object.keys(limitObj);
508
566
  if (!limitList.includes(downloadPdfCode)) {
509
567
  options.value = options.value.filter((option) => option.key != "downloadPdf");
@@ -574,9 +632,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
574
632
  });
575
633
  };
576
634
  const initCRM = async (formatListResult) => {
577
- var _a3, _b2;
635
+ var _a2, _b, _c;
578
636
  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;
637
+ state.iReportExecuteMode = ((_a2 = formatListResult == null ? void 0 : formatListResult.obj) == null ? void 0 : _a2.length) > 0 ? formatListResult.obj[0].iReportExecuteMode || 1 : 1;
638
+ state.number = ((_b = formatListResult == null ? void 0 : formatListResult.obj) == null ? void 0 : _b.length) > 0 ? formatListResult.obj[0].number || "" : "";
580
639
  state.currentFormatId = await getDefaultFormatId(state.formatList, "defaultFlag");
581
640
  if (!state.currentFormatId) {
582
641
  options.value = [];
@@ -584,7 +643,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
584
643
  return requestError();
585
644
  }
586
645
  setOptions();
587
- let templateParamsResult = (_b2 = await props.queryTemplateParams()) == null ? void 0 : _b2.obj;
646
+ let templateParamsResult = (_c = await props.queryTemplateParams()) == null ? void 0 : _c.obj;
588
647
  if (templateParamsResult && getTemplateIdByFormatId.value) {
589
648
  state.templateParams = templateParamsResult;
590
649
  } else {
@@ -594,7 +653,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
594
653
  state.printParams = formatParams(state.templateParams, props.params);
595
654
  };
596
655
  const init = async () => {
597
- var _a3;
656
+ var _a2;
598
657
  if (state.isInited)
599
658
  return true;
600
659
  state.isInited = true;
@@ -602,17 +661,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
602
661
  instantiatePrintSDK();
603
662
  const formatListResult = await props.queryPrintFormatByNumber();
604
663
  await initCRM(formatListResult);
605
- if (((_a3 = formatListResult.obj) == null ? void 0 : _a3.length) > 0)
664
+ if (((_a2 = formatListResult.obj) == null ? void 0 : _a2.length) > 0)
606
665
  authorizationKey.value = formatListResult.obj[0].authorizationKey || "";
607
666
  state.spinning = false;
608
667
  return true;
609
668
  };
610
669
  const handleClickBtn = async (visible = true) => {
611
- var _a3, _b2;
670
+ var _a2, _b;
612
671
  const status = await props.clickPrevFn();
613
672
  if (!status)
614
673
  return;
615
- if (!((_a3 = props.params) == null ? void 0 : _a3.length) && !((_b2 = props.printParams) == null ? void 0 : _b2.length)) {
674
+ if (!((_a2 = props.params) == null ? void 0 : _a2.length) && !((_b = props.printParams) == null ? void 0 : _b.length)) {
616
675
  $message.warning(props.noDataMsg);
617
676
  return;
618
677
  }
@@ -643,6 +702,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
643
702
  return callLocalServicesSuccessCb(null, "edit");
644
703
  const queryParams = {
645
704
  formatId: state.currentFormatId,
705
+ number: state.number,
646
706
  templateId: getTemplateIdByFormatId.value,
647
707
  params: getPrintParams(),
648
708
  token
@@ -16,17 +16,19 @@ declare const _default: import("vue").DefineComponent<{
16
16
  type: StringConstructor;
17
17
  };
18
18
  }>> & {
19
+ onAfterLeaveComponent?: ((...args: any[]) => any) | undefined;
19
20
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
20
21
  }>>;
21
- emit: (event: "update:visible", ...args: any[]) => void;
22
+ emit: (event: "afterLeaveComponent" | "update:visible", ...args: any[]) => void;
22
23
  iframeId: import("vue").Ref<string>;
23
24
  isNormalSize: import("vue").Ref<boolean>;
24
25
  style: import("vue").ComputedRef<string>;
25
26
  titleRender: () => JSX.Element;
26
27
  changeSize: () => void;
27
28
  onClose: () => void;
29
+ handleAfterLeave: () => void;
28
30
  NModal: any;
29
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("afterLeaveComponent" | "update:visible")[], "afterLeaveComponent" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
32
  visible: {
31
33
  type: BooleanConstructor;
32
34
  default: boolean;
@@ -35,6 +37,7 @@ declare const _default: import("vue").DefineComponent<{
35
37
  type: StringConstructor;
36
38
  };
37
39
  }>> & {
40
+ onAfterLeaveComponent?: ((...args: any[]) => any) | undefined;
38
41
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
39
42
  }, {
40
43
  visible: boolean;
@@ -14,7 +14,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  type: String
15
15
  }
16
16
  },
17
- emits: ["update:visible"],
17
+ emits: ["update:visible", "afterLeaveComponent"],
18
18
  setup(__props, {
19
19
  emit
20
20
  }) {
@@ -34,8 +34,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  }, 300);
35
35
  });
36
36
  function titleRender() {
37
- var _a;
38
- return createVNode(Fragment, null, [createVNode("div", null, [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.490")) || "\u9884\u89C8")]), createVNode(NIcon, {
37
+ return createVNode(Fragment, null, [createVNode("div", null, [createTextVNode(function() {
38
+ var _a, _b, _c;
39
+ try {
40
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.490")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.490")) || "\u9884\u89C8";
41
+ } catch (e) {
42
+ return "\u9884\u89C8";
43
+ }
44
+ }())]), createVNode(NIcon, {
39
45
  "style": {
40
46
  margin: "0 0 0 auto",
41
47
  transform: isNormalSize.value ? "none" : "rotate(90deg)"
@@ -51,6 +57,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
51
57
  props.src && window.URL.revokeObjectURL(props.src);
52
58
  emit("update:visible", false);
53
59
  }
60
+ function handleAfterLeave() {
61
+ emit("afterLeaveComponent");
62
+ }
54
63
  return (_ctx, _cache) => {
55
64
  return openBlock(), createBlock(unref(NModal), {
56
65
  preset: "dialog",
@@ -60,7 +69,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
60
69
  class: "c-button-preview-modal",
61
70
  title: titleRender,
62
71
  onClose,
63
- onMaskClick: onClose
72
+ onMaskClick: onClose,
73
+ onAfterLeave: handleAfterLeave
64
74
  }, {
65
75
  default: withCtx(() => [createElementVNode("iframe", {
66
76
  name: iframeId.value,
@@ -11,9 +11,15 @@ class IdentityVerificationDialog {
11
11
  return `[IdentityVerificationDialog] ${message}`;
12
12
  }
13
13
  show(instance, title, api, formatId, templateId) {
14
- var _a;
15
14
  if (this.rendered)
16
- return Promise.reject(IdentityVerificationDialog.createMsg(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.491")) || "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97"));
15
+ return Promise.reject(IdentityVerificationDialog.createMsg(function() {
16
+ var _a, _b, _c;
17
+ try {
18
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.491")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.491")) || "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97";
19
+ } catch (e) {
20
+ return "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97";
21
+ }
22
+ }()));
17
23
  return new Promise((resolve, reject) => {
18
24
  this.rendered = true;
19
25
  const container = document.createElement("div");
@@ -27,7 +33,7 @@ class IdentityVerificationDialog {
27
33
  "onUpdate:modelValue": ($event) => visible.value = $event,
28
34
  "identityVerificationTitle": title,
29
35
  "onClose": onClose,
30
- "onAfterLeave": () => unmount(container),
36
+ "onAfterLeaveComponent": () => unmount(container),
31
37
  "onSuccess": onSuccess,
32
38
  "formatId": formatId,
33
39
  "templateId": templateId
@@ -36,8 +42,14 @@ class IdentityVerificationDialog {
36
42
  mount(container);
37
43
  nextTick(() => visible.value = true);
38
44
  function onClose() {
39
- var _a2;
40
- reject(IdentityVerificationDialog.createMsg(((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.492")) || "\u5F39\u7A97\u5173\u95ED"));
45
+ reject(IdentityVerificationDialog.createMsg(function() {
46
+ var _a, _b, _c;
47
+ try {
48
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.492")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.492")) || "\u5F39\u7A97\u5173\u95ED";
49
+ } catch (e) {
50
+ return "\u5F39\u7A97\u5173\u95ED";
51
+ }
52
+ }()));
41
53
  }
42
54
  function onSuccess(token) {
43
55
  resolve(token);
@@ -64,9 +76,15 @@ class PreviewDialog {
64
76
  return `[PreviewDialog] ${message}`;
65
77
  }
66
78
  show(instance, src) {
67
- var _a;
68
79
  if (this.rendered)
69
- return Promise.reject(PreviewDialog.createMsg(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.491")) || "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97"));
80
+ return Promise.reject(PreviewDialog.createMsg(function() {
81
+ var _a, _b, _c;
82
+ try {
83
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.491")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.491")) || "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97";
84
+ } catch (e) {
85
+ return "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97";
86
+ }
87
+ }()));
70
88
  return new Promise((resolve, reject) => {
71
89
  this.rendered = true;
72
90
  const container = document.createElement("div");
@@ -77,7 +95,7 @@ class PreviewDialog {
77
95
  "visible": visible.value,
78
96
  "onUpdate:visible": ($event) => visible.value = $event,
79
97
  "src": src,
80
- "onAfterLeave": () => unmount(container)
98
+ "onAfterLeaveComponent": () => unmount(container)
81
99
  }, null), instance)
82
100
  }), container);
83
101
  mount(container);
@@ -55,8 +55,8 @@ export declare class Print {
55
55
  pageCount: any;
56
56
  formatId: string;
57
57
  };
58
- _handleEventDirect({ templateId, formatId, svrUpdateIp, hideButtons, params, paramsArr, cmdid, print, signature, copies, printdlgshow, nobillnode, btnprint, messageTimeout }: AnyObject): Promise<any>;
59
- _handleEventEditFormat({ templateId, formatId, params, token, messageTimeout }: AnyObject): Promise<any>;
58
+ _handleEventDirect({ templateId, formatId, number, svrUpdateIp, hideButtons, params, paramsArr, cmdid, print, signature, copies, printdlgshow, nobillnode, btnprint, messageTimeout }: AnyObject): Promise<any>;
59
+ _handleEventEditFormat({ templateId, formatId, number, params, token, messageTimeout }: AnyObject): Promise<any>;
60
60
  _queryProxyOrigin(): Promise<void>;
61
61
  _queryPrintFile(formatId: string, params?: string): Promise<any>;
62
62
  paramsSerializer(params: AnyObject): AnyObject;
@@ -66,9 +66,9 @@ export declare class Print {
66
66
  _queryPrintForPdf(templateId: string, formatId: string, params: string | undefined, authorizationKey: String): Promise<any>;
67
67
  _browserPrint(result: AnyObject, mode: string): Promise<string | void>;
68
68
  _base64ToBlob(fileBase64: string, fileType: string): Blob;
69
- preview({ iReportExecuteMode, hideButtons, templateId, formatId: originFormatId, params, paramsArr, authorizationKey, signature, btnprint, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
69
+ preview({ iReportExecuteMode, hideButtons, templateId, number, formatId: originFormatId, params, paramsArr, authorizationKey, signature, btnprint, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
70
70
  printSync(data: AnyObject[], successCallbackFn: AnyFn, errorCallbackFn: AnyFn): Promise<void>;
71
- printDirect({ iReportExecuteMode, templateId, formatId: originFormatId, params, paramsArr, authorizationKey, print, signature, printdlgshow, nobillnode, copies, svrUpdateIp, isDownloadFile, messageTimeout }: AnyObject, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn, mode?: string): Promise<false | undefined>;
71
+ printDirect({ iReportExecuteMode, templateId, number, formatId: originFormatId, params, paramsArr, authorizationKey, print, signature, printdlgshow, nobillnode, copies, svrUpdateIp, isDownloadFile, messageTimeout }: AnyObject, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn, mode?: string): Promise<false | undefined>;
72
72
  printToHiPrint({ templateId, formatId, params, authorizationKey }: any, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn): Promise<any>;
73
73
  private _downloadPDF;
74
74
  /**
@@ -83,6 +83,6 @@ export declare class Print {
83
83
  formatId: string;
84
84
  }>;
85
85
  printFileData({ formatId, file, printerName }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | AnyObject>;
86
- editPrintFormat({ templateId, formatId, params, token, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
86
+ editPrintFormat({ templateId, formatId, number, params, token, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
87
87
  addPrintFormat({ templateId, params, token }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
88
88
  }