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
@@ -12,7 +12,6 @@ import '../../../shortcut-provider/index.js';
12
12
  import { encapBrowserLog } from '../../../../shared/utils/index.js';
13
13
  import { useShortcuts } from '../../../shortcut-provider/src/hooks/useShortcuts.js';
14
14
 
15
- var _a, _b, _c, _d, _e, _f, _g;
16
15
  const _hoisted_1 = {
17
16
  class: "newprint-button-outer"
18
17
  };
@@ -22,7 +21,14 @@ const _hoisted_2 = {
22
21
  };
23
22
  const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", {
24
23
  class: "label bold"
25
- }, ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.473")) || "\u5916\u663E\u8BBE\u7F6E", -1);
24
+ }, function() {
25
+ var _a, _b, _c;
26
+ try {
27
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.473")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.473")) || "\u5916\u663E\u8BBE\u7F6E";
28
+ } catch (e) {
29
+ return "\u5916\u663E\u8BBE\u7F6E";
30
+ }
31
+ }(), -1);
26
32
  const _hoisted_4 = {
27
33
  class: "print-lite"
28
34
  };
@@ -88,23 +94,58 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
88
94
  type: Array
89
95
  },
90
96
  btnText: {
91
- default: ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.478")) || "\u6253\u5370",
97
+ default: function() {
98
+ var _a, _b, _c;
99
+ try {
100
+ 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";
101
+ } catch (e) {
102
+ return "\u6253\u5370";
103
+ }
104
+ }(),
92
105
  type: String
93
106
  },
94
107
  printText: {
95
- default: ((_c = window.getLanguageByCode) == null ? void 0 : _c.call(window, "10010.1.479")) || "\u76F4\u63A5\u6253\u5370",
108
+ default: function() {
109
+ var _a, _b, _c;
110
+ try {
111
+ 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";
112
+ } catch (e) {
113
+ return "\u76F4\u63A5\u6253\u5370";
114
+ }
115
+ }(),
96
116
  type: String
97
117
  },
98
118
  previewText: {
99
- default: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.480")) || "\u6253\u5370\u9884\u89C8",
119
+ default: function() {
120
+ var _a, _b, _c;
121
+ try {
122
+ 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";
123
+ } catch (e) {
124
+ return "\u6253\u5370\u9884\u89C8";
125
+ }
126
+ }(),
100
127
  type: String
101
128
  },
102
129
  pdfLoadText: {
103
- default: ((_e = window.getLanguageByCode) == null ? void 0 : _e.call(window, "10010.1.481")) || "\u4E0B\u8F7Dpdf",
130
+ default: function() {
131
+ var _a, _b, _c;
132
+ try {
133
+ 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";
134
+ } catch (e) {
135
+ return "\u4E0B\u8F7Dpdf";
136
+ }
137
+ }(),
104
138
  type: String
105
139
  },
106
140
  formatEditText: {
107
- default: ((_f = window.getLanguageByCode) == null ? void 0 : _f.call(window, "10010.1.482")) || "\u683C\u5F0F\u7F16\u8F91",
141
+ default: function() {
142
+ var _a, _b, _c;
143
+ try {
144
+ 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";
145
+ } catch (e) {
146
+ return "\u683C\u5F0F\u7F16\u8F91";
147
+ }
148
+ }(),
108
149
  type: String
109
150
  },
110
151
  prevFn: {
@@ -124,7 +165,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
124
165
  type: Function
125
166
  },
126
167
  noDataMsg: {
127
- default: ((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.483")) || "\u8BF7\u9009\u4E2D\u9700\u8981\u6253\u5370\u7684\u6570\u636E",
168
+ default: function() {
169
+ var _a, _b, _c;
170
+ try {
171
+ 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";
172
+ } catch (e) {
173
+ return "\u8BF7\u9009\u4E2D\u9700\u8981\u6253\u5370\u7684\u6570\u636E";
174
+ }
175
+ }(),
128
176
  type: String
129
177
  },
130
178
  token: {
@@ -174,7 +222,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
174
222
  defaultFormatId: "",
175
223
  shortcut: {},
176
224
  buttonProps: {},
177
- showMaxHeight: null
225
+ showMaxHeight: null,
226
+ initLoadPrintParams: false
178
227
  })
179
228
  },
