cloud-web-corejs 1.0.0

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 (823) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +166 -0
  3. package/src/api/menu.js +16 -0
  4. package/src/api/user.js +83 -0
  5. package/src/components/Qrcode/fileParse.vue +241 -0
  6. package/src/components/Qrcode/index.vue +58 -0
  7. package/src/components/Qrcode/printDialog.vue +103 -0
  8. package/src/components/SvgIcon/index.vue +62 -0
  9. package/src/components/Tinymce/dynamicLoadScript.js +59 -0
  10. package/src/components/Tinymce/index.vue +295 -0
  11. package/src/components/Tinymce/plugins.js +7 -0
  12. package/src/components/Tinymce/toolbar.js +6 -0
  13. package/src/components/VabUpload/image-viewer.vue +442 -0
  14. package/src/components/VabUpload/index.js +5 -0
  15. package/src/components/VabUpload/index.vue +230 -0
  16. package/src/components/VabUpload/mixins.js +9 -0
  17. package/src/components/VabUpload/privateProfileDialog.vue +296 -0
  18. package/src/components/VabUpload/privateProfileDialogMixins.js +1069 -0
  19. package/src/components/VabUpload/propertiesDialog.vue +110 -0
  20. package/src/components/VabUpload/view.vue +119 -0
  21. package/src/components/advancedSearchDialog/index.vue +44 -0
  22. package/src/components/advancedSearchDialog/mixins.js +4 -0
  23. package/src/components/baseAlert/index.js +4 -0
  24. package/src/components/baseAlert/index.vue +53 -0
  25. package/src/components/baseAlert/mixins.js +5 -0
  26. package/src/components/baseAttachment/index.js +30 -0
  27. package/src/components/baseAttachment/index.vue +40 -0
  28. package/src/components/baseAttachment/install.js +6 -0
  29. package/src/components/baseAttachment/mixins.js +8 -0
  30. package/src/components/baseAttachment/showList.vue +44 -0
  31. package/src/components/baseAttachment/uploadDialog.vue +42 -0
  32. package/src/components/baseInputBatch/index.vue +37 -0
  33. package/src/components/baseInputBatch/mixins.js +3 -0
  34. package/src/components/baseInputExport/index.vue +32 -0
  35. package/src/components/baseInputExport/mixins.js +15 -0
  36. package/src/components/baseInputNumber/index.vue +10 -0
  37. package/src/components/baseInputPrint/index.vue +12 -0
  38. package/src/components/baseTabs/baseTabPane.vue +22 -0
  39. package/src/components/baseTabs/index.vue +27 -0
  40. package/src/components/baseTabs/mixins.js +6 -0
  41. package/src/components/cnPrint/index.js +5 -0
  42. package/src/components/cnPrint/index.vue +54 -0
  43. package/src/components/cnPrint/mixins.js +3 -0
  44. package/src/components/code-editor/index.vue +212 -0
  45. package/src/components/confirmDialog/index.js +5 -0
  46. package/src/components/confirmDialog/index.vue +54 -0
  47. package/src/components/confirmDialog/mixins.js +5 -0
  48. package/src/components/errorMsg/index.js +5 -0
  49. package/src/components/errorMsg/index.vue +70 -0
  50. package/src/components/errorMsg/mixins.js +5 -0
  51. package/src/components/excelExport/button.vue +45 -0
  52. package/src/components/excelExport/index.js +5 -0
  53. package/src/components/excelExport/index.vue +55 -0
  54. package/src/components/excelExport/mixins.js +14 -0
  55. package/src/components/excelImport/index.js +13 -0
  56. package/src/components/excelImport/index.vue +153 -0
  57. package/src/components/excelImport/mixins.js +17 -0
  58. package/src/components/extendedProperties/mixins.js +4 -0
  59. package/src/components/extendedProperties/view.vue +182 -0
  60. package/src/components/fileLibrary/categoryMoveDialog.vue +109 -0
  61. package/src/components/fileLibrary/fileCategoryDialog.vue +87 -0
  62. package/src/components/fileLibrary/fileHistoryDialog.vue +80 -0
  63. package/src/components/fileLibrary/fileObjAuthDialog.vue +186 -0
  64. package/src/components/fileLibrary/fileObjAuthEdit.vue +256 -0
  65. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +183 -0
  66. package/src/components/fileLibrary/index.vue +687 -0
  67. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +509 -0
  68. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +303 -0
  69. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +177 -0
  70. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +621 -0
  71. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +108 -0
  72. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +135 -0
  73. package/src/components/fileLibrary/mixins/indexMixins.js +1752 -0
  74. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +193 -0
  75. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +686 -0
  76. package/src/components/fileLibrary/mixins/recycleBinPropertiesDialogMixins.js +133 -0
  77. package/src/components/fileLibrary/mixins/shareDialogMixins.js +51 -0
  78. package/src/components/fileLibrary/propertiesDialog.vue +145 -0
  79. package/src/components/fileLibrary/recycleBinDialog.vue +236 -0
  80. package/src/components/fileLibrary/recycleBinPropertiesDialog.vue +100 -0
  81. package/src/components/fileLibrary/shareDialog.vue +54 -0
  82. package/src/components/hiprint/css/hiprint.css +1004 -0
  83. package/src/components/hiprint/css/image/jquery.minicolors.png +0 -0
  84. package/src/components/hiprint/css/image/l_img.svg +1 -0
  85. package/src/components/hiprint/css/image/v_img.svg +1 -0
  86. package/src/components/hiprint/css/print-lock.css +288 -0
  87. package/src/components/hiprint/etypes/default-etyps-provider.js +165 -0
  88. package/src/components/hiprint/hiprint.bundle.js +10009 -0
  89. package/src/components/hiprint/hiprint.config.js +1783 -0
  90. package/src/components/hiprint/index.js +109 -0
  91. package/src/components/hiprint/install.js +9 -0
  92. package/src/components/hiprint/plugins/jquery.hiwprint.js +116 -0
  93. package/src/components/hiprint/plugins/qrcode.js +617 -0
  94. package/src/components/hiprint/plugins/watermark.js +199 -0
  95. package/src/components/hiprint/view/design/dialog.vue +84 -0
  96. package/src/components/hiprint/view/design/font-size.js +38 -0
  97. package/src/components/hiprint/view/design/index.vue +340 -0
  98. package/src/components/hiprint/view/design/mixins.js +15 -0
  99. package/src/components/hiprint/view/design/panel.js +494 -0
  100. package/src/components/hiprint/view/design/preview.vue +130 -0
  101. package/src/components/hiprint/view/design/print-data.js +54 -0
  102. package/src/components/hiprint/view/design/scale.js +31 -0
  103. package/src/components/hiprint/view/design/templateJson1.js +494 -0
  104. package/src/components/hiprint/view/design/templateJson2.js +870 -0
  105. package/src/components/hiprint/view/json-view.vue +81 -0
  106. package/src/components/jdPrint/index.js +5 -0
  107. package/src/components/jdPrint/index.vue +53 -0
  108. package/src/components/jdPrint/mixins.js +3 -0
  109. package/src/components/jsonImport/index.js +13 -0
  110. package/src/components/jsonImport/index.vue +150 -0
  111. package/src/components/jsonImport/mixins.js +17 -0
  112. package/src/components/mobile/buttonGroup/index.vue +38 -0
  113. package/src/components/mobile/file/index.vue +473 -0
  114. package/src/components/mobile/h5Card/h5CardPane.vue +28 -0
  115. package/src/components/mobile/h5Card/index.vue +16 -0
  116. package/src/components/mobile/h5Card/mixins.js +171 -0
  117. package/src/components/mobile/oplogTable/index.vue +50 -0
  118. package/src/components/mobile/oplogTable/mixins.js +40 -0
  119. package/src/components/mobile/searchDialog/index.vue +39 -0
  120. package/src/components/mobile/statusTag/config.js +40 -0
  121. package/src/components/mobile/statusTag/index.vue +16 -0
  122. package/src/components/mobile/statusTag/mixins.js +5 -0
  123. package/src/components/mobile/wf/addTaskUserdialog.vue +80 -0
  124. package/src/components/mobile/wf/content.vue +1556 -0
  125. package/src/components/mobile/wf/deleteTaskUserDialog.vue +54 -0
  126. package/src/components/mobile/wf/mixins/addTaskUserdialogMixin.js +78 -0
  127. package/src/components/mobile/wf/mixins/deleteTaskUserDialogMixin.js +77 -0
  128. package/src/components/mobile/wf/mixins/setCandidateDialogMixin.js +91 -0
  129. package/src/components/mobile/wf/mixins/urgingDialogMixin.js +77 -0
  130. package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +47 -0
  131. package/src/components/mobile/wf/mixins/wfStartDialogMixin.js +140 -0
  132. package/src/components/mobile/wf/setCandidateDialog.vue +48 -0
  133. package/src/components/mobile/wf/urgingDialog.vue +52 -0
  134. package/src/components/mobile/wf/wfModifyDialog.vue +33 -0
  135. package/src/components/mobile/wf/wfStartDialog.vue +41 -0
  136. package/src/components/onlineTalk/index.vue +744 -0
  137. package/src/components/onlineTalk/mixins.js +9 -0
  138. package/src/components/oplogTable/index.vue +14 -0
  139. package/src/components/oplogTable/mixins.js +4 -0
  140. package/src/components/pddPrint/index.js +5 -0
  141. package/src/components/pddPrint/index.vue +54 -0
  142. package/src/components/pddPrint/mixins.js +3 -0
  143. package/src/components/projectTag/addButton.vue +69 -0
  144. package/src/components/projectTag/deleteButton.vue +69 -0
  145. package/src/components/projectTag/view.vue +72 -0
  146. package/src/components/scriptDescription/button.vue +26 -0
  147. package/src/components/scriptDescription/dialog.vue +40 -0
  148. package/src/components/scriptDescription/mixins.js +3 -0
  149. package/src/components/scriptTest/button.vue +27 -0
  150. package/src/components/scriptTest/dialog.vue +145 -0
  151. package/src/components/scriptTest/mixins.js +6 -0
  152. package/src/components/statusTag/config.js +40 -0
  153. package/src/components/statusTag/index.vue +14 -0
  154. package/src/components/statusTag/mixins.js +5 -0
  155. package/src/components/table/CellSlot.vue +9 -0
  156. package/src/components/table/config.js +3 -0
  157. package/src/components/table/customConfig.js +6 -0
  158. package/src/components/table/index.js +10 -0
  159. package/src/components/table/tableForm.vue +281 -0
  160. package/src/components/table/tableFormMixin.js +6 -0
  161. package/src/components/table/vxeFilter/FilterComplex.vue +36 -0
  162. package/src/components/table/vxeFilter/FilterContent.vue +43 -0
  163. package/src/components/table/vxeFilter/FilterInput.vue +14 -0
  164. package/src/components/table/vxeFilter/index.js +9 -0
  165. package/src/components/table/vxeFilter/mixin.js +6 -0
  166. package/src/components/tempStorage/index.vue +124 -0
  167. package/src/components/tempStorage/tempStorageDialog.vue +161 -0
  168. package/src/components/vb-tabs/index.vue +200 -0
  169. package/src/components/vb-tabs/tab-nav.vue +294 -0
  170. package/src/components/vb-tabs/tab-pane.vue +60 -0
  171. package/src/components/vb-tabs/x-tabs.vue +112 -0
  172. package/src/components/video/dialog.vue +53 -0
  173. package/src/components/vipPrint/index.js +5 -0
  174. package/src/components/vipPrint/index.vue +54 -0
  175. package/src/components/vipPrint/mixins.js +3 -0
  176. package/src/components/wf/addTaskUserdialog.vue +209 -0
  177. package/src/components/wf/content.vue +702 -0
  178. package/src/components/wf/content2.vue +604 -0
  179. package/src/components/wf/deleteTaskUserDialog.vue +75 -0
  180. package/src/components/wf/formIframeDialog.vue +51 -0
  181. package/src/components/wf/index.vue +51 -0
  182. package/src/components/wf/mixins/setCandidateDialog.js +5 -0
  183. package/src/components/wf/setCandidateDialog.vue +86 -0
  184. package/src/components/wf/urgingDialog.vue +70 -0
  185. package/src/components/wf/wf.js +30 -0
  186. package/src/components/wf/wfModifyDialog.vue +43 -0
  187. package/src/components/wf/wfStartDialog.vue +49 -0
  188. package/src/components/wf/wfUtil.js +13 -0
  189. package/src/components/xform/extension/extension-helper.js +23 -0
  190. package/src/components/xform/extension/extension-loader.js +116 -0
  191. package/src/components/xform/extension/samples/alert/alert-widget.vue +69 -0
  192. package/src/components/xform/extension/samples/card/card-item.vue +100 -0
  193. package/src/components/xform/extension/samples/card/card-widget.vue +151 -0
  194. package/src/components/xform/extension/samples/extension-schema.js +39 -0
  195. package/src/components/xform/extension/samples/extension-sfc-generator.js +50 -0
  196. package/src/components/xform/form-designer/designer.js +29 -0
  197. package/src/components/xform/form-designer/form-widget/container-widget/container-wrapper.vue +107 -0
  198. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -0
  199. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +8 -0
  200. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +250 -0
  201. package/src/components/xform/form-designer/form-widget/container-widget/detail-h5-widget.vue +227 -0
  202. package/src/components/xform/form-designer/form-widget/container-widget/detail-pane-widget.vue +201 -0
  203. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +196 -0
  204. package/src/components/xform/form-designer/form-widget/container-widget/grid-col-widget.vue +315 -0
  205. package/src/components/xform/form-designer/form-widget/container-widget/grid-sub-form-widget.vue +11 -0
  206. package/src/components/xform/form-designer/form-widget/container-widget/grid-widget.vue +94 -0
  207. package/src/components/xform/form-designer/form-widget/container-widget/h5-card-pane-widget.vue +207 -0
  208. package/src/components/xform/form-designer/form-widget/container-widget/h5-card-widget.vue +136 -0
  209. package/src/components/xform/form-designer/form-widget/container-widget/h5-table-cell-widget.vue +372 -0
  210. package/src/components/xform/form-designer/form-widget/container-widget/h5-table-widget.vue +117 -0
  211. package/src/components/xform/form-designer/form-widget/container-widget/index.js +24 -0
  212. package/src/components/xform/form-designer/form-widget/container-widget/list-h5-widget.vue +363 -0
  213. package/src/components/xform/form-designer/form-widget/container-widget/panel-widget.vue +144 -0
  214. package/src/components/xform/form-designer/form-widget/container-widget/query-widget.vue +134 -0
  215. package/src/components/xform/form-designer/form-widget/container-widget/tab-widget.vue +124 -0
  216. package/src/components/xform/form-designer/form-widget/container-widget/table-cell-widget.vue +347 -0
  217. package/src/components/xform/form-designer/form-widget/container-widget/table-column-widget.vue +155 -0
  218. package/src/components/xform/form-designer/form-widget/container-widget/table-widget.vue +117 -0
  219. package/src/components/xform/form-designer/form-widget/container-widget/table2-cell-widget.vue +347 -0
  220. package/src/components/xform/form-designer/form-widget/container-widget/table2-widget.vue +116 -0
  221. package/src/components/xform/form-designer/form-widget/container-widget/tree-pane-widget.vue +178 -0
  222. package/src/components/xform/form-designer/form-widget/container-widget/tree-widget.vue +247 -0
  223. package/src/components/xform/form-designer/form-widget/container-widget/vf-box-widget.vue +187 -0
  224. package/src/components/xform/form-designer/form-widget/container-widget/vf-dialog-widget.vue +138 -0
  225. package/src/components/xform/form-designer/form-widget/container-widget/vf-drawer-widget.vue +11 -0
  226. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +200 -0
  227. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +206 -0
  228. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +162 -0
  229. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +154 -0
  230. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +17 -0
  231. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +405 -0
  232. package/src/components/xform/form-designer/form-widget/dialog/treeMoveDialog.vue +143 -0
  233. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +408 -0
  234. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +119 -0
  235. package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +117 -0
  236. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +181 -0
  237. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +87 -0
  238. package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +116 -0
  239. package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +162 -0
  240. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +107 -0
  241. package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +99 -0
  242. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +101 -0
  243. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +100 -0
  244. package/src/components/xform/form-designer/form-widget/field-widget/descriptions-widget.vue +184 -0
  245. package/src/components/xform/form-designer/form-widget/field-widget/divider-widget.vue +83 -0
  246. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +35 -0
  247. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +35 -0
  248. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +35 -0
  249. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +18 -0
  250. package/src/components/xform/form-designer/form-widget/field-widget/file-upload-widget.vue +304 -0
  251. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +379 -0
  252. package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +82 -0
  253. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +83 -0
  254. package/src/components/xform/form-designer/form-widget/field-widget/index.js +10 -0
  255. package/src/components/xform/form-designer/form-widget/field-widget/input-batch-widget.vue +113 -0
  256. package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +114 -0
  257. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +418 -0
  258. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +369 -0
  259. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +194 -0
  260. package/src/components/xform/form-designer/form-widget/field-widget/news-list-widget.vue +87 -0
  261. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +105 -0
  262. package/src/components/xform/form-designer/form-widget/field-widget/picture-upload-widget.vue +281 -0
  263. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +91 -0
  264. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +153 -0
  265. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +107 -0
  266. package/src/components/xform/form-designer/form-widget/field-widget/rate-widget.vue +102 -0
  267. package/src/components/xform/form-designer/form-widget/field-widget/rich-editor-widget.vue +123 -0
  268. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +81 -0
  269. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +124 -0
  270. package/src/components/xform/form-designer/form-widget/field-widget/slider-widget.vue +100 -0
  271. package/src/components/xform/form-designer/form-widget/field-widget/slot-widget.vue +102 -0
  272. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +212 -0
  273. package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +83 -0
  274. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +125 -0
  275. package/src/components/xform/form-designer/form-widget/field-widget/switch-widget.vue +101 -0
  276. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +95 -0
  277. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +92 -0
  278. package/src/components/xform/form-designer/form-widget/field-widget/textarea-widget.vue +99 -0
  279. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +104 -0
  280. package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +103 -0
  281. package/src/components/xform/form-designer/form-widget/field-widget/title-head-widget.vue +82 -0
  282. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +221 -0
  283. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +173 -0
  284. package/src/components/xform/form-designer/form-widget/index.vue +145 -0
  285. package/src/components/xform/form-designer/form-widget/indexMixin.js +5 -0
  286. package/src/components/xform/form-designer/index.vue +181 -0
  287. package/src/components/xform/form-designer/indexMixin.js +24 -0
  288. package/src/components/xform/form-designer/refMixinDesign.js +28 -0
  289. package/src/components/xform/form-designer/setting-panel/dataSource-setting.vue +397 -0
  290. package/src/components/xform/form-designer/setting-panel/form-setting.vue +592 -0
  291. package/src/components/xform/form-designer/setting-panel/index.vue +305 -0
  292. package/src/components/xform/form-designer/setting-panel/indexMixin.js +12 -0
  293. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +302 -0
  294. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +39 -0
  295. package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +36 -0
  296. package/src/components/xform/form-designer/setting-panel/property-editor/alignType-editor.vue +48 -0
  297. package/src/components/xform/form-designer/setting-panel/property-editor/allowCreate-editor.vue +24 -0
  298. package/src/components/xform/form-designer/setting-panel/property-editor/appendButton-editor.vue +28 -0
  299. package/src/components/xform/form-designer/setting-panel/property-editor/appendButtonDisabled-editor.vue +23 -0
  300. package/src/components/xform/form-designer/setting-panel/property-editor/automaticDropdown-editor.vue +23 -0
  301. package/src/components/xform/form-designer/setting-panel/property-editor/border-editor.vue +23 -0
  302. package/src/components/xform/form-designer/setting-panel/property-editor/buttonIcon-editor.vue +23 -0
  303. package/src/components/xform/form-designer/setting-panel/property-editor/buttonStyle-editor.vue +23 -0
  304. package/src/components/xform/form-designer/setting-panel/property-editor/censusItems-editor.vue +110 -0
  305. package/src/components/xform/form-designer/setting-panel/property-editor/clearable-editor.vue +23 -0
  306. package/src/components/xform/form-designer/setting-panel/property-editor/columnWidth-editor.vue +26 -0
  307. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/condition-editor.vue +30 -0
  308. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1042 -0
  309. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCellDblclick-editor.vue +32 -0
  310. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxAll-editor.vue +32 -0
  311. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +32 -0
  312. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1047 -0
  313. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +74 -0
  314. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-h5/detail-h5-editor.vue +44 -0
  315. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +41 -0
  316. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/colHeight-editor.vue +28 -0
  317. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +81 -0
  318. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-height-editor.vue +35 -0
  319. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +24 -0
  320. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +24 -0
  321. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +24 -0
  322. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-responsive-editor.vue +23 -0
  323. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-span-editor.vue +48 -0
  324. package/src/components/xform/form-designer/setting-panel/property-editor/container-h5-card/h5-card-editor.vue +124 -0
  325. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +858 -0
  326. package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/height-editor.vue +22 -0
  327. package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/width-editor.vue +22 -0
  328. package/src/components/xform/form-designer/setting-panel/property-editor/container-sub-form/showBlankRow-editor.vue +23 -0
  329. package/src/components/xform/form-designer/setting-panel/property-editor/container-sub-form/showRowNumber-editor.vue +23 -0
  330. package/src/components/xform/form-designer/setting-panel/property-editor/container-sub-form/sub-form-labelAlign-editor.vue +36 -0
  331. package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue +119 -0
  332. package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tabClass-editor.vue +45 -0
  333. package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-fullWidth-editor.vue +23 -0
  334. package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellHeight-editor.vue +23 -0
  335. package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellWidth-editor.vue +23 -0
  336. package/src/components/xform/form-designer/setting-panel/property-editor/container-table2/table2-editor.vue +21 -0
  337. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/checkStrictly-editor.vue +22 -0
  338. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/show-checkbox-editor.vue +21 -0
  339. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/show-filter-editor.vue +21 -0
  340. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +41 -0
  341. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-defaultExpandAllNode-editor.vue +21 -0
  342. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-draggable-editor.vue +21 -0
  343. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-expandOnClickNode-editor.vue +21 -0
  344. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-expandRetractAllNode-editor.vue +21 -0
  345. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-lazy-editor.vue +21 -0
  346. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-nodeEdit-editor.vue +21 -0
  347. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-selectClearAllNode-editor.vue +21 -0
  348. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/treeData-editor.vue +74 -0
  349. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree-pane/tree-pane-editor.vue +22 -0
  350. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/cancelButtonHidden-editor.vue +22 -0
  351. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/cancelButtonLabel-editor.vue +22 -0
  352. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/center-editor.vue +22 -0
  353. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/closeOnClickModal-editor.vue +22 -0
  354. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/closeOnPressEscape-editor.vue +22 -0
  355. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/disabledMode-editor.vue +22 -0
  356. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/fullscreen-editor.vue +22 -0
  357. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/okButtonHidden-editor.vue +22 -0
  358. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/okButtonLabel-editor.vue +22 -0
  359. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/readMode-editor.vue +22 -0
  360. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/showClose-editor.vue +22 -0
  361. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/showModal-editor.vue +22 -0
  362. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/title-editor.vue +22 -0
  363. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/width-editor.vue +22 -0
  364. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-drawer/vf-drawer-direction-editor.vue +11 -0
  365. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-drawer/vf-drawer-size-editor.vue +11 -0
  366. package/src/components/xform/form-designer/setting-panel/property-editor/containerClass-editor.vue +45 -0
  367. package/src/components/xform/form-designer/setting-panel/property-editor/customClass-editor.vue +40 -0
  368. package/src/components/xform/form-designer/setting-panel/property-editor/defaultValue-editor.vue +25 -0
  369. package/src/components/xform/form-designer/setting-panel/property-editor/descriptionsItems-editor.vue +221 -0
  370. package/src/components/xform/form-designer/setting-panel/property-editor/disabled-editor.vue +23 -0
  371. package/src/components/xform/form-designer/setting-panel/property-editor/displayStyle-editor.vue +26 -0
  372. package/src/components/xform/form-designer/setting-panel/property-editor/dsEnabled-editor.vue +25 -0
  373. package/src/components/xform/form-designer/setting-panel/property-editor/dsName-editor.vue +67 -0
  374. package/src/components/xform/form-designer/setting-panel/property-editor/echartHeight-editor.vue +24 -0
  375. package/src/components/xform/form-designer/setting-panel/property-editor/editable-editor.vue +24 -0
  376. package/src/components/xform/form-designer/setting-panel/property-editor/endPlaceholder-editor.vue +23 -0
  377. package/src/components/xform/form-designer/setting-panel/property-editor/entityTableCode-editor.vue +74 -0
  378. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +22 -0
  379. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAppendButtonClick-editor.vue +39 -0
  380. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onBeforeUpload-editor.vue +30 -0
  381. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onBlur-editor.vue +30 -0
  382. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onCancelButtonClick-editor.vue +30 -0
  383. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onChange-editor.vue +30 -0
  384. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onCheckChange-editor.vue +28 -0
  385. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +39 -0
  386. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onCreated-editor.vue +32 -0
  387. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onCreatedEnter-editor.vue +30 -0
  388. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onDialogBeforeClose-editor.vue +30 -0
  389. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onDialogOpened-editor.vue +30 -0
  390. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onFileRemove.vue +30 -0
  391. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onFocus-editor.vue +30 -0
  392. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onInput-editor.vue +30 -0
  393. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onLoadNode-editor.vue +30 -0
  394. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onMounted-editor.vue +30 -0
  395. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onNodeCheck-editor.vue +28 -0
  396. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onNodeClick-editor.vue +28 -0
  397. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onNodeContextmenu-editor.vue +28 -0
  398. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onOkButtonClick-editor.vue +30 -0
  399. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onRemoteQuery-editor.vue +30 -0
  400. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onResetTable-editor.vue +30 -0
  401. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSearchClear-editor.vue +30 -0
  402. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSearchConfirm-editor.vue +30 -0
  403. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSearchTable-editor.vue +30 -0
  404. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSubFormRowAdd-editor.vue +30 -0
  405. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSubFormRowChange-editor.vue +30 -0
  406. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSubFormRowDelete-editor.vue +30 -0
  407. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSubFormRowInsert-editor.vue +30 -0
  408. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onTreeLabelClick-editor.vue +28 -0
  409. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onUploadError-editor.vue +30 -0
  410. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onUploadSuccess-editor.vue +30 -0
  411. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onValidate-editor.vue +30 -0
  412. package/src/components/xform/form-designer/setting-panel/property-editor/field-accessUrl/accessUrl-editor.vue +70 -0
  413. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/addTableData-event-editor.vue +85 -0
  414. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/button-type-editor.vue +32 -0
  415. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/circle-editor.vue +24 -0
  416. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +73 -0
  417. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/icon-editor.vue +23 -0
  418. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/plain-editor.vue +24 -0
  419. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/round-editor.vue +24 -0
  420. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +161 -0
  421. package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/cascader-defaultValue-editor.vue +18 -0
  422. package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/cascader-multiple-editor.vue +24 -0
  423. package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/checkStrictly-editor.vue +23 -0
  424. package/src/components/xform/form-designer/setting-panel/property-editor/field-checkbox/checkbox-defaultValue-editor.vue +18 -0
  425. package/src/components/xform/form-designer/setting-panel/property-editor/field-color/color-defaultValue-editor.vue +25 -0
  426. package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +67 -0
  427. package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyNameEnabled-editor.vue +31 -0
  428. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +26 -0
  429. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +36 -0
  430. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-type-editor.vue +45 -0
  431. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-valueFormat-editor.vue +28 -0
  432. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/index.js +10 -0
  433. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +26 -0
  434. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +36 -0
  435. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-type-editor.vue +39 -0
  436. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-valueFormat-editor.vue +28 -0
  437. package/src/components/xform/form-designer/setting-panel/property-editor/field-divider/contentPosition-editor.vue +27 -0
  438. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +253 -0
  439. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +297 -0
  440. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +188 -0
  441. package/src/components/xform/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue +44 -0
  442. package/src/components/xform/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue +29 -0
  443. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +76 -0
  444. package/src/components/xform/form-designer/setting-panel/property-editor/field-number/controlsPosition-editor.vue +27 -0
  445. package/src/components/xform/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue +44 -0
  446. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +86 -0
  447. package/src/components/xform/form-designer/setting-panel/property-editor/field-radio/radio-defaultValue-editor.vue +18 -0
  448. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/allowHalf-editor.vue +23 -0
  449. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/highThreshold-editor.vue +24 -0
  450. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/lowThreshold-editor.vue +24 -0
  451. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +26 -0
  452. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-max-editor.vue +25 -0
  453. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/showScore-editor.vue +23 -0
  454. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/showText-editor.vue +23 -0
  455. package/src/components/xform/form-designer/setting-panel/property-editor/field-save-button/saveHandleEnabled-editor.vue +23 -0
  456. package/src/components/xform/form-designer/setting-panel/property-editor/field-script/script-editor.vue +286 -0
  457. package/src/components/xform/form-designer/setting-panel/property-editor/field-select/select-defaultValue-editor.vue +18 -0
  458. package/src/components/xform/form-designer/setting-panel/property-editor/field-slider/range-editor.vue +23 -0
  459. package/src/components/xform/form-designer/setting-panel/property-editor/field-slider/showStops-editor.vue +23 -0
  460. package/src/components/xform/form-designer/setting-panel/property-editor/field-slider/vertical-editor.vue +23 -0
  461. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/fontSize-editor.vue +23 -0
  462. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +23 -0
  463. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +205 -0
  464. package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/activeColor-editor.vue +23 -0
  465. package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/activeText-editor.vue +23 -0
  466. package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/inactiveColor-editor.vue +23 -0
  467. package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/inactiveText-editor.vue +23 -0
  468. package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/switch-defaultValue-editor.vue +25 -0
  469. package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/switchWidth-editor.vue +23 -0
  470. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +41 -0
  471. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +26 -0
  472. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +27 -0
  473. package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +26 -0
  474. package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +27 -0
  475. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchField-editor.vue +104 -0
  476. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +32 -0
  477. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabsearchConfigDialog.vue +569 -0
  478. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +21 -0
  479. package/src/components/xform/form-designer/setting-panel/property-editor/fileMaxSize-editor.vue +23 -0
  480. package/src/components/xform/form-designer/setting-panel/property-editor/filterable-editor.vue +23 -0
  481. package/src/components/xform/form-designer/setting-panel/property-editor/formField-editor.vue +25 -0
  482. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +52 -0
  483. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +717 -0
  484. package/src/components/xform/form-designer/setting-panel/property-editor/formulaEnabled-editor.vue +28 -0
  485. package/src/components/xform/form-designer/setting-panel/property-editor/hidden-editor.vue +23 -0
  486. package/src/components/xform/form-designer/setting-panel/property-editor/iconClass-editor.vue +50 -0
  487. package/src/components/xform/form-designer/setting-panel/property-editor/index.js +12 -0
  488. package/src/components/xform/form-designer/setting-panel/property-editor/isFullscreen-editor.vue +23 -0
  489. package/src/components/xform/form-designer/setting-panel/property-editor/label-editor.vue +30 -0
  490. package/src/components/xform/form-designer/setting-panel/property-editor/labelAlign-editor.vue +42 -0
  491. package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +23 -0
  492. package/src/components/xform/form-designer/setting-panel/property-editor/labelHidden-editor.vue +23 -0
  493. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +28 -0
  494. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +37 -0
  495. package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +23 -0
  496. package/src/components/xform/form-designer/setting-panel/property-editor/labelWidth-editor.vue +25 -0
  497. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +24 -0
  498. package/src/components/xform/form-designer/setting-panel/property-editor/listItems-editor.vue +53 -0
  499. package/src/components/xform/form-designer/setting-panel/property-editor/max-editor.vue +39 -0
  500. package/src/components/xform/form-designer/setting-panel/property-editor/maxLength-editor.vue +40 -0
  501. package/src/components/xform/form-designer/setting-panel/property-editor/min-editor.vue +40 -0
  502. package/src/components/xform/form-designer/setting-panel/property-editor/minLength-editor.vue +41 -0
  503. package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +24 -0
  504. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +24 -0
  505. package/src/components/xform/form-designer/setting-panel/property-editor/multipleSelect-editor.vue +24 -0
  506. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +101 -0
  507. package/src/components/xform/form-designer/setting-panel/property-editor/optionItems-editor.vue +37 -0
  508. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +24 -0
  509. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +23 -0
  510. package/src/components/xform/form-designer/setting-panel/property-editor/prefixIcon-editor.vue +23 -0
  511. package/src/components/xform/form-designer/setting-panel/property-editor/propertyMixin.js +53 -0
  512. package/src/components/xform/form-designer/setting-panel/property-editor/readonly-editor.vue +23 -0
  513. package/src/components/xform/form-designer/setting-panel/property-editor/remote-editor.vue +25 -0
  514. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +28 -0
  515. package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +24 -0
  516. package/src/components/xform/form-designer/setting-panel/property-editor/rows-editor.vue +24 -0
  517. package/src/components/xform/form-designer/setting-panel/property-editor/showFileList-editor.vue +23 -0
  518. package/src/components/xform/form-designer/setting-panel/property-editor/showPassword-editor.vue +24 -0
  519. package/src/components/xform/form-designer/setting-panel/property-editor/showText-editor.vue +23 -0
  520. package/src/components/xform/form-designer/setting-panel/property-editor/showWordLimit-editor.vue +23 -0
  521. package/src/components/xform/form-designer/setting-panel/property-editor/showbutton-editor.vue +23 -0
  522. package/src/components/xform/form-designer/setting-panel/property-editor/size-editor.vue +39 -0
  523. package/src/components/xform/form-designer/setting-panel/property-editor/space-editor-editor.vue +23 -0
  524. package/src/components/xform/form-designer/setting-panel/property-editor/startPlaceholder-editor.vue +23 -0
  525. package/src/components/xform/form-designer/setting-panel/property-editor/step-editor.vue +23 -0
  526. package/src/components/xform/form-designer/setting-panel/property-editor/styleTableClass-editor.vue +45 -0
  527. package/src/components/xform/form-designer/setting-panel/property-editor/styleTitClass-editor.vue +48 -0
  528. package/src/components/xform/form-designer/setting-panel/property-editor/submitFlag-editor.vue +23 -0
  529. package/src/components/xform/form-designer/setting-panel/property-editor/suffixIcon-editor.vue +23 -0
  530. package/src/components/xform/form-designer/setting-panel/property-editor/type-editor.vue +33 -0
  531. package/src/components/xform/form-designer/setting-panel/property-editor/uploadTip-editor.vue +24 -0
  532. package/src/components/xform/form-designer/setting-panel/property-editor/uploadURL-editor.vue +28 -0
  533. package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +48 -0
  534. package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +23 -0
  535. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +199 -0
  536. package/src/components/xform/form-designer/setting-panel/property-editor/widgetWidth-editor.vue +25 -0
  537. package/src/components/xform/form-designer/setting-panel/property-editor/withCredentials-editor.vue +23 -0
  538. package/src/components/xform/form-designer/setting-panel/property-editor-factory.js +173 -0
  539. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +319 -0
  540. package/src/components/xform/form-designer/toolbar-panel/index.vue +706 -0
  541. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +24 -0
  542. package/src/components/xform/form-designer/widget-panel/index.vue +321 -0
  543. package/src/components/xform/form-designer/widget-panel/indexMixin.js +18 -0
  544. package/src/components/xform/form-designer/widget-panel/templatesConfig.js +58 -0
  545. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2846 -0
  546. package/src/components/xform/form-render/container-item/container-item-wrapper.vue +37 -0
  547. package/src/components/xform/form-render/container-item/containerItemMixin.js +11 -0
  548. package/src/components/xform/form-render/container-item/data-table-item.vue +328 -0
  549. package/src/components/xform/form-render/container-item/data-table-mixin.js +18 -0
  550. package/src/components/xform/form-render/container-item/detail-h5-item.vue +172 -0
  551. package/src/components/xform/form-render/container-item/detail-item.vue +158 -0
  552. package/src/components/xform/form-render/container-item/detail-pane-item.vue +139 -0
  553. package/src/components/xform/form-render/container-item/grid-col-item.vue +127 -0
  554. package/src/components/xform/form-render/container-item/grid-item.vue +59 -0
  555. package/src/components/xform/form-render/container-item/h5-card-item.vue +120 -0
  556. package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +140 -0
  557. package/src/components/xform/form-render/container-item/h5-table-cell-item.vue +72 -0
  558. package/src/components/xform/form-render/container-item/h5-table-item.vue +73 -0
  559. package/src/components/xform/form-render/container-item/index.js +24 -0
  560. package/src/components/xform/form-render/container-item/list-h5-item.vue +922 -0
  561. package/src/components/xform/form-render/container-item/list-h5-item2.vue +1348 -0
  562. package/src/components/xform/form-render/container-item/panel-item.vue +99 -0
  563. package/src/components/xform/form-render/container-item/query-item.vue +98 -0
  564. package/src/components/xform/form-render/container-item/sub-form-item.vue +417 -0
  565. package/src/components/xform/form-render/container-item/tab-item.vue +88 -0
  566. package/src/components/xform/form-render/container-item/table-cell-item.vue +69 -0
  567. package/src/components/xform/form-render/container-item/table-column-item.vue +84 -0
  568. package/src/components/xform/form-render/container-item/table-item.vue +73 -0
  569. package/src/components/xform/form-render/container-item/table2-cell-item.vue +107 -0
  570. package/src/components/xform/form-render/container-item/table2-item.vue +229 -0
  571. package/src/components/xform/form-render/container-item/tree-item.vue +385 -0
  572. package/src/components/xform/form-render/container-item/tree-pane-item.vue +116 -0
  573. package/src/components/xform/form-render/container-item/vf-box-item.vue +103 -0
  574. package/src/components/xform/form-render/container-item/vf-dialog-item.vue +9 -0
  575. package/src/components/xform/form-render/dynamicDialogRender.js +7 -0
  576. package/src/components/xform/form-render/index.vue +89 -0
  577. package/src/components/xform/form-render/indexMixin.js +36 -0
  578. package/src/components/xform/form-render/refMixin.js +3 -0
  579. package/src/components/xform/lang/en-US.js +438 -0
  580. package/src/components/xform/lang/en-US_extension.js +26 -0
  581. package/src/components/xform/lang/en-US_render.js +38 -0
  582. package/src/components/xform/lang/zh-CN.js +593 -0
  583. package/src/components/xform/lang/zh-CN_extension.js +26 -0
  584. package/src/components/xform/lang/zh-CN_render.js +38 -0
  585. package/src/components/xform/mixins/defaultHandle.js +5 -0
  586. package/src/components/xform/mixins/scriptHttp.js +6 -0
  587. package/src/components/xform/utils/beautifierLoader.js +77 -0
  588. package/src/components/xform/utils/code-generator.js +91 -0
  589. package/src/components/xform/utils/config.js +11 -0
  590. package/src/components/xform/utils/debug-console.js +7 -0
  591. package/src/components/xform/utils/directive.js +74 -0
  592. package/src/components/xform/utils/emitter.js +44 -0
  593. package/src/components/xform/utils/format.js +214 -0
  594. package/src/components/xform/utils/formula.js +105 -0
  595. package/src/components/xform/utils/i18n.js +95 -0
  596. package/src/components/xform/utils/sfc-generator.js +583 -0
  597. package/src/components/xform/utils/smart-vue-i18n/index.js +69 -0
  598. package/src/components/xform/utils/smart-vue-i18n/utils.js +47 -0
  599. package/src/components/xform/utils/util.js +1 -0
  600. package/src/components/xform/utils/validators.js +5 -0
  601. package/src/components/xform/utils/vue2js-generator.js +144 -0
  602. package/src/components/xform/utils/vue3js-generator.js +70 -0
  603. package/src/components/xhsPrint/index.js +5 -0
  604. package/src/components/xhsPrint/index.vue +54 -0
  605. package/src/components/xhsPrint/mixins.js +3 -0
  606. package/src/directive/LimitNumber/index.js +1 -0
  607. package/src/directive/el-dialog-center/index.js +1 -0
  608. package/src/directive/el-drag-dialog/drag.js +1 -0
  609. package/src/directive/el-drag-dialog/index.js +14 -0
  610. package/src/directive/el-readonly/index.js +4 -0
  611. package/src/directive/permission/hasPermi.js +1 -0
  612. package/src/directive/permission/index.js +14 -0
  613. package/src/index.js +186 -0
  614. package/src/lang/index.js +51 -0
  615. package/src/mixins/mobile/common/index.js +19 -0
  616. package/src/mixins/mobile/edit/index.js +10 -0
  617. package/src/mixins/mobile/list/index.js +117 -0
  618. package/src/mixins/mobile/selectDialog/index.js +169 -0
  619. package/src/mixins/mobile/wf/index.js +173 -0
  620. package/src/mixins/selectDialog/index.js +8 -0
  621. package/src/mixins/tableTree/index.js +4 -0
  622. package/src/mixins/wf/index.js +6 -0
  623. package/src/permission.js +18 -0
  624. package/src/resources/js/base/common.js +110 -0
  625. package/src/store/getters.js +20 -0
  626. package/src/store/index.js +25 -0
  627. package/src/store/modules/permission.js +37 -0
  628. package/src/store/modules/settings.js +1 -0
  629. package/src/store/modules/tagsView.js +14 -0
  630. package/src/store/modules/user.js +28 -0
  631. package/src/utils/auth.js +1 -0
  632. package/src/utils/global.js +12 -0
  633. package/src/utils/index.js +7 -0
  634. package/src/utils/keepAlive.js +1 -0
  635. package/src/utils/request.js +29 -0
  636. package/src/utils/vab.js +27 -0
  637. package/src/utils/validate.js +1 -0
  638. package/src/utils/wf.js +21 -0
  639. package/src/views/bd/setting/bd_attach_setting/dialog.vue +161 -0
  640. package/src/views/bd/setting/bd_attach_setting/edit.vue +210 -0
  641. package/src/views/bd/setting/bd_attach_setting/list.vue +288 -0
  642. package/src/views/bd/setting/form_script/dialog.vue +253 -0
  643. package/src/views/bd/setting/form_script/edit.vue +201 -0
  644. package/src/views/bd/setting/form_script/edit1.vue +285 -0
  645. package/src/views/bd/setting/form_script/form_list.vue +342 -0
  646. package/src/views/bd/setting/form_script/list.vue +220 -0
  647. package/src/views/bd/setting/form_script/list1.vue +421 -0
  648. package/src/views/bd/setting/form_script/list2.vue +13 -0
  649. package/src/views/bd/setting/form_template/dialog.vue +205 -0
  650. package/src/views/bd/setting/form_template/edit.vue +292 -0
  651. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +131 -0
  652. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +175 -0
  653. package/src/views/bd/setting/form_template/itemEdit.vue +270 -0
  654. package/src/views/bd/setting/form_template/itemList.vue +300 -0
  655. package/src/views/bd/setting/form_template/list.vue +766 -0
  656. package/src/views/bd/setting/menu_kind/dialog.vue +216 -0
  657. package/src/views/bd/setting/menu_kind/list.vue +236 -0
  658. package/src/views/bd/setting/table_model/dialog.vue +161 -0
  659. package/src/views/bd/setting/table_model/edit.vue +1109 -0
  660. package/src/views/bd/setting/table_model/list.vue +467 -0
  661. package/src/views/bd/setting/table_model/zdDialog.vue +201 -0
  662. package/src/views/support/export_template/edit.vue +285 -0
  663. package/src/views/support/export_template/list.vue +272 -0
  664. package/src/views/user/access_log/edit.vue +121 -0
  665. package/src/views/user/access_log/list.vue +345 -0
  666. package/src/views/user/access_log/statistics_list.vue +284 -0
  667. package/src/views/user/api_request/edit.vue +233 -0
  668. package/src/views/user/api_request/list.vue +199 -0
  669. package/src/views/user/area/dialog.vue +448 -0
  670. package/src/views/user/area_attribute/configDialog.vue +319 -0
  671. package/src/views/user/area_attribute/edit.vue +245 -0
  672. package/src/views/user/area_attribute/list.vue +100 -0
  673. package/src/views/user/attachment/uploadDialog.vue +73 -0
  674. package/src/views/user/bill_setting/button/previewButton.vue +94 -0
  675. package/src/views/user/bill_setting/compareView.vue +27 -0
  676. package/src/views/user/bill_setting/edit.vue +237 -0
  677. package/src/views/user/bill_setting/h5_ModifyDialog.vue +75 -0
  678. package/src/views/user/bill_setting/h5_detailDialog.vue +74 -0
  679. package/src/views/user/bill_setting/h5_view.vue +56 -0
  680. package/src/views/user/bill_setting/itemViewDialog.vue +278 -0
  681. package/src/views/user/bill_setting/list.vue +342 -0
  682. package/src/views/user/bill_setting/mixins/wf.js +432 -0
  683. package/src/views/user/bill_setting/previewDialog.vue +61 -0
  684. package/src/views/user/bill_setting/queryDialog.vue +175 -0
  685. package/src/views/user/bill_setting/render.vue +2028 -0
  686. package/src/views/user/bill_setting/template.json +75 -0
  687. package/src/views/user/bill_setting/template2.json +254 -0
  688. package/src/views/user/bill_setting/userDialog.vue +149 -0
  689. package/src/views/user/code_rules/edit.vue +217 -0
  690. package/src/views/user/code_rules/list.vue +196 -0
  691. package/src/views/user/commMenu/index.vue +292 -0
  692. package/src/views/user/common_attribute/edit.vue +136 -0
  693. package/src/views/user/common_attribute/itemEdit.vue +237 -0
  694. package/src/views/user/common_attribute/list.vue +374 -0
  695. package/src/views/user/common_script/edit.vue +224 -0
  696. package/src/views/user/common_script/list.vue +342 -0
  697. package/src/views/user/company_info/dialog.vue +147 -0
  698. package/src/views/user/company_info/edit.vue +145 -0
  699. package/src/views/user/company_info/view.vue +24 -0
  700. package/src/views/user/country/dialog.vue +170 -0
  701. package/src/views/user/country/edit.vue +159 -0
  702. package/src/views/user/country/list.vue +187 -0
  703. package/src/views/user/data_type_setting/dialog.vue +160 -0
  704. package/src/views/user/data_type_setting/editDialog.vue +120 -0
  705. package/src/views/user/ea/eagroup/eaobj_list.vue +323 -0
  706. package/src/views/user/ea/eagroup/edit.vue +485 -0
  707. package/src/views/user/ea/eaobj/edit.vue +155 -0
  708. package/src/views/user/ea/eaobj/list.vue +143 -0
  709. package/src/views/user/error-page/401.vue +99 -0
  710. package/src/views/user/error-page/404.vue +228 -0
  711. package/src/views/user/extend_datasource/dialog.vue +245 -0
  712. package/src/views/user/extend_datasource/edit.vue +238 -0
  713. package/src/views/user/extend_datasource/list.vue +221 -0
  714. package/src/views/user/fieldTranslation/editDialog.vue +253 -0
  715. package/src/views/user/fieldTranslation/list.vue +464 -0
  716. package/src/views/user/field_values_invisible/edit.vue +184 -0
  717. package/src/views/user/field_values_invisible/list.vue +195 -0
  718. package/src/views/user/file_type/edit.vue +168 -0
  719. package/src/views/user/file_type/list.vue +255 -0
  720. package/src/views/user/file_type/userEdit.vue +188 -0
  721. package/src/views/user/file_view_area/edit.vue +145 -0
  722. package/src/views/user/file_view_area/itemEdit.vue +191 -0
  723. package/src/views/user/file_view_area/list.vue +330 -0
  724. package/src/views/user/file_view_ins/list.vue +929 -0
  725. package/src/views/user/file_view_ins/propertiesDialog.vue +218 -0
  726. package/src/views/user/form/form_ins_list/edit.vue +422 -0
  727. package/src/views/user/form/form_template/dialog.vue +205 -0
  728. package/src/views/user/form/form_template/edit.vue +211 -0
  729. package/src/views/user/form/form_template/itemEdit.vue +236 -0
  730. package/src/views/user/form/form_template/itemList.vue +221 -0
  731. package/src/views/user/form/form_template/list.vue +513 -0
  732. package/src/views/user/form/form_template_field/dialog.vue +161 -0
  733. package/src/views/user/form/form_type/dialog.vue +149 -0
  734. package/src/views/user/form/form_type/edit.vue +136 -0
  735. package/src/views/user/form/form_type/editDialog.vue +117 -0
  736. package/src/views/user/form/form_type/list.vue +132 -0
  737. package/src/views/user/form/report_requestaccess/dialog.vue +196 -0
  738. package/src/views/user/form/report_requestaccess/edit.vue +476 -0
  739. package/src/views/user/form/report_requestaccess/list.vue +187 -0
  740. package/src/views/user/form/vform/designer.vue +746 -0
  741. package/src/views/user/form/vform/formFieldMapping.js +172 -0
  742. package/src/views/user/form/vform/out_render.vue +53 -0
  743. package/src/views/user/form/vform/render.vue +140 -0
  744. package/src/views/user/form/view/edit.vue +37 -0
  745. package/src/views/user/form/view/list.vue +128 -0
  746. package/src/views/user/home/default.vue +969 -0
  747. package/src/views/user/home/distributor.vue +593 -0
  748. package/src/views/user/home/index.vue +75 -0
  749. package/src/views/user/language_setting/edit.vue +166 -0
  750. package/src/views/user/language_setting/list.vue +206 -0
  751. package/src/views/user/ledger_library/list.vue +30 -0
  752. package/src/views/user/ledger_library/private_list.vue +31 -0
  753. package/src/views/user/login/auth-redirect.vue +15 -0
  754. package/src/views/user/login/index.vue +129 -0
  755. package/src/views/user/login/indexMixin.js +398 -0
  756. package/src/views/user/menu/list.vue +568 -0
  757. package/src/views/user/mobile_menu/list.vue +318 -0
  758. package/src/views/user/notify_message/dialog.vue +92 -0
  759. package/src/views/user/notify_message/infoDialog.vue +77 -0
  760. package/src/views/user/notify_message/list.vue +461 -0
  761. package/src/views/user/notify_template/edit.vue +185 -0
  762. package/src/views/user/notify_template/list.vue +186 -0
  763. package/src/views/user/oplog/edit.vue +112 -0
  764. package/src/views/user/oplog/list.vue +153 -0
  765. package/src/views/user/outLink/form_view.vue +169 -0
  766. package/src/views/user/outLink/index.vue +47 -0
  767. package/src/views/user/outLink/view.vue +134 -0
  768. package/src/views/user/position/dialog.vue +153 -0
  769. package/src/views/user/position/edit.vue +152 -0
  770. package/src/views/user/position/list.vue +178 -0
  771. package/src/views/user/project_tag/dialog.vue +181 -0
  772. package/src/views/user/project_tag/edit.vue +135 -0
  773. package/src/views/user/project_tag/list.vue +167 -0
  774. package/src/views/user/push_setting/edit.vue +273 -0
  775. package/src/views/user/push_setting/list.vue +227 -0
  776. package/src/views/user/redirect/index.vue +12 -0
  777. package/src/views/user/role/dialog.vue +163 -0
  778. package/src/views/user/role/edit.vue +426 -0
  779. package/src/views/user/role/list.vue +169 -0
  780. package/src/views/user/sale_org/dialog.vue +204 -0
  781. package/src/views/user/sale_org/list.vue +601 -0
  782. package/src/views/user/sale_org/moveDialog.vue +289 -0
  783. package/src/views/user/sale_org_net/list.vue +574 -0
  784. package/src/views/user/system_notice/edit.vue +184 -0
  785. package/src/views/user/system_notice/infoDialog.vue +152 -0
  786. package/src/views/user/system_notice/list.vue +190 -0
  787. package/src/views/user/system_parameter/edit.vue +146 -0
  788. package/src/views/user/system_parameter/list.vue +128 -0
  789. package/src/views/user/user/dialog.vue +202 -0
  790. package/src/views/user/user/edit.vue +1019 -0
  791. package/src/views/user/user/info.vue +264 -0
  792. package/src/views/user/user/infoContent.vue +37 -0
  793. package/src/views/user/user/infoEdit.vue +220 -0
  794. package/src/views/user/user/infoIframeDialog.vue +45 -0
  795. package/src/views/user/user/inner_list.vue +16 -0
  796. package/src/views/user/user/list.vue +558 -0
  797. package/src/views/user/user/list2.vue +14 -0
  798. package/src/views/user/user/modifyPasswordDialog.vue +193 -0
  799. package/src/views/user/user/out_list.vue +16 -0
  800. package/src/views/user/wf/formCustDialog/list.vue +32 -0
  801. package/src/views/user/wf/iframe/dialog.vue +52 -0
  802. package/src/views/user/wf/iframe/index.vue +46 -0
  803. package/src/views/user/wf/iframe/index2.vue +59 -0
  804. package/src/views/user/wf/wf_auto_submit_data/edit.vue +119 -0
  805. package/src/views/user/wf/wf_auto_submit_data/edith.vue +128 -0
  806. package/src/views/user/wf/wf_auto_submit_data/list.vue +653 -0
  807. package/src/views/user/wf/wf_diy_attribute/edit.vue +202 -0
  808. package/src/views/user/wf/wf_manage/list.vue +667 -0
  809. package/src/views/user/wf/wf_manage/wfContentDialog.vue +106 -0
  810. package/src/views/user/wf/wf_obj_config/activiti_wf.vue +132 -0
  811. package/src/views/user/wf/wf_obj_config/dialog.vue +178 -0
  812. package/src/views/user/wf/wf_obj_config/edit.vue +204 -0
  813. package/src/views/user/wf/wf_obj_config/edit_form.vue +217 -0
  814. package/src/views/user/wf/wf_obj_config/itemEdit.vue +292 -0
  815. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +147 -0
  816. package/src/views/user/wf/wf_obj_config/list.vue +597 -0
  817. package/src/views/user/wf/wf_obj_config/list_form.vue +371 -0
  818. package/src/views/user/wf/wf_param/edit.vue +169 -0
  819. package/src/views/user/wf/wf_work_calendar/components/calendar.vue +355 -0
  820. package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +386 -0
  821. package/src/views/user/wf/wf_work_calendar/configDialog.vue +367 -0
  822. package/src/views/user/wf/wf_work_calendar/date.js +699 -0
  823. package/src/views/user/wf/wf_work_calendar/list.vue +229 -0
