cnhis-design-vue 3.4.0-release.3 → 3.4.0-release.7

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 (214) hide show
  1. package/es/_virtual/_virtual_i18n-methods.js +5 -1
  2. package/es/components/audio-sdk/index.d.ts +4 -4
  3. package/es/components/audio-sdk/src/Index.vue.d.ts +4 -4
  4. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +4 -4
  5. package/es/components/audio-sdk/src/components/recording.vue.d.ts +4 -4
  6. package/es/components/base-search/index.d.ts +34 -0
  7. package/es/components/base-search/src/index.vue.d.ts +34 -0
  8. package/es/components/base-search/src/index.vue2.js +9 -1
  9. package/es/components/button-print/index.d.ts +32 -0
  10. package/es/components/button-print/src/ButtonPrint.vue.d.ts +32 -0
  11. package/es/components/button-print/src/ButtonPrint.vue2.js +4 -0
  12. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -0
  13. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +73 -48
  14. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +11 -0
  15. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +35 -0
  16. package/es/components/button-print/src/utils/print.d.ts +1 -1
  17. package/es/components/button-print/src/utils/print.js +4 -2
  18. package/es/components/callback/src/components/render/popupMaps.d.ts +38 -24
  19. package/es/components/classification/index.d.ts +84 -0
  20. package/es/components/classification/src/components/search-filter/index.vue.d.ts +84 -0
  21. package/es/components/classification/src/components/set-classification/index.vue.d.ts +84 -0
  22. package/es/components/classification/src/index.vue.d.ts +84 -0
  23. package/es/components/classification/src/index.vue2.js +7 -0
  24. package/es/components/date-picker/index.d.ts +28 -0
  25. package/es/components/date-picker/src/DatePicker.vue.d.ts +28 -0
  26. package/es/components/date-picker/src/DatePicker.vue2.js +26 -1
  27. package/es/components/expand-field/index.d.ts +31 -0
  28. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +31 -0
  29. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +31 -0
  30. package/es/components/expand-field/src/components/form.vue.d.ts +31 -0
  31. package/es/components/expand-field/src/index.vue.d.ts +31 -0
  32. package/es/components/fabric-chart/index.d.ts +3 -3
  33. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +3 -3
  34. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -0
  35. package/es/components/fabric-chart/src/components/PopupMenu.d.ts +4 -4
  36. package/es/components/fabric-chart/src/components/PopupMenu.js +57 -39
  37. package/es/components/fabric-chart/src/constants/index.d.ts +19 -5
  38. package/es/components/fabric-chart/src/constants/index.js +26 -11
  39. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +4 -3
  40. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +119 -193
  41. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +69 -117
  42. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +15 -11
  43. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +1 -1
  44. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +39 -27
  45. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +2 -2
  46. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +86 -122
  47. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -0
  48. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +65 -113
  49. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +4 -3
  50. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +63 -37
  51. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +31 -14
  52. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +4 -3
  53. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +6 -7
  54. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +152 -208
  55. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +4 -3
  56. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -9
  57. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -0
  58. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +4 -3
  59. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +138 -229
  60. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +5 -2
  61. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +195 -273
  62. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -0
  63. package/es/components/fabric-chart/src/interface.d.ts +14 -1
  64. package/es/components/fabric-chart/src/utils/eventBus.d.ts +2 -0
  65. package/es/components/fabric-chart/src/utils/eventBus.js +5 -0
  66. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  67. package/es/components/fabric-chart/src/utils/index.js +2 -10
  68. package/es/components/fabric-chart/style/index.css +1 -1
  69. package/es/components/field-editor/index.d.ts +1 -0
  70. package/es/components/field-editor/src/FieldEditor.vue.d.ts +1 -0
  71. package/es/components/field-set/src/FieldColor.vue.d.ts +57 -1
  72. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  73. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  74. package/es/components/field-set/src/FieldSet.vue2.js +3 -1
  75. package/es/components/field-set/src/components/condition.vue.d.ts +28 -0
  76. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +56 -0
  77. package/es/components/field-set/src/components/edit-filter.vue.d.ts +28 -0
  78. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  79. package/es/components/form-config/index.d.ts +24 -0
  80. package/es/components/form-config/src/FormConfig.vue.d.ts +24 -0
  81. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -0
  82. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +19 -0
  83. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +48 -24
  84. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1 -0
  85. package/es/components/form-config/src/constants/index.d.ts +2 -0
  86. package/es/components/form-config/src/constants/index.js +2 -0
  87. package/es/components/form-config/src/hooks/useConfigurationField.js +20 -3
  88. package/es/components/form-render/index.d.ts +1 -0
  89. package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
  90. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
  91. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
  92. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -0
  93. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
  94. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
  95. package/es/components/form-render/src/components/renderer/radio_checkbox.js +3 -2
  96. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
  97. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  98. package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +8 -0
  99. package/es/components/form-render/src/types/index.d.ts +1 -0
  100. package/es/components/form-render/src/utils/index.d.ts +1 -1
  101. package/es/components/form-render/src/utils/index.js +5 -2
  102. package/es/components/iho-chat/index.d.ts +2757 -300
  103. package/es/components/iho-chat/src/Index.vue.d.ts +2757 -300
  104. package/es/components/iho-chat/src/Index.vue2.js +5 -3
  105. package/es/components/iho-chat/src/api/index.d.ts +89 -16
  106. package/es/components/iho-chat/src/api/index.js +8 -1
  107. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +104 -22
  108. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +191 -29
  109. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +191 -29
  110. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +3 -0
  111. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +783 -101
  112. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +611 -51
  113. package/es/components/iho-chat/src/components/ChatMain.vue2.js +27 -28
  114. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +204 -14
  115. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +175 -10
  116. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +2 -1
  117. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +197 -29
  118. package/es/components/iho-chat/src/components/ChatSet.vue2.js +48 -11
  119. package/es/components/iho-chat/src/components/ContextMenu.js +7 -10
  120. package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +88 -7
  121. package/es/components/iho-chat/src/components/MessageMarkdown.vue.d.ts +158 -0
  122. package/es/components/iho-chat/src/components/MessageMarkdown.vue.js +6 -0
  123. package/es/components/iho-chat/src/components/MessageMarkdown.vue2.js +51 -0
  124. package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +176 -14
  125. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +192 -29
  126. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +2 -1
  127. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +91 -8
  128. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +121 -11
  129. package/es/components/iho-chat/src/components/Video.vue.d.ts +89 -8
  130. package/es/components/iho-chat/src/components/userItemRender.js +2 -1
  131. package/es/components/iho-chat/src/constants/index.d.ts +2 -1
  132. package/es/components/iho-chat/src/constants/index.js +1 -0
  133. package/es/components/iho-chat/src/hooks/useData.d.ts +374 -27
  134. package/es/components/iho-chat/src/hooks/useData.js +31 -10
  135. package/es/components/iho-chat/src/hooks/useStreamOutput.d.ts +6 -0
  136. package/es/components/iho-chat/src/hooks/useStreamOutput.js +100 -0
  137. package/es/components/iho-chat/src/hooks/useVideo.d.ts +89 -7
  138. package/es/components/iho-chat/src/hooks/useWebSocket.js +14 -4
  139. package/es/components/iho-chat/src/types/index.d.ts +39 -7
  140. package/es/components/iho-chat/src/utils/index.d.ts +2 -1
  141. package/es/components/iho-chat/src/utils/sseClient.d.ts +22 -0
  142. package/es/components/iho-chat/src/utils/sseClient.js +97 -0
  143. package/es/components/iho-chat/style/index.css +1 -1
  144. package/es/components/iho-table/index.d.ts +37 -24
  145. package/es/components/iho-table/src/IhoTable.vue.d.ts +37 -24
  146. package/es/components/iho-table/src/IhoTable.vue2.js +7 -2
  147. package/es/components/iho-table/src/constants/index.d.ts +2 -2
  148. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +3 -3
  149. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
  150. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
  151. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +30 -4
  152. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +22 -8
  153. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +7 -2
  154. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
  155. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +28 -0
  156. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +2 -2
  157. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
  158. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.d.ts +1 -1
  159. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +8 -2
  160. package/es/components/iho-table/src/types/index.d.ts +3 -1
  161. package/es/components/index.css +1 -1
  162. package/es/components/info-header/index.d.ts +46 -2
  163. package/es/components/info-header/src/InfoHeader.vue.d.ts +46 -2
  164. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +41 -2
  165. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +2 -1
  166. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +41 -2
  167. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +20 -1
  168. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +20 -1
  169. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +9 -6
  170. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +42 -2
  171. package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -1
  172. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -0
  173. package/es/components/scale-view/index.d.ts +1 -1
  174. package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
  175. package/es/components/scale-view/src/ScaleView.vue2.js +9 -3
  176. package/es/components/scale-view/src/hooks/use-event.js +56 -22
  177. package/es/components/select-person/index.d.ts +31 -0
  178. package/es/components/select-person/src/SelectPerson.vue.d.ts +14 -0
  179. package/es/components/select-person/src/SelectPerson.vue2.js +36 -8
  180. package/es/components/select-person/src/index.vue.d.ts +31 -0
  181. package/es/components/select-person/src/index.vue2.js +4 -0
  182. package/es/components/shortcut-setter/index.d.ts +1 -0
  183. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
  184. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +2 -2
  185. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +28 -0
  186. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +28 -0
  187. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +28 -0
  188. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +28 -0
  189. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +56 -0
  190. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +28 -0
  191. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +28 -0
  192. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +56 -0
  193. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +56 -0
  194. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +28 -0
  195. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +30 -0
  196. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +10 -2
  197. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +28 -0
  198. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +30 -0
  199. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +10 -2
  200. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +116 -0
  201. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +9 -9
  202. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +116 -0
  203. package/es/components/table-filter/src/constants/index.d.ts +1 -0
  204. package/es/components/table-filter/src/constants/index.js +4 -1
  205. package/es/shared/components/Ellipsis/Ellipsis.d.ts +12 -0
  206. package/es/shared/components/Ellipsis/Ellipsis.js +86 -0
  207. package/es/shared/components/Ellipsis/index.d.ts +2 -0
  208. package/es/shared/components/Ellipsis/index.js +2 -0
  209. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +15 -0
  210. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +24 -10
  211. package/es/shared/package.json.js +1 -1
  212. package/es/shared/types/business.d.ts +3 -2
  213. package/es/shared/utils/business.js +16 -0
  214. package/package.json +3 -3