180
229
  svrUpdateIp: {
@@ -187,14 +236,27 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
187
236
  setup(__props, {
188
237
  expose
189
238
  }) {
190
- var _a2, _b2, _c2;
191
239
  const props = __props;
192
240
  String(navigator.platform).toLowerCase().includes("linux");
193
241
  const baseDownListSetting = [{
194
- label: ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.476")) || "\u5206\u5272\u7EBF",
242
+ label: function() {
243
+ var _a, _b, _c;
244
+ try {
245
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.476")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.476")) || "\u5206\u5272\u7EBF";
246
+ } catch (e) {
247
+ return "\u5206\u5272\u7EBF";
248
+ }
249
+ }(),
195
250
  key: "divider"
196
251
  }, {
197
- label: ((_b2 = window.getLanguageByCode) == null ? void 0 : _b2.call(window, "10010.1.473")) || "\u5916\u663E\u8BBE\u7F6E",
252
+ label: function() {
253
+ var _a, _b, _c;
254
+ try {
255
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.473")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.473")) || "\u5916\u663E\u8BBE\u7F6E";
256
+ } catch (e) {
257
+ return "\u5916\u663E\u8BBE\u7F6E";
258
+ }
259
+ }(),
198
260
  key: "outSetting"
199
261
  }];
200
262
  const $message = useMessage();
@@ -220,7 +282,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
220
282
  spinTimer: null,
221
283
  isClickOuterPrint: false,
222
284
  curPrintParamList: [],
223
- iReportExecuteMode: 1
285
+ iReportExecuteMode: 1,
286
+ number: ""
224
287
  });
225
288
  const shortcutFn = ref({});
226
289
  let options = ref([]);
@@ -234,7 +297,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
234
297
  label: props.formatEditText,
235
298
  key: "formatEditText"
236
299
  }, {
237
- label: ((_c2 = window.getLanguageByCode) == null ? void 0 : _c2.call(window, "10010.1.484")) || "\u91CD\u7F6E\u6253\u5370\u673A",
300
+ label: function() {
301
+ var _a, _b, _c;
302
+ try {
303
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.484")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.484")) || "\u91CD\u7F6E\u6253\u5370\u673A";
304
+ } catch (e) {
305
+ return "\u91CD\u7F6E\u6253\u5370\u673A";
306
+ }
307
+ }(),
238
308
  key: "resetPrinter"
239
309
  }]);
240
310
  const downlistOperation = reactive({
@@ -256,8 +326,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
256
326
  return state.formatList.find((item) => item.id === id);
257
327
  });
258
328
  computed(() => {
259
- var _a3, _b3;
260
- return ((_a3 = currentFormatItem.value) == null ? void 0 : _a3.name) || ((_b3 = window.getLanguageByCode) == null ? void 0 : _b3.call(window, "10010.1.485")) || "\u683C\u5F0F\u9009\u62E9";
329
+ var _a;
330
+ return ((_a = currentFormatItem.value) == null ? void 0 : _a.name) || function() {
331
+ var _a2, _b, _c;
332
+ try {
333
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.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";
334
+ } catch (e) {
335
+ return "\u683C\u5F0F\u9009\u62E9";
336
+ }
337
+ }();
261
338
  });
262
339
  const getTemplateIdByFormatId = computed(() => {
263
340
  let find = state.formatList.find((item) => item.id === state.currentFormatId);
@@ -268,54 +345,54 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
268
345
  return find == null ? void 0 : find.number;
269
346
  });
270
347
  const isShowPrintAllBtn = computed(() => {
271
- var _a3;
272
- return (_a3 = props.newPrintSetting) == null ? void 0 : _a3.isShowPrintAll;
348
+ var _a;
349
+ return (_a = props.newPrintSetting) == null ? void 0 : _a.isShowPrintAll;
273
350
  });