@@ -0,0 +1,1556 @@
1
+ <template>
2
+ <h5-card-pane label="流程信息">
3
+ <template #default>
4
+ <div class="flowPath-box">
5
+ <div class="t"><span>任务情况</span></div>
6
+ <div class="c">
7
+ <div class="name">
8
+ {{ (wfInfo.createDate ? wfInfo.createDate.substring(0, 10) : '') + wfInfo.name }}
9
+ <el-tag :type="getWfStatusType()" size="mini">{{ getWfStatusLabel() }}</el-tag>
10
+ </div>
11
+ </div>
12
+ <div class="m2">
13
+ <div class="t"><span>流程图</span></div>
14
+ <div class="c">
15
+ <el-button icon="" class="btn" @click="showPreviewDialog=true" icon="el-icon-view">查看流程图</el-button>
16
+ </div>
17
+ </div>
18
+ <div class="m2">
19
+ <div class="t"><span>任务情况</span></div>
20
+ <div class="c">
21
+ <el-button icon="" class="btn" @click="showRenwuDialog=true" icon="iconfont icon-preview">查看任务情况
22
+ </el-button>
23
+ </div>
24
+ </div>
25
+
26
+ </div>
27
+ <div class="flowPath-btns">
28
+ <el-button type="success" plain class="btn" @click="openAgreeDialog" v-show="wfInfo.toSubmit"
29
+ icon="iconfont icon-tongguo">{{ $t2('通过', 'components.wf.agree') }}
30
+ </el-button>
31
+ <el-button type="warning" plain class="btn" @click="openManualDialog" v-show="wfInfo.toInterrupt"
32
+ icon="iconfont icon-caozuozhongduan">{{ $t2('中断', 'components.wf.manual') }}
33
+ </el-button>
34
+ <el-button type="danger" plain class="btn" @click="rejectWfTask" v-show="wfInfo.toReject"
35
+ icon="iconfont icon-a-bohui1">{{ $t2('驳回', 'components.wf.reject') }}
36
+ </el-button>
37
+ <el-button type="primary" plain class="btn" @click="openChangeWfForm"
38
+ v-show="(wfInfo.toTransfer===null || wfInfo.toTransfer===undefined) ? wfInfo.toSubmit: wfInfo.toTransfer"
39
+ icon="iconfont icon-zhuanban">{{ $t2('转办', 'components.wf.transfer') }}
40
+ </el-button>
41
+ <el-button type="primary" plain class="btn" @click="openUrgingDialog" v-show="wfInfo.toInterrupt"
42
+ icon="iconfont icon-cuiban">{{ $t2('催办', 'components.wf.urging') }}
43
+ </el-button>
44
+ <el-button type="primary" plain class="btn" @click="openAddIncreaseSign" v-show="wfInfo.toAddIncreaseSign"
45
+ icon="el-icon-plus">{{ $t2('加签', 'components.wf.addIncreaseSign') }}
46
+ </el-button>
47
+ <el-button type="primary" plain class="btn" @click="openDeleteTaskUserDialog"
48
+ v-show="wfInfo.toDeleteIncreaseSign"
49
+ icon="el-icon-delete">{{ $t2('减签', 'components.wf.deleteIncreaseSign') }}
50
+ </el-button>
51
+ <el-button type="primary" plain class="btn" @click="openTalkDialog()"
52
+ icon="el-icon-chat-dot-square" v-if="toTalk && wfInfo.toLinkup">
53
+ {{ $t2('沟通', 'components.wf.talk') }}
54
+ </el-button>
55
+ <el-button type="primary" plain class="btn" @click="openSetCandidateDialog(null)"
56
+ v-show="wfInfo.toSetCandidate"
57
+ icon="el-icon-user">{{ $t2('修改候选人', 'components.wf.setCandidate') }}
58
+ </el-button>
59
+ <el-button type="danger" plain class="btn" @click="openRevokeDialog(null)"
60
+ v-show="wfInfo.toRevoke"
61
+ icon="el-icon-document-delete">{{ $t2('撤回', 'components.wf.revoke') }}
62
+ </el-button>
63
+ </div>
64
+ <div class="pop-box" v-if="showPreviewDialog">
65
+ <div>
66
+ <div class="header-box">
67
+ <i class="back el-icon-close" @click="showPreviewDialog=false"></i>流程图预览
68
+ </div>
69
+ <div class="flex" style="height:calc(100vh - 38px)">
70
+ <el-form label-position="top" class="form-box">
71
+ <div class="tit"><span>{{
72
+ (wfInfo.createDate ? wfInfo.createDate.substring(0, 10) : '') + wfInfo.name
73
+ }}</span></div>
74
+ <iframe style="width: 100%;flex:1" :src="wfImage"></iframe>
75
+ </el-form>
76
+ </div>
77
+ <div class="fixed-bottom-btns">
78
+ <el-button type="primary" plain class="btn" @click="showPreviewDialog=false" icon="el-icon-close">取 消
79
+ </el-button>
80
+ <el-button type="primary" class="btn" icon="el-icon-check" @click="showPreviewDialog=false">确 定
81
+ </el-button>
82
+ </div>
83
+ </div>
84
+ </div>
85
+
86
+ <div class="pop-box" v-if="showRenwuDialog">
87
+ <div>
88
+ <div class="header-box">
89
+ <i class="back el-icon-close" @click="showRenwuDialog=false"></i>任务情况预览
90
+ </div>
91
+ <div class="flex" style="height:calc(100vh - 38px);overflow:auto">
92
+ <div class="h5-process-info">
93
+ <div class="item" v-for="wftaskLineData in wftaskData" :key="wftaskLineData.id">
94
+ <div class="time">
95
+ {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(0, 10) : '' }}
96
+ <br/>
97
+ {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(11) : '' }}
98
+ </div>
99
+ <div class="status"
100
+ :class="taskStatuses[wftaskLineData.type]?taskStatuses[wftaskLineData.type].class:''">
101
+ {{ taskStatuses[wftaskLineData.type] ? taskStatuses[wftaskLineData.type].value : null }}
102
+ </div>
103
+ <i class="circle"></i>
104
+ <div class="info">
105
+ <p>
106
+ <span class="name">{{ wftaskLineData.taskName }}</span>
107
+ <span>{{ $t2('执行人', 'components.wf.approverName') }}:{{ wftaskLineData.approverName }}</span>
108
+ <span>
109
+ {{ $t2('候选人', 'components.wf.candidateName') }}:
110
+ <span class="">{{ wftaskLineData.candidateNames }}</span>
111
+ </span>
112
+ </p>
113
+ <p class="t"><span class="t1">{{ $t2('备注/意见', 'components.wf.opinion') }}:</span><span>{{
114
+ wftaskLineData.opinion
115
+ }}</span></p>
116
+ </div>
117
+ </div>
118
+ </div>
119
+ </div>
120
+ <div class="fixed-bottom-btns">
121
+ <el-button type="primary" plain class="btn" @click="showRenwuDialog=false" icon="el-icon-close">取 消
122
+ </el-button>
123
+ <el-button type="primary" class="btn" icon="el-icon-check" @click="showRenwuDialog=false">确 定
124
+ </el-button>
125
+ </div>
126
+ </div>
127
+ </div>
128
+
129
+ <div class="pop-tipsBox" style="display: block;" v-if="showWfManualDialog">
130
+ <div>
131
+ <i class="icon"></i>
132
+ <div class="cont">
133
+ <p class="name">
134
+ {{ $t2('流程中断', 'components.wf.wfManual') }}<span>—</span><b
135
+ class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
136
+ wfInfo.taskName
137
+ }}</b>
138
+ </p>
139
+ <p class="txt">{{ $t2('您确定要中断流程吗?', 'components.wf.manualTip') }}</p>
140
+ </div>
141
+ <div class="btns">
142
+ <el-button type="primary" class="btn" plain icon="el-icon-close" @click="showWfManualDialog = false">{{
143
+ $t2('取 消', 'system.button.cancel2')
144
+ }}
145
+ </el-button>
146
+ <el-button type="primary" class="btn" icon="el-icon-check" @click="manualEndWf()">{{
147
+ $t2('确 定', 'system.button.confirm2')
148
+ }}
149
+ </el-button>
150
+ </div>
151
+ </div>
152
+ </div>
153
+ <div class="pop-tipsBox" style="display: block;" v-if="rejectDialogVisible">
154
+ <div>
155
+ <i class="icon"></i>
156
+ <div class="cont">
157
+ <p class="name">{{ $t2('流程驳回', 'components.wf.wfReject') }}<span
158
+ >—</span><b
159
+ class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
160
+ wfInfo.taskName
161
+ }}</b></p>
162
+ <el-form label-position="top" class="form-box">
163
+ <el-form-item label="驳回节点" field="nodeId">
164
+ <el-select v-model="rejectForm.nodeId"
165
+ :placeholder="$t2('请选择驳回节点', 'components.wf.rejectNodePlaceholder')">
166
+ <el-option v-for="(rejectNode,index) in rejectNodes" :label="rejectNode.nodeName"
167
+ :value="rejectNode.nodeId" :key="index"></el-option>
168
+ </el-select>
169
+ </el-form-item>
170
+ <el-form-item label="驳回意见" field="opinion">
171
+ <el-input type="textarea" :rows="8"
172
+ :placeholder="$t2('请输入内容', 'components.wf.rejectOpinionPlaceholder')"
173
+ v-model="rejectForm.opinion" class="txt"></el-input>
174
+ </el-form-item>
175
+ </el-form>
176
+ </div>
177
+ <div class="btns">
178
+ <el-button type="primary" class="btn" plain icon="el-icon-close" @click="rejectDialogVisible = false">{{
179
+ $t2('取 消', 'system.button.cancel2')
180
+ }}
181
+ </el-button>
182
+ <el-button type="primary" class="btn" icon="el-icon-check" @click="subRejectForm()">{{
183
+ $t2('确 定', 'system.button.confirm2')
184
+ }}
185
+ </el-button>
186
+ </div>
187
+ </div>
188
+ </div>
189
+ <div class="pop-tipsBox" style="display: block;" v-if="agreeDialogVisible">
190
+ <div>
191
+ <i class="icon"></i>
192
+ <div class="cont">
193
+ <p class="name">{{ $t2('流程通过', 'components.wf.wfAgree') }}<span
194
+ >—</span><b
195
+ class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
196
+ wfInfo.taskName
197
+ }}</b></p>
198
+ <el-form label-position="top" class="form-box">
199
+ <el-form-item label="通过节点" field="nodeId">
200
+ <el-select v-model="agreeForm.nodeId"
201
+ :placeholder="$t2('请选择通过节点', 'components.wf.agreeNodePlaceholder')">
202
+ <el-option v-for="(node,index) in agreeNodes" :label="node.nodeName"
203
+ :value="node.nodeId" :key="index"></el-option>
204
+ </el-select>
205
+ </el-form-item>
206
+ <el-form-item label="通过意见" field="opinion">
207
+ <el-input type="textarea" :rows="8" :placeholder="$t2(`请填写您的意见~
208
+ 注:
209
+ 通过默认意见为“同意”
210
+ `, 'components.wf.agreeOpinionPlaceholder')" v-model="agreeForm.opinion"></el-input>
211
+ </el-form-item>
212
+ </el-form>
213
+ </div>
214
+ <div class="btns">
215
+ <el-button type="primary" class="btn" plain icon="el-icon-close" @click="agreeDialogVisible = false">{{
216
+ $t2('取 消', 'system.button.cancel2')
217
+ }}
218
+ </el-button>
219
+ <el-button type="primary" class="btn" icon="el-icon-check" @click="subAgreeForm()">{{
220
+ $t2('确 定', 'system.button.confirm2')
221
+ }}
222
+ </el-button>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ <div class="pop-tipsBox" style="display: block;" v-if="changeWfDialogVisible">
227
+ <div>
228
+ <i class="icon"></i>
229
+ <div class="cont">
230
+ <p class="name">{{ $t2('流程转办', 'components.wf.wfTransfer') }}<span>—</span><b
231
+ class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
232
+ wfInfo.taskName
233
+ }}</b></p>
234
+ <el-form label-position="top" class="form-box">
235
+ <el-form-item label="转办人" field="nodeId">
236
+ <el-input
237
+ class="search-input"
238
+ max="200"
239
+ v-model="changeWfForm.userNickNames"
240
+ @clear="
241
+ changeWfForm.userIds = '';
242
+ changeUserRows = [];
243
+ $forceUpdate();
244
+ "
245
+ v-el-readonly
246
+ clearable
247
+ >
248
+ <i slot="suffix" class="el-input__icon el-icon-search" @click="showUserDialog = true"></i>
249
+ </el-input>
250
+ </el-form-item>
251
+ <el-form-item label="转办意见" field="opinion">
252
+ <el-input type="textarea" :rows="8"
253
+ :placeholder="$t2('请输入内容', 'components.wf.transferOpinionPlaceholder')"
254
+ v-model="changeWfForm.opinion"></el-input>
255
+ </el-form-item>
256
+ </el-form>
257
+ </div>
258
+ <div class="btns">
259
+ <el-button type="primary" class="btn" plain @click="changeWfDialogVisible = false">{{
260
+ $t2('取 消', 'system.button.cancel2')
261
+ }}
262
+ </el-button>
263
+ <el-button type="primary" class="btn" @click="subChangeWfForm()">
264
+ {{ $t2('确认转办', 'components.wf.confirmTransfer') }}
265
+ </el-button>
266
+ </div>
267
+ </div>
268
+ </div>
269
+ <div class="pop-tipsBox" style="display: block;" v-if="showAddIncreaseSignDialog">
270
+ <div>
271
+ <i class="icon"></i>
272
+ <div class="cont">
273
+ <p class="name">
274
+ {{ $t2('流程加签', 'components.wf.wfAddIncreaseSign') }}<span>—</span><b
275
+ class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
276
+ wfInfo.taskName
277
+ }}</b>
278
+ </p>
279
+ <el-form label-position="top" class="form-box">
280
+ <el-form-item label="候选人">
281
+ <el-input
282
+ class="search-input"
283
+ max="200"
284
+ v-model="addIncreaseSignForm.userNickNames"
285
+ @clear="
286
+ addIncreaseSignUsers = [];
287
+ $forceUpdate();
288
+ "
289
+ :placeholder="$t2('候选人', 'components.wf.addIncreaseSignUser')"
290
+ v-el-readonly
291
+ clearable
292
+ >
293
+ <i slot="suffix" class="el-input__icon el-icon-search"
294
+ @click="showAddTaskUserDialog = true"></i>
295
+ </el-input>
296
+ </el-form-item>
297
+ <el-form-item label="加签意见" field="opinion">
298
+ <el-input type="textarea" :rows="8"
299
+ :placeholder="$t2('请输入内容', 'components.wf.addIncreaseSignOpinionPlaceholder')"
300
+ v-model="addIncreaseSignForm.opinion"></el-input>
301
+ </el-form-item>
302
+ </el-form>
303
+ </div>
304
+ <div class="btns">
305
+ <el-button type="primary" class="btn" plain @click="showAddIncreaseSignDialog = false">{{
306
+ $t2('取 消', 'system.button.cancel2')
307
+ }}
308
+ </el-button>
309
+ <el-button type="primary" class="btn" @click="submitAddTaskUserForm(0)">
310
+ {{ $t2('确认加签', 'components.wf.confirmAddIncreaseSign') }}
311
+ </el-button>
312
+ </div>
313
+ </div>
314
+ </div>
315
+
316
+ <user-dialog v-if="showUserDialog" :visiable.sync="showUserDialog" @close="showUserDialog = false"
317
+ @confirm="userConfirm" multi="true" :param.sync="wfUserParamForTransfer"
318
+ :rows="changeUserRows"></user-dialog>
319
+ <urgingDialog v-if="urgingDialogVisible" :visiable.sync="urgingDialogVisible" :wfInfo="wfInfo"
320
+ :current_prefix="current_prefix"
321
+ @confirm="reloadContent" multi="true"></urgingDialog>
322
+ <deleteTaskUserDialog v-if="showDeleteTaskUserDialog" :visiable.sync="showDeleteTaskUserDialog" :wfInfo="wfInfo"
323
+ :current_prefix="current_prefix"
324
+ @confirm="reloadContent" multi="true"></deleteTaskUserDialog>
325
+
326
+ <addTaskUserdialog v-if="showAddTaskUserDialog" :visiable.sync="showAddTaskUserDialog" :wfInfo="wfInfo"
327
+ :current_prefix="current_prefix" :rows.sync="addIncreaseSignUsers"
328
+ @confirm="confirmAddTaskUser" multi="true"
329
+ :param.sync="wfUserParamForAddSign"></addTaskUserdialog>
330
+ <user-dialog v-if="showTalkUserDialog" :visiable.sync="showTalkUserDialog" @close="showTalkUserDialog = false"
331
+ @confirm="confirmTalkUserDialog" multi="false" :param.sync="wfUserParamForTalk"></user-dialog>
332
+ <setCandidateDialog v-if="showSetCandidateDialog" :visiable.sync="showSetCandidateDialog"
333
+ @close="closeSetCandidateDialog"
334
+ :wfInfo="wfInfo"
335
+ :current_prefix="current_prefix"></setCandidateDialog>
336
+ </template>
337
+ </h5-card-pane>
338
+ </template>
339
+ <script>
340
+ import Vue from "vue";
341
+
342
+ import settingConfig from "@/settings";
343
+ import commonMixin from "../../../mixins/mobile/common/index";
344
+ import {getToken} from "../../../utils/auth";
345
+
346
+ let configUtil = {
347
+ baseUrl: process.env.VUE_APP_BASE_API,
348
+ getToken,
349
+ settingConfig,
350
+ Vue,
351
+ requireView: (url) => {
352
+ return require("../../../views" + url).default;
353
+ },
354
+ };
355
+
356
+ function appendPrevChildDom(parentDom, newDom) {
357
+ if (parentDom.hasChildNodes()) {
358
+ let currentDom = parentDom.children[0];
359
+ parentDom.insertBefore(newDom, currentDom);
360
+ } else {
361
+ parentDom.append(newDom);
362
+ }
363
+ }
364
+
365
+ function getTarget(t) {
366
+ return t.parentVue;
367
+ }
368
+
369
+ export default {
370
+ mixins: [commonMixin],
371
+ props: {
372
+ _wfInfo: Object,
373
+ _taskParam: Object,
374
+ wfOption: Object,
375
+ defaultShowWfContent: Boolean,
376
+ },
377
+ components: {
378
+ UserDialog: () => import('../../../views/mobile/user/user/dialog.vue'),
379
+ urgingDialog: () => import('./urgingDialog'),
380
+ deleteTaskUserDialog: () => import('./deleteTaskUserDialog'),
381
+ addTaskUserdialog: () => import('./addTaskUserdialog'),
382
+ setCandidateDialog: () => import('./setCandidateDialog')
383
+ },
384
+ computed: {
385
+ current_prefix() {
386
+ return this.serviceId ? "/" + this.serviceId : "";
387
+ },
388
+ viewTarget() {
389
+ return getTarget(this);
390
+ },
391
+ isHideWf() {
392
+ let that = this.viewTarget;
393
+ let _hideWf = that._hideWf || that.$attrs._hideWf;
394
+ return _hideWf === true || _hideWf === 'true';
395
+ }
396
+ },
397
+ data() {
398
+ let showWfFold =
399
+ settingConfig.showWfFold != null && settingConfig.showWfFold != undefined
400
+ ? settingConfig.showWfFold
401
+ : false;
402
+ let showWfContent =
403
+ showWfFold &&
404
+ settingConfig.defaultShowWfContent != null &&
405
+ settingConfig.defaultShowWfContent != undefined
406
+ ? settingConfig.defaultShowWfContent
407
+ : true;
408
+ if (
409
+ this.defaultShowWfContent != null &&
410
+ this.defaultShowWfContent != undefined
411
+ ) {
412
+ showWfContent = this.defaultShowWfContent;
413
+ }
414
+
415
+ return {
416
+ showRenwuDialog: false,
417
+ showDomContent: false,
418
+ showPreviewDialog: false,
419
+ objId: null,
420
+ wfCode: null,
421
+ serviceId: null,
422
+ parentVue: null,
423
+ wfConfig: null,
424
+
425
+ fileInfos: [],
426
+ showUserDialog: false,
427
+ showContent: true,
428
+ objTypeCode: "",
429
+ // objId: '',
430
+ wfInfo: {},
431
+ // currentTask: {},
432
+ taskParam: {},
433
+ wfImage: "",
434
+ wfStartBtn: false,
435
+ wfManualendBtn: false,
436
+ wfSubmitBtn: false,
437
+ wfRejectBtn: false,
438
+ changeHandlerBtn: false,
439
+ wftaskData: [],
440
+ allWfTaskOpinions: [],
441
+ vxeOption: {},
442
+ rejectNodes: [],
443
+ rejectDialogVisible: false,
444
+ rejectForm: {
445
+ rejectSubmitModel: null,
446
+ nodeId: null,
447
+ opinion: null,
448
+ },
449
+ formLabelWidth: "120px",
450
+ agreeDialogVisible: false,
451
+ agreeForm: {
452
+ opinion: this.$t2('同意', 'components.wf.defaultAgreeOption'),
453
+ nodeId: null,
454
+ },
455
+ changeWfDialogVisible: false,
456
+ changeWfForm: {},
457
+ changeUserRows: [],
458
+ taskStatuses: {
459
+ start: {
460
+ class: "blue",
461
+ value: this.$t2('开始', 'components.wf.startStatus'),
462
+ },
463
+ approve: {
464
+ class: "orgn",
465
+ value: this.$t2('待审批', 'components.wf.approveStatus'),
466
+ },
467
+ submit: {
468
+ class: "green",
469
+ value: this.$t2('同意', 'components.wf.submitStatus'),
470
+ },
471
+ reject: {
472
+ class: "red",
473
+ value: this.$t2('驳回', 'components.wf.rejectStatus'),
474
+ },
475
+ transfer: {
476
+ class: "green",
477
+ value: this.$t2('转办', 'components.wf.transferStatus'),
478
+ },
479
+ addIncreaseSign: {
480
+ class: "green",
481
+ value: this.$t2('加签', 'components.wf.addIncreaseSignStatus'),
482
+ },
483
+ revoke: {
484
+ class: "red",
485
+ value: this.$t2('撤回', 'components.wf.revokeStatus'),
486
+ },
487
+ end: {
488
+ class: "gray",
489
+ value: this.$t2('结束', 'components.wf.endStatus'),
490
+ },
491
+ },
492
+ opinion: "",
493
+ showWfFold: showWfFold,
494
+ showWfContent: showWfContent,
495
+
496
+ urgingForm: {},
497
+ urgingDialogVisible: false,
498
+ urgingUserIds: [],
499
+ urgingUsers: [],
500
+ agreeNodes: [],
501
+ showWfManualDialog: false,
502
+
503
+ showDeleteTaskUserDialog: false,
504
+ showAddTaskUserDialog: false,
505
+ wfUserParam: {},
506
+ wfUserParamForTransfer: {},//转办
507
+ wfUserParamForAddSign: {},//加签
508
+ wfUserParamForTalk: {},//沟通
509
+ tabIndex: "1",
510
+ linkupOption: {},
511
+ talkForm: {
512
+ receiverName: null,
513
+ content: null,
514
+ attachmentDTOs: [],
515
+ replyId: null
516
+ },
517
+ showTalkUserDialog: false,
518
+ showTalkDialog: false,
519
+ showFlowImg: true,
520
+ operateType: null,
521
+ addIncreaseSignUsers: [],
522
+ addIncreaseSignForm: {
523
+ userNickNames: null,
524
+ opinion: null
525
+ },
526
+ showAddIncreaseSignDialog: false,
527
+ showOpeaImg: true,
528
+ showSetCandidateDialog: false,
529
+ toTalk: false,
530
+ showAllWfOpinon: false,
531
+
532
+ revokeDialogVisible: false,
533
+ revokeForm: {opinion: null},
534
+ wfStatusMap: {
535
+ 1: {label: "审核中", type: "warning"},
536
+ 3: {label: "已驳回", type: "danger"},
537
+ 2: {label: "已完成", type: "success"}
538
+ }
539
+ };
540
+ },
541
+ provide() {
542
+ return {
543
+ getParentVue: () => {
544
+ return this.parentVue;
545
+ }
546
+ };
547
+ },
548
+ created() {
549
+ // this.wfInfo = this._wfInfo;
550
+ this.showFlowImg = settingConfig.expandWfImage === false ? false : true;
551
+ this.showAllWfOpinon = settingConfig.showAllWfOpinon === true;
552
+ },
553
+ mounted() {
554
+ this.init();
555
+ },
556
+ methods: {
557
+ getWfStatusLabel() {
558
+ return this.wfStatusMap[this.wfInfo.stat]?.label;
559
+ },
560
+ getWfStatusType() {
561
+ return this.wfStatusMap[this.wfInfo.stat]?.type;
562
+ },
563
+ init() {
564
+ let opt = this.wfOption;
565
+ this.objId = opt.objId;
566
+ this.wfCode = opt.wfCode;
567
+ this.serviceId = opt.serviceId;
568
+ this.parentVue = opt.parentVue;
569
+ this.wfConfig = this.wfOption;
570
+
571
+ let wfConfig = this.wfOption;
572
+ let that = getTarget(this);
573
+ let hasWf = false;
574
+ let wfInfo, currentTask, taskParam;
575
+ let option = {
576
+ objId: this.objId,
577
+ wfCode: this.wfCode
578
+ }
579
+ let current_prefix = this.current_prefix;
580
+
581
+ let initButton = () => {
582
+ /*return
583
+ this.$nextTick(() => {
584
+ that.$refs.wfButtonGroup.init({
585
+ taskParam,
586
+ wfInfo,
587
+ hasWf,
588
+ current_prefix,
589
+ wfConfig
590
+ });
591
+ });*/
592
+ }
593
+
594
+ this.initWfInfo(option, {
595
+ success: res => {
596
+ if (res.objx && res.objx.procInstId) {
597
+ hasWf = true;
598
+ wfInfo = res.objx;
599
+ this.wfInfo = wfInfo;
600
+ // this.showDomContent = true;
601
+
602
+ if (wfInfo.taskId) {
603
+ this.getTaskParams(wfInfo.taskId, {
604
+ success: res2 => {
605
+ taskParam = res2.objx || {};
606
+ taskParam.objId = option.objId;
607
+ this.taskParam = taskParam;
608
+
609
+ initButton();
610
+ }
611
+ });
612
+ } else {
613
+ initButton();
614
+ }
615
+ this.initOperateType();
616
+ this.initForAll();
617
+ } else {
618
+ initButton();
619
+ }
620
+ }
621
+ });
622
+ },
623
+ initWfInfo(option, httpConfig) {
624
+
625
+ let that = getTarget(this);
626
+ let id = option.objId;
627
+ let code = option.wfCode;
628
+ return that.$http({
629
+ url: this.current_prefix + '/wf/getWfInfo',
630
+ method: `post`,
631
+ data: {
632
+ objTypeCode: code,
633
+ objId: id
634
+ },
635
+ isLoading: true,
636
+ modalStrictly: true,
637
+ ...httpConfig
638
+ });
639
+ },
640
+ getTaskParams(taskId, httpConfig) {
641
+ let that = getTarget(this);
642
+ return that.$http({
643
+ url: this.current_prefix + '/wf/getTaskVariables',
644
+ method: `post`,
645
+ data: {
646
+ stringOne: taskId
647
+ },
648
+ isLoading: true,
649
+ modalStrictly: true,
650
+ ...httpConfig
651
+ });
652
+ },
653
+
654
+
655
+ initOperateType() {
656
+ if (this.operateType) {
657
+ let wfInfo = this.wfInfo;
658
+ if (wfInfo.toSubmit) {
659
+ this.openAgreeDialog('submit');
660
+ } else if (wfInfo.toReject) {
661
+ this.rejectWfTask('reject');
662
+ } else if (wfInfo.toAddIncreaseSign) {
663
+ this.openAddIncreaseSign('addIncreaseSign')
664
+ } else if (wfInfo.toRevoke) {
665
+ this.openRevokeDialog('revoke')
666
+ } else if (wfInfo.toLinkup) {
667
+ this.openTalkDialog(null, null, 'talk');
668
+ } else {
669
+ this.operateType = null;
670
+ }
671
+ }
672
+ },
673
+ initForAll() {
674
+ let that = getTarget(this);
675
+ this.initWf(() => {
676
+ if (this.wfInfo.procInstId) {
677
+ this.initCurrentTask(this.wfInfo.procInstId, () => {
678
+ this.initWftask(this.wfInfo.procInstId);
679
+ this.getAllWfTaskOpinions();
680
+ });
681
+ this.initWfUserParam();
682
+ this.initTabIndex();
683
+ }
684
+ });
685
+ },
686
+ initTabIndex() {
687
+ let that = getTarget(this);
688
+ that.$http({
689
+ url: USER_PREFIX + "/wf_diy_attribute/getValue",
690
+ method: `post`,
691
+ data: {attributeKey: "param7"},
692
+ isLoading: true,
693
+ success: (res) => {
694
+ let val = res !== null ? res.objx === true : false;
695
+ this.toTalk = val;
696
+ let flag = false;
697
+ if (val) {
698
+ let flag1 = that.$attrs._isNotifyMessage == true || that.$attrs._isNotifyMessage == "true";
699
+ if (flag1) {
700
+ this.tabIndex = "2";
701
+ }
702
+ if (settingConfig.autoOpenWfLinkup) {
703
+ flag = true;
704
+ let flag2 = that.$attrs._wfNotifyType == "wfLinkup";
705
+ let flag3 = flag1 && flag2;
706
+ if (flag3) {
707
+ this.$nextTick(() => {
708
+ let wfTabPane = this.$refs.wfTabPane;
709
+ if (!wfTabPane.showContent) {
710
+ wfTabPane.handleFold();
711
+ }
712
+ });
713
+ }
714
+ }
715
+ }
716
+ this.initLinkup(flag);
717
+ }
718
+ });
719
+
720
+ },
721
+ initWf(done) {
722
+ var data = this.wfInfo;
723
+ if (data && data.procInstId) {
724
+ /** 流程状态:0未启动,1审核中,2已完成,3驳回,4中断 */
725
+ var statuses = {
726
+ 1: '<span class="tag">' + this.$t2('审核中', 'components.wf.wfStatus1') + '</span>',
727
+ 3: '<span class="tag red">' + this.$t2('已驳回', 'components.wf.wfStatus2') + '</span>',
728
+ 2: '<span class="tag green">' + this.$t2('已完成', 'components.wf.wfStatus3') + '</span>',
729
+ };
730
+ var statusStr = "";
731
+ if (data.stat != null) {
732
+ statusStr = statuses[data.stat] || "";
733
+ }
734
+ data.statusStr = statusStr;
735
+ this.wfInfo = data;
736
+
737
+ this.wfStartBtn = false;
738
+ if (data.status != 2 && data.starterId) {
739
+ this.wfManualendBtn = true;
740
+ }
741
+ this.wfSubmitBtn = false;
742
+ this.wfRejectBtn = false;
743
+
744
+ var url =
745
+ this.current_prefix +
746
+ "/wf/flowImage?procInstId=" +
747
+ data.procInstId +
748
+ "&_r=" +
749
+ Math.random() +
750
+ "&access_token=" +
751
+ configUtil.getToken();
752
+ this.wfImage = configUtil.baseUrl + url;
753
+ done();
754
+ }
755
+ },
756
+ initCurrentTask(procInstId, done) {
757
+ if (this.wfInfo.taskId) {
758
+ this.wfSubmitBtn = true;
759
+ this.wfRejectBtn = true;
760
+ this.changeHandlerBtn = true;
761
+ }
762
+ done();
763
+ },
764
+ initWftask(procInstId) {
765
+ let that = getTarget(this);
766
+ that.$http({
767
+ url: this.current_prefix + "/wf/getWfTaskOpinionMerge",
768
+ data: {
769
+ stringOne: procInstId,
770
+ },
771
+ method: "post",
772
+ isLoading: true,
773
+ modalStrictly: true,
774
+ success: (resultmsg) => {
775
+ var datas = resultmsg.objx || [];
776
+ this.wftaskData = datas;
777
+ },
778
+ });
779
+ },
780
+ getAllWfTaskOpinions() {
781
+ if (!this.showAllWfOpinon) {
782
+ return;
783
+ }
784
+ let that = getTarget(this);
785
+ let wfInfo = this.wfInfo;
786
+ that.$http({
787
+ url: this.current_prefix + "/wf/getAllWfTaskOpinions",
788
+ data: {
789
+ objId: wfInfo.objId,
790
+ objTypeCode: wfInfo.objTypeCode
791
+ },
792
+ method: "post",
793
+ isLoading: true,
794
+ modalStrictly: true,
795
+ success: (resultmsg) => {
796
+ var datas = resultmsg.objx || [];
797
+ this.allWfTaskOpinions = datas;
798
+ },
799
+ });
800
+ },
801
+ openManualDialog(operateType) {
802
+ this.operateType = operateType;
803
+ this.showWfManualDialog = true;
804
+ },
805
+ manualEndWf() {
806
+ this.showWfManualDialog = false;
807
+ let that = getTarget(this);
808
+ var procInstId = this.wfInfo.procInstId;
809
+ var taskId = this.wfInfo.taskId ? this.wfInfo.taskId : "";
810
+ var data = JSON.stringify({
811
+ uuid: this.wfInfo.uuid,
812
+ });
813
+ that.$http({
814
+ url: this.current_prefix + "/wf/interrupt",
815
+ data: data,
816
+ method: "post",
817
+ headers: {
818
+ "Content-Type": "application/json;charset=utf-8",
819
+ },
820
+ isLoading: true,
821
+ success: (resultMsg) => {
822
+ that.$message({
823
+ message: resultMsg.content,
824
+ type: "success",
825
+ duration: 500,
826
+ onClose: (t) => {
827
+ this.reloadContent();
828
+ this.closeWinOnCheck(3);
829
+ },
830
+ });
831
+ },
832
+ });
833
+ },
834
+ async rejectWfTask(operateType) {
835
+ let that = getTarget(this);
836
+ var procInstId = this.wfInfo.procInstId;
837
+ var taskId = this.wfInfo.taskId;
838
+ var destinations = [];
839
+
840
+ await that.$http({
841
+ url: this.current_prefix + "/wf/getPreIncomeNodes",
842
+ data: {
843
+ stringOne: taskId,
844
+ },
845
+ method: "post",
846
+ //contentType: 'application/json;charset=utf-8',
847
+ isLoading: true,
848
+ success: (resultMsg) => {
849
+ destinations = (resultMsg.objx || []).reverse();
850
+ },
851
+ });
852
+
853
+ if (destinations == null) {
854
+ return false;
855
+ }
856
+ if (destinations.length == 0) {
857
+ that.$message({
858
+ message: this.$t2('无法驳回,没有目标节点', 'components.wf.rejectWarnMsg1'),
859
+ type: "error",
860
+ duration: 2 * 1000,
861
+ });
862
+ return false;
863
+ }
864
+ this.operateType = operateType;
865
+
866
+ this.rejectForm.rejectSubmitModel = this.wfInfo.toRejectNode == false ? 2 : null
867
+ this.rejectForm.nodeId = destinations[0].nodeId;
868
+ this.rejectForm.opinion = "";
869
+ this.rejectNodes = destinations;
870
+ this.rejectDialogVisible = true;
871
+ },
872
+ subRejectForm() {
873
+ let that = getTarget(this);
874
+ var procInstId = this.wfInfo.procInstId;
875
+ var taskId = this.wfInfo.taskId;
876
+
877
+ if (!this.rejectForm.nodeId) {
878
+ that.$message({
879
+ message: this.$t2('请选择驳回节点', 'components.wf.rejectWarnMsg2'),
880
+ type: "error",
881
+ duration: 2 * 1000,
882
+ });
883
+ return false;
884
+ }
885
+
886
+ if (!this.rejectForm.opinion) {
887
+ that.$message({
888
+ message: this.$t2('请输入驳回意见', 'components.wf.rejectWarnMsg3'),
889
+ type: "error",
890
+ duration: 2 * 1000,
891
+ });
892
+ return false;
893
+ }
894
+
895
+ var data = JSON.stringify({
896
+ taskId: taskId,
897
+ uuid: this.wfInfo.uuid,
898
+ nodeId: this.rejectForm.nodeId,
899
+ suggestion: this.rejectForm.opinion,
900
+ rejectSubmitModel: this.rejectForm.rejectSubmitModel
901
+ });
902
+ this.rejectDialogVisible = false;
903
+ that.$http({
904
+ url: this.current_prefix + "/wf/reject",
905
+ data: data,
906
+ method: "post",
907
+ headers: {
908
+ "Content-Type": "application/json;charset=utf-8",
909
+ },
910
+ isLoading: true,
911
+ success: (resultMsg) => {
912
+ that.$message({
913
+ message: resultMsg.content,
914
+ type: "success",
915
+ duration: 500,
916
+ onClose: (t) => {
917
+ this.reloadContent();
918
+ this.closeWinOnCheck(2);
919
+ },
920
+ });
921
+ },
922
+ });
923
+ },
924
+ openAgreeDialog(operateType) {
925
+ this.operateType = operateType;
926
+ let that = getTarget(this);
927
+ this.agreeForm = {
928
+ opinion: this.$t2('同意', 'components.wf.defaultAgreeOption'),
929
+ nodeId: null,
930
+ };
931
+ this.agreeNodes = [];
932
+ that.$http({
933
+ url: this.current_prefix + "/wf/getNextOutgoingNodes",
934
+ data: {
935
+ stringOne: this.wfInfo.taskId,
936
+ },
937
+ method: "post",
938
+ isLoading: true,
939
+ success: (res) => {
940
+ let nodes = res.objx || [];
941
+ /*if (tq == true) {
942
+ nodes.reverse();
943
+ }*/
944
+ if (nodes.length) {
945
+ this.agreeForm.nodeId = nodes[0].nodeId;
946
+ }
947
+ this.agreeNodes = nodes;
948
+ this.agreeDialogVisible = true;
949
+ },
950
+ });
951
+ },
952
+ subAgreeForm() {
953
+ let wfConfig = this.wfConfig;
954
+ let done = () => {
955
+ this.subAgreeHandle();
956
+ }
957
+ if (wfConfig.onBeforeAgree) {
958
+ wfConfig.onBeforeAgree(done)
959
+ } else {
960
+ done();
961
+ }
962
+ },
963
+ subAgreeHandle() {
964
+ let that = getTarget(this);
965
+ let nodeId = null;
966
+ if (this.agreeNodes.length) {
967
+ if (!this.agreeForm.nodeId) {
968
+ that.$message({
969
+ message: this.$t2('请选择节点', 'components.wf.agreeWarnMsg1'),
970
+ type: "error",
971
+ duration: 2 * 1000,
972
+ });
973
+ return;
974
+ }
975
+ nodeId = this.agreeForm.nodeId;
976
+ }
977
+
978
+ var procInstId = this.wfInfo.procInstId;
979
+ var taskId = this.wfInfo.taskId;
980
+ var memo = this.agreeForm.opinion || this.$t2('同意', 'components.wf.defaultAgreeOption');
981
+ var data = JSON.stringify({
982
+ taskId: taskId,
983
+ uuid: this.wfInfo.uuid,
984
+ suggestion: memo,
985
+ nodeId: nodeId,
986
+ });
987
+ this.agreeDialogVisible = false;
988
+ that.$http({
989
+ url: this.current_prefix + "/wf/submit",
990
+ data: data,
991
+ method: "post",
992
+ headers: {
993
+ "Content-Type": "application/json;charset=utf-8",
994
+ },
995
+ isLoading: true,
996
+ success: (resultMsg) => {
997
+ if (resultMsg.objx && resultMsg.objx.code == "999999") {
998
+ this.errorSubmit({
999
+ taskId: taskId,
1000
+ uuid: this.wfInfo.uuid,
1001
+ suggestion: memo,
1002
+ errorMsg: resultMsg.objx.errorMsg
1003
+ });
1004
+ } else {
1005
+ that.$message({
1006
+ message: resultMsg.content,
1007
+ type: "success",
1008
+ duration: 500,
1009
+ onClose: (t) => {
1010
+ this.reloadContent();
1011
+ this.closeWinOnCheck(1);
1012
+ },
1013
+ });
1014
+ }
1015
+ },
1016
+ });
1017
+ },
1018
+ errorSubmit(data) {
1019
+ let that = getTarget(this);
1020
+ that.$http({
1021
+ url: this.current_prefix + "/wf/errorSubmit",
1022
+ data: data,
1023
+ method: "post",
1024
+ isLoading: true,
1025
+ success: (resultMsg) => {
1026
+ that.$message({
1027
+ message: resultMsg.content,
1028
+ type: "success",
1029
+ duration: 500,
1030
+ onClose: (t) => {
1031
+ this.reloadContent();
1032
+ this.closeWinOnCheck(1);
1033
+ },
1034
+ });
1035
+ },
1036
+ });
1037
+ },
1038
+ openChangeWfForm(operateType) {
1039
+ this.operateType = operateType;
1040
+ this.changeWfDialogVisible = true;
1041
+ this.changeUserRows = [];
1042
+ this.changeWfForm = {
1043
+ userIds: [],
1044
+ userNickNames: null,
1045
+ opinion: null,
1046
+ };
1047
+ },
1048
+ subChangeWfForm() {
1049
+ let that = getTarget(this);
1050
+ var procInstId = this.wfInfo.procInstId;
1051
+ var taskId = this.wfInfo.taskId;
1052
+
1053
+ var userIds = this.changeWfForm.userIds || [];
1054
+ var opinion = this.changeWfForm.opinion || null;
1055
+
1056
+ if (!userIds.length) {
1057
+ that.$message({
1058
+ message: this.$t2('请选择转办人', 'components.wf.transferWarnMsg1'),
1059
+ type: "error",
1060
+ duration: 2000,
1061
+ onClose: (t) => {
1062
+ },
1063
+ });
1064
+ return false;
1065
+ }
1066
+
1067
+ var data = JSON.stringify({
1068
+ taskId: taskId,
1069
+ uuid: this.wfInfo.uuid,
1070
+ transferTo: userIds,
1071
+ suggestion: opinion,
1072
+ });
1073
+ this.changeWfDialogVisible = false;
1074
+ that.$http({
1075
+ url: this.current_prefix + "/wf/transfer",
1076
+ data: data,
1077
+ method: "post",
1078
+ headers: {
1079
+ "Content-Type": "application/json;charset=utf-8",
1080
+ },
1081
+ isLoading: true,
1082
+ success: (resultMsg) => {
1083
+ that.$message({
1084
+ message: resultMsg.content,
1085
+ type: "success",
1086
+ duration: 500,
1087
+ onClose: (t) => {
1088
+ this.reloadContent();
1089
+ this.closeWinOnCheck(4);
1090
+ },
1091
+ });
1092
+ },
1093
+ });
1094
+ },
1095
+ userConfirm(rows) {
1096
+ if (rows.length > 0) {
1097
+ let changeUserRows = this.changeUserRows;
1098
+ let ids = changeUserRows.map((changeUserRow) => changeUserRow.id);
1099
+ let addRows = rows.filter((row) => !ids.includes(row.id));
1100
+ changeUserRows.push(...addRows);
1101
+
1102
+ let row = rows[0];
1103
+ this.changeWfForm.userIds = changeUserRows.map(
1104
+ (changeUserRow) => changeUserRow.id
1105
+ );
1106
+ this.changeWfForm.userNickNames = changeUserRows
1107
+ .map((changeUserRow) => changeUserRow.nickName)
1108
+ .join(",");
1109
+ }
1110
+ },
1111
+ reloadContent() {
1112
+ let that = getTarget(this);
1113
+ that.$baseReload();
1114
+ },
1115
+ closeWinOnCheck(flag) {
1116
+ //_closeWindowOnCheck=true, 1提交,2驳回,3中断,4转办时,5沟通 关闭窗口
1117
+ let that = getTarget(this);
1118
+ let _closeWindowOnCheck = that.$attrs._closeWindowOnCheck || that._closeWindowOnCheck;
1119
+ if (_closeWindowOnCheck === true || _closeWindowOnCheck === "true") {
1120
+ window.close && window.close();
1121
+ }
1122
+ let _handleCallback = that.$attrs._handleCallback || that._handleCallback;
1123
+ _handleCallback && _handleCallback(flag);
1124
+ },
1125
+ manualCallback() {
1126
+ this.$emit("manualCallback");
1127
+ },
1128
+ openUrgingDialog(operateType) {
1129
+ this.operateType = operateType;
1130
+ this.urgingDialogVisible = true;
1131
+ },
1132
+ openDeleteTaskUserDialog(operateType) {
1133
+ this.operateType = operateType;
1134
+ this.showDeleteTaskUserDialog = true;
1135
+ },
1136
+ openAddTaskUserDialog(operateType) {
1137
+ this.operateType = operateType;
1138
+ this.showAddTaskUserDialog = true;
1139
+ },
1140
+ openAddIncreaseSign(operateType) {
1141
+ this.operateType = operateType;
1142
+ this.addIncreaseSignUsers = [];
1143
+ this.addIncreaseSignForm = {userNickNames: null};
1144
+ this.showAddIncreaseSignDialog = true;
1145
+ },
1146
+ initWfUserParam(callback) {
1147
+ this.initTransferUserParam();//转办
1148
+ this.initAddSignUserParam();//加签
1149
+ this.initTalkUserParam();//沟通
1150
+ },
1151
+ //
1152
+ initTransferUserParam(callback) {
1153
+ //初始化转办用户参数
1154
+ let that = getTarget(this);
1155
+ return that.$http({
1156
+ url: USER_PREFIX + "/wf_diy_attribute/getValue",
1157
+ method: `post`,
1158
+ data: {attributeKey: "param1"},
1159
+ isLoading: true,
1160
+ modalStrictly: true,
1161
+ success: (res) => {
1162
+ this.wfUserParamForTransfer = res.objx || {};
1163
+ callback && callback();
1164
+ },
1165
+ });
1166
+ },
1167
+ initAddSignUserParam(callback) {
1168
+ //初始化加签用户参数
1169
+ let that = getTarget(this);
1170
+ return that.$http({
1171
+ url: USER_PREFIX + "/wf_diy_attribute/getValue",
1172
+ method: `post`,
1173
+ data: {attributeKey: "param2"},
1174
+ isLoading: true,
1175
+ modalStrictly: true,
1176
+ success: (res) => {
1177
+ this.wfUserParamForAddSign = res.objx || {};
1178
+ callback && callback();
1179
+ },
1180
+ });
1181
+ },
1182
+ initTalkUserParam(callback) {
1183
+ //初始化沟通用户参数
1184
+ let that = getTarget(this);
1185
+ return that.$http({
1186
+ url: USER_PREFIX + "/wf_diy_attribute/getValue",
1187
+ method: `post`,
1188
+ data: {attributeKey: "param3"},
1189
+ isLoading: true,
1190
+ modalStrictly: true,
1191
+ success: (res) => {
1192
+ this.wfUserParamForTalk = res.objx || {};
1193
+ callback && callback();
1194
+ },
1195
+ });
1196
+ },
1197
+ //
1198
+ resetLinkup() {
1199
+ this.formData = {};
1200
+ this.$refs["table-linkup"].commitProxy("reload");
1201
+ },
1202
+ searchLinkup() {
1203
+ this.$refs["table-linkup"].commitProxy("reload");
1204
+ },
1205
+ initLinkup(flag) {
1206
+ return
1207
+ let h = this.$createElement;
1208
+ let statusMap = {
1209
+ 0: this.$t2('未完成', 'components.wf.talkStatus0'),
1210
+ 1: this.$t2('已完成', 'components.wf.talkStatus1'),
1211
+ 2: this.$t2('已取消', 'components.wf.talkStatus2')
1212
+ };
1213
+ let tableOption = {
1214
+ vue: this,
1215
+ tableRef: "table-linkup",
1216
+ tableName: "wf_table-linkup",
1217
+ path: this.current_prefix + "/wf_linkup/listPage",
1218
+ param: () => {
1219
+ return {
1220
+ uuid: this.wfInfo.uuid,
1221
+ };
1222
+ },
1223
+ config: {
1224
+ height: 350
1225
+ },
1226
+ columns: [
1227
+ {type: "checkbox", width: 48, resizable: false, fixed: "left"},
1228
+ {
1229
+ title: this.$t2('任务名称', 'components.wf.taskName'),
1230
+ field: "taskName",
1231
+ width: 150,
1232
+ fixed: "left",
1233
+ },
1234
+ {
1235
+ title: this.$t2('发送人', 'components.wf.senderName'),
1236
+ field: "senderName",
1237
+ width: 150,
1238
+ slots: {
1239
+ default: "sender",
1240
+ },
1241
+ },
1242
+ {
1243
+ title: this.$t2('接收人', 'components.wf.receiverName'),
1244
+ field: "receiverName",
1245
+ width: 150,
1246
+ slots: {
1247
+ default: "receiver",
1248
+ },
1249
+ },
1250
+ {
1251
+ title: this.$t2('沟通内容', 'components.wf.talkContent'),
1252
+ field: "content",
1253
+ width: 250,
1254
+ showOverflow: false,
1255
+ slots: {
1256
+ default: ({row, rowIndex}) => {
1257
+ return row.replyId ? ("[" + this.$t2('回复', 'components.wf.reply') + "]" + row.content) : row.content;
1258
+ },
1259
+ },
1260
+ },
1261
+ {
1262
+ width: 150,
1263
+ title: this.$t2('沟通资料', 'components.wf.talkAttachment'),
1264
+ field: "attachmentImage",
1265
+ sortable: false,
1266
+ slots: {
1267
+ default: ({row, rowIndex}) => {
1268
+ let option = {
1269
+ title: this.$t2('沟通资料', 'components.wf.talkAttachment'),
1270
+ edit: false,
1271
+ rows: (done) => {
1272
+ done(row.attachmentDTOs);
1273
+ },
1274
+ };
1275
+ return [
1276
+ h("base-attachment", {
1277
+ props: {
1278
+ option: option,
1279
+ },
1280
+ }),
1281
+ ];
1282
+ },
1283
+ },
1284
+ },
1285
+
1286
+ {
1287
+ title: this.$t2('状态', 'components.wf.status'),
1288
+ field: "status",
1289
+ width: 150,
1290
+ slots: {
1291
+ default: ({row, rowIndex}) => {
1292
+ return statusMap[row.status] || "";
1293
+ },
1294
+ },
1295
+ },
1296
+ {
1297
+ title: this.$t2('创建时间', 'system.label.createDate'),
1298
+ field: "createDate",
1299
+ width: 150,
1300
+ },
1301
+ {
1302
+ width: 80,
1303
+ fixed: "right",
1304
+ title: "",
1305
+ sortable: false,
1306
+ slots: {
1307
+ default: "operate"
1308
+ }
1309
+ },
1310
+ ],
1311
+ callback: (rows) => {
1312
+ if (rows.length && flag) {
1313
+ let row = rows[0];
1314
+ if (row.replyToSender) {
1315
+ this.$nextTick(() => {
1316
+ this.tabIndex = "2";
1317
+ this.openTalkDialog(row.sender, row.senderName, 'talk', 1, row.id)
1318
+ });
1319
+ }
1320
+ }
1321
+ }
1322
+ };
1323
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
1324
+ this.linkupOption = opts;
1325
+ });
1326
+ },
1327
+ cancelTalk(row) {
1328
+ let that = getTarget(this);
1329
+ that.$baseConfirm(this.$t2('您确定要取消沟通记录吗?', 'components.wf.cancelTalkTip')).then(() => {
1330
+ that.$http({
1331
+ url: this.current_prefix + "/wf_linkup/cancel",
1332
+ data: {id: row.id},
1333
+ method: "post",
1334
+ loadingTarget: document.body,
1335
+ isLoading: true,
1336
+ success: (resultMsg) => {
1337
+ that.$message({
1338
+ message: resultMsg.content,
1339
+ type: "success",
1340
+ duration: 500,
1341
+ onClose: (t) => {
1342
+ this.reloadContent();
1343
+ },
1344
+ });
1345
+ },
1346
+ });
1347
+ });
1348
+ },
1349
+ openTalkDialog(receiver, receiverName, operateType, flag, replyId) {
1350
+ this.operateType = operateType;
1351
+ /*this.talkForm.receiver = receiver || null;
1352
+ this.talkForm.receiverName = receiverName || null;
1353
+ this.talkForm.replyId = replyId || null;
1354
+ this.talkForm.content = null;
1355
+ this.talkForm.attachmentDTOs = [];*/
1356
+ this.initTalkForm(receiver, receiverName, replyId)
1357
+ this.showTalkDialog = true;
1358
+ if (flag == 1) {
1359
+ let opeaBtnDom = this.$refs.opeaBtn;
1360
+ opeaBtnDom && opeaBtnDom.scrollIntoView();
1361
+ }
1362
+ },
1363
+ initTalkForm(receiver, receiverName, replyId) {
1364
+ this.talkForm.receiver = receiver || null;
1365
+ this.talkForm.receiverName = receiverName || null;
1366
+ this.talkForm.replyId = replyId || null;
1367
+ this.talkForm.content = null;
1368
+ this.talkForm.attachmentDTOs = [];
1369
+ },
1370
+ submitTalkForm() {
1371
+ let that = getTarget(this);
1372
+ var procInstId = this.wfInfo.procInstId;
1373
+ var taskId = this.wfInfo.taskId;
1374
+
1375
+ if (!this.talkForm.receiver) {
1376
+ that.$message({
1377
+ message: this.$t2('请选择接收人', 'components.wf.talkWarnMsg1'),
1378
+ type: "error",
1379
+ duration: 2 * 1000,
1380
+ });
1381
+ return false;
1382
+ }
1383
+ if (!this.talkForm.content) {
1384
+ that.$message({
1385
+ message: this.$t2('请输入沟通内容', 'components.wf.talkWarnMsg2'),
1386
+ type: "error",
1387
+ duration: 2 * 1000,
1388
+ });
1389
+ return false;
1390
+ }
1391
+
1392
+ var data = {
1393
+ taskId: taskId,
1394
+ uuid: this.wfInfo.uuid,
1395
+ receiver: this.talkForm.receiver,
1396
+ receiverName: this.talkForm.receiverName,
1397
+ replyId: this.talkForm.replyId,
1398
+ content: this.talkForm.content,
1399
+ attachmentDTOs: this.talkForm.attachmentDTOs,
1400
+ notifyType: "wfLinkup",
1401
+ };
1402
+ this.showTalkDialog = false;
1403
+ that.$http({
1404
+ url: this.current_prefix + "/wf_linkup/save",
1405
+ data: data,
1406
+ method: "post",
1407
+ isLoading: true,
1408
+ success: (resultMsg) => {
1409
+ that.$message({
1410
+ message: resultMsg.content,
1411
+ type: "success",
1412
+ duration: 500,
1413
+ onClose: (t) => {
1414
+ this.reloadContent();
1415
+ this.closeWinOnCheck(5);
1416
+ },
1417
+ });
1418
+ },
1419
+ });
1420
+ },
1421
+ openTalkUserDialog() {
1422
+ this.showTalkUserDialog = true;
1423
+ },
1424
+ confirmTalkUserDialog(rows) {
1425
+ if (rows.length > 0) {
1426
+ let row = rows[0];
1427
+ if (this.talkForm.receiver != row.id) {
1428
+ this.talkForm.replyId = null;
1429
+ }
1430
+ this.talkForm.receiver = row.id;
1431
+ this.talkForm.receiverName = row.nickName;
1432
+ }
1433
+ },
1434
+ confirmUrging() {
1435
+ this.reloadContent();
1436
+ },
1437
+ confirmDeleteTaskUser() {
1438
+ this.reloadContent();
1439
+ },
1440
+ confirmAddTaskUser(rows) {
1441
+ this.addIncreaseSignUsers = rows;
1442
+ this.addIncreaseSignForm.userNickNames = rows.map(row => row.nickName).join(',');
1443
+ // this.reloadContent();
1444
+ },
1445
+ submitAddTaskUserForm(flag) {
1446
+ let that = getTarget(this);
1447
+ let userIds = this.addIncreaseSignUsers.map((checkRow) => checkRow.id);
1448
+ if (userIds.length == 0) {
1449
+ that.$message({
1450
+ message: this.$t2('请选择候选人', 'components.wf.addIncreaseSignWarnMsg1'),
1451
+ type: "error",
1452
+ duration: 2000,
1453
+ onClose: (t) => {
1454
+ },
1455
+ });
1456
+ return false;
1457
+ }
1458
+ let toDo = () => {
1459
+ var data = JSON.stringify({
1460
+ uuid: this.wfInfo.uuid,
1461
+ taskId: this.wfInfo.taskId,
1462
+ userIds: userIds,
1463
+ suggestion: this.addIncreaseSignForm.opinion
1464
+
1465
+ });
1466
+ this.agreeDialogVisible = false;
1467
+ that.$http({
1468
+ url: this.current_prefix + "/wf/addIncreaseSign",
1469
+ data: data,
1470
+ method: "post",
1471
+ loadingTarget: document.body,
1472
+ headers: {
1473
+ "Content-Type": "application/json;charset=utf-8",
1474
+ },
1475
+ isLoading: true,
1476
+ success: (resultMsg) => {
1477
+ that.$message({
1478
+ message: resultMsg.content,
1479
+ type: "success",
1480
+ duration: 500,
1481
+ onClose: (t) => {
1482
+ this.reloadContent();
1483
+ },
1484
+ });
1485
+ },
1486
+ });
1487
+ }
1488
+ if (flag === 0) {
1489
+ toDo();
1490
+ } else {
1491
+ that.$baseConfirm(this.$t2('您确定要加签吗?', 'components.wf.addIncreaseSignConfirmTip')).then(() => {
1492
+ toDo();
1493
+ });
1494
+ }
1495
+ },
1496
+ openSetCandidateDialog(operateType) {
1497
+ this.operateType = operateType;
1498
+ this.showSetCandidateDialog = true;
1499
+ },
1500
+ closeSetCandidateDialog() {
1501
+ this.showSetCandidateDialog = false;
1502
+ this.reloadContent();
1503
+ },
1504
+ openRevokeDialog(operateType) {
1505
+ this.operateType = operateType;
1506
+ this.revokeForm = {opinion: null}
1507
+ this.revokeDialogVisible = true;
1508
+ },
1509
+ subRevokeForm(flag) {
1510
+ //撤回
1511
+ let that = getTarget(this);
1512
+ let toDo = () => {
1513
+ var data = JSON.stringify({
1514
+ uuid: this.wfInfo.uuid,
1515
+ taskId: this.wfInfo.taskId,
1516
+ suggestion: this.revokeForm.opinion,
1517
+ });
1518
+ this.revokeDialogVisible = false;
1519
+ that.$http({
1520
+ url: this.current_prefix + "/wf/revoke",
1521
+ data: data,
1522
+ method: "post",
1523
+ loadingTarget: document.body,
1524
+ headers: {
1525
+ "Content-Type": "application/json;charset=utf-8",
1526
+ },
1527
+ isLoading: true,
1528
+ success: (resultMsg) => {
1529
+ that.$message({
1530
+ message: resultMsg.content,
1531
+ type: "success",
1532
+ duration: 500,
1533
+ onClose: (t) => {
1534
+ this.reloadContent();
1535
+ },
1536
+ });
1537
+ },
1538
+ });
1539
+ }
1540
+ if (flag === 0) {
1541
+ toDo();
1542
+ } else {
1543
+ that.$baseConfirm(this.$t2('您确定要撤回吗?', 'components.wf.revokeConfirmTip')).then(() => {
1544
+ toDo();
1545
+ });
1546
+ }
1547
+ }
1548
+ }
1549
+ }
1550
+ </script>
1551
+
1552
+ <style scoped>
1553
+ ::v-deep .form-box.el-form .el-form-item .el-form-item__label {
1554
+ width: 70px
1555
+ }
1556
+ </style>