@@ -22,70 +22,77 @@ const _hoisted_2 = {
22
22
  class: "newprint-button-outer__shortcut"
23
23
  };
24
24
  const _hoisted_3 = {
25
- class: "print-lite"
25
+ key: 0,
26
+ class: "label bold",
27
+ style: {
28
+ "margin-right": "8px"
29
+ }
26
30
  };
27
31
  const _hoisted_4 = {
28
- class: "label bold"
32
+ class: "print-lite"
29
33
  };
30
34
  const _hoisted_5 = {
31
- class: "print-li"
35
+ class: "label bold"
32
36
  };
33
37
  const _hoisted_6 = {
34
- class: "print-lite"
38
+ class: "print-li"
35
39
  };
36
40
  const _hoisted_7 = {
41
+ class: "print-lite"
42
+ };
43
+ const _hoisted_8 = {
37
44
  key: 0,
38
45
  class: "newprint-button-outer__shortcut"
39
46
  };
40
- const _hoisted_8 = ["onMouseenter", "onClick"];
41
- const _hoisted_9 = {
47
+ const _hoisted_9 = ["onMouseenter", "onClick"];
48
+ const _hoisted_10 = {
42
49
  class: "label bold"
43
50
  };
44
- const _hoisted_10 = {
51
+ const _hoisted_11 = {
45
52
  class: "print-lite",
46
53
  style: {
47
54
  "background": "transparent"
48
55
  }
49
56
  };
50
- const _hoisted_11 = {
57
+ const _hoisted_12 = {
51
58
  class: "label bold"
52
59
  };
53
- const _hoisted_12 = {
60
+ const _hoisted_13 = {
54
61
  class: "print-li"
55
62
  };
56
- const _hoisted_13 = {
63
+ const _hoisted_14 = {
57
64
  class: "print-lite",
58
65
  style: {
59
66
  "background": "transparent"
60
67
  }
61
68
  };
62
- const _hoisted_14 = ["onClick"];
63
- const _hoisted_15 = {
69
+ const _hoisted_15 = ["onClick"];
70
+ const _hoisted_16 = {
64
71
  key: 0,
65
72
  class: "newprint-button-outer__shortcut"
66
73
  };
67
- const _hoisted_16 = {
74
+ const _hoisted_17 = {
68
75
  class: "newprint-button-poperOver"
69
76
  };
70
- const _hoisted_17 = ["onMouseenter"];
71
- const _hoisted_18 = {
77
+ const _hoisted_18 = ["onMouseenter"];
78
+ const _hoisted_19 = {
72
79
  class: "print-lite",
73
80
  style: {
74
81
  "background": "transparent"
75
82
  }
76
83
  };
77
- const _hoisted_19 = {
84
+ const _hoisted_20 = {
78
85
  class: "label"
79
86
  };
80
- const _hoisted_20 = ["onClick"];
81
- const _hoisted_21 = {
87
+ const _hoisted_21 = ["onClick"];
88
+ const _hoisted_22 = {
82
89
  key: 1,
83
90
  class: "print-lite",
84
91
  style: {
85
92
  "background": "transparent"
86
93
  }
87
94
  };
88
- const _hoisted_22 = ["onClick"];
95
+ const _hoisted_23 = ["onClick"];
89
96
  const downloadPdfCode = "RY7.2.21.1.M2.G94181E";
90
97
  const formatEditTextCode = "RY7.2.21.1.M2.G33633A";
91
98
  const resetPrintButtonCode = "RY7.2.21.1.M2.G99314S";
@@ -193,7 +200,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
193
200
  buttonProps: {},
194
201
  showMaxHeight: null,
195
202
  initLoadPrintParams: false,
196
- showPreviewDataList: false
203
+ showPreviewDataList: false,
204
+ noShowOutSettingText: false
197
205
  })
198
206
  },
199
207
  svrUpdateIp: {
@@ -341,6 +349,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
341
349
  var _a;
342
350
  return (_a = props.newPrintSetting) == null ? void 0 : _a.showPreviewDataList;
343
351
  });
352
+ const noShowOutSettingText = computed(() => {
353
+ var _a;
354
+ return (_a = props.newPrintSetting) == null ? void 0 : _a.noShowOutSettingText;
355
+ });
344
356
  const printAllShortcut = computed(() => {
345
357
  var _a, _b;
346
358
  const keys = Object.keys(shortcutSettings.value);
@@ -617,14 +629,31 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
617
629
  return state.spinning;
618
630
  };
619
631
  const handleOneTypePrint = (templateCode, templateId, formatId, isOuterClick) => {
620
- props.prevPrintFn().then(() => {
621
- const tmpParam = state.printParams[templateCode];
632
+ const tmpParam = state.printParams[templateCode];
633
+ props.prevPrintFn({
634
+ templateId,
635
+ formatId,
636
+ params: tmpParam
637
+ }).then(() => {
638
+ var _a;
622
639
  if (!tmpParam)
623
640
  return;
624
641
  state.isClickOuterPrint = isOuterClick;
625
642
  state.currentFormatId = formatId;
626
643
  const printToParam = state.originParams[templateCode] || [];
627
- handleClickPrint(tmpParam, templateCode, templateId, formatId, printToParam);
644
+ handleClickPrint(tmpParam, templateCode, templateId, formatId, printToParam, true);
645
+ if (isPrintAllType.value == 4 && ((_a = printAllFormatIds == null ? void 0 : printAllFormatIds.value) == null ? void 0 : _a.includes(formatId))) {
646
+ const printFormatIds = printAllFormatIds.value.filter((id) => id != formatId);
647
+ printFormatIds.forEach((id) => {
648
+ const curFormatItem = state.formatList.find((item) => item.id === id);
649
+ if (curFormatItem) {
650
+ const tmpParam2 = state.printParams[curFormatItem.number];
651
+ const printToParam2 = state.originParams[curFormatItem.number] || [];
652
+ state.currentFormatId = id;
653
+ handleClickPrint(tmpParam2, curFormatItem.number, curFormatItem.templateId, id, printToParam2, true);
654
+ }
655
+ });
656
+ }
628
657
  });
629
658
  };
630
659
  const handleClickPrint = async (curPrintParamList = [], templateCode, templateId, formatId, printToParam = [], needContinuePrint) => {
@@ -719,6 +748,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
719
748
  btnprint: props.btnprint,
720
749
  signature: props.signature,
721
750
  hideButtons: props.hidePreviewBtns,
751
+ svrUpdateIp: props.svrUpdateIp,
722
752
  formatItem: curFormatIdObj
723
753
  };
724
754
  printInstance.preview(queryParams, (res) => {
@@ -1297,12 +1327,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1297
1327
  class: outerPrintItems.value.length > 0 ? "printAllLeftCls" : "",
1298
1328
  onClick: _cache[0] || (_cache[0] = ($event) => handleTwoShow("isOutSetting"))
1299
1329
  }), {
1300
- default: withCtx(() => [_cache[12] || (_cache[12] = createElementVNode("span", {
1301
- class: "label bold"
1302
- }, i18n("10010.1.473", "\u5916\u663E\u8BBE\u7F6E"), -1)), createVNode(unref(NIcon), {
1303
- style: {
1304
- "margin-left": "8px"
1305
- },
1330
+ default: withCtx(() => [!noShowOutSettingText.value ? (openBlock(), createElementBlock("span", _hoisted_3, i18n("10010.1.473", "\u5916\u663E\u8BBE\u7F6E"))) : createCommentVNode("v-if", true), createVNode(unref(NIcon), {
1306
1331
  component: unref(SettingsOutline),
1307
1332
  size: "18"
1308
1333
  }, null, 8, ["component"])]),
@@ -1317,26 +1342,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1317
1342
  return openBlock(), createElementBlock("div", {
1318
1343
  class: "print-li",
1319
1344
  key: sItem.key
1320
- }, [createElementVNode("div", _hoisted_3, [createElementVNode("span", _hoisted_4, toDisplayString(sItem.label), 1), createVNode(unref(NCheckbox), {
1345
+ }, [createElementVNode("div", _hoisted_4, [createElementVNode("span", _hoisted_5, toDisplayString(sItem.label), 1), createVNode(unref(NCheckbox), {
1321
1346
  checked: sItem.selected,
1322
1347
  "onUpdate:checked": ($event) => sItem.selected = $event
1323
1348
  }, {
1324
- default: withCtx(() => [..._cache[13] || (_cache[13] = [createTextVNode(i18n("10010.1.474", "\u5916\u663E"), -1)])]),
1349
+ default: withCtx(() => [..._cache[12] || (_cache[12] = [createTextVNode(i18n("10010.1.474", "\u5916\u663E"), -1)])]),
1325
1350
  _: 2
1326
1351
  }, 1032, ["checked", "onUpdate:checked"])])]);
1327
- }), 128)), createElementVNode("div", _hoisted_5, [createVNode(unref(NDivider)), createElementVNode("div", _hoisted_6, [createVNode(unref(NButton), {
1352
+ }), 128)), createElementVNode("div", _hoisted_6, [createVNode(unref(NDivider)), createElementVNode("div", _hoisted_7, [createVNode(unref(NButton), {
1328
1353
  type: "primary",
1329
1354
  size: "small",
1330
1355
  onClick: savePrintOutSetting
1331
1356
  }, {
1332
- default: withCtx(() => [..._cache[14] || (_cache[14] = [createTextVNode(i18n("10010.1.244", "\u4FDD\u5B58"), -1)])]),
1357
+ default: withCtx(() => [..._cache[13] || (_cache[13] = [createTextVNode(i18n("10010.1.244", "\u4FDD\u5B58"), -1)])]),
1333
1358
  _: 1
1334
1359
  }), showSettingItems.value && showSettingItems.value.length > 1 ? (openBlock(), createBlock(unref(NCheckbox), {
1335
1360
  key: 0,
1336
1361
  checked: isSelectedAll.value,
1337
1362
  "onUpdate:checked": _cache[1] || (_cache[1] = ($event) => isSelectedAll.value = $event)
1338
1363
  }, {
1339
- default: withCtx(() => [..._cache[15] || (_cache[15] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
1364
+ default: withCtx(() => [..._cache[14] || (_cache[14] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
1340
1365
  _: 1
1341
1366
  }, 8, ["checked"])) : createCommentVNode("v-if", true)])])], 4)]),
1342
1367
  _: 1
@@ -1370,7 +1395,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1370
1395
  component: unref(PrintOutline),
1371
1396
  size: "18"
1372
1397
  }, null, 8, ["component"])]),
1373
- default: withCtx(() => [createTextVNode(" " + toDisplayString(!isShowPrintAllBtn.value || isPrintAllType.value == 3 ? __props.btnText : i18n("10010.1.475", "\u6253\u5370\u5168\u90E8")) + " ", 1), printAllShortcut.value ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(printAllShortcut.value), 1)) : createCommentVNode("v-if", true)]),
1398
+ default: withCtx(() => [createTextVNode(" " + toDisplayString(!isShowPrintAllBtn.value || isPrintAllType.value == 3 || isPrintAllType.value == 4 ? __props.btnText : i18n("10010.1.475", "\u6253\u5370\u5168\u90E8")) + " ", 1), printAllShortcut.value ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(printAllShortcut.value), 1)) : createCommentVNode("v-if", true)]),
1374
1399
  _: 1
1375
1400
  }, 16, ["loading", "class"]), createCommentVNode(" \u53EA\u6709\u4E0B\u62C9\u6846\u6709\u9879\uFF0C\u624D\u5C55\u793A\u56FE\u6807\u6309\u94AE "), createVNode(unref(NButton), mergeProps({
1376
1401
  class: "icon-select"
@@ -1410,7 +1435,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1410
1435
  trigger: withCtx(() => [createElementVNode("div", {
1411
1436
  class: "print-lite",
1412
1437
  onClick: _cache[5] || (_cache[5] = ($event) => handleTwoShow("isOutSetting"))
1413
- }, [createElementVNode("span", _hoisted_9, toDisplayString(option.label), 1), createVNode(unref(NIcon), {
1438
+ }, [createElementVNode("span", _hoisted_10, toDisplayString(option.label), 1), createVNode(unref(NIcon), {
1414
1439
  class: "print-li-icon",
1415
1440
  color: outerPrintItems.value.length > 0 ? "#2563F4" : "",
1416
1441
  component: unref(SettingsOutline),
@@ -1425,26 +1450,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1425
1450
  return openBlock(), createElementBlock("div", {
1426
1451
  class: "print-li",
1427
1452
  key: sItem.key
1428
- }, [createElementVNode("div", _hoisted_10, [createElementVNode("span", _hoisted_11, toDisplayString(sItem.label), 1), createVNode(unref(NCheckbox), {
1453
+ }, [createElementVNode("div", _hoisted_11, [createElementVNode("span", _hoisted_12, toDisplayString(sItem.label), 1), createVNode(unref(NCheckbox), {
1429
1454
  checked: sItem.selected,
1430
1455
  "onUpdate:checked": ($event) => sItem.selected = $event
1431
1456
  }, {
1432
- default: withCtx(() => [..._cache[16] || (_cache[16] = [createTextVNode(i18n("10010.1.474", "\u5916\u663E"), -1)])]),
1457
+ default: withCtx(() => [..._cache[15] || (_cache[15] = [createTextVNode(i18n("10010.1.474", "\u5916\u663E"), -1)])]),
1433
1458
  _: 2
1434
1459
  }, 1032, ["checked", "onUpdate:checked"])])]);
1435
- }), 128)), createElementVNode("div", _hoisted_12, [createVNode(unref(NDivider)), createElementVNode("div", _hoisted_13, [createVNode(unref(NButton), {
1460
+ }), 128)), createElementVNode("div", _hoisted_13, [createVNode(unref(NDivider)), createElementVNode("div", _hoisted_14, [createVNode(unref(NButton), {
1436
1461
  type: "primary",
1437
1462
  size: "small",
1438
1463
  onClick: savePrintOutSetting
1439
1464
  }, {
1440
- default: withCtx(() => [..._cache[17] || (_cache[17] = [createTextVNode(i18n("10010.1.244", "\u4FDD\u5B58"), -1)])]),
1465
+ default: withCtx(() => [..._cache[16] || (_cache[16] = [createTextVNode(i18n("10010.1.244", "\u4FDD\u5B58"), -1)])]),
1441
1466
  _: 1
1442
1467
  }), showSettingItems.value && showSettingItems.value.length > 1 ? (openBlock(), createBlock(unref(NCheckbox), {
1443
1468
  key: 0,
1444
1469
  checked: isSelectedAll.value,
1445
1470
  "onUpdate:checked": _cache[6] || (_cache[6] = ($event) => isSelectedAll.value = $event)
1446
1471
  }, {
1447
- default: withCtx(() => [..._cache[18] || (_cache[18] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
1472
+ default: withCtx(() => [..._cache[17] || (_cache[17] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
1448
1473
  _: 1
1449
1474
  }, 8, ["checked"])) : createCommentVNode("v-if", true)])])], 4)]),
1450
1475
  _: 2
@@ -1458,7 +1483,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1458
1483
  }, [createElementVNode("span", {
1459
1484
  class: "label bold",
1460
1485
  onClick: ($event) => handleOneTypePrint(option.templateCode, option.templateId, option.key, false)
1461
- }, [createTextVNode(toDisplayString(option.label) + " ", 1), option.shortcutLabel ? (openBlock(), createElementBlock("span", _hoisted_15, toDisplayString(option.shortcutLabel), 1)) : createCommentVNode("v-if", true)], 8, _hoisted_14), state.printParams[option.templateCode] ? (openBlock(), createBlock(unref(NPopover), {
1486
+ }, [createTextVNode(toDisplayString(option.label) + " ", 1), option.shortcutLabel ? (openBlock(), createElementBlock("span", _hoisted_16, toDisplayString(option.shortcutLabel), 1)) : createCommentVNode("v-if", true)], 8, _hoisted_15), state.printParams[option.templateCode] ? (openBlock(), createBlock(unref(NPopover), {
1462
1487
  key: 0,
1463
1488
  trigger: "click",
1464
1489
  "show-arrow": false,
@@ -1473,7 +1498,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1473
1498
  size: "18",
1474
1499
  onClick: ($event) => handleTwoShow(option.key)
1475
1500
  }, null, 8, ["component", "onClick"])]),
1476
- default: withCtx(() => [createElementVNode("div", _hoisted_16, [(openBlock(true), createElementBlock(Fragment, null, renderList(getDownList(unref(operations), option), (operation) => {
1501
+ default: withCtx(() => [createElementVNode("div", _hoisted_17, [(openBlock(true), createElementBlock(Fragment, null, renderList(getDownList(unref(operations), option), (operation) => {
1477
1502
  return openBlock(), createElementBlock("div", {
1478
1503
  class: normalizeClass(["print-li", downlistOperation.twoMouseType == operation.key ? "active" : ""]),
1479
1504
  key: operation.key,
@@ -1487,7 +1512,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1487
1512
  placement: "right-start",
1488
1513
  show: downlistPopover[operation.key]
1489
1514
  }, {
1490
- trigger: withCtx(() => [createElementVNode("div", _hoisted_18, [createElementVNode("span", _hoisted_19, toDisplayString(operation.label), 1), createVNode(unref(NIcon), {
1515
+ trigger: withCtx(() => [createElementVNode("div", _hoisted_19, [createElementVNode("span", _hoisted_20, toDisplayString(operation.label), 1), createVNode(unref(NIcon), {
1491
1516
  component: unref(ArrowForward),
1492
1517
  size: "18"
1493
1518
  }, null, 8, ["component"])])]),
@@ -1501,16 +1526,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1501
1526
  "background": "transparent"
1502
1527
  },
1503
1528
  onClick: ($event) => handleSelect(previewBtn.key, option, false)
1504
- }, toDisplayString(previewBtn.label), 9, _hoisted_20)]);
1529
+ }, toDisplayString(previewBtn.label), 9, _hoisted_21)]);
1505
1530
  }), 128))]),
1506
1531
  _: 2
1507
- }, 1032, ["show"])) : (openBlock(), createElementBlock("div", _hoisted_21, [createElementVNode("span", {
1532
+ }, 1032, ["show"])) : (openBlock(), createElementBlock("div", _hoisted_22, [createElementVNode("span", {
1508
1533
  class: "label",
1509
1534
  onClick: ($event) => handleSelect(operation.key, option, false)
1510
- }, toDisplayString(operation.label), 9, _hoisted_22)]))], 42, _hoisted_17);
1535
+ }, toDisplayString(operation.label), 9, _hoisted_23)]))], 42, _hoisted_18);
1511
1536
  }), 128))])]),
1512
1537
  _: 2
1513
- }, 1032, ["show", "onClickoutside"])) : createCommentVNode("v-if", true)], 2)], 2112))], 42, _hoisted_8);
1538
+ }, 1032, ["show", "onClickoutside"])) : createCommentVNode("v-if", true)], 2)], 2112))], 42, _hoisted_9);
1514
1539
  }), 128))], 4)]),
