gds-plus-design-vue 1.2.62 → 1.2.63

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 (332) hide show
  1. package/lib/addPermission.5036013c.js +1 -0
  2. package/lib/addPermission.9fc97a47.mjs +421 -0
  3. package/lib/approvalModel.51d07afe.mjs +340 -0
  4. package/lib/approvalModel.66f49dfb.js +1 -0
  5. package/lib/attribute.318f485c.js +1 -0
  6. package/lib/attribute.a06ac9e7.mjs +237 -0
  7. package/lib/buildItem.6a834227.js +1 -0
  8. package/lib/buildItem.fd8634ab.mjs +205 -0
  9. package/lib/businessRules.0e4dbb3a.js +1 -0
  10. package/lib/businessRules.db6ba874.mjs +538 -0
  11. package/lib/components.chartbi.b043dcdc.mjs +1729 -0
  12. package/lib/components.chartbi.e4680eaa.js +7 -0
  13. package/lib/components.coloreditor.044983d2.mjs +1505 -0
  14. package/lib/components.coloreditor.779a9419.js +6 -0
  15. package/lib/components.dataassign.1853ed5c.js +1 -0
  16. package/lib/components.dataassign.56632583.mjs +147 -0
  17. package/lib/components.echarts.10d3ffe2.mjs +794 -0
  18. package/lib/components.echarts.e4d6b13e.js +3 -0
  19. package/lib/components.exception.3cc33e29.js +1 -0
  20. package/lib/components.exception.cc2f4ca3.mjs +61 -0
  21. package/lib/components.form.3344c817.mjs +7785 -0
  22. package/lib/components.form.91d5ed3e.js +41 -0
  23. package/lib/components.globalheader.07a90c4b.js +1 -0
  24. package/lib/components.globalheader.43fafa8c.mjs +54 -0
  25. package/lib/components.iconselector.8caabeaa.mjs +1165 -0
  26. package/lib/components.iconselector.d712170f.js +1 -0
  27. package/lib/components.imgpreview.57290b54.mjs +213 -0
  28. package/lib/components.imgpreview.86bf7971.js +1 -0
  29. package/lib/components.lunccalendar.76159d2e.js +1 -0
  30. package/lib/components.lunccalendar.f6765c94.mjs +1137 -0
  31. package/lib/components.middleware.3bad5748.js +1 -0
  32. package/lib/components.middleware.457b1182.mjs +147 -0
  33. package/lib/components.modaltitle.ae92f96c.mjs +127 -0
  34. package/lib/components.modaltitle.e0b34fcb.js +1 -0
  35. package/lib/components.multitab.82fd0544.js +1 -0
  36. package/lib/components.multitab.8441aa6b.mjs +140 -0
  37. package/lib/components.selecttree.85d940a9.mjs +170 -0
  38. package/lib/components.selecttree.d710a362.js +1 -0
  39. package/lib/components.settingdrawer.779f6715.js +1 -0
  40. package/lib/components.settingdrawer.a6693034.mjs +237 -0
  41. package/lib/components.sidemenu.725677e3.mjs +277 -0
  42. package/lib/components.sidemenu.80e46c2d.js +1 -0
  43. package/lib/components.sidenavmenu.23b8edce.mjs +1331 -0
  44. package/lib/components.sidenavmenu.b9bb9304.js +1 -0
  45. package/lib/components.statuschange.15938660.mjs +116 -0
  46. package/lib/components.statuschange.ed1218a4.js +1 -0
  47. package/lib/components.table.17c02054.js +8 -0
  48. package/lib/components.table.e3e5e3bc.mjs +4635 -0
  49. package/lib/components.tableumy.2f5dfa12.mjs +450 -0
  50. package/lib/components.tableumy.9cf33062.js +1 -0
  51. package/lib/components.tablevirtual.38d4d3d8.js +1 -0
  52. package/lib/components.tablevirtual.ba03746e.mjs +561 -0
  53. package/lib/components.teamsharing.05503821.js +1 -0
  54. package/lib/components.teamsharing.fb4351ec.mjs +373 -0
  55. package/lib/components.tooltip.950dc77b.mjs +86 -0
  56. package/lib/components.tooltip.a05d8dd1.js +1 -0
  57. package/lib/components.uploadfile.10f6cb2a.mjs +228 -0
  58. package/lib/components.uploadfile.5a9b6cc1.js +1 -0
  59. package/lib/components.uploadimg.cce7452a.js +1 -0
  60. package/lib/components.uploadimg.f4fe4e77.mjs +192 -0
  61. package/lib/components.verificationcode.afb9aa1a.mjs +71 -0
  62. package/lib/components.verificationcode.d1946db4.js +1 -0
  63. package/lib/components.viewformdetails.1621bc18.js +1 -0
  64. package/lib/components.viewformdetails.f362d69e.mjs +1048 -0
  65. package/lib/components.viewloading.807bbf68.js +1 -0
  66. package/lib/components.viewloading.ea40b244.mjs +96 -0
  67. package/lib/components.watermark.1ffc66e0.mjs +53 -0
  68. package/lib/components.watermark.da3d7220.js +2 -0
  69. package/lib/components.xlsxexport.d98572f8.mjs +263 -0
  70. package/lib/components.xlsxexport.f5ace2cd.js +1 -0
  71. package/lib/components.xlsximport.cffa88fe.mjs +913 -0
  72. package/lib/components.xlsximport.dbd826bb.js +1 -0
  73. package/lib/createFile.6b37ecf2.js +1 -0
  74. package/lib/createFile.82d6e415.mjs +239 -0
  75. package/lib/createSubfolders.47af629c.js +1 -0
  76. package/lib/createSubfolders.d35b97e9.mjs +154 -0
  77. package/lib/dialogLayout.08823bb7.js +1 -0
  78. package/lib/dialogLayout.c4bc3b55.mjs +138 -0
  79. package/lib/drawerContainer.604a1271.mjs +146 -0
  80. package/lib/drawerContainer.6a9813ce.js +1 -0
  81. package/lib/drawerLayout.36cf4d05.js +1 -0
  82. package/lib/drawerLayout.fb60950f.mjs +119 -0
  83. package/lib/fileSearch.65311ded.js +1 -0
  84. package/lib/fileSearch.86c356fe.mjs +338 -0
  85. package/lib/flow.designer.1ba3a90d.js +1 -0
  86. package/lib/flow.designer.6da03949.mjs +7686 -0
  87. package/lib/flow.list.03694808.mjs +3030 -0
  88. package/lib/flow.list.4eb10554.js +1 -0
  89. package/lib/form.build.51bd261e.js +1 -0
  90. package/lib/form.build.b768d613.mjs +251 -0
  91. package/lib/form.designer.build.5a950455.js +1 -0
  92. package/lib/form.designer.build.e521c9c6.mjs +5091 -0
  93. package/lib/formFiled.464856f5.js +1 -0
  94. package/lib/formFiled.fe7d9df3.mjs +505 -0
  95. package/lib/gd-initial.js +1 -35
  96. package/lib/gd-initial.mjs +221 -91338
  97. package/lib/http.appmanage.4554a629.mjs +50 -0
  98. package/lib/http.appmanage.b998818f.js +1 -0
  99. package/lib/http.codegeneratemanage.2f925b10.mjs +112 -0
  100. package/lib/http.codegeneratemanage.aecadd5d.js +1 -0
  101. package/lib/http.configmanage.6cfb8ae7.js +1 -0
  102. package/lib/http.configmanage.c23c7fa8.mjs +34 -0
  103. package/lib/http.currencymanage.37ab5ced.js +1 -0
  104. package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
  105. package/lib/http.datasource.294b01e2.js +1 -0
  106. package/lib/http.datasource.aa5cd0d1.mjs +58 -0
  107. package/lib/http.dictdatamanage.4baf16c0.mjs +42 -0
  108. package/lib/http.dictdatamanage.70545d8a.js +1 -0
  109. package/lib/http.dictmanage.3dc07b5d.js +1 -0
  110. package/lib/http.dictmanage.77c69971.mjs +50 -0
  111. package/lib/http.duplicatechecking.31964ce7.mjs +50 -0
  112. package/lib/http.duplicatechecking.ee5c414c.js +1 -0
  113. package/lib/http.emailmanage.1ddaa8b5.js +1 -0
  114. package/lib/http.emailmanage.64fd611f.mjs +18 -0
  115. package/lib/http.filedocument.7c656b91.js +1 -0
  116. package/lib/http.filedocument.d456d26a.mjs +156 -0
  117. package/lib/http.filemanage.7e6e3e1a.js +1 -0
  118. package/lib/http.filemanage.c0de21d6.mjs +71 -0
  119. package/lib/http.languagemanage.2ef16159.mjs +10 -0
  120. package/lib/http.languagemanage.e2c098ec.js +1 -0
  121. package/lib/http.loginmanage.05500c29.mjs +74 -0
  122. package/lib/http.loginmanage.326984c3.js +1 -0
  123. package/lib/http.logmanage.1e12a9bd.js +1 -0
  124. package/lib/http.logmanage.8ba72635.mjs +82 -0
  125. package/lib/http.machinemanage.29d72a65.js +1 -0
  126. package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
  127. package/lib/http.main.2f8a6936.js +1 -0
  128. package/lib/http.main.40657f51.mjs +517 -0
  129. package/lib/http.menumanage.3240ba0d.mjs +66 -0
  130. package/lib/http.menumanage.6d740f2c.js +1 -0
  131. package/lib/http.message.5004bf60.mjs +178 -0
  132. package/lib/http.message.87f319d7.js +1 -0
  133. package/lib/http.noticemanage.2507d094.js +1 -0
  134. package/lib/http.noticemanage.e03bd5f3.mjs +82 -0
  135. package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
  136. package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
  137. package/lib/http.onlineusermanage.3893f897.js +1 -0
  138. package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
  139. package/lib/http.orgmanage.5162fd7a.js +1 -0
  140. package/lib/http.orgmanage.84e43edb.mjs +58 -0
  141. package/lib/http.pluginmanage.6a876040.js +1 -0
  142. package/lib/http.pluginmanage.6bc6197f.mjs +82 -0
  143. package/lib/http.posmanage.c0f80aec.js +1 -0
  144. package/lib/http.posmanage.ee6a7613.mjs +34 -0
  145. package/lib/http.promptmanagement.c7912f6c.mjs +42 -0
  146. package/lib/http.promptmanagement.d115c4b0.js +1 -0
  147. package/lib/http.rolemanage.03363732.js +1 -0
  148. package/lib/http.rolemanage.dbf3fda1.mjs +114 -0
  149. package/lib/http.solution.175d36c8.mjs +91 -0
  150. package/lib/http.solution.c6b2634f.js +1 -0
  151. package/lib/http.sumberrules.0b68ce6d.js +1 -0
  152. package/lib/http.sumberrules.608a06d6.mjs +34 -0
  153. package/lib/http.sysapps.469d47f7.js +1 -0
  154. package/lib/http.sysapps.e294ceaf.mjs +58 -0
  155. package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
  156. package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
  157. package/lib/http.tabledevelopment.1d370398.mjs +362 -0
  158. package/lib/http.tabledevelopment.a880bb76.js +1 -0
  159. package/lib/http.team.c8487c0b.mjs +90 -0
  160. package/lib/http.team.e45400d5.js +1 -0
  161. package/lib/http.timersmanage.01dbc1a2.mjs +146 -0
  162. package/lib/http.timersmanage.6e894942.js +1 -0
  163. package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
  164. package/lib/http.timezonemanage.e0aa212f.js +1 -0
  165. package/lib/http.translationmanage.1f9dce46.js +1 -0
  166. package/lib/http.translationmanage.a4640c9a.mjs +104 -0
  167. package/lib/http.useraffiliation.840741ed.mjs +90 -0
  168. package/lib/http.useraffiliation.af2013ad.js +1 -0
  169. package/lib/http.usermanage.3e5eff33.mjs +219 -0
  170. package/lib/http.usermanage.6dcbc7de.js +1 -0
  171. package/lib/http.webresource.5158b431.mjs +50 -0
  172. package/lib/http.webresource.7c01b9cd.js +1 -0
  173. package/lib/index.69ad4631.mjs +44291 -0
  174. package/lib/index.cca024bf.js +8 -0
  175. package/lib/layoutBlocks.1a9e3e05.mjs +204 -0
  176. package/lib/layoutBlocks.5e6be06f.js +1 -0
  177. package/lib/layouts.051a0bba.mjs +376 -0
  178. package/lib/layouts.a6a36612.js +2 -0
  179. package/lib/main.457f4326.js +1 -0
  180. package/lib/main.4fff412e.js +1 -0
  181. package/lib/{main.c569c0a5.mjs → main.70357352.mjs} +12 -10
  182. package/lib/main.77373aa4.mjs +441 -0
  183. package/lib/{main.fb4a8edf.mjs → main.7f44e3bf.mjs} +78 -143
  184. package/lib/main.8a2a590d.js +1 -0
  185. package/lib/main.ad1e8d4d.js +1 -0
  186. package/lib/{main.5a6c881a.mjs → main.b0e5e1b0.mjs} +9 -8
  187. package/lib/{main.7921130e.mjs → main.c1df94d8.mjs} +4 -4
  188. package/lib/main.c3726602.js +1 -0
  189. package/lib/manage.5bb4f719.js +1 -0
  190. package/lib/manage.a1df9b88.mjs +419 -0
  191. package/lib/messages.7b74736f.js +9 -0
  192. package/lib/{messages.5bcc42f9.mjs → messages.ad082386.mjs} +994 -1968
  193. package/lib/moveFile.0ce803e0.js +1 -0
  194. package/lib/moveFile.8310ea94.mjs +254 -0
  195. package/lib/page.build.685c1e15.mjs +3158 -0
  196. package/lib/page.build.846096e6.js +12 -0
  197. package/lib/personal.echarts.b22fba61.mjs +701 -0
  198. package/lib/personal.echarts.f77bfc9e.js +1 -0
  199. package/lib/result.19351665.mjs +526 -0
  200. package/lib/result.e59c0e40.js +1 -0
  201. package/lib/router.config.2501ec51.js +1 -0
  202. package/lib/router.config.98a73167.mjs +3172 -0
  203. package/lib/solution.58580123.js +1 -0
  204. package/lib/solution.890ff164.mjs +6942 -0
  205. package/lib/store.config.3cb11578.js +1 -0
  206. package/lib/store.config.fff8a5a1.mjs +542 -0
  207. package/lib/style.css +3 -3
  208. package/lib/system.account.014f3e0b.mjs +2097 -0
  209. package/lib/system.account.0d4f1fdc.js +216 -0
  210. package/lib/{system.config.00dd0a29.mjs → system.config.0899edb8.mjs} +7 -6
  211. package/lib/system.config.210f516c.js +1 -0
  212. package/lib/system.datasource.82492d27.js +1 -0
  213. package/lib/{system.datasource.eb8d16df.mjs → system.datasource.986768c9.mjs} +15 -64
  214. package/lib/{system.dict.787ff1ec.mjs → system.dict.ef24873d.mjs} +28 -107
  215. package/lib/system.dict.f5708400.js +1 -0
  216. package/lib/system.duplicatechecking.8e3a37c0.js +1 -0
  217. package/lib/system.duplicatechecking.dcf9f86b.mjs +742 -0
  218. package/lib/system.email.070ab2be.js +1 -0
  219. package/lib/system.email.252fd642.mjs +138 -0
  220. package/lib/{system.fieldsecurity.9d40595f.mjs → system.fieldsecurity.0234d390.mjs} +224 -685
  221. package/lib/system.fieldsecurity.3ef07bf7.js +1 -0
  222. package/lib/system.file.17a7f2ed.js +1 -0
  223. package/lib/{system.file.eae6eac2.mjs → system.file.73eeb731.mjs} +8 -7
  224. package/lib/{system.log.9bf208c1.mjs → system.log.b86cf57f.mjs} +24 -93
  225. package/lib/system.log.fc60f5e6.js +1 -0
  226. package/lib/{system.machine.0130e762.mjs → system.machine.0114001b.mjs} +5 -25
  227. package/lib/system.machine.f1d95c86.js +1 -0
  228. package/lib/{system.notice.dba4c597.mjs → system.notice.25ea8dca.mjs} +292 -474
  229. package/lib/system.notice.96c770a6.js +1 -0
  230. package/lib/{system.noticereceived.0b88ef5d.mjs → system.noticereceived.369f634c.mjs} +17 -24
  231. package/lib/system.noticereceived.dfe4ecc7.js +1 -0
  232. package/lib/{system.onlineuser.bfc3abf2.mjs → system.onlineuser.2dc284b1.mjs} +11 -24
  233. package/lib/system.onlineuser.e2e39bdc.js +1 -0
  234. package/lib/system.org.79ee5bd6.js +1 -0
  235. package/lib/{system.org.6da23c73.mjs → system.org.c20fe6b2.mjs} +3 -3
  236. package/lib/system.permissions.90f73461.js +9 -0
  237. package/lib/{system.permissions.fdad3c36.mjs → system.permissions.c3d34921.mjs} +4 -3
  238. package/lib/{system.plugin.f8765f96.mjs → system.plugin.45a0f530.mjs} +23 -93
  239. package/lib/system.plugin.b34a3b47.js +1 -0
  240. package/lib/system.pos.0a3d2a37.js +1 -0
  241. package/lib/{system.pos.5645b45a.mjs → system.pos.7946a99c.mjs} +31 -62
  242. package/lib/system.promptmanagement.b5fa6b2d.js +1 -0
  243. package/lib/{system.promptmanagement.cd19d086.mjs → system.promptmanagement.d7250932.mjs} +153 -288
  244. package/lib/system.role.03be0982.js +1 -0
  245. package/lib/{system.role.0c6c327d.mjs → system.role.75da7929.mjs} +8 -5
  246. package/lib/{system.sumberrules.b48c028c.mjs → system.sumberrules.4a1376a6.mjs} +13 -39
  247. package/lib/system.sumberrules.bb228fce.js +1 -0
  248. package/lib/system.team.32183b63.js +1 -0
  249. package/lib/system.team.e6a9608e.mjs +450 -0
  250. package/lib/{system.teammembers.e23e15d9.mjs → system.teammembers.4a7e7339.mjs} +135 -82
  251. package/lib/system.teammembers.847d8ea7.js +1 -0
  252. package/lib/system.timers.28691ce4.js +38 -0
  253. package/lib/{system.timers.63d03fc9.mjs → system.timers.eb0b6f3e.mjs} +50 -174
  254. package/lib/system.translation.6237f071.js +1 -0
  255. package/lib/{system.translation.52452a24.mjs → system.translation.e34f0891.mjs} +5 -5
  256. package/lib/{system.user.8d97a219.mjs → system.user.fa2d2997.mjs} +17 -16
  257. package/lib/{system.user.49457fd3.js → system.user.fca3f2d6.js} +5 -5
  258. package/lib/{system.useraffiliation.3075aa2c.mjs → system.useraffiliation.518e341e.mjs} +4 -3
  259. package/lib/system.useraffiliation.7547b9c7.js +1 -0
  260. package/lib/system.webresource.12712b90.js +1 -0
  261. package/lib/{system.webresource.7df0cf1e.mjs → system.webresource.469db736.mjs} +16 -58
  262. package/lib/{system.welcome.14785b50.mjs → system.welcome.191e98f5.mjs} +10 -3
  263. package/lib/system.welcome.f64e49f8.js +1 -0
  264. package/lib/tcheckboxs.090e75eb.mjs +52 -0
  265. package/lib/tcheckboxs.99361be3.js +1 -0
  266. package/lib/tcurrency.0ddac2f8.mjs +92 -0
  267. package/lib/tcurrency.62763c6d.js +1 -0
  268. package/lib/tdatepicker.8fe48b1b.mjs +52 -0
  269. package/lib/tdatepicker.b19e689d.js +1 -0
  270. package/lib/tdictSwitch.2e07dc8a.js +1 -0
  271. package/lib/tdictSwitch.43d882c7.mjs +60 -0
  272. package/lib/tfile.1bc381f9.js +1 -0
  273. package/lib/tfile.72925615.mjs +62 -0
  274. package/lib/tparticipants.77b876e2.js +1 -0
  275. package/lib/tparticipants.ca5b556c.mjs +56 -0
  276. package/lib/translation.mains.1ce7e110.js +1 -0
  277. package/lib/translation.mains.278e4ba6.mjs +383 -0
  278. package/lib/utils.datepicker.js.2076c2a2.mjs +61 -0
  279. package/lib/utils.datepicker.js.8576e2fc.js +1 -0
  280. package/lib/utils.echarts.js.461a74e7.js +54 -0
  281. package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
  282. package/lib/utils.mixins.js.750ca50e.js +1 -0
  283. package/lib/utils.mixins.js.be01e599.mjs +41 -0
  284. package/lib/utils.util.js.50d1ec9c.js +1 -0
  285. package/lib/utils.util.js.82cd8447.mjs +424 -0
  286. package/lib/view.build.b44fd7d7.js +1 -0
  287. package/lib/view.build.f2a9fcfb.mjs +2727 -0
  288. package/lib/viewList.5a25c4b6.mjs +346 -0
  289. package/lib/viewList.be5a5ec5.js +1 -0
  290. package/locale/en_US.js +38 -22
  291. package/locale/id_ID.js +22 -6
  292. package/locale/vi_VN.js +1929 -1913
  293. package/locale/zh_CN.js +44 -28
  294. package/package.json +106 -105
  295. package/lib/chartbi.114d32d7.js +0 -60
  296. package/lib/chartbi.eb4dd0af.mjs +0 -27639
  297. package/lib/main.083e0ba3.js +0 -1
  298. package/lib/main.4a858284.js +0 -1
  299. package/lib/main.64cb2027.js +0 -1
  300. package/lib/main.70a46cbc.js +0 -1
  301. package/lib/messages.364eb728.js +0 -9
  302. package/lib/system.account.95bd8508.js +0 -216
  303. package/lib/system.account.d6c7485b.mjs +0 -2552
  304. package/lib/system.config.63c0217d.js +0 -1
  305. package/lib/system.datasource.a2c0bad4.js +0 -1
  306. package/lib/system.dict.dfb4c376.js +0 -1
  307. package/lib/system.duplicatechecking.a58aad69.mjs +0 -2142
  308. package/lib/system.duplicatechecking.c4141ebd.js +0 -1
  309. package/lib/system.email.545cedff.mjs +0 -7432
  310. package/lib/system.email.ec0ac728.js +0 -41
  311. package/lib/system.fieldsecurity.eb217079.js +0 -1
  312. package/lib/system.file.1cb952a4.js +0 -1
  313. package/lib/system.log.348b3605.js +0 -1
  314. package/lib/system.machine.49fc6405.js +0 -1
  315. package/lib/system.notice.d7a3346d.js +0 -1
  316. package/lib/system.noticereceived.c0b24616.js +0 -1
  317. package/lib/system.onlineuser.b3c94b5b.js +0 -1
  318. package/lib/system.org.30063246.js +0 -1
  319. package/lib/system.permissions.1ff855c2.js +0 -9
  320. package/lib/system.plugin.2c7c8a5a.js +0 -1
  321. package/lib/system.pos.21294c28.js +0 -1
  322. package/lib/system.promptmanagement.7e8da777.js +0 -1
  323. package/lib/system.role.078fac85.js +0 -1
  324. package/lib/system.sumberrules.b0252f77.js +0 -1
  325. package/lib/system.team.296512d7.mjs +0 -1000
  326. package/lib/system.team.5d6169bc.js +0 -1
  327. package/lib/system.teammembers.313345f7.js +0 -1
  328. package/lib/system.timers.8246e6ba.js +0 -38
  329. package/lib/system.translation.fdff4956.js +0 -1
  330. package/lib/system.useraffiliation.0e9da6a8.js +0 -1
  331. package/lib/system.webresource.2a341e05.js +0 -1
  332. package/lib/system.welcome.c9eefa06.js +0 -1
