cloud-web-corejs 1.1.0-dev.7 → 1.1.0-dev.71

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 (495) hide show
  1. package/README.md +38 -0
  2. package/bin/core-resources.js +16 -0
  3. package/bin/create-child-app.js +34 -0
  4. package/docs/child-app/README.md +95 -0
  5. package/docs/child-app/activiti-resources.md +63 -0
  6. package/docs/child-app/generate-prompt.md +55 -0
  7. package/docs/child-app/luckysheet-resources.md +80 -0
  8. package/docs/child-app/public-resources-plan.md +288 -0
  9. package/docs/child-app/resources-implementation.md +101 -0
  10. package/docs/child-app/tinymce-resources.md +88 -0
  11. package/docs/child-app/validation.md +34 -0
  12. package/docs/qiankun/346/216/245/345/205/245/345/215/217/350/256/256.md +298 -0
  13. package/docs/qiankun/350/257/246/346/203/205/346/211/277/350/275/275/345/255/220/345/272/224/347/224/250/345/257/271/346/216/245/346/270/205/345/215/225.md +111 -0
  14. package/package.json +234 -203
  15. package/resource-tools/index.js +126 -0
  16. package/src/app-bootstrap.js +539 -0
  17. package/src/app-bootstrap.sync.js +510 -0
  18. package/src/boot-assets.legacy.js +13 -0
  19. package/src/boot-assets.next.js +7 -0
  20. package/src/components/Qrcode/fileParse.vue +11 -0
  21. package/src/components/Tinymce/dynamicLoadScript.js +51 -59
  22. package/src/components/Tinymce/index.vue +435 -336
  23. package/src/components/Tinymce/mce-chrome.scss +150 -0
  24. package/src/components/VabUpload/image-viewer.vue +18 -10
  25. package/src/components/VabUpload/index.js +11 -4
  26. package/src/components/VabUpload/index.vue +1 -1
  27. package/src/components/VabUpload/mixins/fileLibraryDialog.js +2 -0
  28. package/src/components/VabUpload/mixins.js +72 -40
  29. package/src/components/VabUpload/partUploadConfig.js +95 -0
  30. package/src/components/VabUpload/privateProfileDialogMixins.js +2 -0
  31. package/src/components/VabUpload/style.scss +282 -0
  32. package/src/components/VabUpload/view.vue +25 -25
  33. package/src/components/baseArea/index.vue +2 -2
  34. package/src/components/baseAutocomplete/README.md +156 -0
  35. package/src/components/baseAutocomplete/index.vue +424 -0
  36. package/src/components/baseAutocomplete/query.js +36 -0
  37. package/src/components/baseInputExport/mixins.js +1 -6
  38. package/src/components/bizTab/BizTabListPage.vue +66 -33
  39. package/src/components/bizTab/README.md +3 -1
  40. package/src/components/bizTab/bizBillDetailMixin.js +2 -0
  41. package/src/components/code-editor/ace-chrome.scss +17 -0
  42. package/src/components/code-editor/index.vue +361 -340
  43. package/src/components/errorMsg/index.vue +142 -13
  44. package/src/components/errorMsg/mixins.js +53 -0
  45. package/src/components/excelExport/conditionExportConfig.js +112 -0
  46. package/src/components/excelExport/exportColumnMemory.js +118 -0
  47. package/src/components/excelExport/exportFieldDialog.vue +50 -38
  48. package/src/components/excelExport/exportType.js +8 -0
  49. package/src/components/excelExport/index.js +30 -13
  50. package/src/components/excelExport/index.vue +7 -1
  51. package/src/components/excelExport/mixins.js +782 -293
  52. package/src/components/excelImport/index.vue +1 -1
  53. package/src/components/excelImport/mixins.js +888 -834
  54. package/src/components/fileLibrary/mixins/indexMixins.js +2 -0
  55. package/src/components/fileLibrary/style.scss +579 -0
  56. package/src/components/formDialog/index.vue +11 -8
  57. package/src/components/hiprint/style.scss +188 -0
  58. package/src/components/hiprint/view/json-view.vue +4 -4
  59. package/src/components/jdPrint/mixins.js +2 -0
  60. package/src/components/jsonImport/index.vue +1 -1
  61. package/src/components/jsonImport/mixins.js +6 -10
  62. package/src/components/langImport/index.vue +1 -1
  63. package/src/components/langImport/mixins.js +6 -10
  64. package/src/components/luckysheet/loadResources.js +64 -0
  65. package/src/components/luckysheet/view.vue +239 -210
  66. package/src/components/messageBox/index.js +68 -0
  67. package/src/components/messageBox/index.vue +77 -0
  68. package/src/components/messageBox/mixins.js +155 -0
  69. package/src/components/mobile/buttonGroup/index.vue +1 -1
  70. package/src/components/mobile/wf/addTaskUserdialog.vue +100 -100
  71. package/src/components/mobile/wf/content.vue +1730 -1701
  72. package/src/components/mobile/wf/deleteTaskUserDialog.vue +73 -73
  73. package/src/components/mobile/wf/selectUserDialog.vue +8 -12
  74. package/src/components/mobile/wf/setCandidateDialog.vue +69 -69
  75. package/src/components/mobile/wf/urgingDialog.vue +75 -75
  76. package/src/components/obsUpload/index.js +4 -1
  77. package/src/components/obsUpload/index.vue +1 -1
  78. package/src/components/obsUpload/mixins.js +45 -15
  79. package/src/components/onlineTalk/index.vue +4 -4
  80. package/src/components/onlineTalk/mixins.js +21 -7
  81. package/src/components/table/index.js +96 -81
  82. package/src/components/table/plugins/cell-area/index.js +10 -3
  83. package/src/components/table/style.scss +1399 -0
  84. package/src/components/table/vxeFilter/mixin.js +28 -18
  85. package/src/components/wf/content.vue +3 -2
  86. package/src/components/wf/content2.vue +1 -1
  87. package/src/components/wf/style.scss +265 -0
  88. package/src/components/wf/wf.js +7 -0
  89. package/src/components/wf/wfActionItems.js +3 -0
  90. package/src/components/wf/wfStartDialog.vue +1 -0
  91. package/src/components/wf/wfTransferEnabled.js +54 -0
  92. package/src/components/wf/wfUtil.js +47 -29
  93. package/src/components/wf/wfVisibility.js +6 -0
  94. package/src/components/xform/docs/2026-07 table/344/270/216excelExport/344/277/256/345/244/215/345/217/212/345/257/274/345/207/272/344/274/230/345/214/226.md" +64 -57
  95. package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +1 -1
  96. package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +1 -1
  97. package/src/components/xform/docs/2026-09 /345/212/250/346/200/201/345/255/227/346/256/265/350/247/204/345/210/231/344/270/216/346/265/201/347/250/213/346/216/247/345/210/266/346/211/247/350/241/214/351/241/272/345/272/217/350/220/275/345/234/260/346/226/271/346/241/210.md" +409 -0
  98. package/src/components/xform/docs/2026-09 /346/235/241/344/273/266/345/257/274/345/207/272/345/244/247/346/225/260/346/215/256/351/207/217/345/264/251/346/272/203/346/216/222/346/237/245.md" +389 -0
  99. package/src/components/xform/docs/2026-09 /346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206P0/344/273/243/347/240/201/350/257/204/345/256/241.md" +255 -0
  100. package/src/components/xform/docs/2026-09 /346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206P0/346/265/213/350/257/225/351/252/214/350/257/201/345/256/236/346/226/275/346/226/207/346/241/243.md" +595 -0
  101. package/src/components/xform/docs/2026-09 /347/274/226/350/276/221/350/241/250/350/241/214/345/206/205/344/277/235/345/255/230/346/240/241/351/252/214/350/214/203/345/233/264/344/270/216/345/210/227/345/277/205/345/241/253/350/247/243/346/236/220/344/277/256/345/244/215.md" +233 -0
  102. package/src/components/xform/docs/2026-09 /350/241/250/345/215/225/345/257/274/345/205/245/351/200/232/351/201/223/346/242/263/347/220/206/344/270/216/350/220/275/345/234/260/346/226/271/346/241/210.md" +745 -0
  103. package/src/components/xform/docs//346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206/344/270/216/344/277/256/345/244/215/350/220/275/345/234/260/346/226/271/346/241/210.md +324 -0
  104. package/src/components/xform/docs//346/266/210/346/201/257/346/241/206/350/207/252/345/256/232/344/271/211/346/214/211/351/222/256/350/257/264/346/230/216.md +92 -0
  105. package/src/components/xform/form-designer/designer.js +2133 -2084
  106. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +7 -0
  107. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -2
  108. package/src/components/xform/form-designer/form-widget/container-widget/detail-h5-widget.vue +243 -227
  109. package/src/components/xform/form-designer/form-widget/container-widget/h5-card-pane-widget.vue +228 -207
  110. package/src/components/xform/form-designer/form-widget/container-widget/h5-card-widget.vue +165 -136
  111. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +30 -4
  112. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +11 -6
  113. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2657 -1774
  114. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +27 -4
  115. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
  116. package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
  117. package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +1 -1
  118. package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +1 -1
  119. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -1
  120. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  121. package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +1 -1
  122. package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +1 -1
  123. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +1 -1
  124. package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +1 -1
  125. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +1 -1
  126. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -1
  127. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +1 -1
  128. package/src/components/xform/form-designer/form-widget/field-widget/descriptions-widget.vue +1 -1
  129. package/src/components/xform/form-designer/form-widget/field-widget/divider-widget.vue +1 -1
  130. package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +1 -1
  131. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +1 -1
  132. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +35 -4
  133. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  134. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  135. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  136. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +64 -10
  137. package/src/components/xform/form-designer/form-widget/field-widget/file-upload-widget.vue +1 -1
  138. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +14 -4
  139. package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +1 -1
  140. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +19 -6
  141. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +1 -1
  142. package/src/components/xform/form-designer/form-widget/field-widget/index.js +10 -1
  143. package/src/components/xform/form-designer/form-widget/field-widget/input-batch-widget.vue +1 -1
  144. package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +29 -3
  145. package/src/components/xform/form-designer/form-widget/field-widget/mixins/autocomplete-mixin.js +22 -11
  146. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +1 -1
  147. package/src/components/xform/form-designer/form-widget/field-widget/news-list-widget.vue +1 -1
  148. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
  149. package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +1 -1
  150. package/src/components/xform/form-designer/form-widget/field-widget/picture-upload-widget.vue +1 -1
  151. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
  152. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +1 -1
  153. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +1 -1
  154. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +1 -1
  155. package/src/components/xform/form-designer/form-widget/field-widget/rate-widget.vue +1 -1
  156. package/src/components/xform/form-designer/form-widget/field-widget/rich-editor-widget.vue +68 -27
  157. package/src/components/xform/form-designer/form-widget/field-widget/row-col-select-widget.vue +64 -0
  158. package/src/components/xform/form-designer/form-widget/field-widget/save_submit_wf_button-widget.vue +1 -1
  159. package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +1 -1
  160. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
  161. package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +1 -1
  162. package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +6 -2
  163. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +1 -1
  164. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +1 -1
  165. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -145
  166. package/src/components/xform/form-designer/form-widget/field-widget/slider-widget.vue +1 -1
  167. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +1 -1
  168. package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +1 -1
  169. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +1 -1
  170. package/src/components/xform/form-designer/form-widget/field-widget/switch-widget.vue +1 -1
  171. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +3 -2
  172. package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +1 -1
  173. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
  174. package/src/components/xform/form-designer/form-widget/field-widget/textarea-widget.vue +1 -1
  175. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +1 -1
  176. package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +1 -1
  177. package/src/components/xform/form-designer/form-widget/field-widget/title-head-widget.vue +1 -1
  178. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +1 -1
  179. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -1
  180. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +176 -27
  181. package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +1 -1
  182. package/src/components/xform/form-designer/indexMixin.js +4 -2
  183. package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +687 -602
  184. package/src/components/xform/form-designer/setting-panel/form-setting.vue +269 -36
  185. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +335 -12
  186. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +20 -0
  187. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +13 -1
  188. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +33 -20
  189. package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tab-lazyRender-editor.vue +27 -0
  190. package/src/components/xform/form-designer/setting-panel/property-editor/contentHeight-editor.vue +23 -0
  191. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSelect-editor.vue +30 -0
  192. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onTabChange-editor.vue +28 -0
  193. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onTabClick-editor.vue +28 -0
  194. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +62 -1
  195. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +142 -2
  196. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/empty-number-input.vue +51 -0
  197. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +27 -2
  198. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +33 -3
  199. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +2 -4
  200. package/src/components/xform/form-designer/setting-panel/property-editor/suffixIconClickable-editor.vue +23 -0
  201. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +20 -4
  202. package/src/components/xform/form-designer/toolbar-panel/index.vue +11 -1
  203. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +13 -0
  204. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +146 -8
  205. package/src/components/xform/form-render/container-item/containerItemMixin.js +93 -8
  206. package/src/components/xform/form-render/container-item/data-table-item.vue +352 -347
  207. package/src/components/xform/form-render/container-item/data-table-mixin.js +7275 -5985
  208. package/src/components/xform/form-render/container-item/detail-h5-item.vue +48 -19
  209. package/src/components/xform/form-render/container-item/detail-item.vue +350 -446
  210. package/src/components/xform/form-render/container-item/dynamicFieldMixin.js +55 -1
  211. package/src/components/xform/form-render/container-item/list-h5-item.vue +200 -244
  212. package/src/components/xform/form-render/container-item/panel-item.vue +1 -1
  213. package/src/components/xform/form-render/container-item/tab-item.vue +177 -129
  214. package/src/components/xform/form-render/fieldControlEngine.js +218 -0
  215. package/src/components/xform/form-render/fieldControlMixin.js +536 -0
  216. package/src/components/xform/form-render/index.vue +164 -153
  217. package/src/components/xform/form-render/indexMixin.js +5444 -5331
  218. package/src/components/xform/form-render/pageDialogScope.js +54 -0
  219. package/src/components/xform/icon-picker/index.vue +1 -1
  220. package/src/components/xform/lang/en-US.js +9 -0
  221. package/src/components/xform/lang/zh-CN.js +10 -0
  222. package/src/components/xform/mixins/businessLock.js +59 -0
  223. package/src/components/xform/mixins/defaultHandle.js +713 -707
  224. package/src/components/xform/mixins/scriptHttp.js +42 -21
  225. package/src/components/xform/mixins/wfStart.js +105 -0
  226. package/src/components/xform/mixins/wfVisibility.js +33 -0
  227. package/src/components/xform/styles/census.scss +288 -0
  228. package/src/components/xform/styles/containers.scss +215 -0
  229. package/src/components/xform/styles/designer.scss +904 -0
  230. package/src/components/xform/styles/detail-temp.scss +71 -0
  231. package/src/components/xform/styles/h5-designer.scss +191 -0
  232. package/src/components/xform/styles/h5-runtime.scss +520 -0
  233. package/src/components/xform/styles/h5.scss +601 -467
  234. package/src/components/xform/styles/skins.scss +398 -0
  235. package/src/components/xform/styles/table-layout.scss +91 -0
  236. package/src/components/xform/styles/titles.scss +255 -0
  237. package/src/components/xform/utils/dynamicSchemaUtil.js +385 -361
  238. package/src/components/xform/utils/fixedQueryUtil.js +29 -4
  239. package/src/components/xform/utils/serviceNameCache.js +69 -0
  240. package/src/components/xform/utils/sfc-generator.js +5 -3
  241. package/src/components/xform/utils/tableColumnHelper.js +46 -4
  242. package/src/components/xform/utils/util.js +1776 -1708
  243. package/src/core-resources/css/h5.scss +548 -0
  244. package/src/core-resources/css/iconfont.css +1447 -0
  245. package/src/core-resources/font/iconfont.ttf +0 -0
  246. package/src/core-resources/font/iconfont.woff +0 -0
  247. package/src/core-resources/font/iconfont.woff2 +0 -0
  248. package/src/core-resources/images/default-header.png +0 -0
  249. package/src/core-resources/images/ico-default_wenjian.svg +1 -0
  250. package/src/core-resources/images/ico-excel.svg +1 -0
  251. package/src/core-resources/images/ico-ftl.svg +7 -0
  252. package/src/core-resources/images/ico-html.svg +1 -0
  253. package/src/core-resources/images/ico-java.svg +1 -0
  254. package/src/core-resources/images/ico-music.svg +1 -0
  255. package/src/core-resources/images/ico-pdf.svg +1 -0
  256. package/src/core-resources/images/ico-photo.svg +1 -0
  257. package/src/core-resources/images/ico-ppt.svg +1 -0
  258. package/src/core-resources/images/ico-psd.svg +1 -0
  259. package/src/core-resources/images/ico-service.png +0 -0
  260. package/src/core-resources/images/ico-txt.svg +1 -0
  261. package/src/core-resources/images/ico-video.svg +1 -0
  262. package/src/core-resources/images/ico-vue.svg +8 -0
  263. package/src/core-resources/images/ico-wenjianjia.svg +1 -0
  264. package/src/core-resources/images/ico-wrod.svg +1 -0
  265. package/src/core-resources/images/ico-xml.svg +1 -0
  266. package/src/core-resources/images/ico-yasuobao.svg +1 -0
  267. package/src/core-resources/images/icon-error.png +0 -0
  268. package/src/core-resources/images/icon-tips.png +0 -0
  269. package/src/core-resources/images/nodata.png +0 -0
  270. package/src/core-resources/images/nodata2.png +0 -0
  271. package/src/directive/el-dialog-center/index.js +3 -2
  272. package/src/directive/el-drag-dialog/drag.js +33 -4
  273. package/src/icons/index.js +9 -0
  274. package/src/icons/svg/404.svg +1 -0
  275. package/src/icons/svg/alert.svg +1 -0
  276. package/src/icons/svg/bug.svg +1 -0
  277. package/src/icons/svg/button.svg +1 -0
  278. package/src/icons/svg/card.svg +1 -0
  279. package/src/icons/svg/cascader-field.svg +1 -0
  280. package/src/icons/svg/census.svg +1 -0
  281. package/src/icons/svg/chart.svg +1 -0
  282. package/src/icons/svg/checkbox-field.svg +1 -0
  283. package/src/icons/svg/clipboard.svg +1 -0
  284. package/src/icons/svg/color-field.svg +1 -0
  285. package/src/icons/svg/component.svg +1 -0
  286. package/src/icons/svg/custom-component.svg +1 -0
  287. package/src/icons/svg/dashboard.svg +1 -0
  288. package/src/icons/svg/data-table.svg +1 -0
  289. package/src/icons/svg/date-field.svg +1 -0
  290. package/src/icons/svg/date-range-field.svg +1 -0
  291. package/src/icons/svg/descriptions.svg +1 -0
  292. package/src/icons/svg/divider.svg +1 -0
  293. package/src/icons/svg/document.svg +1 -0
  294. package/src/icons/svg/documentation.svg +1 -0
  295. package/src/icons/svg/drag.svg +1 -0
  296. package/src/icons/svg/echart-category.svg +1 -0
  297. package/src/icons/svg/echart-pie.svg +1 -0
  298. package/src/icons/svg/echart.svg +1 -0
  299. package/src/icons/svg/edit.svg +1 -0
  300. package/src/icons/svg/education.svg +1 -0
  301. package/src/icons/svg/email.svg +1 -0
  302. package/src/icons/svg/example.svg +1 -0
  303. package/src/icons/svg/excel.svg +1 -0
  304. package/src/icons/svg/exit-fullscreen.svg +1 -0
  305. package/src/icons/svg/eye-open.svg +1 -0
  306. package/src/icons/svg/eye.svg +1 -0
  307. package/src/icons/svg/file-upload-field.svg +1 -0
  308. package/src/icons/svg/form.svg +1 -0
  309. package/src/icons/svg/fullscreen.svg +1 -0
  310. package/src/icons/svg/github.svg +1 -0
  311. package/src/icons/svg/grid.svg +1 -0
  312. package/src/icons/svg/guide.svg +1 -0
  313. package/src/icons/svg/html-text.svg +1 -0
  314. package/src/icons/svg/ico-more.svg +1 -0
  315. package/src/icons/svg/ico-wenjianjia.svg +1 -0
  316. package/src/icons/svg/icon.svg +1 -0
  317. package/src/icons/svg/input-batch.svg +1 -0
  318. package/src/icons/svg/international.svg +1 -0
  319. package/src/icons/svg/language.svg +1 -0
  320. package/src/icons/svg/link.svg +1 -0
  321. package/src/icons/svg/list-export.svg +1 -0
  322. package/src/icons/svg/list.svg +1 -0
  323. package/src/icons/svg/lock.svg +1 -0
  324. package/src/icons/svg/message.svg +1 -0
  325. package/src/icons/svg/money.svg +1 -0
  326. package/src/icons/svg/nested.svg +1 -0
  327. package/src/icons/svg/news-list.svg +1 -0
  328. package/src/icons/svg/node-tree.svg +1 -0
  329. package/src/icons/svg/number-field.svg +1 -0
  330. package/src/icons/svg/password.svg +1 -0
  331. package/src/icons/svg/pdf.svg +1 -0
  332. package/src/icons/svg/people.svg +1 -0
  333. package/src/icons/svg/peoples.svg +1 -0
  334. package/src/icons/svg/picture-upload-field.svg +1 -0
  335. package/src/icons/svg/qq.svg +1 -0
  336. package/src/icons/svg/query.svg +1 -0
  337. package/src/icons/svg/radio-field.svg +1 -0
  338. package/src/icons/svg/rate-field.svg +1 -0
  339. package/src/icons/svg/redo.svg +1 -0
  340. package/src/icons/svg/rich-editor-field.svg +1 -0
  341. package/src/icons/svg/search.svg +1 -0
  342. package/src/icons/svg/searchbox.svg +1 -0
  343. package/src/icons/svg/section.svg +1 -0
  344. package/src/icons/svg/select-field.svg +1 -0
  345. package/src/icons/svg/shopping.svg +1 -0
  346. package/src/icons/svg/size.svg +1 -0
  347. package/src/icons/svg/skill.svg +1 -0
  348. package/src/icons/svg/slider-field.svg +1 -0
  349. package/src/icons/svg/slot-component.svg +1 -0
  350. package/src/icons/svg/slot-field.svg +1 -0
  351. package/src/icons/svg/star.svg +1 -0
  352. package/src/icons/svg/static-text.svg +1 -0
  353. package/src/icons/svg/status.svg +1 -0
  354. package/src/icons/svg/sub-form.svg +1 -0
  355. package/src/icons/svg/switch-field.svg +1 -0
  356. package/src/icons/svg/tab.svg +1 -0
  357. package/src/icons/svg/table.svg +1 -0
  358. package/src/icons/svg/text-field.svg +1 -0
  359. package/src/icons/svg/text.svg +1 -0
  360. package/src/icons/svg/textarea-field.svg +1 -0
  361. package/src/icons/svg/theme.svg +1 -0
  362. package/src/icons/svg/time-field.svg +1 -0
  363. package/src/icons/svg/time-range-field.svg +1 -0
  364. package/src/icons/svg/tips-text.svg +1 -0
  365. package/src/icons/svg/title-head.svg +1 -0
  366. package/src/icons/svg/tree-pane.svg +1 -0
  367. package/src/icons/svg/tree-table.svg +1 -0
  368. package/src/icons/svg/tree.svg +1 -0
  369. package/src/icons/svg/undo.svg +1 -0
  370. package/src/icons/svg/uploadbox.svg +1 -0
  371. package/src/icons/svg/user.svg +1 -0
  372. package/src/icons/svg/vf-box.svg +1 -0
  373. package/src/icons/svg/vf-dialog.svg +1 -0
  374. package/src/icons/svg/vf-drawer.svg +1 -0
  375. package/src/icons/svg/vue-sfc.svg +1 -0
  376. package/src/icons/svg/wechat.svg +1 -0
  377. package/src/icons/svg/zip.svg +1 -0
  378. package/src/index.js +2 -514
  379. package/src/index.next.js +5 -0
  380. package/src/index.sync.js +5 -0
  381. package/src/layout/components/Sidebar/default.vue +20 -19
  382. package/src/layout/components/TagsView/index.vue +330 -323
  383. package/src/layout/components/TagsView/style.scss +92 -0
  384. package/src/layout/components/watermark/index.vue +1 -1
  385. package/src/layout/defaultLayout.vue +2 -2
  386. package/src/router/index.js +2 -7
  387. package/src/router/modules/customer.js +175 -76
  388. package/src/store/modules/settings.js +1 -1
  389. package/src/store/modules/tagsView.js +241 -217
  390. package/src/store/modules/user.js +16 -12
  391. package/src/styles/btn.scss +315 -0
  392. package/src/styles/dialog.scss +1710 -0
  393. package/src/styles/element-ui.scss +1076 -0
  394. package/src/styles/element-variables.scss +31 -0
  395. package/src/styles/global.scss +115 -0
  396. package/src/styles/index.scss +245 -0
  397. package/src/styles/layout-skins.scss +840 -0
  398. package/src/styles/legacy-base.scss +19 -0
  399. package/src/styles/menu-icons.scss +75 -0
  400. package/src/styles/mixin.scss +80 -0
  401. package/src/styles/nprogress.scss +14 -0
  402. package/src/styles/page-shell.scss +723 -0
  403. package/src/styles/sidebar.scss +296 -0
  404. package/src/styles/split-handle.scss +52 -0
  405. package/src/styles/theme-variables.scss +7 -0
  406. package/src/styles/transition.scss +48 -0
  407. package/src/styles/utilities.scss +253 -0
  408. package/src/styles/variables.scss +72 -0
  409. package/src/utils/baseDictsCache.js +197 -0
  410. package/src/utils/chunkLoadError.js +24 -0
  411. package/src/utils/featureResources.js +57 -0
  412. package/src/utils/importLimit.js +72 -0
  413. package/src/utils/pdfUtil.js +6 -1
  414. package/src/utils/request.js +219 -10
  415. package/src/utils/resolveViewComponent.js +45 -90
  416. package/src/utils/runtimeRecovery.js +105 -0
  417. package/src/utils/swiperLoader.js +20 -0
  418. package/src/utils/vab.js +86 -35
  419. package/src/utils/xlsxLoader.js +29 -0
  420. package/src/views/bd/setting/config_manage/list.vue +7 -1
  421. package/src/views/bd/setting/formVersion/compareContMixin.scss +1 -1
  422. package/src/views/bd/setting/form_template/formTemplateType.js +1 -1
  423. package/src/views/bd/setting/form_template/mixins/list.js +8 -7
  424. package/src/views/bd/setting/form_template/mixins/list2.js +412 -411
  425. package/src/views/bd/setting/form_template/mixins/wf_list.js +431 -430
  426. package/src/views/mobile/user/area/dialog.vue +1 -1
  427. package/src/views/mobile/user/user/dialog.vue +1 -1
  428. package/src/views/user/bill_setting/mixins/wf.js +8 -0
  429. package/src/views/user/bill_setting/render.vue +1 -1
  430. package/src/views/user/commMenu/index.vue +3 -1
  431. package/src/views/user/commMenu/style.scss +123 -0
  432. package/src/views/user/common_attribute/edit.vue +2 -0
  433. package/src/views/user/common_attribute/itemEdit.vue +2 -0
  434. package/src/views/user/form/form_template/list.vue +527 -506
  435. package/src/views/user/form/view/list.vue +24 -1
  436. package/src/views/user/home/default.vue +16 -9
  437. package/src/views/user/home/default2.vue +12 -8
  438. package/src/views/user/home/index.vue +1 -1
  439. package/src/views/user/home/wjl/content.vue +1581 -1569
  440. package/src/views/user/intf_permission/edit.vue +230 -0
  441. package/src/views/user/intf_permission/list.vue +196 -0
  442. package/src/views/user/menuFallback/index.vue +23 -0
  443. package/src/views/user/role/edit.vue +4 -0
  444. package/src/views/user/role/role-box.scss +83 -0
  445. package/src/views/user/role/voc_edit.vue +4 -0
  446. package/src/views/user/user/list.vue +28 -6
  447. package/src/views/user/wf/wf_diy_attribute/edit.vue +1 -1
  448. package/src/views/user/wf/wf_manage/wfContentDialog.vue +93 -42
  449. package/src/views/user/wf/wf_obj_config/activiti_wf.vue +134 -133
  450. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +1 -1
  451. package/src/views/user/wf/wf_obj_config/list.vue +747 -746
  452. package/src/views/user/wf/wf_obj_config/list_form.vue +374 -373
  453. package/templates/child-app/.env +3 -0
  454. package/templates/child-app/README.md +49 -0
  455. package/templates/child-app/app.config.js +6 -0
  456. package/templates/child-app/babel.config.js +1 -0
  457. package/templates/child-app/core-resources.config.js +15 -0
  458. package/templates/child-app/gitignore +7 -0
  459. package/templates/child-app/package.json +34 -0
  460. package/templates/child-app/public/index.html +12 -0
  461. package/templates/child-app/src/assets/401_images/401.gif +0 -0
  462. package/templates/child-app/src/assets/404_images/404.png +0 -0
  463. package/templates/child-app/src/assets/404_images/404_cloud.png +0 -0
  464. package/templates/child-app/src/assets/logo.png +0 -0
  465. package/templates/child-app/src/corejsConfig.js +2 -0
  466. package/templates/child-app/src/icons/index.js +2 -0
  467. package/templates/child-app/src/icons/svg/child-demo.svg +1 -0
  468. package/templates/child-app/src/layout/index.vue +4 -0
  469. package/templates/child-app/src/main.js +5 -0
  470. package/templates/child-app/src/prefixConfig.js +13 -0
  471. package/templates/child-app/src/resources/css/login.scss +29 -0
  472. package/templates/child-app/src/resources/images/bg-login5.jpg +0 -0
  473. package/templates/child-app/src/resources/images/home-img.png +0 -0
  474. package/templates/child-app/src/router/modules/customer.js +3 -0
  475. package/templates/child-app/src/settings.js +25 -0
  476. package/templates/child-app/src/styles/app.scss +2 -0
  477. package/templates/child-app/src/views/demo/detail.vue +19 -0
  478. package/templates/child-app/src/views/demo/list.vue +38 -0
  479. package/templates/child-app/src/views/user/login/index.vue +18 -0
  480. package/templates/child-app/vue.config.js +107 -0
  481. package/src/components/xform/form-render/container-item/dynamicFieldEngine.js +0 -285
  482. package/src/components/xform/form-render/formDynamicFieldMixin.js +0 -131
  483. package/src/views/demo/bizTab/bill/billConfig.js +0 -41
  484. package/src/views/demo/bizTab/bill/detail.vue +0 -436
  485. package/src/views/demo/bizTab/bill/list.vue +0 -288
  486. package/src/views/demo/bizTab/bill/productDialog.vue +0 -176
  487. package/src/views/demo/bizTab/simple/billApi.js +0 -123
  488. package/src/views/demo/bizTab/simple/detail.vue +0 -407
  489. package/src/views/demo/bizTab/simple/list.vue +0 -217
  490. package/src/views/demo/bizTab/standalone/index.vue +0 -121
  491. package/src/views/demo/bizTab/wf/billConfig.js +0 -44
  492. package/src/views/demo/bizTab/wf/detail.vue +0 -661
  493. package/src/views/demo/bizTab/wf/list.vue +0 -242
  494. package/src/views/user/outLink/cc_form_view.vue +0 -188
  495. /package/src/{resources → core-resources}/js/base/common.js +0 -0