1515
1540
  _: 3
1516
1541
  }, 8, ["to", "show"])], 2112))]), createVNode(IdentityVerification, mergeProps(_ctx.$attrs, {
@@ -119,6 +119,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
119
119
  hidePreviewBtns: {
120
120
  type: StringConstructor;
121
121
  };
122
+ isShowResetPrinter: {
123
+ type: BooleanConstructor;
124
+ };
122
125
  }>, {
123
126
  $attrs: {
124
127
  [x: string]: unknown;
@@ -245,6 +248,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
245
248
  hidePreviewBtns: {
246
249
  type: StringConstructor;
247
250
  };
251
+ isShowResetPrinter: {
252
+ type: BooleanConstructor;
253
+ };
248
254
  }>> & Readonly<{}> & {}>;
249
255
  emit: any;
250
256
  defaultFormatInfo: AnyObject;
@@ -284,6 +290,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
284
290
  handleClickPreview: () => Promise<void>;
285
291
  handleClickPdf: () => Promise<void>;
286
292
  handleClickEdit: () => void;
293
+ handleResetPrinter: () => Promise<void>;
287
294
  handleSelect: (key: string, option: AnyObject) => Promise<void>;
288
295
  handleClickOutside: () => void;
289
296
  instantiatePrintSDK: () => false | undefined;
@@ -642,6 +649,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
642
649
  hidePreviewBtns: {
643
650
  type: StringConstructor;
644
651
  };
652
+ isShowResetPrinter: {
653
+ type: BooleanConstructor;
654
+ };
645
655
  }>> & Readonly<{}>, {
646
656
  params: AnyObject[];
647
657
  btnText: string;
@@ -666,5 +676,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
666
676
  showLoading: boolean;
667
677
  hideButtons: unknown[];
668
678
  printCustomProps: Record<string, any>;
679
+ isShowResetPrinter: boolean;
669
680
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
670
681
  export default _default;
@@ -125,6 +125,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
125
125
  },
126
126
  hidePreviewBtns: {
127
127
  type: String
128
+ },
129
+ isShowResetPrinter: {
130
+ type: Boolean
128
131
  }
129
132
  },
130
133
  setup(__props, {
@@ -167,6 +170,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
167
170
  }, {
168
171
  label: props.formatEditText,
169
172
  key: "formatEditText"
173
+ }, {
174
+ label: i18n("10010.1.484", "\u91CD\u7F6E\u6253\u5370\u673A"),
175
+ key: "resetPrinter"
170
176
  }, ...((_a = props.externalOptionConfig) == null ? void 0 : _a.options) || []]);