274
351
  const isShowOutSettingBtn = computed(() => {
275
- var _a3;
276
- return (_a3 = props.newPrintSetting) == null ? void 0 : _a3.isShowOutSetting;
352
+ var _a;
353
+ return (_a = props.newPrintSetting) == null ? void 0 : _a.isShowOutSetting;
277
354
  });
278
355
  const printCustomProps = computed(() => {
279
- var _a3;
280
- return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.customProps) || {};
356
+ var _a;
357
+ return ((_a = props.newPrintSetting) == null ? void 0 : _a.customProps) || {};
281
358
  });
282
359
  const defaultPrintFormatId = computed(() => {
283
- var _a3;
284
- return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.defaultFormatId) || "";
360
+ var _a;
361
+ return ((_a = props.newPrintSetting) == null ? void 0 : _a.defaultFormatId) || "";
285
362
  });
286
363
  const isPrintAllType = computed(() => {
287
- var _a3;
288
- return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.printAllType) || 1;
364
+ var _a;
365
+ return ((_a = props.newPrintSetting) == null ? void 0 : _a.printAllType) || 1;
289
366
  });
290
367
  const shortcutSettings = computed(() => {
291
- var _a3;
292
- return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.shortcut) || {};
368
+ var _a;
369
+ return ((_a = props.newPrintSetting) == null ? void 0 : _a.shortcut) || {};
293
370
  });
294
371
  const buttonProps = computed(() => {
295
- var _a3;
296
- return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.buttonProps) || {};
372
+ var _a;
373
+ return ((_a = props.newPrintSetting) == null ? void 0 : _a.buttonProps) || {};
297
374
  });
298
375
  const showMaxHeight = computed(() => {
299
- var _a3;
300
- return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.showMaxHeight) || {};
376
+ var _a;
377
+ return ((_a = props.newPrintSetting) == null ? void 0 : _a.showMaxHeight) || {};
301
378
  });
302
379
  const printAllFormatIds = computed(() => {
303
- var _a3;
304
- return ((_a3 = props.newPrintSetting) == null ? void 0 : _a3.printAllFormatIds) || [];
380
+ var _a;
381
+ return ((_a = props.newPrintSetting) == null ? void 0 : _a.printAllFormatIds) || [];
305
382
  });
306
383
  const positionElement = computed(() => {
307
- var _a3;
308
- return (_a3 = props.newPrintSetting) == null ? void 0 : _a3.positionElement;
384
+ var _a;
385
+ return (_a = props.newPrintSetting) == null ? void 0 : _a.positionElement;
309
386
  });
310
387
  const printAllShortcut = computed(() => {
311
- var _a3, _b3;
388
+ var _a, _b;
312
389
  const keys = Object.keys(shortcutSettings.value);
313
390
  if (keys.length > 0) {
314
391
  if (defaultPrintFormatId.value && keys.includes(defaultPrintFormatId.value)) {
315
- return ((_a3 = shortcutSettings.value[defaultPrintFormatId.value]) == null ? void 0 : _a3.shortcutLabel) || "";
392
+ return ((_a = shortcutSettings.value[defaultPrintFormatId.value]) == null ? void 0 : _a.shortcutLabel) || "";
316
393
  }
317
394
  if (keys.includes("all")) {
318
- return ((_b3 = shortcutSettings.value["all"]) == null ? void 0 : _b3.shortcutLabel) || "";
395
+ return ((_b = shortcutSettings.value["all"]) == null ? void 0 : _b.shortcutLabel) || "";
319
396
  }
320
397
  }
321
398
  return "";
@@ -335,15 +412,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
335
412
  }
336
413
  });