@@ -0,0 +1,3030 @@
1
+ import { m as y, n as h } from "./components.chartbi.b043dcdc.mjs";
2
+ import { t as x, u as F, v as P, w as B, x as $, y as C, z as N, A as k, a as w, q as I, B as M, C as K, D as L, E as R, F as O, G as A, H as j, I as E, J as V } from "./http.main.40657f51.mjs";
3
+ import { t as v } from "./utils.mixins.js.be01e599.mjs";
4
+ import { u as f, p as S } from "./utils.util.js.82cd8447.mjs";
5
+ import { d as G } from "./components.table.e3e5e3bc.mjs";
6
+ import { s as T } from "./http.translationmanage.a4640c9a.mjs";
7
+ import { c as J, d as q, e as z } from "./http.codegeneratemanage.2f925b10.mjs";
8
+ import { F as H } from "./flow.designer.6da03949.mjs";
9
+ function b(s) {
10
+ let t = f();
11
+ switch (s) {
12
+ case "start":
13
+ return {
14
+ type: "start",
15
+ data: {
16
+ name: "",
17
+ sysCodeGenId: void 0,
18
+ describe: ""
19
+ }
20
+ };
21
+ case "step":
22
+ return {
23
+ type: "step",
24
+ name: "\u65B0\u5EFA\u9636\u6BB5/\u6B65\u9AA4",
25
+ list: [],
26
+ err: !1,
27
+ isDelete: !0,
28
+ pid: 0,
29
+ id: t,
30
+ sourceId: t
31
+ };
32
+ case "end":
33
+ return {
34
+ type: "end"
35
+ };
36
+ }
37
+ }
38
+ function m(s) {
39
+ switch (s) {
40
+ case "start":
41
+ return {
42
+ type: "start",
43
+ data: {
44
+ name: "",
45
+ sysCodeGenId: void 0,
46
+ ranges: void 0,
47
+ isBackgroud: [],
48
+ firing: []
49
+ }
50
+ };
51
+ case "end":
52
+ return {
53
+ type: "end"
54
+ };
55
+ }
56
+ }
57
+ const W = {
58
+ props: {
59
+ status: {
60
+ type: String,
61
+ default: "process"
62
+ },
63
+ record: {
64
+ type: Object,
65
+ default: null
66
+ },
67
+ stateCodes: {
68
+ type: [String, Number],
69
+ default: 0
70
+ },
71
+ permissionsBnt: {
72
+ type: Boolean,
73
+ default: !0
74
+ }
75
+ },
76
+ data() {
77
+ return {
78
+ fetching: !1,
79
+ show: !1,
80
+ datail: null,
81
+ ruleFormData: {
82
+ name: "",
83
+ sysCodeGenId: void 0,
84
+ code: "",
85
+ span: "",
86
+ description: "",
87
+ stateCodes: void 0,
88
+ transKey: null,
89
+ langs: "[]"
90
+ },
91
+ rules: {
92
+ name: [
93
+ {
94
+ required: !0,
95
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
96
+ trigger: "change"
97
+ }
98
+ ],
99
+ sysCodeGenId: [
100
+ {
101
+ required: !0,
102
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
103
+ trigger: "change"
104
+ }
105
+ ],
106
+ code: [
107
+ {
108
+ required: !0,
109
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
110
+ trigger: "change"
111
+ }
112
+ ],
113
+ span: [
114
+ {
115
+ required: !0,
116
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
117
+ trigger: "change"
118
+ }
119
+ ],
120
+ stateCodes: [
121
+ {
122
+ required: !0,
123
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
124
+ trigger: "change"
125
+ }
126
+ ]
127
+ },
128
+ confirmLoading: !1
129
+ };
130
+ },
131
+ computed: {
132
+ getTableLists() {
133
+ return this.tableLists.filter((s) => (s.isbusinessprocess === void 0 ? 1 : s.isbusinessprocess) === 1);
134
+ },
135
+ disabled() {
136
+ return this.permissionsBnt ? this.status == "success" ? this.datail ? !!this.datail.code : !1 : this.stateCodes == 1 : !0;
137
+ },
138
+ disableds() {
139
+ return this.permissionsBnt ? this.stateCodes == 1 : !0;
140
+ },
141
+ ...y(["screenHeight", "labelPosition", "formMode", "tableLists"])
142
+ },
143
+ methods: {
144
+ lookupSeled(s) {
145
+ let t = [];
146
+ s.langs.forEach((e) => {
147
+ t.push({
148
+ name: e.languagename,
149
+ val: e.description,
150
+ code: e.languagecode
151
+ });
152
+ }), this.ruleFormData = Object.assign(this.ruleFormData, {
153
+ name: s.defaulttext,
154
+ langs: JSON.stringify(t)
155
+ });
156
+ },
157
+ addSubmit() {
158
+ this.$refs.ruleForm.validate((s) => {
159
+ s && this.$emit(
160
+ "next",
161
+ Object.assign(
162
+ {
163
+ ...this.ruleFormData
164
+ },
165
+ {
166
+ langs: JSON.parse(this.ruleFormData.langs)
167
+ }
168
+ )
169
+ );
170
+ });
171
+ },
172
+ init(s) {
173
+ this.datail = s, this.show = !!(s && s.stateCodes !== void 0);
174
+ let t = s ? s.langs : [];
175
+ this.$nextTick(() => {
176
+ setTimeout(() => {
177
+ let e = {
178
+ span: s ? s.span : "",
179
+ name: s ? s.name : "",
180
+ sysCodeGenId: s ? s.sysCodeGenId : "",
181
+ description: s ? s.description : "",
182
+ code: s ? s.code : f(8),
183
+ transKey: s ? s.transKey : null,
184
+ langs: JSON.stringify(t)
185
+ };
186
+ s && s.stateCodes !== void 0 && (e = Object.assign(e, {
187
+ stateCodes: s.stateCodes
188
+ })), this.ruleFormData = e, this.$refs.ruleForm.resetFields(), this.$refs.gdTranslation && this.$refs.gdTranslation.init();
189
+ }, 0);
190
+ });
191
+ },
192
+ getDictionary(s) {
193
+ return this.$options.filters.dictData(s);
194
+ }
195
+ }
196
+ };
197
+ var Q = function() {
198
+ var t = this, e = t._self._c;
199
+ return e("div", { staticClass: "setting" }, [e("el-form", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }], ref: "ruleForm", staticClass: "setting-form", attrs: { "label-width": "100px", "label-position": "top", model: t.ruleFormData, rules: t.rules }, nativeOn: { submit: function(a) {
200
+ a.preventDefault();
201
+ } } }, [e("el-row", { attrs: { gutter: 24 } }, [e("el-col", { staticStyle: { display: "none" }, attrs: { span: 24 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: "transKey" } }, [e("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleFormData.transKey, callback: function(a) {
202
+ t.$set(t.ruleFormData, "transKey", a);
203
+ }, expression: "ruleFormData.transKey" } })], 1), e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: "langs" } }, [e("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleFormData.langs, callback: function(a) {
204
+ t.$set(t.ruleFormData, "langs", a);
205
+ }, expression: "ruleFormData.langs" } })], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.process.name"), prop: "name" } }, [e("el-input", { directives: [{ name: "show", rawName: "v-show", value: !t.datail || t.datail && !t.datail.transKey, expression: "!datail || (datail && !datail.transKey)" }], staticStyle: { width: "100%" }, attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleFormData.name, callback: function(a) {
206
+ t.$set(t.ruleFormData, "name", a);
207
+ }, expression: "ruleFormData.name" } }), t.datail && t.datail.transKey ? e("gd-translation", { ref: "gdTranslation", attrs: { recordData: t.datail, keyI18n: "transKey", type: 2, operational: !t.disableds }, on: { lookupSeled: t.lookupSeled } }) : t._e()], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.process.table"), prop: "sysCodeGenId" } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select"), disabled: t.status == "success", clearable: "", filterable: "", remote: "", "reserve-keyword": "" }, model: { value: t.ruleFormData.sysCodeGenId, callback: function(a) {
208
+ t.$set(t.ruleFormData, "sysCodeGenId", a);
209
+ }, expression: "ruleFormData.sysCodeGenId" } }, t._l(t.getTableLists, function(a, l) {
210
+ return e("el-option", { key: l, attrs: { value: a.id, label: t.$i18nt(`Dynamics.${a.transkey}`, a.busname) } }, [e("span", [t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`, a.busname)) + " " + t._s(a.tablename))])]);
211
+ }), 1)], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.approval.code", "\u7F16\u7801"), prop: "code" } }, [e("el-input", { staticStyle: { width: "100%" }, attrs: { disabled: t.disabled, placeholder: t.$i18nt("gd.placeholder.input") }, model: { value: t.ruleFormData.code, callback: function(a) {
212
+ t.$set(t.ruleFormData, "code", a);
213
+ }, expression: "ruleFormData.code" } })], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.process.display", "\u663E\u793A"), prop: "span" } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: t.disableds }, model: { value: t.ruleFormData.span, callback: function(a) {
214
+ t.$set(t.ruleFormData, "span", a);
215
+ }, expression: "ruleFormData.span" } }, [e("el-option", { attrs: { value: "24", label: t.$i18nt("gd.flow.process.oneColumn", "\u4E00\u884C\u4E00\u5217") } }), e("el-option", { attrs: { value: "12", label: t.$i18nt("gd.flow.process.twoColumn", "\u4E00\u884C\u4E24\u5217") } }), e("el-option", { attrs: { value: "8", label: t.$i18nt("gd.flow.process.threeColumn", "\u4E00\u884C\u4E09\u5217") } }), e("el-option", { attrs: { value: "6", label: t.$i18nt("gd.flow.process.fourColumn", "\u4E00\u884C\u56DB\u5217") } })], 1)], 1)], 1), t.show ? e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.state"), prop: "stateCodes" } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: t.disableds }, model: { value: t.ruleFormData.stateCodes, callback: function(a) {
216
+ t.$set(t.ruleFormData, "stateCodes", a);
217
+ }, expression: "ruleFormData.stateCodes" } }, t._l(t.getDictionary("state_code"), function(a, l) {
218
+ return e("el-option", { key: l, attrs: { value: a.code, label: t.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
219
+ }), 1)], 1)], 1) : t._e(), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.process.describe", "\u63CF\u8FF0"), prop: "description" } }, [e("el-input", { staticStyle: { width: "100%" }, attrs: { type: "textarea", rows: 4, placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: t.disableds }, model: { value: t.ruleFormData.description, callback: function(a) {
220
+ t.$set(t.ruleFormData, "description", a);
221
+ }, expression: "ruleFormData.description" } })], 1)], 1)], 1)], 1)], 1);
222
+ }, U = [], X = /* @__PURE__ */ h(
223
+ W,
224
+ Q,
225
+ U,
226
+ !1,
227
+ null,
228
+ "02197dc7",
229
+ null,
230
+ null
231
+ );
232
+ const Y = X.exports;
233
+ const Z = {
234
+ props: {
235
+ record: {
236
+ type: Object,
237
+ default: () => ({})
238
+ }
239
+ },
240
+ data() {
241
+ return {
242
+ selectedRowKeys: [],
243
+ fullscreen: !1,
244
+ confirmLoading: !1,
245
+ sysViewButtons: [
246
+ {
247
+ displayName: "\u786E\u5B9A",
248
+ functionName: "handleSubmit",
249
+ show: !0,
250
+ transKey: "gd.btn.confirm",
251
+ icon: "el-icon-document-checked",
252
+ name: "sysMsgSendPlan:edit"
253
+ }
254
+ ],
255
+ visible: !1,
256
+ width: "600px",
257
+ title: "",
258
+ columns: [
259
+ {
260
+ label: "\u64CD\u4F5C",
261
+ width: "100",
262
+ prop: "handle",
263
+ type: "slot",
264
+ slotType: "handle",
265
+ align: "left",
266
+ transKey: "gd.flow.handle"
267
+ },
268
+ {
269
+ label: "\u6D41\u7A0B\u540D\u79F0",
270
+ prop: "name",
271
+ type: "slot",
272
+ align: "left",
273
+ slotType: "name",
274
+ transKey: "gd.flow.processName"
275
+ },
276
+ {
277
+ title: "\u72B6\u6001",
278
+ prop: "stateCodes",
279
+ type: "slot",
280
+ slotType: "stateCodes",
281
+ align: "left",
282
+ transKey: "gd.flow.state"
283
+ }
284
+ ],
285
+ loadData: []
286
+ };
287
+ },
288
+ components: {
289
+ draggable: G
290
+ },
291
+ computed: {
292
+ ...y(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
293
+ },
294
+ methods: {
295
+ open(s) {
296
+ this.visible = !0, this.fullscreen = !1, this.confirmLoading = !0, this.$nextTick(() => {
297
+ setTimeout(() => {
298
+ this.refresh();
299
+ }, 0);
300
+ });
301
+ },
302
+ toggleFullscreen() {
303
+ this.fullscreen = !this.fullscreen;
304
+ },
305
+ refresh() {
306
+ x({
307
+ tableId: this.record.syscodegenid
308
+ }).then((s) => {
309
+ s.success && (this.loadData = s.data, this.confirmLoading = !1);
310
+ });
311
+ },
312
+ handleSubmit() {
313
+ this.$confirm(this.$i18nt("gd.https.saveContent", "\u662F\u5426\u786E\u8BA4\u4FDD\u5B58?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
314
+ confirmButtonText: this.$i18nt("gd.https.saveOk", "\u786E\u8BA4\u4FDD\u5B58"),
315
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
316
+ showClose: !1,
317
+ confirmButtonLoading: !1,
318
+ cancelButtonLoading: !1,
319
+ closeOnClickModal: !1,
320
+ type: "warning",
321
+ confirmButtonClass: "el-button--danger",
322
+ customClass: "custom-alert",
323
+ callback: () => {
324
+ },
325
+ beforeClose: (s, t, e) => {
326
+ this.sava(s, t, e);
327
+ }
328
+ });
329
+ },
330
+ sava(s, t, e) {
331
+ if (s !== "confirm") {
332
+ e();
333
+ return;
334
+ }
335
+ let a = [];
336
+ this.loadData.forEach((n, o) => {
337
+ let r = {
338
+ id: n.id,
339
+ seqencing: o + 1,
340
+ name: n.name
341
+ };
342
+ a.push(r);
343
+ });
344
+ let l = [], i = F(a).then((n) => n);
345
+ l.push(i), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(l).then((n) => {
346
+ t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, e();
347
+ const o = n.filter((r) => !r.success);
348
+ o.length === 0 ? (this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25") + o[0].message);
349
+ });
350
+ },
351
+ closed() {
352
+ this.visible = !1, this.loadData = [];
353
+ },
354
+ doEvent(s) {
355
+ let t = s.item.functionName;
356
+ this[t]();
357
+ },
358
+ dictSwitch(s, t) {
359
+ let e = this.$options.filters.dictData(t).filter((a) => a.code == s)[0];
360
+ return e != null && e.colour ? e.colour : null;
361
+ }
362
+ }
363
+ };
364
+ var tt = function() {
365
+ var t = this, e = t._self._c;
366
+ return e("div", [e("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: t.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: t.fullscreen, visible: t.visible, width: t.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(a) {
367
+ t.visible = a;
368
+ }, closed: t.closed } }, [e("gd-modal-title", { attrs: { slot: "title", title: t.$i18nt("gd.btn.sort"), fullscreen: t.fullscreen, buttons: t.sysViewButtons, confirmLoading: t.confirmLoading, showClose: !0 }, on: { changeEvent: t.doEvent }, slot: "title" }), e("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }], class: t.fullscreen ? "modal-bodyq" : "modal-body" }, [e("div", { staticClass: "title_body" }, [e("div", { staticClass: "title_head" }, [e("el-row", [e("el-col", { attrs: { span: 6 } }, [e("div", { staticClass: "title" }, [t._v(t._s(t.$i18nt("gd.flow.handle")))])]), e("el-col", { attrs: { span: 9 } }, [e("div", { staticClass: "title" }, [t._v(t._s(t.$i18nt("gd.flow.processName")))])]), e("el-col", { attrs: { span: 9 } }, [e("div", { staticClass: "title" }, [t._v(t._s(t.$i18nt("gd.flow.state")))])])], 1)], 1), e("draggable", t._b({ model: { value: t.loadData, callback: function(a) {
369
+ t.loadData = a;
370
+ }, expression: "loadData" } }, "draggable", { animation: 300, handle: ".drag-move" }, !1), [t._l(t.loadData, function(a) {
371
+ return [e("el-row", [e("el-col", { attrs: { span: 6 } }, [e("div", [e("a", { staticClass: "drag-move" }, [e("i", { staticClass: "el-icon-rank", staticStyle: { "font-size": "20px", cursor: "pointer" } })])])]), e("el-col", { attrs: { span: 9 } }, [e("div", { staticClass: "title" }, [t._v(t._s(a.name))])]), e("el-col", { attrs: { span: 9 } }, [e("div", { staticClass: "title" }, [t.dictSwitch(a.statecodes, "state_code") ? e("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: t.dictSwitch(a.statecodes, "state_code") } }, [t._v(" " + t._s(t._f("dictType")("state_code", a.statecodes)) + " ")]) : t._e()], 1)])], 1)];
372
+ })], 2)], 1)])], 1)], 1);
373
+ }, et = [], st = /* @__PURE__ */ h(
374
+ Z,
375
+ tt,
376
+ et,
377
+ !1,
378
+ null,
379
+ "c693adb5",
380
+ null,
381
+ null
382
+ );
383
+ const D = st.exports;
384
+ const at = {
385
+ props: {
386
+ modeType: {
387
+ type: String,
388
+ default: "process"
389
+ }
390
+ },
391
+ data() {
392
+ return {
393
+ scaleVal: 100,
394
+ permissionsBnt: !0,
395
+ record: null,
396
+ title: "\u4E1A\u52A1\u6D41\u7A0B",
397
+ visible: !1,
398
+ confirmLoading: !1,
399
+ list: [],
400
+ sysViewButtons: [
401
+ {
402
+ displayName: "\u6392\u5E8F",
403
+ functionName: "flowsSort",
404
+ show: !1,
405
+ transKey: "gd.btn.sort",
406
+ icon: "el-icon-rank"
407
+ },
408
+ {
409
+ displayName: "\u4E0A\u4E00\u6B65",
410
+ functionName: "previous",
411
+ show: !1,
412
+ transKey: "gd.btn.prev",
413
+ icon: "el-icon-d-arrow-left"
414
+ },
415
+ {
416
+ displayName: "\u4E0B\u4E00\u6B65",
417
+ functionName: "next",
418
+ show: !0,
419
+ transKey: "gd.btn.next",
420
+ icon: "el-icon-d-arrow-right"
421
+ },
422
+ {
423
+ displayName: "\u4FDD\u5B58",
424
+ functionName: "handleSubmit",
425
+ show: !1,
426
+ transKey: "gd.btn.save",
427
+ icon: "el-icon-document-checked"
428
+ }
429
+ ],
430
+ current: 0,
431
+ status: "success",
432
+ detail: null,
433
+ initialData: [],
434
+ fullscreen: !1,
435
+ width: "90%",
436
+ stateCodes: 0
437
+ };
438
+ },
439
+ components: {
440
+ Settings: Y,
441
+ FlowsSort: D
442
+ },
443
+ computed: {
444
+ prefixKey() {
445
+ const s = this.detail ? this.detail.id : f(8);
446
+ return S("swf", s);
447
+ },
448
+ bodyStyle() {
449
+ return {
450
+ background: this.current == 0 ? "#f5f6f6" : "#fff",
451
+ borderRadius: "10px"
452
+ };
453
+ }
454
+ },
455
+ methods: {
456
+ changeCurrent(s) {
457
+ this.current !== s && this.onChange(s);
458
+ },
459
+ plusAdd(s) {
460
+ let t = s == "-" ? this.scaleVal - 5 : this.scaleVal + 5;
461
+ this.scaleVal = t <= 50 ? 50 : t >= 150 ? 150 : t;
462
+ },
463
+ toggleFullscreen() {
464
+ this.fullscreen = !this.fullscreen;
465
+ },
466
+ flowsSort() {
467
+ this.$refs.flowsSort.open();
468
+ },
469
+ onChange(s) {
470
+ if (s == 1) {
471
+ this.next();
472
+ return;
473
+ }
474
+ this.previous();
475
+ },
476
+ open(s) {
477
+ this.fullscreen = !1, this.initialData = [], this.record = s;
478
+ let t = s ? "sysFlowProcess:edit" : "sysFlowProcess:add";
479
+ if (this.permissionsBnt = this.$hasPerm(t), this.sysViewButtons = this.sysViewButtons.map((e) => (e.displayName === "\u4FDD\u5B58" && (e.name = t), e)), this.visible = !0, this.scaleVal = 100, s) {
480
+ this.current = 1, this.getDetail();
481
+ return;
482
+ }
483
+ this.stateCodes = 0, this.current = 0, this.status = "process", this.init();
484
+ },
485
+ init() {
486
+ let s = [], t = b("start"), e = b("step"), a = b("end");
487
+ s.push(t), s.push(e), s.push(a), this.list = s, this.$nextTick(() => {
488
+ setTimeout(() => {
489
+ this.$refs.settings.init(null);
490
+ }, 0);
491
+ });
492
+ },
493
+ getDetail(s) {
494
+ this.confirmLoading = !0, P({
495
+ id: this.record
496
+ }).then((t) => {
497
+ if (t.success) {
498
+ let e = [], a = b("start"), l = {
499
+ name: t.data.name,
500
+ sysCodeGenId: t.data.syscodegenid,
501
+ description: t.data.description,
502
+ stateCodes: String(t.data.statecodes),
503
+ span: t.data.span,
504
+ code: t.data.code ? t.data.code : "",
505
+ langs: [],
506
+ transKey: t.data.transkey ? t.data.transkey : null
507
+ }, i = b("end");
508
+ e.push(a);
509
+ let n = t.data.configdata ? JSON.parse(t.data.configdata) : null;
510
+ n && (e = e.concat(n)), e.push(i), this.list = e, this.detail = t.data, this.stateCodes = this.modeType === "process" ? t.data.statecodes : 1, this.sbumitNext(l), this.getHasItem(t);
511
+ }
512
+ this.confirmLoading = !1;
513
+ });
514
+ },
515
+ sbumitNext(s) {
516
+ this.current = 1, this.list[0].data = s;
517
+ let t = ["\u4E0B\u4E00\u6B65"];
518
+ this.detail || t.push("\u6392\u5E8F"), this.stateCodes == 1 && t.push("\u4FDD\u5B58"), this.modeType !== "process" && t.push("\u6392\u5E8F"), this.sysViewButtons = this.sysViewButtons.filter((e, a) => (e.show = !t.includes(e.displayName), !0)), this.status = "success", this.$nextTick(() => {
519
+ setTimeout(() => {
520
+ this.$refs.flowsDesigner.init(this.list), this.$refs.settings.init(this.list[0].data);
521
+ }, 0);
522
+ });
523
+ },
524
+ handleSubmit() {
525
+ let s = this.$refs.flowsDesigner.list, t = s.length - 1, e = s.filter((i, n) => !(n == 0 || n == t));
526
+ if (e.length == 0) {
527
+ this.$message.error(this.$i18nt("gd.flow.perfectTip", "\u8BF7\u5B8C\u5584\u4FE1\u606F"));
528
+ return;
529
+ }
530
+ let a = [];
531
+ const l = (i) => (i = i.filter((n, o) => (n.type == "condition" && n.list.forEach((r) => {
532
+ r.type != "else" && (r.err = r.rule.length == 0, r.err && a.push(r)), r.list = l(r.list);
533
+ }), n.type == "step" && (n.err = n.list.length == 0, n.err && a.push(n), n.langs = [], n.list.forEach((r) => {
534
+ r.langs = [];
535
+ })), !0)), i);
536
+ if (l(e), a.length > 0) {
537
+ this.$message.error(this.$i18nt("gd.flow.nodeTip", "\u8BF7\u6839\u636E\u63D0\u793A\u5B8C\u6210\u6D41\u7A0B\u8282\u70B9\u8BBE\u7F6E"));
538
+ return;
539
+ }
540
+ this.record ? this.edit(e, s[0].data) : this.add(e, s[0].data);
541
+ },
542
+ add(s, t) {
543
+ this.confirmLoading = !0;
544
+ let e = {
545
+ statecodes: 0,
546
+ name: t.name,
547
+ syscodegenid: t.sysCodeGenId,
548
+ description: t.description,
549
+ span: t.span,
550
+ code: t.code,
551
+ configdata: JSON.stringify(s)
552
+ };
553
+ B(e).then((a) => {
554
+ if (a.success) {
555
+ this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.$emit("ok");
556
+ let l = this.$refs.flowsDesigner.delTransKeyList;
557
+ this.deltransKey(l), this.handleCancel(1);
558
+ } else
559
+ this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25") + a.message);
560
+ this.confirmLoading = !1;
561
+ });
562
+ },
563
+ edit(s, t) {
564
+ this.confirmLoading = !0;
565
+ let e = {
566
+ statecodes: t.stateCodes,
567
+ name: t.name,
568
+ span: t.span,
569
+ syscodegenid: t.sysCodeGenId,
570
+ description: t.description,
571
+ configdata: JSON.stringify(s),
572
+ code: t.code
573
+ };
574
+ $(Object.assign(this.detail, e)).then((a) => {
575
+ if (a.success) {
576
+ this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.$emit("ok");
577
+ let l = this.$refs.flowsDesigner.delTransKeyList;
578
+ this.deltransKey(l), this.handleCancel(2);
579
+ } else
580
+ this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25") + a.message);
581
+ this.confirmLoading = !1;
582
+ });
583
+ },
584
+ deltransKey(s) {
585
+ s.length != 0 && T({
586
+ name: s.join(",")
587
+ });
588
+ },
589
+ previous() {
590
+ let s = ["\u4E0A\u4E00\u6B65", "\u4FDD\u5B58"];
591
+ this.detail || s.push("\u6392\u5E8F"), this.stateCodes == 1 && s.push("\u4FDD\u5B58"), this.modeType !== "process" && s.push("\u6392\u5E8F"), this.sysViewButtons = this.sysViewButtons.filter((t, e) => (t.show = !s.includes(t.displayName), !0)), this.current = 0, this.list = this.$refs.flowsDesigner.list, this.$nextTick(() => {
592
+ setTimeout(() => {
593
+ this.$refs.settings.init(this.list[0].data);
594
+ }, 0);
595
+ });
596
+ },
597
+ next() {
598
+ this.$refs.settings.addSubmit();
599
+ },
600
+ async handleCancel(s) {
601
+ if (this.$refs.flowsDesigner.list, s !== 2 && s !== 1) {
602
+ let t = this.$refs.flowsDesigner.addTransKeyList;
603
+ this.deltransKey(t);
604
+ }
605
+ this.visible = !1, this.confirmLoading = !1, this.detail = null, await this.init(), setTimeout(() => {
606
+ this.$refs.flowsDesigner.init(this.list), this.previous();
607
+ }, 200);
608
+ },
609
+ getHasItem(s) {
610
+ this.initialData = this.hasItem(JSON.parse(s.data.configdata));
611
+ },
612
+ hasItem(s) {
613
+ let t = [];
614
+ const e = (a) => (a = a.filter((l, i) => (l.type == "condition" && l.list.forEach((n) => {
615
+ n.list = e(n.list);
616
+ }), l.type == "step" && (t = t.concat([l]), l.list.length > 0 && (t = t.concat(l.list))), !0)), a);
617
+ return e(s), t;
618
+ },
619
+ doEvent(s) {
620
+ let t = s.item.functionName;
621
+ this[t] && this[t]();
622
+ }
623
+ }
624
+ };
625
+ var it = function() {
626
+ var t = this, e = t._self._c;
627
+ return e("el-dialog", { ref: "dialog", class: t.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: t.fullscreen, visible: t.visible, width: t.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !1, "append-to-body": !0, top: "80px", "body-style": t.bodyStyle, "show-close": !1 }, on: { "update:visible": function(a) {
628
+ t.visible = a;
629
+ }, closed: t.handleCancel } }, [e("gd-modal-title", { attrs: { slot: "title", title: t.$i18nt("gd.flow.process.title", "\u4E1A\u52A1\u6D41\u7A0B"), fullscreen: t.fullscreen, buttons: t.sysViewButtons, confirmLoading: t.confirmLoading, showClose: !0, closed: "handleCancel" }, on: { changeEvent: t.doEvent, toggleFullscreen: t.toggleFullscreen }, slot: "title" }), e("div", { staticClass: "dsteps", staticStyle: { position: "absolute", left: "50%", top: "0px", transform: "translateX(-50%)", display: "flex", "justify-content": "center", "z-index": "12", width: "50%", height: "54px", "align-items": "center" } }, [e("el-steps", { attrs: { active: t.current, simple: "" }, on: { change: t.onChange } }, [e("el-step", { staticStyle: { cursor: "pointer" }, attrs: { title: t.$i18nt("gd.flow.basicSettings", "\u57FA\u7840\u8BBE\u7F6E"), status: t.status }, nativeOn: { click: function(a) {
630
+ return t.changeCurrent(0);
631
+ } } }), e("el-step", { staticStyle: { cursor: "pointer" }, attrs: { title: t.$i18nt("gd.flow.processDesign", "\u6D41\u7A0B\u8BBE\u8BA1") }, nativeOn: { click: function(a) {
632
+ return t.changeCurrent(1);
633
+ } } })], 1)], 1), e("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }], class: t.fullscreen ? "modal-bodyq" : "modal-body", staticStyle: { "overflow-x": "auto" } }, [e("div", { directives: [{ name: "show", rawName: "v-show", value: t.current == 1, expression: "current == 1" }], staticClass: "suo" }, [e("i", { staticClass: "el-icon-remove-outline", staticStyle: { "font-size": "22px", cursor: "pointer" }, on: { click: function(a) {
634
+ return t.plusAdd("-");
635
+ } } }), e("div", { staticClass: "bi" }, [e("a", [t._v(t._s(t.scaleVal) + "%")])]), e("i", { staticClass: "el-icon-circle-plus-outline", staticStyle: { "font-size": "22px", cursor: "pointer" }, on: { click: function(a) {
636
+ return t.plusAdd("+");
637
+ } } })]), e("Settings", { directives: [{ name: "show", rawName: "v-show", value: t.current == 0, expression: "current == 0" }], ref: "settings", attrs: { status: t.status, stateCodes: t.stateCodes, permissionsBnt: t.permissionsBnt }, on: { next: t.sbumitNext } }), e("gd-process-flow", { directives: [{ name: "show", rawName: "v-show", value: t.current == 1, expression: "current == 1" }], ref: "flowsDesigner", attrs: { stateCodes: t.stateCodes, permissionsBnt: t.permissionsBnt, scaleVal: t.scaleVal, prefixKey: t.prefixKey, operationStatus: t.record ? "edit" : "add" } })], 1), e("FlowsSort", { ref: "flowsSort", attrs: { record: t.detail } })], 1);
638
+ }, lt = [], nt = /* @__PURE__ */ h(
639
+ at,
640
+ it,
641
+ lt,
642
+ !1,
643
+ null,
644
+ "f5004115",
645
+ null,
646
+ null
647
+ );
648
+ const rt = nt.exports;
649
+ const ot = {
650
+ props: {
651
+ status: {
652
+ type: String,
653
+ default: "process"
654
+ },
655
+ stateCodes: {
656
+ type: [String, Number],
657
+ default: 0
658
+ },
659
+ permissionsBnt: {
660
+ type: Boolean,
661
+ default: !0
662
+ }
663
+ },
664
+ data() {
665
+ return {
666
+ tableNameData: [],
667
+ fetching: !1,
668
+ codeGenId: "",
669
+ disabled: !0,
670
+ beforeDisabled: !0,
671
+ fieldList: [],
672
+ beforefieldList: [],
673
+ userList: [],
674
+ show: !1,
675
+ datail: null,
676
+ rules: {
677
+ name: [
678
+ {
679
+ required: !0,
680
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
681
+ trigger: "change"
682
+ }
683
+ ],
684
+ sysCodeGenId: [
685
+ {
686
+ required: !0,
687
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
688
+ trigger: "change"
689
+ }
690
+ ],
691
+ code: [
692
+ {
693
+ required: !0,
694
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
695
+ trigger: "change"
696
+ }
697
+ ],
698
+ ranges: [
699
+ {
700
+ required: !0,
701
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
702
+ trigger: "change"
703
+ }
704
+ ],
705
+ firing: [
706
+ {
707
+ required: !0,
708
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
709
+ trigger: "change"
710
+ }
711
+ ],
712
+ isBackgroud: [
713
+ {
714
+ required: !0,
715
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
716
+ trigger: "change"
717
+ }
718
+ ],
719
+ stateCodes: [
720
+ {
721
+ required: !0,
722
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
723
+ trigger: "change"
724
+ }
725
+ ]
726
+ },
727
+ ruleFormData: {
728
+ name: "",
729
+ transKey: null,
730
+ langs: "[]",
731
+ isBackgroud: [],
732
+ firing: []
733
+ },
734
+ confirmLoading: !1
735
+ };
736
+ },
737
+ computed: {
738
+ disableds() {
739
+ return this.permissionsBnt ? this.stateCodes == 1 : !0;
740
+ },
741
+ disabledd() {
742
+ return this.permissionsBnt ? this.status == "success" ? this.datail ? !!this.datail.code : !1 : this.stateCodes == 1 : !0;
743
+ },
744
+ ...y(["screenHeight", "labelPosition", "formMode"])
745
+ },
746
+ components: {
747
+ FlowsDesignerGenName: H
748
+ },
749
+ methods: {
750
+ lookupSeled(s) {
751
+ let t = [];
752
+ s.langs.forEach((e) => {
753
+ t.push({
754
+ name: e.languageName,
755
+ val: e.description,
756
+ code: e.languageCode
757
+ });
758
+ }), this.ruleFormData = {
759
+ name: s.defaultText,
760
+ langs: JSON.stringify(t)
761
+ };
762
+ },
763
+ selGenName(s) {
764
+ console.log(this.fieldList), console.log(this.beforefieldList), s == "afterChange" ? this.$refs.codeGenName.open(this.fieldList, s) : s == "beforeChange" && this.$refs.codeGenName.open(this.beforefieldList, s);
765
+ },
766
+ sbumitGenName(s, t) {
767
+ t == "afterChange" ? this.fieldList = s : t == "beforeChange" && (this.beforefieldList = s);
768
+ },
769
+ addSubmit() {
770
+ this.$refs.ruleForm.validate((s) => {
771
+ s && this.$emit(
772
+ "next",
773
+ Object.assign(
774
+ {
775
+ ...this.ruleFormData
776
+ },
777
+ {
778
+ updateFields: this.ruleFormData.firing.includes("5") ? this.beforefieldList : [],
779
+ updateFieldsAfter: this.ruleFormData.firing.includes("2") ? this.fieldList : [],
780
+ langs: JSON.parse(this.ruleFormData.langs)
781
+ }
782
+ )
783
+ );
784
+ });
785
+ },
786
+ init(s) {
787
+ this.datail = s, this.fieldList = [], this.beforefieldList = [], this.show = !!(s && s.stateCodes !== void 0);
788
+ let t = s ? s.langs : [];
789
+ this.$nextTick(() => {
790
+ setTimeout(() => {
791
+ this.fieldList = s ? s.updateFieldsAfter : [], this.beforefieldList = s ? s.updateFields : [];
792
+ let e = {
793
+ name: s ? s.name : "",
794
+ sysCodeGenId: s ? s.sysCodeGenId : "",
795
+ ranges: s ? s.ranges : "",
796
+ isBackgroud: s ? s.isBackgroud : [],
797
+ firing: s ? s.firing : [],
798
+ code: s ? s.code : f(8),
799
+ transKey: s ? s.transKey : null,
800
+ langs: JSON.stringify(t)
801
+ };
802
+ s && s.stateCodes !== void 0 && (e = Object.assign(e, {
803
+ stateCodes: s.stateCodes
804
+ }), this.codeGenId = s.sysCodeGenId), this.calculation(e), this.ruleFormData = e, this.$refs.ruleForm.resetFields(), this.$refs.gdTranslation;
805
+ }, 0);
806
+ });
807
+ },
808
+ searchTable(s) {
809
+ this.fetching = !0, this.tableNameData = [], J({
810
+ busName: s
811
+ }).then((t) => {
812
+ this.tableNameData = [...t.data], this.fetching = !1;
813
+ });
814
+ },
815
+ firingChange(s) {
816
+ let t = this.ruleFormData;
817
+ t.firing = s, this.calculation(t);
818
+ },
819
+ selTable(s) {
820
+ let t = this.ruleFormData;
821
+ t.sysCodeGenId = s.id, this.codeGenId = s.id, this.calculation(t);
822
+ },
823
+ calculation(s) {
824
+ let t = s.firing !== void 0 ? s.firing : [], e = s.sysCodeGenId !== void 0 && s.sysCodeGenId != "";
825
+ this.disabled = !(e && t.includes("2")), this.beforeDisabled = !(e && t.includes("5"));
826
+ },
827
+ getDictionary(s) {
828
+ return this.$options.filters.dictData(s);
829
+ }
830
+ },
831
+ created() {
832
+ this.searchTable("");
833
+ let s = this.$options.filters.dictData("data_scope_type");
834
+ this.userList = s.filter((t) => t.code != 5);
835
+ }
836
+ };
837
+ var dt = function() {
838
+ var t = this, e = t._self._c;
839
+ return e("div", { staticClass: "setting" }, [e("el-form", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }], ref: "ruleForm", staticClass: "setting-form", attrs: { "label-width": "100px", "label-position": "top", model: t.ruleFormData, rules: t.rules }, nativeOn: { submit: function(a) {
840
+ a.preventDefault();
841
+ } } }, [e("el-row", { attrs: { gutter: 24 } }, [e("el-col", { staticStyle: { display: "none" }, attrs: { span: 24 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: "transKey" } }, [e("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleFormData.transKey, callback: function(a) {
842
+ t.$set(t.ruleFormData, "transKey", a);
843
+ }, expression: "ruleFormData.transKey" } })], 1), e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: "langs" } }, [e("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleFormData.langs, callback: function(a) {
844
+ t.$set(t.ruleFormData, "langs", a);
845
+ }, expression: "ruleFormData.langs" } })], 1)], 1), e("el-col", { attrs: { span: 12 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.work.name", "\u540D\u79F0"), prop: "name" } }, [e("el-input", { directives: [{ name: "show", rawName: "v-show", value: !t.datail || t.datail && !t.datail.transKey, expression: "!datail || (datail && !datail.transKey)" }], attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleFormData.name, callback: function(a) {
846
+ t.$set(t.ruleFormData, "name", a);
847
+ }, expression: "ruleFormData.name" } })], 1)], 1), e("el-col", { attrs: { span: 12 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.work.table", "\u8868"), prop: "sysCodeGenId" } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select"), disabled: t.status == "success", filterable: "", remote: "", "reserve-keyword": "", "remote-method": t.searchTable, loading: t.fetching }, model: { value: t.ruleFormData.sysCodeGenId, callback: function(a) {
848
+ t.$set(t.ruleFormData, "sysCodeGenId", a);
849
+ }, expression: "ruleFormData.sysCodeGenId" } }, t._l(t.tableNameData, function(a, l) {
850
+ return e("el-option", { key: l, attrs: { value: a.id, label: t.$i18nt(`Dynamics.${a.transkey}`, a.busname) }, nativeOn: { click: function(i) {
851
+ return t.selTable(a);
852
+ } } }, [e("span", [t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`, a.busname)) + " " + t._s(a.tablename))])]);
853
+ }), 1)], 1)], 1)], 1), e("el-row", { attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 12 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.work.range"), prop: "ranges" } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { filterable: "", placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), clearable: "", disabled: t.disableds }, model: { value: t.ruleFormData.ranges, callback: function(a) {
854
+ t.$set(t.ruleFormData, "ranges", a);
855
+ }, expression: "ruleFormData.ranges" } }, t._l(t.userList, function(a, l) {
856
+ return e("el-option", { key: a.code, attrs: { value: a.code, label: t.$i18nt(`Dynamics.${a.transkey}`, a.name) } }, [e("span", [t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`, a.name)))])]);
857
+ }), 1)], 1)], 1), e("el-col", { attrs: { span: 12 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.work.run", "\u8FD0\u884C"), prop: "isBackgroud" } }, [e("el-checkbox-group", { attrs: { disabled: t.disableds }, model: { value: t.ruleFormData.isBackgroud, callback: function(a) {
858
+ t.$set(t.ruleFormData, "isBackgroud", a);
859
+ }, expression: "ruleFormData.isBackgroud" } }, [e("el-row", { attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 24 } }, [e("el-checkbox", { attrs: { label: "1" } }, [t._v(" " + t._s(t.$i18nt("gd.flow.work.backgrounder", "\u5728\u540E\u53F0\u8FD0\u884C\u6B64\u5DE5\u4F5C\u6D41")) + " ")])], 1)], 1)], 1)], 1)], 1)], 1), e("el-row", { attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 12 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.approval.code", "\u7F16\u7801"), prop: "code" } }, [e("el-input", { staticStyle: { width: "100%" }, attrs: { disabled: t.disabledd, placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleFormData.code, callback: function(a) {
860
+ t.$set(t.ruleFormData, "code", a);
861
+ }, expression: "ruleFormData.code" } })], 1)], 1), e("el-col", { attrs: { span: 12 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.work.startTime", "\u542F\u52A8\u65F6\u95F4"), prop: "firing" } }, [e("el-checkbox-group", { attrs: { disabled: t.disableds }, on: { change: t.firingChange }, model: { value: t.ruleFormData.firing, callback: function(a) {
862
+ t.$set(t.ruleFormData, "firing", a);
863
+ }, expression: "ruleFormData.firing" } }, [e("el-row", { attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 24 } }, [e("el-checkbox", { attrs: { label: "4" } }, [t._v(t._s(t.$i18nt("gd.flow.work.beforeCreation", "\u521B\u5EFA\u8BB0\u5F55\u524D")))])], 1), e("el-col", { attrs: { span: 24 } }, [e("el-checkbox", { attrs: { label: "1" } }, [t._v(t._s(t.$i18nt("gd.flow.work.afterCreation", "\u521B\u5EFA\u8BB0\u5F55\u540E")))])], 1), e("el-col", { attrs: { span: 24 } }, [e("el-checkbox", { attrs: { label: "5", disabled: t.disableds } }, [t._v(" " + t._s(t.$i18nt("gd.flow.work.beforeChange", "\u8BB0\u5F55\u5B57\u6BB5\u66F4\u6539\u524D")) + " "), e("el-button", { staticClass: "sel", attrs: { type: t.disableds || t.beforeDisabled ? "info" : "primary", size: "mini", disabled: t.disableds ? !0 : t.beforeDisabled }, on: { click: function(a) {
864
+ return t.selGenName("beforeChange");
865
+ } } }, [t._v(" " + t._s(t.$i18nt("gd.btn.choice", "\u9009\u62E9")) + " ")])], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("el-checkbox", { attrs: { label: "2", disabled: t.disableds } }, [t._v(" " + t._s(t.$i18nt("gd.flow.work.afterChange", "\u8BB0\u5F55\u5B57\u6BB5\u66F4\u6539\u540E")) + " "), e("el-button", { staticClass: "sel", attrs: { type: t.disableds || t.disabled ? "info" : "primary", size: "mini", disabled: t.disableds ? !0 : t.disabled }, on: { click: function(a) {
866
+ return t.selGenName("afterChange");
867
+ } } }, [t._v(" " + t._s(t.$i18nt("gd.btn.choice", "\u9009\u62E9")) + " ")])], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("el-checkbox", { attrs: { label: "6", disabled: t.disableds } }, [t._v(" " + t._s(t.$i18nt("gd.flow.work.beforeDeletion", "\u5220\u9664\u8BB0\u5F55\u524D")) + " ")])], 1), e("el-col", { attrs: { span: 24 } }, [e("el-checkbox", { attrs: { label: "3", disabled: t.disableds } }, [t._v(" " + t._s(t.$i18nt("gd.flow.work.afterDeletion", "\u5220\u9664\u8BB0\u5F55\u540E")) + " ")])], 1)], 1)], 1)], 1)], 1), t.show ? e("el-col", { attrs: { span: 12 } }, [e("el-form-item", { staticStyle: { "margin-bottom": "0px" }, attrs: { label: t.$i18nt("gd.flow.state", "\u72B6\u6001"), prop: "stateCodes" } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: t.disableds }, model: { value: t.ruleFormData.stateCodes, callback: function(a) {
868
+ t.$set(t.ruleFormData, "stateCodes", a);
869
+ }, expression: "ruleFormData.stateCodes" } }, t._l(t.getDictionary("state_code"), function(a, l) {
870
+ return e("el-option", { key: a.code, attrs: { value: a.code, label: t.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
871
+ }), 1)], 1)], 1) : t._e()], 1)], 1), e("FlowsDesignerGenName", { ref: "codeGenName", attrs: { codeGenId: t.codeGenId }, on: { ok: t.sbumitGenName } })], 1);
872
+ }, ct = [], ut = /* @__PURE__ */ h(
873
+ ot,
874
+ dt,
875
+ ct,
876
+ !1,
877
+ null,
878
+ "22159b62",
879
+ null,
880
+ null
881
+ );
882
+ const gt = ut.exports;
883
+ const pt = {
884
+ props: {
885
+ modeType: {
886
+ type: String,
887
+ default: "work"
888
+ }
889
+ },
890
+ data() {
891
+ return {
892
+ scaleVal: 100,
893
+ permissionsBnt: !0,
894
+ record: null,
895
+ title: "\u5DE5\u4F5C\u6D41",
896
+ visible: !1,
897
+ confirmLoading: !1,
898
+ list: [],
899
+ sysViewButtons: [
900
+ {
901
+ displayName: "\u4E0A\u4E00\u6B65",
902
+ functionName: "previous",
903
+ show: !1,
904
+ transKey: "gd.btn.prev",
905
+ icon: "el-icon-d-arrow-left"
906
+ },
907
+ {
908
+ displayName: "\u4E0B\u4E00\u6B65",
909
+ functionName: "next",
910
+ show: !0,
911
+ transKey: "gd.btn.next",
912
+ icon: "el-icon-d-arrow-right"
913
+ },
914
+ {
915
+ displayName: "\u4FDD\u5B58",
916
+ functionName: "handleSubmit",
917
+ show: !1,
918
+ transKey: "gd.btn.save",
919
+ icon: "el-icon-document-checked"
920
+ }
921
+ ],
922
+ current: -1,
923
+ status: "success",
924
+ detail: null,
925
+ fullscreen: !1,
926
+ width: "90%",
927
+ stateCodes: 0
928
+ };
929
+ },
930
+ components: {
931
+ Settings: gt
932
+ },
933
+ computed: {
934
+ modalStyle() {
935
+ return this.fullscreen ? {
936
+ width: "100%",
937
+ dialogStyle: {
938
+ top: "0px"
939
+ }
940
+ } : {
941
+ width: this.width,
942
+ dialogStyle: {
943
+ top: "40px"
944
+ }
945
+ };
946
+ },
947
+ bodyStyle() {
948
+ return {
949
+ background: this.current == 0 ? "#f5f6f6" : "#fff",
950
+ borderRadius: "10px"
951
+ };
952
+ }
953
+ },
954
+ methods: {
955
+ changeCurrent(s) {
956
+ this.current !== s && this.onChange(s);
957
+ },
958
+ plusAdd(s) {
959
+ let t = s == "-" ? this.scaleVal - 5 : this.scaleVal + 5;
960
+ this.scaleVal = t <= 50 ? 50 : t >= 150 ? 150 : t;
961
+ },
962
+ toggleFullscreen() {
963
+ this.fullscreen = !this.fullscreen;
964
+ },
965
+ onChange(s) {
966
+ if (s == 1) {
967
+ this.next();
968
+ return;
969
+ }
970
+ this.previous();
971
+ },
972
+ open(s) {
973
+ this.fullscreen = !1, this.record = s, this.visible = !0;
974
+ let t = s ? "sysFlowWork:edit" : "sysFlowWork:add";
975
+ if (this.permissionsBnt = this.$hasPerm(t), this.sysViewButtons = this.sysViewButtons.map((e) => (e.displayName === "\u4FDD\u5B58" && (e.name = t), e)), s) {
976
+ this.current = 1, this.getDetail();
977
+ return;
978
+ }
979
+ this.stateCodes = 0, this.current = 0, this.status = "process", this.init();
980
+ },
981
+ init() {
982
+ let s = [], t = m("start"), e = m("end");
983
+ s.push(t), s.push(e), this.list = s, this.$nextTick(() => {
984
+ setTimeout(() => {
985
+ this.$refs.settings.init(null);
986
+ }, 0);
987
+ });
988
+ },
989
+ getDetail(s) {
990
+ this.confirmLoading = !0, C({
991
+ id: this.record
992
+ }).then((t) => {
993
+ var e, a;
994
+ if (t.success) {
995
+ let l = [], i = m("start"), n = t.data.data.updatefields != "" ? t.data.data.updatefields.split(",") : [], o = ((e = t.data.data) == null ? void 0 : e.updatefieldsafter) && ((a = t.data.data) == null ? void 0 : a.updatefieldsafter) != "" ? t.data.data.updatefieldsafter.split(",") : [];
996
+ n = n.map((g) => Number(g)), o = o.map((g) => Number(g));
997
+ let r = {
998
+ name: t.data.data.name,
999
+ sysCodeGenId: t.data.data.syscodegenid,
1000
+ ranges: t.data.data.ranges ? String(t.data.data.ranges) : "",
1001
+ stateCodes: String(t.data.data.statecodes),
1002
+ isBackgroud: t.data.data.isbackgroud ? String(t.data.data.isbackgroud).split(",") : [],
1003
+ firing: t.data.data.firing ? String(t.data.data.firing).split(",") : [],
1004
+ updateFields: n,
1005
+ updateFieldsAfter: o,
1006
+ code: t.data.data.code ? t.data.data.code : "",
1007
+ langs: [],
1008
+ transKey: t.data.data.transkey ? t.data.data.transkey : null
1009
+ }, c = m("end");
1010
+ l.push(i), l = l.concat(t.data.list), l.push(c), this.list = l, this.detail = t.data, this.stateCodes = this.modeType === "work" ? t.data.data.statecodes : 1, this.sbumitNext(r);
1011
+ }
1012
+ this.confirmLoading = !1;
1013
+ });
1014
+ },
1015
+ sbumitNext(s) {
1016
+ this.current = 1, this.list[0].data = s, this.sysViewButtons = this.sysViewButtons.filter((t, e) => (t.show = e != 1, this.stateCodes == 1 && e === 2 && (t.show = !1), !0)), this.status = "success", this.$nextTick(() => {
1017
+ setTimeout(() => {
1018
+ this.$refs.flowsDesigner.init(this.list), this.$refs.settings.init(this.list[0].data);
1019
+ }, 0);
1020
+ });
1021
+ },
1022
+ handleSubmit() {
1023
+ let s = this.$refs.flowsDesigner.list, t = s.length - 1, e = s.filter((o, r) => !(r == 0 || r == t));
1024
+ if (e.length == 0) {
1025
+ this.$message.error(this.$i18nt("gd.flow.perfectTip"));
1026
+ return;
1027
+ }
1028
+ if (!this.isChecked(e[0].list)) {
1029
+ this.$message.error(this.$i18nt("gd.flow.perfectTip"));
1030
+ return;
1031
+ }
1032
+ let a = [];
1033
+ const l = (o) => (o = o.filter((r, c) => (r.list !== void 0 && r.list && r.list.length > 0 && (r.list = l(r.list)), r.type == "condition" && r.list.forEach((g) => {
1034
+ g.type != "else" && (g.err = g.fieldwheres.length == 0, g.err && a.push(g)), g.list = l(g.list);
1035
+ }), r.type == "step" && (r.err = r.list.length == 0, r.err && a.push(r)), !0)), o);
1036
+ l(e[0].list);
1037
+ let i = s[0].data;
1038
+ typeof i.isBackgroud != "string" && (i.isBackgroud = i.isBackgroud.join(","), i.firing = i.firing.join(","), i.updateFields = i.updateFields.join(","), i.updateFieldsAfter = i.updateFieldsAfter.join(","));
1039
+ let n = /* @__PURE__ */ new Map();
1040
+ for (let o in i)
1041
+ n.set(o.toLowerCase(), i[o]);
1042
+ if (Object.fromEntries(n), e[0], a.length > 0) {
1043
+ this.$message.error(this.$i18nt("gd.flow.nodeTip"));
1044
+ return;
1045
+ }
1046
+ this.record ? this.edit(Object.fromEntries(n), e[0]) : this.add(Object.fromEntries(n), e[0]);
1047
+ },
1048
+ add(s, t) {
1049
+ this.confirmLoading = !0, s.stateCodes = 0, N({
1050
+ data: s,
1051
+ list: t
1052
+ }).then((e) => {
1053
+ e.success ? (this.$message.success(this.$i18nt("gd.https.addSucc")), this.$emit("ok"), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.addFail") + e.message), this.confirmLoading = !1;
1054
+ });
1055
+ },
1056
+ edit(s, t) {
1057
+ this.confirmLoading = !0, k({
1058
+ data: Object.assign(this.detail.data, s),
1059
+ list: t
1060
+ }).then((e) => {
1061
+ e.success ? (this.$message.success(this.$i18nt("gd.https.editSucc")), this.$emit("ok"), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.editFail") + e.message), this.confirmLoading = !1;
1062
+ });
1063
+ },
1064
+ isChecked(s) {
1065
+ return s.every((t, e, a) => t.list.length > 0);
1066
+ },
1067
+ previous() {
1068
+ this.sysViewButtons = this.sysViewButtons.filter((s, t) => (s.show = t == 1, this.stateCodes == 1 && t === 2 && (s.show = !1), !0)), this.current = 0, this.list = this.$refs.flowsDesigner.list, this.$nextTick(() => {
1069
+ setTimeout(() => {
1070
+ this.$refs.settings.init(this.list[0].data);
1071
+ }, 0);
1072
+ });
1073
+ },
1074
+ next() {
1075
+ this.$refs.settings.addSubmit();
1076
+ },
1077
+ async handleCancel() {
1078
+ this.visible = !1, this.detail = null, await this.init(), setTimeout(() => {
1079
+ this.$refs.flowsDesigner.init(this.list), this.previous();
1080
+ }, 200);
1081
+ },
1082
+ doEvent(s) {
1083
+ let t = s.item.functionName;
1084
+ this[t] && this[t]();
1085
+ }
1086
+ }
1087
+ };
1088
+ var ht = function() {
1089
+ var t = this, e = t._self._c;
1090
+ return e("el-dialog", { class: t.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: t.fullscreen, visible: t.visible, width: t.modalStyle.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !1, "append-to-body": !0, top: "80px", "body-style": t.bodyStyle, "show-close": !1 }, on: { "update:visible": function(a) {
1091
+ t.visible = a;
1092
+ }, closed: t.handleCancel } }, [e("gd-modal-title", { attrs: { slot: "title", title: t.$i18nt("gd.flow.work.title", "\u5DE5\u4F5C\u6D41"), fullscreen: t.fullscreen, buttons: t.sysViewButtons, confirmLoading: t.confirmLoading, closed: "handleCancel", showClose: !0 }, on: { changeEvent: t.doEvent, toggleFullscreen: t.toggleFullscreen }, slot: "title" }), e("div", { staticClass: "dsteps", staticStyle: { position: "absolute", left: "50%", top: "0px", transform: "translateX(-50%)", display: "flex", "justify-content": "center", "z-index": "12", width: "50%", height: "54px", "align-items": "center" } }, [e("el-steps", { attrs: { active: t.current, simple: "" }, on: { change: t.onChange } }, [e("el-step", { staticStyle: { cursor: "pointer" }, attrs: { title: t.$i18nt("gd.flow.basicSettings", "\u57FA\u7840\u8BBE\u7F6E"), status: t.status }, nativeOn: { click: function(a) {
1093
+ return t.changeCurrent(0);
1094
+ } } }), e("el-step", { staticStyle: { cursor: "pointer" }, attrs: { title: t.$i18nt("gd.flow.processDesign", "\u6D41\u7A0B\u8BBE\u8BA1") }, nativeOn: { click: function(a) {
1095
+ return t.changeCurrent(1);
1096
+ } } })], 1)], 1), e("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }], class: t.fullscreen ? "modal-bodyq" : "modal-body", staticStyle: { "overflow-x": "auto" } }, [e("div", { directives: [{ name: "show", rawName: "v-show", value: t.current == 1, expression: "current == 1" }], staticClass: "suo" }, [e("i", { staticClass: "el-icon-remove-outline", staticStyle: { "font-size": "22px", cursor: "pointer" }, on: { click: function(a) {
1097
+ return t.plusAdd("-");
1098
+ } } }), e("div", { staticClass: "bi" }, [e("a", [t._v(t._s(t.scaleVal) + "%")])]), e("i", { staticClass: "el-icon-circle-plus-outline", staticStyle: { "font-size": "22px", cursor: "pointer" }, on: { click: function(a) {
1099
+ return t.plusAdd("+");
1100
+ } } })]), e("Settings", { directives: [{ name: "show", rawName: "v-show", value: t.current == 0, expression: "current == 0" }], ref: "settings", attrs: { status: t.status, stateCodes: t.stateCodes, permissionsBnt: t.permissionsBnt }, on: { next: t.sbumitNext } }), e("gd-work-flow", { directives: [{ name: "show", rawName: "v-show", value: t.current == 1, expression: "current == 1" }], ref: "flowsDesigner", attrs: { stateCodes: t.stateCodes, permissionsBnt: t.permissionsBnt, scaleVal: t.scaleVal } })], 1)], 1);
1101
+ }, mt = [], ft = /* @__PURE__ */ h(
1102
+ pt,
1103
+ ht,
1104
+ mt,
1105
+ !1,
1106
+ null,
1107
+ "c7521c82",
1108
+ null,
1109
+ null
1110
+ );
1111
+ const yt = ft.exports;
1112
+ const bt = {
1113
+ props: {
1114
+ status: {
1115
+ type: String,
1116
+ default: "process"
1117
+ },
1118
+ stateCodes: {
1119
+ type: [String, Number],
1120
+ default: 0
1121
+ },
1122
+ permissionsBnt: {
1123
+ type: Boolean,
1124
+ default: !0
1125
+ },
1126
+ startCategory: {
1127
+ type: String,
1128
+ default: ""
1129
+ }
1130
+ },
1131
+ data() {
1132
+ return {
1133
+ state: !1,
1134
+ tableNameData: [],
1135
+ fetching: !1,
1136
+ show: !1,
1137
+ msgList: [],
1138
+ msgListCC: [],
1139
+ msgListPress: [],
1140
+ msgListBack: [],
1141
+ msgListRject: [],
1142
+ msgListEnd: [],
1143
+ msgListTrans: [],
1144
+ msgListReturn: [],
1145
+ msgListApproval: [],
1146
+ msgListAutomatic: [],
1147
+ fkEntityName: "Msg_MessagetemPlate",
1148
+ type: 1,
1149
+ datail: null,
1150
+ showHistory: !1,
1151
+ textReturn: !1,
1152
+ textSgin: !1,
1153
+ isReturnMsg: !1,
1154
+ isRejectMsg: !1,
1155
+ ruleFormData: {
1156
+ name: ""
1157
+ },
1158
+ rules: {
1159
+ name: [
1160
+ {
1161
+ required: !0,
1162
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
1163
+ trigger: "change"
1164
+ }
1165
+ ],
1166
+ tableId: [
1167
+ {
1168
+ required: !0,
1169
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
1170
+ trigger: "change"
1171
+ }
1172
+ ],
1173
+ category: [
1174
+ {
1175
+ required: !0,
1176
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
1177
+ trigger: "change"
1178
+ }
1179
+ ],
1180
+ autoApprovalType: [
1181
+ {
1182
+ required: !0,
1183
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
1184
+ trigger: "change"
1185
+ }
1186
+ ],
1187
+ enCode: [
1188
+ {
1189
+ required: !0,
1190
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
1191
+ trigger: "change"
1192
+ }
1193
+ ],
1194
+ stateCodes: [
1195
+ {
1196
+ required: !0,
1197
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
1198
+ trigger: "change"
1199
+ }
1200
+ ]
1201
+ },
1202
+ templateList: null,
1203
+ msgType: null,
1204
+ list: [
1205
+ {
1206
+ type: "",
1207
+ tempid: "",
1208
+ msgList: []
1209
+ }
1210
+ ],
1211
+ msgcclist: [
1212
+ {
1213
+ type: "",
1214
+ tempid: "",
1215
+ msgList: []
1216
+ }
1217
+ ],
1218
+ msguplist: [
1219
+ {
1220
+ type: "",
1221
+ tempid: "",
1222
+ msgList: []
1223
+ }
1224
+ ],
1225
+ msgrvlist: [
1226
+ {
1227
+ type: "",
1228
+ tempid: "",
1229
+ msgList: []
1230
+ }
1231
+ ],
1232
+ msgrjlist: [
1233
+ {
1234
+ type: "",
1235
+ tempid: "",
1236
+ msgList: []
1237
+ }
1238
+ ],
1239
+ msgtrlist: [
1240
+ {
1241
+ type: "",
1242
+ tempid: "",
1243
+ msgList: []
1244
+ }
1245
+ ],
1246
+ msgaslist: [
1247
+ {
1248
+ type: "",
1249
+ tempid: "",
1250
+ msgList: []
1251
+ }
1252
+ ],
1253
+ msgrtlist: [
1254
+ {
1255
+ type: "",
1256
+ tempid: "",
1257
+ msgList: []
1258
+ }
1259
+ ],
1260
+ msgrtalist: [
1261
+ {
1262
+ type: "",
1263
+ tempid: "",
1264
+ msgList: []
1265
+ }
1266
+ ],
1267
+ msgaalist: [
1268
+ {
1269
+ type: "",
1270
+ tempid: "",
1271
+ msgList: []
1272
+ }
1273
+ ]
1274
+ };
1275
+ },
1276
+ computed: {
1277
+ categoryDisableds() {
1278
+ let s = this.getDictionary("table_flows_type").filter((t) => t.code == this.startCategory)[0];
1279
+ return s === void 0 || s.statecodes == 1 ? "" : s.code;
1280
+ },
1281
+ dictList() {
1282
+ return this.getDictionary("table_flows_type").filter((t) => t.statecodes == 1 || t.code == this.categoryDisableds);
1283
+ },
1284
+ disableds() {
1285
+ return this.permissionsBnt ? this.stateCodes == 1 : !0;
1286
+ },
1287
+ getSendType() {
1288
+ let s = [], t = [];
1289
+ return this.getDictionary("SendType").map((a) => (a.disabled = a.statecodes != 1, a.disabled ? t.push(a) : s.push(a), a)), s.concat(t);
1290
+ },
1291
+ ...y(["screenHeight", "labelPosition", "formMode"])
1292
+ },
1293
+ methods: {
1294
+ onChange(s) {
1295
+ this.isReturnMsg = s.target.checked;
1296
+ },
1297
+ onChange1(s) {
1298
+ this.isRejectMsg = s.target.checked;
1299
+ },
1300
+ lookupSeled(s) {
1301
+ this.type == 1 ? this.msgList = s.fkData : this.type == 2 ? this.msgListCC = s.fkData : this.type == 3 ? this.msgListPress = s.fkData : this.type == 4 ? this.msgListBack = s.fkData : this.type == 5 ? this.msgListRject = s.fkData : this.type == 6 ? this.msgListTrans = s.fkData : this.type == 7 ? this.msgListEnd = s.fkData : this.type == 8 ? this.msgListReturn = s.fkData : this.type == 9 ? this.msgListApproval = s.fkData : this.type == 10 && (this.msgListAutomatic = s.fkData);
1302
+ },
1303
+ async lookup(s, t) {
1304
+ this.type = s;
1305
+ let e = t, a = {
1306
+ fkEntityName: this.fkEntityName,
1307
+ effectType: "fk",
1308
+ options: {},
1309
+ val: e
1310
+ };
1311
+ this.$refs.engineSearch.open(a);
1312
+ },
1313
+ addSubmit() {
1314
+ this.$refs.ruleForm.validate((s) => {
1315
+ if (s) {
1316
+ const t = this.list.map((d) => {
1317
+ const { msgList: p, ...u } = d;
1318
+ return u;
1319
+ }), e = this.msgcclist.map((d) => {
1320
+ const { msgList: p, ...u } = d;
1321
+ return u;
1322
+ }), a = this.msguplist.map((d) => {
1323
+ const { msgList: p, ...u } = d;
1324
+ return u;
1325
+ }), l = this.msgrvlist.map((d) => {
1326
+ const { msgList: p, ...u } = d;
1327
+ return u;
1328
+ }), i = this.msgrjlist.map((d) => {
1329
+ const { msgList: p, ...u } = d;
1330
+ return u;
1331
+ }), n = this.msgtrlist.map((d) => {
1332
+ const { msgList: p, ...u } = d;
1333
+ return u;
1334
+ }), o = this.msgaslist.map((d) => {
1335
+ const { msgList: p, ...u } = d;
1336
+ return u;
1337
+ }), r = this.msgrtlist.map((d) => {
1338
+ const { msgList: p, ...u } = d;
1339
+ return u;
1340
+ }), c = this.msgrtalist.map((d) => {
1341
+ const { msgList: p, ...u } = d;
1342
+ return u;
1343
+ }), g = this.msgaalist.map((d) => {
1344
+ const { msgList: p, ...u } = d;
1345
+ return u;
1346
+ });
1347
+ this.$emit(
1348
+ "next",
1349
+ Object.assign(
1350
+ {
1351
+ ...this.ruleFormData
1352
+ },
1353
+ {
1354
+ langs: JSON.parse(this.ruleFormData.langs)
1355
+ },
1356
+ {
1357
+ isRejectMsg: this.isRejectMsg == !0 ? 1 : 0
1358
+ },
1359
+ {
1360
+ isReturnMsg: this.isReturnMsg == !0 ? 1 : 0
1361
+ },
1362
+ {
1363
+ msg_MessagetemPlateId: JSON.stringify(t)
1364
+ },
1365
+ {
1366
+ msg_MessagetemPlateId_CC: JSON.stringify(e)
1367
+ },
1368
+ {
1369
+ msg_MessagetemPlateId_UP: JSON.stringify(a)
1370
+ },
1371
+ {
1372
+ msg_MessagetemPlateId_RV: JSON.stringify(l)
1373
+ },
1374
+ {
1375
+ msg_MessagetemPlateId_RJ: JSON.stringify(i)
1376
+ },
1377
+ {
1378
+ msg_MessagetemPlateId_TR: JSON.stringify(n)
1379
+ },
1380
+ {
1381
+ msg_MessagetemPlateId_AS: JSON.stringify(o)
1382
+ },
1383
+ {
1384
+ msg_MessagetemPlateId_RT: JSON.stringify(r)
1385
+ },
1386
+ {
1387
+ msg_MessagetemPlateId_RTA: JSON.stringify(c)
1388
+ },
1389
+ {
1390
+ msg_MessagetemPlateId_AA: JSON.stringify(g)
1391
+ }
1392
+ )
1393
+ );
1394
+ }
1395
+ });
1396
+ },
1397
+ init(s) {
1398
+ if (this.state)
1399
+ return;
1400
+ this.state = !0, this.datail = s, this.show = !!(s && s.stateCodes != null);
1401
+ let t = s ? s.langs : [];
1402
+ this.$nextTick(() => {
1403
+ setTimeout(() => {
1404
+ let e = {
1405
+ name: s ? s.name : "",
1406
+ isresubmit: s ? s.isresubmit : 0,
1407
+ tableId: s ? s.tableId : void 0,
1408
+ category: s ? s.category : void 0,
1409
+ description: s ? s.description : "",
1410
+ enCode: s ? s.enCode : f(8),
1411
+ autoApprovalType: s ? String(s.autoApprovalType) : "0",
1412
+ transKey: s ? s.transKey : null,
1413
+ langs: JSON.stringify(t)
1414
+ };
1415
+ this.isReturnMsg = !!(s && s.isReturnMsg == 1), this.isRejectMsg = !!(s && s.isRejectMsg == 1), s && s.stateCodes != null && (e = Object.assign(e, {
1416
+ stateCodes: s.stateCodes
1417
+ }));
1418
+ let a = [];
1419
+ [].forEach((i, n) => {
1420
+ let o = this.searchMsgDataId(i.d, i.t, 16 * n);
1421
+ a.push(o);
1422
+ }), Promise.all(a).then(() => {
1423
+ this.state = !1;
1424
+ }), s && s.msg_MessagetemPlateId && typeof s.msg_MessagetemPlateId == "string" && JSON.parse(s.msg_MessagetemPlateId).length > 0 ? (this.list = s && s.msg_MessagetemPlateId ? JSON.parse(s.msg_MessagetemPlateId).map((i) => ({
1425
+ ...i,
1426
+ type: String(i.type),
1427
+ msgList: []
1428
+ })) : [{ type: "", tempid: "", msgList: [] }], this.list.forEach((i) => {
1429
+ i.tempid != "" && this.selTemplateType(i);
1430
+ })) : this.list = [
1431
+ {
1432
+ type: "",
1433
+ tempid: "",
1434
+ msgList: []
1435
+ }
1436
+ ], s && s.msg_MessagetemPlateId_CC && typeof s.msg_MessagetemPlateId_CC == "string" && JSON.parse(s.msg_MessagetemPlateId_CC).length > 0 ? (this.msgcclist = s && s.msg_MessagetemPlateId_CC ? JSON.parse(s.msg_MessagetemPlateId_CC).map((i) => ({
1437
+ ...i,
1438
+ type: String(i.type),
1439
+ msgList: []
1440
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgcclist.forEach((i) => {
1441
+ i.tempid != "" && this.selTemplateType(i);
1442
+ })) : this.msgcclist = [
1443
+ {
1444
+ type: "",
1445
+ tempid: "",
1446
+ msgList: []
1447
+ }
1448
+ ], s && s.msg_MessagetemPlateId_UP && typeof s.msg_MessagetemPlateId_UP == "string" && JSON.parse(s.msg_MessagetemPlateId_UP).length > 0 ? (this.msguplist = s && s.msg_MessagetemPlateId_UP ? JSON.parse(s.msg_MessagetemPlateId_UP).map((i) => ({
1449
+ ...i,
1450
+ type: String(i.type),
1451
+ msgList: []
1452
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msguplist.forEach((i) => {
1453
+ i.tempid != "" && this.selTemplateType(i);
1454
+ })) : this.msguplist = [
1455
+ {
1456
+ type: "",
1457
+ tempid: "",
1458
+ msgList: []
1459
+ }
1460
+ ], s && s.msg_MessagetemPlateId_RV && typeof s.msg_MessagetemPlateId_RV == "string" && JSON.parse(s.msg_MessagetemPlateId_RV).length > 0 ? (this.msgrvlist = s && s.msg_MessagetemPlateId_RV ? JSON.parse(s.msg_MessagetemPlateId_RV).map((i) => ({
1461
+ ...i,
1462
+ type: String(i.type),
1463
+ msgList: []
1464
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgrvlist.forEach((i) => {
1465
+ i.tempid != "" && this.selTemplateType(i);
1466
+ })) : this.msgrvlist = [
1467
+ {
1468
+ type: "",
1469
+ tempid: "",
1470
+ msgList: []
1471
+ }
1472
+ ], s && s.msg_MessagetemPlateId_RJ && typeof s.msg_MessagetemPlateId_RJ == "string" && JSON.parse(s.msg_MessagetemPlateId_RJ).length > 0 ? (this.msgrjlist = s && s.msg_MessagetemPlateId_RJ ? JSON.parse(s.msg_MessagetemPlateId_RJ).map((i) => ({
1473
+ ...i,
1474
+ type: String(i.type),
1475
+ msgList: []
1476
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgrjlist.forEach((i) => {
1477
+ i.tempid != "" && this.selTemplateType(i);
1478
+ })) : this.msgrjlist = [
1479
+ {
1480
+ type: "",
1481
+ tempid: "",
1482
+ msgList: []
1483
+ }
1484
+ ], s && s.msg_MessagetemPlateId_TR && typeof s.msg_MessagetemPlateId_TR == "string" && JSON.parse(s.msg_MessagetemPlateId_TR).length > 0 ? (this.msgtrlist = s && s.msg_MessagetemPlateId_TR ? JSON.parse(s.msg_MessagetemPlateId_TR).map((i) => ({
1485
+ ...i,
1486
+ type: String(i.type),
1487
+ msgList: []
1488
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgtrlist.forEach((i) => {
1489
+ i.tempid != "" && this.selTemplateType(i);
1490
+ })) : this.msgtrlist = [
1491
+ {
1492
+ type: "",
1493
+ tempid: "",
1494
+ msgList: []
1495
+ }
1496
+ ], s && s.msg_MessagetemPlateId_AS && typeof s.msg_MessagetemPlateId_AS == "string" && JSON.parse(s.msg_MessagetemPlateId_AS).length > 0 ? (this.msgaslist = s && s.msg_MessagetemPlateId_AS ? JSON.parse(s.msg_MessagetemPlateId_AS).map((i) => ({
1497
+ ...i,
1498
+ type: String(i.type),
1499
+ msgList: []
1500
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgaslist.forEach((i) => {
1501
+ i.tempid != "" && this.selTemplateType(i);
1502
+ })) : this.msgaslist = [
1503
+ {
1504
+ type: "",
1505
+ tempid: "",
1506
+ msgList: []
1507
+ }
1508
+ ], s && s.msg_MessagetemPlateId_RT && typeof s.msg_MessagetemPlateId_RT == "string" && JSON.parse(s.msg_MessagetemPlateId_RT).length > 0 ? (this.msgrtlist = s && s.msg_MessagetemPlateId_RT ? JSON.parse(s.msg_MessagetemPlateId_RT).map((i) => ({
1509
+ ...i,
1510
+ type: String(i.type),
1511
+ msgList: []
1512
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgrtlist.forEach((i) => {
1513
+ i.tempid != "" && this.selTemplateType(i);
1514
+ })) : this.msgrtlist = [
1515
+ {
1516
+ type: "",
1517
+ tempid: "",
1518
+ msgList: []
1519
+ }
1520
+ ], s && s.msg_MessagetemPlateId_RTA && typeof s.msg_MessagetemPlateId_RTA == "string" && JSON.parse(s.msg_MessagetemPlateId_RTA).length > 0 ? (this.msgrtalist = s && s.msg_MessagetemPlateId_RTA ? JSON.parse(s.msg_MessagetemPlateId_RTA).map((i) => ({
1521
+ ...i,
1522
+ type: String(i.type),
1523
+ msgList: []
1524
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgrtalist.forEach((i) => {
1525
+ i.tempid != "" && this.selTemplateType(i);
1526
+ })) : this.msgrtalist = [
1527
+ {
1528
+ type: "",
1529
+ tempid: "",
1530
+ msgList: []
1531
+ }
1532
+ ], s && s.msg_MessagetemPlateId_AA && typeof s.msg_MessagetemPlateId_AA == "string" && JSON.parse(s.msg_MessagetemPlateId_AA).length > 0 ? (this.msgaalist = s && s.msg_MessagetemPlateId_AA ? JSON.parse(s.msg_MessagetemPlateId_AA).map((i) => ({
1533
+ ...i,
1534
+ type: String(i.type),
1535
+ msgList: []
1536
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgaalist.forEach((i) => {
1537
+ i.tempid != "" && this.selTemplateType(i);
1538
+ })) : this.msgaalist = [
1539
+ {
1540
+ type: "",
1541
+ tempid: "",
1542
+ msgList: []
1543
+ }
1544
+ ], this.ruleFormData = e, this.$refs.ruleForm.resetFields(), this.$refs.gdTranslation && this.$refs.gdTranslation.init();
1545
+ }, 0);
1546
+ });
1547
+ },
1548
+ searchTable(s) {
1549
+ this.fetching = !0, this.tableNameData = [], q({
1550
+ busName: s
1551
+ }).then((t) => {
1552
+ this.tableNameData = [...t.data], this.fetching = !1;
1553
+ });
1554
+ },
1555
+ changeMsg(s) {
1556
+ this.msgType = s, this.searchMsgData("");
1557
+ },
1558
+ searchMsgData(s) {
1559
+ let t = {
1560
+ fkEntityName: this.fkEntityName,
1561
+ name: s
1562
+ };
1563
+ this.fetching = !0, this.msgList = this.msgType == 1 ? [] : this.msgList, this.msgListCC = this.msgType == 2 ? [] : this.msgListCC, this.msgListPress = this.msgType == 3 ? [] : this.msgListPress, this.msgListBack = this.msgType == 4 ? [] : this.msgListBack, this.msgListRject = this.msgType == 5 ? [] : this.msgListRject, this.msgListTrans = this.msgType == 6 ? [] : this.msgListTrans, this.msgListEnd = this.msgType == 7 ? [] : this.msgListEnd, this.msgListReturn = this.msgType == 8 ? [] : this.msgListReturn, this.msgListApproval = this.msgType == 9 ? [] : this.msgListApproval, this.msgListAutomatic = this.msgType == 10 ? [] : this.msgListAutomatic, w(t).then((e) => {
1564
+ this.fetching = !1, e.success && (this.msgList = this.msgType == 1 ? [...e.data] : this.msgList, this.msgListCC = this.msgType == 2 ? [...e.data] : this.msgListCC, this.msgListPress = this.msgType == 3 ? [...e.data] : this.msgListPress, this.msgListBack = this.msgType == 4 ? [...e.data] : this.msgListBack, this.msgListRject = this.msgType == 5 ? [...e.data] : this.msgListRject, this.msgListTrans = this.msgType == 6 ? [...e.data] : this.msgListTrans, this.msgListEnd = this.msgType == 7 ? [...e.data] : this.msgListEnd, this.msgListReturn = this.msgType == 8 ? [...e.data] : this.msgListReturn, this.msgListApproval = this.msgType == 9 ? [...e.data] : this.msgListApproval, this.msgListAutomatic = this.msgType == 10 ? [...e.data] : this.msgListAutomatic);
1565
+ });
1566
+ },
1567
+ searchMsgDataId(s, t, e = 0) {
1568
+ let a = {
1569
+ fkEntityName: this.fkEntityName,
1570
+ id: s
1571
+ };
1572
+ this.fetching = !0, this.msgList = t == 1 ? [] : this.msgList, this.msgListCC = t == 2 ? [] : this.msgListCC, this.msgListPress = t == 3 ? [] : this.msgListPress, this.msgListBack = t == 4 ? [] : this.msgListBack, this.msgListRject = t == 5 ? [] : this.msgListRject, this.msgListTrans = t == 6 ? [] : this.msgListTrans, this.msgListEnd = t == 7 ? [] : this.msgListEnd, this.msgListReturn = t == 8 ? [] : this.msgListReturn, this.msgListApproval = t == 9 ? [] : this.msgListApproval, this.msgListAutomatic = t == 10 ? [] : this.msgListAutomatic, setTimeout(() => {
1573
+ w(a).then((l) => {
1574
+ l.success && (this.msgList = t == 1 ? [...l.data] : this.msgList, this.msgListCC = t == 2 ? [...l.data] : this.msgListCC, this.msgListPress = t == 3 ? [...l.data] : this.msgListPress, this.msgListBack = t == 4 ? [...l.data] : this.msgListBack, this.msgListRject = t == 5 ? [...l.data] : this.msgListRject, this.msgListTrans = t == 6 ? [...l.data] : this.msgListTrans, this.msgListEnd = t == 7 ? [...l.data] : this.msgListEnd, this.msgListReturn = t == 8 ? [...l.data] : this.msgListReturn, this.msgListApproval = t == 9 ? [...l.data] : this.msgListApproval, this.msgListAutomatic = t == 10 ? [...l.data] : this.msgListAutomatic), this.fetching = !1;
1575
+ });
1576
+ }, e);
1577
+ },
1578
+ getDictionary(s) {
1579
+ return this.$options.filters.dictData(s);
1580
+ },
1581
+ toggleHistory() {
1582
+ this.showHistory = !this.showHistory;
1583
+ },
1584
+ addList(s) {
1585
+ let t = {
1586
+ id: f(),
1587
+ type: "",
1588
+ msgList: ""
1589
+ };
1590
+ s == "1" ? this.list = this.list.concat(t) : s == "2" ? this.msgcclist = this.msgcclist.concat(t) : s == "3" ? this.msguplist = this.msguplist.concat(t) : s == "4" ? this.msgrvlist = this.msgrvlist.concat(t) : s == "5" ? this.msgrjlist = this.msgrjlist.concat(t) : s == "6" ? this.msgtrlist = this.msgtrlist.concat(t) : s == "7" ? this.msgaslist = this.msgaslist.concat(t) : s == "8" ? this.msgrtlist = this.msgrtlist.concat(t) : s == "9" ? this.msgrtalist = this.msgrtalist.concat(t) : s == "10" && (this.msgaalist = this.msgaalist.concat(t));
1591
+ },
1592
+ delList(s, t) {
1593
+ t == "1" ? this.list = this.list.filter((e, a) => a != s) : t == "2" ? this.msgcclist = this.msgcclist.filter((e, a) => a != s) : t == "3" ? this.msguplist = this.msguplist.filter((e, a) => a != s) : t == "4" ? this.msgrvlist = this.msgrvlist.filter((e, a) => a != s) : t == "5" ? this.msgrjlist = this.msgrjlist.filter((e, a) => a != s) : t == "6" ? this.msgtrlist = this.msgtrlist.filter((e, a) => a != s) : t == "7" ? this.msgaslist = this.msgaslist.filter((e, a) => a != s) : t == "8" ? this.msgrtlist = this.msgrtlist.filter((e, a) => a != s) : t == "9" ? this.msgrtalist = this.msgrtalist.filter((e, a) => a != s) : t == "10" && (this.msgaalist = this.msgaalist.filter((e, a) => a != s));
1594
+ },
1595
+ selTemplateType(s) {
1596
+ z({
1597
+ templateType: s.type
1598
+ }).then((t) => {
1599
+ s.msgList = t.data;
1600
+ });
1601
+ }
1602
+ },
1603
+ created() {
1604
+ this.searchTable("");
1605
+ }
1606
+ };
1607
+ var _t = function() {
1608
+ var t = this, e = t._self._c;
1609
+ return e("div", { staticClass: "setting" }, [e("el-form", { ref: "ruleForm", staticClass: "setting-form", attrs: { "label-width": "100px", "label-position": "top", model: t.ruleFormData, rules: t.rules }, nativeOn: { submit: function(a) {
1610
+ a.preventDefault();
1611
+ } } }, [e("el-row", { attrs: { gutter: 24 } }, [e("el-col", { staticStyle: { display: "none" }, attrs: { span: 24 } }, [e("el-form-item", { attrs: { label: "transKey" } }, [e("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleFormData.transKey, callback: function(a) {
1612
+ t.$set(t.ruleFormData, "transKey", a);
1613
+ }, expression: "ruleFormData.transKey" } })], 1), e("el-form-item", { attrs: { label: "langs" } }, [e("el-input", { attrs: { placeholder: "\u8BF7\u8F93\u5165", placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleFormData.langs, callback: function(a) {
1614
+ t.$set(t.ruleFormData, "langs", a);
1615
+ }, expression: "ruleFormData.langs" } })], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.name", "\u540D\u79F0"), prop: "name" } }, [e("el-input", { directives: [{ name: "show", rawName: "v-show", value: !t.datail || t.datail && !t.datail.transKey, expression: "!datail || (datail && !datail.transKey)" }], staticStyle: { width: "100%" }, attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleFormData.name, callback: function(a) {
1616
+ t.$set(t.ruleFormData, "name", a);
1617
+ }, expression: "ruleFormData.name" } })], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.table", "\u5173\u8054\u8868"), prop: "tableId" } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { filterable: "", placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: t.disableds ? !0 : t.status == "success", clearable: "", remote: "", "reserve-keyword": "", "remote-method": t.searchTable, loading: t.fetching }, model: { value: t.ruleFormData.tableId, callback: function(a) {
1618
+ t.$set(t.ruleFormData, "tableId", a);
1619
+ }, expression: "ruleFormData.tableId" } }, t._l(t.tableNameData, function(a, l) {
1620
+ return e("el-option", { key: l, attrs: { value: a.id, label: t.$i18nt(`Dynamics.${a.transkey}`, a.busname) } }, [e("span", [t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`, a.busname)))]), e("span", [t._v(t._s(a.tablename))])]);
1621
+ }), 1)], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.classify", "\u5206\u7C7B"), prop: "category" } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: t.disableds }, model: { value: t.ruleFormData.category, callback: function(a) {
1622
+ t.$set(t.ruleFormData, "category", a);
1623
+ }, expression: "ruleFormData.category" } }, t._l(t.dictList, function(a, l) {
1624
+ return e("el-option", { key: l, class: a.code === t.categoryDisableds ? "category-dels" : "", attrs: { value: a.code, label: t.$i18nt(`Dynamics.${a.transKey}`, a.name) } });
1625
+ }), 1)], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.autoApproval", "\u81EA\u52A8\u5BA1\u6279") } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: t.disableds }, model: { value: t.ruleFormData.autoApprovalType, callback: function(a) {
1626
+ t.$set(t.ruleFormData, "autoApprovalType", a);
1627
+ }, expression: "ruleFormData.autoApprovalType" } }, t._l(t.getDictionary("table_flows_autoApproval"), function(a, l) {
1628
+ return e("el-option", { key: l, attrs: { value: a.code, label: t.$i18nt(`Dynamics.${a.transKey}`, a.name) } });
1629
+ }), 1)], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.isResubmitnext", "\u91CD\u590D\u7533\u8BF7"), prop: "isresubmit" } }, [e("el-select", { staticStyle: { width: "100%" }, model: { value: t.ruleFormData.isresubmit, callback: function(a) {
1630
+ t.$set(t.ruleFormData, "isresubmit", a);
1631
+ }, expression: "ruleFormData.isresubmit" } }, [e("el-option", { attrs: { label: t.$i18nt("gd.placeholder.yes", "\u662F"), value: 1 } }), e("el-option", { attrs: { label: t.$i18nt("gd.placeholder.no", "\u5426"), value: 0 } })], 1)], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("div", { staticStyle: { "margin-bottom": "10px", float: "right" } }, [e("span", [t._v(" " + t._s(t.$i18nt("gd.flow.approval.configTemplate", "\u6A21\u7248\u914D\u7F6E")) + " "), t.showHistory == !1 ? e("a", { on: { click: t.toggleHistory } }, [t._v(" " + t._s(t.$i18nt("gd.btn.down", "\u5C55\u5F00")) + " "), e("i", { staticClass: "el-icon-arrow-down" })]) : e("a", { on: { click: t.toggleHistory } }, [t._v(" " + t._s(t.$i18nt("gd.btn.up", "\u6536\u8D77")) + " "), e("i", { staticClass: "el-icon-arrow-up" })])])])]), e("el-col", { staticStyle: { position: "relative" }, attrs: { span: 24 } }, [e("div", { staticClass: "add" }, [e("el-button", { attrs: { type: "text", icon: "el-icon-plus btn-add", size: "small" }, on: { click: function(a) {
1632
+ return t.addList("1");
1633
+ } } }, [t._v(" " + t._s(t.$i18nt("gd.btn.addTo", "\u6DFB\u52A0")) + " ")])], 1), e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.megTemplate", "\u5BA1\u6279\u6D88\u606F\u6A21\u677F"), prop: "msg_MessagetemPlateId" } }, [e("div", { staticStyle: { padding: "0 6px" } }, [t.list.length > 0 ? e("el-row", { staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory", "\u6A21\u677F\u7C7B\u522B")))]), e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate", "\u6D88\u606F\u6A21\u677F")))]), e("el-col", { attrs: { span: 4 } }, [t._v(t._s(t.$i18nt("gd.flow.handle", "\u64CD\u4F5C")))])], 1) : t._e(), e("div", t._l(t.list, function(a, l) {
1634
+ return e("el-row", { key: l, staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(i) {
1635
+ return t.selTemplateType(a);
1636
+ } }, model: { value: a.type, callback: function(i) {
1637
+ t.$set(a, "type", i);
1638
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1639
+ return e("el-option", { key: n, attrs: { label: i.name, value: i.code, disabled: i.disabled } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${i.transkey}`, i.name)) + " ")]);
1640
+ }), 1)], 1), e("el-col", { attrs: { span: 10 } }, [e("div", { staticClass: "cao_about" }, [e("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), remote: "", "reserve-keyword": "", "remote-method": t.searchMsgData, clearable: "", disabled: t.disableds }, on: { focus: function(i) {
1641
+ return t.changeMsg(1);
1642
+ } }, model: { value: a.tempid, callback: function(i) {
1643
+ t.$set(a, "tempid", i);
1644
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1645
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1646
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1647
+ return t.delList(l, "1");
1648
+ } } })])], 1);
1649
+ }), 1)], 1)])], 1), e("el-col", { attrs: { span: 24 } }, [e("div", { staticClass: "add" }, [e("el-button", { attrs: { type: "text", icon: "el-icon-plus btn-add", size: "small" }, on: { click: function(a) {
1650
+ return t.addList("2");
1651
+ } } }, [t._v(" " + t._s(t.$i18nt("gd.btn.addTo", "\u6DFB\u52A0")) + " ")])], 1), e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.megTemplatecc", "\u6284\u9001\u6D88\u606F\u6A21\u677F"), prop: "msg_MessagetemPlateId_CC" } }, [e("div", { staticStyle: { padding: "0 6px" } }, [t.msgcclist.length > 0 ? e("el-row", { staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory", "\u6A21\u677F\u7C7B\u522B")))]), e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate", "\u6D88\u606F\u6A21\u677F")))]), e("el-col", { attrs: { span: 4 } }, [t._v(t._s(t.$i18nt("gd.flow.handle", "\u64CD\u4F5C")))])], 1) : t._e(), e("div", t._l(t.msgcclist, function(a, l) {
1652
+ return e("el-row", { key: l, staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(i) {
1653
+ return t.selTemplateType(a);
1654
+ } }, model: { value: a.type, callback: function(i) {
1655
+ t.$set(a, "type", i);
1656
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1657
+ return e("el-option", { key: n, attrs: { label: i.name, value: i.code, disabled: i.disabled } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${i.transkey}`, i.name)) + " ")]);
1658
+ }), 1)], 1), e("el-col", { attrs: { span: 10 } }, [e("div", { staticClass: "cao_about" }, [e("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", remote: "", "reserve-keyword": "", "remote-method": t.searchMsgData, loading: t.fetching, clearable: "", disabled: t.disableds }, on: { focus: function(i) {
1659
+ return t.changeMsg(2);
1660
+ } }, model: { value: a.tempid, callback: function(i) {
1661
+ t.$set(a, "tempid", i);
1662
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1663
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1664
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1665
+ return t.delList(l, "2");
1666
+ } } })])], 1);
1667
+ }), 1)], 1)])], 1), e("div", { directives: [{ name: "show", rawName: "v-show", value: t.showHistory, expression: "showHistory" }] }, [e("el-col", { attrs: { span: 24 } }, [e("div", { staticClass: "add" }, [e("el-button", { attrs: { type: "text", icon: "el-icon-plus btn-add", size: "small" }, on: { click: function(a) {
1668
+ return t.addList("3");
1669
+ } } }, [t._v(" " + t._s(t.$i18nt("gd.btn.addTo", "\u6DFB\u52A0")) + " ")])], 1), e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.megTemplatePress", "\u50AC\u529E\u6A21\u677F"), prop: "msg_MessagetemPlateId_UP" } }, [e("div", { staticStyle: { padding: "0 6px" } }, [t.msguplist.length > 0 ? e("el-row", { staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory", "\u6A21\u677F\u7C7B\u522B")))]), e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate", "\u6D88\u606F\u6A21\u677F")))]), e("el-col", { attrs: { span: 4 } }, [t._v(t._s(t.$i18nt("gd.flow.handle", "\u64CD\u4F5C")))])], 1) : t._e(), e("div", t._l(t.msguplist, function(a, l) {
1670
+ return e("el-row", { key: l, staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(i) {
1671
+ return t.selTemplateType(a);
1672
+ } }, model: { value: a.type, callback: function(i) {
1673
+ t.$set(a, "type", i);
1674
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1675
+ return e("el-option", { key: n, attrs: { label: i.name, value: i.code, disabled: i.disabled } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${i.transkey}`, i.name)) + " ")]);
1676
+ }), 1)], 1), e("el-col", { attrs: { span: 10 } }, [e("div", { staticClass: "cao_about" }, [e("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", remote: "", "reserve-keyword": "", "remote-method": t.searchMsgData, loading: t.fetching, clearable: "", disabled: t.disableds }, on: { focus: function(i) {
1677
+ return t.changeMsg(3);
1678
+ } }, model: { value: a.tempid, callback: function(i) {
1679
+ t.$set(a, "tempid", i);
1680
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1681
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1682
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1683
+ return t.delList(l, "3");
1684
+ } } })])], 1);
1685
+ }), 1)], 1)])], 1), e("el-col", { attrs: { span: 24 } }, [e("div", { staticClass: "add" }, [e("el-button", { attrs: { type: "text", icon: "el-icon-plus btn-add", size: "small" }, on: { click: function(a) {
1686
+ return t.addList("4");
1687
+ } } }, [t._v(" " + t._s(t.$i18nt("gd.btn.addTo", "\u6DFB\u52A0")) + " ")])], 1), e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.megTemplateRecall", "\u64A4\u56DE\u6A21\u7248"), prop: "msg_MessagetemPlateId_RV" } }, [e("div", { staticStyle: { padding: "0 6px" } }, [t.msgrvlist.length > 0 ? e("el-row", { staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory", "\u6A21\u677F\u7C7B\u522B")))]), e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate", "\u6D88\u606F\u6A21\u677F")))]), e("el-col", { attrs: { span: 4 } }, [t._v(t._s(t.$i18nt("gd.flow.handle", "\u64CD\u4F5C")))])], 1) : t._e(), e("div", t._l(t.msgrvlist, function(a, l) {
1688
+ return e("el-row", { key: l, staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(i) {
1689
+ return t.selTemplateType(a);
1690
+ } }, model: { value: a.type, callback: function(i) {
1691
+ t.$set(a, "type", i);
1692
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1693
+ return e("el-option", { key: n, attrs: { label: i.name, value: i.code, disabled: i.disabled } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${i.transkey}`, i.name)) + " ")]);
1694
+ }), 1)], 1), e("el-col", { attrs: { span: 10 } }, [e("div", { staticClass: "cao_about" }, [e("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", remote: "", "reserve-keyword": "", "remote-method": t.searchMsgData, loading: t.fetching, clearable: "", disabled: t.disableds }, on: { focus: function(i) {
1695
+ return t.changeMsg(4);
1696
+ } }, model: { value: a.tempid, callback: function(i) {
1697
+ t.$set(a, "tempid", i);
1698
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1699
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1700
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1701
+ return t.delList(l, "4");
1702
+ } } })])], 1);
1703
+ }), 1)], 1)])], 1), e("el-col", { attrs: { span: 24 } }, [e("div", { staticClass: "add" }, [e("el-button", { attrs: { type: "text", icon: "el-icon-plus btn-add", size: "small" }, on: { click: function(a) {
1704
+ return t.addList("5");
1705
+ } } }, [t._v(" " + t._s(t.$i18nt("gd.btn.addTo", "\u6DFB\u52A0")) + " ")])], 1), e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.megTemplateTurn"), prop: "msg_MessagetemPlateId_RJ" } }, [e("div", { staticStyle: { padding: "0 6px" } }, [t.msgrjlist.length > 0 ? e("el-row", { staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory", "\u6A21\u677F\u7C7B\u522B")))]), e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate", "\u6D88\u606F\u6A21\u677F")))]), e("el-col", { attrs: { span: 4 } }, [t._v(t._s(t.$i18nt("gd.flow.handle", "\u64CD\u4F5C")))])], 1) : t._e(), e("div", t._l(t.msgrjlist, function(a, l) {
1706
+ return e("el-row", { key: l, staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(i) {
1707
+ return t.selTemplateType(a);
1708
+ } }, model: { value: a.type, callback: function(i) {
1709
+ t.$set(a, "type", i);
1710
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1711
+ return e("el-option", { key: n, attrs: { label: i.name, value: i.code, disabled: i.disabled } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${i.transkey}`, i.name)) + " ")]);
1712
+ }), 1)], 1), e("el-col", { attrs: { span: 10 } }, [e("div", { staticClass: "cao_about" }, [e("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", remote: "", "reserve-keyword": "", "remote-method": t.searchMsgData, loading: t.fetching, clearable: "", disabled: t.disableds }, on: { focus: function(i) {
1713
+ return t.changeMsg(5);
1714
+ } }, model: { value: a.tempid, callback: function(i) {
1715
+ t.$set(a, "tempid", i);
1716
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1717
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1718
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1719
+ return t.delList(l, "5");
1720
+ } } })])], 1);
1721
+ }), 1)], 1), e("el-checkbox", { attrs: { disabled: t.disableds }, on: { click: t.onChange1 }, model: { value: t.isRejectMsg, callback: function(a) {
1722
+ t.isRejectMsg = a;
1723
+ }, expression: "isRejectMsg" } }, [t._v(" " + t._s(t.$i18nt("gd.flow.approval.textReturn", "\u662F\u5426\u5F00\u542F\u9A73\u56DE\u4E2D\u95F4\u8282\u70B9\u6D88\u606F\u901A\u77E5")) + " ")])], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("div", { staticClass: "add" }, [e("el-button", { attrs: { type: "text", icon: "el-icon-plus btn-add", size: "small" }, on: { click: function(a) {
1724
+ return t.addList("6");
1725
+ } } }, [t._v(" " + t._s(t.$i18nt("gd.btn.addTo", "\u6DFB\u52A0")) + " ")])], 1), e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.megTemplateTurret", "\u8F6C\u5BA1\u6A21\u677F"), prop: "msg_MessagetemPlateId_TR" } }, [e("div", { staticStyle: { padding: "0 6px" } }, [t.msgtrlist.length > 0 ? e("el-row", { staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory", "\u6A21\u677F\u7C7B\u522B")))]), e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate", "\u6D88\u606F\u6A21\u677F")))]), e("el-col", { attrs: { span: 4 } }, [t._v(t._s(t.$i18nt("gd.flow.handle", "\u64CD\u4F5C")))])], 1) : t._e(), e("div", t._l(t.msgtrlist, function(a, l) {
1726
+ return e("el-row", { key: l, staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(i) {
1727
+ return t.selTemplateType(a);
1728
+ } }, model: { value: a.type, callback: function(i) {
1729
+ t.$set(a, "type", i);
1730
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1731
+ return e("el-option", { key: n, attrs: { label: i.name, value: i.code, disabled: i.disabled } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${i.transkey}`, i.name)) + " ")]);
1732
+ }), 1)], 1), e("el-col", { attrs: { span: 10 } }, [e("div", { staticClass: "cao_about" }, [e("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", remote: "", "reserve-keyword": "", "remote-method": t.searchMsgData, loading: t.fetching, clearable: "", disabled: t.disableds }, on: { focus: function(i) {
1733
+ return t.changeMsg(6);
1734
+ } }, model: { value: a.tempid, callback: function(i) {
1735
+ t.$set(a, "tempid", i);
1736
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1737
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1738
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1739
+ return t.delList(l, "6");
1740
+ } } })])], 1);
1741
+ }), 1)], 1)])], 1), e("el-col", { attrs: { span: 24 } }, [e("div", { staticClass: "add" }, [e("el-button", { attrs: { type: "text", icon: "el-icon-plus btn-add", size: "small" }, on: { click: function(a) {
1742
+ return t.addList("7");
1743
+ } } }, [t._v(" " + t._s(t.$i18nt("gd.btn.addTo", "\u6DFB\u52A0")) + " ")])], 1), e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.megTemplateEnd", "\u52A0\u7B7E\u6A21\u677F"), prop: "msg_MessagetemPlateId_AS" } }, [e("div", { staticStyle: { padding: "0 6px" } }, [t.msgaslist.length > 0 ? e("el-row", { staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory", "\u6A21\u677F\u7C7B\u522B")))]), e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate", "\u6D88\u606F\u6A21\u677F")))]), e("el-col", { attrs: { span: 4 } }, [t._v(t._s(t.$i18nt("gd.flow.handle", "\u64CD\u4F5C")))])], 1) : t._e(), e("div", t._l(t.msgaslist, function(a, l) {
1744
+ return e("el-row", { key: l, staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(i) {
1745
+ return t.selTemplateType(a);
1746
+ } }, model: { value: a.type, callback: function(i) {
1747
+ t.$set(a, "type", i);
1748
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1749
+ return e("el-option", { key: n, attrs: { label: i.name, value: i.code, disabled: i.disabled } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${i.transkey}`, i.name)) + " ")]);
1750
+ }), 1)], 1), e("el-col", { attrs: { span: 10 } }, [e("div", { staticClass: "cao_about" }, [e("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", remote: "", "reserve-keyword": "", "remote-method": t.searchMsgData, loading: t.fetching, clearable: "", disabled: t.disableds }, on: { focus: function(i) {
1751
+ return t.changeMsg(7);
1752
+ } }, model: { value: a.tempid, callback: function(i) {
1753
+ t.$set(a, "tempid", i);
1754
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1755
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1756
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1757
+ return t.delList(l, "7");
1758
+ } } })])], 1);
1759
+ }), 1)], 1)])], 1), e("el-col", { attrs: { span: 24 } }, [e("div", { staticClass: "add" }, [e("el-button", { attrs: { type: "text", icon: "el-icon-plus btn-add", size: "small" }, on: { click: function(a) {
1760
+ return t.addList("8");
1761
+ } } }, [t._v(" " + t._s(t.$i18nt("gd.btn.addTo", "\u6DFB\u52A0")) + " ")])], 1), e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.megTemplateSign", "\u9000\u56DE\u6A21\u677F"), prop: "msg_MessagetemPlateId_RT" } }, [e("div", { staticStyle: { padding: "0 6px" } }, [t.msgrtlist.length > 0 ? e("el-row", { staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory", "\u6A21\u677F\u7C7B\u522B")))]), e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate", "\u6D88\u606F\u6A21\u677F")))]), e("el-col", { attrs: { span: 4 } }, [t._v(t._s(t.$i18nt("gd.flow.handle", "\u64CD\u4F5C")))])], 1) : t._e(), e("div", t._l(t.msgrtlist, function(a, l) {
1762
+ return e("el-row", { key: l, staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(i) {
1763
+ return t.selTemplateType(a);
1764
+ } }, model: { value: a.type, callback: function(i) {
1765
+ t.$set(a, "type", i);
1766
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1767
+ return e("el-option", { key: n, attrs: { label: i.name, value: i.code, disabled: i.disabled } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${i.transkey}`, i.name)) + " ")]);
1768
+ }), 1)], 1), e("el-col", { attrs: { span: 10 } }, [e("div", { staticClass: "cao_about" }, [e("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", remote: "", "reserve-keyword": "", "remote-method": t.searchMsgData, loading: t.fetching, clearable: "", disabled: t.disableds }, on: { focus: function(i) {
1769
+ return t.changeMsg(8);
1770
+ } }, model: { value: a.tempid, callback: function(i) {
1771
+ t.$set(a, "tempid", i);
1772
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1773
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1774
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1775
+ return t.delList(l, "8");
1776
+ } } })])], 1);
1777
+ }), 1)], 1)])], 1), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { attrs: { label: "", prop: "isReturnMsg" } }, [e("el-checkbox", { attrs: { disabled: t.disableds }, on: { click: t.onChange }, model: { value: t.isReturnMsg, callback: function(a) {
1778
+ t.isReturnMsg = a;
1779
+ }, expression: "isReturnMsg" } }, [t._v(" " + t._s(t.$i18nt("gd.flow.approval.textSgin", "\u662F\u5426\u5F00\u542F\u9000\u56DE\u4E2D\u95F4\u8282\u70B9\u6D88\u606F\u901A\u77E5")) + " ")])], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("div", { staticClass: "add" }, [e("el-button", { attrs: { type: "text", icon: "el-icon-plus btn-add", size: "small" }, on: { click: function(a) {
1780
+ return t.addList("9");
1781
+ } } }, [t._v(" " + t._s(t.$i18nt("gd.btn.addTo", "\u6DFB\u52A0")) + " ")])], 1), e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.returnApproval", "\u9000\u56DE\u5BA1\u6279\u6A21\u677F"), prop: "msg_MessagetemPlateId_RTA" } }, [e("div", { staticStyle: { padding: "0 6px" } }, [t.msgrtalist.length > 0 ? e("el-row", { staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory", "\u6A21\u677F\u7C7B\u522B")))]), e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate", "\u6D88\u606F\u6A21\u677F")))]), e("el-col", { attrs: { span: 4 } }, [t._v(t._s(t.$i18nt("gd.flow.handle", "\u64CD\u4F5C")))])], 1) : t._e(), e("div", t._l(t.msgrtalist, function(a, l) {
1782
+ return e("el-row", { key: l, staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(i) {
1783
+ return t.selTemplateType(a);
1784
+ } }, model: { value: a.type, callback: function(i) {
1785
+ t.$set(a, "type", i);
1786
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1787
+ return e("el-option", { key: n, attrs: { label: i.name, value: i.code, disabled: i.disabled } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${i.transkey}`, i.name)) + " ")]);
1788
+ }), 1)], 1), e("el-col", { attrs: { span: 10 } }, [e("div", { staticClass: "cao_about" }, [e("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", remote: "", "reserve-keyword": "", "remote-method": t.searchMsgData, loading: t.fetching, clearable: "", disabled: t.disableds }, on: { focus: function(i) {
1789
+ return t.changeMsg(9);
1790
+ } }, model: { value: a.tempid, callback: function(i) {
1791
+ t.$set(a, "tempid", i);
1792
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1793
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1794
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1795
+ return t.delList(l, "9");
1796
+ } } })])], 1);
1797
+ }), 1)], 1)])], 1), e("el-col", { attrs: { span: 24 } }, [e("div", { staticClass: "add" }, [e("el-button", { attrs: { type: "text", icon: "el-icon-plus btn-add", size: "small" }, on: { click: function(a) {
1798
+ return t.addList("10");
1799
+ } } }, [t._v(" " + t._s(t.$i18nt("gd.btn.addTo", "\u6DFB\u52A0")) + " ")])], 1), e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.automatic", "\u81EA\u52A8\u5BA1\u6279\u6A21\u677F"), prop: "msg_MessagetemPlateId_AA" } }, [e("div", { staticStyle: { padding: "0 6px" } }, [t.msgaalist.length > 0 ? e("el-row", { staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory", "\u6A21\u677F\u7C7B\u522B")))]), e("el-col", { attrs: { span: 10 } }, [t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate", "\u6D88\u606F\u6A21\u677F")))]), e("el-col", { attrs: { span: 4 } }, [t._v(t._s(t.$i18nt("gd.flow.handle", "\u64CD\u4F5C")))])], 1) : t._e(), e("div", t._l(t.msgaalist, function(a, l) {
1800
+ return e("el-row", { key: l, staticClass: "more", attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 10 } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: t.disableds, placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(i) {
1801
+ return t.selTemplateType(a);
1802
+ } }, model: { value: a.type, callback: function(i) {
1803
+ t.$set(a, "type", i);
1804
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1805
+ return e("el-option", { key: n, attrs: { label: i.name, value: i.code, disabled: i.disabled } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${i.transkey}`, i.name)) + " ")]);
1806
+ }), 1)], 1), e("el-col", { attrs: { span: 10 } }, [e("div", { staticClass: "cao_about" }, [e("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", remote: "", "reserve-keyword": "", "remote-method": t.searchMsgData, loading: t.fetching, clearable: "", disabled: t.disableds }, on: { focus: function(i) {
1807
+ return t.changeMsg(10);
1808
+ } }, model: { value: a.tempid, callback: function(i) {
1809
+ t.$set(a, "tempid", i);
1810
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1811
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1812
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1813
+ return t.delList(l, "10");
1814
+ } } })])], 1);
1815
+ }), 1)], 1)])], 1)], 1), t.show ? e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.state", "\u72B6\u6001"), prop: "stateCodes" } }, [e("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: t.disableds }, model: { value: t.ruleFormData.stateCodes, callback: function(a) {
1816
+ t.$set(t.ruleFormData, "stateCodes", a);
1817
+ }, expression: "ruleFormData.stateCodes" } }, t._l(t.getDictionary("state_code"), function(a, l) {
1818
+ return e("el-option", { key: l, attrs: { value: a.code, label: t.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
1819
+ }), 1)], 1)], 1) : t._e(), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.approval.code", "\u7F16\u7801"), prop: "enCode" } }, [e("el-input", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: t.disableds }, model: { value: t.ruleFormData.enCode, callback: function(a) {
1820
+ t.$set(t.ruleFormData, "enCode", a);
1821
+ }, expression: "ruleFormData.enCode" } })], 1)], 1), e("el-col", { attrs: { span: 24 } }, [e("el-form-item", { attrs: { label: t.$i18nt("gd.flow.explain", "\u63CF\u8FF0"), prop: "description" } }, [e("el-input", { staticStyle: { width: "100%" }, attrs: { type: "textarea", rows: 4, placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: t.disableds }, model: { value: t.ruleFormData.description, callback: function(a) {
1822
+ t.$set(t.ruleFormData, "description", a);
1823
+ }, expression: "ruleFormData.description" } })], 1)], 1)], 1)], 1), e("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: t.lookupSeled } })], 1);
1824
+ }, vt = [], wt = /* @__PURE__ */ h(
1825
+ bt,
1826
+ _t,
1827
+ vt,
1828
+ !1,
1829
+ null,
1830
+ "11b988ef",
1831
+ null,
1832
+ null
1833
+ );
1834
+ const $t = wt.exports;
1835
+ const Ct = {
1836
+ props: {
1837
+ modeType: {
1838
+ type: String,
1839
+ default: "approval"
1840
+ }
1841
+ },
1842
+ data() {
1843
+ return {
1844
+ scaleVal: 100,
1845
+ permissionsBnt: !0,
1846
+ record: null,
1847
+ title: "\u5BA1\u6279\u6D41\u7A0B",
1848
+ visible: !1,
1849
+ confirmLoading: !1,
1850
+ list: [],
1851
+ sysViewButtons: [
1852
+ {
1853
+ displayName: "\u4E0A\u4E00\u6B65",
1854
+ functionName: "previous",
1855
+ show: !1,
1856
+ transKey: "gd.btn.prev",
1857
+ icon: "el-icon-d-arrow-left"
1858
+ },
1859
+ {
1860
+ displayName: "\u4E0B\u4E00\u6B65",
1861
+ functionName: "next",
1862
+ show: !0,
1863
+ transKey: "gd.btn.next",
1864
+ icon: "el-icon-d-arrow-right"
1865
+ },
1866
+ {
1867
+ displayName: "\u4FDD\u5B58",
1868
+ functionName: "handleSubmit",
1869
+ show: !1,
1870
+ transKey: "gd.btn.save",
1871
+ icon: "el-icon-document-checked"
1872
+ }
1873
+ ],
1874
+ current: -1,
1875
+ status: "success",
1876
+ detail: null,
1877
+ menberList: [],
1878
+ fullscreen: !1,
1879
+ width: "90%",
1880
+ stateCodes: 0,
1881
+ startCategory: ""
1882
+ };
1883
+ },
1884
+ components: {
1885
+ Settings: $t
1886
+ },
1887
+ computed: {
1888
+ prefixKey() {
1889
+ const s = this.detail ? this.detail.id : f(8);
1890
+ return S("saf", s);
1891
+ },
1892
+ bodyStyle() {
1893
+ return {
1894
+ background: this.current == 0 ? "#f5f6f6" : "#fff",
1895
+ borderRadius: "10px"
1896
+ };
1897
+ }
1898
+ },
1899
+ methods: {
1900
+ changeCurrent(s) {
1901
+ this.current !== s && this.onChange(s);
1902
+ },
1903
+ plusAdd(s) {
1904
+ let t = s == "-" ? this.scaleVal - 5 : this.scaleVal + 5;
1905
+ this.scaleVal = t <= 50 ? 50 : t >= 150 ? 150 : t;
1906
+ },
1907
+ toggleFullscreen() {
1908
+ this.fullscreen = !this.fullscreen;
1909
+ },
1910
+ onChange(s) {
1911
+ if (s == 1) {
1912
+ this.next();
1913
+ return;
1914
+ }
1915
+ this.previous();
1916
+ },
1917
+ open(s) {
1918
+ this.startCategory = "", this.fullscreen = !1, this.record = s;
1919
+ let t = s ? "sysFlowWork:edit" : "sysFlowWork:add";
1920
+ if (this.permissionsBnt = this.$hasPerm(t), this.sysViewButtons = this.sysViewButtons.map((e) => (e.displayName === "\u4FDD\u5B58" && (e.name = t), e)), this.visible = !0, this.getMenber(), s) {
1921
+ this.current = 1, this.getDetail();
1922
+ return;
1923
+ }
1924
+ this.current = 0, this.stateCodes = 0, this.status = "process", this.init();
1925
+ },
1926
+ init() {
1927
+ let s = [], t = m("start"), e = m("end");
1928
+ s.push(t), s.push(e), this.list = s, this.$nextTick(() => {
1929
+ setTimeout(() => {
1930
+ this.$refs.settings.init(null);
1931
+ }, 0);
1932
+ });
1933
+ },
1934
+ getMenber() {
1935
+ I().then((s) => {
1936
+ if (s.code == 200) {
1937
+ const t = (e) => (e = e.filter((a, l) => (a.children && a.children.length > 0 && (a.children = t(a.children)), a.key = a.id, a.title = a.name, !0)), e);
1938
+ t(s.data), this.menberList = s.data;
1939
+ }
1940
+ });
1941
+ },
1942
+ getDetail(s) {
1943
+ this.confirmLoading = !0, M(this.record).then((t) => {
1944
+ if (t.success) {
1945
+ let e = [], a = m("start"), l = t.data, i = {
1946
+ name: l.name,
1947
+ enCode: l.encode,
1948
+ category: l.category,
1949
+ stateCodes: l.statecodes == 1 ? "1" : "0",
1950
+ description: l.description,
1951
+ tableId: l.tableid,
1952
+ msg_MessagetemPlateId: l.msg_messagetemplateid,
1953
+ msg_MessagetemPlateId_CC: l.msg_messagetemplateid_cc,
1954
+ msg_MessagetemPlateId_UP: l.msg_messagetemplateid_up,
1955
+ msg_MessagetemPlateId_RV: l.msg_messagetemplateid_rv,
1956
+ msg_MessagetemPlateId_RJ: l.msg_messagetemplateid_rj,
1957
+ msg_MessagetemPlateId_TR: l.msg_messagetemplateid_tr,
1958
+ msg_MessagetemPlateId_AS: l.msg_messagetemplateid_as,
1959
+ msg_MessagetemPlateId_RT: l.msg_messagetemplateid_rt,
1960
+ msg_MessagetemPlateId_RTA: l.msg_messagetemplateid_rta,
1961
+ msg_MessagetemPlateId_AA: l.msg_messagetemplateid_aa,
1962
+ isReturnMsg: l.isreturnmsg,
1963
+ isRejectMsg: l.isrejectmsg,
1964
+ autoApprovalType: l.autoapprovaltype,
1965
+ isresubmit: l.isresubmit,
1966
+ langs: [],
1967
+ transKey: t.data.transkey ? t.data.transkey : null
1968
+ };
1969
+ this.startCategory = l.category;
1970
+ let n = m("end");
1971
+ e.push(a);
1972
+ let o = JSON.parse(l.flowtemplatejson);
1973
+ o = o.filter((r) => r.type != "start"), e = e.concat(o), e.push(n), this.list = e, this.detail = l, this.stateCodes = this.modeType === "approval" ? t.data.statecodes : 1, this.sbumitNext(i);
1974
+ }
1975
+ this.confirmLoading = !1;
1976
+ });
1977
+ },
1978
+ sbumitNext(s) {
1979
+ this.current = 1, this.list[0].data = s, this.sysViewButtons = this.sysViewButtons.filter((t, e) => (t.show = e != 1, this.stateCodes == 1 && e === 2 && (t.show = !1), !0)), this.status = "success", this.$nextTick(() => {
1980
+ setTimeout(() => {
1981
+ this.$refs.flowsDesigner.init(this.list), this.$refs.settings.init(s);
1982
+ }, 0);
1983
+ });
1984
+ },
1985
+ handleSubmit() {
1986
+ let s = this.$refs.flowsDesigner.list, t = s.length - 1, e = s.filter((r, c) => !(c == 0 || c == t));
1987
+ if (e.length == 0) {
1988
+ this.$message.error(this.$i18nt("gd.flow.perfectTip", "\u8BF7\u5B8C\u5584\u4FE1\u606F!"));
1989
+ return;
1990
+ }
1991
+ let a = [], l = s[0].data, i = [];
1992
+ const n = (r) => (r = r.filter((c, g) => (c.list && c.list.length > 0 && (c.list = n(c.list)), c.type == "condition" && c.list.forEach((d) => {
1993
+ if (d.type != "else") {
1994
+ const p = d.properties.conditions.list.length > 0 ? d.properties.conditions.list[0].columnname : d.properties.conditions.columnname;
1995
+ d.err = p === "", d.err && a.push(d);
1996
+ }
1997
+ d.list = n(d.list);
1998
+ }), c.type == "parallel" && c.list.forEach((d) => {
1999
+ const p = d.properties.conditions.list.length > 0 ? d.properties.conditions.list[0].columnname : d.properties.conditions.columnname;
2000
+ d.err = p === "", d.err && a.push(d), d.list = n(d.list);
2001
+ }), c.type == "circulate" && c.properties.assigneeType === "" && (c.err = !0, a.push(c)), c.type === "approver" && i.push(c), c.type == "approver" && c.properties.assigneeType === "" && (c.err = !0, a.push(c)), c.type == "approver" && c.properties.assigneeType && this.isAutoApproval(l, c) && (c.err = !0, a.push(c)), !0)), r);
2002
+ if (n(e), l = Object.assign({ ...l }, { flowtemplatejson: JSON.stringify(e), enabled: l.enabled == 1 }), a.length > 0) {
2003
+ this.$message.error(this.$i18nt("gd.flow.nodeTip", "\u8BF7\u6839\u636E\u63D0\u793A\u5B8C\u6210\u6D41\u7A0B\u8282\u70B9\u8BBE\u7F6E!"));
2004
+ return;
2005
+ }
2006
+ if (i.length == 0) {
2007
+ this.$message.error(this.$i18nt("gd.flow.approval.nodeApproval", "\u8BF7\u6DFB\u52A0\u5BA1\u6838\u4EBA\u6D41\u7A0B\u914D\u7F6E"));
2008
+ return;
2009
+ }
2010
+ let o = /* @__PURE__ */ new Map();
2011
+ for (let r in l)
2012
+ o.set(r.toLowerCase(), l[r]);
2013
+ this.record ? this.edit(Object.fromEntries(o)) : this.add(Object.fromEntries(o));
2014
+ },
2015
+ add(s) {
2016
+ this.confirmLoading = !0, K(s).then((t) => {
2017
+ if (t.success) {
2018
+ this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.$emit("ok");
2019
+ let e = this.$refs.flowsDesigner.delTransKeyList;
2020
+ this.deltransKey(e), this.handleCancel(1);
2021
+ } else
2022
+ this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25") + t.message);
2023
+ this.confirmLoading = !1;
2024
+ });
2025
+ },
2026
+ edit(s) {
2027
+ this.confirmLoading = !0, L(Object.assign({ ...this.detail }, { ...s })).then((t) => {
2028
+ if (t.success) {
2029
+ this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.$emit("ok");
2030
+ let e = this.$refs.flowsDesigner.delTransKeyList;
2031
+ this.deltransKey(e), this.handleCancel(2);
2032
+ } else
2033
+ this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25") + t.message);
2034
+ this.confirmLoading = !1;
2035
+ });
2036
+ },
2037
+ isAutoApproval(s, t) {
2038
+ if (t.properties.assigneeType != "3" && t.properties.assigneeType != "4")
2039
+ return !1;
2040
+ let a = this.getDictionary("table_flows_autoApproval").filter((n) => n.code == String(s.autoApprovalType))[0];
2041
+ if (a === void 0)
2042
+ return !0;
2043
+ let l = a.remark ? a.remark.split("#") : [];
2044
+ return !(l.length > 0 ? l[l.length - 1].split(",") : []).includes(t.properties.autoApprvalType);
2045
+ },
2046
+ previous() {
2047
+ this.sysViewButtons = this.sysViewButtons.filter((s, t) => (s.show = t == 1, this.stateCodes == 1 && t === 2 && (s.show = !1), !0)), this.list = this.$refs.flowsDesigner.list, this.current = 0, this.$nextTick(() => {
2048
+ setTimeout(() => {
2049
+ this.$refs.settings.init(this.list[0].data);
2050
+ }, 0);
2051
+ });
2052
+ },
2053
+ next() {
2054
+ this.$refs.settings.addSubmit();
2055
+ },
2056
+ async handleCancel(s) {
2057
+ if (s !== 2 && s !== 1) {
2058
+ let t = this.$refs.flowsDesigner.addTransKeyList;
2059
+ this.deltransKey(t);
2060
+ }
2061
+ this.visible = !1, this.detail = null, await this.init(), setTimeout(() => {
2062
+ this.$refs.flowsDesigner.init(this.list), this.previous();
2063
+ }, 200);
2064
+ },
2065
+ deltransKey(s) {
2066
+ s.length !== 0 && T({
2067
+ name: s.join(",")
2068
+ });
2069
+ },
2070
+ doEvent(s) {
2071
+ let t = s.item.functionName;
2072
+ this[t] && this[t]();
2073
+ },
2074
+ getDictionary(s) {
2075
+ return this.$options.filters.dictData(s);
2076
+ }
2077
+ }
2078
+ };
2079
+ var kt = function() {
2080
+ var t = this, e = t._self._c;
2081
+ return e("el-dialog", { ref: "dialog", class: t.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: t.fullscreen, visible: t.visible, width: t.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !1, "append-to-body": !0, top: "80px", "show-close": !1 }, on: { "update:visible": function(a) {
2082
+ t.visible = a;
2083
+ }, closed: t.handleCancel } }, [e("gd-modal-title", { attrs: { slot: "title", title: t.$i18nt("gd.flow.approval.title", "\u5BA1\u6279\u6D41\u7A0B"), fullscreen: t.fullscreen, buttons: t.sysViewButtons, confirmLoading: t.confirmLoading, closed: "handleCancel", showClose: !0 }, on: { changeEvent: t.doEvent, toggleFullscreen: t.toggleFullscreen }, slot: "title" }), e("div", { staticClass: "dsteps", staticStyle: { position: "absolute", left: "50%", top: "0px", transform: "translateX(-50%)", display: "flex", "justify-content": "center", "z-index": "12", width: "50%", height: "54px", "align-items": "center" } }, [e("el-steps", { attrs: { active: t.current, simple: "" }, on: { change: t.onChange } }, [e("el-step", { staticStyle: { cursor: "pointer" }, attrs: { title: t.$i18nt("gd.flow.basicSettings", "\u57FA\u7840\u8BBE\u7F6E"), status: t.status }, nativeOn: { click: function(a) {
2084
+ return t.changeCurrent(0);
2085
+ } } }), e("el-step", { staticStyle: { cursor: "pointer" }, attrs: { title: t.$i18nt("gd.flow.processDesign", "\u6D41\u7A0B\u8BBE\u8BA1") }, nativeOn: { click: function(a) {
2086
+ return t.changeCurrent(1);
2087
+ } } })], 1)], 1), e("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }], class: t.fullscreen ? "modal-bodyq" : "modal-body", staticStyle: { "overflow-x": "auto" } }, [e("div", { directives: [{ name: "show", rawName: "v-show", value: t.current == 1, expression: "current == 1" }], staticClass: "suo" }, [e("i", { staticClass: "el-icon-remove-outline", staticStyle: { "font-size": "22px", cursor: "pointer" }, on: { click: function(a) {
2088
+ return t.plusAdd("-");
2089
+ } } }), e("div", { staticClass: "bi" }, [e("a", [t._v(t._s(t.scaleVal) + "%")])]), e("i", { staticClass: "el-icon-circle-plus-outline", staticStyle: { "font-size": "22px", cursor: "pointer" }, on: { click: function(a) {
2090
+ return t.plusAdd("+");
2091
+ } } })]), e("Settings", { directives: [{ name: "show", rawName: "v-show", value: t.current == 0, expression: "current == 0" }], ref: "settings", attrs: { status: t.status, stateCodes: t.stateCodes, permissionsBnt: t.permissionsBnt, startCategory: t.startCategory }, on: { next: t.sbumitNext } }), e("gd-approval-flow", { directives: [{ name: "show", rawName: "v-show", value: t.current == 1, expression: "current == 1" }], ref: "flowsDesigner", attrs: { menberList: t.menberList, stateCodes: t.stateCodes, permissionsBnt: t.permissionsBnt, scaleVal: t.scaleVal, startCategory: t.startCategory, prefixKey: t.prefixKey, operationStatus: t.record ? "edit" : "add" } })], 1)], 1);
2092
+ }, Lt = [], St = /* @__PURE__ */ h(
2093
+ Ct,
2094
+ kt,
2095
+ Lt,
2096
+ !1,
2097
+ null,
2098
+ "12ca673a",
2099
+ null,
2100
+ null
2101
+ );
2102
+ const Tt = St.exports, Dt = {
2103
+ data() {
2104
+ return {
2105
+ tableColumns: [{
2106
+ type: "selection",
2107
+ width: "60"
2108
+ }, {
2109
+ transKey: "gd.flow.processName",
2110
+ prop: "name",
2111
+ label: "\u6D41\u7A0B\u540D\u79F0",
2112
+ width: "260",
2113
+ type: "slot",
2114
+ slotType: "name",
2115
+ align: "left",
2116
+ showOverflowTooltip: !0
2117
+ }, {
2118
+ transKey: "gd.process.tableSort",
2119
+ prop: "sysCodeGenId",
2120
+ label: "\u8868\u540D\u79F0(\u70B9\u51FB\u53EF\u6392\u5E8F)",
2121
+ width: "260",
2122
+ type: "slot",
2123
+ slotType: "sysCodeGenId",
2124
+ align: "left",
2125
+ showOverflowTooltip: !0
2126
+ }, {
2127
+ transKey: "gd.flow.state",
2128
+ prop: "stateCodes",
2129
+ width: "160",
2130
+ label: "\u72B6\u6001",
2131
+ type: "slot",
2132
+ slotType: "stateCodes",
2133
+ align: "left"
2134
+ }, {
2135
+ transKey: "gd.flow.creationTime",
2136
+ prop: "createdtime",
2137
+ width: "180",
2138
+ label: "\u521B\u5EFA\u65F6\u95F4",
2139
+ align: "center"
2140
+ }, {
2141
+ transKey: "gd.flow.explain",
2142
+ prop: "description",
2143
+ width: "260",
2144
+ label: "\u8BF4\u660E",
2145
+ align: "left"
2146
+ }],
2147
+ tableButtons: [
2148
+ {
2149
+ displayName: "\u65B0\u589E",
2150
+ functionName: "add",
2151
+ show: !0,
2152
+ transKey: "gd.btn.add",
2153
+ icon: "el-icon-plus",
2154
+ name: "sysFlowProcess:add"
2155
+ },
2156
+ {
2157
+ displayName: "\u7F16\u8F91",
2158
+ functionName: "edit",
2159
+ show: !0,
2160
+ transKey: "gd.btn.edit",
2161
+ icon: "el-icon-edit",
2162
+ name: "sysFlowProcess:edit"
2163
+ },
2164
+ {
2165
+ displayName: "\u5220\u9664",
2166
+ functionName: "del",
2167
+ show: !0,
2168
+ transKey: "gd.btn.del",
2169
+ icon: "el-icon-delete",
2170
+ btnType: "danger",
2171
+ name: "sysFlowProcess:delete"
2172
+ },
2173
+ {
2174
+ displayName: "\u6392\u5E8F",
2175
+ functionName: "sortSel",
2176
+ show: !0,
2177
+ transKey: "gd.btn.sort",
2178
+ icon: "el-icon-rank",
2179
+ name: "sysFlowProcess:sort"
2180
+ }
2181
+ ],
2182
+ tableQueries: [{
2183
+ transKey: "gd.process.tableSor",
2184
+ prop: "tableId",
2185
+ label: "\u8868\u540D\u79F0",
2186
+ effectType: "selectTable",
2187
+ rules: []
2188
+ }, {
2189
+ transKey: "gd.flow.state",
2190
+ prop: "stateCodes",
2191
+ label: "\u72B6\u6001",
2192
+ effectType: "select",
2193
+ dictTypeCode: "state_code",
2194
+ rules: []
2195
+ }]
2196
+ };
2197
+ }
2198
+ };
2199
+ const xt = {
2200
+ props: {
2201
+ height: {
2202
+ type: Number,
2203
+ default: 0
2204
+ }
2205
+ },
2206
+ mixins: [v, Dt],
2207
+ data() {
2208
+ return {
2209
+ selectedRows: [],
2210
+ selectedRowKeys: [],
2211
+ queryParam: {},
2212
+ loadData: (s) => R(Object.assign(s, this.queryParam)).then((t) => (this.upStatuList = null, t.data)),
2213
+ detail: {}
2214
+ };
2215
+ },
2216
+ computed: {
2217
+ getHeight() {
2218
+ return this.height - 55;
2219
+ },
2220
+ styled() {
2221
+ return this.$hasPerm("sysFlowProcess:edit") ? `color:${this.primaryColor};cursor: pointer;` : "";
2222
+ },
2223
+ ...y(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
2224
+ },
2225
+ components: {
2226
+ flowDesign: rt,
2227
+ FlowsSort: D
2228
+ },
2229
+ methods: {
2230
+ add() {
2231
+ this.transKey = "gd.btn.add", this.visible = !0, this.$refs.flowDesign.open(null);
2232
+ },
2233
+ edit() {
2234
+ if (this.selectedRowKeys.length === 0) {
2235
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
2236
+ return;
2237
+ }
2238
+ if (this.selectedRowKeys.length > 1) {
2239
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
2240
+ return;
2241
+ }
2242
+ this.editForm(this.selectedRows[0]);
2243
+ },
2244
+ del() {
2245
+ if (this.selectedRowKeys.length === 0) {
2246
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
2247
+ return;
2248
+ }
2249
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2250
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
2251
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2252
+ showClose: !1,
2253
+ confirmButtonLoading: !1,
2254
+ cancelButtonLoading: !1,
2255
+ closeOnClickModal: !1,
2256
+ type: "warning",
2257
+ confirmButtonClass: "el-button--danger",
2258
+ customClass: "custom-alert",
2259
+ callback: () => {
2260
+ },
2261
+ beforeClose: (s, t, e) => {
2262
+ this.delHand(s, t, e);
2263
+ }
2264
+ });
2265
+ },
2266
+ delHand(s, t, e) {
2267
+ if (s !== "confirm") {
2268
+ e();
2269
+ return;
2270
+ }
2271
+ let a = [], l = O({
2272
+ ids: this.selectedRowKeys.join(",")
2273
+ }).then((i) => i);
2274
+ a.push(l), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(a).then((i) => {
2275
+ e(), t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0;
2276
+ const n = i.filter((o) => !o.success);
2277
+ n.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n[0].message), this.refresh();
2278
+ });
2279
+ },
2280
+ enabling(s) {
2281
+ let t = Object.assign(
2282
+ {
2283
+ ...s
2284
+ },
2285
+ {
2286
+ statecodes: s.statecodes == 1 ? 0 : 1
2287
+ }
2288
+ ), e = s.statecodes == 1 ? "\u662F\u5426\u7981\u7528?" : "\u662F\u5426\u542F\u7528?";
2289
+ this.$confirm(e, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2290
+ confirmButtonText: s.statecodes == 1 ? this.$i18nt("gd.state.disable") : this.$i18nt("gd.state.enable"),
2291
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2292
+ showClose: !1,
2293
+ confirmButtonLoading: !1,
2294
+ cancelButtonLoading: !1,
2295
+ closeOnClickModal: !1,
2296
+ type: "warning",
2297
+ confirmButtonClass: "el-button--danger",
2298
+ customClass: "custom-alert",
2299
+ callback: () => {
2300
+ },
2301
+ beforeClose: (a, l, i) => {
2302
+ this.enabHand(a, l, i, t);
2303
+ }
2304
+ });
2305
+ },
2306
+ enabHand(s, t, e, a) {
2307
+ if (s !== "confirm") {
2308
+ e();
2309
+ return;
2310
+ }
2311
+ let l = [], i = $(a).then((n) => n);
2312
+ l.push(i), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(l).then((n) => {
2313
+ t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, e();
2314
+ const o = n.filter((r) => !r.success);
2315
+ o.length === 0 ? this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25") + o[0].message), this.refresh();
2316
+ });
2317
+ },
2318
+ onSelectChange(s, t) {
2319
+ this.selectedRowKeys = s, this.selectedRows = t;
2320
+ },
2321
+ saveQueries(s) {
2322
+ this.queryParam = {
2323
+ ...s
2324
+ }, this.refresh();
2325
+ },
2326
+ editForm(s) {
2327
+ this.$refs.flowDesign.open(s.id);
2328
+ },
2329
+ sortList(s) {
2330
+ !this.$hasPerm("sysFlowProcess:sort") || (this.detail = s, this.$nextTick(() => {
2331
+ setTimeout(() => {
2332
+ this.$refs.flowsSort.open();
2333
+ }, 0);
2334
+ }));
2335
+ },
2336
+ sortSel() {
2337
+ if (this.selectedRowKeys.length === 0) {
2338
+ this.$message.warning(this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"));
2339
+ return;
2340
+ }
2341
+ if (this.selectedRowKeys.length > 1) {
2342
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
2343
+ return;
2344
+ }
2345
+ this.detail = this.selectedRows[0], this.$nextTick(() => {
2346
+ setTimeout(() => {
2347
+ this.$refs.flowsSort.open();
2348
+ }, 0);
2349
+ });
2350
+ },
2351
+ refresh() {
2352
+ this.$refs.table.refresh();
2353
+ },
2354
+ dictSwitch(s, t) {
2355
+ let e = this.$options.filters.dictData(t).filter((a) => a.code == s)[0];
2356
+ return e != null && e.colour ? e.colour : null;
2357
+ },
2358
+ doEvent(s) {
2359
+ let t = s.item.functionName;
2360
+ this[t] && this[t]();
2361
+ }
2362
+ }
2363
+ };
2364
+ var Ft = function() {
2365
+ var t = this, e = t._self._c;
2366
+ return e("div", { staticClass: "gd-page-view" }, [e("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [e("gd-tables", { ref: "table", attrs: { dataSource: t.loadData, size: t.tableSize, pageSize: t.tablePageSize, columns: t.tableColumns, selectedRowKeys: t.selectedRowKeys, height: t.getHeight, filtering: !0, initialLoading: !0 }, on: { onChange: t.onSelectChange }, scopedSlots: t._u([{ key: "operator", fn: function() {
2367
+ return [e("div", { staticClass: "gd-table-operator" }, [e("div", { staticClass: "gd-table-operatorl" }, [e("el-select", { staticClass: "table-operator-input", staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.table.tableNameTip", "\u8BF7\u8F93\u5165\u8868\u540D\u79F0"), "reserve-keyword": "", clearable: "", "collapse-tags": !0 }, model: { value: t.queryParam.tableId, callback: function(a) {
2368
+ t.$set(t.queryParam, "tableId", a);
2369
+ }, expression: "queryParam.tableId" } }, t._l(t.tableLists, function(a) {
2370
+ return e("el-option", { key: a.id, attrs: { label: t.$i18nt(`Dynamics.${a.transkey}`, a.busname), value: a.id } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${a.transkey}`, a.busname)) + " " + t._s(a.tablename) + " ")]);
2371
+ }), 1), e("div", { staticClass: "table-operator-search", on: { click: t.refresh } }, [e("i", { staticClass: "el-input__icon el-icon-search" })])], 1), e("div", { staticClass: "gd-table-operatorr" }, [e("gd-btn-list", { attrs: { sysViewButtons: t.tableButtons }, on: { functionName: t.doEvent } })], 1)])];
2372
+ }, proxy: !0 }, { key: "name", fn: function({ column: a, row: l }) {
2373
+ return [e("div", { staticClass: "active-color line1", staticStyle: { cursor: "pointer" }, on: { click: function(i) {
2374
+ return t.editForm(l);
2375
+ } } }, [t._v(t._s(l.name))])];
2376
+ } }, { key: "sysCodeGenId", fn: function({ column: a, row: l }) {
2377
+ return [l.syscodegen ? e("span", { style: t.styled, on: { click: function(i) {
2378
+ return t.sortList(l);
2379
+ } } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${l.syscodegen.transkey}`, l.syscodegen.busname)) + " ")]) : t._e()];
2380
+ } }, { key: "stateCodes", fn: function(a) {
2381
+ return [t.dictSwitch(a.row.statecodes, "state_code") ? e("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: t.dictSwitch(a.row.statecodes, "state_code") }, on: { click: function(l) {
2382
+ return t.enabling(a.row);
2383
+ } } }, [t._v(" " + t._s(t._f("dictType")("state_code", a.row.statecodes)) + " ")]) : e("span", { on: { click: function(l) {
2384
+ return t.enabling(a.row);
2385
+ } } }, [t._v(t._s(t._f("dictType")("state_code", a.row.statecodes)))])];
2386
+ } }, { key: "filtering", fn: function({ colse: a, visible: l }) {
2387
+ return [e("gd-table-queries-field", { attrs: { columns: t.tableQueries, height: t.getHeight, queryParam: t.queryParam, colse: a, visible: l }, on: { save: t.saveQueries } })];
2388
+ } }]) })], 1), e("flowDesign", { ref: "flowDesign", on: { ok: t.refresh } }), e("FlowsSort", { ref: "flowsSort", attrs: { record: t.detail }, on: { ok: t.refresh } })], 1);
2389
+ }, Pt = [], Bt = /* @__PURE__ */ h(
2390
+ xt,
2391
+ Ft,
2392
+ Pt,
2393
+ !1,
2394
+ null,
2395
+ "fc2db8b4",
2396
+ null,
2397
+ null
2398
+ );
2399
+ const Nt = Bt.exports, It = {
2400
+ data() {
2401
+ return {
2402
+ tableColumns: [{
2403
+ type: "selection",
2404
+ width: "60"
2405
+ }, {
2406
+ transKey: "gd.flow.processName",
2407
+ prop: "name",
2408
+ label: "\u6D41\u7A0B\u540D\u79F0",
2409
+ width: "260",
2410
+ type: "slot",
2411
+ slotType: "name",
2412
+ align: "left",
2413
+ showOverflowTooltip: !0
2414
+ }, {
2415
+ transKey: "gd.process.tableSort",
2416
+ prop: "sysCodeGenId",
2417
+ label: "\u8868\u540D\u79F0",
2418
+ width: "260",
2419
+ type: "slot",
2420
+ slotType: "sysCodeGenId",
2421
+ align: "left",
2422
+ showOverflowTooltip: !0
2423
+ }, {
2424
+ transKey: "gd.flow.state",
2425
+ prop: "stateCodes",
2426
+ width: "160",
2427
+ label: "\u72B6\u6001",
2428
+ type: "slot",
2429
+ slotType: "stateCodes",
2430
+ align: "left"
2431
+ }, {
2432
+ transKey: "gd.flow.creationTime",
2433
+ prop: "createdtime",
2434
+ width: "160",
2435
+ label: "\u521B\u5EFA\u65F6\u95F4",
2436
+ align: "center"
2437
+ }],
2438
+ tableButtons: [
2439
+ {
2440
+ displayName: "\u65B0\u589E",
2441
+ functionName: "add",
2442
+ show: !0,
2443
+ transKey: "gd.btn.add",
2444
+ icon: "el-icon-plus",
2445
+ name: "sysFlowWork:add"
2446
+ },
2447
+ {
2448
+ displayName: "\u7F16\u8F91",
2449
+ functionName: "edit",
2450
+ show: !0,
2451
+ transKey: "gd.btn.edit",
2452
+ icon: "el-icon-edit",
2453
+ name: "sysFlowWork:edit"
2454
+ },
2455
+ {
2456
+ displayName: "\u5220\u9664",
2457
+ functionName: "del",
2458
+ show: !0,
2459
+ transKey: "gd.btn.del",
2460
+ icon: "el-icon-delete",
2461
+ btnType: "danger",
2462
+ name: "sysFlowWork:delete"
2463
+ }
2464
+ ],
2465
+ tableQueries: [{
2466
+ transKey: "gd.process.tableSor",
2467
+ prop: "tableId",
2468
+ label: "\u8868\u540D\u79F0",
2469
+ effectType: "selectTable",
2470
+ rules: []
2471
+ }, {
2472
+ transKey: "gd.flow.state",
2473
+ prop: "stateCodes",
2474
+ label: "\u72B6\u6001",
2475
+ effectType: "select",
2476
+ dictTypeCode: "state_code",
2477
+ rules: []
2478
+ }]
2479
+ };
2480
+ }
2481
+ };
2482
+ const Mt = {
2483
+ props: {
2484
+ height: {
2485
+ type: Number,
2486
+ default: 0
2487
+ }
2488
+ },
2489
+ mixins: [v, It],
2490
+ data() {
2491
+ return {
2492
+ selectedRows: [],
2493
+ selectedRowKeys: [],
2494
+ queryParam: {},
2495
+ loadData: (s) => A(Object.assign(s, this.queryParam)).then((t) => (this.upStatuList = null, t.data)),
2496
+ confirmLoading: !1,
2497
+ upStatuList: null
2498
+ };
2499
+ },
2500
+ computed: {
2501
+ getHeight() {
2502
+ return this.height - 55;
2503
+ },
2504
+ ...y(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
2505
+ },
2506
+ components: {
2507
+ flowDesign: yt
2508
+ },
2509
+ methods: {
2510
+ add() {
2511
+ this.transKey = "gd.btn.add", this.visible = !0, this.$refs.flowDesign.open(null);
2512
+ },
2513
+ edit() {
2514
+ if (this.selectedRowKeys.length === 0) {
2515
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
2516
+ return;
2517
+ }
2518
+ if (this.selectedRowKeys.length > 1) {
2519
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
2520
+ return;
2521
+ }
2522
+ this.editForm(this.selectedRows[0]);
2523
+ },
2524
+ del() {
2525
+ if (this.selectedRowKeys.length === 0) {
2526
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
2527
+ return;
2528
+ }
2529
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2530
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
2531
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2532
+ showClose: !1,
2533
+ confirmButtonLoading: !1,
2534
+ cancelButtonLoading: !1,
2535
+ closeOnClickModal: !1,
2536
+ type: "warning",
2537
+ confirmButtonClass: "el-button--danger",
2538
+ customClass: "custom-alert",
2539
+ callback: () => {
2540
+ },
2541
+ beforeClose: (s, t, e) => {
2542
+ this.delHand(s, t, e);
2543
+ }
2544
+ });
2545
+ },
2546
+ delHand(s, t, e) {
2547
+ if (s !== "confirm") {
2548
+ e();
2549
+ return;
2550
+ }
2551
+ let a = [], l = j({
2552
+ ids: this.selectedRowKeys.join(",")
2553
+ }).then((i) => i);
2554
+ a.push(l), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(a).then((i) => {
2555
+ t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, e();
2556
+ const n = i.filter((o) => !o.success);
2557
+ n.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n[0].message), this.refresh(), t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0;
2558
+ });
2559
+ },
2560
+ getDetail(s) {
2561
+ this.confirmLoading = !0, C({
2562
+ id: s
2563
+ }).then((t) => {
2564
+ t.success && (this.upStatuList = t.data);
2565
+ });
2566
+ },
2567
+ enabling(s) {
2568
+ if (!this.$hasPerm("sysFlowWork:edit"))
2569
+ return;
2570
+ this.getDetail(s.id);
2571
+ let t = s.statecodes == 1 ? "\u662F\u5426\u7981\u7528?" : "\u662F\u5426\u542F\u7528?";
2572
+ this.$confirm(t, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2573
+ confirmButtonText: s.statecodes == 1 ? this.$i18nt("gd.state.disable", "\u7981\u7528") : this.$i18nt("gd.state.enable", "\u542F\u7528"),
2574
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2575
+ showClose: !1,
2576
+ confirmButtonLoading: !1,
2577
+ cancelButtonLoading: !1,
2578
+ closeOnClickModal: !1,
2579
+ type: "warning",
2580
+ confirmButtonClass: "el-button--danger",
2581
+ customClass: "custom-alert",
2582
+ callback: () => {
2583
+ },
2584
+ beforeClose: (e, a, l) => {
2585
+ this.upStatuList.data.statecodes = s.statecodes == 1 ? 0 : 1, this.enabHand(e, a, l, this.upStatuList);
2586
+ }
2587
+ });
2588
+ },
2589
+ enabHand(s, t, e, a) {
2590
+ if (s !== "confirm") {
2591
+ e();
2592
+ return;
2593
+ }
2594
+ let l = [], i = k(a).then((n) => n);
2595
+ l.push(i), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(l).then((n) => {
2596
+ t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, e();
2597
+ const o = n.filter((r) => !r.success);
2598
+ o.length === 0 ? this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25") + o[0].message), this.refresh();
2599
+ });
2600
+ },
2601
+ onSelectChange(s, t) {
2602
+ this.selectedRowKeys = s, this.selectedRows = t;
2603
+ },
2604
+ saveQueries(s) {
2605
+ this.queryParam = {
2606
+ ...s
2607
+ }, this.refresh();
2608
+ },
2609
+ editForm(s) {
2610
+ this.$refs.flowDesign.open(s.id);
2611
+ },
2612
+ refresh() {
2613
+ this.upStatuList = null, this.$refs.table.refresh();
2614
+ },
2615
+ dictSwitch(s, t) {
2616
+ let e = this.$options.filters.dictData(t).filter((a) => a.code == s)[0];
2617
+ return e != null && e.colour ? e.colour : null;
2618
+ },
2619
+ doEvent(s) {
2620
+ let t = s.item.functionName;
2621
+ this[t] && this[t]();
2622
+ }
2623
+ }
2624
+ };
2625
+ var Kt = function() {
2626
+ var t = this, e = t._self._c;
2627
+ return e("div", { staticClass: "gd-page-view" }, [e("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [e("gd-tables", { ref: "table", attrs: { dataSource: t.loadData, size: t.tableSize, pageSize: t.tablePageSize, columns: t.tableColumns, selectedRowKeys: t.selectedRowKeys, height: t.getHeight, initialLoading: !1, filtering: !0 }, on: { onChange: t.onSelectChange }, scopedSlots: t._u([{ key: "operator", fn: function() {
2628
+ return [e("div", { staticClass: "gd-table-operator" }, [e("div", { staticClass: "gd-table-operatorl" }, [e("el-select", { staticClass: "table-operator-input", staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.table.tableNameTip", "\u8BF7\u8F93\u5165\u8868\u540D\u79F0"), "reserve-keyword": "", clearable: "", "collapse-tags": !0 }, model: { value: t.queryParam.tableId, callback: function(a) {
2629
+ t.$set(t.queryParam, "tableId", a);
2630
+ }, expression: "queryParam.tableId" } }, t._l(t.tableLists, function(a) {
2631
+ return e("el-option", { key: a.id, attrs: { label: t.$i18nt(`Dynamics.${a.transkey}`, a.busname), value: a.id } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${a.transkey}`, a.busname)) + " " + t._s(a.tablename) + " ")]);
2632
+ }), 1), e("div", { staticClass: "table-operator-search", on: { click: t.refresh } }, [e("i", { staticClass: "el-input__icon el-icon-search" })])], 1), e("div", { staticClass: "gd-table-operatorr" }, [e("gd-btn-list", { attrs: { sysViewButtons: t.tableButtons }, on: { functionName: t.doEvent } })], 1)])];
2633
+ }, proxy: !0 }, { key: "name", fn: function({ column: a, row: l }) {
2634
+ return [e("gd-tooltip", { attrs: { rowKey: "name", row: l, highlight: "" }, on: { click: t.editForm } })];
2635
+ } }, { key: "sysCodeGenId", fn: function({ column: a, row: l }) {
2636
+ return [l.syscodegen ? e("span", [t._v(" " + t._s(t.$i18nt(`Dynamics.${l.syscodegen.transkey}`, l.syscodegen.busname)) + " ")]) : t._e()];
2637
+ } }, { key: "stateCodes", fn: function(a) {
2638
+ return [t.dictSwitch(a.row.statecodes, "state_code") ? e("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: t.dictSwitch(a.row.statecodes, "state_code") }, on: { click: function(l) {
2639
+ return t.enabling(a.row);
2640
+ } } }, [t._v(" " + t._s(t._f("dictType")("state_code", a.row.statecodes)) + " ")]) : e("span", { on: { click: function(l) {
2641
+ return t.enabling(a.row);
2642
+ } } }, [t._v(t._s(t._f("dictType")("state_code", a.row.statecodes)))])];
2643
+ } }, { key: "filtering", fn: function({ colse: a, visible: l }) {
2644
+ return [e("gd-table-queries-field", { attrs: { columns: t.tableQueries, height: t.getHeight, queryParam: t.queryParam, colse: a, visible: l }, on: { save: t.saveQueries } })];
2645
+ } }]) })], 1), e("flowDesign", { ref: "flowDesign", on: { ok: t.refresh } })], 1);
2646
+ }, Rt = [], Ot = /* @__PURE__ */ h(
2647
+ Mt,
2648
+ Kt,
2649
+ Rt,
2650
+ !1,
2651
+ null,
2652
+ "74b50ecf",
2653
+ null,
2654
+ null
2655
+ );
2656
+ const At = Ot.exports, jt = {
2657
+ data() {
2658
+ return {
2659
+ tableColumns: [{
2660
+ type: "selection",
2661
+ width: "60"
2662
+ }, {
2663
+ transKey: "gd.flow.approval.name",
2664
+ prop: "name",
2665
+ label: "\u540D\u79F0",
2666
+ width: "260",
2667
+ type: "slot",
2668
+ slotType: "name",
2669
+ align: "left",
2670
+ showOverflowTooltip: !0
2671
+ }, {
2672
+ transKey: "gd.flow.approval.table",
2673
+ prop: "tableId",
2674
+ label: "\u5173\u8054\u8868",
2675
+ width: "260",
2676
+ type: "slot",
2677
+ slotType: "tableId",
2678
+ align: "left",
2679
+ showOverflowTooltip: !0
2680
+ }, {
2681
+ transKey: "gd.flow.approval.classify",
2682
+ prop: "category",
2683
+ width: "160",
2684
+ label: "\u5206\u7C7B",
2685
+ type: "slot",
2686
+ slotType: "category",
2687
+ align: "left"
2688
+ }, {
2689
+ transKey: "gd.flow.approval.code",
2690
+ prop: "encode",
2691
+ width: "160",
2692
+ label: "\u7F16\u7801",
2693
+ align: "left"
2694
+ }, {
2695
+ transKey: "gd.flow.state",
2696
+ prop: "stateCodes",
2697
+ width: "120",
2698
+ label: "\u72B6\u6001",
2699
+ type: "slot",
2700
+ slotType: "stateCodes",
2701
+ align: "left"
2702
+ }, {
2703
+ transKey: "gd.flow.creationTime",
2704
+ prop: "createdtime",
2705
+ width: "180",
2706
+ label: "\u521B\u5EFA\u65F6\u95F4",
2707
+ align: "center"
2708
+ }, {
2709
+ transKey: "gd.flow.explain",
2710
+ prop: "description",
2711
+ width: "260",
2712
+ label: "\u8BF4\u660E",
2713
+ align: "left"
2714
+ }],
2715
+ tableButtons: [
2716
+ {
2717
+ displayName: "\u65B0\u589E",
2718
+ functionName: "add",
2719
+ show: !0,
2720
+ transKey: "gd.btn.add",
2721
+ icon: "el-icon-plus",
2722
+ name: "sysFlowApproval:add"
2723
+ },
2724
+ {
2725
+ displayName: "\u7F16\u8F91",
2726
+ functionName: "edit",
2727
+ show: !0,
2728
+ transKey: "gd.btn.edit",
2729
+ icon: "el-icon-edit",
2730
+ name: "sysFlowApproval:edit"
2731
+ },
2732
+ {
2733
+ displayName: "\u5220\u9664",
2734
+ functionName: "del",
2735
+ show: !0,
2736
+ transKey: "gd.btn.del",
2737
+ icon: "el-icon-delete",
2738
+ btnType: "danger",
2739
+ name: "sysFlowApproval:delete"
2740
+ }
2741
+ ],
2742
+ tableQueries: [
2743
+ {
2744
+ transKey: "gd.flow.approval.name",
2745
+ prop: "keyword",
2746
+ label: "\u540D\u79F0",
2747
+ effectType: "input",
2748
+ rules: []
2749
+ },
2750
+ {
2751
+ transKey: "gd.process.tableSor",
2752
+ prop: "tableId",
2753
+ label: "\u8868\u540D\u79F0",
2754
+ effectType: "selectTable",
2755
+ rules: []
2756
+ },
2757
+ {
2758
+ transKey: "gd.flow.state",
2759
+ prop: "stateCodes",
2760
+ label: "\u72B6\u6001",
2761
+ effectType: "select",
2762
+ dictTypeCode: "state_code",
2763
+ rules: []
2764
+ },
2765
+ {
2766
+ transKey: "gd.flow.state",
2767
+ prop: "category",
2768
+ label: "\u5206\u7C7B",
2769
+ effectType: "select",
2770
+ dictTypeCode: "table_flows_type",
2771
+ rules: []
2772
+ }
2773
+ ]
2774
+ };
2775
+ }
2776
+ };
2777
+ const Et = {
2778
+ props: {
2779
+ height: {
2780
+ type: Number,
2781
+ default: 0
2782
+ }
2783
+ },
2784
+ mixins: [v, jt],
2785
+ data() {
2786
+ return {
2787
+ selectedRows: [],
2788
+ selectedRowKeys: [],
2789
+ queryParam: {},
2790
+ loadData: (s) => {
2791
+ let t = {
2792
+ ...this.queryParam
2793
+ };
2794
+ return t.stateCodes != null && (t = Object.assign(
2795
+ {
2796
+ ...t
2797
+ },
2798
+ {
2799
+ stateCodes: t.stateCodes
2800
+ }
2801
+ )), E(Object.assign(s, t)).then((e) => {
2802
+ if (e.code === 200) {
2803
+ const a = e.data.rows.map((l) => {
2804
+ const i = this.tableLists.filter((n) => n.id === l.tableid)[0];
2805
+ return Object.assign(l, i ? { tableData: i } : {});
2806
+ });
2807
+ Object.assign(e.data, { rows: a });
2808
+ }
2809
+ return e.data;
2810
+ });
2811
+ }
2812
+ };
2813
+ },
2814
+ computed: {
2815
+ getHeight() {
2816
+ return this.height - 55;
2817
+ },
2818
+ ...y(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
2819
+ },
2820
+ components: {
2821
+ flowDesign: Tt
2822
+ },
2823
+ methods: {
2824
+ add() {
2825
+ this.transKey = "gd.btn.add", this.visible = !0, this.$refs.flowDesign.open(null);
2826
+ },
2827
+ edit() {
2828
+ if (this.selectedRowKeys.length === 0) {
2829
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
2830
+ return;
2831
+ }
2832
+ if (this.selectedRowKeys.length > 1) {
2833
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
2834
+ return;
2835
+ }
2836
+ this.editForm(this.selectedRows[0]);
2837
+ },
2838
+ del() {
2839
+ if (this.selectedRowKeys.length === 0) {
2840
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
2841
+ return;
2842
+ }
2843
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2844
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
2845
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2846
+ showClose: !1,
2847
+ confirmButtonLoading: !1,
2848
+ cancelButtonLoading: !1,
2849
+ closeOnClickModal: !1,
2850
+ type: "warning",
2851
+ confirmButtonClass: "el-button--danger",
2852
+ customClass: "custom-alert",
2853
+ callback: () => {
2854
+ },
2855
+ beforeClose: (s, t, e) => {
2856
+ this.delHand(s, t, e);
2857
+ }
2858
+ });
2859
+ },
2860
+ delHand(s, t, e) {
2861
+ if (s !== "confirm") {
2862
+ e();
2863
+ return;
2864
+ }
2865
+ let a = [], l = V({
2866
+ ids: this.selectedRowKeys.join(",")
2867
+ }).then((i) => i);
2868
+ a.push(l), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(a).then((i) => {
2869
+ t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, e();
2870
+ const n = i.filter((o) => !o.success);
2871
+ n.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n[0].message), this.refresh();
2872
+ });
2873
+ },
2874
+ enabling(s) {
2875
+ let t = Object.assign(
2876
+ {
2877
+ ...s
2878
+ },
2879
+ {
2880
+ statecodes: s.statecodes == 1 ? 0 : 1
2881
+ }
2882
+ ), e = s.statecodes == 1 ? "\u662F\u5426\u7981\u7528?" : "\u662F\u5426\u542F\u7528?";
2883
+ this.$confirm(e, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2884
+ confirmButtonText: s.statecodes == 1 ? this.$i18nt("gd.state.disable") : this.$i18nt("gd.state.enable"),
2885
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2886
+ showClose: !1,
2887
+ confirmButtonLoading: !1,
2888
+ cancelButtonLoading: !1,
2889
+ closeOnClickModal: !1,
2890
+ type: "warning",
2891
+ confirmButtonClass: "el-button--danger",
2892
+ customClass: "custom-alert",
2893
+ callback: () => {
2894
+ },
2895
+ beforeClose: (a, l, i) => {
2896
+ this.enabHand(a, l, i, t);
2897
+ }
2898
+ });
2899
+ },
2900
+ enabHand(s, t, e, a) {
2901
+ if (s !== "confirm") {
2902
+ e();
2903
+ return;
2904
+ }
2905
+ let l = [], i = L(a).then((n) => n);
2906
+ l.push(i), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(l).then((n) => {
2907
+ e(), t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0;
2908
+ const o = n.filter((r) => !r.success);
2909
+ o.length === 0 ? this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25") + o[0].message), this.refresh();
2910
+ });
2911
+ },
2912
+ onSelectChange(s, t) {
2913
+ this.selectedRowKeys = s, this.selectedRows = t;
2914
+ },
2915
+ saveQueries(s) {
2916
+ this.queryParam = {
2917
+ ...s
2918
+ }, this.refresh();
2919
+ },
2920
+ editForm(s) {
2921
+ this.$refs.flowDesign.open(s.id);
2922
+ },
2923
+ refresh() {
2924
+ this.$refs.table.refresh();
2925
+ },
2926
+ dictSwitch(s, t) {
2927
+ let e = this.$options.filters.dictData(t).filter((a) => a.code == s)[0];
2928
+ return e && e.colour ? e.colour : null;
2929
+ },
2930
+ doEvent(s) {
2931
+ let t = s.item.functionName;
2932
+ this[t] && this[t]();
2933
+ }
2934
+ }
2935
+ };
2936
+ var Vt = function() {
2937
+ var t = this, e = t._self._c;
2938
+ return e("div", { staticClass: "gd-page-view" }, [e("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [e("gd-tables", { ref: "table", attrs: { dataSource: t.loadData, size: t.tableSize, pageSize: t.tablePageSize, columns: t.tableColumns, selectedRowKeys: t.selectedRowKeys, height: t.getHeight, initialLoading: !1, filtering: !0 }, on: { onChange: t.onSelectChange }, scopedSlots: t._u([{ key: "operator", fn: function() {
2939
+ return [e("div", { staticClass: "gd-table-operator" }, [e("div", { staticClass: "gd-table-operatorl" }, [e("el-input", { staticClass: "table-operator-input", attrs: { placeholder: t.$i18nt("gd.flow.approval.name", "\u540D\u79F0"), clearable: "" }, nativeOn: { keyup: function(a) {
2940
+ return !a.type.indexOf("key") && t._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : t.refresh.apply(null, arguments);
2941
+ } }, model: { value: t.queryParam.keyword, callback: function(a) {
2942
+ t.$set(t.queryParam, "keyword", a);
2943
+ }, expression: "queryParam.keyword" } }), e("div", { staticClass: "table-operator-search", on: { click: t.refresh } }, [e("i", { staticClass: "el-input__icon el-icon-search" })])], 1), e("div", { staticClass: "gd-table-operatorr" }, [e("gd-btn-list", { attrs: { sysViewButtons: t.tableButtons }, on: { functionName: t.doEvent } })], 1)])];
2944
+ }, proxy: !0 }, { key: "name", fn: function({ column: a, row: l }) {
2945
+ return [e("gd-tooltip", { attrs: { rowKey: "name", row: l, highlight: "" }, on: { click: t.editForm } })];
2946
+ } }, { key: "tableId", fn: function({ column: a, row: l }) {
2947
+ return [l.tableData ? e("span", [t._v(t._s(t.$i18nt(`Dynamics.${l.tableData.transkey}`, l.tableData.busname)))]) : t._e()];
2948
+ } }, { key: "stateCodes", fn: function(a) {
2949
+ return [t.dictSwitch(a.row.statecodes, "state_code") ? e("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: t.dictSwitch(a.row.statecodes, "state_code") }, on: { click: function(l) {
2950
+ return t.enabling(a.row);
2951
+ } } }, [t._v(" " + t._s(t._f("dictType")("state_code", a.row.statecodes)) + " ")]) : e("span", { on: { click: function(l) {
2952
+ return t.enabling(a.row);
2953
+ } } }, [t._v(t._s(t._f("dictType")("state_code", a.row.statecodes)))])];
2954
+ } }, { key: "category", fn: function(a) {
2955
+ return [e("span", [t._v(t._s(t._f("dictType")("table_flows_type", a.row.category)))])];
2956
+ } }, { key: "filtering", fn: function({ colse: a, visible: l }) {
2957
+ return [e("gd-table-queries-field", { attrs: { columns: t.tableQueries, height: t.getHeight, queryParam: t.queryParam, colse: a, visible: l }, on: { save: t.saveQueries } })];
2958
+ } }]) })], 1), e("flowDesign", { ref: "flowDesign", on: { ok: t.refresh } })], 1);
2959
+ }, Gt = [], Jt = /* @__PURE__ */ h(
2960
+ Et,
2961
+ Vt,
2962
+ Gt,
2963
+ !1,
2964
+ null,
2965
+ "f0f853e0",
2966
+ null,
2967
+ null
2968
+ );
2969
+ const qt = Jt.exports;
2970
+ const zt = {
2971
+ props: {
2972
+ height: {
2973
+ type: Number,
2974
+ default: 0
2975
+ }
2976
+ },
2977
+ name: "GdFlowList",
2978
+ data() {
2979
+ return {
2980
+ type: "process"
2981
+ };
2982
+ },
2983
+ computed: {
2984
+ getHeight() {
2985
+ return this.height;
2986
+ }
2987
+ },
2988
+ components: {
2989
+ processFlow: Nt,
2990
+ workFlow: At,
2991
+ approvalFlow: qt
2992
+ },
2993
+ mounted() {
2994
+ this.$hasPerm("sysFlowProcess:page") ? this.type = "process" : this.$hasPerm("sysFlowWork:page") ? this.type = "work" : this.$hasPerm("sysFlowApproval:page") && (this.type = "approval");
2995
+ },
2996
+ methods: {
2997
+ tabChange(s) {
2998
+ this.$nextTick(() => {
2999
+ setTimeout(() => {
3000
+ this.$refs[this.type + "Flow"].refresh();
3001
+ }, 0);
3002
+ });
3003
+ }
3004
+ }
3005
+ };
3006
+ var Ht = function() {
3007
+ var t = this, e = t._self._c;
3008
+ return e("div", [e("el-tabs", { attrs: { type: "card" }, on: { "tab-click": t.tabChange }, model: { value: t.type, callback: function(a) {
3009
+ t.type = a;
3010
+ }, expression: "type" } }, [t.$hasPerm("sysFlowProcess:page") ? e("el-tab-pane", { attrs: { name: "process", label: t.$i18nt("gd.flow.process.title", "\u4E1A\u52A1\u6D41\u7A0B") } }, [t.type == "process" ? e("processFlow", { ref: "processFlow", attrs: { height: t.getHeight } }) : t._e()], 1) : t._e(), t.$hasPerm("sysFlowWork:page") ? e("el-tab-pane", { attrs: { name: "work", label: t.$i18nt("gd.flow.work.title", "\u5DE5\u4F5C\u6D41\u7A0B") } }, [t.type == "work" ? e("workFlow", { ref: "workFlow", attrs: { height: t.getHeight } }) : t._e()], 1) : t._e(), t.$hasPerm("sysFlowApproval:page") ? e("el-tab-pane", { attrs: { name: "approval", label: t.$i18nt("gd.flow.approval.title", "\u5BA1\u6279\u6D41\u7A0B") } }, [t.type == "approval" ? e("approvalFlow", { ref: "approvalFlow", attrs: { height: t.getHeight } }) : t._e()], 1) : t._e()], 1)], 1);
3011
+ }, Wt = [], Qt = /* @__PURE__ */ h(
3012
+ zt,
3013
+ Ht,
3014
+ Wt,
3015
+ !1,
3016
+ null,
3017
+ "0119a45c",
3018
+ null,
3019
+ null
3020
+ );
3021
+ const _ = Qt.exports;
3022
+ _.install = function(s) {
3023
+ s.component(_.name, _);
3024
+ };
3025
+ export {
3026
+ _ as G,
3027
+ yt as a,
3028
+ Tt as b,
3029
+ rt as f
3030
+ };