cnhis-design-vue 2.2.3 → 2.2.6

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 (751) hide show
  1. package/CHANGELOG.md +41 -6
  2. package/es/affix/index.js +8 -8
  3. package/es/age/index.js +10 -10
  4. package/es/alert/index.js +8 -8
  5. package/es/anchor/index.js +8 -8
  6. package/es/auto-complete/index.js +8 -8
  7. package/es/avatar/index.js +8 -8
  8. package/es/back-top/index.js +8 -8
  9. package/es/badge/index.js +8 -8
  10. package/es/base/index.js +8 -8
  11. package/es/big-table/index.js +107 -109
  12. package/es/big-table/style.css +1 -1
  13. package/es/breadcrumb/index.js +8 -8
  14. package/es/button/index.js +33 -33
  15. package/es/calendar/index.js +8 -8
  16. package/es/captcha/index.js +3 -3
  17. package/es/card/index.js +8 -8
  18. package/es/card-reader-sdk/index.js +1 -1
  19. package/es/carousel/index.js +8 -8
  20. package/es/cascader/index.js +8 -8
  21. package/es/checkbox/index.js +9 -9
  22. package/es/col/index.js +8 -8
  23. package/es/collapse/index.js +8 -8
  24. package/es/color-picker/index.js +1 -1
  25. package/es/comment/index.js +8 -8
  26. package/es/config-provider/index.js +8 -8
  27. package/es/date-picker/index.js +8 -8
  28. package/es/descriptions/index.js +8 -8
  29. package/es/direct/index.js +16 -16
  30. package/es/divider/index.js +8 -8
  31. package/es/drag-layout/index.js +3 -3
  32. package/es/drawer/index.js +8 -8
  33. package/es/dropdown/index.js +8 -8
  34. package/es/editor/index.js +1 -1
  35. package/es/ellipsis/index.js +1 -1
  36. package/es/empty/index.js +8 -8
  37. package/es/fabric-chart/index.js +262 -183
  38. package/es/form/index.js +8 -8
  39. package/es/form-model/index.js +8 -8
  40. package/es/form-table/index.js +74 -74
  41. package/es/full-calendar/index.js +4 -4
  42. package/es/index/index.js +1095 -855
  43. package/es/index/style.css +1 -1
  44. package/es/input/index.js +9 -9
  45. package/es/input-number/index.js +8 -8
  46. package/es/layout/index.js +8 -8
  47. package/es/list/index.js +8 -8
  48. package/es/locale-provider/index.js +8 -8
  49. package/es/map/index.js +9 -9
  50. package/es/mentions/index.js +8 -8
  51. package/es/menu/index.js +8 -8
  52. package/es/message/index.js +8 -8
  53. package/es/multi-chat/index.js +76 -76
  54. package/es/multi-chat-client/index.js +70 -70
  55. package/es/multi-chat-history/index.js +4 -4
  56. package/es/multi-chat-record/index.js +14 -14
  57. package/es/multi-chat-setting/index.js +22 -22
  58. package/es/multi-chat-sip/index.js +1 -1
  59. package/es/notification/index.js +8 -8
  60. package/es/page-header/index.js +8 -8
  61. package/es/pagination/index.js +8 -8
  62. package/es/popconfirm/index.js +8 -8
  63. package/es/popover/index.js +8 -8
  64. package/es/progress/index.js +8 -8
  65. package/es/radio/index.js +9 -9
  66. package/es/rate/index.js +8 -8
  67. package/es/result/index.js +8 -8
  68. package/es/row/index.js +8 -8
  69. package/es/scale-container/index.js +9 -9
  70. package/es/scale-view/index.js +27 -27
  71. package/es/select/index.js +36 -21
  72. package/es/select-label/index.js +11 -11
  73. package/es/select-person/index.js +2 -2
  74. package/es/select-tag/index.js +144 -81
  75. package/es/select-tag/style.css +1 -1
  76. package/es/shortcut-setter/index.js +10 -10
  77. package/es/skeleton/index.js +8 -8
  78. package/es/slider/index.js +8 -8
  79. package/es/slider-tree/index.js +9 -9
  80. package/es/space/index.js +8 -8
  81. package/es/spin/index.js +8 -8
  82. package/es/statistic/index.js +8 -8
  83. package/es/steps/index.js +8 -8
  84. package/es/switch/index.js +8 -8
  85. package/es/table-filter/index.js +280 -195
  86. package/es/table-filter/style.css +1 -1
  87. package/es/tabs/index.js +8 -8
  88. package/es/tag/index.js +9 -9
  89. package/es/time-picker/index.js +8 -8
  90. package/es/timeline/index.js +8 -8
  91. package/es/tooltip/index.js +8 -8
  92. package/es/transfer/index.js +8 -8
  93. package/es/tree/index.js +8 -8
  94. package/es/tree-select/index.js +8 -8
  95. package/es/upload/index.js +8 -8
  96. package/es/verification-code/index.js +2 -2
  97. package/lib/cui.common.js +1122 -893
  98. package/lib/cui.umd.js +1122 -893
  99. package/lib/cui.umd.min.js +36 -36
  100. package/package.json +1 -1
  101. package/.prettierrc.js +0 -27
  102. package/packages/affix/index.js +0 -12
  103. package/packages/affix/src/Affix.jsx +0 -12
  104. package/packages/age/index.js +0 -27
  105. package/packages/age/src/age/index.vue +0 -140
  106. package/packages/age/src/age-com/index.vue +0 -210
  107. package/packages/alert/index.js +0 -12
  108. package/packages/alert/src/Alert.jsx +0 -11
  109. package/packages/anchor/index.js +0 -18
  110. package/packages/anchor/src/Anchor.jsx +0 -11
  111. package/packages/anchor/src/Link.jsx +0 -11
  112. package/packages/auto-complete/index.js +0 -12
  113. package/packages/auto-complete/src/AutoComplete.jsx +0 -12
  114. package/packages/avatar/index.js +0 -12
  115. package/packages/avatar/src/Avatar.jsx +0 -11
  116. package/packages/back-top/index.js +0 -12
  117. package/packages/back-top/src/BackTop.jsx +0 -11
  118. package/packages/badge/index.js +0 -12
  119. package/packages/badge/src/Badge.jsx +0 -11
  120. package/packages/base/index.js +0 -3
  121. package/packages/big-table/index.js +0 -20
  122. package/packages/big-table/src/BigTable.vue +0 -2977
  123. package/packages/big-table/src/Fieldset.vue +0 -2067
  124. package/packages/big-table/src/assets/iconfont/iconfont.css +0 -25
  125. package/packages/big-table/src/assets/iconfont/iconfont.ttf +0 -0
  126. package/packages/big-table/src/assets/img/failure.png +0 -0
  127. package/packages/big-table/src/assets/img/icon-asc.png +0 -0
  128. package/packages/big-table/src/assets/img/icon-desc.png +0 -0
  129. package/packages/big-table/src/assets/img/no-permission.png +0 -0
  130. package/packages/big-table/src/assets/img/nodata.png +0 -0
  131. package/packages/big-table/src/assets/img/notfound.png +0 -0
  132. package/packages/big-table/src/assets/img/qr.png +0 -0
  133. package/packages/big-table/src/assets/img/video_default_cover.png +0 -0
  134. package/packages/big-table/src/assets/img/xb_big.png +0 -0
  135. package/packages/big-table/src/assets/img/xb_small.png +0 -0
  136. package/packages/big-table/src/assets/style/table-base.less +0 -425
  137. package/packages/big-table/src/assets/style/table-global.less +0 -20
  138. package/packages/big-table/src/components/AutoLayoutButton.vue +0 -285
  139. package/packages/big-table/src/components/HeaderFilter.vue +0 -371
  140. package/packages/big-table/src/components/NoData.vue +0 -81
  141. package/packages/big-table/src/components/TextOverTooltip.vue +0 -120
  142. package/packages/big-table/src/components/edit-form/EditForm.vue +0 -518
  143. package/packages/big-table/src/components/edit-form/edit-component/config-data/index.js +0 -68
  144. package/packages/big-table/src/components/edit-form/edit-component/edit-date-picker/edit-date-picker.vue +0 -60
  145. package/packages/big-table/src/components/edit-form/edit-component/edit-digital/edit-digital.vue +0 -54
  146. package/packages/big-table/src/components/edit-form/edit-component/edit-input/edit-input.vue +0 -39
  147. package/packages/big-table/src/components/edit-form/edit-component/edit-input-password/edit-input-password.vue +0 -79
  148. package/packages/big-table/src/components/edit-form/edit-component/edit-month-picker/edit-month-picker.vue +0 -37
  149. package/packages/big-table/src/components/edit-form/edit-component/edit-search/edit-search.vue +0 -156
  150. package/packages/big-table/src/components/edit-form/edit-component/edit-search-more/edit-search-more.vue +0 -151
  151. package/packages/big-table/src/components/edit-form/edit-component/edit-select/edit-select.vue +0 -40
  152. package/packages/big-table/src/components/edit-form/edit-component/edit-select-multiple/edit-select-multiple.vue +0 -55
  153. package/packages/big-table/src/components/edit-form/edit-component/edit-switch/edit-switch.vue +0 -43
  154. package/packages/big-table/src/components/edit-form/edit-component/edit-textarea/edit-textarea.vue +0 -41
  155. package/packages/big-table/src/components/edit-form/edit-component/edit-time-picker/edit-time-picker.vue +0 -40
  156. package/packages/big-table/src/components/edit-form/edit-component/mixins/bound-date.js +0 -3
  157. package/packages/big-table/src/components/edit-form/edit-component/mixins/dateType.js +0 -217
  158. package/packages/big-table/src/components/edit-form/edit-component/mixins/item-default.js +0 -639
  159. package/packages/big-table/src/components/edit-form/edit-component/mixins/search.js +0 -1223
  160. package/packages/big-table/src/components/edit-form/edit-component/register-com.js +0 -26
  161. package/packages/big-table/src/components/edit-form/edit-item/form-event.js +0 -80
  162. package/packages/big-table/src/components/edit-form/edit-item/global-props.js +0 -33
  163. package/packages/big-table/src/components/edit-form/edit-item/index.js +0 -4
  164. package/packages/big-table/src/components/edit-form/edit-item/render-methods.js +0 -28
  165. package/packages/big-table/src/components/edit-form/edit-item/validate-rules.js +0 -463
  166. package/packages/big-table/src/components/edit-form/edit-mixins/form-commom.js +0 -673
  167. package/packages/big-table/src/components/edit-form/edit-mixins/index.js +0 -3
  168. package/packages/big-table/src/components/edit-form/edit-utils/index.js +0 -112
  169. package/packages/big-table/src/components/password-com.vue +0 -58
  170. package/packages/big-table/src/components/player-vod/index.vue +0 -57
  171. package/packages/big-table/src/components/player-vod/player.vue +0 -193
  172. package/packages/big-table/src/components/player-vod/video-list.vue +0 -265
  173. package/packages/big-table/src/components/player-vod/video-modal.vue +0 -131
  174. package/packages/big-table/src/utils/CustomPagination.vue +0 -86
  175. package/packages/big-table/src/utils/batchEditing.js +0 -613
  176. package/packages/big-table/src/utils/bigTableProps.js +0 -112
  177. package/packages/big-table/src/utils/checkStrictly.js +0 -58
  178. package/packages/big-table/src/utils/eventBroadcast.js +0 -24
  179. package/packages/big-table/src/utils/format.js +0 -577
  180. package/packages/big-table/src/utils/headerFilter.js +0 -691
  181. package/packages/big-table/src/utils/nestTable.js +0 -109
  182. package/packages/big-table/src/utils/tableParse.js +0 -234
  183. package/packages/breadcrumb/index.js +0 -21
  184. package/packages/breadcrumb/src/Breadcrumb.jsx +0 -11
  185. package/packages/breadcrumb/src/BreadcrumbItem.jsx +0 -11
  186. package/packages/breadcrumb/src/BreadcrumbSeparator.jsx +0 -11
  187. package/packages/button/index.js +0 -21
  188. package/packages/button/src/Button.jsx +0 -11
  189. package/packages/button/src/ButtonGroup.jsx +0 -11
  190. package/packages/button/src/ButtonPrint/components/IdentityVerification.vue +0 -181
  191. package/packages/button/src/ButtonPrint/index.vue +0 -165
  192. package/packages/button/src/ButtonPrint/js/print.es.min.js +0 -1
  193. package/packages/button/src/ButtonPrint/js/print.es.min1.js +0 -1
  194. package/packages/button/src/ButtonPrint/mixin/his-print.js +0 -95
  195. package/packages/button/src/ButtonPrint/new.vue +0 -1476
  196. package/packages/button/src/ButtonPrint/old.vue +0 -870
  197. package/packages/calendar/index.js +0 -12
  198. package/packages/calendar/src/Calendar.jsx +0 -11
  199. package/packages/captcha/index.js +0 -10
  200. package/packages/captcha/src/Captcha.vue +0 -164
  201. package/packages/captcha/src/Index.vue +0 -47
  202. package/packages/captcha/src/SlideVerify.vue +0 -285
  203. package/packages/card/index.js +0 -21
  204. package/packages/card/src/Card.jsx +0 -12
  205. package/packages/card/src/CardGrid.js +0 -7
  206. package/packages/card/src/CardMeta.js +0 -7
  207. package/packages/card-reader-sdk/index.js +0 -4
  208. package/packages/card-reader-sdk/src/cardReaderSDK.js +0 -149
  209. package/packages/card-reader-sdk/src/components/readCardDialog.vue +0 -48
  210. package/packages/card-reader-sdk/src/constants/index.js +0 -76
  211. package/packages/card-reader-sdk/src/insuranceSDK.js +0 -111
  212. package/packages/card-reader-sdk/src/utils/index.js +0 -84
  213. package/packages/card-reader-sdk/src/utils/readHealthCard.jsx +0 -57
  214. package/packages/carousel/index.js +0 -12
  215. package/packages/carousel/src/Carousel.jsx +0 -12
  216. package/packages/cascader/index.js +0 -12
  217. package/packages/cascader/src/Cascader.jsx +0 -11
  218. package/packages/checkbox/index.js +0 -30
  219. package/packages/checkbox/src/Checkbox.jsx +0 -11
  220. package/packages/checkbox/src/CheckboxImg/index.vue +0 -142
  221. package/packages/checkbox/src/Group.jsx +0 -11
  222. package/packages/col/index.js +0 -13
  223. package/packages/col/src/Col.jsx +0 -11
  224. package/packages/collapse/index.js +0 -18
  225. package/packages/collapse/src/Collapse.jsx +0 -11
  226. package/packages/collapse/src/Panel.jsx +0 -11
  227. package/packages/color-picker/index.js +0 -10
  228. package/packages/color-picker/src/color-picker.vue +0 -191
  229. package/packages/color-picker/src/style.less +0 -109
  230. package/packages/comment/index.js +0 -12
  231. package/packages/comment/src/Comment.jsx +0 -11
  232. package/packages/config-provider/index.js +0 -12
  233. package/packages/config-provider/src/ConfigProvider.jsx +0 -11
  234. package/packages/date-picker/index.js +0 -26
  235. package/packages/date-picker/src/DatePicker.jsx +0 -12
  236. package/packages/date-picker/src/MonthPicker.jsx +0 -11
  237. package/packages/date-picker/src/RangePicker.jsx +0 -11
  238. package/packages/date-picker/src/WeekPicker.jsx +0 -11
  239. package/packages/date-picker/src/utils/index.js +0 -374
  240. package/packages/descriptions/index.js +0 -18
  241. package/packages/descriptions/src/Descriptions.jsx +0 -11
  242. package/packages/descriptions/src/Item.jsx +0 -11
  243. package/packages/direct/index.js +0 -3
  244. package/packages/divider/index.js +0 -12
  245. package/packages/divider/src/Divider.jsx +0 -11
  246. package/packages/drag-layout/DragFormLeftItem.vue +0 -173
  247. package/packages/drag-layout/DragFormRightItem.vue +0 -284
  248. package/packages/drag-layout/I18n-mixins.js +0 -10
  249. package/packages/drag-layout/drag-layout.vue +0 -778
  250. package/packages/drag-layout/index.js +0 -12
  251. package/packages/drawer/index.js +0 -12
  252. package/packages/drawer/src/Drawer.jsx +0 -11
  253. package/packages/dropdown/index.js +0 -12
  254. package/packages/dropdown/src/Dropdown.jsx +0 -11
  255. package/packages/editor/index.js +0 -10
  256. package/packages/editor/src/Editor.vue +0 -201
  257. package/packages/editor/src/utils.js +0 -65
  258. package/packages/ellipsis/index.js +0 -9
  259. package/packages/ellipsis/src/Ellipsis.vue +0 -65
  260. package/packages/empty/index.js +0 -12
  261. package/packages/empty/src/Empty.jsx +0 -11
  262. package/packages/fabric-chart/index.js +0 -10
  263. package/packages/fabric-chart/src/FabricChart.vue +0 -153
  264. package/packages/fabric-chart/src/FabricGrid.vue +0 -67
  265. package/packages/fabric-chart/src/components/DropPopup.vue +0 -90
  266. package/packages/fabric-chart/src/components/MouseRightClick.vue +0 -168
  267. package/packages/fabric-chart/src/components/TimeScaleValue.vue +0 -125
  268. package/packages/fabric-chart/src/const/defaultVaule.js +0 -61
  269. package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +0 -396
  270. package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +0 -641
  271. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +0 -1447
  272. package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +0 -142
  273. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +0 -928
  274. package/packages/fabric-chart/src/mixins/draw.js +0 -444
  275. package/packages/fabric-chart/src/mixins/drawExtracorporealCirculation.js +0 -222
  276. package/packages/fabric-chart/src/mixins/eventCommon.js +0 -107
  277. package/packages/fabric-chart/src/mixins/fabricCommon.js +0 -77
  278. package/packages/fabric-chart/src/mixins/fabricObject.js +0 -193
  279. package/packages/fabric-chart/src/utils/bus.js +0 -2
  280. package/packages/fabric-chart/src/utils/index.js +0 -104
  281. package/packages/form/index.js +0 -16
  282. package/packages/form/src/Form.jsx +0 -11
  283. package/packages/form/src/Item.jsx +0 -11
  284. package/packages/form-model/index.js +0 -14
  285. package/packages/form-model/src/FormModel.jsx +0 -11
  286. package/packages/form-model/src/Item.jsx +0 -11
  287. package/packages/form-table/index.js +0 -16
  288. package/packages/form-table/src/FormTable.vue +0 -1110
  289. package/packages/form-table/src/components/table-component/config-data/index.js +0 -80
  290. package/packages/form-table/src/components/table-component/global-props.js +0 -22
  291. package/packages/form-table/src/components/table-component/index.js +0 -8
  292. package/packages/form-table/src/components/table-component/mixins/bound-date.js +0 -455
  293. package/packages/form-table/src/components/table-component/mixins/dateType.js +0 -217
  294. package/packages/form-table/src/components/table-component/mixins/item-default.js +0 -257
  295. package/packages/form-table/src/components/table-component/mixins/search.js +0 -1242
  296. package/packages/form-table/src/components/table-component/register-com.js +0 -30
  297. package/packages/form-table/src/components/table-component/table-age/table-age.vue +0 -175
  298. package/packages/form-table/src/components/table-component/table-date-picker/table-date-picker.vue +0 -87
  299. package/packages/form-table/src/components/table-component/table-digital/table-digital.vue +0 -93
  300. package/packages/form-table/src/components/table-component/table-input/table-input.vue +0 -81
  301. package/packages/form-table/src/components/table-component/table-input-password/table-input-password.vue +0 -126
  302. package/packages/form-table/src/components/table-component/table-month-picker/table-month-picker.vue +0 -55
  303. package/packages/form-table/src/components/table-component/table-search/table-search.vue +0 -174
  304. package/packages/form-table/src/components/table-component/table-search-more/table-search-more.vue +0 -191
  305. package/packages/form-table/src/components/table-component/table-select/table-select.vue +0 -64
  306. package/packages/form-table/src/components/table-component/table-select-multiple/table-select-multiple.vue +0 -81
  307. package/packages/form-table/src/components/table-component/table-textarea/table-textarea.vue +0 -76
  308. package/packages/form-table/src/components/table-component/table-time-picker/table-time-picker.vue +0 -55
  309. package/packages/form-table/src/components/table-component/table-tree-select/table-tree-select.vue +0 -135
  310. package/packages/form-table/src/components/table-component/text-over-tooltip/TextOverTooltip.vue +0 -97
  311. package/packages/form-table/src/components/table-item/form-event.js +0 -81
  312. package/packages/form-table/src/components/table-item/global-props.js +0 -27
  313. package/packages/form-table/src/components/table-item/index.js +0 -4
  314. package/packages/form-table/src/components/table-item/render-methods.js +0 -28
  315. package/packages/form-table/src/components/table-item/validate-rules.js +0 -520
  316. package/packages/form-table/src/components/table-mixins/form-commom.js +0 -98
  317. package/packages/form-table/src/components/table-mixins/index.js +0 -3
  318. package/packages/form-table/src/components/table-utils/index.js +0 -112
  319. package/packages/form-table/src/disabledDetail.less +0 -46
  320. package/packages/full-calendar/index.js +0 -10
  321. package/packages/full-calendar/src/FullCalendar.vue +0 -775
  322. package/packages/full-calendar/src/api/index.js +0 -71
  323. package/packages/full-calendar/src/components/ListTag.vue +0 -184
  324. package/packages/full-calendar/src/components/Tag.vue +0 -300
  325. package/packages/full-calendar/src/components/TagDetail.vue +0 -288
  326. package/packages/full-calendar/src/utils/index.js +0 -217
  327. package/packages/grid/index.js +0 -10
  328. package/packages/grid/src/grid.js +0 -27
  329. package/packages/icon/index.js +0 -10
  330. package/packages/icon/src/icon.js +0 -13
  331. package/packages/index.js +0 -325
  332. package/packages/input/index.js +0 -30
  333. package/packages/input/src/Group.jsx +0 -11
  334. package/packages/input/src/Input.jsx +0 -11
  335. package/packages/input/src/Password.jsx +0 -11
  336. package/packages/input/src/Search.jsx +0 -11
  337. package/packages/input/src/TextArea.jsx +0 -11
  338. package/packages/input/src/input-quick/components/quick-item.vue +0 -284
  339. package/packages/input/src/input-quick/components/quick-popover.vue +0 -596
  340. package/packages/input/src/input-quick/index.vue +0 -137
  341. package/packages/input-number/index.js +0 -12
  342. package/packages/input-number/src/InputNumber.jsx +0 -11
  343. package/packages/keep-cache/KeepCache.js +0 -236
  344. package/packages/keep-cache/index.css +0 -3
  345. package/packages/keep-cache/index.js +0 -8
  346. package/packages/layout/index.js +0 -27
  347. package/packages/layout/src/Content.jsx +0 -11
  348. package/packages/layout/src/Footer.jsx +0 -11
  349. package/packages/layout/src/Header.jsx +0 -11
  350. package/packages/layout/src/Layout.jsx +0 -11
  351. package/packages/layout/src/Sider.jsx +0 -11
  352. package/packages/list/index.js +0 -21
  353. package/packages/list/src/Item.jsx +0 -11
  354. package/packages/list/src/ItemMeta.jsx +0 -11
  355. package/packages/list/src/List.jsx +0 -11
  356. package/packages/locale-provider/index.js +0 -12
  357. package/packages/locale-provider/src/LocaleProvider.jsx +0 -11
  358. package/packages/map/index.js +0 -10
  359. package/packages/map/src/Map.vue +0 -484
  360. package/packages/map/src/popup-map.vue +0 -53
  361. package/packages/mentions/index.js +0 -18
  362. package/packages/mentions/src/Mentions.jsx +0 -11
  363. package/packages/mentions/src/Option.jsx +0 -11
  364. package/packages/menu/index.js +0 -27
  365. package/packages/menu/src/Divider.jsx +0 -11
  366. package/packages/menu/src/Item.jsx +0 -11
  367. package/packages/menu/src/ItemGroup.jsx +0 -11
  368. package/packages/menu/src/Menu.jsx +0 -11
  369. package/packages/menu/src/SubMenu.jsx +0 -11
  370. package/packages/message/index.js +0 -8
  371. package/packages/modal/index.js +0 -10
  372. package/packages/modal/src/Modal.js +0 -7
  373. package/packages/multi-chat/chat/addConference.vue +0 -200
  374. package/packages/multi-chat/chat/addMembers.vue +0 -411
  375. package/packages/multi-chat/chat/advancedFilter.vue +0 -372
  376. package/packages/multi-chat/chat/audio.vue +0 -599
  377. package/packages/multi-chat/chat/calling.vue +0 -246
  378. package/packages/multi-chat/chat/chatFooter.vue +0 -1647
  379. package/packages/multi-chat/chat/chatHeader.vue +0 -493
  380. package/packages/multi-chat/chat/chatHistory.vue +0 -605
  381. package/packages/multi-chat/chat/chatMain.vue +0 -1490
  382. package/packages/multi-chat/chat/client/clientChat.vue +0 -731
  383. package/packages/multi-chat/chat/client/index.vue +0 -149
  384. package/packages/multi-chat/chat/delay.vue +0 -177
  385. package/packages/multi-chat/chat/evaluate.vue +0 -343
  386. package/packages/multi-chat/chat/index.vue +0 -2419
  387. package/packages/multi-chat/chat/messageRecord.vue +0 -324
  388. package/packages/multi-chat/chat/mixins/NoData.js +0 -20
  389. package/packages/multi-chat/chat/mixins/base.js +0 -97
  390. package/packages/multi-chat/chat/mixins/uniRTCAPI.js +0 -80
  391. package/packages/multi-chat/chat/mixins/viewerOptions.js +0 -67
  392. package/packages/multi-chat/chat/multiVideo.vue +0 -1426
  393. package/packages/multi-chat/chat/quickReply.vue +0 -439
  394. package/packages/multi-chat/chat/robot/index.vue +0 -312
  395. package/packages/multi-chat/chat/scrollList.vue +0 -1259
  396. package/packages/multi-chat/chat/video.vue +0 -404
  397. package/packages/multi-chat/chat/videoVoiceList.vue +0 -348
  398. package/packages/multi-chat/chat/voice.vue +0 -431
  399. package/packages/multi-chat/components/avatar.vue +0 -113
  400. package/packages/multi-chat/components/chat-tabs-header.vue +0 -251
  401. package/packages/multi-chat/components/classify-tabs.vue +0 -185
  402. package/packages/multi-chat/components/empty.vue +0 -24
  403. package/packages/multi-chat/components/modal-refuse-reason.vue +0 -112
  404. package/packages/multi-chat/components/modal-sip.vue +0 -160
  405. package/packages/multi-chat/components/modal-user-transfer.vue +0 -98
  406. package/packages/multi-chat/components/msg-describe.vue +0 -138
  407. package/packages/multi-chat/components/msg-picture.vue +0 -68
  408. package/packages/multi-chat/components/msg-prescription.vue +0 -205
  409. package/packages/multi-chat/components/read-record.vue +0 -133
  410. package/packages/multi-chat/components/read-status.vue +0 -34
  411. package/packages/multi-chat/components/user-status.vue +0 -198
  412. package/packages/multi-chat/components/vuecmf-dialog.vue +0 -323
  413. package/packages/multi-chat/img/OFF-LINE.png +0 -0
  414. package/packages/multi-chat/img/ON-LINE.png +0 -0
  415. package/packages/multi-chat/img/accept.png +0 -0
  416. package/packages/multi-chat/img/add-person.png +0 -0
  417. package/packages/multi-chat/img/add_prescription.png +0 -0
  418. package/packages/multi-chat/img/all-voice.png +0 -0
  419. package/packages/multi-chat/img/audio-new.png +0 -0
  420. package/packages/multi-chat/img/audio-play.gif +0 -0
  421. package/packages/multi-chat/img/audio.png +0 -0
  422. package/packages/multi-chat/img/base-info-active.png +0 -0
  423. package/packages/multi-chat/img/base-info.png +0 -0
  424. package/packages/multi-chat/img/busy_line.png +0 -0
  425. package/packages/multi-chat/img/call.png +0 -0
  426. package/packages/multi-chat/img/callin.png +0 -0
  427. package/packages/multi-chat/img/callin_cancel.png +0 -0
  428. package/packages/multi-chat/img/calling.png +0 -0
  429. package/packages/multi-chat/img/callout.png +0 -0
  430. package/packages/multi-chat/img/callout_cancel.png +0 -0
  431. package/packages/multi-chat/img/close.png +0 -0
  432. package/packages/multi-chat/img/close_video.png +0 -0
  433. package/packages/multi-chat/img/customer-service-active.png +0 -0
  434. package/packages/multi-chat/img/customer-service.png +0 -0
  435. package/packages/multi-chat/img/customer.png +0 -0
  436. package/packages/multi-chat/img/customer_staff.png +0 -0
  437. package/packages/multi-chat/img/default.png +0 -0
  438. package/packages/multi-chat/img/ellipsis.png +0 -0
  439. package/packages/multi-chat/img/end-voice.png +0 -0
  440. package/packages/multi-chat/img/event-active.png +0 -0
  441. package/packages/multi-chat/img/event.png +0 -0
  442. package/packages/multi-chat/img/exp.png +0 -0
  443. package/packages/multi-chat/img/full-sceen-close.png +0 -0
  444. package/packages/multi-chat/img/full-sceen.png +0 -0
  445. package/packages/multi-chat/img/icon_list.png +0 -0
  446. package/packages/multi-chat/img/icon_list_active.png +0 -0
  447. package/packages/multi-chat/img/icon_table.png +0 -0
  448. package/packages/multi-chat/img/icon_table_active.png +0 -0
  449. package/packages/multi-chat/img/join-video.png +0 -0
  450. package/packages/multi-chat/img/large.png +0 -0
  451. package/packages/multi-chat/img/left-wrapper.png +0 -0
  452. package/packages/multi-chat/img/left.png +0 -0
  453. package/packages/multi-chat/img/medical_record.png +0 -0
  454. package/packages/multi-chat/img/middle.png +0 -0
  455. package/packages/multi-chat/img/msgTip.mp3 +0 -0
  456. package/packages/multi-chat/img/multi-video.png +0 -0
  457. package/packages/multi-chat/img/multi-voice.png +0 -0
  458. package/packages/multi-chat/img/mute-audio.png +0 -0
  459. package/packages/multi-chat/img/muted-audio.png +0 -0
  460. package/packages/multi-chat/img/muted-screen.png +0 -0
  461. package/packages/multi-chat/img/muted-video.png +0 -0
  462. package/packages/multi-chat/img/no-all-voice.png +0 -0
  463. package/packages/multi-chat/img/no-data.png +0 -0
  464. package/packages/multi-chat/img/no-data2.png +0 -0
  465. package/packages/multi-chat/img/no-screen.png +0 -0
  466. package/packages/multi-chat/img/no-video.png +0 -0
  467. package/packages/multi-chat/img/no-voice.png +0 -0
  468. package/packages/multi-chat/img/no-voiced.png +0 -0
  469. package/packages/multi-chat/img/normal-screen.png +0 -0
  470. package/packages/multi-chat/img/normal-video.png +0 -0
  471. package/packages/multi-chat/img/over.png +0 -0
  472. package/packages/multi-chat/img/portrait.png +0 -0
  473. package/packages/multi-chat/img/prescription.png +0 -0
  474. package/packages/multi-chat/img/receive.png +0 -0
  475. package/packages/multi-chat/img/reject.png +0 -0
  476. package/packages/multi-chat/img/remove.png +0 -0
  477. package/packages/multi-chat/img/replay.png +0 -0
  478. package/packages/multi-chat/img/required.png +0 -0
  479. package/packages/multi-chat/img/screen.png +0 -0
  480. package/packages/multi-chat/img/send_prescription.png +0 -0
  481. package/packages/multi-chat/img/setting.png +0 -0
  482. package/packages/multi-chat/img/small.png +0 -0
  483. package/packages/multi-chat/img/sound.png +0 -0
  484. package/packages/multi-chat/img/sound_forbid.png +0 -0
  485. package/packages/multi-chat/img/start_video.png +0 -0
  486. package/packages/multi-chat/img/system_message.png +0 -0
  487. package/packages/multi-chat/img/to-session.png +0 -0
  488. package/packages/multi-chat/img/transfer.png +0 -0
  489. package/packages/multi-chat/img/transfer2.png +0 -0
  490. package/packages/multi-chat/img/video-accept.png +0 -0
  491. package/packages/multi-chat/img/video.png +0 -0
  492. package/packages/multi-chat/img/video_consult.png +0 -0
  493. package/packages/multi-chat/img/voice.png +0 -0
  494. package/packages/multi-chat/img/worktime-active.png +0 -0
  495. package/packages/multi-chat/img/worktime.png +0 -0
  496. package/packages/multi-chat/index.js +0 -7
  497. package/packages/multi-chat/setting/authority/index.vue +0 -156
  498. package/packages/multi-chat/setting/authority/roleSetting.vue +0 -204
  499. package/packages/multi-chat/setting/baseInfo/index.vue +0 -1343
  500. package/packages/multi-chat/setting/configuration/index.vue +0 -334
  501. package/packages/multi-chat/setting/customerService/batchSelect.vue +0 -403
  502. package/packages/multi-chat/setting/customerService/index.vue +0 -273
  503. package/packages/multi-chat/setting/event/edit/condition.vue +0 -128
  504. package/packages/multi-chat/setting/event/edit/index.vue +0 -437
  505. package/packages/multi-chat/setting/event/edit/notice.vue +0 -129
  506. package/packages/multi-chat/setting/event/edit/strategy.vue +0 -98
  507. package/packages/multi-chat/setting/event/index.vue +0 -249
  508. package/packages/multi-chat/setting/index.vue +0 -281
  509. package/packages/multi-chat/setting/page.vue +0 -14
  510. package/packages/multi-chat/setting/sessionList/index.vue +0 -412
  511. package/packages/multi-chat/setting/sessionList/messageRecord.vue +0 -372
  512. package/packages/multi-chat/setting/userConfig/index.vue +0 -124
  513. package/packages/multi-chat/setting/worktime/index.vue +0 -274
  514. package/packages/multi-chat/store/actions.js +0 -452
  515. package/packages/multi-chat/store/getters.js +0 -380
  516. package/packages/multi-chat/store/helper.js +0 -66
  517. package/packages/multi-chat/store/index.js +0 -50
  518. package/packages/multi-chat/store/mutation.js +0 -305
  519. package/packages/multi-chat/store/state.js +0 -120
  520. package/packages/multi-chat/style/emoji.css +0 -315
  521. package/packages/multi-chat/style/message.mixin.less +0 -38
  522. package/packages/multi-chat/utils/chatSock.js +0 -93
  523. package/packages/multi-chat/utils/compressImage.js +0 -115
  524. package/packages/multi-chat/utils/emoji.json +0 -68
  525. package/packages/multi-chat/utils/index.js +0 -259
  526. package/packages/multi-chat/utils/observer-scroll.js +0 -49
  527. package/packages/multi-chat/utils/panelsetting.js +0 -48
  528. package/packages/multi-chat/utils/rtc-client-multi.js +0 -397
  529. package/packages/multi-chat/utils/rtc-client.js +0 -469
  530. package/packages/multi-chat-client/index.js +0 -7
  531. package/packages/multi-chat-history/index.js +0 -7
  532. package/packages/multi-chat-record/index.js +0 -7
  533. package/packages/multi-chat-setting/index.js +0 -7
  534. package/packages/multi-chat-sip/index.js +0 -6
  535. package/packages/notification/index.js +0 -8
  536. package/packages/page-header/index.js +0 -12
  537. package/packages/page-header/src/PageHeader.jsx +0 -11
  538. package/packages/pagination/index.js +0 -12
  539. package/packages/pagination/src/Pagination.jsx +0 -11
  540. package/packages/popconfirm/index.js +0 -12
  541. package/packages/popconfirm/src/Popconfirm.jsx +0 -11
  542. package/packages/popover/index.js +0 -12
  543. package/packages/popover/src/Popover.jsx +0 -11
  544. package/packages/progress/index.js +0 -12
  545. package/packages/progress/src/Progress.jsx +0 -11
  546. package/packages/radio/index.js +0 -33
  547. package/packages/radio/src/Group.jsx +0 -11
  548. package/packages/radio/src/Radio.jsx +0 -11
  549. package/packages/radio/src/RadioButton.jsx +0 -11
  550. package/packages/radio/src/RadioImg/index.vue +0 -125
  551. package/packages/rate/index.js +0 -12
  552. package/packages/rate/src/Rate.jsx +0 -11
  553. package/packages/result/index.js +0 -12
  554. package/packages/result/src/Result.jsx +0 -11
  555. package/packages/row/index.js +0 -12
  556. package/packages/row/src/Row.jsx +0 -11
  557. package/packages/scale-container/index.js +0 -9
  558. package/packages/scale-container/src/ScaleContainer.vue +0 -202
  559. package/packages/scale-container/src/scale.png +0 -0
  560. package/packages/scale-view/NoData.vue +0 -81
  561. package/packages/scale-view/answerParse.vue +0 -133
  562. package/packages/scale-view/assets/img/failure.png +0 -0
  563. package/packages/scale-view/assets/img/no-permission.png +0 -0
  564. package/packages/scale-view/assets/img/nodata.png +0 -0
  565. package/packages/scale-view/assets/img/notfound.png +0 -0
  566. package/packages/scale-view/customList.vue +0 -801
  567. package/packages/scale-view/data.js +0 -80
  568. package/packages/scale-view/directive/drag-move.js +0 -132
  569. package/packages/scale-view/evaluateCountdown.vue +0 -157
  570. package/packages/scale-view/evaluatePage.vue +0 -203
  571. package/packages/scale-view/formitem/data.js +0 -3991
  572. package/packages/scale-view/formitem/index.js +0 -7
  573. package/packages/scale-view/formitem/r-address.vue +0 -245
  574. package/packages/scale-view/formitem/r-choice.vue +0 -755
  575. package/packages/scale-view/formitem/r-input.vue +0 -93
  576. package/packages/scale-view/formitem/r-prompt.vue +0 -52
  577. package/packages/scale-view/formitem/r-sign.vue +0 -218
  578. package/packages/scale-view/formitem/r-time.vue +0 -285
  579. package/packages/scale-view/formitem/r-upload-custom-list.vue +0 -242
  580. package/packages/scale-view/formitem/r-upload.vue +0 -321
  581. package/packages/scale-view/formitem/sign-com.vue +0 -316
  582. package/packages/scale-view/formitem/text-over-tooltip/TextOverTooltip.vue +0 -98
  583. package/packages/scale-view/index.js +0 -17
  584. package/packages/scale-view/mixin/NoData.js +0 -38
  585. package/packages/scale-view/mixin/addressVal.js +0 -156
  586. package/packages/scale-view/mixin/evaluate.js +0 -146
  587. package/packages/scale-view/mixin/index.js +0 -337
  588. package/packages/scale-view/mixin/judgeTypes.js +0 -267
  589. package/packages/scale-view/scaleView.vue +0 -2086
  590. package/packages/select/index.js +0 -30
  591. package/packages/select/src/CustomSelect/index.vue +0 -130
  592. package/packages/select/src/OptGroup.jsx +0 -11
  593. package/packages/select/src/Option.jsx +0 -11
  594. package/packages/select/src/PagerSelect/index.vue +0 -92
  595. package/packages/select/src/Select/Select.vue +0 -231
  596. package/packages/select/src/Select/index.js +0 -12
  597. package/packages/select/src/TableSelect/index.vue +0 -514
  598. package/packages/select-label/index.js +0 -14
  599. package/packages/select-label/label-classify.vue +0 -129
  600. package/packages/select-label/labelFormContent.vue +0 -787
  601. package/packages/select-label/select-label.vue +0 -597
  602. package/packages/select-person/index.js +0 -10
  603. package/packages/select-person/search-tree.vue +0 -373
  604. package/packages/select-person/select-person.vue +0 -1736
  605. package/packages/select-tag/index.js +0 -14
  606. package/packages/select-tag/label-classify.vue +0 -133
  607. package/packages/select-tag/labelFormContent.vue +0 -295
  608. package/packages/select-tag/select-label.vue +0 -274
  609. package/packages/shortcut-provider/index.js +0 -10
  610. package/packages/shortcut-provider/src/ShortcutProvider.vue +0 -33
  611. package/packages/shortcut-provider/src/constants/index.js +0 -4
  612. package/packages/shortcut-provider/src/hooks/index.js +0 -1
  613. package/packages/shortcut-provider/src/hooks/useShortcuts.js +0 -129
  614. package/packages/shortcut-provider/src/utils/index.js +0 -107
  615. package/packages/shortcut-setter/index.js +0 -12
  616. package/packages/shortcut-setter/src/ShortcutSetter.vue +0 -55
  617. package/packages/shortcut-setter/src/ShortcutSetterItem.vue +0 -97
  618. package/packages/shortcut-setter/src/utils/index.js +0 -63
  619. package/packages/skeleton/index.js +0 -12
  620. package/packages/skeleton/src/Skeleton.jsx +0 -11
  621. package/packages/slider/index.js +0 -12
  622. package/packages/slider/src/Slider.jsx +0 -11
  623. package/packages/slider-tree/hooks/useAsyncData.js +0 -53
  624. package/packages/slider-tree/index.js +0 -7
  625. package/packages/slider-tree/index.vue +0 -391
  626. package/packages/slider-tree/utils/index.js +0 -10
  627. package/packages/space/index.js +0 -12
  628. package/packages/space/src/Space.jsx +0 -11
  629. package/packages/spin/index.js +0 -12
  630. package/packages/spin/src/Spin.jsx +0 -11
  631. package/packages/statistic/index.js +0 -18
  632. package/packages/statistic/src/Countdown.jsx +0 -11
  633. package/packages/statistic/src/Statistic.jsx +0 -11
  634. package/packages/steps/index.js +0 -18
  635. package/packages/steps/src/Step.jsx +0 -11
  636. package/packages/steps/src/Steps.jsx +0 -11
  637. package/packages/switch/index.js +0 -12
  638. package/packages/switch/src/Switch.jsx +0 -11
  639. package/packages/table-filter/index.js +0 -27
  640. package/packages/table-filter/src/base-search-com/BaseSearch.vue +0 -2690
  641. package/packages/table-filter/src/classification/Classification-com.vue +0 -1765
  642. package/packages/table-filter/src/classification/search-class-name.vue +0 -266
  643. package/packages/table-filter/src/classification/search-professional-model.vue +0 -680
  644. package/packages/table-filter/src/components/TextOverTooltip.vue +0 -120
  645. package/packages/table-filter/src/components/age-com/index.vue +0 -205
  646. package/packages/table-filter/src/components/button-group/ButtonGroup.vue +0 -162
  647. package/packages/table-filter/src/components/button-icon/button-icon.js +0 -33
  648. package/packages/table-filter/src/components/button-icon/getBtnIcon.js +0 -34
  649. package/packages/table-filter/src/components/c-tree-select/tree-select.vue +0 -336
  650. package/packages/table-filter/src/components/checkbox-group/CheckboxGroup.vue +0 -53
  651. package/packages/table-filter/src/components/drop-button/drop-button.vue +0 -224
  652. package/packages/table-filter/src/components/drop-button/head-btn-icon.js +0 -33
  653. package/packages/table-filter/src/components/drop-view/drop-view.vue +0 -89
  654. package/packages/table-filter/src/components/multi-select/multi-select.vue +0 -242
  655. package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +0 -232
  656. package/packages/table-filter/src/components/range-age/index.vue +0 -171
  657. package/packages/table-filter/src/components/render-widget/components/CheckboxGroup.vue +0 -68
  658. package/packages/table-filter/src/components/render-widget/components/DateRangeQuick.vue +0 -216
  659. package/packages/table-filter/src/components/render-widget/components/Label.vue +0 -209
  660. package/packages/table-filter/src/components/render-widget/components/NumberRange.vue +0 -157
  661. package/packages/table-filter/src/components/render-widget/components/Select.vue +0 -62
  662. package/packages/table-filter/src/components/render-widget/components/SelectDynamic.vue +0 -287
  663. package/packages/table-filter/src/components/render-widget/components/SelectLabel.vue +0 -80
  664. package/packages/table-filter/src/components/render-widget/components/SelectTree.vue +0 -145
  665. package/packages/table-filter/src/components/render-widget/components/Text.vue +0 -58
  666. package/packages/table-filter/src/components/render-widget/components/index.js +0 -11
  667. package/packages/table-filter/src/components/render-widget/enums.js +0 -60
  668. package/packages/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +0 -282
  669. package/packages/table-filter/src/components/render-widget/index.vue +0 -150
  670. package/packages/table-filter/src/components/render-widget/mixins/dynamic-method.js +0 -185
  671. package/packages/table-filter/src/components/render-widget/mixins/label-method.js +0 -23
  672. package/packages/table-filter/src/components/render-widget/widgetCfgMaps.js +0 -354
  673. package/packages/table-filter/src/components/search-condition/SearchCondition.vue +0 -2016
  674. package/packages/table-filter/src/components/search-condition/fieldTypeList.js +0 -169
  675. package/packages/table-filter/src/components/search-filter/SearchFilter.vue +0 -280
  676. package/packages/table-filter/src/components/search-modal/set-classification.vue +0 -340
  677. package/packages/table-filter/src/components/table-modal/TableModal.vue +0 -477
  678. package/packages/table-filter/src/const/dataOptions.js +0 -43
  679. package/packages/table-filter/src/const/index.js +0 -1
  680. package/packages/table-filter/src/index.vue +0 -584
  681. package/packages/table-filter/src/mixins/mixins.js +0 -870
  682. package/packages/table-filter/src/mixins/out-quick-method.js +0 -123
  683. package/packages/table-filter/src/mixins/printNew.js +0 -190
  684. package/packages/table-filter/src/mixins/renderWidget.js +0 -122
  685. package/packages/table-filter/src/mixins/tableSearchCon.js +0 -128
  686. package/packages/table-filter/src/mixins/wordBookutils.js +0 -130
  687. package/packages/table-filter/src/quick-search/QuickSearch.vue +0 -2272
  688. package/packages/tabs/index.js +0 -18
  689. package/packages/tabs/src/TabPane.jsx +0 -11
  690. package/packages/tabs/src/Tabs.jsx +0 -11
  691. package/packages/tag/index.js +0 -21
  692. package/packages/tag/src/CheckableTag.jsx +0 -11
  693. package/packages/tag/src/Tag.jsx +0 -11
  694. package/packages/tag/src/TagGroup.vue +0 -622
  695. package/packages/time-picker/index.js +0 -12
  696. package/packages/time-picker/src/TimePicker.jsx +0 -11
  697. package/packages/timeline/index.js +0 -14
  698. package/packages/timeline/src/Item.jsx +0 -11
  699. package/packages/timeline/src/Timeline.jsx +0 -11
  700. package/packages/tooltip/index.js +0 -12
  701. package/packages/tooltip/src/Tooltip.jsx +0 -11
  702. package/packages/transfer/index.js +0 -12
  703. package/packages/transfer/src/Transfer.jsx +0 -11
  704. package/packages/tree/index.js +0 -18
  705. package/packages/tree/src/Tree.jsx +0 -11
  706. package/packages/tree/src/TreeNode.jsx +0 -11
  707. package/packages/tree-select/index.js +0 -18
  708. package/packages/tree-select/src/TreeNode.jsx +0 -11
  709. package/packages/tree-select/src/TreeSelect.jsx +0 -11
  710. package/packages/upload/chunk-upload/chunk-upload-new.vue +0 -1006
  711. package/packages/upload/chunk-upload/vod-chunk-upload.vue +0 -757
  712. package/packages/upload/chunk-upload/vod-upload-modal.vue +0 -100
  713. package/packages/upload/index.js +0 -12
  714. package/packages/upload/src/Upload.jsx +0 -11
  715. package/packages/verification-code/SlideVerify.vue +0 -306
  716. package/packages/verification-code/index.js +0 -17
  717. package/packages/verification-code/verification-code.vue +0 -147
  718. package/src/assets/img/nodata.png +0 -0
  719. package/src/assets/img/success.png +0 -0
  720. package/src/assets/img/video.png +0 -0
  721. package/src/assets/img/video_default_cover.png +0 -0
  722. package/src/assets/img/video_hover.png +0 -0
  723. package/src/assets/img/video_play_hover.png +0 -0
  724. package/src/component/player-vod/index.vue +0 -57
  725. package/src/component/player-vod/player.vue +0 -192
  726. package/src/component/player-vod/video-list.vue +0 -262
  727. package/src/component/player-vod/video-modal.vue +0 -128
  728. package/src/component/select-options/index.vue +0 -430
  729. package/src/component/select-pages/index.vue +0 -95
  730. package/src/component/svg/index.vue +0 -59
  731. package/src/core/create.js +0 -6
  732. package/src/core/event.js +0 -23
  733. package/src/core/table-methods.js +0 -447
  734. package/src/directive/flexibleResize.js +0 -162
  735. package/src/directive/preventReClick.js +0 -12
  736. package/src/directive/scroll.js +0 -230
  737. package/src/global/variable.js +0 -2
  738. package/src/style/normalize.css +0 -424
  739. package/src/style/style.less +0 -49
  740. package/src/utils/UniRTCv2.js +0 -627
  741. package/src/utils/chatFetch.js +0 -61
  742. package/src/utils/clickoutside.js +0 -75
  743. package/src/utils/crypto.js +0 -25
  744. package/src/utils/index.js +0 -103
  745. package/src/utils/kty-sdk.js +0 -582
  746. package/src/utils/kty.min-1.0.0.js +0 -14378
  747. package/src/utils/sip-device.js +0 -79
  748. package/src/utils/time-domain.js +0 -270
  749. package/src/utils/trtc.js +0 -1
  750. package/src/utils/utils-map.js +0 -485
  751. package/src/utils/vexutils.js +0 -836