337
414
  const innerFilterPrintItems = computed(() => {
338
- var _a3;
339
- if (((_a3 = innerPrintItems.value) == null ? void 0 : _a3.length) === 2) {
415
+ var _a;
416
+ if (((_a = innerPrintItems.value) == null ? void 0 : _a.length) === 2) {
340
417
  return innerPrintItems.value.filter((item) => item.key !== "divider");
341
418
  }
342
419
  return innerPrintItems.value;
343
420
  });
344
421
  const initShowDownList = async () => {
345
- var _a3, _b3;
346
- if (!((_b3 = (_a3 = props.newPrintSetting) == null ? void 0 : _a3.outerPrintKeys) == null ? void 0 : _b3.length))
422
+ var _a, _b;
423
+ if (!((_b = (_a = props.newPrintSetting) == null ? void 0 : _a.outerPrintKeys) == null ? void 0 : _b.length))
347
424
  await handleClickBtn();
348
425
  downlistPopover.oneShow = true;
349
426
  };
@@ -423,9 +500,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
423
500
  emit("cancel", res);
424
501
  };
425
502
  const prevFnError = (type) => {
426
- var _a3;
427
503
  const error = {
428
- message: ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.486")) || "\u524D\u7F6E\u6761\u4EF6\u6267\u884C\u9519\u8BEF",
504
+ message: function() {
505
+ var _a, _b, _c;
506
+ try {
507
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.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";
508
+ } catch (e) {
509
+ return "\u524D\u7F6E\u6761\u4EF6\u6267\u884C\u9519\u8BEF";
510
+ }
511
+ }(),
429
512
  type,
430
513
  preExecution: true
431
514
  };
@@ -439,11 +522,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
439
522
  });
440
523
  };