171
177
  const tempOptions = ref([]);
172
178
  const currentFormatItem = computed(() => {
@@ -371,6 +377,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
371
377
  btnprint: props.btnprint,
372
378
  signature: props.signature,
373
379
  hideButtons: props.hidePreviewBtns,
380
+ svrUpdateIp: props.svrUpdateIp,
374
381
  formatItem: curFormatIdObj
375
382
  };
376
383
  printInstance.preview(queryParams, (res) => {
@@ -433,6 +440,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
433
440
  state.spinning = false;
434
441
  });
435
442
  };
443
+ const handleResetPrinter = async () => {
444
+ if (props.showLoading && state.spinning)
445
+ return;
446
+ state.spinning = true;
447
+ props.prevFn("resetPrinter", {
448
+ formatId: state.currentFormatId,
449
+ templateId: getTemplateIdByFormatId.value
450
+ }).then(async () => {
451
+ const data = await printInstance.resetPrinter(state.currentFormatId, state.iReportExecuteMode);
452
+ state.spinning = false;
453
+ if ((data == null ? void 0 : data.result) == "success") {
454
+ $message.success((data == null ? void 0 : data.message) || i18n("10010.1.487", "\u91CD\u7F6E\u6253\u5370\u673A\u6210\u529F"));
455
+ return;
456
+ }
457
+ $message.warning((data == null ? void 0 : data.message) || i18n("10010.1.488", "\u91CD\u7F6E\u6253\u5370\u673A\u5931\u8D25"));
458
+ }).catch(() => {
459
+ prevFnError("resetPrinter");
460
+ state.spinning = false;
461
+ }).finally(() => {
462
+ state.visible = false;
463
+ });
464
+ };
436
465
  const handleSelect = async (key, option) => {
437
466
  var _a2, _b;
438
467
  switch (key) {
@@ -448,6 +477,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
448
477
  case "downloadPdf":
449
478
  handleClickPdf();
450
479
  break;
480
+ case "resetPrinter":
481
+ handleResetPrinter();
482
+ break;
451
483
  default: {
452
484
  state.visible = false;
453
485
  const formatObj = state.formatList.find((item) => item.id === key) || {};
@@ -548,6 +580,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
548
580
  if (isIReport(state.currentFormatId)) {
549
581
  options.value = tempOptions.value.filter((option) => option.key != "formatEditText");
550
582
  }
583
+ if (!props.isShowResetPrinter) {
584
+ options.value = options.value.filter((option) => option.key != "resetPrinter");
585
+ }
551
586
  };
552
587
  const formatFormatList = (list) => {
553
588
  let formatList = [];
@@ -68,7 +68,7 @@ export declare class Print {
68
68
  _queryPrintForPdf(templateId: string, formatId: string, params: string | undefined, authorizationKey: String): Promise<any>;
69
69
  _browserPrint(result: AnyObject, mode: string): Promise<string | void>;
70
70
  _base64ToBlob(fileBase64: string, fileType: string): Blob;
71
- preview({ iReportExecuteMode, hideButtons, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, signature, btnprint, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
71
+ preview({ iReportExecuteMode, hideButtons, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, signature, btnprint, svrUpdateIp, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
72
72
  printSync(data: AnyObject[], successCallbackFn: AnyFn, errorCallbackFn: AnyFn): Promise<void>;
73
73
  isObject(o: any): boolean;
74
74
  printDirect({ iReportExecuteMode, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, print, signature, printdlgshow, nobillnode, copies, svrUpdateIp, apptype, uuid, printname, priority, isShowQueueProgressNotify, isDownloadFile, messageTimeout }: AnyObject, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn, printQueueCallbackFn?: AnyFn, mode?: string): Promise<false | undefined>;
@@ -865,6 +865,7 @@ class Print {
865
865
  authorizationKey,
866
866
  signature,
867
867
  btnprint,
868
+ svrUpdateIp,
868
869
  messageTimeout = 0
869
870
  }, successCallbackFn, errorCallbackFn) {
870
871
  params = this.isObject(params) || !params ? params : JSON.parse(params);
@@ -894,7 +895,7 @@ class Print {
894
895
  return false;
895
896
  try {
896
897
  const hideButtonsValue = hideButtons ? hideButtons : (formatItem == null ? void 0 : formatItem.previewCanExport) === void 0 || (formatItem == null ? void 0 : formatItem.previewCanExport) ? void 0 : "Export";
897
- const btnprintValue = btnprint != "1" ? btnprint : (formatItem == null ? void 0 : formatItem.previewCanPrint) === false ? "0" : "1";
898
+ const btnprintValue = btnprint != "1" && btnprint !== void 0 ? btnprint : (formatItem == null ? void 0 : formatItem.previewCanPrint) === false ? "0" : "1";
898
899
  const watermark = (formatItem == null ? void 0 : formatItem.showWatermark) ? "1" : void 0;
899
900
  const result = await this._handleEventDirect({
900
901
  templateId,
@@ -905,6 +906,7 @@ class Print {
905
906
  cmdid: this.isRemote ? PRINT_CMD_ID : PREVIEW_CMD_ID,
906
907
  watermark,
907
908
  signature,
909
+ svrUpdateIp,
908
910
  btnprint: btnprintValue,
909
911
  hideButtons: hideButtonsValue,
910
912
  messageTimeout
@@ -1081,7 +1083,7 @@ class Print {
1081
1083
  }
1082
1084
  this._notifyPrintQueueMap.callback.set(uuid, printQueueCallbackFn);
1083
1085
  }
1084
- const printdlgshowValue = printdlgshow != "0" ? printdlgshow : (formatItem == null ? void 0 : formatItem.showPrintDialog) ? "1" : "0";
1086
+ const printdlgshowValue = printdlgshow != "0" && printdlgshow !== void 0 ? printdlgshow : (formatItem == null ? void 0 : formatItem.showPrintDialog) ? "1" : "0";
1085
1087
  const watermark = (formatItem == null ? void 0 : formatItem.showWatermark) ? "1" : void 0;
1086
1088
  const result = await this._handleEventDirect({
1087
1089
  templateId,