@@ -1,1705 +1,1734 @@
1
- <template>
2
- <div>
3
- <h5-card-pane label="流程信息">
4
- <template #default>
5
- <div class="flowPath-box">
6
- <!-- 这一行的值是 wfInfo.name(流程主题),标签原先误写成「任务情况」——
7
- 与下面第三行「查看任务情况」重名。PC content.vue 同一个值的标签就是
8
- 「流程主题」(components.wf.theme)。 -->
9
- <div class="t"><span>{{ $t2('流程主题', 'components.wf.theme') }}</span></div>
10
- <div class="c">
11
- <div class="name">
12
- {{ (wfInfo.createDate ? wfInfo.createDate.substring(0, 10) : '') + wfInfo.name }}
13
- <el-tag :type="getWfStatusType()" size="mini">{{ getWfStatusLabel() }}</el-tag>
14
- </div>
15
- </div>
16
- <div class="m2">
17
- <div class="t"><span>{{ $t2('流程图', 'components.wf.wfImage') }}</span></div>
18
- <div class="c">
19
- <el-button icon="" class="btn" @click="showPreviewDialog=true" icon="el-icon-view">查看流程图</el-button>
20
- </div>
21
- </div>
22
- <div class="m2">
23
- <div class="t"><span>{{ $t2('任务情况', 'components.wf.taskInfo') }}</span></div>
24
- <div class="c">
25
- <el-button icon="" class="btn" @click="showRenwuDialog=true" icon="iconfont icon-preview">查看任务情况
26
- </el-button>
27
- </div>
28
- </div>
29
-
30
- </div>
31
- <!-- hideActions:宿主已经把审批动作提到别处(如 xform H5 的底部动作栏)时,
32
- 这一排整条藏掉,避免一个动作出现两份。与 PC content.vue 的
33
- headerActionsMounted 同意图,这里做成 prop 是为了没有时序问题。 -->
34
- <div class="flowPath-btns" v-show="!hideActions">
35
- <el-button type="success" plain class="btn" @click="openAgreeDialog" v-show="wfInfo.toSubmit"
36
- icon="iconfont icon-tongguo">{{ $t2('通过', 'components.wf.agree') }}
37
- </el-button>
38
- <el-button type="warning" plain class="btn" @click="openManualDialog" v-show="wfInfo.toInterrupt"
39
- icon="iconfont icon-caozuozhongduan">{{ $t2('中断', 'components.wf.manual') }}
40
- </el-button>
41
- <el-button type="danger" plain class="btn" @click="rejectWfTask" v-show="wfInfo.toReject"
42
- icon="iconfont icon-a-bohui1">{{ $t2('驳回', 'components.wf.reject') }}
43
- </el-button>
44
- <el-button type="primary" plain class="btn" @click="openChangeWfForm"
45
- v-show="(wfInfo.toTransfer===null || wfInfo.toTransfer===undefined) ? wfInfo.toSubmit: wfInfo.toTransfer"
46
- icon="iconfont icon-zhuanban">{{ $t2('转办', 'components.wf.transfer') }}
47
- </el-button>
48
- <el-button type="primary" plain class="btn" @click="openUrgingDialog" v-show="wfInfo.toInterrupt"
49
- icon="iconfont icon-cuiban">{{ $t2('催办', 'components.wf.urging') }}
50
- </el-button>
51
- <el-button type="primary" plain class="btn" @click="openAddIncreaseSign" v-show="wfInfo.toAddIncreaseSign"
52
- icon="el-icon-plus">{{ $t2('加签', 'components.wf.addIncreaseSign') }}
53
- </el-button>
54
- <el-button type="primary" plain class="btn" @click="openDeleteTaskUserDialog"
55
- v-show="wfInfo.toDeleteIncreaseSign"
56
- icon="el-icon-delete">{{ $t2('减签', 'components.wf.deleteIncreaseSign') }}
57
- </el-button>
58
- <el-button type="primary" plain class="btn" @click="openTalkDialog()"
59
- icon="el-icon-chat-dot-square" v-if="toTalk && wfInfo.toLinkup">
60
- {{ $t2('沟通', 'components.wf.talk') }}
61
- </el-button>
62
- <el-button type="primary" plain class="btn" @click="openSetCandidateDialog(null)"
63
- v-show="wfInfo.toSetCandidate"
64
- icon="el-icon-user">{{ $t2('修改候选人', 'components.wf.setCandidate') }}
65
- </el-button>
66
- <el-button type="danger" plain class="btn" @click="openRevokeDialog(null)"
67
- v-show="wfInfo.toRevoke"
68
- icon="el-icon-document-delete">{{ $t2('撤回', 'components.wf.revoke') }}
69
- </el-button>
70
- </div>
71
- </template>
72
- </h5-card-pane>
73
-
74
- <!-- 流程相关的弹框必须放在卡片外面。h5CardPane 折叠时会给 .cont 加
75
- display:none,放在插槽里的弹框会被一起隐藏 —— 表现为「流程信息收起后,
76
- 通过/驳回/转办这些弹框点了没反应」(祖先 display:none 无法被后代覆盖)。 -->
77
- <el-dialog
78
- title="流程图预览"
79
- :modal-append-to-body="false"
80
- :close-on-click-modal="false"
81
- :visible.sync="showPreviewDialog"
82
- :modal="false"
83
- custom-class="dialog-style h5view-dialog"
84
- width="100%"
85
- top="0px"
86
- v-el-drag-dialog
87
- v-el-dialog-center
88
- :append-to-body ="true"
89
- :destroy-on-close="true"
90
- >
91
- <div class="flex">
92
- <el-form label-position="top" class="form-box">
93
- <div class="tit"><span>{{
94
- (wfInfo.createDate ? wfInfo.createDate.substring(0, 10) : '') + wfInfo.name
95
- }}</span></div>
96
- <iframe style="width: 100%;flex:1" :src="wfImage"></iframe>
97
- </el-form>
98
- </div>
99
- <span slot="footer" class="dialog-footer">
100
- <el-button
101
- type="primary"
102
- plain
103
- class="button-sty"
104
- icon="el-icon-close"
105
- @click="showPreviewDialog = false"
106
- >{{$t2('关 闭', 'system.button.close2')}}</el-button
107
- >
108
- </span>
109
- </el-dialog>
110
-
111
- <el-dialog
112
- title="任务情况预览"
113
- :modal-append-to-body="false"
114
- :close-on-click-modal="false"
115
- :visible.sync="showRenwuDialog"
116
- :modal="false"
117
- custom-class="dialog-style h5view-dialog"
118
- width="100%"
119
- top="0px"
120
- v-el-drag-dialog
121
- v-el-dialog-center
122
- :append-to-body ="true"
123
- :destroy-on-close="true"
124
- >
125
- <div class="flex">
126
- <div class="h5-process-info">
127
- <div class="item" v-for="wftaskLineData in wftaskData" :key="wftaskLineData.id">
128
- <div class="time">
129
- {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(0, 10) : '' }}
130
- <br/>
131
- {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(11) : '' }}
132
- </div>
133
- <div class="status"
134
- :class="taskStatuses[wftaskLineData.type]?taskStatuses[wftaskLineData.type].class:''">
135
- {{ taskStatuses[wftaskLineData.type] ? taskStatuses[wftaskLineData.type].value : null }}
136
- </div>
137
- <i class="circle"></i>
138
- <div class="info">
139
- <p>
140
- <span class="name">{{ wftaskLineData.taskName }}</span>
141
- <span>{{ $t2('执行人', 'components.wf.approverName') }}:{{ wftaskLineData.approverName }}</span>
142
- <span>
143
- {{ $t2('候选人', 'components.wf.candidateName') }}:
144
- <span class="">{{ wftaskLineData.candidateNames }}</span>
145
- </span>
146
- </p>
147
- <p class="t"><span class="t1">{{ $t2('备注/意见', 'components.wf.opinion') }}:</span><span>{{
148
- wftaskLineData.opinion
149
- }}</span></p>
150
- </div>
151
- </div>
152
- </div>
153
- </div>
154
- <!-- 同上:只读预览,合成一个「关 闭」 -->
155
- <span slot="footer" class="dialog-footer">
156
- <el-button
157
- type="primary"
158
- plain
159
- class="button-sty"
160
- icon="el-icon-close"
161
- @click="showRenwuDialog = false"
162
- >{{$t2('关 闭', 'system.button.close2')}}</el-button
163
- >
164
- </span>
165
- </el-dialog>
166
- <!-- 下面 5 个确认框(中断 / 驳回 / 通过 / 转办 / 加签)都走 v-append-to-body:
167
- 节点搬到 document.body 下,不再靠 position:fixed 在宿主子树里侥幸生效。
168
- 它们保持 .pop-tipsBox 的原造型,没有改成 el-dialog——那个圆角卡片 + 顶部
169
- 溢出圆形图标的样子要用 el-dialog 复刻,得把 header/body/footer 三段默认
170
- 样式全推翻,样式量不减反增。
171
-
172
- 三条约束,改动前先看 directive/append-to-body/index.js 的说明:
173
- 1. 必须是 v-show,不能换回 v-if(Vue 的 insert() 会静默跳过以被搬走的
174
- 节点为参照物的插入,兄弟顺序会错乱);
175
- 2. 内联 style="display: block;" 不能删(v-show 的 originalDisplay 取自
176
- 它,删了「显示」态会退回各应用 h5.scss 里 .pop-tipsBox{display:none});
177
- 3. 多挂的 h5-pop-tips 类是样式作用域锚点——搬到 body 后 .xform-h5 前缀
178
- 全部失配,样式改挂在 .pop-tipsBox.h5-pop-tips 上,既保住原有优先级,
179
- 又不会误伤同样用 .pop-tipsBox 的 confirmDialog / baseAlert / errorMsg。 -->
180
- <div class="pop-tipsBox h5-pop-tips" style="display: block;" v-show="showWfManualDialog"
181
- v-append-to-body>
182
- <div>
183
- <i class="icon"></i>
184
- <div class="cont">
185
- <p class="name">
186
- {{ $t2('流程中断', 'components.wf.wfManual') }}<span>—</span><b
187
- class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
188
- wfInfo.taskName
189
- }}</b>
190
- </p>
191
- <p class="txt">{{ $t2('您确定要中断流程吗?', 'components.wf.manualTip') }}</p>
192
- </div>
193
- <div class="btns">
194
- <el-button type="primary" class="btn" plain icon="el-icon-close" @click="showWfManualDialog = false">{{
195
- $t2('取 消', 'system.button.cancel2')
196
- }}
197
- </el-button>
198
- <el-button type="primary" class="btn" icon="el-icon-check" @click="manualEndWf()">{{
199
- $t2('确 定', 'system.button.confirm2')
200
- }}
201
- </el-button>
202
- </div>
203
- </div>
204
- </div>
1
+ <template>
2
+ <div>
3
+ <h5-card-pane label="流程信息">
4
+ <template #default>
5
+ <div class="flowPath-box">
6
+ <!-- 这一行的值是 wfInfo.name(流程主题),标签原先误写成「任务情况」——
7
+ 与下面第三行「查看任务情况」重名。PC content.vue 同一个值的标签就是
8
+ 「流程主题」(components.wf.theme)。 -->
9
+ <div class="t"><span>{{ $t2('流程主题', 'components.wf.theme') }}</span></div>
10
+ <div class="c">
11
+ <div class="name">
12
+ {{ (wfInfo.createDate ? wfInfo.createDate.substring(0, 10) : '') + wfInfo.name }}
13
+ <el-tag :type="getWfStatusType()" size="mini">{{ getWfStatusLabel() }}</el-tag>
14
+ </div>
15
+ </div>
16
+ <div class="m2">
17
+ <div class="t"><span>{{ $t2('流程图', 'components.wf.wfImage') }}</span></div>
18
+ <div class="c">
19
+ <el-button class="btn" @click="showPreviewDialog=true" icon="el-icon-view">查看流程图</el-button>
20
+ </div>
21
+ </div>
22
+ <div class="m2">
23
+ <div class="t"><span>{{ $t2('任务情况', 'components.wf.taskInfo') }}</span></div>
24
+ <div class="c">
25
+ <el-button class="btn" @click="showRenwuDialog=true" icon="iconfont icon-preview">查看任务情况
26
+ </el-button>
27
+ </div>
28
+ </div>
29
+
30
+ </div>
31
+ <!-- hideActions:宿主已经把审批动作提到别处(如 xform H5 的底部动作栏)时,
32
+ 这一排整条藏掉,避免一个动作出现两份。与 PC content.vue 的
33
+ headerActionsMounted 同意图,这里做成 prop 是为了没有时序问题。 -->
34
+ <div class="flowPath-btns" v-show="!hideActions">
35
+ <el-button type="success" plain class="btn" @click="openAgreeDialog" v-show="wfInfo.toSubmit"
36
+ icon="iconfont icon-tongguo">{{ $t2('通过', 'components.wf.agree') }}
37
+ </el-button>
38
+ <el-button type="warning" plain class="btn" @click="openManualDialog" v-show="wfInfo.toInterrupt"
39
+ icon="iconfont icon-caozuozhongduan">{{ $t2('中断', 'components.wf.manual') }}
40
+ </el-button>
41
+ <el-button type="danger" plain class="btn" @click="rejectWfTask" v-show="wfInfo.toReject"
42
+ icon="iconfont icon-a-bohui1">{{ $t2('驳回', 'components.wf.reject') }}
43
+ </el-button>
44
+ <el-button type="primary" plain class="btn" @click="openChangeWfForm"
45
+ v-show="transferEnabled && ((wfInfo.toTransfer===null || wfInfo.toTransfer===undefined) ? wfInfo.toSubmit: wfInfo.toTransfer)"
46
+ icon="iconfont icon-zhuanban">{{ $t2('转办', 'components.wf.transfer') }}
47
+ </el-button>
48
+ <el-button type="primary" plain class="btn" @click="openUrgingDialog" v-show="wfInfo.toInterrupt"
49
+ icon="iconfont icon-cuiban">{{ $t2('催办', 'components.wf.urging') }}
50
+ </el-button>
51
+ <el-button type="primary" plain class="btn" @click="openAddIncreaseSign" v-show="wfInfo.toAddIncreaseSign"
52
+ icon="el-icon-plus">{{ $t2('加签', 'components.wf.addIncreaseSign') }}
53
+ </el-button>
54
+ <el-button type="primary" plain class="btn" @click="openDeleteTaskUserDialog"
55
+ v-show="wfInfo.toDeleteIncreaseSign"
56
+ icon="el-icon-delete">{{ $t2('减签', 'components.wf.deleteIncreaseSign') }}
57
+ </el-button>
58
+ <el-button type="primary" plain class="btn" @click="openTalkDialog()"
59
+ icon="el-icon-chat-dot-square" v-if="toTalk && wfInfo.toLinkup">
60
+ {{ $t2('沟通', 'components.wf.talk') }}
61
+ </el-button>
62
+ <el-button type="primary" plain class="btn" @click="openSetCandidateDialog(null)"
63
+ v-show="wfInfo.toSetCandidate"
64
+ icon="el-icon-user">{{ $t2('修改候选人', 'components.wf.setCandidate') }}
65
+ </el-button>
66
+ <el-button type="danger" plain class="btn" @click="openRevokeDialog(null)"
67
+ v-show="wfInfo.toRevoke"
68
+ icon="el-icon-document-delete">{{ $t2('撤回', 'components.wf.revoke') }}
69
+ </el-button>
70
+ </div>
71
+ </template>
72
+ </h5-card-pane>
73
+
74
+ <!-- 流程相关的弹框必须放在卡片外面。h5CardPane 折叠时会给 .cont 加
75
+ display:none,放在插槽里的弹框会被一起隐藏 —— 表现为「流程信息收起后,
76
+ 通过/驳回/转办这些弹框点了没反应」(祖先 display:none 无法被后代覆盖)。 -->
77
+ <el-dialog
78
+ title="流程图预览"
79
+ :modal-append-to-body="false"
80
+ :close-on-click-modal="false"
81
+ :visible.sync="showPreviewDialog"
82
+ :modal="false"
83
+ custom-class="dialog-style h5view-dialog"
84
+ width="100%"
85
+ top="0px"
86
+ v-el-drag-dialog
87
+ v-el-dialog-center
88
+ :append-to-body ="true"
89
+ :destroy-on-close="true"
90
+ >
91
+ <div class="flex">
92
+ <el-form label-position="top" class="form-box">
93
+ <div class="tit"><span>{{
94
+ (wfInfo.createDate ? wfInfo.createDate.substring(0, 10) : '') + wfInfo.name
95
+ }}</span></div>
96
+ <iframe
97
+ ref="wfPreviewFrame"
98
+ style="width: 100%;flex:1"
99
+ :src="wfImage"
100
+ @load="fitWorkflowPreview"
101
+ ></iframe>
102
+ </el-form>
103
+ </div>
104
+ <span slot="footer" class="dialog-footer">
105
+ <el-button
106
+ type="primary"
107
+ plain
108
+ class="button-sty"
109
+ icon="el-icon-close"
110
+ @click="showPreviewDialog = false"
111
+ >{{$t2('关 闭', 'system.button.close2')}}</el-button
112
+ >
113
+ </span>
114
+ </el-dialog>
115
+
116
+ <el-dialog
117
+ title="任务情况预览"
118
+ :modal-append-to-body="false"
119
+ :close-on-click-modal="false"
120
+ :visible.sync="showRenwuDialog"
121
+ :modal="false"
122
+ custom-class="dialog-style h5view-dialog"
123
+ width="100%"
124
+ top="0px"
125
+ v-el-drag-dialog
126
+ v-el-dialog-center
127
+ :append-to-body ="true"
128
+ :destroy-on-close="true"
129
+ >
130
+ <div class="flex">
131
+ <div class="h5-process-info">
132
+ <div class="item" v-for="wftaskLineData in wftaskData" :key="wftaskLineData.id">
133
+ <div class="time">
134
+ {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(0, 10) : '' }}
135
+ <br/>
136
+ {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(11) : '' }}
137
+ </div>
138
+ <div class="status"
139
+ :class="taskStatuses[wftaskLineData.type]?taskStatuses[wftaskLineData.type].class:''">
140
+ {{ taskStatuses[wftaskLineData.type] ? taskStatuses[wftaskLineData.type].value : null }}
141
+ </div>
142
+ <i class="circle"></i>
143
+ <div class="info">
144
+ <p>
145
+ <span class="name">{{ wftaskLineData.taskName }}</span>
146
+ <span>{{ $t2('执行人', 'components.wf.approverName') }}:{{ wftaskLineData.approverName }}</span>
147
+ <span>
148
+ {{ $t2('候选人', 'components.wf.candidateName') }}:
149
+ <span class="">{{ wftaskLineData.candidateNames }}</span>
150
+ </span>
151
+ </p>
152
+ <p class="t"><span class="t1">{{ $t2('备注/意见', 'components.wf.opinion') }}:</span><span>{{
153
+ wftaskLineData.opinion
154
+ }}</span></p>
155
+ </div>
156
+ </div>
157
+ </div>
158
+ </div>
159
+ <!-- 同上:只读预览,合成一个「关 闭」 -->
160
+ <span slot="footer" class="dialog-footer">
161
+ <el-button
162
+ type="primary"
163
+ plain
164
+ class="button-sty"
165
+ icon="el-icon-close"
166
+ @click="showRenwuDialog = false"
167
+ >{{$t2('关 闭', 'system.button.close2')}}</el-button
168
+ >
169
+ </span>
170
+ </el-dialog>
171
+ <!-- 下面 5 个确认框(中断 / 驳回 / 通过 / 转办 / 加签)都走 v-append-to-body:
172
+ 节点搬到 document.body 下,不再靠 position:fixed 在宿主子树里侥幸生效。
173
+ 它们保持 .pop-tipsBox 的原造型,没有改成 el-dialog——那个圆角卡片 + 顶部
174
+ 溢出圆形图标的样子要用 el-dialog 复刻,得把 header/body/footer 三段默认
175
+ 样式全推翻,样式量不减反增。
176
+
177
+ 三条约束,改动前先看 directive/append-to-body/index.js 的说明:
178
+ 1. 必须是 v-show,不能换回 v-if(Vue 的 insert() 会静默跳过以被搬走的
179
+ 节点为参照物的插入,兄弟顺序会错乱);
180
+ 2. 内联 style="display: block;" 不能删(v-show 的 originalDisplay 取自
181
+ 它,删了「显示」态会退回各应用 h5.scss 里 .pop-tipsBox{display:none});
182
+ 3. 多挂的 h5-pop-tips 类是样式作用域锚点——搬到 body 后 .xform-h5 前缀
183
+ 全部失配,样式改挂在 .pop-tipsBox.h5-pop-tips 上,既保住原有优先级,
184
+ 又不会误伤同样用 .pop-tipsBox 的 confirmDialog / baseAlert / errorMsg。 -->
185
+ <div class="pop-tipsBox h5-pop-tips" style="display: block;" v-show="showWfManualDialog"
186
+ v-append-to-body>
187
+ <div>
188
+ <i class="icon"></i>
189
+ <div class="cont">
190
+ <p class="name">
191
+ {{ $t2('流程中断', 'components.wf.wfManual') }}<span>—</span><b
192
+ class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
193
+ wfInfo.taskName
194
+ }}</b>
195
+ </p>
196
+ <p class="txt">{{ $t2('您确定要中断流程吗?', 'components.wf.manualTip') }}</p>
197
+ </div>
198
+ <div class="btns">
199
+ <el-button type="primary" class="btn" plain icon="el-icon-close" @click="showWfManualDialog = false">{{
200
+ $t2('取 消', 'system.button.cancel2')
201
+ }}
202
+ </el-button>
203
+ <el-button type="primary" class="btn" icon="el-icon-check" @click="manualEndWf()">{{
204
+ $t2('确 定', 'system.button.confirm2')
205
+ }}
206
+ </el-button>
207
+ </div>
208
+ </div>
209
+ </div>
205
210
  <div class="pop-tipsBox h5-pop-tips" style="display: block;" v-show="rejectDialogVisible"