441
524
  const getOnceParams = (curPrintParamList = [], templateCode) => {
442
- var _a3, _b3;
525
+ var _a, _b;
443
526
  let params = {};
444
527
  let obj = {};
445
- if (((_a3 = state.templateParams[templateCode].customizeDataset) == null ? void 0 : _a3.length) > 0) {
446
- const key = ((_b3 = Object.keys(curPrintParamList[0].datasetData || {})) == null ? void 0 : _b3[0]) || "";
528
+ if (((_a = state.templateParams[templateCode].customizeDataset) == null ? void 0 : _a.length) > 0) {
529
+ const key = ((_b = Object.keys(curPrintParamList[0].datasetData || {})) == null ? void 0 : _b[0]) || "";
447
530
  const datasetDataKeyVal = JSON.stringify(curPrintParamList.map((v) => JSON.parse(v.datasetData[key])));
448
531
  obj = {
449
532
  datasetData: {}
@@ -464,11 +547,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
464
547
  return JSON.stringify(params);
465
548
  };
466
549
  const handleClickPrintAll = () => {
467
- var _a3;
550
+ var _a;
468
551
  const templateNumbers = Object.keys(state.printParams);
469
552
  state.isClickOuterPrint = false;
470
553
  const originParamsClone = state.originParams;
471
- if (((_a3 = Object.keys(printAllFormatIds.value)) == null ? void 0 : _a3.length) > 0) {
554
+ if (((_a = Object.keys(printAllFormatIds.value)) == null ? void 0 : _a.length) > 0) {
472
555
  options.value.forEach((optItem) => {
473
556
  if (printAllFormatIds.value.includes(optItem.key)) {
474
557
  const tmpParam = state.printParams[optItem.templateCode];
@@ -551,12 +634,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
551
634
  templateId,
552
635
  params: curPrintParamList
553
636
  }).then(() => {
554
- var _a3;
637
+ var _a;
555
638
  state.curPrintParamList = curPrintParamList;
556
- const curPrintdlgshow = ((_a3 = printCustomProps.value) == null ? void 0 : _a3.printdlgshow) || props.printdlgshow;
639
+ const curPrintdlgshow = ((_a = printCustomProps.value) == null ? void 0 : _a.printdlgshow) || props.printdlgshow;
557
640
  const queryParams = {
558
641
  formatId,
559
642
  iReportExecuteMode: state.iReportExecuteMode,
643
+ number: state.number,
560
644
  templateId,
561
645
  authorizationKey: authorizationKey.value,
562
646
  printdlgshow: curPrintdlgshow,
@@ -608,6 +692,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
608
692
  formatId,
609
693
  templateId,
610
694
  iReportExecuteMode: state.iReportExecuteMode,
695
+ number: state.number,
611
696
  authorizationKey: authorizationKey.value,
612
697
  params,
613
698
  btnprint: props.btnprint,
@@ -640,6 +725,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
640
725
  formatId,
641
726
  templateId,
642
727
  iReportExecuteMode: state.iReportExecuteMode,
728
+ number: state.number,
643
729
  authorizationKey: authorizationKey.value,
644
730
  print: {
645
731
  print: "1",
@@ -676,7 +762,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
676
762
  });
677
763
  };
678
764
  const handleResetPrinter = async (curPrintParamList = [], templateCode, templateId, formatId) => {
679
- var _a3, _b3, _c3;
680
765
  if (props.showLoading && getCurrentLoading())
681
766
  return;
682
767
  toggleExpandLoading(true, formatId);
@@ -684,13 +769,34 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
684
769
  const data = await printInstance.resetPrinter(formatId, state.iReportExecuteMode);
685
770
  toggleExpandLoading(false);
686
771
  if ((data == null ? void 0 : data.result) == "success") {
687
- $message.success((data == null ? void 0 : data.message) || ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.487")) || "\u91CD\u7F6E\u6253\u5370\u673A\u6210\u529F");
772
+ $message.success((data == null ? void 0 : data.message) || function() {
773
+ var _a, _b, _c;
774
+ try {
775
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.487")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.487")) || "\u91CD\u7F6E\u6253\u5370\u673A\u6210\u529F";
776
+ } catch (e) {
777
+ return "\u91CD\u7F6E\u6253\u5370\u673A\u6210\u529F";
778
+ }
779
+ }());
688
780
  return;
689
781
  }
690
- $message.warning((data == null ? void 0 : data.message) || ((_b3 = window.getLanguageByCode) == null ? void 0 : _b3.call(window, "10010.1.488")) || "\u91CD\u7F6E\u6253\u5370\u673A\u5931\u8D25");
782
+ $message.warning((data == null ? void 0 : data.message) || function() {
783
+ var _a, _b, _c;
784
+ try {
785
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.488")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.488")) || "\u91CD\u7F6E\u6253\u5370\u673A\u5931\u8D25";
786
+ } catch (e) {
787
+ return "\u91CD\u7F6E\u6253\u5370\u673A\u5931\u8D25";
788
+ }
789
+ }());
691
790
  } catch (error) {
692
791
  toggleExpandLoading(false);
693
- $message.warning((error == null ? void 0 : error.message) || ((_c3 = window.getLanguageByCode) == null ? void 0 : _c3.call(window, "10010.1.488")) || "\u91CD\u7F6E\u6253\u5370\u673A\u5931\u8D25");
792
+ $message.warning((error == null ? void 0 : error.message) || function() {
793
+ var _a, _b, _c;
794
+ try {
795
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.488")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.488")) || "\u91CD\u7F6E\u6253\u5370\u673A\u5931\u8D25";
796
+ } catch (e) {
797
+ return "\u91CD\u7F6E\u6253\u5370\u673A\u5931\u8D25";
798
+ }
799
+ }());
694
800
  }
695
801
  };
696
802
  const handleSelect = async (type, {
@@ -726,7 +832,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
726
832
  printInstance = new Print();
727
833
  };
728
834
  const setOptions = () => {
729
- var _a3, _b3, _c3;
835
+ var _a, _b, _c;
730
836
  const shortKeys = Object.keys(shortcutSettings.value);
731
837
  const children = state.formatList.map((v) => {
732
838
  const item = {
@@ -749,10 +855,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
749
855
  if (isShowOutSettingBtn.value) {
750
856
  options.value.push(...baseDownListSetting);
751
857
  }
752
- if (((_b3 = (_a3 = props.newPrintSetting) == null ? void 0 : _a3.outerPrintKeys) == null ? void 0 : _b3.length) > 0) {
858
+ if (((_b = (_a = props.newPrintSetting) == null ? void 0 : _a.outerPrintKeys) == null ? void 0 : _b.length) > 0) {
753
859
  options.value.forEach((option) => {
754
- var _a4;
755
- if ((_a4 = props.newPrintSetting) == null ? void 0 : _a4.outerPrintKeys.includes(option.key)) {
860
+ var _a2;
861
+ if ((_a2 = props.newPrintSetting) == null ? void 0 : _a2.outerPrintKeys.includes(option.key)) {
756
862
  option.selected = true;
757
863
  }
758
864
  });
@@ -765,7 +871,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
765
871
  const portalStr = sessionStorage.getItem("portal");
766
872
  if (portalStr) {
767
873
  const portal = JSON.parse(portalStr);
768
- const limitObj = ((_c3 = portal == null ? void 0 : portal.user) == null ? void 0 : _c3.currentRoleResourceObj) || {};
874
+ const limitObj = ((_c = portal == null ? void 0 : portal.user) == null ? void 0 : _c.currentRoleResourceObj) || {};
769
875
  const limitList = Object.keys(limitObj);
770
876
  if (!limitList.includes(downloadPdfCode)) {
771
877
  operations.value = operations.value.filter((option) => option.key != "downloadPdf");
@@ -909,9 +1015,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
909
1015
  return templateObj;
910
1016
  };
911
1017
  const initCRM = async (formatListResult) => {
912
- var _a3;
1018
+ var _a, _b;
913
1019
  state.formatList = formatListResult ? formatFormatList(formatListResult.obj) : [];
914
- state.iReportExecuteMode = ((_a3 = formatListResult == null ? void 0 : formatListResult.obj) == null ? void 0 : _a3.length) > 0 ? formatListResult.obj[0].iReportExecuteMode || 1 : 1;
1020
+ state.iReportExecuteMode = ((_a = formatListResult == null ? void 0 : formatListResult.obj) == null ? void 0 : _a.length) > 0 ? formatListResult.obj[0].iReportExecuteMode || 1 : 1;
1021
+ state.number = ((_b = formatListResult == null ? void 0 : formatListResult.obj) == null ? void 0 : _b.length) > 0 ? formatListResult.obj[0].number || "" : "";
915
1022
  setOptions();
916
1023
  state.templateParams = mergeTemplateList(formatListResult.obj);
917
1024
  state.printParams = formatSomeTypeParams(state.templateParams, props.params);
@@ -919,7 +1026,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
919
1026
  registerShort();
920
1027
  };
921
1028
  const init = async () => {
922
- var _a3;
1029
+ var _a;
923
1030
  if (state.isInited)
924
1031
  return true;
925
1032
  state.isInited = true;
@@ -927,7 +1034,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
927
1034
  instantiatePrintSDK();
928
1035
  const formatListResult = await props.queryPrintFormatByNumber();
929
1036
  await initCRM(formatListResult);
930
- if (((_a3 = formatListResult.obj) == null ? void 0 : _a3.length) > 0)
1037
+ if (((_a = formatListResult.obj) == null ? void 0 : _a.length) > 0)
931
1038
  authorizationKey.value = formatListResult.obj[0].authorizationKey || "";
932
1039
  state.spinning = false;
933
1040
  return true;
@@ -948,6 +1055,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
948
1055
  callback() {
949
1056
  if (key == "all") {
950
1057
  printAllButtonClick("button");
1058
+ return;
951
1059
  }
952
1060
  const formatIds = showSettingItems.value.map((item) => item.key);
953
1061
  const originParamsClone = state.originParams;
@@ -958,6 +1066,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
958
1066
  const printToParam = originParamsClone[curTypeItem == null ? void 0 : curTypeItem.templateCode] || [];
959
1067
  handleClickPrint(tmpParam, curTypeItem.templateCode, curTypeItem.templateId, curTypeItem.key, printToParam);
960
1068
  }
1069
+ } else {
1070
+ initShowDownList();
961
1071
  }
962
1072
  }
963
1073
  });
@@ -993,6 +1103,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
993
1103
  const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(state.curPrintParamList, getTemplateCodeByFormatId.value);
994
1104
  const queryParams = {
995
1105
  formatId: state.currentFormatId,
1106
+ number: state.number,
996
1107
  templateId: getTemplateIdByFormatId.value,
997
1108
  params,
998
1109
  token
@@ -1026,8 +1137,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1026
1137
  deep: true
1027
1138
  });
1028
1139
  watch(() => {
1029
- var _a3;
1030
- return (_a3 = props.newPrintSetting) == null ? void 0 : _a3.outerPrintKeys;
1140
+ var _a;
1141
+ return (_a = props.newPrintSetting) == null ? void 0 : _a.outerPrintKeys;
1031
1142
  }, async (val) => {
1032
1143
  if ((val == null ? void 0 : val.length) > 0) {
1033
1144
  await handleClickBtn(false);
@@ -1036,6 +1147,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1036
1147
  deep: true,
1037
1148
  immediate: true
1038
1149
  });
1150
+ watch(() => {
1151
+ var _a;
1152
+ return (_a = props.newPrintSetting) == null ? void 0 : _a.initLoadPrintParams;
1153
+ }, async (isInit) => {
1154
+ if (isInit) {
1155
+ await handleClickBtn(false);
1156
+ }
1157
+ }, {
1158
+ immediate: true
1159
+ });
1039
1160
  async function directPrint() {
1040
1161
  await handleClickBtn(false);
1041
1162
  handleClickPrintAll();
@@ -1115,10 +1236,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1115
1236
  checked: sItem.selected,
1116
1237
  "onUpdate:checked": ($event) => sItem.selected = $event
1117
1238
  }, {
1118
- default: withCtx(() => {
1119
- var _a3;
1120
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.474")) || "\u5916\u663E")];
1121
- }),
1239
+ default: withCtx(() => [createTextVNode(function() {
1240
+ var _a, _b, _c;
1241
+ try {
1242
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.474")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.474")) || "\u5916\u663E";
1243
+ } catch (e) {
1244
+ return "\u5916\u663E";
1245
+ }
1246
+ }())]),
1122
1247
  _: 2
1123
1248
  }, 1032, ["checked", "onUpdate:checked"])])]);
1124
1249
  }), 128)), createElementVNode("div", _hoisted_6, [createVNode(unref(NDivider)), createElementVNode("div", _hoisted_7, [createVNode(unref(NButton), {
@@ -1126,20 +1251,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1126
1251
  size: "small",
1127
1252
  onClick: savePrintOutSetting
1128
1253
  }, {
1129
- default: withCtx(() => {
1130
- var _a3;
1131
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.244")) || "\u4FDD\u5B58")];
1132
- }),
1254
+ default: withCtx(() => [createTextVNode(function() {
1255
+ var _a, _b, _c;
1256
+ try {
1257
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.244")) || "\u4FDD\u5B58";
1258
+ } catch (e) {
1259
+ return "\u4FDD\u5B58";
1260
+ }
1261
+ }())]),
1133
1262
  _: 1
1134
1263
  }), unref(showSettingItems) && unref(showSettingItems).length > 1 ? (openBlock(), createBlock(unref(NCheckbox), {
1135
1264
  key: 0,
1136
1265
  checked: unref(isSelectedAll),
1137
1266
  "onUpdate:checked": _cache[1] || (_cache[1] = ($event) => isRef(isSelectedAll) ? isSelectedAll.value = $event : null)
1138
1267
  }, {
1139
- default: withCtx(() => {
1140
- var _a3;
1141
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.37")) || "\u5168\u9009")];
1142
- }),
1268
+ default: withCtx(() => [createTextVNode(function() {
1269
+ var _a, _b, _c;
1270
+ try {
1271
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.37")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.37")) || "\u5168\u9009";
1272
+ } catch (e) {
1273
+ return "\u5168\u9009";
1274
+ }
1275
+ }())]),
1143
1276
  _: 1
1144
1277
  }, 8, ["checked"])) : createCommentVNode("v-if", true)])])], 4)]),