@@ -1,1476 +0,0 @@
1
- <template>
2
- <div class="newprint-button-outer" ref='newprintButtonOuterRef' v-clickoutside="handleAllClickOutside">
3
- <!-- 外部按钮集合 -->
4
- <a-button-group>
5
- <a-dropdown
6
- :getPopupContainer="getPopupContainerNode"
7
- v-for="outer in outerPrintItems"
8
- :key="outer.key"
9
- class="c-dropdown"
10
- :trigger="dropOuter"
11
- >
12
- <a-button
13
- class="operation-li"
14
- style="display: flex;align-items: center;"
15
- :disabled="!printParams[outer.templateCode]"
16
- :loading="outer.isLoading"
17
- @click="handleOneTypePrint(outer.templateCode, outer.templateId, outer.key, true)"
18
- >
19
- <a-icon type="printer" v-if="!outer.isLoading"/>
20
- <span class="label" >{{ outer.label }}</span>
21
- </a-button>
22
- <template #overlay>
23
- <a-menu>
24
- <a-menu-item
25
- class="operation-li"
26
- v-for="operation in operations"
27
- :key="operation.key"
28
- @click="handleSelect(operation.key, outer)"
29
- >
30
- <span class="label" >{{ operation.label }}</span>
31
- </a-menu-item>
32
- </a-menu>
33
- </template>
34
- </a-dropdown>
35
- </a-button-group>
36
-
37
- <!-- 外显设置按钮 -->
38
- <a-dropdown
39
- v-if="outerPrintItems.length > 0 && outerPrintItems.length == options.length && isShowOutSettingBtn"
40
- overlayClassName="newprint-button-menu"
41
- :getPopupContainer="getPopupContainerNode"
42
- id="dropdown-outer-setting-btn"
43
- :visible="outSettingVisible"
44
- :trigger="dropOperation"
45
- >
46
- <a-button @click="toggleSettingVisible('outSettingVisible')">
47
- 外显设置
48
- <a-icon type="setting" />
49
- </a-button>
50
- <a-menu slot="overlay">
51
- <a-menu-item
52
- v-for="sItem in options"
53
- :key="sItem.key"
54
- class="dropdown-between operation-li"
55
- >
56
- <span class="label bold">{{ sItem.label }}</span>
57
- <a-checkbox :checked="sItem.selected" @change="onSettingChange(sItem)">外显</a-checkbox>
58
- </a-menu-item>
59
- <a-menu-item class="print-divider"><a-divider /></a-menu-item>
60
- <a-menu-item class="dropdown-between">
61
- <a-button type="primary" size="small" @click="savePrintOutSetting('outSettingVisible')">保存</a-button>
62
- <a-checkbox v-if="options && options.length > 1" :checked="isSelectedAll" @change="onSelectedAllChange">全选</a-checkbox>
63
- </a-menu-item>
64
- </a-menu>
65
- </a-dropdown>
66
-
67
- <!-- 打印全部按钮 -->
68
- <a-button-group v-else>
69
- <a-button style="display: flex;align-items: center;" :loading="this.spinning" @click.stop="printAllButtonClick">
70
- <a-icon type="printer" v-if="!this.spinning"/>
71
- <!-- 如果允许打印全部则展示打印全部,否则展示传入的动态按钮名称 -->
72
- {{ isShowPrintAllBtn ? '打印全部' : btnText }}
73
- </a-button>
74
- <a-button
75
- v-if="innerPrintItems.length == 0"
76
- @click.stop="handleClickBtn"><a-icon type="down"/></a-button>
77
- <a-dropdown v-else :visible="visible" :getPopupContainer="getPopupContainerNode" overlayClassName="newprint-button-menu" :trigger="dropOperation">
78
- <a-button
79
- @click.stop="handleClickBtn"><a-icon type="down"/></a-button>
80
- <a-menu slot="overlay">
81
- <a-menu-item
82
- class="dropdown-between operation-li"
83
- v-for="option in innerPrintItems"
84
- :key="option.key"
85
- >
86
- <span class="label bold" :class="!printParams[option.templateCode] ? 'isDisabled' : ''" @click="handleOneTypePrint(option.templateCode, option.templateId, option.key, true)"><a-icon type="loading" v-if="option.isLoading" style="margin-right: 6px;"/>{{ option.label }} </span>
87
- <a-dropdown :getPopupContainer="getPopupContainerNode" :trigger="dropOperation">
88
- <!-- 点击唤起操作弹窗 -->
89
- <span class="operation-icon" style="margin-left: 8px;"><a-icon type="right" /></span>
90
-
91
- <a-menu slot="overlay">
92
- <a-menu-item
93
- class="operation-li"
94
- v-for="operation in operations"
95
- :key="operation.key"
96
- @click="handleSelect(operation.key, option)"
97
- >
98
- <span class="label">{{ operation.label }}</span>
99
- </a-menu-item>
100
- </a-menu>
101
- </a-dropdown>
102
- </a-menu-item>
103
- <!-- 分割线 -->
104
- <a-menu-item v-if="isShowOutSettingBtn" class="print-divider"><a-divider /></a-menu-item>
105
- <!-- 外显设置 -->
106
- <a-menu-item class="operation-li" v-if="isShowOutSettingBtn">
107
- <a-dropdown :visible="innerSettingVisible" :trigger="dropOperation" :getPopupContainer="getPopupContainerNode" overlayClassName="newprint-button-menu">
108
- <div style="width: 100%;display: flex;justify-content: space-between;align-items: center;" @click="toggleSettingVisible('innerSettingVisible')">
109
- <span class="label bold" style="margin-right: 12px;">外显设置 </span>
110
- <a-icon type="setting" :class='outerPrintItems.length > 0 ? "hasOuterItem":""'/>
111
- </div>
112
- <a-menu slot="overlay">
113
- <a-menu-item
114
- class="dropdown-between operation-li"
115
- v-for="sItem in options"
116
- :key="sItem.key"
117
- >
118
- <span class="label bold"> {{ sItem.label }} </span>
119
- <a-checkbox :checked="sItem.selected" @change="onSettingChange(sItem)">外显</a-checkbox>
120
- </a-menu-item>
121
- <!-- 分割线 -->
122
- <a-menu-item class="print-divider"><a-divider /></a-menu-item>
123
- <a-menu-item class="dropdown-between">
124
- <a-button type="primary" size="small" @click="savePrintOutSetting('innerSettingVisible')">保存</a-button>
125
- <a-checkbox v-if="options && options.length > 1" :checked="isSelectedAll" @change="onSelectedAllChange">全选</a-checkbox>
126
- </a-menu-item>
127
- </a-menu>
128
- </a-dropdown>
129
- </a-menu-item>
130
- </a-menu>
131
- </a-dropdown>
132
- </a-button-group>
133
-
134
-
135
- <IdentityVerification
136
- :printConfig="printConfig"
137
- :baseUrl="baseUrl"
138
- :verifyUserUrl="verifyUserUrl"
139
- :visible.sync="identityVerification.visible"
140
- :identityVerificationTitle="identityVerificationTitle"
141
- :authorizationKey="authorizationKey"
142
- @success="verifiySuccess"
143
- ></IdentityVerification>
144
- </div>
145
- </template>
146
- <script>
147
- /**
148
- * @author ruanlin
149
- * @desc 全继承antd按钮组件,后期再扩展
150
- * @time 2021-06-08
151
- */
152
-
153
- let httpFn = null;
154
- import Print from './js/print.es.min';
155
- import IdentityVerification from './components/IdentityVerification';
156
- import Clickoutside from '@/utils/clickoutside';
157
- import Vue from 'vue';
158
- import { Button, Dropdown, Menu, Icon, Divider, Checkbox, Popover } from 'ant-design-vue';
159
- import create from '@/core/create';
160
- import axios from 'axios';
161
- import moment from 'moment';
162
- import vexutils from '@/utils/vexutils';
163
-
164
- const downloadPdfCode = 'RY7.2.21.1.M2.G94181E';
165
- const formatEditTextCode = 'RY7.2.21.1.M2.G33633A';
166
- export default create({
167
- name: 'button-print',
168
- components: {
169
- IdentityVerification
170
- },
171
- directives: { Clickoutside },
172
- props: {
173
- baseUrl: {
174
- type: String
175
- },
176
- /* */
177
- btnText: {
178
- type: String,
179
- default: '打印'
180
- },
181
- printText: {
182
- type: String,
183
- default: '直接打印'
184
- },
185
- previewText: {
186
- type: String,
187
- default: '打印预览'
188
- },
189
- pdfLoadText: {
190
- type: String,
191
- default: '下载pdf'
192
- },
193
- formatEditText: {
194
- type: String,
195
- default: '格式编辑'
196
- },
197
- identityVerificationTitle: {
198
- type: String,
199
- default: '打印服务身份校验'
200
- },
201
- /* */
202
- authorizationKey: {
203
- type: String,
204
- require: true
205
- },
206
- templateNumber: {
207
- type: [Number, String],
208
- require: true
209
- },
210
- /* 格式化打印参数,需的原始数据 */
211
- params: {
212
- type: Array
213
- },
214
- hisParams: {
215
- type: Object
216
- },
217
- /* */
218
- prevFn: {
219
- type: Function,
220
- default() {
221
- return Promise.resolve();
222
- }
223
- },
224
- /** */
225
- verifyUserUrl: {
226
- type: String,
227
- default: '/verifyUser'
228
- },
229
- /** */
230
- getPrintFormatByNumberUrl: {
231
- type: String,
232
- default: '/getPrintFormatByNumber'
233
- },
234
- /** */
235
- getTemplateParamsUrl: {
236
- type: String,
237
- default: '/getTemplateParams'
238
- },
239
- /* 打印策略,默认多条打印 */
240
- strategy: {
241
- type: String,
242
- default: 'MULTI'
243
- },
244
- printConfig: {
245
- type: Object,
246
- default: () => ({})
247
- },
248
- // 1 为his老版,2 为新版 3为his更老版本
249
- versionType: { type: [Number, String], default: '2' },
250
- // 用于获取用户信息的token
251
- token: {
252
- type: String,
253
- default: ''
254
- },
255
- // 打印弹窗设置,1弹0不弹,默认不弹
256
- printdlgshow: {
257
- type: [String, Number],
258
- default: '0'
259
- },
260
- // 没有模板提示
261
- noformatTips: {
262
- type: String,
263
- default: ''
264
- },
265
-
266
- getOnceParamsAfter: {
267
- type: Function
268
- },
269
-
270
- getPrintParamsAfter: {
271
- type: Function
272
- },
273
- // 隐藏默认按钮配置。printText: 直接打印;previewText: 打印预览;downloadPdf:下载pdf;formatEditText:格式编辑。示例:hideButtons = ['formatEditText']
274
- hideButtons: {
275
- type: Array,
276
- default: () => []
277
- },
278
- // 新版打印配置(新)
279
- newPrintSetting: {
280
- type: Object,
281
- default: () => ({
282
- // 是否显示打印全部
283
- isShowPrintAll: true,
284
- // 是否展示外显设置
285
- isShowOutSetting: true,
286
- // 打印自定义属性
287
- customProps: {},
288
- // 外显打印(formatId)值集合,用于初始化展示外显按钮
289
- outerPrintKeys: [],
290
- // 默认需要打印的格式(formatId)
291
- defaultFormatId: ''
292
- })
293
- },
294
- // 获取模板数据(新)
295
- printFormatByNumberData: {
296
- type: Object,
297
- default: () => (null)
298
- }
299
- },
300
- computed: {
301
- currentFormatItem() {
302
- if (!this.currentFormatId) return {};
303
- let id = this.currentFormatId;
304
- return this.formatList.find(item => item.id === id);
305
- },
306
- formatTitle() {
307
- return this.currentFormatItem?.name || '格式选择';
308
- },
309
- printExtraParams() {
310
- return this?.printConfig?.printExtraParams || {};
311
- },
312
- queryParams() {
313
- return {
314
- formatId: this.currentFormatId,
315
- templateId: this.getTemplateIdByFormatId(this.currentFormatId)
316
- };
317
- },
318
- // 是否展示全部打印按钮
319
- isShowPrintAllBtn() {
320
- return this.newPrintSetting?.isShowPrintAll;
321
- },
322
- // 是否展示外显设置
323
- isShowOutSettingBtn() {
324
- return this.newPrintSetting?.isShowOutSetting;
325
- },
326
- // 打印自定义属性
327
- printCustomProps() {
328
- return this.newPrintSetting?.customProps || {};
329
- },
330
- // 默认打印的formatId
331
- defaultPrintFormatId() {
332
- let dFormatId = this.newPrintSetting?.defaultFormatId || ''
333
- // 如果在内显中没有找到对应项,则返回空
334
- const isFindInnerItem = this.innerPrintItems.find(item => item.key == dFormatId)
335
- if (!isFindInnerItem) {
336
- dFormatId = '';
337
- }
338
- // 如果为空时,再去看当前下拉项中是否只有一项
339
- if (!dFormatId) {
340
- if (this.innerPrintItems.length == 1) {
341
- return this.innerPrintItems[0]?.key;
342
- }
343
- return '';
344
- }
345
- return dFormatId;
346
- },
347
- isSelectedAll() {
348
- return this.options.every(option => option.selected);
349
- },
350
- // 设置默认format的标题
351
- // defaultFormatTitle() {
352
- // const curFormat = this.innerPrintItems.find(option => option.key == this.defaultPrintFormatId);
353
- // if (curFormat) {
354
- // return `打印${curFormat.label}`;
355
- // }
356
- // // 如果innerPrintItems长度只有一项,则默认选中它
357
- // if (this.innerPrintItems.length == 1) {
358
- // return `打印${this.innerPrintItems[0].label}`;
359
- // }
360
- // return ''
361
- // },
362
- },
363
- data() {
364
- return {
365
- spinning: false,
366
- visible: false,
367
- // 内部设置弹窗的展示状态
368
- innerSettingVisible: false,
369
- // 外部设置弹窗展示状态
370
- outSettingVisible: false,
371
- formatList: [],
372
- templateParams: {},
373
- // 打印参数汇总
374
- printParams: [],
375
- // 原始参数汇总
376
- originParams: [],
377
- currentFormatId: '',
378
- /* */
379
- identityVerification: {
380
- visible: false
381
- },
382
- isInited: false,
383
- watchPrintParamsReformatFn: null,
384
- spinTimer: null,
385
- printInstance: null,
386
- dropOperation: ['click'],
387
- dropOuter: ['hover'],
388
- // 内显打印项
389
- innerPrintItems: [],
390
- // 外显打印项
391
- outerPrintItems: [],
392
- // 下拉数据
393
- options: [],
394
- // 操作按钮集合
395
- operations: [
396
- {
397
- label: this.previewText, // 打印预览
398
- key: 'previewText'
399
- },
400
- {
401
- label: this.pdfLoadText, // 下载pdf
402
- key: 'downloadPdf'
403
- },
404
- {
405
- label: this.formatEditText, // 格式编辑
406
- key: 'formatEditText'
407
- },
408
- {
409
- label: '重置打印机', // 重置打印机
410
- key: 'resetPrinter'
411
- },
412
- ],
413
- // 当前打印参数列表
414
- curPrintParamList: [],
415
- // 当前是否为点击单个打印
416
- isClickSinglePrint: false
417
- }
418
- },
419
- beforeCreate() {
420
- Vue.use(Button)
421
- .use(Dropdown)
422
- .use(Menu)
423
- .use(Icon)
424
- .use(Divider)
425
- .use(Checkbox)
426
- .use(Popover)
427
- },
428
- mounted() {
429
- this.isInited = false;
430
- },
431
- beforeDestroy() {
432
- // 创建Print实例的时候会在webview中注册一个事件, 需要调用printInstance.destroy()手动清除
433
- this.printInstance?.destroy?.();
434
- this.printInstance = null;
435
- },
436
- watch: {
437
- // 监听变化, 重新格式化printParams
438
- params: {
439
- deep: true,
440
- immediate: true,
441
- handler(val) {
442
- // if (!val?.length) return false;
443
- const keys = Object.keys(this.templateParams);
444
- if (keys?.length > 0) {
445
- this.reformatPrintParams();
446
- }
447
- }
448
- },
449
- newPrintSetting: {
450
- immediate: true,
451
- async handler(val) {
452
- const keys = val?.outerPrintKeys || [];
453
- const defFormatId = val?.defaultFormatId || '';
454
- // if (keys.length > 0 || defFormatId) {}
455
- // 解决innerPrintItems只有一项的时候也要默认选中的问题,初始化执行一次即可
456
- await this.handleClickBtn(false, true);
457
- }
458
- }
459
- },
460
- methods: {
461
- getPopupContainerNode() {
462
- // const node = document.getElementById('newprint-button-outer');
463
- return this.$refs.newprintButtonOuterRef;
464
- },
465
- // 重置所有的弹窗
466
- handleAllClickOutside() {
467
- this.outSettingVisible = this.innerSettingVisible = this.visible = false;
468
- },
469
- // 外显勾选
470
- onSettingChange(sItem) {
471
- sItem.selected = !sItem.selected;
472
- },
473
- // 勾选(取消勾选)全部
474
- onSelectedAllChange(e) {
475
- const isChecked = e.target.checked;
476
- this.options.forEach(option => {
477
- option.selected = isChecked;
478
- })
479
- },
480
- async printAllButtonClick() {
481
- // 如果显示打印全部按钮,直接打印全部;否则如果配置了默认格式,则打印默认格式,否则直接下拉
482
- this.isShowPrintAllBtn ? await this.directPrint() : this.defaultPrintFormatId ? await this.directDefaultFormatPrint(this.defaultPrintFormatId) : await this.handleClickBtn();
483
- },
484
- // 打印全部
485
- async directPrint() {
486
- await this.handleClickBtn(false);
487
- this.handleClickPrintAll();
488
- },
489
- // 打印全部
490
- handleClickPrintAll() {
491
- const templateNumbers = Object.keys(this.printParams);
492
- this.isClickSinglePrint = false;
493
- const originParamsClone = this.originParams;
494
- for (let i = 0; i < templateNumbers.length; i++) {
495
- const templateCode = templateNumbers[i];
496
- const tmpParam = this.printParams[templateCode];
497
- const printToParam = originParamsClone[templateCode] || [];
498
- // 一个templateCode可能会对应多个类型
499
- const formatTypeList = this.formatList.filter((format) => format.number == templateCode);
500
- if (formatTypeList && formatTypeList.length > 0) {
501
- formatTypeList.forEach(format => {
502
- this.currentFormatId = format.id;
503
- this.handleClickPrint(tmpParam, format.number, format.templateId, format.id, printToParam, true);
504
- })
505
- }
506
- }
507
- },
508
- // 打印默认模板格式
509
- async directDefaultFormatPrint(defaultFormatId) {
510
- await this.handleClickBtn(false);
511
- const curFormat = this.innerPrintItems.find(option => option.key == defaultFormatId);
512
- if (curFormat) {
513
- this.handleOneTypePrint(curFormat.templateCode, curFormat.templateId, curFormat.key, false);
514
- }
515
- },
516
- // 点击某类型打印
517
- handleOneTypePrint(templateCode, templateId, formatId, isSingleClick) {
518
- const tmpParam = this.printParams[templateCode];
519
- // 当前模板下没有传入打印的数据
520
- if (!tmpParam) return;
521
- this.isClickSinglePrint = isSingleClick;
522
- this.currentFormatId = formatId;
523
- const printToParam = this.originParams[templateCode] || [];
524
- this.handleClickPrint(tmpParam, templateCode, templateId, formatId, printToParam);
525
- },
526
- toggleSettingVisible(key) {
527
- this[key] = !this[key];
528
- },
529
- // 修改设置
530
- savePrintOutSetting(key) {
531
- this.visible = false;
532
- this[key] = false;
533
- this.innerPrintItems = this.options.filter(option => !option.selected);
534
- this.outerPrintItems = this.options.filter(option => option.selected);
535
- this.$emit('saveOuterPrint', this.outerPrintItems);
536
- },
537
- handleSelect(type, { templateCode, templateId, key }) {
538
- const tmpParam = this.printParams[templateCode];
539
- // 当前模板下没有传入打印的数据
540
- if (!tmpParam) return;
541
- this.isClickSinglePrint = true;
542
- this.currentFormatId = key;
543
- switch (type) {
544
- // 打印预览
545
- case 'previewText':
546
- this.handleClickPreview(tmpParam, templateCode, templateId, key);
547
- break;
548
- // 格式编辑
549
- case 'formatEditText':
550
- this.handleClickEdit(tmpParam, templateCode, templateId, key);
551
- break;
552
- // 下载pdf
553
- case 'downloadPdf':
554
- this.handleClickPdf(tmpParam, templateCode, templateId, key);
555
- break;
556
- // 重置打印机
557
- case 'resetPrinter':
558
- this.handleResetPrinter(tmpParam, templateCode, templateId, key);
559
- break;
560
- default:
561
- break;
562
- }
563
- },
564
- // 重置打印机
565
- async handleResetPrinter(curPrintParamList=[], templateCode, templateId, formatId) {
566
- if (this.getCurrentLoading()) return;
567
- this.toggleExpandLoading(true, formatId);
568
- const data = await this.printInstance.resetPrinter(formatId);
569
- this.toggleExpandLoading(false);
570
- if (data?.result == 'success') {
571
- this.$message.success(data.message || '重置打印机成功');
572
- return;
573
- }
574
- this.$message.warning('重置打印机失败');
575
- },
576
- /* visible为true时,展示下拉 */
577
- async handleClickBtn(visible = true, isNoPopup = false) {
578
- if (!this.visible) {
579
- let result = await this.init(isNoPopup);
580
- if (!result) return false;
581
- }
582
- if (visible) {
583
- this.visible = !this.visible;
584
- }
585
- },
586
- /* isNoPopup:是否需要弹出获取打印格式失败,请联系管理员的提示 */
587
- async init(isNoPopup = false) {
588
- if (this.isInited) return true;
589
- this.isInited = true;
590
-
591
- this.setTimeoutSpin();
592
-
593
- this.instantiatePrintSDK();
594
- let config = {
595
- withCredentials: false,
596
- timeout: 5000
597
- };
598
- let printUrlPrefix = this?.printConfig?.printUrlPrefix;
599
- let customCofing = this?.printConfig?.customCofing || {};
600
- let cCofing = this.getCustomCofing(customCofing);
601
- if (axios !== this.axios && printUrlPrefix) {
602
- config.baseURL = printUrlPrefix;
603
- }
604
- httpFn = axios.create({
605
- ...config,
606
- ...cCofing
607
- });
608
- let formatListResult = null;
609
- if (this.printFormatByNumberData) {
610
- formatListResult = this.printFormatByNumberData;
611
- } else {
612
- formatListResult = await this.queryFormatList();
613
- }
614
-
615
- // 获取模板参数接口
616
- if (!formatListResult) {
617
- this.isInited = false;
618
- this.$message.error('获取模板参数失败,请联系管理员');
619
- return false
620
- }
621
-
622
- if (!isNoPopup && (!formatListResult?.obj || formatListResult?.obj?.length == 0)) {
623
- this.options = [];
624
- this.$message.error(this.noformatTips || '缺少打印格式参数配置,请联系管理员!');
625
- return this.requestError();
626
- }
627
-
628
- if (this.versionType == 1 || this.versionType == 3) {
629
- this.initHIS(formatListResult);
630
- } else {
631
- await this.initCRM(formatListResult, isNoPopup);
632
- }
633
-
634
- this.isInited = false;
635
- this.setLoaded();
636
-
637
- return true;
638
- },
639
- // 设置基础数据
640
- setOptions() {
641
- this.options = [];
642
- const children = this.formatList.map(v => {
643
- return {
644
- templateCode: v.number,
645
- templateId: v.templateId,
646
- label: v.name,
647
- key: v.id,
648
- selected: false,
649
- isLoading: false
650
- };
651
- });
652
- this.options.unshift(...children);
653
-
654
- // 自动设置外显的数据
655
- if (this.newPrintSetting?.outerPrintKeys?.length > 0) {
656
- this.options.forEach(option => {
657
- if (this.newPrintSetting?.outerPrintKeys.includes(option.key)) {
658
- option.selected = true;
659
- }
660
- })
661
- this.outerPrintItems = this.options.filter(option => option.selected);
662
- }
663
-
664
- this.innerPrintItems = this.options.filter(option => !option.selected);
665
-
666
-
667
- // 1、通过业务传入的参数hideButtons隐藏按钮
668
- if (this.hideButtons.length > 0) {
669
- this.operations = this.operations.filter(operation => !this.hideButtons.includes(operation.key));
670
- }
671
-
672
- // 2、通过全局缓存portal隐藏按钮
673
- const portalStr = sessionStorage.getItem('portal');
674
- if (portalStr) {
675
- const portal = JSON.parse(portalStr);
676
- const limitObj = portal?.user?.currentRoleResourceObj || {};
677
- const limitList = Object.keys(limitObj);
678
- console.log('limitList>>>', limitList);
679
-
680
- // 下载pdf全局控制
681
- if (!limitList.includes(downloadPdfCode)) {
682
- this.operations = this.operations.filter(option => option.key != 'downloadPdf');
683
- }
684
- // 格式编辑按钮全局控制
685
- if (!limitList.includes(formatEditTextCode)) {
686
- this.operations = this.operations.filter(option => option.key != 'formatEditText');
687
- }
688
- }
689
- },
690
- initHIS(formatListResult) {
691
- this.formatList = formatListResult ? formatListResult.list.filter(item => item.printmark == 1) : [];
692
- this.currentFormatId = this.getDefaultFormatId(this.formatList, 'printmark');
693
- this.templateParams = this.formatList[0] || {};
694
- },
695
- async initCRM(formatListResult, isNoPopup) {
696
- this.formatList = formatListResult ? this.formatFormatList(formatListResult.obj) : [];
697
- // this.currentFormatId = this.getDefaultFormatId(this.formatList, 'defaultFlag');
698
-
699
- if (!isNoPopup && this.formatList.length == 0) {
700
- this.options = [];
701
- this.$message.error(this.noformatTips || '缺少打印格式参数配置,请联系管理员!');
702
- return this.requestError();
703
- }
704
- // if (!this.currentFormatId) {
705
- // this.$message.error(this.noformatTips || '获取打印格式失败,请联系管理员!');
706
- // return this.requestError();
707
- // }
708
- // if (!this.currentFormatId) {
709
- // this.requestError();
710
- // return;
711
- // }
712
- // 如果第一遍已经请求到格式数据,则不需要再拼接数据(防止让已勾选的外显selected重置)
713
- if (this.options.length > 0) {
714
- return;
715
- }
716
- this.setOptions();
717
-
718
- // this.templateParams = await this.queryTemplateParams();
719
- this.templateParams = await this.mergeTemplateList(formatListResult.obj);
720
-
721
- // if (templateParamsResult) {
722
- // this.templateParams = templateParamsResult;
723
- // } else {
724
- // return this.requestError();
725
- // }
726
-
727
- // this.printParams = this.formatParams(this.templateParams, this.params);
728
- this.printParams = this.formatSomeTypeParams(this.templateParams, this.params);
729
- this.originParams = this.formatSomeOriginParams(this.templateParams, this.params);
730
- },
731
- formatSomeTypeParams(templateParams=[], params= []) {
732
- let mergeParams = {};
733
- params = params ? params : [];
734
- params.forEach(paramObj => {
735
- mergeParams = Object.assign({}, this.findTemplateAndInsertData(mergeParams, paramObj, templateParams));
736
- });
737
- return mergeParams;
738
- },
739
- // 格式化原始params映射值
740
- formatSomeOriginParams(templateParams=[], params=[]) {
741
- let mergeOriginParams = {};
742
- params = params ? params : [];
743
- params.forEach(paramObj => {
744
- mergeOriginParams = Object.assign({}, this.findTemplateAndInsertParams(mergeOriginParams, paramObj, templateParams));
745
- });
746
- return mergeOriginParams;
747
- },
748
- // 查找模板并插入数据
749
- findTemplateAndInsertData(mergeData, paramItem, templateParams) {
750
- // 判断当前数据有没有指定模板
751
- // 1. 有模板,则插入数据
752
- if (paramItem.templateNumbers) {
753
- for (let i = 0; i < paramItem.templateNumbers.length; i++) {
754
- const tempNumber = paramItem.templateNumbers[i];
755
- const templateObj = templateParams[tempNumber];
756
- if (!templateObj) {
757
- this.$message.error(`勾选数据中模板为${tempNumber}没有匹配的格式`);
758
- return mergeData;
759
- }
760
- if (!mergeData[tempNumber]) {
761
- mergeData[tempNumber] = [];
762
- }
763
- mergeData[tempNumber].push(this.formatItemParam(templateObj, paramItem));
764
- }
765
- return mergeData;
766
- }
767
- // 2. 将当前数据循环模板参数
768
- const templateParamKeys = Object.keys(templateParams);
769
- for (let i = 0; i < templateParamKeys.length; i++) {
770
- const tempNumber = templateParamKeys[i];
771
- const templateObj = templateParams[tempNumber];
772
- if (!templateObj) {
773
- this.$message.error(`勾选数据中模板为${tempNumber}没有匹配的格式`);
774
- return mergeData;
775
- }
776
- if (!mergeData[tempNumber]) {
777
- mergeData[tempNumber] = [];
778
- }
779
- mergeData[tempNumber].push(this.formatItemParam(templateObj, paramItem));
780
- }
781
- return mergeData;
782
- },
783
- // 查找模板并插入数据
784
- findTemplateAndInsertParams(mergeData, paramItem, templateParams) {
785
- // 判断当前数据有没有指定模板
786
- // 1. 有模板,则插入数据
787
- if (paramItem.templateNumbers) {
788
- for (let i = 0; i < paramItem.templateNumbers.length; i++) {
789
- const tempNumber = paramItem.templateNumbers[i];
790
- const templateObj = templateParams[tempNumber];
791
- if (!templateObj) {
792
- this.$message.error(`勾选数据中模板为${tempNumber}没有匹配的格式`);
793
- return mergeData;
794
- }
795
- if (!mergeData[tempNumber]) {
796
- mergeData[tempNumber] = [];
797
- }
798
- mergeData[tempNumber].push(paramItem);
799
- }
800
- return mergeData;
801
- }
802
- // 2. 将当前数据循环模板参数
803
- const templateParamKeys = Object.keys(templateParams);
804
- for (let i = 0; i < templateParamKeys.length; i++) {
805
- const tempNumber = templateParamKeys[i];
806
- const templateObj = templateParams[tempNumber];
807
- if (!templateObj) {
808
- this.$message.error(`勾选数据中模板为${tempNumber}没有匹配的格式`);
809
- return mergeData;
810
- }
811
- if (!mergeData[tempNumber]) {
812
- mergeData[tempNumber] = [];
813
- }
814
- mergeData[tempNumber].push(paramItem);
815
- }
816
- return mergeData;
817
- },
818
- // 单条数据转换,通过getPrintFormatByNumber接口获取到的数据没有customizeDataset
819
- formatItemParam(param = [], paramObj={}) {
820
- let res = {};
821
- // 自定义结果集
822
- // customizeDataset.forEach((dataSetItem) => {
823
- // const selectFieldList = dataSetItem.dataSetting[0].selectFieldList;
824
- // if (!res['datasetData']) {
825
- // res['datasetData'] = {};
826
- // }
827
- // res['datasetData'][dataSetItem.name] = JSON.stringify(this.formatPrintParams(paramObj, selectFieldList, 'fieldName'))
828
- // });
829
-
830
- // 参数
831
- res = Object.assign({}, res, this.formatPrintParams(paramObj, param, 'key'));
832
- return res;
833
- },
834
- // 合并所有的模板
835
- mergeTemplateList(list) {
836
- let templateObj = {};
837
- list && list.forEach(item => {
838
- if (!item.param) return false;
839
- templateObj[item.number] = item.param;
840
- });
841
- return templateObj;
842
- },
843
-
844
- setTimeoutSpin() {
845
- this.spinTimer = setTimeout(() => {
846
- this.spinning = true;
847
- }, 1500);
848
- },
849
- setLoaded() {
850
- this.spinning = false;
851
- if (!this.spinTimer) return false;
852
- clearTimeout(this.spinTimer);
853
- this.spinTimer = null;
854
- },
855
- // 展开模式下按钮loading状态
856
- toggleExpandLoading(isLoading, formatId) {
857
- // 点击单个打印
858
- if (this.isClickSinglePrint) {
859
- if (isLoading && formatId) {
860
- const curOption = this.options.find(outer => outer.key == formatId);
861
- if (curOption) curOption.isLoading = isLoading;
862
- return;
863
- }
864
- // 让所有单个打印按钮都停止loading
865
- this.options.forEach(outer => {
866
- outer.isLoading = false;
867
- })
868
- } else {
869
- // 全部按钮打印
870
- this.spinning = isLoading;
871
- }
872
- },
873
- getCurrentLoading() {
874
- if (this.isClickSinglePrint) {
875
- return this.options.some(outer => outer.isLoading);
876
- }
877
- return this.spinning;
878
- },
879
- requestError() {
880
- this.isInited = false;
881
- this.setLoaded();
882
- setTimeout(() => {
883
- this.visible = false;
884
- }, 0);
885
-
886
- return false;
887
- },
888
- getDefaultFormatId(list, key) {
889
- if (!list?.length) return '';
890
- let findDefault = list.find(item => item[key] == 1);
891
- return findDefault?.id || list[0].id;
892
- },
893
- /* */
894
- instantiatePrintSDK() {
895
- if (this.printInstance) return false;
896
- this.printInstance = new Print();
897
- },
898
- /* */
899
- queryFormatList() {
900
- const { templateNumber, authorizationKey, baseUrl, getPrintFormatByNumberUrl, versionType } = this;
901
- const suffix = [1, 3].includes(versionType) ? `jsessionids=${vexutils.cookie.get('jsessionids') || '31e5fc0e-955f-4c89-9679-39c43d0171321636163291241'}` : `authorizationKey=${authorizationKey}`;
902
- const url = `${baseUrl}${getPrintFormatByNumberUrl}?number=${templateNumber}&${suffix}`;
903
- return httpFn
904
- .get(url)
905
- .then(async ({ data }) => {
906
- if (data.result !== 'SUCCESS') {
907
- this.$message.error(data.resultMsg || '参数异常,请联系管理员');
908
- return false;
909
- }
910
- return data;
911
- })
912
- .catch(e => {
913
- return false;
914
- });
915
- },
916
- formatFormatList(list) {
917
- let formatList = [];
918
-
919
- list.forEach(item => {
920
- if (!item.format) return false;
921
- formatList.push(...item.format);
922
- });
923
-
924
- return formatList;
925
- },
926
- /* */
927
- queryTemplateParams() {
928
- const { templateNumber, authorizationKey, baseUrl, getTemplateParamsUrl } = this;
929
- const { templateId } = this.formatList[0] || {};
930
- const url = `${baseUrl}${getTemplateParamsUrl}?number=${templateNumber}&templateId=${templateId}&authorizationKey=${authorizationKey}`;
931
-
932
- return httpFn
933
- .get(url)
934
- .then(async ({ data }) => {
935
- if (data.result !== 'SUCCESS') {
936
- this.$message.error(data.resultMsg || '参数异常,请联系管理员');
937
- return false;
938
- }
939
- return data?.obj || {};
940
- })
941
- .catch(e => {
942
- return false;
943
- });
944
- },
945
- formatDefaultVal(i, tableVal) {
946
- const formatMap = {
947
- DATE: 'YYYY-MM-DD',
948
- DATETIME: 'YYYY-MM-DD HH:mm:ss'
949
- };
950
- let tVal = tableVal;
951
- if (Object.keys(formatMap).includes(i.type) && tableVal) {
952
- tVal = moment(tableVal).format(formatMap[i.type]);
953
- }
954
- if (i.type === 'TEXT') {
955
- tVal = String(tableVal) || '';
956
- }
957
-
958
- return i?.defaultValue || tVal || '';
959
- },
960
- // formatParams({ customizeDataset = [], param = [] }, params = []) {
961
- // return params.map(paramObj => {
962
- // let res = {};
963
-
964
- // // 自定义结果集
965
- // customizeDataset.forEach(dataSetItem => {
966
- // const selectFieldList = dataSetItem.dataSetting[0].selectFieldList;
967
- // res['datasetData'] = {
968
- // [dataSetItem.name]: JSON.stringify(this.formatPrintParams(paramObj, selectFieldList, 'fieldName'))
969
- // };
970
- // });
971
-
972
- // // 参数
973
- // res = Object.assign({}, res, this.formatPrintParams(paramObj, param, 'key'));
974
- // return res;
975
- // });
976
- // },
977
- reformatPrintParams() {
978
- this.watchPrintParamsReformatFn && this.watchPrintParamsReformatFn();
979
- /*
980
- 还没初始化完毕时(还没获取到模板格式配置等..)
981
- 触发再格式化逻辑,需等待初始化完毕,再重新执行格式化
982
- */
983
- if (!this.isInited) {
984
- this.watchPrintParamsReformatFn = this.$watch('isInited', val => {
985
- if (!val) return false;
986
- this.reformatPrintParams();
987
- });
988
- return;
989
- }
990
-
991
- // this.printParams = this.formatParams(this.templateParams, this.params);
992
- this.printParams = this.formatSomeTypeParams(this.templateParams, this.params);
993
- this.originParams = this.formatSomeOriginParams(this.templateParams, this.params);
994
- },
995
- formatPrintParams(paramObj, fieldList, keyName) {
996
- const obj = {};
997
- fieldList.forEach(i => {
998
- let defaultVal = this.formatDefaultVal(i, paramObj[i[keyName]]);
999
- if (paramObj[i[keyName]] && defaultVal) {
1000
- obj[i[keyName]] = defaultVal;
1001
- }
1002
- });
1003
-
1004
- return obj;
1005
- },
1006
- /* */
1007
- handleClickFormat(id) {
1008
- this.currentFormatId = id;
1009
- },
1010
- /* */
1011
- getPrintParams() {
1012
- const extraParams = this?.printExtraParams || {};
1013
- let res = {
1014
- ...(this.token ? { token: this.token } : {}),
1015
- ...extraParams
1016
- };
1017
- if (typeof this.getPrintParamsAfter === 'function') {
1018
- let t = this.getPrintParamsAfter(res);
1019
- return t || res;
1020
- }
1021
- return JSON.stringify(res);
1022
- },
1023
- getTemplateIdByFormatId(id) {
1024
- let find = this.formatList.find(item => item.id === id);
1025
- return find?.templateId || '';
1026
- },
1027
- getTemplateCodeByFormatId(id) {
1028
- let find = this.formatList.find(item => item.id === id);
1029
- return find?.number || '';
1030
- },
1031
- getOnceParams(curPrintParamList=[], templateCode) {
1032
- // 聚合一条
1033
- let params = {};
1034
- let obj = {};
1035
- // let cur = this.printParams?.[0] || {};
1036
- if (this.templateParams[templateCode]?.customizeDataset?.length) {
1037
- // 有模板数据
1038
- const key = Object.keys(curPrintParamList[0]?.datasetData || {})?.[0] || '';
1039
- const datasetDataKeyVal = JSON.stringify(curPrintParamList.map(v => JSON.parse(v.datasetData[key])));
1040
- obj = {
1041
- datasetData: {}
1042
- };
1043
- obj.datasetData[key] = datasetDataKeyVal;
1044
- } else {
1045
- // 无模板数据
1046
- Object.keys(curPrintParamList[0]).forEach(v => {
1047
- obj[v] = [];
1048
- curPrintParamList.forEach(k => {
1049
- if(!obj[v].includes(k[v])) {
1050
- obj[v].push(k[v]);
1051
- }
1052
- });
1053
- obj[v] = obj[v].join(',');
1054
- });
1055
- }
1056
- params = Object.assign({}, JSON.parse(this.getPrintParams()), this.printCustomProps, obj);
1057
- if (typeof this.getOnceParamsAfter === 'function') {
1058
- let res = this.getOnceParamsAfter(params, obj);
1059
- return res || params;
1060
- }
1061
- return JSON.stringify(params);
1062
- },
1063
- handleClickPrint(curPrintParamList, templateCode, templateId, formatId, printToParam=[], needContinuePrint) {
1064
- let len = curPrintParamList.length;
1065
- const successParams = [];
1066
- const errorParams = [];
1067
- const callLocalServicesSuccessErrorCb = async data => {
1068
- try {
1069
- if (data.printCbStatus) {
1070
- successParams.push(data);
1071
- } else {
1072
- errorParams.push(data);
1073
- }
1074
- if (--len <= 0) {
1075
- if (errorParams.length == curPrintParamList.length) {
1076
- this.callLocalServicesErrorCb(data, {
1077
- successList: [],
1078
- errorList: errorParams,
1079
- isMulti: true
1080
- });
1081
- } else {
1082
- this.callLocalServicesSuccessCb(data, 'print', {
1083
- successList: successParams,
1084
- errorList: errorParams,
1085
- isMulti: true
1086
- });
1087
- }
1088
- }
1089
- } catch (error) {
1090
- console.log('error', error);
1091
- }
1092
- };
1093
-
1094
- if (this.getCurrentLoading() && !needContinuePrint) return;
1095
- this.toggleExpandLoading(true, formatId);
1096
- this.prevFn()
1097
- .catch(() => {
1098
- this.prevFnError();
1099
- return Promise.reject();
1100
- })
1101
- .then(() => {
1102
- if (this.versionType == 1 || this.versionType == 3) {
1103
- const printFn = this.versionType == 1 ? 'handleHisPrint' : 'handleOldHisPrint';
1104
- if (this.strategy === 'MULTI') {
1105
- for (let i = 0; i < this.params.length; i++) {
1106
- const params = this.getHisParams(i);
1107
- this.printInstance[printFn](7, params)
1108
- .then(res => {
1109
- console.log(res, '777777777777');
1110
- })
1111
- .catch(error => {
1112
- console.log(error, 'error777');
1113
- });
1114
- }
1115
- } else {
1116
- const params = this.getOnceHisParams();
1117
- this.printInstance[printFn](7, params)
1118
- .then(res => {
1119
- console.log(res, '777777777777');
1120
- })
1121
- .catch(error => {
1122
- console.log(error, 'error777');
1123
- });
1124
- }
1125
- } else {
1126
- this.curPrintParamList = curPrintParamList;
1127
- const queryParams = {
1128
- // ...this.queryParams,
1129
- formatId,
1130
- templateId,
1131
- printdlgshow: this.printdlgshow
1132
- };
1133
- if (this.strategy === 'MULTI') {
1134
- // 循环剩余数据
1135
- const multiOtherPrint = () => {
1136
- for (let i = 1; i < curPrintParamList.length; i++) {
1137
- queryParams.printdlgshow = '0';
1138
- const params = JSON.stringify(Object.assign({}, JSON.parse(this.getPrintParams()), this.printCustomProps, curPrintParamList[i]));
1139
- const originParam = this.findOriginParam(curPrintParamList[i], printToParam);
1140
- this.printInstance.printDirect(
1141
- {
1142
- ...queryParams,
1143
- params
1144
- },
1145
- (res) => {
1146
- res.originPrintParam = originParam || undefined;
1147
- res.printCbStatus = true;
1148
- callLocalServicesSuccessErrorCb(res);
1149
- },
1150
- (error) => {
1151
- error.originPrintParam = originParam || undefined;
1152
- callLocalServicesSuccessErrorCb(error);
1153
- },
1154
- this.callLocalServicesCancelCb
1155
- );
1156
- }
1157
- }
1158
- // 先执行第一条如果取消了,则不再往下执行
1159
- const params = JSON.stringify(Object.assign({}, JSON.parse(this.getPrintParams()), this.printCustomProps, curPrintParamList[0]));
1160
- const originParam = this.findOriginParam(curPrintParamList[0], printToParam);
1161
- this.printInstance.printDirect(
1162
- {
1163
- ...queryParams,
1164
- params
1165
- },
1166
- (res) => {
1167
- res.originPrintParam = originParam || undefined;
1168
- res.printCbStatus = true;
1169
- callLocalServicesSuccessErrorCb(res);
1170
- multiOtherPrint();
1171
- },
1172
- (error) => {
1173
- error.originPrintParam = originParam || undefined;
1174
- callLocalServicesSuccessErrorCb(error);
1175
- multiOtherPrint();
1176
- },
1177
- (res) => {
1178
- this.callLocalServicesCancelCb(res);
1179
- }
1180
- );
1181
- } else {
1182
- // 聚合一条
1183
- this.printInstance.printDirect(
1184
- {
1185
- ...queryParams,
1186
- params: this.getOnceParams(curPrintParamList, templateCode)
1187
- },
1188
- res => {
1189
- res.params = printToParam;
1190
- res.templateCode = templateCode;
1191
- res.templateId = templateId;
1192
- this.callLocalServicesSuccessCb(res, 'print');
1193
- },
1194
- this.callLocalServicesErrorCb,
1195
- this.callLocalServicesCancelCb
1196
- );
1197
- }
1198
- }
1199
- })
1200
- },
1201
-
1202
- findOriginParam(printParam, originParams) {
1203
- const keys = Object.keys(printParam);
1204
- return originParams.find(param => keys.every(key => printParam[key] == param[key]));
1205
- },
1206
- getHisParams(index = 0) {
1207
- const { templateParams, hisParams, params } = this;
1208
- const { reportid = '280' } = hisParams;
1209
- const { id, name } = templateParams;
1210
- return {
1211
- reportid,
1212
- formatid: this.currentFormatId || id,
1213
- formatname: name,
1214
- param: params[index]
1215
- };
1216
- },
1217
- getOnceHisParams() {
1218
- const { templateParams, hisParams, params } = this;
1219
- const { reportid = '280' } = hisParams;
1220
- const { id, name } = templateParams;
1221
- const obj = {};
1222
- Object.keys(params[0]).forEach(v => {
1223
- obj[v] = [];
1224
- params.forEach(k => {
1225
- obj[v].push(k[v]);
1226
- });
1227
- obj[v] = obj[v].join(',');
1228
- });
1229
- return {
1230
- reportid,
1231
- formatid: this.currentFormatId || id,
1232
- formatname: name,
1233
- param: obj
1234
- };
1235
- },
1236
- async handleClickPreview(curPrintParamList=[], templateCode, templateId, formatId) {
1237
- if (this.getCurrentLoading()) return;
1238
- this.toggleExpandLoading(true, formatId);
1239
- this.prevFn()
1240
- .catch(() => {
1241
- this.prevFnError();
1242
- return Promise.reject();
1243
- })
1244
- .then(() => {
1245
- if (this.versionType == 1 || this.versionType == 3) {
1246
- const params = this.strategy === 'MULTI' ? this.getHisParams() : this.getOnceHisParams();
1247
- const printFn = this.versionType == 1 ? 'handleHisPrint' : 'handleOldHisPrint';
1248
- this.printInstance[printFn](8, params)
1249
- .then(res => {
1250
- console.log(res, 88888888);
1251
- })
1252
- .catch(error => {
1253
- console.log(error, 'error888');
1254
- });
1255
- } else {
1256
- this.curPrintParamList = curPrintParamList;
1257
- const IS_MULTI = this.strategy === 'MULTI';
1258
- const queryParams = {
1259
- formatId,
1260
- templateId
1261
- };
1262
- const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(this.getPrintParams()), this.printCustomProps.value, curPrintParamList[0]));
1263
- this.printInstance.preview(
1264
- {
1265
- // ...this.queryParams,
1266
- ...queryParams,
1267
- params: IS_MULTI ? paramsFirst : this.getOnceParams(curPrintParamList, templateCode)
1268
- },
1269
- res => {
1270
- this.callLocalServicesSuccessCb(res, 'preview');
1271
- },
1272
- this.callLocalServicesErrorCb
1273
- );
1274
- }
1275
- })
1276
- },
1277
- // 下载pdf
1278
- async handleClickPdf(curPrintParamList=[], templateCode, templateId, formatId) {
1279
- if (this.getCurrentLoading()) return;
1280
- this.toggleExpandLoading(true, formatId);
1281
- this.prevFn()
1282
- .catch(() => {
1283
- this.prevFnError();
1284
- return Promise.reject();
1285
- })
1286
- .then(() => {
1287
- if (this.versionType == 1 || this.versionType == 3) {
1288
- console.log('下载pdf>>>');
1289
- } else {
1290
- this.curPrintParamList = curPrintParamList;
1291
- const IS_MULTI = this.strategy === 'MULTI';
1292
- // const queryParams = {
1293
- // ...this.queryParams,
1294
- // print: { print: '1', type: '1', callback: '1' },
1295
- // };
1296
- const queryParams = {
1297
- formatId,
1298
- templateId,
1299
- print: { print: '1', type: '1', callback: '1' },
1300
- };
1301
- const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(this.getPrintParams()), this.printCustomProps.value, curPrintParamList[0]));
1302
- this.printInstance.downloadPDF(
1303
- {
1304
- ...queryParams,
1305
- params: IS_MULTI ? paramsFirst : this.getOnceParams(curPrintParamList, templateCode)
1306
- },
1307
- res => {
1308
- this.callLocalServicesSuccessCb(res, 'download');
1309
- },
1310
- this.callLocalServicesErrorCb
1311
- );
1312
- }
1313
- })
1314
- },
1315
- handleClickEdit(curPrintParamList=[], templateCode, templateId, formatId) {
1316
- if (this.getCurrentLoading()) return;
1317
- this.toggleExpandLoading(true, formatId);
1318
- this.prevFn()
1319
- .catch(() => {
1320
- this.prevFnError();
1321
- return Promise.reject();
1322
- })
1323
- .then(() => {
1324
- if (this.versionType == 1 || this.versionType == 3) {
1325
- const params = this.strategy === 'MULTI' ? this.getHisParams() : this.getOnceHisParams();
1326
- const printFn = this.versionType == 1 ? 'handleHisPrint' : 'handleOldHisPrint';
1327
- this.printInstance[printFn](9, params)
1328
- .then(res => {
1329
- console.log(res, 999999);
1330
- })
1331
- .catch(error => {
1332
- console.log(error, 'error999');
1333
- });
1334
- } else {
1335
- this.toggleExpandLoading(false);
1336
- this.curPrintParamList = curPrintParamList;
1337
- this.currentFormatId = formatId;
1338
- this.identityVerification.visible = true;
1339
- }
1340
- })
1341
- },
1342
- verifiySuccess(token) {
1343
- this.identityVerification.visible = false;
1344
- const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(this.getPrintParams()), this.printCustomProps.value, this.curPrintParamList[0]));
1345
- const params = this.strategy === 'MULTI' ? paramsFirst : this.getOnceParams(this.curPrintParamList, this.getTemplateCodeByFormatId(this.currentFormatId));
1346
- const queryParams = {
1347
- // ...this.queryParams,
1348
- formatId: this.currentFormatId,
1349
- templateId: this.getTemplateIdByFormatId(this.currentFormatId),
1350
- params,
1351
- token
1352
- };
1353
- this.printInstance.editPrintFormat(
1354
- queryParams,
1355
- res => {
1356
- this.callLocalServicesSuccessCb(res, 'edit');
1357
- },
1358
- this.callLocalServicesErrorCb
1359
- );
1360
- },
1361
- /* */
1362
- prevFnError() {
1363
- // 前置条件执行错误这里不弹提示,“前置条件”事件内有弹提示了
1364
- // let error = {
1365
- // message: '前置条件执行错误'
1366
- // };
1367
- // this.$emit('error', error);
1368
- this.toggleExpandLoading(false);
1369
- this.visible = false;
1370
- },
1371
- /* */
1372
- callLocalServicesSuccessCb(res, type, config) {
1373
- this.toggleExpandLoading(false);
1374
- let info = {
1375
- type,
1376
- formatId: this.currentFormatId,
1377
- templateId: res?.templateId || this.getTemplateIdByFormatId(this.currentFormatId),
1378
- templateCode: res?.templateCode || this.getTemplateCodeByFormatId(this.currentFormatId),
1379
- };
1380
- this.$emit('success', res, info, config);
1381
- },
1382
- callLocalServicesErrorCb(res, config) {
1383
- this.toggleExpandLoading(false);
1384
- this.$emit('error', res, config);
1385
- },
1386
- callLocalServicesCancelCb(res) {
1387
- this.toggleExpandLoading(false);
1388
- this.$emit('cancel', res);
1389
- },
1390
-
1391
- /**
1392
- * 获取 axios 自定义配置
1393
- */
1394
- getCustomCofing(customCofing) {
1395
- let cCofing = {};
1396
- let type = typeof customCofing;
1397
- if (type === 'function') {
1398
- cCofing = customCofing();
1399
- } else if (type === 'object') {
1400
- cCofing = customCofing;
1401
- }
1402
- return cCofing;
1403
- }
1404
- }
1405
- });
1406
- </script>
1407
-
1408
- <style lang="less" scoped>
1409
- .newprint-button-outer {
1410
- display: inline-flex;
1411
- align-items: center;
1412
- .ant-btn-group{
1413
- display: inline-flex;
1414
- }
1415
- .ant-popover-inner-content{
1416
- padding: 0;
1417
- }
1418
- .bold{
1419
- font-weight: 700;
1420
- }
1421
- .hasOuterItem{
1422
- color: rgba(37, 99, 244, 1);
1423
- }
1424
- .operation-icon{
1425
- margin-left: 8px;
1426
- width: 32px;
1427
- height: 32px;
1428
- display: flex;
1429
- justify-content: center;
1430
- align-items: center;
1431
- opacity: 0;
1432
- .anticon{
1433
- margin-right: 0 !important;
1434
- }
1435
- }
1436
- .operation-li{
1437
- &:hover{
1438
- background: rgba(37, 99, 244, 0.10);
1439
- .label, .anticon-right{
1440
- color: rgba(37, 99, 244, 1);
1441
- }
1442
- .operation-icon{
1443
- opacity: 1;
1444
- background: rgba(37, 99, 244, 0.15);
1445
- }
1446
- }
1447
- }
1448
- }
1449
-
1450
- .newprint-button-menu{
1451
- .print-divider{
1452
- .ant-divider{
1453
- margin: 0;
1454
- }
1455
- }
1456
- .isDisabled{
1457
- color: #999;
1458
- cursor: default;
1459
- }
1460
- .dropdown-between{
1461
- display: flex;
1462
- justify-content: space-between;
1463
- align-items: center;
1464
- padding: 0;
1465
- margin: 0 6px;
1466
- .label{
1467
- flex: 1;
1468
- padding: 5px 12px 5px 6px;
1469
- }
1470
- .ant-btn{
1471
- margin: 5px 12px 5px 6px;
1472
- }
1473
- }
1474
- }
1475
-
1476
- </style>