206
- v-append-to-body>
207
- <div>
208
- <i class="icon"></i>
209
- <div class="cont">
210
- <p class="name">{{ $t2('流程驳回', 'components.wf.wfReject') }}<span
211
- >—</span><b
212
- class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
213
- wfInfo.taskName
214
- }}</b></p>
215
- <el-form label-position="top" class="form-box">
216
- <el-form-item label="驳回节点" field="nodeId">
217
- <el-select v-model="rejectForm.nodeId"
218
- :placeholder="$t2('请选择驳回节点', 'components.wf.rejectNodePlaceholder')">
219
- <el-option v-for="(rejectNode,index) in rejectNodes" :label="rejectNode.nodeName"
220
- :value="rejectNode.nodeId" :key="index"></el-option>
221
- </el-select>
222
- </el-form-item>
223
- <el-form-item label="驳回意见" field="opinion">
224
- <el-input type="textarea" :rows="8"
225
- :placeholder="$t2('请输入内容', 'components.wf.rejectOpinionPlaceholder')"
226
- v-model="rejectForm.opinion" class="txt"></el-input>
227
- </el-form-item>
228
- </el-form>
229
- </div>
230
- <div class="btns">
231
- <el-button type="primary" class="btn" plain icon="el-icon-close" @click="rejectDialogVisible = false">{{
232
- $t2('取 消', 'system.button.cancel2')
233
- }}
234
- </el-button>
235
- <el-button type="primary" class="btn" icon="el-icon-check" @click="subRejectForm()">{{
236
- $t2('确 定', 'system.button.confirm2')
237
- }}
238
- </el-button>
239
- </div>
240
- </div>
241
- </div>
211
+ v-append-to-body>
212
+ <div>
213
+ <i class="icon"></i>
214
+ <div class="cont">
215
+ <p class="name">{{ $t2('流程驳回', 'components.wf.wfReject') }}<span
216
+ >—</span><b
217
+ class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
218
+ wfInfo.taskName
219
+ }}</b></p>
220
+ <el-form label-position="top" class="form-box">
221
+ <el-form-item label="驳回节点" field="nodeId">
222
+ <el-select v-model="rejectForm.nodeId"
223
+ :placeholder="$t2('请选择驳回节点', 'components.wf.rejectNodePlaceholder')">
224
+ <el-option v-for="(rejectNode,index) in rejectNodes" :label="rejectNode.nodeName"
225
+ :value="rejectNode.nodeId" :key="index"></el-option>
226
+ </el-select>
227
+ </el-form-item>
228
+ <el-form-item label="驳回意见" field="opinion">
229
+ <el-input type="textarea" :rows="5"
230
+ :placeholder="$t2('请输入内容', 'components.wf.rejectOpinionPlaceholder')"
231
+ v-model="rejectForm.opinion" class="txt"></el-input>
232
+ </el-form-item>
233
+ </el-form>
234
+ </div>
235
+ <div class="btns">
236
+ <el-button type="primary" class="btn" plain icon="el-icon-close" @click="rejectDialogVisible = false">{{
237
+ $t2('取 消', 'system.button.cancel2')
238
+ }}
239
+ </el-button>
240
+ <el-button type="primary" class="btn" icon="el-icon-check" @click="subRejectForm()">{{
241
+ $t2('确 定', 'system.button.confirm2')
242
+ }}
243
+ </el-button>
244
+ </div>
245
+ </div>
246
+ </div>
242
247
  <div class="pop-tipsBox h5-pop-tips" style="display: block;" v-show="agreeDialogVisible"