1145
1278
  _: 1
@@ -1172,10 +1305,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1172
1305
  component: unref(PrintOutline),
1173
1306
  size: "18"
1174
1307
  }, null, 8, ["component"])]),
1175
- default: withCtx(() => {
1176
- var _a3;
1177
- return [createTextVNode(" " + toDisplayString(unref(isShowPrintAllBtn) ? ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.475")) || "\u6253\u5370\u5168\u90E8" : __props.btnText) + " ", 1), unref(printAllShortcut) ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(printAllShortcut)), 1)) : createCommentVNode("v-if", true)];
1178
- }),
1308
+ default: withCtx(() => [createTextVNode(" " + toDisplayString(unref(isShowPrintAllBtn) ? function() {
1309
+ var _a, _b, _c;
1310
+ try {
1311
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.475")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.475")) || "\u6253\u5370\u5168\u90E8";
1312
+ } catch (e) {
1313
+ return "\u6253\u5370\u5168\u90E8";
1314
+ }
1315
+ }() : __props.btnText) + " ", 1), unref(printAllShortcut) ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(printAllShortcut)), 1)) : createCommentVNode("v-if", true)]),
1179
1316
  _: 1
1180
1317
  }, 16, ["loading", "class"]), createVNode(unref(NButton), mergeProps({
1181
1318
  class: "icon-select"
@@ -1233,10 +1370,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1233
1370
  checked: sItem.selected,
1234
1371
  "onUpdate:checked": ($event) => sItem.selected = $event
1235
1372
  }, {
1236
- default: withCtx(() => {
1237
- var _a3;
1238
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.474")) || "\u5916\u663E")];
1239
- }),
1373
+ default: withCtx(() => [createTextVNode(function() {
1374
+ var _a, _b, _c;
1375
+ try {
1376
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.474")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.474")) || "\u5916\u663E";
1377
+ } catch (e) {
1378
+ return "\u5916\u663E";
1379
+ }
1380
+ }())]),
1240
1381
  _: 2
1241
1382
  }, 1032, ["checked", "onUpdate:checked"])])]);