243
- v-append-to-body>
244
- <div>
245
- <i class="icon"></i>
246
- <div class="cont">
247
- <p class="name">{{ $t2('流程通过', 'components.wf.wfAgree') }}<span
248
- >—</span><b
249
- class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
250
- wfInfo.taskName
251
- }}</b></p>
252
- <el-form label-position="top" class="form-box">
253
- <!-- 只有分支网关这类多出口节点,getNextOutgoingNodes 才会返回候选节点;
254
- 单出口节点返回空数组,这一项必须整条不渲染,否则会露出一个没有任何
255
- 选项的空下拉(提交时 nodeId 本就传 null,不需要选)。
256
- 与 PC content.vue 的 <tr v-if="agreeNodes.length > 0"> 同口径。 -->
257
- <el-form-item v-if="agreeNodes.length > 0"
258
- :label="$t2('通过节点', 'components.wf.agreeNode')" field="nodeId">
259
- <el-select v-model="agreeForm.nodeId"
260
- :placeholder="$t2('请选择通过节点', 'components.wf.agreeNodePlaceholder')">
261
- <el-option v-for="(node,index) in agreeNodes" :label="node.nodeName"
262
- :value="node.nodeId" :key="index"></el-option>
263
- </el-select>
264
- </el-form-item>
265
- <el-form-item :label="$t2('通过意见', 'components.wf.agreeOpinion')" field="opinion">
266
- <el-input type="textarea" :rows="8" :placeholder="$t2(`请填写您的意见~
267
- 注:
268
- 通过默认意见为“同意”
269
- `, 'components.wf.agreeOpinionPlaceholder')" v-model="agreeForm.opinion"></el-input>
270
- </el-form-item>
271
- </el-form>
272
- </div>
273
- <div class="btns">
274
- <el-button type="primary" class="btn" plain icon="el-icon-close" @click="agreeDialogVisible = false">{{
275
- $t2('取 消', 'system.button.cancel2')
276
- }}
277
- </el-button>
278
- <el-button type="primary" class="btn" icon="el-icon-check" @click="subAgreeForm()">{{
279
- $t2('确 定', 'system.button.confirm2')
280
- }}
281
- </el-button>
282
- </div>
283
- </div>
284
- </div>
248
+ v-append-to-body>
249
+ <div>
250
+ <i class="icon"></i>
251
+ <div class="cont">
252
+ <p class="name">{{ $t2('流程通过', 'components.wf.wfAgree') }}<span
253
+ >—</span><b
254
+ class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
255
+ wfInfo.taskName
256
+ }}</b></p>
257
+ <el-form label-position="top" class="form-box">
258
+ <!-- 只有分支网关这类多出口节点,getNextOutgoingNodes 才会返回候选节点;
259
+ 单出口节点返回空数组,这一项必须整条不渲染,否则会露出一个没有任何
260
+ 选项的空下拉(提交时 nodeId 本就传 null,不需要选)。
261
+ 与 PC content.vue 的 <tr v-if="agreeNodes.length > 0"> 同口径。 -->
262
+ <el-form-item v-if="agreeNodes.length > 0"
263
+ :label="$t2('通过节点', 'components.wf.agreeNode')" field="nodeId">
264
+ <el-select v-model="agreeForm.nodeId"
265
+ :placeholder="$t2('请选择通过节点', 'components.wf.agreeNodePlaceholder')">
266
+ <el-option v-for="(node,index) in agreeNodes" :label="node.nodeName"
267
+ :value="node.nodeId" :key="index"></el-option>
268
+ </el-select>
269
+ </el-form-item>
270
+ <el-form-item :label="$t2('通过意见', 'components.wf.agreeOpinion')" field="opinion">
271
+ <el-input type="textarea" :rows="8" :placeholder="$t2(`请填写您的意见~
272
+ 注:
273
+ 通过默认意见为“同意”
274
+ `, 'components.wf.agreeOpinionPlaceholder')" v-model="agreeForm.opinion"></el-input>
275
+ </el-form-item>
276
+ </el-form>
277
+ </div>
278
+ <div class="btns">
279
+ <el-button type="primary" class="btn" plain icon="el-icon-close" @click="agreeDialogVisible = false">{{
280
+ $t2('取 消', 'system.button.cancel2')
281
+ }}
282
+ </el-button>
283
+ <el-button type="primary" class="btn" icon="el-icon-check" @click="subAgreeForm()">{{
284
+ $t2('确 定', 'system.button.confirm2')
285
+ }}
286
+ </el-button>
287
+ </div>
288
+ </div>
289
+ </div>
285
290
  <div class="pop-tipsBox h5-pop-tips" style="display: block;" v-show="changeWfDialogVisible"
286
- v-append-to-body>
287
- <div>
288
- <i class="icon"></i>
289
- <div class="cont">
290
- <p class="name">{{ $t2('流程转办', 'components.wf.wfTransfer') }}<span>—</span><b
291
- class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
292
- wfInfo.taskName
293
- }}</b></p>
294
- <el-form label-position="top" class="form-box">
295
- <el-form-item label="转办人" field="nodeId">
296
- <el-input
297
- class="search-input"
298
- max="200"
299
- v-model="changeWfForm.userNickNames"
300
- @clear="
301
- changeWfForm.userIds = '';
302
- changeUserRows = [];
303
- $forceUpdate();
304
- "
305
- v-el-readonly
306
- clearable
307
- >
308
- <i slot="suffix" class="el-input__icon el-icon-search" @click="showUserDialog = true"></i>
309
- </el-input>
310
- </el-form-item>
311
- <el-form-item label="转办意见" field="opinion">
312
- <el-input type="textarea" :rows="8"
313
- :placeholder="$t2('请输入内容', 'components.wf.transferOpinionPlaceholder')"
314
- v-model="changeWfForm.opinion"></el-input>
315
- </el-form-item>
316
- </el-form>
317
- </div>
318
- <div class="btns">
319
- <el-button type="primary" class="btn" plain @click="changeWfDialogVisible = false">{{
320
- $t2('取 消', 'system.button.cancel2')
321
- }}
322
- </el-button>
323
- <el-button type="primary" class="btn" @click="subChangeWfForm()">
324
- {{ $t2('确认转办', 'components.wf.confirmTransfer') }}
325
- </el-button>
326
- </div>
327
- </div>
328
- </div>
291
+ v-append-to-body>
292
+ <div>
293
+ <i class="icon"></i>
294
+ <div class="cont">
295
+ <p class="name">{{ $t2('流程转办', 'components.wf.wfTransfer') }}<span>—</span><b
296
+ class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
297
+ wfInfo.taskName
298
+ }}</b></p>
299
+ <el-form label-position="top" class="form-box">
300
+ <el-form-item label="转办人" field="nodeId">
301
+ <el-input
302
+ class="search-input"
303
+ max="200"
304
+ v-model="changeWfForm.userNickNames"
305
+ @clear="
306
+ changeWfForm.userIds = '';
307
+ changeUserRows = [];
308
+ $forceUpdate();
309
+ "
310
+ v-el-readonly
311
+ clearable
312
+ >
313
+ <i slot="suffix" class="el-input__icon el-icon-search" @click="showUserDialog = true"></i>
314
+ </el-input>
315
+ </el-form-item>
316
+ <el-form-item label="转办意见" field="opinion">
317
+ <el-input type="textarea" :rows="8"
318
+ :placeholder="$t2('请输入内容', 'components.wf.transferOpinionPlaceholder')"
319
+ v-model="changeWfForm.opinion"></el-input>
320
+ </el-form-item>
321
+ </el-form>
322
+ </div>
323
+ <div class="btns">
324
+ <el-button type="primary" class="btn" plain @click="changeWfDialogVisible = false">{{
325
+ $t2('取 消', 'system.button.cancel2')
326
+ }}
327
+ </el-button>
328
+ <el-button type="primary" class="btn" @click="subChangeWfForm()">
329
+ {{ $t2('确认转办', 'components.wf.confirmTransfer') }}
330
+ </el-button>
331
+ </div>
332
+ </div>
333
+ </div>
329
334
  <div class="pop-tipsBox h5-pop-tips" style="display: block;" v-show="showAddIncreaseSignDialog"
330
- v-append-to-body>
331
- <div>
332
- <i class="icon"></i>
333
- <div class="cont">
334
- <p class="name">
335
- {{ $t2('流程加签', 'components.wf.wfAddIncreaseSign') }}<span>—</span><b
336
- class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
337
- wfInfo.taskName
338
- }}</b>
339
- </p>
340
- <el-form label-position="top" class="form-box">
341
- <el-form-item label="候选人">
342
- <el-input
343
- class="search-input"
344
- max="200"
345
- v-model="addIncreaseSignForm.userNickNames"
346
- @clear="
347
- addIncreaseSignUsers = [];
348
- $forceUpdate();
349
- "
350
- :placeholder="$t2('候选人', 'components.wf.addIncreaseSignUser')"
351
- v-el-readonly
352
- clearable
353
- >
354
- <i slot="suffix" class="el-input__icon el-icon-search"
355
- @click="showAddTaskUserDialog = true"></i>
356
- </el-input>
357
- </el-form-item>
358
- <el-form-item label="加签意见" field="opinion">
359
- <el-input type="textarea" :rows="8"
360
- :placeholder="$t2('请输入内容', 'components.wf.addIncreaseSignOpinionPlaceholder')"
361
- v-model="addIncreaseSignForm.opinion"></el-input>
362
- </el-form-item>
363
- </el-form>
364
- </div>
365
- <div class="btns">
366
- <el-button type="primary" class="btn" plain @click="showAddIncreaseSignDialog = false">{{
367
- $t2('取 消', 'system.button.cancel2')
368
- }}
369
- </el-button>
370
- <el-button type="primary" class="btn" @click="submitAddTaskUserForm(0)">
371
- {{ $t2('确认加签', 'components.wf.confirmAddIncreaseSign') }}
372
- </el-button>
373
- </div>
374
- </div>
375
- </div>
376
-
377
- <user-dialog v-if="showUserDialog" :visiable.sync="showUserDialog" @close="showUserDialog = false"
378
- @confirm="userConfirm" multi="true" :param.sync="wfUserParamForTransfer"
379
- :rows="changeUserRows"></user-dialog>
380
- <urgingDialog v-if="urgingDialogVisible" :visiable.sync="urgingDialogVisible" :wfInfo="wfInfo"
381
- :current_prefix="current_prefix"
382
- @confirm="reloadContent" multi="true"></urgingDialog>
383
- <deleteTaskUserDialog v-if="showDeleteTaskUserDialog" :visiable.sync="showDeleteTaskUserDialog" :wfInfo="wfInfo"
384
- :current_prefix="current_prefix"
385
- @confirm="reloadContent" multi="true"></deleteTaskUserDialog>
386
-
387
- <addTaskUserdialog v-if="showAddTaskUserDialog" :visiable.sync="showAddTaskUserDialog" :wfInfo="wfInfo"
388
- :current_prefix="current_prefix" :rows.sync="addIncreaseSignUsers"
389
- @confirm="confirmAddTaskUser" multi="true"
390
- :param.sync="wfUserParamForAddSign"></addTaskUserdialog>
391
- <user-dialog v-if="showTalkUserDialog" :visiable.sync="showTalkUserDialog" @close="showTalkUserDialog = false"
392
- @confirm="confirmTalkUserDialog" multi="false" :param.sync="wfUserParamForTalk"></user-dialog>
393
- <setCandidateDialog v-if="showSetCandidateDialog" :visiable.sync="showSetCandidateDialog"
394
- @close="closeSetCandidateDialog"
395
- :wfInfo="wfInfo"
396
- :current_prefix="current_prefix"></setCandidateDialog>
397
- </div>
398
- </template>
399
- <script>
400
- import Vue from "vue";
401
-
402
- import settingConfig from "@/settings";
403
- import commonMixin from "../../../mixins/mobile/common/index";
404
- import {getToken} from "../../../utils/auth";
405
-
406
- let configUtil = {
407
- baseUrl: process.env.VUE_APP_BASE_API,
408
- getToken,
409
- settingConfig,
410
- Vue,
411
- };
412
-
413
- function appendPrevChildDom(parentDom, newDom) {
414
- if (parentDom.hasChildNodes()) {
415
- let currentDom = parentDom.children[0];
416
- parentDom.insertBefore(newDom, currentDom);
417
- } else {
418
- parentDom.append(newDom);
419
- }
420
- }
421
-
422
- function getTarget(t) {
423
- return t.parentVue;
424
- }
425
-
426
- export default {
427
- mixins: [commonMixin],
428
- props: {
429
- _wfInfo: Object,
430
- _taskParam: Object,
431
- wfOption: Object,
432
- defaultShowWfContent: Boolean,
433
- // 见模板里 .flowPath-btns 的注释:宿主接管审批动作时藏掉面板内那一排
434
- hideActions: Boolean,
435
- },
436
- components: {
437
- /* 本组件根节点就是 <h5-card-pane>,但此前没在这里注册——手写移动页是靠
438
- mixins/mobile/common 在**宿主**上局部注册才碰巧能渲染。Vue 2 解析组件只查
439
- 自身 components 与全局注册、不查父组件的局部注册,所以被别处(如 xform 的
440
- detail-h5-item)引用时会渲染不出来。补上自己的依赖声明。 */
441
- h5CardPane: () => import('../h5Card/h5CardPane.vue'),
442
- /* 选用户弹层用包内的 selectUserDialog(el-dialog + append-to-body 版)。
443
- 原来引的 views/mobile/user/user/dialog.vue 仍是 .pop-box 就地渲染版,
444
- 且 src/views 不随包发布(被包内组件引用属隐式依赖),保持原样不动。 */
445
- UserDialog: () => import('./selectUserDialog.vue'),
446
- urgingDialog: () => import('./urgingDialog'),
447
- deleteTaskUserDialog: () => import('./deleteTaskUserDialog'),
448
- addTaskUserdialog: () => import('./addTaskUserdialog'),
449
- setCandidateDialog: () => import('./setCandidateDialog')
450
- },
451
- computed: {
452
- current_prefix() {
453
- return this.serviceId ? "/" + this.serviceId : "";
454
- },
455
- viewTarget() {
456
- return getTarget(this);
457
- },
458
- isHideWf() {
459
- let that = this.viewTarget;
460
- let _hideWf = that._hideWf || that.$attrs._hideWf;
461
- return _hideWf === true || _hideWf === 'true';
462
- }
463
- },
464
- data() {
465
- let showWfFold =
466
- settingConfig.showWfFold != null && settingConfig.showWfFold != undefined
467
- ? settingConfig.showWfFold
468
- : false;
469
- let showWfContent =
470
- showWfFold &&
471
- settingConfig.defaultShowWfContent != null &&
472
- settingConfig.defaultShowWfContent != undefined
473
- ? settingConfig.defaultShowWfContent
474
- : true;
475
- if (
476
- this.defaultShowWfContent != null &&
477
- this.defaultShowWfContent != undefined
478
- ) {
479
- showWfContent = this.defaultShowWfContent;
480
- }
481
-
482
- return {
483
- showRenwuDialog: false,
484
- showDomContent: false,
485
- showPreviewDialog: false,
486
- objId: null,
487
- wfCode: null,
488
- serviceId: null,
489
- parentVue: null,
490
- wfConfig: null,
491
-
492
- fileInfos: [],
493
- showUserDialog: false,
494
- showContent: true,
495
- objTypeCode: "",
496
- // objId: '',
497
- wfInfo: {},
498
- // currentTask: {},
499
- taskParam: {},
500
- wfImage: "",
501
- wfStartBtn: false,
502
- wfManualendBtn: false,
503
- wfSubmitBtn: false,
504
- wfRejectBtn: false,
505
- changeHandlerBtn: false,
506
- wftaskData: [],
507
- allWfTaskOpinions: [],
508
- vxeOption: {},
509
- rejectNodes: [],
510
- rejectDialogVisible: false,
511
- rejectForm: {
512
- rejectSubmitModel: null,
513
- nodeId: null,
514
- opinion: null,
515
- },
516
- formLabelWidth: "120px",
517
- agreeDialogVisible: false,
518
- agreeForm: {
519
- opinion: this.$t2('同意', 'components.wf.defaultAgreeOption'),
520
- nodeId: null,
521
- },
522
- changeWfDialogVisible: false,
523
- changeWfForm: {},
524
- changeUserRows: [],
525
- taskStatuses: {
526
- start: {
527
- class: "blue",
528
- value: this.$t2('开始', 'components.wf.startStatus'),
529
- },
530
- approve: {
531
- class: "orgn",
532
- value: this.$t2('待审批', 'components.wf.approveStatus'),
533
- },
534
- submit: {
535
- class: "green",
536
- value: this.$t2('同意', 'components.wf.submitStatus'),
537
- },
538
- reject: {
539
- class: "red",
540
- value: this.$t2('驳回', 'components.wf.rejectStatus'),
541
- },
542
- transfer: {
543
- class: "green",
544
- value: this.$t2('转办', 'components.wf.transferStatus'),
545
- },
546
- addIncreaseSign: {
547
- class: "green",
548
- value: this.$t2('加签', 'components.wf.addIncreaseSignStatus'),
549
- },
550
- revoke: {
551
- class: "red",
552
- value: this.$t2('撤回', 'components.wf.revokeStatus'),
553
- },
554
- end: {
555
- class: "gray",
556
- value: this.$t2('结束', 'components.wf.endStatus'),
557
- },
558
- },
559
- opinion: "",
560
- showWfFold: showWfFold,
561
- showWfContent: showWfContent,
562
-
563
- urgingForm: {},
564
- urgingDialogVisible: false,
565
- urgingUserIds: [],
566
- urgingUsers: [],
567
- agreeNodes: [],
568
- showWfManualDialog: false,
569
-
570
- showDeleteTaskUserDialog: false,
571
- showAddTaskUserDialog: false,
572
- wfUserParam: {},
573
- wfUserParamForTransfer: {},//转办
574
- wfUserParamForAddSign: {},//加签
575
- wfUserParamForTalk: {},//沟通
576
- tabIndex: "1",
577
- linkupOption: {},
578
- talkForm: {
579
- receiverName: null,
580
- content: null,
581
- attachmentDTOs: [],
582
- replyId: null
583
- },
584
- showTalkUserDialog: false,
585
- showTalkDialog: false,
586
- showFlowImg: true,
587
- operateType: null,
588
- addIncreaseSignUsers: [],
589
- addIncreaseSignForm: {
590
- userNickNames: null,
591
- opinion: null
592
- },
593
- showAddIncreaseSignDialog: false,
594
- showOpeaImg: true,
595
- showSetCandidateDialog: false,
596
- toTalk: false,
597
- showAllWfOpinon: false,
598
-
599
- revokeDialogVisible: false,
600
- revokeForm: {opinion: null},
601
- wfStatusMap: {
602
- 1: {label: "审核中", type: "warning"},
603
- 3: {label: "已驳回", type: "danger"},
604
- 2: {label: "已完成", type: "success"}
605
- }
606
- };
607
- },
608
- provide() {
609
- return {
610
- getParentVue: () => {
611
- return this.parentVue;
612
- }
613
- };
614
- },
615
- created() {
616
- // this.wfInfo = this._wfInfo;
617
- this.showFlowImg = settingConfig.expandWfImage === false ? false : true;
618
- this.showAllWfOpinon = settingConfig.showAllWfOpinon === true;
619
- },
620
- mounted() {
621
- this.init();
622
- },
623
- methods: {
624
- getWfStatusLabel() {
625
- return this.wfStatusMap[this.wfInfo.stat]?.label;
626
- },
627
- getWfStatusType() {
628
- return this.wfStatusMap[this.wfInfo.stat]?.type;
629
- },
630
- init() {
631
- let opt = this.wfOption;
632
- this.objId = opt.objId;
633
- this.wfCode = opt.wfCode;
634
- this.serviceId = opt.serviceId;
635
- this.parentVue = opt.parentVue;
636
- this.wfConfig = this.wfOption;
637
-
638
- let wfConfig = this.wfOption;
639
- let that = getTarget(this);
640
- let hasWf = false;
641
- let wfInfo, currentTask, taskParam;
642
- let option = {
643
- objId: this.objId,
644
- wfCode: this.wfCode
645
- }
646
- let current_prefix = this.current_prefix;
647
-
648
- let initButton = () => {
649
- /*return
650
- this.$nextTick(() => {
651
- that.$refs.wfButtonGroup.init({
652
- taskParam,
653
- wfInfo,
654
- hasWf,
655
- current_prefix,
656
- wfConfig
657
- });
658
- });*/
659
- }
660
-
661
- this.initWfInfo(option, {
662
- success: res => {
663
- if (res.objx && res.objx.procInstId) {
664
- hasWf = true;
665
- wfInfo = res.objx;
666
- this.wfInfo = wfInfo;
667
- // this.showDomContent = true;
668
-
669
- if (wfInfo.taskId) {
670
- this.getTaskParams(wfInfo.taskId, {
671
- success: res2 => {
672
- taskParam = res2.objx || {};
673
- taskParam.objId = option.objId;
674
- this.taskParam = taskParam;
675
-
676
- initButton();
677
- }
678
- });
679
- } else {
680
- initButton();
681
- }
682
- this.initOperateType();
683
- this.initForAll();
684
- } else {
685
- initButton();
686
- }
687
- }
688
- });
689
- },
690
- initWfInfo(option, httpConfig) {
691
-
692
- let that = getTarget(this);
693
- let id = option.objId;
694
- let code = option.wfCode;
695
- return that.$http({
696
- url: this.current_prefix + '/wf/getWfInfo',
697
- method: `post`,
698
- data: {
699
- objTypeCode: code,
700
- objId: id
701
- },
702
- isLoading: true,
703
- modalStrictly: true,
704
- ...httpConfig
705
- });
706
- },
707
- getTaskParams(taskId, httpConfig) {
708
- let that = getTarget(this);
709
- return that.$http({
710
- url: this.current_prefix + '/wf/getTaskVariables',
711
- method: `post`,
712
- data: {
713
- stringOne: taskId
714
- },
715
- isLoading: true,
716
- modalStrictly: true,
717
- ...httpConfig
718
- });
719
- },
720
-
721
-
722
- initOperateType() {
723
- if (this.operateType) {
724
- let wfInfo = this.wfInfo;
725
- if (wfInfo.toSubmit) {
726
- this.openAgreeDialog('submit');
727
- } else if (wfInfo.toReject) {
728
- this.rejectWfTask('reject');
729
- } else if (wfInfo.toAddIncreaseSign) {
730
- this.openAddIncreaseSign('addIncreaseSign')
731
- } else if (wfInfo.toRevoke) {
732
- this.openRevokeDialog('revoke')
733
- } else if (wfInfo.toLinkup) {
734
- this.openTalkDialog(null, null, 'talk');
735
- } else {
736
- this.operateType = null;
737
- }
738
- }
739
- },
740
- initForAll() {
741
- let that = getTarget(this);
742
- this.initWf(() => {
743
- if (this.wfInfo.procInstId) {
744
- this.initCurrentTask(this.wfInfo.procInstId, () => {
745
- this.initWftask(this.wfInfo.procInstId);
746
- this.getAllWfTaskOpinions();
747
- });
748
- this.initWfUserParam();
749
- this.initTabIndex();
750
- }
751
- });
752
- },
753
- initTabIndex() {
754
- let that = getTarget(this);
755
- that.$http({
756
- url: USER_PREFIX + "/wf_diy_attribute/getValue",
757
- method: `post`,
758
- data: {attributeKey: "param7"},
759
- isLoading: true,
760
- success: (res) => {
761
- let val = res !== null ? res.objx === true : false;
762
- this.toTalk = val;
763
- let flag = false;
764
- if (val) {
765
- let flag1 = that.$attrs._isNotifyMessage == true || that.$attrs._isNotifyMessage == "true";
766
- if (flag1) {
767
- this.tabIndex = "2";
768
- }
769
- if (settingConfig.autoOpenWfLinkup) {
770
- flag = true;
771
- let flag2 = that.$attrs._wfNotifyType == "wfLinkup";
772
- let flag3 = flag1 && flag2;
773
- if (flag3) {
774
- this.$nextTick(() => {
775
- let wfTabPane = this.$refs.wfTabPane;
776
- if (!wfTabPane.showContent) {
777
- wfTabPane.handleFold();
778
- }
779
- });
780
- }
781
- }
782
- }
783
- this.initLinkup(flag);
784
- }
785
- });
786
-
787
- },
788
- initWf(done) {
789
- var data = this.wfInfo;
790
- if (data && data.procInstId) {
791
- /** 流程状态:0未启动,1审核中,2已完成,3驳回,4中断 */
792
- var statuses = {
793
- 1: '<span class="tag">' + this.$t2('审核中', 'components.wf.wfStatus1') + '</span>',
794
- 3: '<span class="tag red">' + this.$t2('已驳回', 'components.wf.wfStatus2') + '</span>',
795
- 2: '<span class="tag green">' + this.$t2('已完成', 'components.wf.wfStatus3') + '</span>',
796
- };
797
- var statusStr = "";
798
- if (data.stat != null) {
799
- statusStr = statuses[data.stat] || "";
800
- }
801
- data.statusStr = statusStr;
802
- this.wfInfo = data;
803
-
804
- this.wfStartBtn = false;
805
- if (data.status != 2 && data.starterId) {
806
- this.wfManualendBtn = true;
807
- }
808
- this.wfSubmitBtn = false;
809
- this.wfRejectBtn = false;
810
-
811
- var url =
812
- this.current_prefix +
813
- "/wf/flowImage?procInstId=" +
814
- data.procInstId +
815
- "&_r=" +
816
- Math.random() +
817
- "&access_token=" +
818
- configUtil.getToken();
819
- this.wfImage = configUtil.baseUrl + url;
820
- done();
821
- }
822
- },
823
- initCurrentTask(procInstId, done) {
824
- if (this.wfInfo.taskId) {
825
- this.wfSubmitBtn = true;
826
- this.wfRejectBtn = true;
827
- this.changeHandlerBtn = true;
828
- }
829
- done();
830
- },
831
- initWftask(procInstId) {
832
- let that = getTarget(this);
833
- that.$http({
834
- url: this.current_prefix + "/wf/getWfTaskOpinionMerge",
835
- data: {
836
- stringOne: procInstId,
837
- },
838
- method: "post",
839
- isLoading: true,
840
- modalStrictly: true,
841
- success: (resultmsg) => {
842
- var datas = resultmsg.objx || [];
843
- this.wftaskData = datas;
844
- },
845
- });
846
- },
847
- getAllWfTaskOpinions() {
848
- if (!this.showAllWfOpinon) {
849
- return;
850
- }
851
- let that = getTarget(this);
852
- let wfInfo = this.wfInfo;
853
- that.$http({
854
- url: this.current_prefix + "/wf/getAllWfTaskOpinions",
855
- data: {
856
- objId: wfInfo.objId,
857
- objTypeCode: wfInfo.objTypeCode
858
- },
859
- method: "post",
860
- isLoading: true,
861
- modalStrictly: true,
862
- success: (resultmsg) => {
863
- var datas = resultmsg.objx || [];
864
- this.allWfTaskOpinions = datas;
865
- },
866
- });
867
- },
868
- openManualDialog(operateType) {
869
- this.operateType = operateType;
870
- this.showWfManualDialog = true;
871
- },
872
- manualEndWf() {
873
- this.showWfManualDialog = false;
874
- let that = getTarget(this);
875
- var procInstId = this.wfInfo.procInstId;
876
- var taskId = this.wfInfo.taskId ? this.wfInfo.taskId : "";
877
- var data = JSON.stringify({
878
- uuid: this.wfInfo.uuid,
879
- });
880
- that.$http({
881
- url: this.current_prefix + "/wf/interrupt",
882
- data: data,
883
- method: "post",
884
- headers: {
885
- "Content-Type": "application/json;charset=utf-8",
886
- },
887
- isLoading: true,
888
- success: (resultMsg) => {
889
- that.$message({
890
- message: resultMsg.content,
891
- type: "success",
892
- duration: 500,
893
- onClose: (t) => {
894
- this.reloadContent();
895
- this.closeWinOnCheck(3);
896
- },
897
- });
898
- },
899
- });
900
- },
901
- async rejectWfTask(operateType) {
902
- // 与 PC wf.js 的 rejectWfTask 同结构:驳回也要先过一遍「驳回提醒」
903
- this.handleReminderContent("rejectReminder", async () => {
904
- let that = getTarget(this);
905
- var procInstId = this.wfInfo.procInstId;
906
- var taskId = this.wfInfo.taskId;
907
- var destinations = [];
908
-
909
- await that.$http({
910
- url: this.current_prefix + "/wf/getPreIncomeNodes",
911
- data: {
912
- stringOne: taskId,
913
- },
914
- method: "post",
915
- //contentType: 'application/json;charset=utf-8',
916
- isLoading: true,
917
- success: (resultMsg) => {
918
- destinations = (resultMsg.objx || []).reverse();
919
- },
920
- });
921
-
922
- if (destinations == null) {
923
- return false;
924
- }
925
- if (destinations.length == 0) {
926
- that.$message({
927
- message: this.$t2('无法驳回,没有目标节点', 'components.wf.rejectWarnMsg1'),
928
- type: "error",
929
- duration: 2 * 1000,
930
- });
931
- return false;
932
- }
933
- this.operateType = operateType;
934
-
935
- /* 驳回后提交模式,取自流程对象配置(wf_obj_config「驳回后提交模式」三选一):
936
- toNextNode === 1 → 顺延下一步提交 → 1
937
- toRejectNode false → 直接提交到驳回节点 → 2
938
- toRejectNode true → 由提交人确定节点提交 → null(提交时自己选)
939
- 三个分支不能省成两个:选了「顺延下一步」时后台把 toRejectNode 置为 null,
940
- 而 null == false 在 JS 里是 false,会落到 null 分支上,配置被静默丢掉。
941
- 与 PC wf.js 的 rejectWfTask 同口径。 */
942
- let rejectSubmitModel = null;
943
- if (this.wfInfo.toNextNode === 1) {
944
- rejectSubmitModel = this.wfInfo.toNextNode
945
- } else {
946
- rejectSubmitModel = this.wfInfo.toRejectNode == false ? 2 : null
947
- }
948
- this.rejectForm.rejectSubmitModel = rejectSubmitModel;
949
- this.rejectForm.nodeId = destinations[0].nodeId;
950
- this.rejectForm.opinion = "";
951
- this.rejectNodes = destinations;
952
- this.rejectDialogVisible = true;
953
- })
954
- },
955
- subRejectForm() {
956
- let that = getTarget(this);
957
- var procInstId = this.wfInfo.procInstId;
958
- var taskId = this.wfInfo.taskId;
959
-
960
- if (!this.rejectForm.nodeId) {
961
- that.$message({
962
- message: this.$t2('请选择驳回节点', 'components.wf.rejectWarnMsg2'),
963
- type: "error",
964
- duration: 2 * 1000,
965
- });
966
- return false;
967
- }
968
-
969
- if (!this.rejectForm.opinion) {
970
- that.$message({
971
- message: this.$t2('请输入驳回意见', 'components.wf.rejectWarnMsg3'),
972
- type: "error",
973
- duration: 2 * 1000,
974
- });
975
- return false;
976
- }
977
-
978
- var data = JSON.stringify({
979
- taskId: taskId,
980
- uuid: this.wfInfo.uuid,
981
- nodeId: this.rejectForm.nodeId,
982
- suggestion: this.rejectForm.opinion,
983
- rejectSubmitModel: this.rejectForm.rejectSubmitModel
984
- });
985
- this.rejectDialogVisible = false;
986
- that.$http({
987
- url: this.current_prefix + "/wf/reject",
988
- data: data,
989
- method: "post",
990
- headers: {
991
- "Content-Type": "application/json;charset=utf-8",
992
- },
993
- isLoading: true,
994
- success: (resultMsg) => {
995
- that.$message({
996
- message: resultMsg.content,
997
- type: "success",
998
- duration: 500,
999
- onClose: (t) => {
1000
- this.reloadContent();
1001
- this.closeWinOnCheck(2);
1002
- },
1003
- });
1004
- },
1005
- });
1006
- },
1007
- /**
1008
- * 提交/驳回前的「提醒内容」:后台按 scriptType 跑脚本,返回文案就先弹确认框,
1009
- * 用户点确定才继续;没有文案(或接口 404,即后端未部署该能力)直接放行。
1010
- * 与 PC wf.js 的同名方法保持一致。
1011
- *
1012
- * 提醒只是主流程前面的一道增强,不能让它把主流程带崩或卡死,所以:
1013
- * - 放行只允许一次(go 自带闸门),成功/异常各分支共用一个出口;
1014
- * - 确认框点取消 = 放弃本次操作,什么都不做,但 MessageBox 的 reject 必须吃掉,
1015
- * 否则是一条 unhandled rejection;
1016
- * - error 分支绝不能抛异常。request.js 是先调 config.error(e) 再 removeModel(config)
1017
- * (见 utils/request.js 的响应错误拦截),这里一抛,isLoading 的全屏遮罩就永远
1018
- * 关不掉、整页被锁死。而网络失败/超时时 e.response 本就是 undefined,
1019
- * 老写法 e.response.status 必崩 —— 故 status 取值全程判空。
1020
- */
1021
- handleReminderContent(scriptType, callback) {
1022
- let that = getTarget(this);
1023
- let called = false;
1024
- const go = () => {
1025
- if (called) return
1026
- called = true;
1027
- callback && callback();
1028
- };
1029
- that.$http({
1030
- url: this.current_prefix + "/wf/getReminderContent",
1031
- data: {
1032
- scriptType,
1033
- taskId: this.wfInfo.taskId,
1034
- uuid: this.wfInfo.uuid,
1035
- },
1036
- method: "post",
1037
- isLoading: true,
1038
- errorMsg: false,
1039
- success: (res) => {
1040
- if (res && res.objx) {
1041
- that.$baseConfirm(res.objx).then(go).catch(() => {});
1042
- } else {
1043
- go();
1044
- }
1045
- },
1046
- error: (e) => {
1047
- let status = e && e.response ? e.response.status : null;
1048
- if (status === 404) {
1049
- // 后端没部署这个接口,等同于「没有提醒」,静默放行
1050
- go();
1051
- return
1052
- }
1053
- /* 其余错误只提示不放行:提醒内容可能是必须让人看到的业务警告,
1054
- 接口挂了就悄悄跳过等于把它吞掉。用户重试即可。 */
1055
- that.$errorMsg({
1056
- content: (e && e.message) || this.$t2('获取提醒内容失败', 'components.wf.reminderError'),
1057
- type: 'error',
1058
- }).catch(() => {});
1059
- },
1060
- });
1061
- },
1062
- openAgreeDialog(operateType) {
1063
- const done = () => {
1064
- this.handleReminderContent("submitReminder", () => {
1065
- this.operateType = operateType;
1066
- let that = getTarget(this);
1067
- this.agreeForm = {
1068
- opinion: this.$t2('同意', 'components.wf.defaultAgreeOption'),
1069
- nodeId: null,
1070
- };
1071
- this.agreeNodes = [];
1072
- that.$http({
1073
- url: this.current_prefix + "/wf/getNextOutgoingNodes",
1074
- data: {
1075
- stringOne: this.wfInfo.taskId,
1076
- },
1077
- method: "post",
1078
- isLoading: true,
1079
- success: (res) => {
1080
- let nodes = res.objx || [];
1081
- /*if (tq == true) {
1082
- nodes.reverse();
1083
- }*/
1084
- if (nodes.length) {
1085
- this.agreeForm.nodeId = nodes[0].nodeId;
1086
- }
1087
- this.agreeNodes = nodes;
1088
- this.agreeDialogVisible = true;
1089
- },
1090
- });
1091
- })
1092
- }
1093
- // wfConfig 在 init() 里才赋值(初值 null),这里兜一层空对象
1094
- let wfConfig = this.wfConfig || {};
1095
- if (wfConfig.onClickAgree) {
1096
- wfConfig.onClickAgree(done)
1097
- } else {
1098
- done();
1099
- }
1100
- },
1101
- subAgreeForm() {
1102
- let wfConfig = this.wfConfig;
1103
- let done = () => {
1104
- this.subAgreeHandle();
1105
- }
1106
- if (wfConfig.onBeforeAgree) {
1107
- wfConfig.onBeforeAgree(done)
1108
- } else {
1109
- done();
1110
- }
1111
- },
1112
- subAgreeHandle() {
1113
- let that = getTarget(this);
1114
- let nodeId = null;
1115
- if (this.agreeNodes.length) {
1116
- if (!this.agreeForm.nodeId) {
1117
- that.$message({
1118
- message: this.$t2('请选择节点', 'components.wf.agreeWarnMsg1'),
1119
- type: "error",
1120
- duration: 2 * 1000,
1121
- });
1122
- return;
1123
- }
1124
- nodeId = this.agreeForm.nodeId;
1125
- }
1126
-
1127
- var procInstId = this.wfInfo.procInstId;
1128
- var taskId = this.wfInfo.taskId;
1129
- var memo = this.agreeForm.opinion || this.$t2('同意', 'components.wf.defaultAgreeOption');
1130
- var data = JSON.stringify({
1131
- taskId: taskId,
1132
- uuid: this.wfInfo.uuid,
1133
- suggestion: memo,
1134
- nodeId: nodeId,
1135
- });
1136
- this.agreeDialogVisible = false;
1137
- that.$http({
1138
- url: this.current_prefix + "/wf/submit",
1139
- data: data,
1140
- method: "post",
1141
- headers: {
1142
- "Content-Type": "application/json;charset=utf-8",
1143
- },
1144
- isLoading: true,
1145
- success: (resultMsg) => {
1146
- if (resultMsg.objx && resultMsg.objx.code == "999999") {
1147
- this.errorSubmit({
1148
- taskId: taskId,
1149
- uuid: this.wfInfo.uuid,
1150
- suggestion: memo,
1151
- errorMsg: resultMsg.objx.errorMsg
1152
- });
1153
- } else {
1154
- that.$message({
1155
- message: resultMsg.content,
1156
- type: "success",
1157
- duration: 500,
1158
- onClose: (t) => {
1159
- this.reloadContent();
1160
- this.closeWinOnCheck(1);
1161
- },
1162
- });
1163
- }
1164
- },
1165
- });
1166
- },
1167
- errorSubmit(data) {
1168
- let that = getTarget(this);
1169
- that.$http({
1170
- url: this.current_prefix + "/wf/errorSubmit",
1171
- data: data,
1172
- method: "post",
1173
- isLoading: true,
1174
- success: (resultMsg) => {
1175
- that.$message({
1176
- message: resultMsg.content,
1177
- type: "success",
1178
- duration: 500,
1179
- onClose: (t) => {
1180
- this.reloadContent();
1181
- this.closeWinOnCheck(1);
1182
- },
1183
- });
1184
- },
1185
- });
1186
- },
1187
- openChangeWfForm(operateType) {
1188
- this.operateType = operateType;
1189
- this.changeWfDialogVisible = true;
1190
- this.changeUserRows = [];
1191
- this.changeWfForm = {
1192
- userIds: [],
1193
- userNickNames: null,
1194
- opinion: null,
1195
- };
1196
- },
1197
- subChangeWfForm() {
1198
- let that = getTarget(this);
1199
- var procInstId = this.wfInfo.procInstId;
1200
- var taskId = this.wfInfo.taskId;
1201
-
1202
- var userIds = this.changeWfForm.userIds || [];
1203
- var opinion = this.changeWfForm.opinion || null;
1204
-
1205
- if (!userIds.length) {
1206
- that.$message({
1207
- message: this.$t2('请选择转办人', 'components.wf.transferWarnMsg1'),
1208
- type: "error",
1209
- duration: 2000,
1210
- onClose: (t) => {
1211
- },
1212
- });
1213
- return false;
1214
- }
1215
-
1216
- var data = JSON.stringify({
1217
- taskId: taskId,
1218
- uuid: this.wfInfo.uuid,
1219
- transferTo: userIds,
1220
- suggestion: opinion,
1221
- });
1222
- this.changeWfDialogVisible = false;
1223
- that.$http({
1224
- url: this.current_prefix + "/wf/transfer",
1225
- data: data,
1226
- method: "post",
1227
- headers: {
1228
- "Content-Type": "application/json;charset=utf-8",
1229
- },
1230
- isLoading: true,
1231
- success: (resultMsg) => {
1232
- that.$message({
1233
- message: resultMsg.content,
1234
- type: "success",
1235
- duration: 500,
1236
- onClose: (t) => {
1237
- this.reloadContent();
1238
- this.closeWinOnCheck(4);
1239
- },
1240
- });
1241
- },
1242
- });
1243
- },
1244
- userConfirm(rows) {
1245
- if (rows.length > 0) {
1246
- let changeUserRows = this.changeUserRows;
1247
- let ids = changeUserRows.map((changeUserRow) => changeUserRow.id);
1248
- let addRows = rows.filter((row) => !ids.includes(row.id));
1249
- changeUserRows.push(...addRows);
1250
-
1251
- let row = rows[0];
1252
- this.changeWfForm.userIds = changeUserRows.map(
1253
- (changeUserRow) => changeUserRow.id
1254
- );
1255
- this.changeWfForm.userNickNames = changeUserRows
1256
- .map((changeUserRow) => changeUserRow.nickName)
1257
- .join(",");
1258
- }
1259
- },
1260
- reloadContent() {
1261
- let that = getTarget(this);
1262
- that.$baseReload();
1263
- },
1264
- closeWinOnCheck(flag) {
1265
- //_closeWindowOnCheck=true, 1提交,2驳回,3中断,4转办时,5沟通 关闭窗口
1266
- let that = getTarget(this);
1267
- let _closeWindowOnCheck = that.$attrs._closeWindowOnCheck || that._closeWindowOnCheck;
1268
- if (_closeWindowOnCheck === true || _closeWindowOnCheck === "true") {
1269
- window.close && window.close();
1270
- }
1271
- let _handleCallback = that.$attrs._handleCallback || that._handleCallback;
1272
- _handleCallback && _handleCallback(flag);
1273
- },
1274
- manualCallback() {
1275
- this.$emit("manualCallback");
1276
- },
1277
- openUrgingDialog(operateType) {
1278
- this.operateType = operateType;
1279
- this.urgingDialogVisible = true;
1280
- },
1281
- openDeleteTaskUserDialog(operateType) {
1282
- this.operateType = operateType;
1283
- this.showDeleteTaskUserDialog = true;
1284
- },
1285
- openAddTaskUserDialog(operateType) {
1286
- this.operateType = operateType;
1287
- this.showAddTaskUserDialog = true;
1288
- },
1289
- openAddIncreaseSign(operateType) {
1290
- this.operateType = operateType;
1291
- this.addIncreaseSignUsers = [];
1292
- this.addIncreaseSignForm = {userNickNames: null};
1293
- this.showAddIncreaseSignDialog = true;
1294
- },
1295
- initWfUserParam(callback) {
1296
- this.initTransferUserParam();//转办
1297
- this.initAddSignUserParam();//加签
1298
- this.initTalkUserParam();//沟通
1299
- },
1300
- //
1301
- initTransferUserParam(callback) {
1302
- //初始化转办用户参数
1303
- let that = getTarget(this);
1304
- return that.$http({
1305
- url: USER_PREFIX + "/wf_diy_attribute/getValue",
1306
- method: `post`,
1307
- data: {attributeKey: "param1"},
1308
- isLoading: true,
1309
- modalStrictly: true,
1310
- success: (res) => {
1311
- this.wfUserParamForTransfer = res.objx || {};
1312
- callback && callback();
1313
- },
1314
- });
1315
- },
1316
- initAddSignUserParam(callback) {
1317
- //初始化加签用户参数
1318
- let that = getTarget(this);
1319
- return that.$http({
1320
- url: USER_PREFIX + "/wf_diy_attribute/getValue",
1321
- method: `post`,
1322
- data: {attributeKey: "param2"},
1323
- isLoading: true,
1324
- modalStrictly: true,
1325
- success: (res) => {
1326
- this.wfUserParamForAddSign = res.objx || {};
1327
- callback && callback();
1328
- },
1329
- });
1330
- },
1331
- initTalkUserParam(callback) {
1332
- //初始化沟通用户参数
1333
- let that = getTarget(this);
1334
- return that.$http({
1335
- url: USER_PREFIX + "/wf_diy_attribute/getValue",
1336
- method: `post`,
1337
- data: {attributeKey: "param3"},
1338
- isLoading: true,
1339
- modalStrictly: true,
1340
- success: (res) => {
1341
- this.wfUserParamForTalk = res.objx || {};
1342
- callback && callback();
1343
- },
1344
- });
1345
- },
1346
- //
1347
- resetLinkup() {
1348
- this.formData = {};
1349
- this.$refs["table-linkup"].commitProxy("reload");
1350
- },
1351
- searchLinkup() {
1352
- this.$refs["table-linkup"].commitProxy("reload");
1353
- },
1354
- initLinkup(flag) {
1355
- return
1356
- let h = this.$createElement;
1357
- let statusMap = {
1358
- 0: this.$t2('未完成', 'components.wf.talkStatus0'),
1359
- 1: this.$t2('已完成', 'components.wf.talkStatus1'),
1360
- 2: this.$t2('已取消', 'components.wf.talkStatus2')
1361
- };
1362
- let tableOption = {
1363
- vue: this,
1364
- tableRef: "table-linkup",
1365
- tableName: "wf_table-linkup",
1366
- path: this.current_prefix + "/wf_linkup/listPage",
1367
- param: () => {
1368
- return {
1369
- uuid: this.wfInfo.uuid,
1370
- };
1371
- },
1372
- config: {
1373
- height: 350
1374
- },
1375
- columns: [
1376
- {type: "checkbox", width: 48, resizable: false, fixed: "left"},
1377
- {
1378
- title: this.$t2('任务名称', 'components.wf.taskName'),
1379
- field: "taskName",
1380
- width: 150,
1381
- fixed: "left",
1382
- },
1383
- {
1384
- title: this.$t2('发送人', 'components.wf.senderName'),
1385
- field: "senderName",
1386
- width: 150,
1387
- slots: {
1388
- default: "sender",
1389
- },
1390
- },
1391
- {
1392
- title: this.$t2('接收人', 'components.wf.receiverName'),
1393
- field: "receiverName",
1394
- width: 150,
1395
- slots: {
1396
- default: "receiver",
1397
- },
1398
- },
1399
- {
1400
- title: this.$t2('沟通内容', 'components.wf.talkContent'),
1401
- field: "content",
1402
- width: 250,
1403
- showOverflow: false,
1404
- slots: {
1405
- default: ({row, rowIndex}) => {
1406
- return row.replyId ? ("[" + this.$t2('回复', 'components.wf.reply') + "]" + row.content) : row.content;
1407
- },
1408
- },
1409
- },
1410
- {
1411
- width: 150,
1412
- title: this.$t2('沟通资料', 'components.wf.talkAttachment'),
1413
- field: "attachmentImage",
1414
- sortable: false,
1415
- slots: {
1416
- default: ({row, rowIndex}) => {
1417
- let option = {
1418
- title: this.$t2('沟通资料', 'components.wf.talkAttachment'),
1419
- edit: false,
1420
- rows: (done) => {
1421
- done(row.attachmentDTOs);
1422
- },
1423
- };
1424
- return [
1425
- h("base-attachment", {
1426
- props: {
1427
- option: option,
1428
- },
1429
- }),
1430
- ];
1431
- },
1432
- },
1433
- },
1434
-
1435
- {
1436
- title: this.$t2('状态', 'components.wf.status'),
1437
- field: "status",
1438
- width: 150,
1439
- slots: {
1440
- default: ({row, rowIndex}) => {
1441
- return statusMap[row.status] || "";
1442
- },
1443
- },
1444
- },
1445
- {
1446
- title: this.$t2('创建时间', 'system.label.createDate'),
1447
- field: "createDate",
1448
- width: 150,
1449
- },
1450
- {
1451
- width: 80,
1452
- fixed: "right",
1453
- title: "",
1454
- sortable: false,
1455
- slots: {
1456
- default: "operate"
1457
- }
1458
- },
1459
- ],
1460
- callback: (rows) => {
1461
- if (rows.length && flag) {
1462
- let row = rows[0];
1463
- if (row.replyToSender) {
1464
- this.$nextTick(() => {
1465
- this.tabIndex = "2";
1466
- this.openTalkDialog(row.sender, row.senderName, 'talk', 1, row.id)
1467
- });
1468
- }
1469
- }
1470
- }
1471
- };
1472
- this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
1473
- this.linkupOption = opts;
1474
- });
1475
- },
1476
- cancelTalk(row) {
1477
- let that = getTarget(this);
1478
- that.$baseConfirm(this.$t2('您确定要取消沟通记录吗?', 'components.wf.cancelTalkTip')).then(() => {
1479
- that.$http({
1480
- url: this.current_prefix + "/wf_linkup/cancel",
1481
- data: {id: row.id},
1482
- method: "post",
1483
- loadingTarget: document.body,
1484
- isLoading: true,
1485
- success: (resultMsg) => {
1486
- that.$message({
1487
- message: resultMsg.content,
1488
- type: "success",
1489
- duration: 500,
1490
- onClose: (t) => {
1491
- this.reloadContent();
1492
- },
1493
- });
1494
- },
1495
- });
1496
- });
1497
- },
1498
- openTalkDialog(receiver, receiverName, operateType, flag, replyId) {
1499
- this.operateType = operateType;
1500
- /*this.talkForm.receiver = receiver || null;
1501
- this.talkForm.receiverName = receiverName || null;
1502
- this.talkForm.replyId = replyId || null;
1503
- this.talkForm.content = null;
1504
- this.talkForm.attachmentDTOs = [];*/
1505
- this.initTalkForm(receiver, receiverName, replyId)
1506
- this.showTalkDialog = true;
1507
- if (flag == 1) {
1508
- let opeaBtnDom = this.$refs.opeaBtn;
1509
- opeaBtnDom && opeaBtnDom.scrollIntoView();
1510
- }
1511
- },
1512
- initTalkForm(receiver, receiverName, replyId) {
1513
- this.talkForm.receiver = receiver || null;
1514
- this.talkForm.receiverName = receiverName || null;
1515
- this.talkForm.replyId = replyId || null;
1516
- this.talkForm.content = null;
1517
- this.talkForm.attachmentDTOs = [];
1518
- },
1519
- submitTalkForm() {
1520
- let that = getTarget(this);
1521
- var procInstId = this.wfInfo.procInstId;
1522
- var taskId = this.wfInfo.taskId;
1523
-
1524
- if (!this.talkForm.receiver) {
1525
- that.$message({
1526
- message: this.$t2('请选择接收人', 'components.wf.talkWarnMsg1'),
1527
- type: "error",
1528
- duration: 2 * 1000,
1529
- });
1530
- return false;
1531
- }
1532
- if (!this.talkForm.content) {
1533
- that.$message({
1534
- message: this.$t2('请输入沟通内容', 'components.wf.talkWarnMsg2'),
1535
- type: "error",
1536
- duration: 2 * 1000,
1537
- });
1538
- return false;
1539
- }
1540
-
1541
- var data = {
1542
- taskId: taskId,
1543
- uuid: this.wfInfo.uuid,
1544
- receiver: this.talkForm.receiver,
1545
- receiverName: this.talkForm.receiverName,
1546
- replyId: this.talkForm.replyId,
1547
- content: this.talkForm.content,
1548
- attachmentDTOs: this.talkForm.attachmentDTOs,
1549
- notifyType: "wfLinkup",
1550
- };
1551
- this.showTalkDialog = false;
1552
- that.$http({
1553
- url: this.current_prefix + "/wf_linkup/save",
1554
- data: data,
1555
- method: "post",
1556
- isLoading: true,
1557
- success: (resultMsg) => {
1558
- that.$message({
1559
- message: resultMsg.content,
1560
- type: "success",
1561
- duration: 500,
1562
- onClose: (t) => {
1563
- this.reloadContent();
1564
- this.closeWinOnCheck(5);
1565
- },
1566
- });
1567
- },
1568
- });
1569
- },
1570
- openTalkUserDialog() {
1571
- this.showTalkUserDialog = true;
1572
- },
1573
- confirmTalkUserDialog(rows) {
1574
- if (rows.length > 0) {
1575
- let row = rows[0];
1576
- if (this.talkForm.receiver != row.id) {
1577
- this.talkForm.replyId = null;
1578
- }
1579
- this.talkForm.receiver = row.id;
1580
- this.talkForm.receiverName = row.nickName;
1581
- }
1582
- },
1583
- confirmUrging() {
1584
- this.reloadContent();
1585
- },
1586
- confirmDeleteTaskUser() {
1587
- this.reloadContent();
1588
- },
1589
- confirmAddTaskUser(rows) {
1590
- this.addIncreaseSignUsers = rows;
1591
- this.addIncreaseSignForm.userNickNames = rows.map(row => row.nickName).join(',');
1592
- // this.reloadContent();
1593
- },
1594
- submitAddTaskUserForm(flag) {
1595
- let that = getTarget(this);
1596
- let userIds = this.addIncreaseSignUsers.map((checkRow) => checkRow.id);
1597
- if (userIds.length == 0) {
1598
- that.$message({
1599
- message: this.$t2('请选择候选人', 'components.wf.addIncreaseSignWarnMsg1'),
1600
- type: "error",
1601
- duration: 2000,
1602
- onClose: (t) => {
1603
- },
1604
- });
1605
- return false;
1606
- }
1607
- let toDo = () => {
1608
- var data = JSON.stringify({
1609
- uuid: this.wfInfo.uuid,
1610
- taskId: this.wfInfo.taskId,
1611
- userIds: userIds,
1612
- suggestion: this.addIncreaseSignForm.opinion
1613
-
1614
- });
1615
- this.agreeDialogVisible = false;
1616
- that.$http({
1617
- url: this.current_prefix + "/wf/addIncreaseSign",
1618
- data: data,
1619
- method: "post",
1620
- loadingTarget: document.body,
1621
- headers: {
1622
- "Content-Type": "application/json;charset=utf-8",
1623
- },
1624
- isLoading: true,
1625
- success: (resultMsg) => {
1626
- that.$message({
1627
- message: resultMsg.content,
1628
- type: "success",
1629
- duration: 500,
1630
- onClose: (t) => {
1631
- this.reloadContent();
1632
- },
1633
- });
1634
- },
1635
- });
1636
- }
1637
- if (flag === 0) {
1638
- toDo();
1639
- } else {
1640
- that.$baseConfirm(this.$t2('您确定要加签吗?', 'components.wf.addIncreaseSignConfirmTip')).then(() => {
1641
- toDo();
1642
- });
1643
- }
1644
- },
1645
- openSetCandidateDialog(operateType) {
1646
- this.operateType = operateType;
1647
- this.showSetCandidateDialog = true;
1648
- },
1649
- closeSetCandidateDialog() {
1650
- this.showSetCandidateDialog = false;
1651
- this.reloadContent();
1652
- },
1653
- openRevokeDialog(operateType) {
1654
- this.operateType = operateType;
1655
- this.revokeForm = {opinion: null}
1656
- this.revokeDialogVisible = true;
1657
- },
1658
- subRevokeForm(flag) {
1659
- //撤回
1660
- let that = getTarget(this);
1661
- let toDo = () => {
1662
- var data = JSON.stringify({
1663
- uuid: this.wfInfo.uuid,
1664
- taskId: this.wfInfo.taskId,
1665
- suggestion: this.revokeForm.opinion,
1666
- });
1667
- this.revokeDialogVisible = false;
1668
- that.$http({
1669
- url: this.current_prefix + "/wf/revoke",
1670
- data: data,
1671
- method: "post",
1672
- loadingTarget: document.body,
1673
- headers: {
1674
- "Content-Type": "application/json;charset=utf-8",
1675
- },
1676
- isLoading: true,
1677
- success: (resultMsg) => {
1678
- that.$message({
1679
- message: resultMsg.content,
1680
- type: "success",
1681
- duration: 500,
1682
- onClose: (t) => {
1683
- this.reloadContent();
1684
- },
1685
- });
1686
- },
1687
- });
1688
- }
1689
- if (flag === 0) {
1690
- toDo();
1691
- } else {
1692
- that.$baseConfirm(this.$t2('您确定要撤回吗?', 'components.wf.revokeConfirmTip')).then(() => {
1693
- toDo();
1694
- });
1695
- }
1696
- }
1697
- }
1698
- }
1699
- </script>
1700
-
1701
- <style scoped>
1702
- ::v-deep .form-box.el-form .el-form-item .el-form-item__label {
1703
- width: 70px
1704
- }
1705
- </style>
335
+ v-append-to-body>
336
+ <div>
337
+ <i class="icon"></i>
338
+ <div class="cont">
339
+ <p class="name">
340
+ {{ $t2('流程加签', 'components.wf.wfAddIncreaseSign') }}<span>—</span><b
341
+ class="f-red">{{ $t2('节点', 'components.wf.node') }}:{{
342
+ wfInfo.taskName
343
+ }}</b>
344
+ </p>
345
+ <el-form label-position="top" class="form-box">
346
+ <el-form-item label="候选人">
347
+ <el-input
348
+ class="search-input"
349
+ max="200"
350
+ v-model="addIncreaseSignForm.userNickNames"
351
+ @clear="
352
+ addIncreaseSignUsers = [];
353
+ $forceUpdate();
354
+ "
355
+ :placeholder="$t2('候选人', 'components.wf.addIncreaseSignUser')"
356
+ v-el-readonly
357
+ clearable
358
+ >
359
+ <i slot="suffix" class="el-input__icon el-icon-search"
360
+ @click="showAddTaskUserDialog = true"></i>
361
+ </el-input>
362
+ </el-form-item>
363
+ <el-form-item label="加签意见" field="opinion">
364
+ <el-input type="textarea" :rows="8"
365
+ :placeholder="$t2('请输入内容', 'components.wf.addIncreaseSignOpinionPlaceholder')"
366
+ v-model="addIncreaseSignForm.opinion"></el-input>
367
+ </el-form-item>
368
+ </el-form>
369
+ </div>
370
+ <div class="btns">
371
+ <el-button type="primary" class="btn" plain @click="showAddIncreaseSignDialog = false">{{
372
+ $t2('取 消', 'system.button.cancel2')
373
+ }}
374
+ </el-button>
375
+ <el-button type="primary" class="btn" @click="submitAddTaskUserForm(0)">
376
+ {{ $t2('确认加签', 'components.wf.confirmAddIncreaseSign') }}
377
+ </el-button>
378
+ </div>
379
+ </div>
380
+ </div>
381
+
382
+ <user-dialog v-if="showUserDialog" :visiable.sync="showUserDialog" @close="showUserDialog = false"
383
+ @confirm="userConfirm" multi="true" :param.sync="wfUserParamForTransfer"
384
+ :rows="changeUserRows"></user-dialog>
385
+ <urgingDialog v-if="urgingDialogVisible" :visiable.sync="urgingDialogVisible" :wfInfo="wfInfo"
386
+ :current_prefix="current_prefix"
387
+ @confirm="reloadContent" multi="true"></urgingDialog>
388
+ <deleteTaskUserDialog v-if="showDeleteTaskUserDialog" :visiable.sync="showDeleteTaskUserDialog" :wfInfo="wfInfo"
389
+ :current_prefix="current_prefix"
390
+ @confirm="reloadContent" multi="true"></deleteTaskUserDialog>
391
+
392
+ <addTaskUserdialog v-if="showAddTaskUserDialog" :visiable.sync="showAddTaskUserDialog" :wfInfo="wfInfo"
393
+ :current_prefix="current_prefix" :rows.sync="addIncreaseSignUsers"
394
+ @confirm="confirmAddTaskUser" multi="true"
395
+ :param.sync="wfUserParamForAddSign"></addTaskUserdialog>
396
+ <user-dialog v-if="showTalkUserDialog" :visiable.sync="showTalkUserDialog" @close="showTalkUserDialog = false"
397
+ @confirm="confirmTalkUserDialog" multi="false" :param.sync="wfUserParamForTalk"></user-dialog>
398
+ <setCandidateDialog v-if="showSetCandidateDialog" :visiable.sync="showSetCandidateDialog"
399
+ @close="closeSetCandidateDialog"
400
+ :wfInfo="wfInfo"
401
+ :current_prefix="current_prefix"></setCandidateDialog>
402
+ </div>
403
+ </template>
404
+ <script>
405
+ import Vue from "vue";
406
+
407
+ import settingConfig from "@/settings";
408
+ import commonMixin from "../../../mixins/mobile/common/index";
409
+ import {getToken} from "../../../utils/auth";
410
+ import {isWfTransferEnabled, loadWfTransferEnabled} from "../../wf/wfTransferEnabled";
411
+
412
+ let configUtil = {
413
+ baseUrl: process.env.VUE_APP_BASE_API,
414
+ getToken,
415
+ settingConfig,
416
+ Vue,
417
+ };
418
+
419
+ function appendPrevChildDom(parentDom, newDom) {
420
+ if (parentDom.hasChildNodes()) {
421
+ let currentDom = parentDom.children[0];
422
+ parentDom.insertBefore(newDom, currentDom);
423
+ } else {
424
+ parentDom.append(newDom);
425
+ }
426
+ }
427
+
428
+ function getTarget(t) {
429
+ return t.parentVue;
430
+ }
431
+
432
+ export default {
433
+ mixins: [commonMixin],
434
+ props: {
435
+ _wfInfo: Object,
436
+ _taskParam: Object,
437
+ wfOption: Object,
438
+ defaultShowWfContent: Boolean,
439
+ // 见模板里 .flowPath-btns 的注释:宿主接管审批动作时藏掉面板内那一排
440
+ hideActions: Boolean,
441
+ },
442
+ components: {
443
+ /* 本组件根节点就是 <h5-card-pane>,但此前没在这里注册——手写移动页是靠
444
+ mixins/mobile/common 在**宿主**上局部注册才碰巧能渲染。Vue 2 解析组件只查
445
+ 自身 components 与全局注册、不查父组件的局部注册,所以被别处(如 xform 的
446
+ detail-h5-item)引用时会渲染不出来。补上自己的依赖声明。 */
447
+ h5CardPane: () => import('../h5Card/h5CardPane.vue'),
448
+ /* 选用户弹层用包内的 selectUserDialog(el-dialog + append-to-body 版)。
449
+ 原来引的 views/mobile/user/user/dialog.vue 仍是 .pop-box 就地渲染版,
450
+ 且 src/views 不随包发布(被包内组件引用属隐式依赖),保持原样不动。 */
451
+ UserDialog: () => import('./selectUserDialog.vue'),
452
+ urgingDialog: () => import('./urgingDialog'),
453
+ deleteTaskUserDialog: () => import('./deleteTaskUserDialog'),
454
+ addTaskUserdialog: () => import('./addTaskUserdialog'),
455
+ setCandidateDialog: () => import('./setCandidateDialog')
456
+ },
457
+ computed: {
458
+ current_prefix() {
459
+ return this.serviceId ? "/" + this.serviceId : "";
460
+ },
461
+ viewTarget() {
462
+ return getTarget(this);
463
+ },
464
+ isHideWf() {
465
+ let that = this.viewTarget;
466
+ let _hideWf = that._hideWf || that.$attrs._hideWf;
467
+ return _hideWf === true || _hideWf === 'true';
468
+ },
469
+ transferEnabled() {
470
+ return isWfTransferEnabled();
471
+ }
472
+ },
473
+ data() {
474
+ let showWfFold =
475
+ settingConfig.showWfFold != null && settingConfig.showWfFold != undefined
476
+ ? settingConfig.showWfFold
477
+ : false;
478
+ let showWfContent =
479
+ showWfFold &&
480
+ settingConfig.defaultShowWfContent != null &&
481
+ settingConfig.defaultShowWfContent != undefined
482
+ ? settingConfig.defaultShowWfContent
483
+ : true;
484
+ if (
485
+ this.defaultShowWfContent != null &&
486
+ this.defaultShowWfContent != undefined
487
+ ) {
488
+ showWfContent = this.defaultShowWfContent;
489
+ }
490
+
491
+ return {
492
+ showRenwuDialog: false,
493
+ showDomContent: false,
494
+ showPreviewDialog: false,
495
+ objId: null,
496
+ wfCode: null,
497
+ serviceId: null,
498
+ parentVue: null,
499
+ wfConfig: null,
500
+
501
+ fileInfos: [],
502
+ showUserDialog: false,
503
+ showContent: true,
504
+ objTypeCode: "",
505
+ // objId: '',
506
+ wfInfo: {},
507
+ // currentTask: {},
508
+ taskParam: {},
509
+ wfImage: "",
510
+ wfStartBtn: false,
511
+ wfManualendBtn: false,
512
+ wfSubmitBtn: false,
513
+ wfRejectBtn: false,
514
+ changeHandlerBtn: false,
515
+ wftaskData: [],
516
+ allWfTaskOpinions: [],
517
+ vxeOption: {},
518
+ rejectNodes: [],
519
+ rejectDialogVisible: false,
520
+ rejectForm: {
521
+ rejectSubmitModel: null,
522
+ nodeId: null,
523
+ opinion: null,
524
+ },
525
+ formLabelWidth: "120px",
526
+ agreeDialogVisible: false,
527
+ agreeForm: {
528
+ opinion: this.$t2('同意', 'components.wf.defaultAgreeOption'),
529
+ nodeId: null,
530
+ },
531
+ changeWfDialogVisible: false,
532
+ changeWfForm: {},
533
+ changeUserRows: [],
534
+ taskStatuses: {
535
+ start: {
536
+ class: "blue",
537
+ value: this.$t2('开始', 'components.wf.startStatus'),
538
+ },
539
+ approve: {
540
+ class: "orgn",
541
+ value: this.$t2('待审批', 'components.wf.approveStatus'),
542
+ },
543
+ submit: {
544
+ class: "green",
545
+ value: this.$t2('同意', 'components.wf.submitStatus'),
546
+ },
547
+ reject: {
548
+ class: "red",
549
+ value: this.$t2('驳回', 'components.wf.rejectStatus'),
550
+ },
551
+ transfer: {
552
+ class: "green",
553
+ value: this.$t2('转办', 'components.wf.transferStatus'),
554
+ },
555
+ addIncreaseSign: {
556
+ class: "green",
557
+ value: this.$t2('加签', 'components.wf.addIncreaseSignStatus'),
558
+ },
559
+ revoke: {
560
+ class: "red",
561
+ value: this.$t2('撤回', 'components.wf.revokeStatus'),
562
+ },
563
+ end: {
564
+ class: "gray",
565
+ value: this.$t2('结束', 'components.wf.endStatus'),
566
+ },
567
+ },
568
+ opinion: "",
569
+ showWfFold: showWfFold,
570
+ showWfContent: showWfContent,
571
+
572
+ urgingForm: {},
573
+ urgingDialogVisible: false,
574
+ urgingUserIds: [],
575
+ urgingUsers: [],
576
+ agreeNodes: [],
577
+ showWfManualDialog: false,
578
+
579
+ showDeleteTaskUserDialog: false,
580
+ showAddTaskUserDialog: false,
581
+ wfUserParam: {},
582
+ wfUserParamForTransfer: {},//转办
583
+ wfUserParamForAddSign: {},//加签
584
+ wfUserParamForTalk: {},//沟通
585
+ tabIndex: "1",
586
+ linkupOption: {},
587
+ talkForm: {
588
+ receiverName: null,
589
+ content: null,
590
+ attachmentDTOs: [],
591
+ replyId: null
592
+ },
593
+ showTalkUserDialog: false,
594
+ showTalkDialog: false,
595
+ showFlowImg: true,
596
+ operateType: null,
597
+ addIncreaseSignUsers: [],
598
+ addIncreaseSignForm: {
599
+ userNickNames: null,
600
+ opinion: null
601
+ },
602
+ showAddIncreaseSignDialog: false,
603
+ showOpeaImg: true,
604
+ showSetCandidateDialog: false,
605
+ toTalk: false,
606
+ showAllWfOpinon: false,
607
+
608
+ revokeDialogVisible: false,
609
+ revokeForm: {opinion: null},
610
+ wfStatusMap: {
611
+ 1: {label: "审核中", type: "warning"},
612
+ 3: {label: "已驳回", type: "danger"},
613
+ 2: {label: "已完成", type: "success"}
614
+ }
615
+ };
616
+ },
617
+ provide() {
618
+ return {
619
+ getParentVue: () => {
620
+ return this.parentVue;
621
+ }
622
+ };
623
+ },
624
+ created() {
625
+ // this.wfInfo = this._wfInfo;
626
+ this.showFlowImg = settingConfig.expandWfImage === false ? false : true;
627
+ this.showAllWfOpinon = settingConfig.showAllWfOpinon === true;
628
+ },
629
+ mounted() {
630
+ this.init();
631
+ },
632
+ methods: {
633
+ fitWorkflowPreview() {
634
+ /* warm-flow-ui 是独立 iframe,窄屏下默认画布宽于视口,左右节点会被
635
+ 它自己的 overflow:hidden 裁掉。复用其「自适应」能力,在数据逐步
636
+ 渲染的几个时点重新 fit;跨域部署时访问 document 会抛错,静默跳过。 */
637
+ [0, 300, 800, 1500].forEach((delay) => {
638
+ window.setTimeout(() => {
639
+ try {
640
+ const frame = this.$refs.wfPreviewFrame;
641
+ const buttons = frame?.contentDocument?.querySelectorAll("button") || [];
642
+ const fitButton = Array.from(buttons).find(
643
+ (button) => button.textContent.trim() === "自适应"
644
+ );
645
+ fitButton?.click();
646
+ } catch (e) {
647
+ // 跨域 iframe 无法读取内部 DOM,保留 warm-flow-ui 原有交互。
648
+ }
649
+ }, delay);
650
+ });
651
+ },
652
+ getWfStatusLabel() {
653
+ return this.wfStatusMap[this.wfInfo.stat]?.label;
654
+ },
655
+ getWfStatusType() {
656
+ return this.wfStatusMap[this.wfInfo.stat]?.type;
657
+ },
658
+ init() {
659
+ let opt = this.wfOption;
660
+ this.objId = opt.objId;
661
+ this.wfCode = opt.wfCode;
662
+ this.serviceId = opt.serviceId;
663
+ this.parentVue = opt.parentVue;
664
+ this.wfConfig = this.wfOption;
665
+
666
+ let wfConfig = this.wfOption;
667
+ let that = getTarget(this);
668
+ let hasWf = false;
669
+ let wfInfo, currentTask, taskParam;
670
+ let option = {
671
+ objId: this.objId,
672
+ wfCode: this.wfCode
673
+ }
674
+ let current_prefix = this.current_prefix;
675
+
676
+ let initButton = () => {
677
+ /*return
678
+ this.$nextTick(() => {
679
+ that.$refs.wfButtonGroup.init({
680
+ taskParam,
681
+ wfInfo,
682
+ hasWf,
683
+ current_prefix,
684
+ wfConfig
685
+ });
686
+ });*/
687
+ }
688
+
689
+ this.initWfInfo(option, {
690
+ success: res => {
691
+ if (res.objx && res.objx.procInstId) {
692
+ hasWf = true;
693
+ wfInfo = res.objx;
694
+ this.wfInfo = wfInfo;
695
+ // this.showDomContent = true;
696
+
697
+ if (wfInfo.taskId) {
698
+ this.getTaskParams(wfInfo.taskId, {
699
+ success: res2 => {
700
+ taskParam = res2.objx || {};
701
+ taskParam.objId = option.objId;
702
+ this.taskParam = taskParam;
703
+
704
+ initButton();
705
+ }
706
+ });
707
+ } else {
708
+ initButton();
709
+ }
710
+ this.initOperateType();
711
+ this.initForAll();
712
+ } else {
713
+ initButton();
714
+ }
715
+ }
716
+ });
717
+ },
718
+ initWfInfo(option, httpConfig) {
719
+
720
+ let that = getTarget(this);
721
+ let id = option.objId;
722
+ let code = option.wfCode;
723
+ return that.$http({
724
+ url: this.current_prefix + '/wf/getWfInfo',
725
+ method: `post`,
726
+ data: {
727
+ objTypeCode: code,
728
+ objId: id
729
+ },
730
+ isLoading: true,
731
+ modalStrictly: true,
732
+ ...httpConfig
733
+ });
734
+ },
735
+ getTaskParams(taskId, httpConfig) {
736
+ let that = getTarget(this);
737
+ return that.$http({
738
+ url: this.current_prefix + '/wf/getTaskVariables',
739
+ method: `post`,
740
+ data: {
741
+ stringOne: taskId
742
+ },
743
+ isLoading: true,
744
+ modalStrictly: true,
745
+ ...httpConfig
746
+ });
747
+ },
748
+
749
+
750
+ initOperateType() {
751
+ if (this.operateType) {
752
+ let wfInfo = this.wfInfo;
753
+ if (wfInfo.toSubmit) {
754
+ this.openAgreeDialog('submit');
755
+ } else if (wfInfo.toReject) {
756
+ this.rejectWfTask('reject');
757
+ } else if (wfInfo.toAddIncreaseSign) {
758
+ this.openAddIncreaseSign('addIncreaseSign')
759
+ } else if (wfInfo.toRevoke) {
760
+ this.openRevokeDialog('revoke')
761
+ } else if (wfInfo.toLinkup) {
762
+ this.openTalkDialog(null, null, 'talk');
763
+ } else {
764
+ this.operateType = null;
765
+ }
766
+ }
767
+ },
768
+ initForAll() {
769
+ let that = getTarget(this);
770
+ loadWfTransferEnabled(that);
771
+ this.initWf(() => {
772
+ if (this.wfInfo.procInstId) {
773
+ this.initCurrentTask(this.wfInfo.procInstId, () => {
774
+ this.initWftask(this.wfInfo.procInstId);
775
+ this.getAllWfTaskOpinions();
776
+ });
777
+ this.initWfUserParam();
778
+ this.initTabIndex();
779
+ }
780
+ });
781
+ },
782
+ initTabIndex() {
783
+ let that = getTarget(this);
784
+ that.$http({
785
+ url: USER_PREFIX + "/wf_diy_attribute/getValue",
786
+ method: `post`,
787
+ data: {attributeKey: "param7"},
788
+ isLoading: true,
789
+ success: (res) => {
790
+ let val = res !== null ? res.objx === true : false;
791
+ this.toTalk = val;
792
+ let flag = false;
793
+ if (val) {
794
+ let flag1 = that.$attrs._isNotifyMessage == true || that.$attrs._isNotifyMessage == "true";
795
+ if (flag1) {
796
+ this.tabIndex = "2";
797
+ }
798
+ if (settingConfig.autoOpenWfLinkup) {
799
+ flag = true;
800
+ let flag2 = that.$attrs._wfNotifyType == "wfLinkup";
801
+ let flag3 = flag1 && flag2;
802
+ if (flag3) {
803
+ this.$nextTick(() => {
804
+ let wfTabPane = this.$refs.wfTabPane;
805
+ if (!wfTabPane.showContent) {
806
+ wfTabPane.handleFold();
807
+ }
808
+ });
809
+ }
810
+ }
811
+ }
812
+ this.initLinkup(flag);
813
+ }
814
+ });
815
+
816
+ },
817
+ initWf(done) {
818
+ var data = this.wfInfo;
819
+ if (data && data.procInstId) {
820
+ /** 流程状态:0未启动,1审核中,2已完成,3驳回,4中断 */
821
+ var statuses = {
822
+ 1: '<span class="tag">' + this.$t2('审核中', 'components.wf.wfStatus1') + '</span>',
823
+ 3: '<span class="tag red">' + this.$t2('已驳回', 'components.wf.wfStatus2') + '</span>',
824
+ 2: '<span class="tag green">' + this.$t2('已完成', 'components.wf.wfStatus3') + '</span>',
825
+ };
826
+ var statusStr = "";
827
+ if (data.stat != null) {
828
+ statusStr = statuses[data.stat] || "";
829
+ }
830
+ data.statusStr = statusStr;
831
+ this.wfInfo = data;
832
+
833
+ this.wfStartBtn = false;
834
+ if (data.status != 2 && data.starterId) {
835
+ this.wfManualendBtn = true;
836
+ }
837
+ this.wfSubmitBtn = false;
838
+ this.wfRejectBtn = false;
839
+
840
+ var url =
841
+ this.current_prefix +
842
+ "/wf/flowImage?procInstId=" +
843
+ data.procInstId +
844
+ "&_r=" +
845
+ Math.random() +
846
+ "&access_token=" +
847
+ configUtil.getToken();
848
+ this.wfImage = configUtil.baseUrl + url;
849
+ done();
850
+ }
851
+ },
852
+ initCurrentTask(procInstId, done) {
853
+ if (this.wfInfo.taskId) {
854
+ this.wfSubmitBtn = true;
855
+ this.wfRejectBtn = true;
856
+ this.changeHandlerBtn = true;
857
+ }
858
+ done();
859
+ },
860
+ initWftask(procInstId) {
861
+ let that = getTarget(this);
862
+ that.$http({
863
+ url: this.current_prefix + "/wf/getWfTaskOpinionMerge",
864
+ data: {
865
+ stringOne: procInstId,
866
+ },
867
+ method: "post",
868
+ isLoading: true,
869
+ modalStrictly: true,
870
+ success: (resultmsg) => {
871
+ var datas = resultmsg.objx || [];
872
+ this.wftaskData = datas;
873
+ },
874
+ });
875
+ },
876
+ getAllWfTaskOpinions() {
877
+ if (!this.showAllWfOpinon) {
878
+ return;
879
+ }
880
+ let that = getTarget(this);
881
+ let wfInfo = this.wfInfo;
882
+ that.$http({
883
+ url: this.current_prefix + "/wf/getAllWfTaskOpinions",
884
+ data: {
885
+ objId: wfInfo.objId,
886
+ objTypeCode: wfInfo.objTypeCode
887
+ },
888
+ method: "post",
889
+ isLoading: true,
890
+ modalStrictly: true,
891
+ success: (resultmsg) => {
892
+ var datas = resultmsg.objx || [];
893
+ this.allWfTaskOpinions = datas;
894
+ },
895
+ });
896
+ },
897
+ openManualDialog(operateType) {
898
+ this.operateType = operateType;
899
+ this.showWfManualDialog = true;
900
+ },
901
+ manualEndWf() {
902
+ this.showWfManualDialog = false;
903
+ let that = getTarget(this);
904
+ var procInstId = this.wfInfo.procInstId;
905
+ var taskId = this.wfInfo.taskId ? this.wfInfo.taskId : "";
906
+ var data = JSON.stringify({
907
+ uuid: this.wfInfo.uuid,
908
+ });
909
+ that.$http({
910
+ url: this.current_prefix + "/wf/interrupt",
911
+ data: data,
912
+ method: "post",
913
+ headers: {
914
+ "Content-Type": "application/json;charset=utf-8",
915
+ },
916
+ isLoading: true,
917
+ success: (resultMsg) => {
918
+ that.$message({
919
+ message: resultMsg.content,
920
+ type: "success",
921
+ duration: 500,
922
+ onClose: (t) => {
923
+ this.reloadContent();
924
+ this.closeWinOnCheck(3);
925
+ },
926
+ });
927
+ },
928
+ });
929
+ },
930
+ async rejectWfTask(operateType) {
931
+ // 与 PC wf.js 的 rejectWfTask 同结构:驳回也要先过一遍「驳回提醒」
932
+ this.handleReminderContent("rejectReminder", async () => {
933
+ let that = getTarget(this);
934
+ var procInstId = this.wfInfo.procInstId;
935
+ var taskId = this.wfInfo.taskId;
936
+ var destinations = [];
937
+
938
+ await that.$http({
939
+ url: this.current_prefix + "/wf/getPreIncomeNodes",
940
+ data: {
941
+ stringOne: taskId,
942
+ },
943
+ method: "post",
944
+ //contentType: 'application/json;charset=utf-8',
945
+ isLoading: true,
946
+ success: (resultMsg) => {
947
+ destinations = (resultMsg.objx || []).reverse();
948
+ },
949
+ });
950
+
951
+ if (destinations == null) {
952
+ return false;
953
+ }
954
+ if (destinations.length == 0) {
955
+ that.$message({
956
+ message: this.$t2('无法驳回,没有目标节点', 'components.wf.rejectWarnMsg1'),
957
+ type: "error",
958
+ duration: 2 * 1000,
959
+ });
960
+ return false;
961
+ }
962
+ this.operateType = operateType;
963
+
964
+ /* 驳回后提交模式,取自流程对象配置(wf_obj_config「驳回后提交模式」三选一):
965
+ toNextNode === 1 → 顺延下一步提交 → 1
966
+ toRejectNode false → 直接提交到驳回节点 → 2
967
+ toRejectNode true → 由提交人确定节点提交 → null(提交时自己选)
968
+ 三个分支不能省成两个:选了「顺延下一步」时后台把 toRejectNode 置为 null,
969
+ 而 null == false 在 JS 里是 false,会落到 null 分支上,配置被静默丢掉。
970
+ 与 PC wf.js 的 rejectWfTask 同口径。 */
971
+ let rejectSubmitModel = null;
972
+ if (this.wfInfo.toNextNode === 1) {
973
+ rejectSubmitModel = this.wfInfo.toNextNode
974
+ } else {
975
+ rejectSubmitModel = this.wfInfo.toRejectNode == false ? 2 : null
976
+ }
977
+ this.rejectForm.rejectSubmitModel = rejectSubmitModel;
978
+ this.rejectForm.nodeId = destinations[0].nodeId;
979
+ this.rejectForm.opinion = "";
980
+ this.rejectNodes = destinations;
981
+ this.rejectDialogVisible = true;
982
+ })
983
+ },
984
+ subRejectForm() {
985
+ let that = getTarget(this);
986
+ var procInstId = this.wfInfo.procInstId;
987
+ var taskId = this.wfInfo.taskId;
988
+
989
+ if (!this.rejectForm.nodeId) {
990
+ that.$message({
991
+ message: this.$t2('请选择驳回节点', 'components.wf.rejectWarnMsg2'),
992
+ type: "error",
993
+ duration: 2 * 1000,
994
+ });
995
+ return false;
996
+ }
997
+
998
+ if (!this.rejectForm.opinion) {
999
+ that.$message({
1000
+ message: this.$t2('请输入驳回意见', 'components.wf.rejectWarnMsg3'),
1001
+ type: "error",
1002
+ duration: 2 * 1000,
1003
+ });
1004
+ return false;
1005
+ }
1006
+
1007
+ var data = JSON.stringify({
1008
+ taskId: taskId,
1009
+ uuid: this.wfInfo.uuid,
1010
+ nodeId: this.rejectForm.nodeId,
1011
+ suggestion: this.rejectForm.opinion,
1012
+ rejectSubmitModel: this.rejectForm.rejectSubmitModel
1013
+ });
1014
+ this.rejectDialogVisible = false;
1015
+ that.$http({
1016
+ url: this.current_prefix + "/wf/reject",
1017
+ data: data,
1018
+ method: "post",
1019
+ headers: {
1020
+ "Content-Type": "application/json;charset=utf-8",
1021
+ },
1022
+ isLoading: true,
1023
+ success: (resultMsg) => {
1024
+ that.$message({
1025
+ message: resultMsg.content,
1026
+ type: "success",
1027
+ duration: 500,
1028
+ onClose: (t) => {
1029
+ this.reloadContent();
1030
+ this.closeWinOnCheck(2);
1031
+ },
1032
+ });
1033
+ },
1034
+ });
1035
+ },
1036
+ /**
1037
+ * 提交/驳回前的「提醒内容」:后台按 scriptType 跑脚本,返回文案就先弹确认框,
1038
+ * 用户点确定才继续;没有文案(或接口 404,即后端未部署该能力)直接放行。
1039
+ * 与 PC wf.js 的同名方法保持一致。
1040
+ *
1041
+ * 提醒只是主流程前面的一道增强,不能让它把主流程带崩或卡死,所以:
1042
+ * - 放行只允许一次(go 自带闸门),成功/异常各分支共用一个出口;
1043
+ * - 确认框点取消 = 放弃本次操作,什么都不做,但 MessageBox 的 reject 必须吃掉,
1044
+ * 否则是一条 unhandled rejection;
1045
+ * - error 分支绝不能抛异常。request.js 是先调 config.error(e) 再 removeModel(config)
1046
+ * (见 utils/request.js 的响应错误拦截),这里一抛,isLoading 的全屏遮罩就永远
1047
+ * 关不掉、整页被锁死。而网络失败/超时时 e.response 本就是 undefined,
1048
+ * 老写法 e.response.status 必崩 —— 故 status 取值全程判空。
1049
+ */
1050
+ handleReminderContent(scriptType, callback) {
1051
+ let that = getTarget(this);
1052
+ let called = false;
1053
+ const go = () => {
1054
+ if (called) return
1055
+ called = true;
1056
+ callback && callback();
1057
+ };
1058
+ that.$http({
1059
+ url: this.current_prefix + "/wf/getReminderContent",
1060
+ data: {
1061
+ scriptType,
1062
+ taskId: this.wfInfo.taskId,
1063
+ uuid: this.wfInfo.uuid,
1064
+ },
1065
+ method: "post",
1066
+ isLoading: true,
1067
+ errorMsg: false,
1068
+ success: (res) => {
1069
+ if (res && res.objx) {
1070
+ that.$baseConfirm(res.objx).then(go).catch(() => {});
1071
+ } else {
1072
+ go();
1073
+ }
1074
+ },
1075
+ error: (e) => {
1076
+ let status = e && e.response ? e.response.status : null;
1077
+ if (status === 404) {
1078
+ // 后端没部署这个接口,等同于「没有提醒」,静默放行
1079
+ go();
1080
+ return
1081
+ }
1082
+ /* 其余错误只提示不放行:提醒内容可能是必须让人看到的业务警告,
1083
+ 接口挂了就悄悄跳过等于把它吞掉。用户重试即可。 */
1084
+ that.$errorMsg({
1085
+ content: (e && e.message) || this.$t2('获取提醒内容失败', 'components.wf.reminderError'),
1086
+ type: 'error',
1087
+ }).catch(() => {});
1088
+ },
1089
+ });
1090
+ },
1091
+ openAgreeDialog(operateType) {
1092
+ const done = () => {
1093
+ this.handleReminderContent("submitReminder", () => {
1094
+ this.operateType = operateType;
1095
+ let that = getTarget(this);
1096
+ this.agreeForm = {
1097
+ opinion: this.$t2('同意', 'components.wf.defaultAgreeOption'),
1098
+ nodeId: null,
1099
+ };
1100
+ this.agreeNodes = [];
1101
+ that.$http({
1102
+ url: this.current_prefix + "/wf/getNextOutgoingNodes",
1103
+ data: {
1104
+ stringOne: this.wfInfo.taskId,
1105
+ },
1106
+ method: "post",
1107
+ isLoading: true,
1108
+ success: (res) => {
1109
+ let nodes = res.objx || [];
1110
+ /*if (tq == true) {
1111
+ nodes.reverse();
1112
+ }*/
1113
+ if (nodes.length) {
1114
+ this.agreeForm.nodeId = nodes[0].nodeId;
1115
+ }
1116
+ this.agreeNodes = nodes;
1117
+ this.agreeDialogVisible = true;
1118
+ },
1119
+ });
1120
+ })
1121
+ }
1122
+ // wfConfig 在 init() 里才赋值(初值 null),这里兜一层空对象
1123
+ let wfConfig = this.wfConfig || {};
1124
+ if (wfConfig.onClickAgree) {
1125
+ wfConfig.onClickAgree(done)
1126
+ } else {
1127
+ done();
1128
+ }
1129
+ },
1130
+ subAgreeForm() {
1131
+ let wfConfig = this.wfConfig;
1132
+ let done = () => {
1133
+ this.subAgreeHandle();
1134
+ }
1135
+ if (wfConfig.onBeforeAgree) {
1136
+ wfConfig.onBeforeAgree(done)
1137
+ } else {
1138
+ done();
1139
+ }
1140
+ },
1141
+ subAgreeHandle() {
1142
+ let that = getTarget(this);
1143
+ let nodeId = null;
1144
+ if (this.agreeNodes.length) {
1145
+ if (!this.agreeForm.nodeId) {
1146
+ that.$message({
1147
+ message: this.$t2('请选择节点', 'components.wf.agreeWarnMsg1'),
1148
+ type: "error",
1149
+ duration: 2 * 1000,
1150
+ });
1151
+ return;
1152
+ }
1153
+ nodeId = this.agreeForm.nodeId;
1154
+ }
1155
+
1156
+ var procInstId = this.wfInfo.procInstId;
1157
+ var taskId = this.wfInfo.taskId;
1158
+ var memo = this.agreeForm.opinion || this.$t2('同意', 'components.wf.defaultAgreeOption');
1159
+ var data = JSON.stringify({
1160
+ taskId: taskId,
1161
+ uuid: this.wfInfo.uuid,
1162
+ suggestion: memo,
1163
+ nodeId: nodeId,
1164
+ });
1165
+ this.agreeDialogVisible = false;
1166
+ that.$http({
1167
+ url: this.current_prefix + "/wf/submit",
1168
+ data: data,
1169
+ method: "post",
1170
+ headers: {
1171
+ "Content-Type": "application/json;charset=utf-8",
1172
+ },
1173
+ isLoading: true,
1174
+ success: (resultMsg) => {
1175
+ if (resultMsg.objx && resultMsg.objx.code == "999999") {
1176
+ this.errorSubmit({
1177
+ taskId: taskId,
1178
+ uuid: this.wfInfo.uuid,
1179
+ suggestion: memo,
1180
+ errorMsg: resultMsg.objx.errorMsg
1181
+ });
1182
+ } else {
1183
+ that.$message({
1184
+ message: resultMsg.content,
1185
+ type: "success",
1186
+ duration: 500,
1187
+ onClose: (t) => {
1188
+ this.reloadContent();
1189
+ this.closeWinOnCheck(1);
1190
+ },
1191
+ });
1192
+ }
1193
+ },
1194
+ });
1195
+ },
1196
+ errorSubmit(data) {
1197
+ let that = getTarget(this);
1198
+ that.$http({
1199
+ url: this.current_prefix + "/wf/errorSubmit",
1200
+ data: data,
1201
+ method: "post",
1202
+ isLoading: true,
1203
+ success: (resultMsg) => {
1204
+ that.$message({
1205
+ message: resultMsg.content,
1206
+ type: "success",
1207
+ duration: 500,
1208
+ onClose: (t) => {
1209
+ this.reloadContent();
1210
+ this.closeWinOnCheck(1);
1211
+ },
1212
+ });
1213
+ },
1214
+ });
1215
+ },
1216
+ openChangeWfForm(operateType) {
1217
+ this.operateType = operateType;
1218
+ this.changeWfDialogVisible = true;
1219
+ this.changeUserRows = [];
1220
+ this.changeWfForm = {
1221
+ userIds: [],
1222
+ userNickNames: null,
1223
+ opinion: null,
1224
+ };
1225
+ },
1226
+ subChangeWfForm() {
1227
+ let that = getTarget(this);
1228
+ var procInstId = this.wfInfo.procInstId;
1229
+ var taskId = this.wfInfo.taskId;
1230
+
1231
+ var userIds = this.changeWfForm.userIds || [];
1232
+ var opinion = this.changeWfForm.opinion || null;
1233
+
1234
+ if (!userIds.length) {
1235
+ that.$message({
1236
+ message: this.$t2('请选择转办人', 'components.wf.transferWarnMsg1'),
1237
+ type: "error",
1238
+ duration: 2000,
1239
+ onClose: (t) => {
1240
+ },
1241
+ });
1242
+ return false;
1243
+ }
1244
+
1245
+ var data = JSON.stringify({
1246
+ taskId: taskId,
1247
+ uuid: this.wfInfo.uuid,
1248
+ transferTo: userIds,
1249
+ suggestion: opinion,
1250
+ });
1251
+ this.changeWfDialogVisible = false;
1252
+ that.$http({
1253
+ url: this.current_prefix + "/wf/transfer",
1254
+ data: data,
1255
+ method: "post",
1256
+ headers: {
1257
+ "Content-Type": "application/json;charset=utf-8",
1258
+ },
1259
+ isLoading: true,
1260
+ success: (resultMsg) => {
1261
+ that.$message({
1262
+ message: resultMsg.content,
1263
+ type: "success",
1264
+ duration: 500,
1265
+ onClose: (t) => {
1266
+ this.reloadContent();
1267
+ this.closeWinOnCheck(4);
1268
+ },
1269
+ });
1270
+ },
1271
+ });
1272
+ },
1273
+ userConfirm(rows) {
1274
+ if (rows.length > 0) {
1275
+ let changeUserRows = this.changeUserRows;
1276
+ let ids = changeUserRows.map((changeUserRow) => changeUserRow.id);
1277
+ let addRows = rows.filter((row) => !ids.includes(row.id));
1278
+ changeUserRows.push(...addRows);
1279
+
1280
+ let row = rows[0];
1281
+ this.changeWfForm.userIds = changeUserRows.map(
1282
+ (changeUserRow) => changeUserRow.id
1283
+ );
1284
+ this.changeWfForm.userNickNames = changeUserRows
1285
+ .map((changeUserRow) => changeUserRow.nickName)
1286
+ .join(",");
1287
+ }
1288
+ },
1289
+ reloadContent() {
1290
+ let that = getTarget(this);
1291
+ that.$baseReload();
1292
+ },
1293
+ closeWinOnCheck(flag) {
1294
+ //_closeWindowOnCheck=true, 1提交,2驳回,3中断,4转办时,5沟通 关闭窗口
1295
+ let that = getTarget(this);
1296
+ let _closeWindowOnCheck = that.$attrs._closeWindowOnCheck || that._closeWindowOnCheck;
1297
+ if (_closeWindowOnCheck === true || _closeWindowOnCheck === "true") {
1298
+ window.close && window.close();
1299
+ }
1300
+ let _handleCallback = that.$attrs._handleCallback || that._handleCallback;
1301
+ _handleCallback && _handleCallback(flag);
1302
+ },
1303
+ manualCallback() {
1304
+ this.$emit("manualCallback");
1305
+ },
1306
+ openUrgingDialog(operateType) {
1307
+ this.operateType = operateType;
1308
+ this.urgingDialogVisible = true;
1309
+ },
1310
+ openDeleteTaskUserDialog(operateType) {
1311
+ this.operateType = operateType;
1312
+ this.showDeleteTaskUserDialog = true;
1313
+ },
1314
+ openAddTaskUserDialog(operateType) {
1315
+ this.operateType = operateType;
1316
+ this.showAddTaskUserDialog = true;
1317
+ },
1318
+ openAddIncreaseSign(operateType) {
1319
+ this.operateType = operateType;
1320
+ this.addIncreaseSignUsers = [];
1321
+ this.addIncreaseSignForm = {userNickNames: null};
1322
+ this.showAddIncreaseSignDialog = true;
1323
+ },
1324
+ initWfUserParam(callback) {
1325
+ this.initTransferUserParam();//转办
1326
+ this.initAddSignUserParam();//加签
1327
+ this.initTalkUserParam();//沟通
1328
+ },
1329
+ //
1330
+ initTransferUserParam(callback) {
1331
+ //初始化转办用户参数
1332
+ let that = getTarget(this);
1333
+ return that.$http({
1334
+ url: USER_PREFIX + "/wf_diy_attribute/getValue",
1335
+ method: `post`,
1336
+ data: {attributeKey: "param1"},
1337
+ isLoading: true,
1338
+ modalStrictly: true,
1339
+ success: (res) => {
1340
+ this.wfUserParamForTransfer = res.objx || {};
1341
+ callback && callback();
1342
+ },
1343
+ });
1344
+ },
1345
+ initAddSignUserParam(callback) {
1346
+ //初始化加签用户参数
1347
+ let that = getTarget(this);
1348
+ return that.$http({
1349
+ url: USER_PREFIX + "/wf_diy_attribute/getValue",
1350
+ method: `post`,
1351
+ data: {attributeKey: "param2"},
1352
+ isLoading: true,
1353
+ modalStrictly: true,
1354
+ success: (res) => {
1355
+ this.wfUserParamForAddSign = res.objx || {};
1356
+ callback && callback();
1357
+ },
1358
+ });
1359
+ },
1360
+ initTalkUserParam(callback) {
1361
+ //初始化沟通用户参数
1362
+ let that = getTarget(this);
1363
+ return that.$http({
1364
+ url: USER_PREFIX + "/wf_diy_attribute/getValue",
1365
+ method: `post`,
1366
+ data: {attributeKey: "param3"},
1367
+ isLoading: true,
1368
+ modalStrictly: true,
1369
+ success: (res) => {
1370
+ this.wfUserParamForTalk = res.objx || {};
1371
+ callback && callback();
1372
+ },
1373
+ });
1374
+ },
1375
+ //
1376
+ resetLinkup() {
1377
+ this.formData = {};
1378
+ this.$refs["table-linkup"].commitProxy("reload");
1379
+ },
1380
+ searchLinkup() {
1381
+ this.$refs["table-linkup"].commitProxy("reload");
1382
+ },
1383
+ initLinkup(flag) {
1384
+ return
1385
+ let h = this.$createElement;
1386
+ let statusMap = {
1387
+ 0: this.$t2('未完成', 'components.wf.talkStatus0'),
1388
+ 1: this.$t2('已完成', 'components.wf.talkStatus1'),
1389
+ 2: this.$t2('已取消', 'components.wf.talkStatus2')
1390
+ };
1391
+ let tableOption = {
1392
+ vue: this,
1393
+ tableRef: "table-linkup",
1394
+ tableName: "wf_table-linkup",
1395
+ path: this.current_prefix + "/wf_linkup/listPage",
1396
+ param: () => {
1397
+ return {
1398
+ uuid: this.wfInfo.uuid,
1399
+ };
1400
+ },
1401
+ config: {
1402
+ height: 350
1403
+ },
1404
+ columns: [
1405
+ {type: "checkbox", width: 48, resizable: false, fixed: "left"},
1406
+ {
1407
+ title: this.$t2('任务名称', 'components.wf.taskName'),
1408
+ field: "taskName",
1409
+ width: 150,
1410
+ fixed: "left",
1411
+ },
1412
+ {
1413
+ title: this.$t2('发送人', 'components.wf.senderName'),
1414
+ field: "senderName",
1415
+ width: 150,
1416
+ slots: {
1417
+ default: "sender",
1418
+ },
1419
+ },
1420
+ {
1421
+ title: this.$t2('接收人', 'components.wf.receiverName'),
1422
+ field: "receiverName",
1423
+ width: 150,
1424
+ slots: {
1425
+ default: "receiver",
1426
+ },
1427
+ },
1428
+ {
1429
+ title: this.$t2('沟通内容', 'components.wf.talkContent'),
1430
+ field: "content",
1431
+ width: 250,
1432
+ showOverflow: false,
1433
+ slots: {
1434
+ default: ({row, rowIndex}) => {
1435
+ return row.replyId ? ("[" + this.$t2('回复', 'components.wf.reply') + "]" + row.content) : row.content;
1436
+ },
1437
+ },
1438
+ },
1439
+ {
1440
+ width: 150,
1441
+ title: this.$t2('沟通资料', 'components.wf.talkAttachment'),
1442
+ field: "attachmentImage",
1443
+ sortable: false,
1444
+ slots: {
1445
+ default: ({row, rowIndex}) => {
1446
+ let option = {
1447
+ title: this.$t2('沟通资料', 'components.wf.talkAttachment'),
1448
+ edit: false,
1449
+ rows: (done) => {
1450
+ done(row.attachmentDTOs);
1451
+ },
1452
+ };
1453
+ return [
1454
+ h("base-attachment", {
1455
+ props: {
1456
+ option: option,
1457
+ },
1458
+ }),
1459
+ ];
1460
+ },
1461
+ },
1462
+ },
1463
+
1464
+ {
1465
+ title: this.$t2('状态', 'components.wf.status'),
1466
+ field: "status",
1467
+ width: 150,
1468
+ slots: {
1469
+ default: ({row, rowIndex}) => {
1470
+ return statusMap[row.status] || "";
1471
+ },
1472
+ },
1473
+ },
1474
+ {
1475
+ title: this.$t2('创建时间', 'system.label.createDate'),
1476
+ field: "createDate",
1477
+ width: 150,
1478
+ },
1479
+ {
1480
+ width: 80,
1481
+ fixed: "right",
1482
+ title: "",
1483
+ sortable: false,
1484
+ slots: {
1485
+ default: "operate"
1486
+ }
1487
+ },
1488
+ ],
1489
+ callback: (rows) => {
1490
+ if (rows.length && flag) {
1491
+ let row = rows[0];
1492
+ if (row.replyToSender) {
1493
+ this.$nextTick(() => {
1494
+ this.tabIndex = "2";
1495
+ this.openTalkDialog(row.sender, row.senderName, 'talk', 1, row.id)
1496
+ });
1497
+ }
1498
+ }
1499
+ }
1500
+ };
1501
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
1502
+ this.linkupOption = opts;
1503
+ });
1504
+ },
1505
+ cancelTalk(row) {
1506
+ let that = getTarget(this);
1507
+ that.$baseConfirm(this.$t2('您确定要取消沟通记录吗?', 'components.wf.cancelTalkTip')).then(() => {
1508
+ that.$http({
1509
+ url: this.current_prefix + "/wf_linkup/cancel",
1510
+ data: {id: row.id},
1511
+ method: "post",
1512
+ loadingTarget: document.body,
1513
+ isLoading: true,
1514
+ success: (resultMsg) => {
1515
+ that.$message({
1516
+ message: resultMsg.content,
1517
+ type: "success",
1518
+ duration: 500,
1519
+ onClose: (t) => {
1520
+ this.reloadContent();
1521
+ },
1522
+ });
1523
+ },
1524
+ });
1525
+ });
1526
+ },
1527
+ openTalkDialog(receiver, receiverName, operateType, flag, replyId) {
1528
+ this.operateType = operateType;
1529
+ /*this.talkForm.receiver = receiver || null;
1530
+ this.talkForm.receiverName = receiverName || null;
1531
+ this.talkForm.replyId = replyId || null;
1532
+ this.talkForm.content = null;
1533
+ this.talkForm.attachmentDTOs = [];*/
1534
+ this.initTalkForm(receiver, receiverName, replyId)
1535
+ this.showTalkDialog = true;
1536
+ if (flag == 1) {
1537
+ let opeaBtnDom = this.$refs.opeaBtn;
1538
+ opeaBtnDom && opeaBtnDom.scrollIntoView();
1539
+ }
1540
+ },
1541
+ initTalkForm(receiver, receiverName, replyId) {
1542
+ this.talkForm.receiver = receiver || null;
1543
+ this.talkForm.receiverName = receiverName || null;
1544
+ this.talkForm.replyId = replyId || null;
1545
+ this.talkForm.content = null;
1546
+ this.talkForm.attachmentDTOs = [];
1547
+ },
1548
+ submitTalkForm() {
1549
+ let that = getTarget(this);
1550
+ var procInstId = this.wfInfo.procInstId;
1551
+ var taskId = this.wfInfo.taskId;
1552
+
1553
+ if (!this.talkForm.receiver) {
1554
+ that.$message({
1555
+ message: this.$t2('请选择接收人', 'components.wf.talkWarnMsg1'),
1556
+ type: "error",
1557
+ duration: 2 * 1000,
1558
+ });
1559
+ return false;
1560
+ }
1561
+ if (!this.talkForm.content) {
1562
+ that.$message({
1563
+ message: this.$t2('请输入沟通内容', 'components.wf.talkWarnMsg2'),
1564
+ type: "error",
1565
+ duration: 2 * 1000,
1566
+ });
1567
+ return false;
1568
+ }
1569
+
1570
+ var data = {
1571
+ taskId: taskId,
1572
+ uuid: this.wfInfo.uuid,
1573
+ receiver: this.talkForm.receiver,
1574
+ receiverName: this.talkForm.receiverName,
1575
+ replyId: this.talkForm.replyId,
1576
+ content: this.talkForm.content,
1577
+ attachmentDTOs: this.talkForm.attachmentDTOs,
1578
+ notifyType: "wfLinkup",
1579
+ };
1580
+ this.showTalkDialog = false;
1581
+ that.$http({
1582
+ url: this.current_prefix + "/wf_linkup/save",
1583
+ data: data,
1584
+ method: "post",
1585
+ isLoading: true,
1586
+ success: (resultMsg) => {
1587
+ that.$message({
1588
+ message: resultMsg.content,
1589
+ type: "success",
1590
+ duration: 500,
1591
+ onClose: (t) => {
1592
+ this.reloadContent();
1593
+ this.closeWinOnCheck(5);
1594
+ },
1595
+ });
1596
+ },
1597
+ });
1598
+ },
1599
+ openTalkUserDialog() {
1600
+ this.showTalkUserDialog = true;
1601
+ },
1602
+ confirmTalkUserDialog(rows) {
1603
+ if (rows.length > 0) {
1604
+ let row = rows[0];
1605
+ if (this.talkForm.receiver != row.id) {
1606
+ this.talkForm.replyId = null;
1607
+ }
1608
+ this.talkForm.receiver = row.id;
1609
+ this.talkForm.receiverName = row.nickName;
1610
+ }
1611
+ },
1612
+ confirmUrging() {
1613
+ this.reloadContent();
1614
+ },
1615
+ confirmDeleteTaskUser() {
1616
+ this.reloadContent();
1617
+ },
1618
+ confirmAddTaskUser(rows) {
1619
+ this.addIncreaseSignUsers = rows;
1620
+ this.addIncreaseSignForm.userNickNames = rows.map(row => row.nickName).join(',');
1621
+ // this.reloadContent();
1622
+ },
1623
+ submitAddTaskUserForm(flag) {
1624
+ let that = getTarget(this);
1625
+ let userIds = this.addIncreaseSignUsers.map((checkRow) => checkRow.id);
1626
+ if (userIds.length == 0) {
1627
+ that.$message({
1628
+ message: this.$t2('请选择候选人', 'components.wf.addIncreaseSignWarnMsg1'),
1629
+ type: "error",
1630
+ duration: 2000,
1631
+ onClose: (t) => {
1632
+ },
1633
+ });
1634
+ return false;
1635
+ }
1636
+ let toDo = () => {
1637
+ var data = JSON.stringify({
1638
+ uuid: this.wfInfo.uuid,
1639
+ taskId: this.wfInfo.taskId,
1640
+ userIds: userIds,
1641
+ suggestion: this.addIncreaseSignForm.opinion
1642
+
1643
+ });
1644
+ this.agreeDialogVisible = false;
1645
+ that.$http({
1646
+ url: this.current_prefix + "/wf/addIncreaseSign",
1647
+ data: data,
1648
+ method: "post",
1649
+ loadingTarget: document.body,
1650
+ headers: {
1651
+ "Content-Type": "application/json;charset=utf-8",
1652
+ },
1653
+ isLoading: true,
1654
+ success: (resultMsg) => {
1655
+ that.$message({
1656
+ message: resultMsg.content,
1657
+ type: "success",
1658
+ duration: 500,
1659
+ onClose: (t) => {
1660
+ this.reloadContent();
1661
+ },
1662
+ });
1663
+ },
1664
+ });
1665
+ }
1666
+ if (flag === 0) {
1667
+ toDo();
1668
+ } else {
1669
+ that.$baseConfirm(this.$t2('您确定要加签吗?', 'components.wf.addIncreaseSignConfirmTip')).then(() => {
1670
+ toDo();
1671
+ });
1672
+ }
1673
+ },
1674
+ openSetCandidateDialog(operateType) {
1675
+ this.operateType = operateType;
1676
+ this.showSetCandidateDialog = true;
1677
+ },
1678
+ closeSetCandidateDialog() {
1679
+ this.showSetCandidateDialog = false;
1680
+ this.reloadContent();
1681
+ },
1682
+ openRevokeDialog(operateType) {
1683
+ this.operateType = operateType;
1684
+ this.revokeForm = {opinion: null}
1685
+ this.revokeDialogVisible = true;
1686
+ },
1687
+ subRevokeForm(flag) {
1688
+ //撤回
1689
+ let that = getTarget(this);
1690
+ let toDo = () => {
1691
+ var data = JSON.stringify({
1692
+ uuid: this.wfInfo.uuid,
1693
+ taskId: this.wfInfo.taskId,
1694
+ suggestion: this.revokeForm.opinion,
1695
+ });
1696
+ this.revokeDialogVisible = false;
1697
+ that.$http({
1698
+ url: this.current_prefix + "/wf/revoke",
1699
+ data: data,
1700
+ method: "post",
1701
+ loadingTarget: document.body,
1702
+ headers: {
1703
+ "Content-Type": "application/json;charset=utf-8",
1704
+ },
1705
+ isLoading: true,
1706
+ success: (resultMsg) => {
1707
+ that.$message({
1708
+ message: resultMsg.content,
1709
+ type: "success",
1710
+ duration: 500,
1711
+ onClose: (t) => {
1712
+ this.reloadContent();
1713
+ },
1714
+ });
1715
+ },
1716
+ });
1717
+ }
1718
+ if (flag === 0) {
1719
+ toDo();
1720
+ } else {
1721
+ that.$baseConfirm(this.$t2('您确定要撤回吗?', 'components.wf.revokeConfirmTip')).then(() => {
1722
+ toDo();
1723
+ });
1724
+ }
1725
+ }
1726
+ }
1727
+ }
1728
+ </script>
1729
+
1730
+ <style scoped>
1731
+ ::v-deep .form-box.el-form .el-form-item .el-form-item__label {
1732
+ width: 70px
1733
+ }
1734
+ </style>