1242
1383
  }), 128)), createElementVNode("div", _hoisted_13, [createVNode(unref(NDivider)), createElementVNode("div", _hoisted_14, [createVNode(unref(NButton), {
@@ -1244,20 +1385,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1244
1385
  size: "small",
1245
1386
  onClick: savePrintOutSetting
1246
1387
  }, {
1247
- default: withCtx(() => {
1248
- var _a3;
1249
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.244")) || "\u4FDD\u5B58")];
1250
- }),
1388
+ default: withCtx(() => [createTextVNode(function() {
1389
+ var _a, _b, _c;
1390
+ try {
1391
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.244")) || "\u4FDD\u5B58";
1392
+ } catch (e) {
1393
+ return "\u4FDD\u5B58";
1394
+ }
1395
+ }())]),
1251
1396
  _: 1
1252
1397
  }), unref(showSettingItems) && unref(showSettingItems).length > 1 ? (openBlock(), createBlock(unref(NCheckbox), {
1253
1398
  key: 0,
1254
1399
  checked: unref(isSelectedAll),
1255
1400
  "onUpdate:checked": _cache[6] || (_cache[6] = ($event) => isRef(isSelectedAll) ? isSelectedAll.value = $event : null)
1256
1401
  }, {
1257
- default: withCtx(() => {
1258
- var _a3;
1259
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.37")) || "\u5168\u9009")];
1260
- }),
1402
+ default: withCtx(() => [createTextVNode(function() {
1403
+ var _a, _b, _c;
1404
+ try {
1405
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.37")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.37")) || "\u5168\u9009";
1406
+ } catch (e) {
1407
+ return "\u5168\u9009";
1408
+ }
1409
+ }())]),
1261
1410
  _: 1
1262
1411
  }, 8, ["checked"])) : createCommentVNode("v-if", true)])])], 4)]),
1263
1412
  _: 2