gds-plus-design-vue 1.2.5 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/lib/approvalModel.a26e8ff6.mjs +340 -0
  2. package/lib/approvalModel.cfd81971.js +1 -0
  3. package/lib/btnFunctionName.9aabfed0.js +1 -0
  4. package/lib/btnFunctionName.d08627cb.mjs +254 -0
  5. package/lib/btnRelation.8e608261.mjs +156 -0
  6. package/lib/btnRelation.cb3dc022.js +1 -0
  7. package/lib/businessRules.754cc398.mjs +539 -0
  8. package/lib/businessRules.f41f7035.js +1 -0
  9. package/lib/buttonRule.4483314f.mjs +396 -0
  10. package/lib/buttonRule.645de1d3.js +1 -0
  11. package/lib/chartDisplayRules.1f4d1f29.mjs +288 -0
  12. package/lib/chartDisplayRules.fedfefe8.js +1 -0
  13. package/lib/components.chartbi.470b96af.mjs +1798 -0
  14. package/lib/components.chartbi.e9459775.js +8 -0
  15. package/lib/components.coloreditor.affa0400.mjs +1505 -0
  16. package/lib/components.coloreditor.dbec8da6.js +6 -0
  17. package/lib/components.dataassign.39281072.mjs +147 -0
  18. package/lib/components.dataassign.b6a1bffb.js +1 -0
  19. package/lib/components.echarts.95ffc3b3.mjs +811 -0
  20. package/lib/components.echarts.d09e9850.js +4 -0
  21. package/lib/components.exception.11315db5.js +1 -0
  22. package/lib/components.exception.facf9df9.mjs +61 -0
  23. package/lib/components.form.56ea8f98.js +41 -0
  24. package/lib/components.form.a7b3ea37.mjs +7813 -0
  25. package/lib/components.globalheader.0a7ce959.js +1 -0
  26. package/lib/components.globalheader.4a5f7225.mjs +54 -0
  27. package/lib/components.iconselector.0c03cfc7.js +1 -0
  28. package/lib/components.iconselector.251c29b9.mjs +1169 -0
  29. package/lib/components.imgpreview.5546e541.mjs +213 -0
  30. package/lib/components.imgpreview.706a89f0.js +1 -0
  31. package/lib/components.lunccalendar.5363cba5.mjs +1137 -0
  32. package/lib/components.lunccalendar.fe7db238.js +1 -0
  33. package/lib/components.middleware.01601349.js +1 -0
  34. package/lib/components.middleware.f5f4ac0f.mjs +148 -0
  35. package/lib/components.modaltitle.5ded43f9.mjs +127 -0
  36. package/lib/components.modaltitle.cc9ba616.js +1 -0
  37. package/lib/components.multitab.0f9da9f3.mjs +140 -0
  38. package/lib/components.multitab.726cff2f.js +1 -0
  39. package/lib/components.selecttree.1a71c963.mjs +170 -0
  40. package/lib/components.selecttree.2fadffca.js +1 -0
  41. package/lib/components.settingdrawer.1af86231.js +1 -0
  42. package/lib/components.settingdrawer.adc262cf.mjs +237 -0
  43. package/lib/components.sidemenu.03442146.mjs +277 -0
  44. package/lib/components.sidemenu.5107c7e3.js +1 -0
  45. package/lib/components.sidenavmenu.3d255147.mjs +1147 -0
  46. package/lib/components.sidenavmenu.ef33de39.js +1 -0
  47. package/lib/components.statuschange.805a751b.mjs +116 -0
  48. package/lib/components.statuschange.83646c5d.js +1 -0
  49. package/lib/components.table.61eb5d81.js +8 -0
  50. package/lib/components.table.c986e58d.mjs +4650 -0
  51. package/lib/components.tableumy.35b465f9.mjs +453 -0
  52. package/lib/components.tableumy.eba43953.js +1 -0
  53. package/lib/components.tablevirtual.14a8dbed.mjs +564 -0
  54. package/lib/components.tablevirtual.6af04c44.js +1 -0
  55. package/lib/components.teamsharing.68865424.js +1 -0
  56. package/lib/components.teamsharing.c4f4f12e.mjs +373 -0
  57. package/lib/components.tooltip.ccb1717d.mjs +86 -0
  58. package/lib/components.tooltip.e2e21e66.js +1 -0
  59. package/lib/components.uploadfile.a0dfedaf.mjs +228 -0
  60. package/lib/components.uploadfile.e93b500d.js +1 -0
  61. package/lib/components.uploadimg.3804913e.js +1 -0
  62. package/lib/components.uploadimg.e49707d9.mjs +192 -0
  63. package/lib/components.verificationcode.5a9c0220.js +1 -0
  64. package/lib/components.verificationcode.ead74922.mjs +71 -0
  65. package/lib/components.viewformdetails.3c1596ad.js +1 -0
  66. package/lib/components.viewformdetails.98be3c0d.mjs +1081 -0
  67. package/lib/components.viewloading.5b178ec5.js +1 -0
  68. package/lib/components.viewloading.cb7917b7.mjs +99 -0
  69. package/lib/components.watermark.849409ca.js +2 -0
  70. package/lib/components.watermark.a2521d0c.mjs +53 -0
  71. package/lib/components.xlsxexport.3405a00b.js +1 -0
  72. package/lib/components.xlsxexport.871f87d1.mjs +263 -0
  73. package/lib/components.xlsximport.85ce77cf.mjs +922 -0
  74. package/lib/components.xlsximport.e3bcb07d.js +1 -0
  75. package/lib/copy.b09a6d38.js +1 -0
  76. package/lib/copy.c0a2f16d.mjs +572 -0
  77. package/lib/dialogLayout.059ee256.mjs +138 -0
  78. package/lib/dialogLayout.cedf2865.js +1 -0
  79. package/lib/drawerContainer.38d7b530.mjs +154 -0
  80. package/lib/drawerContainer.ea7722d7.js +1 -0
  81. package/lib/drawerLayout.454e4921.js +1 -0
  82. package/lib/drawerLayout.fad843ee.mjs +119 -0
  83. package/lib/editForm.c199538f.mjs +434 -0
  84. package/lib/editForm.f9dc93ef.js +1 -0
  85. package/lib/flow.designer.4c83c0d3.js +1 -0
  86. package/lib/flow.designer.9442a995.mjs +7673 -0
  87. package/lib/flow.list.4a31969e.mjs +3032 -0
  88. package/lib/flow.list.f41ee531.js +1 -0
  89. package/lib/form.build.c38bf362.js +1 -0
  90. package/lib/form.build.fb9f905b.mjs +259 -0
  91. package/lib/form.designer.build.3fdf8007.js +1 -0
  92. package/lib/form.designer.build.e1b97dc3.mjs +5135 -0
  93. package/lib/formFiled.624b8dd3.js +1 -0
  94. package/lib/formFiled.94fb1dce.mjs +498 -0
  95. package/lib/gd-initial.js +1 -35
  96. package/lib/gd-initial.mjs +233 -91033
  97. package/lib/http.appmanage.9b22ff82.mjs +50 -0
  98. package/lib/http.appmanage.b998818f.js +1 -0
  99. package/lib/http.codegeneratemanage.b123bab3.mjs +120 -0
  100. package/lib/http.codegeneratemanage.e3db2f09.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.2583b5ae.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.d8fe18dc.mjs +50 -0
  111. package/lib/http.duplicatechecking.9b79ce21.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.6fdfc693.js +1 -0
  116. package/lib/http.filedocument.d3a4afd9.mjs +293 -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.1af1e119.mjs +517 -0
  128. package/lib/http.main.2f8a6936.js +1 -0
  129. package/lib/http.menumanage.09fffb7d.mjs +66 -0
  130. package/lib/http.menumanage.6d740f2c.js +1 -0
  131. package/lib/http.message.1d68e914.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.2cdb23b8.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.0b1df8d5.mjs +58 -0
  140. package/lib/http.orgmanage.5162fd7a.js +1 -0
  141. package/lib/http.pluginmanage.54720675.mjs +82 -0
  142. package/lib/http.pluginmanage.6a876040.js +1 -0
  143. package/lib/http.posmanage.c0f80aec.js +1 -0
  144. package/lib/http.posmanage.ee6a7613.mjs +34 -0
  145. package/lib/http.promptmanagement.d115c4b0.js +1 -0
  146. package/lib/http.promptmanagement.dad4c6a7.mjs +42 -0
  147. package/lib/http.rolemanage.4d1101dd.js +1 -0
  148. package/lib/http.rolemanage.da5c40e9.mjs +146 -0
  149. package/lib/http.solution.b10d9197.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.176d3d06.mjs +34 -0
  153. package/lib/http.sysapps.469d47f7.js +1 -0
  154. package/lib/http.sysapps.932ba43b.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.7adf4910.mjs +362 -0
  158. package/lib/http.tabledevelopment.a880bb76.js +1 -0
  159. package/lib/http.team.a9c609d5.mjs +90 -0
  160. package/lib/http.team.e45400d5.js +1 -0
  161. package/lib/http.timersmanage.6e894942.js +1 -0
  162. package/lib/http.timersmanage.c79afb66.mjs +146 -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.f8694b51.mjs +104 -0
  167. package/lib/http.useraffiliation.af2013ad.js +1 -0
  168. package/lib/http.useraffiliation.f2a29f92.mjs +90 -0
  169. package/lib/http.usermanage.6dcbc7de.js +1 -0
  170. package/lib/http.usermanage.f5491144.mjs +219 -0
  171. package/lib/http.webresource.1a1a768f.mjs +50 -0
  172. package/lib/http.webresource.7c01b9cd.js +1 -0
  173. package/lib/index.3fa2dc66.mjs +40154 -0
  174. package/lib/index.fe757a98.js +8 -0
  175. package/lib/layoutBlocks.14c77a02.js +1 -0
  176. package/lib/layoutBlocks.5d71a03b.mjs +401 -0
  177. package/lib/layouts.a662f681.js +2 -0
  178. package/lib/layouts.ec4f20a2.mjs +376 -0
  179. package/lib/main.092a2ac8.js +1 -0
  180. package/lib/{main.c59fc1e8.mjs → main.15237e71.mjs} +12 -10
  181. package/lib/main.29769f01.js +1 -0
  182. package/lib/main.401059c6.mjs +189 -0
  183. package/lib/main.447be615.js +1 -0
  184. package/lib/main.4e507685.mjs +231 -0
  185. package/lib/main.72cafa63.mjs +540 -0
  186. package/lib/{main.4e325110.mjs → main.73f22d9e.mjs} +9 -8
  187. package/lib/main.7601bd3d.mjs +166 -0
  188. package/lib/main.79199ac2.js +1 -0
  189. package/lib/main.821d081b.js +1 -0
  190. package/lib/main.8627466a.mjs +537 -0
  191. package/lib/{main.955f770e.mjs → main.88e9be9d.mjs} +4 -4
  192. package/lib/main.8e6f6cba.mjs +323 -0
  193. package/lib/main.a9a54af9.js +1 -0
  194. package/lib/main.e033a376.js +1 -0
  195. package/lib/main.e2e4ba74.js +1 -0
  196. package/lib/{main.be62e9a4.mjs → main.e79d9e56.mjs} +113 -188
  197. package/lib/main.ea3a04f4.js +1 -0
  198. package/lib/main.f44d8279.js +1 -0
  199. package/lib/messages.5f54a62e.js +9 -0
  200. package/lib/{messages.7e418640.mjs → messages.d4354532.mjs} +4321 -5268
  201. package/lib/packages.filedocument.8418d852.mjs +4039 -0
  202. package/lib/packages.filedocument.9b8eda0d.js +1 -0
  203. package/lib/page.build.4d28df9a.js +12 -0
  204. package/lib/page.build.78cc7396.mjs +3020 -0
  205. package/lib/personal.echarts.940f1cc9.mjs +696 -0
  206. package/lib/personal.echarts.b5a7f574.js +1 -0
  207. package/lib/result.0161b0e0.js +1 -0
  208. package/lib/result.5a9330d7.mjs +627 -0
  209. package/lib/router.config.79a98ab8.mjs +3105 -0
  210. package/lib/router.config.7fd04c30.js +1 -0
  211. package/lib/solution.application.3ae7c0c5.js +1 -0
  212. package/lib/solution.application.fdc15ffc.mjs +548 -0
  213. package/lib/solution.applicationmenu.67aba620.js +1 -0
  214. package/lib/solution.applicationmenu.daaacb07.mjs +508 -0
  215. package/lib/solution.approvalflow.81b7cfb7.js +1 -0
  216. package/lib/solution.approvalflow.a541adcc.mjs +436 -0
  217. package/lib/solution.dict.addbce33.mjs +769 -0
  218. package/lib/solution.dict.f1c9bae6.js +1 -0
  219. package/lib/solution.menu.2033fa37.mjs +5834 -0
  220. package/lib/solution.menu.6512047f.js +1 -0
  221. package/lib/solution.plugin.7094dbfd.js +1 -0
  222. package/lib/solution.plugin.d8f057cb.mjs +347 -0
  223. package/lib/solution.processflow.0adf4f55.js +1 -0
  224. package/lib/solution.processflow.a779bd58.mjs +392 -0
  225. package/lib/solution.role.d35cb00d.js +1 -0
  226. package/lib/solution.role.d9a4b25a.mjs +456 -0
  227. package/lib/solution.webresources.e1421655.mjs +379 -0
  228. package/lib/solution.webresources.e817757c.js +1 -0
  229. package/lib/solution.workflow.59552b8c.mjs +395 -0
  230. package/lib/solution.workflow.985e1f4d.js +1 -0
  231. package/lib/store.config.556bd56b.js +1 -0
  232. package/lib/store.config.5e5cb48a.mjs +547 -0
  233. package/lib/style.css +3 -3
  234. package/lib/system.account.1b281679.js +216 -0
  235. package/lib/system.account.96d5bc17.mjs +2093 -0
  236. package/lib/system.config.0ff45e62.js +1 -0
  237. package/lib/{system.config.f0d2d130.mjs → system.config.35b13003.mjs} +7 -6
  238. package/lib/system.datasource.4243937d.js +1 -0
  239. package/lib/{system.datasource.61ff56ec.mjs → system.datasource.7f582bef.mjs} +15 -64
  240. package/lib/{system.dict.a817cf68.mjs → system.dict.3697546d.mjs} +269 -344
  241. package/lib/system.dict.8e4fe6b0.js +1 -0
  242. package/lib/system.document.69e534a6.js +1 -0
  243. package/lib/system.document.8e4dbe5e.mjs +667 -0
  244. package/lib/system.duplicatechecking.1083eb1e.js +1 -0
  245. package/lib/system.duplicatechecking.c6a8b2b7.mjs +722 -0
  246. package/lib/system.email.06bb7cc1.mjs +133 -0
  247. package/lib/system.email.41036a31.js +1 -0
  248. package/lib/system.fieldsecurity.3ea880d8.js +1 -0
  249. package/lib/{system.fieldsecurity.6feb94c3.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
  250. package/lib/{system.file.1930d109.mjs → system.file.8ccc4569.mjs} +84 -151
  251. package/lib/system.file.b8e4e6a1.js +1 -0
  252. package/lib/system.log.14c22a7a.js +1 -0
  253. package/lib/{system.log.61d303bd.mjs → system.log.aad4ff54.mjs} +31 -93
  254. package/lib/system.machine.379beacb.js +1 -0
  255. package/lib/{system.machine.ed69ec93.mjs → system.machine.c47be0cc.mjs} +5 -25
  256. package/lib/{system.notice.bd18554e.mjs → system.notice.dc1b67cc.mjs} +1075 -1263
  257. package/lib/system.notice.fb151c45.js +1 -0
  258. package/lib/system.noticereceived.3a29d891.js +1 -0
  259. package/lib/{system.noticereceived.4dc360c0.mjs → system.noticereceived.e75bf358.mjs} +19 -27
  260. package/lib/{system.onlineuser.08a15a71.mjs → system.onlineuser.ab9c2776.mjs} +36 -38
  261. package/lib/system.onlineuser.fc26aff9.js +1 -0
  262. package/lib/system.org.b6f826e8.js +1 -0
  263. package/lib/{system.org.6e858bf3.mjs → system.org.dd710a91.mjs} +3 -3
  264. package/lib/system.permissions.75406743.mjs +972 -0
  265. package/lib/system.permissions.97f68887.js +1 -0
  266. package/lib/system.plugin.3fcf7b0b.js +1 -0
  267. package/lib/{system.plugin.a1f1c194.mjs → system.plugin.4b80cd95.mjs} +503 -552
  268. package/lib/system.pos.5a1663d8.js +1 -0
  269. package/lib/{system.pos.eb8fd7dd.mjs → system.pos.a3bafaaa.mjs} +31 -62
  270. package/lib/system.promptmanagement.53c301a3.js +1 -0
  271. package/lib/{system.promptmanagement.c84db7d5.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
  272. package/lib/{system.role.d2195303.mjs → system.role.9edb5922.mjs} +601 -523
  273. package/lib/system.role.e164f059.js +1 -0
  274. package/lib/{system.sumberrules.141dc00b.mjs → system.sumberrules.4bb2c95c.mjs} +169 -192
  275. package/lib/system.sumberrules.5e9cd262.js +1 -0
  276. package/lib/system.team.3e605266.js +1 -0
  277. package/lib/system.team.bb1fb40e.mjs +452 -0
  278. package/lib/system.teammembers.a098883b.js +1 -0
  279. package/lib/{system.teammembers.d73c659f.mjs → system.teammembers.b8e53d99.mjs} +257 -199
  280. package/lib/system.timers.2f884e41.js +38 -0
  281. package/lib/{system.timers.4a3dd57d.mjs → system.timers.551c4a4b.mjs} +2202 -2278
  282. package/lib/system.translation.6e99c852.js +1 -0
  283. package/lib/{system.translation.d9488c23.mjs → system.translation.c2c1f40c.mjs} +437 -431
  284. package/lib/{system.user.6874aa87.mjs → system.user.b99911de.mjs} +1082 -1025
  285. package/lib/system.user.dffc2543.js +14 -0
  286. package/lib/{system.useraffiliation.5e3e2bab.mjs → system.useraffiliation.12cae7ef.mjs} +419 -412
  287. package/lib/system.useraffiliation.f8b33def.js +1 -0
  288. package/lib/system.webresource.1d3ed352.js +1 -0
  289. package/lib/{system.webresource.204911b7.mjs → system.webresource.8a8d856b.mjs} +177 -219
  290. package/lib/{system.welcome.79e15015.mjs → system.welcome.573a76db.mjs} +10 -3
  291. package/lib/system.welcome.eedf1db2.js +1 -0
  292. package/lib/tableDescriptions.923c4ef1.mjs +80 -0
  293. package/lib/tableDescriptions.b12679b0.js +1 -0
  294. package/lib/tcheckboxs.887d733c.mjs +52 -0
  295. package/lib/tcheckboxs.fe7e574a.js +1 -0
  296. package/lib/tcurrency.10ac9aa7.mjs +85 -0
  297. package/lib/tcurrency.20e959c0.js +1 -0
  298. package/lib/tdatepicker.54036bba.js +1 -0
  299. package/lib/tdatepicker.a08ad382.mjs +52 -0
  300. package/lib/tdictSwitch.274e9f86.js +1 -0
  301. package/lib/tdictSwitch.d40f1b4f.mjs +60 -0
  302. package/lib/tfile.5c897827.js +1 -0
  303. package/lib/tfile.f63b73b9.mjs +62 -0
  304. package/lib/tparticipants.4698962b.mjs +56 -0
  305. package/lib/tparticipants.b6fb4545.js +1 -0
  306. package/lib/translation.mains.5cfc7a2f.js +1 -0
  307. package/lib/translation.mains.e6cb610b.mjs +383 -0
  308. package/lib/utils.datepicker.js.0a5a699e.js +1 -0
  309. package/lib/utils.datepicker.js.5549a741.mjs +70 -0
  310. package/lib/utils.echarts.js.461a74e7.js +54 -0
  311. package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
  312. package/lib/utils.mixins.js.750ca50e.js +1 -0
  313. package/lib/utils.mixins.js.be01e599.mjs +41 -0
  314. package/lib/utils.plug.js.9313aead.mjs +31 -0
  315. package/lib/utils.plug.js.f62510ce.js +1 -0
  316. package/lib/utils.util.js.885de913.mjs +439 -0
  317. package/lib/utils.util.js.c0ba699b.js +1 -0
  318. package/lib/view.build.051553d8.mjs +1578 -0
  319. package/lib/view.build.9af3087b.js +1 -0
  320. package/lib/viewList.209956c3.js +1 -0
  321. package/lib/viewList.c05c92be.mjs +318 -0
  322. package/lib/viewTree.0cd9f1a2.js +1 -0
  323. package/lib/viewTree.c5290360.mjs +409 -0
  324. package/locale/en_US.js +96 -29
  325. package/locale/id_ID.js +80 -13
  326. package/locale/vi_VN.js +2015 -1948
  327. package/locale/zh_CN.js +100 -33
  328. package/package.json +106 -105
  329. package/lib/chartbi.b5b6fdab.js +0 -60
  330. package/lib/chartbi.b6818e8e.mjs +0 -27604
  331. package/lib/main.6713b76c.js +0 -1
  332. package/lib/main.a28f67df.js +0 -1
  333. package/lib/main.b4a303dc.js +0 -1
  334. package/lib/main.f3ae0933.js +0 -1
  335. package/lib/messages.1346558e.js +0 -9
  336. package/lib/system.account.64fbdaeb.mjs +0 -2552
  337. package/lib/system.account.7c43a95e.js +0 -216
  338. package/lib/system.config.93d6cb7d.js +0 -1
  339. package/lib/system.datasource.4bb39222.js +0 -1
  340. package/lib/system.dict.5a2e60fe.js +0 -1
  341. package/lib/system.duplicatechecking.65b77e64.js +0 -1
  342. package/lib/system.duplicatechecking.751664ba.mjs +0 -2142
  343. package/lib/system.email.2f53252e.mjs +0 -7432
  344. package/lib/system.email.fec5ae26.js +0 -41
  345. package/lib/system.fieldsecurity.920adca4.js +0 -1
  346. package/lib/system.file.5a9a5e0e.js +0 -1
  347. package/lib/system.log.b309c0e0.js +0 -1
  348. package/lib/system.machine.9368e508.js +0 -1
  349. package/lib/system.notice.ff62c06a.js +0 -1
  350. package/lib/system.noticereceived.9550818b.js +0 -1
  351. package/lib/system.onlineuser.6cf4fe24.js +0 -1
  352. package/lib/system.org.0c67131d.js +0 -1
  353. package/lib/system.permissions.af548a3b.js +0 -9
  354. package/lib/system.permissions.cc5ac7ac.mjs +0 -212
  355. package/lib/system.plugin.83d03fb2.js +0 -1
  356. package/lib/system.pos.eae2051e.js +0 -1
  357. package/lib/system.promptmanagement.04501417.js +0 -1
  358. package/lib/system.role.e623c50b.js +0 -1
  359. package/lib/system.sumberrules.a01e1805.js +0 -1
  360. package/lib/system.team.0cebcde7.js +0 -1
  361. package/lib/system.team.27a6d5d5.mjs +0 -1000
  362. package/lib/system.teammembers.b67f003f.js +0 -1
  363. package/lib/system.timers.b27fcb6d.js +0 -38
  364. package/lib/system.translation.d2c982ed.js +0 -1
  365. package/lib/system.user.0664c21c.js +0 -14
  366. package/lib/system.useraffiliation.6b7a1612.js +0 -1
  367. package/lib/system.webresource.5de18052.js +0 -1
  368. package/lib/system.welcome.ec7aa744.js +0 -1
@@ -0,0 +1,3032 @@
1
+ import { m as y, n as h } from "./components.chartbi.470b96af.mjs";
2
+ import { t as x, u as F, v as $, w as C, x as P, y as k, a as w, n as B, z as N, A as I, B as L, C as M, D as K, E as R, F as O, G as A, H as j, I as E, J as V } from "./http.main.1af1e119.mjs";
3
+ import { t as v } from "./utils.mixins.js.be01e599.mjs";
4
+ import { u as f, p as S } from "./utils.util.js.885de913.mjs";
5
+ import { s as T } from "./http.translationmanage.f8694b51.mjs";
6
+ import { d as G } from "./components.table.c986e58d.mjs";
7
+ import { c as J, b as z, d as q } from "./http.codegeneratemanage.b123bab3.mjs";
8
+ function b(s) {
9
+ let t = f();
10
+ switch (s) {
11
+ case "start":
12
+ return {
13
+ type: "start",
14
+ data: {
15
+ name: "",
16
+ sysCodeGenId: void 0,
17
+ describe: ""
18
+ }
19
+ };
20
+ case "step":
21
+ return {
22
+ type: "step",
23
+ name: "\u65B0\u5EFA\u9636\u6BB5/\u6B65\u9AA4",
24
+ list: [],
25
+ err: !1,
26
+ isDelete: !0,
27
+ pid: 0,
28
+ id: t,
29
+ sourceId: t
30
+ };
31
+ case "end":
32
+ return {
33
+ type: "end"
34
+ };
35
+ }
36
+ }
37
+ function m(s) {
38
+ switch (s) {
39
+ case "start":
40
+ return {
41
+ type: "start",
42
+ data: {
43
+ name: "",
44
+ sysCodeGenId: void 0,
45
+ ranges: void 0,
46
+ isBackgroud: [],
47
+ firing: []
48
+ }
49
+ };
50
+ case "end":
51
+ return {
52
+ type: "end"
53
+ };
54
+ }
55
+ }
56
+ const H = {
57
+ props: {
58
+ status: {
59
+ type: String,
60
+ default: "process"
61
+ },
62
+ record: {
63
+ type: Object,
64
+ default: null
65
+ },
66
+ stateCodes: {
67
+ type: [String, Number],
68
+ default: 0
69
+ },
70
+ permissionsBnt: {
71
+ type: Boolean,
72
+ default: !0
73
+ }
74
+ },
75
+ data() {
76
+ return {
77
+ fetching: !1,
78
+ show: !1,
79
+ datail: null,
80
+ ruleFormData: {
81
+ name: "",
82
+ sysCodeGenId: void 0,
83
+ code: "",
84
+ span: "",
85
+ description: "",
86
+ stateCodes: void 0,
87
+ transKey: null,
88
+ langs: "[]"
89
+ },
90
+ rules: {
91
+ name: [
92
+ {
93
+ required: !0,
94
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
95
+ trigger: "change"
96
+ }
97
+ ],
98
+ sysCodeGenId: [
99
+ {
100
+ required: !0,
101
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
102
+ trigger: "change"
103
+ }
104
+ ],
105
+ code: [
106
+ {
107
+ required: !0,
108
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
109
+ trigger: "change"
110
+ }
111
+ ],
112
+ span: [
113
+ {
114
+ required: !0,
115
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
116
+ trigger: "change"
117
+ }
118
+ ],
119
+ stateCodes: [
120
+ {
121
+ required: !0,
122
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
123
+ trigger: "change"
124
+ }
125
+ ]
126
+ },
127
+ confirmLoading: !1
128
+ };
129
+ },
130
+ computed: {
131
+ getTableLists() {
132
+ return this.tableLists.filter((s) => (s.isbusinessprocess === void 0 ? 1 : s.isbusinessprocess) === 1);
133
+ },
134
+ disabled() {
135
+ return this.permissionsBnt ? this.status == "success" ? this.datail ? !!this.datail.code : !1 : this.stateCodes == 1 : !0;
136
+ },
137
+ disableds() {
138
+ return this.permissionsBnt ? this.stateCodes == 1 : !0;
139
+ },
140
+ ...y(["screenHeight", "labelPosition", "formMode", "tableLists"])
141
+ },
142
+ methods: {
143
+ lookupSeled(s) {
144
+ let t = [];
145
+ s.langs.forEach((e) => {
146
+ t.push({
147
+ name: e.languagename,
148
+ val: e.description,
149
+ code: e.languagecode
150
+ });
151
+ }), this.ruleFormData = Object.assign(this.ruleFormData, {
152
+ name: s.defaulttext,
153
+ langs: JSON.stringify(t)
154
+ });
155
+ },
156
+ addSubmit() {
157
+ this.$refs.ruleForm.validate((s) => {
158
+ s && this.$emit(
159
+ "next",
160
+ Object.assign(
161
+ {
162
+ ...this.ruleFormData
163
+ },
164
+ {
165
+ langs: JSON.parse(this.ruleFormData.langs)
166
+ }
167
+ )
168
+ );
169
+ });
170
+ },
171
+ init(s) {
172
+ this.datail = s, this.show = !!(s && s.stateCodes !== void 0);
173
+ let t = s ? s.langs : [];
174
+ this.$nextTick(() => {
175
+ setTimeout(() => {
176
+ let e = {
177
+ span: s ? s.span : "",
178
+ name: s ? s.name : "",
179
+ sysCodeGenId: s ? s.sysCodeGenId : "",
180
+ description: s ? s.description : "",
181
+ code: s ? s.code : f(8),
182
+ transKey: s ? s.transKey : null,
183
+ langs: JSON.stringify(t)
184
+ };
185
+ s && s.stateCodes !== void 0 && (e = Object.assign(e, {
186
+ stateCodes: s.stateCodes
187
+ })), this.ruleFormData = e, this.$refs.ruleForm.resetFields(), this.$refs.gdTranslation && this.$refs.gdTranslation.init();
188
+ }, 0);
189
+ });
190
+ },
191
+ getDictionary(s) {
192
+ return this.$options.filters.dictData(s);
193
+ }
194
+ }
195
+ };
196
+ var W = function() {
197
+ var t = this, e = t._self._c;
198
+ 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) {
199
+ a.preventDefault();
200
+ } } }, [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) {
201
+ t.$set(t.ruleFormData, "transKey", a);
202
+ }, 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) {
203
+ t.$set(t.ruleFormData, "langs", a);
204
+ }, 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) {
205
+ t.$set(t.ruleFormData, "name", a);
206
+ }, 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) {
207
+ t.$set(t.ruleFormData, "sysCodeGenId", a);
208
+ }, expression: "ruleFormData.sysCodeGenId" } }, t._l(t.getTableLists, function(a, l) {
209
+ 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))])]);
210
+ }), 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) {
211
+ t.$set(t.ruleFormData, "code", a);
212
+ }, 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) {
213
+ t.$set(t.ruleFormData, "span", a);
214
+ }, 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) {
215
+ t.$set(t.ruleFormData, "stateCodes", a);
216
+ }, expression: "ruleFormData.stateCodes" } }, t._l(t.getDictionary("state_code"), function(a, l) {
217
+ return e("el-option", { key: l, attrs: { value: a.code, label: t.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
218
+ }), 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) {
219
+ t.$set(t.ruleFormData, "description", a);
220
+ }, expression: "ruleFormData.description" } })], 1)], 1)], 1)], 1)], 1);
221
+ }, Q = [], U = /* @__PURE__ */ h(
222
+ H,
223
+ W,
224
+ Q,
225
+ !1,
226
+ null,
227
+ "02197dc7",
228
+ null,
229
+ null
230
+ );
231
+ const X = U.exports;
232
+ const Y = {
233
+ props: {
234
+ modeType: {
235
+ type: String,
236
+ default: "process"
237
+ }
238
+ },
239
+ data() {
240
+ return {
241
+ scaleVal: 100,
242
+ permissionsBnt: !0,
243
+ record: null,
244
+ title: "\u4E1A\u52A1\u6D41\u7A0B",
245
+ visible: !1,
246
+ confirmLoading: !1,
247
+ list: [],
248
+ sysViewButtons: [
249
+ {
250
+ displayName: "\u6392\u5E8F",
251
+ functionName: "flowsSort",
252
+ show: !1,
253
+ transKey: "gd.btn.sort",
254
+ icon: "el-icon-rank"
255
+ },
256
+ {
257
+ displayName: "\u4E0A\u4E00\u6B65",
258
+ functionName: "previous",
259
+ show: !1,
260
+ transKey: "gd.btn.prev",
261
+ icon: "el-icon-d-arrow-left"
262
+ },
263
+ {
264
+ displayName: "\u4E0B\u4E00\u6B65",
265
+ functionName: "next",
266
+ show: !0,
267
+ transKey: "gd.btn.next",
268
+ icon: "el-icon-d-arrow-right"
269
+ },
270
+ {
271
+ displayName: "\u4FDD\u5B58",
272
+ functionName: "handleSubmit",
273
+ show: !1,
274
+ transKey: "gd.btn.save",
275
+ icon: "el-icon-document-checked"
276
+ }
277
+ ],
278
+ current: 0,
279
+ status: "success",
280
+ detail: null,
281
+ initialData: [],
282
+ fullscreen: !1,
283
+ width: "90%",
284
+ stateCodes: 0
285
+ };
286
+ },
287
+ components: {
288
+ Settings: X,
289
+ FlowsSort: () => Promise.resolve().then(() => Dt)
290
+ },
291
+ computed: {
292
+ prefixKey() {
293
+ const s = this.detail ? this.detail.id : f(8);
294
+ return S("swf", s);
295
+ },
296
+ bodyStyle() {
297
+ return {
298
+ background: this.current == 0 ? "#f5f6f6" : "#fff",
299
+ borderRadius: "10px"
300
+ };
301
+ }
302
+ },
303
+ methods: {
304
+ changeCurrent(s) {
305
+ this.current !== s && this.onChange(s);
306
+ },
307
+ plusAdd(s) {
308
+ let t = s == "-" ? this.scaleVal - 5 : this.scaleVal + 5;
309
+ this.scaleVal = t <= 50 ? 50 : t >= 150 ? 150 : t;
310
+ },
311
+ toggleFullscreen() {
312
+ this.fullscreen = !this.fullscreen;
313
+ },
314
+ flowsSort() {
315
+ this.$refs.flowsSort.open();
316
+ },
317
+ onChange(s) {
318
+ if (s == 1) {
319
+ this.next();
320
+ return;
321
+ }
322
+ this.previous();
323
+ },
324
+ open(s) {
325
+ this.fullscreen = !1, this.initialData = [], this.record = s;
326
+ let t = s ? "sysFlowProcess:edit" : "sysFlowProcess:add";
327
+ 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) {
328
+ this.current = 1, this.getDetail();
329
+ return;
330
+ }
331
+ this.stateCodes = 0, this.current = 0, this.status = "process", this.init();
332
+ },
333
+ init() {
334
+ let s = [], t = b("start"), e = b("step"), a = b("end");
335
+ s.push(t), s.push(e), s.push(a), this.list = s, this.$nextTick(() => {
336
+ setTimeout(() => {
337
+ this.$refs.settings.init(null);
338
+ }, 0);
339
+ });
340
+ },
341
+ getDetail(s) {
342
+ this.confirmLoading = !0, x({
343
+ id: this.record
344
+ }).then((t) => {
345
+ if (t.success) {
346
+ let e = [], a = b("start"), l = {
347
+ name: t.data.name,
348
+ sysCodeGenId: t.data.syscodegenid,
349
+ description: t.data.description,
350
+ stateCodes: String(t.data.statecodes),
351
+ span: t.data.span,
352
+ code: t.data.code ? t.data.code : "",
353
+ langs: [],
354
+ transKey: t.data.transkey ? t.data.transkey : null
355
+ }, i = b("end");
356
+ e.push(a);
357
+ let n = t.data.configdata ? JSON.parse(t.data.configdata) : null;
358
+ 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);
359
+ }
360
+ this.confirmLoading = !1;
361
+ });
362
+ },
363
+ sbumitNext(s) {
364
+ this.current = 1, this.list[0].data = s;
365
+ let t = ["\u4E0B\u4E00\u6B65"];
366
+ 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(() => {
367
+ setTimeout(() => {
368
+ this.$refs.flowsDesigner.init(this.list), this.$refs.settings.init(this.list[0].data);
369
+ }, 0);
370
+ });
371
+ },
372
+ handleSubmit() {
373
+ let s = this.$refs.flowsDesigner.list, t = s.length - 1, e = s.filter((i, n) => !(n == 0 || n == t));
374
+ if (e.length == 0) {
375
+ this.$message.error(this.$i18nt("gd.flow.perfectTip", "\u8BF7\u5B8C\u5584\u4FE1\u606F"));
376
+ return;
377
+ }
378
+ let a = [];
379
+ const l = (i) => (i = i.filter((n, o) => (n.type == "condition" && n.list.forEach((r) => {
380
+ r.type != "else" && (r.err = r.rule.length == 0, r.err && a.push(r)), r.list = l(r.list);
381
+ }), n.type == "step" && (n.err = n.list.length == 0, n.err && a.push(n), n.langs = [], n.list.forEach((r) => {
382
+ r.langs = [];
383
+ })), !0)), i);
384
+ if (l(e), a.length > 0) {
385
+ this.$message.error(this.$i18nt("gd.flow.nodeTip", "\u8BF7\u6839\u636E\u63D0\u793A\u5B8C\u6210\u6D41\u7A0B\u8282\u70B9\u8BBE\u7F6E"));
386
+ return;
387
+ }
388
+ this.record ? this.edit(e, s[0].data) : this.add(e, s[0].data);
389
+ },
390
+ add(s, t) {
391
+ this.confirmLoading = !0;
392
+ let e = {
393
+ statecodes: 0,
394
+ name: t.name,
395
+ syscodegenid: t.sysCodeGenId,
396
+ description: t.description,
397
+ span: t.span,
398
+ code: t.code,
399
+ configdata: JSON.stringify(s)
400
+ };
401
+ F(e).then((a) => {
402
+ if (a.success) {
403
+ this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.$emit("ok", a.data);
404
+ let l = this.$refs.flowsDesigner.delTransKeyList;
405
+ this.deltransKey(l), this.handleCancel(1);
406
+ } else
407
+ this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25") + a.message);
408
+ this.confirmLoading = !1;
409
+ });
410
+ },
411
+ edit(s, t) {
412
+ this.confirmLoading = !0;
413
+ let e = {
414
+ statecodes: t.stateCodes,
415
+ name: t.name,
416
+ span: t.span,
417
+ syscodegenid: t.sysCodeGenId,
418
+ description: t.description,
419
+ configdata: JSON.stringify(s),
420
+ code: t.code
421
+ };
422
+ $(Object.assign(this.detail, e)).then((a) => {
423
+ if (a.success) {
424
+ this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.$emit("ok", a.data);
425
+ let l = this.$refs.flowsDesigner.delTransKeyList;
426
+ this.deltransKey(l), this.handleCancel(2);
427
+ } else
428
+ this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25") + a.message);
429
+ this.confirmLoading = !1;
430
+ });
431
+ },
432
+ deltransKey(s) {
433
+ s.length != 0 && T({
434
+ name: s.join(",")
435
+ });
436
+ },
437
+ previous() {
438
+ let s = ["\u4E0A\u4E00\u6B65", "\u4FDD\u5B58"];
439
+ 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(() => {
440
+ setTimeout(() => {
441
+ this.$refs.settings.init(this.list[0].data);
442
+ }, 0);
443
+ });
444
+ },
445
+ next() {
446
+ this.$refs.settings.addSubmit();
447
+ },
448
+ async handleCancel(s) {
449
+ if (this.$refs.flowsDesigner.list, s !== 2 && s !== 1) {
450
+ let t = this.$refs.flowsDesigner.addTransKeyList;
451
+ this.deltransKey(t);
452
+ }
453
+ this.visible = !1, this.confirmLoading = !1, this.detail = null, await this.init(), setTimeout(() => {
454
+ this.$refs.flowsDesigner.init(this.list), this.previous();
455
+ }, 200);
456
+ },
457
+ getHasItem(s) {
458
+ this.initialData = this.hasItem(JSON.parse(s.data.configdata));
459
+ },
460
+ hasItem(s) {
461
+ let t = [];
462
+ const e = (a) => (a = a.filter((l, i) => (l.type == "condition" && l.list.forEach((n) => {
463
+ n.list = e(n.list);
464
+ }), l.type == "step" && (t = t.concat([l]), l.list.length > 0 && (t = t.concat(l.list))), !0)), a);
465
+ return e(s), t;
466
+ },
467
+ doEvent(s) {
468
+ let t = s.item.functionName;
469
+ this[t] && this[t]();
470
+ }
471
+ }
472
+ };
473
+ var Z = function() {
474
+ var t = this, e = t._self._c;
475
+ 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) {
476
+ t.visible = a;
477
+ }, 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) {
478
+ return t.changeCurrent(0);
479
+ } } }), e("el-step", { staticStyle: { cursor: "pointer" }, attrs: { title: t.$i18nt("gd.flow.processDesign", "\u6D41\u7A0B\u8BBE\u8BA1") }, nativeOn: { click: function(a) {
480
+ return t.changeCurrent(1);
481
+ } } })], 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) {
482
+ return t.plusAdd("-");
483
+ } } }), 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) {
484
+ return t.plusAdd("+");
485
+ } } })]), 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);
486
+ }, tt = [], et = /* @__PURE__ */ h(
487
+ Y,
488
+ Z,
489
+ tt,
490
+ !1,
491
+ null,
492
+ "8153fce0",
493
+ null,
494
+ null
495
+ );
496
+ const st = et.exports;
497
+ const at = {
498
+ props: {
499
+ status: {
500
+ type: String,
501
+ default: "process"
502
+ },
503
+ stateCodes: {
504
+ type: [String, Number],
505
+ default: 0
506
+ },
507
+ permissionsBnt: {
508
+ type: Boolean,
509
+ default: !0
510
+ }
511
+ },
512
+ data() {
513
+ return {
514
+ tableNameData: [],
515
+ fetching: !1,
516
+ codeGenId: "",
517
+ disabled: !0,
518
+ beforeDisabled: !0,
519
+ fieldList: [],
520
+ beforefieldList: [],
521
+ userList: [],
522
+ show: !1,
523
+ datail: null,
524
+ rules: {
525
+ name: [
526
+ {
527
+ required: !0,
528
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
529
+ trigger: "change"
530
+ }
531
+ ],
532
+ sysCodeGenId: [
533
+ {
534
+ required: !0,
535
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
536
+ trigger: "change"
537
+ }
538
+ ],
539
+ code: [
540
+ {
541
+ required: !0,
542
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
543
+ trigger: "change"
544
+ }
545
+ ],
546
+ ranges: [
547
+ {
548
+ required: !0,
549
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
550
+ trigger: "change"
551
+ }
552
+ ],
553
+ firing: [
554
+ {
555
+ required: !0,
556
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
557
+ trigger: "change"
558
+ }
559
+ ],
560
+ isBackgroud: [
561
+ {
562
+ required: !0,
563
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
564
+ trigger: "change"
565
+ }
566
+ ],
567
+ stateCodes: [
568
+ {
569
+ required: !0,
570
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
571
+ trigger: "change"
572
+ }
573
+ ]
574
+ },
575
+ ruleFormData: {
576
+ name: "",
577
+ transKey: null,
578
+ langs: "[]",
579
+ isBackgroud: [],
580
+ firing: []
581
+ },
582
+ confirmLoading: !1
583
+ };
584
+ },
585
+ computed: {
586
+ disableds() {
587
+ return this.permissionsBnt ? this.stateCodes == 1 : !0;
588
+ },
589
+ disabledd() {
590
+ return this.permissionsBnt ? this.status == "success" ? this.datail ? !!this.datail.code : !1 : this.stateCodes == 1 : !0;
591
+ },
592
+ ...y(["screenHeight", "labelPosition", "formMode"])
593
+ },
594
+ components: {
595
+ FlowsDesignerGenName: () => import("./flow.designer.9442a995.mjs").then((s) => s.d)
596
+ },
597
+ methods: {
598
+ lookupSeled(s) {
599
+ let t = [];
600
+ s.langs.forEach((e) => {
601
+ t.push({
602
+ name: e.languageName,
603
+ val: e.description,
604
+ code: e.languageCode
605
+ });
606
+ }), this.ruleFormData = {
607
+ name: s.defaultText,
608
+ langs: JSON.stringify(t)
609
+ };
610
+ },
611
+ selGenName(s) {
612
+ 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);
613
+ },
614
+ sbumitGenName(s, t) {
615
+ t == "afterChange" ? this.fieldList = s : t == "beforeChange" && (this.beforefieldList = s);
616
+ },
617
+ addSubmit() {
618
+ this.$refs.ruleForm.validate((s) => {
619
+ s && this.$emit(
620
+ "next",
621
+ Object.assign(
622
+ {
623
+ ...this.ruleFormData
624
+ },
625
+ {
626
+ updateFields: this.ruleFormData.firing.includes("5") ? this.beforefieldList : [],
627
+ updateFieldsAfter: this.ruleFormData.firing.includes("2") ? this.fieldList : [],
628
+ langs: JSON.parse(this.ruleFormData.langs)
629
+ }
630
+ )
631
+ );
632
+ });
633
+ },
634
+ init(s) {
635
+ this.datail = s, this.fieldList = [], this.beforefieldList = [], this.show = !!(s && s.stateCodes !== void 0);
636
+ let t = s ? s.langs : [];
637
+ this.$nextTick(() => {
638
+ setTimeout(() => {
639
+ this.fieldList = s ? s.updateFieldsAfter : [], this.beforefieldList = s ? s.updateFields : [];
640
+ let e = {
641
+ name: s ? s.name : "",
642
+ sysCodeGenId: s ? s.sysCodeGenId : "",
643
+ ranges: s ? s.ranges : "",
644
+ isBackgroud: s ? s.isBackgroud : [],
645
+ firing: s ? s.firing : [],
646
+ code: s ? s.code : f(8),
647
+ transKey: s ? s.transKey : null,
648
+ langs: JSON.stringify(t)
649
+ };
650
+ s && s.stateCodes !== void 0 && (e = Object.assign(e, {
651
+ stateCodes: s.stateCodes
652
+ }), this.codeGenId = s.sysCodeGenId), this.calculation(e), this.ruleFormData = e, this.$refs.ruleForm.resetFields(), this.$refs.gdTranslation;
653
+ }, 0);
654
+ });
655
+ },
656
+ searchTable(s) {
657
+ this.fetching = !0, this.tableNameData = [], J({
658
+ busName: s
659
+ }).then((t) => {
660
+ this.tableNameData = [...t.data], this.fetching = !1;
661
+ });
662
+ },
663
+ firingChange(s) {
664
+ let t = this.ruleFormData;
665
+ t.firing = s, this.calculation(t);
666
+ },
667
+ selTable(s) {
668
+ let t = this.ruleFormData;
669
+ t.sysCodeGenId = s.id, this.codeGenId = s.id, this.calculation(t);
670
+ },
671
+ calculation(s) {
672
+ let t = s.firing !== void 0 ? s.firing : [], e = s.sysCodeGenId !== void 0 && s.sysCodeGenId != "";
673
+ this.disabled = !(e && t.includes("2")), this.beforeDisabled = !(e && t.includes("5"));
674
+ },
675
+ getDictionary(s) {
676
+ return this.$options.filters.dictData(s);
677
+ }
678
+ },
679
+ created() {
680
+ this.searchTable("");
681
+ let s = this.$options.filters.dictData("data_scope_type");
682
+ this.userList = s.filter((t) => t.code != 5);
683
+ }
684
+ };
685
+ var it = function() {
686
+ var t = this, e = t._self._c;
687
+ 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) {
688
+ a.preventDefault();
689
+ } } }, [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) {
690
+ t.$set(t.ruleFormData, "transKey", a);
691
+ }, 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) {
692
+ t.$set(t.ruleFormData, "langs", a);
693
+ }, 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) {
694
+ t.$set(t.ruleFormData, "name", a);
695
+ }, 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) {
696
+ t.$set(t.ruleFormData, "sysCodeGenId", a);
697
+ }, expression: "ruleFormData.sysCodeGenId" } }, t._l(t.tableNameData, function(a, l) {
698
+ return e("el-option", { key: l, attrs: { value: a.id, label: t.$i18nt(`Dynamics.${a.transkey}`, a.busname) }, nativeOn: { click: function(i) {
699
+ return t.selTable(a);
700
+ } } }, [e("span", [t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`, a.busname)) + " " + t._s(a.tablename))])]);
701
+ }), 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) {
702
+ t.$set(t.ruleFormData, "ranges", a);
703
+ }, expression: "ruleFormData.ranges" } }, t._l(t.userList, function(a, l) {
704
+ 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)))])]);
705
+ }), 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) {
706
+ t.$set(t.ruleFormData, "isBackgroud", a);
707
+ }, 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) {
708
+ t.$set(t.ruleFormData, "code", a);
709
+ }, 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) {
710
+ t.$set(t.ruleFormData, "firing", a);
711
+ }, 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) {
712
+ return t.selGenName("beforeChange");
713
+ } } }, [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) {
714
+ return t.selGenName("afterChange");
715
+ } } }, [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) {
716
+ t.$set(t.ruleFormData, "stateCodes", a);
717
+ }, expression: "ruleFormData.stateCodes" } }, t._l(t.getDictionary("state_code"), function(a, l) {
718
+ return e("el-option", { key: a.code, attrs: { value: a.code, label: t.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
719
+ }), 1)], 1)], 1) : t._e()], 1)], 1), e("FlowsDesignerGenName", { ref: "codeGenName", attrs: { codeGenId: t.codeGenId }, on: { ok: t.sbumitGenName } })], 1);
720
+ }, lt = [], nt = /* @__PURE__ */ h(
721
+ at,
722
+ it,
723
+ lt,
724
+ !1,
725
+ null,
726
+ "b6275cd2",
727
+ null,
728
+ null
729
+ );
730
+ const rt = nt.exports;
731
+ const ot = {
732
+ props: {
733
+ modeType: {
734
+ type: String,
735
+ default: "work"
736
+ }
737
+ },
738
+ data() {
739
+ return {
740
+ scaleVal: 100,
741
+ permissionsBnt: !0,
742
+ record: null,
743
+ title: "\u5DE5\u4F5C\u6D41",
744
+ visible: !1,
745
+ confirmLoading: !1,
746
+ list: [],
747
+ sysViewButtons: [
748
+ {
749
+ displayName: "\u4E0A\u4E00\u6B65",
750
+ functionName: "previous",
751
+ show: !1,
752
+ transKey: "gd.btn.prev",
753
+ icon: "el-icon-d-arrow-left"
754
+ },
755
+ {
756
+ displayName: "\u4E0B\u4E00\u6B65",
757
+ functionName: "next",
758
+ show: !0,
759
+ transKey: "gd.btn.next",
760
+ icon: "el-icon-d-arrow-right"
761
+ },
762
+ {
763
+ displayName: "\u4FDD\u5B58",
764
+ functionName: "handleSubmit",
765
+ show: !1,
766
+ transKey: "gd.btn.save",
767
+ icon: "el-icon-document-checked"
768
+ }
769
+ ],
770
+ current: -1,
771
+ status: "success",
772
+ detail: null,
773
+ fullscreen: !1,
774
+ width: "90%",
775
+ stateCodes: 0
776
+ };
777
+ },
778
+ components: {
779
+ Settings: rt
780
+ },
781
+ computed: {
782
+ modalStyle() {
783
+ return this.fullscreen ? {
784
+ width: "100%",
785
+ dialogStyle: {
786
+ top: "0px"
787
+ }
788
+ } : {
789
+ width: this.width,
790
+ dialogStyle: {
791
+ top: "40px"
792
+ }
793
+ };
794
+ },
795
+ bodyStyle() {
796
+ return {
797
+ background: this.current == 0 ? "#f5f6f6" : "#fff",
798
+ borderRadius: "10px"
799
+ };
800
+ }
801
+ },
802
+ methods: {
803
+ changeCurrent(s) {
804
+ this.current !== s && this.onChange(s);
805
+ },
806
+ plusAdd(s) {
807
+ let t = s == "-" ? this.scaleVal - 5 : this.scaleVal + 5;
808
+ this.scaleVal = t <= 50 ? 50 : t >= 150 ? 150 : t;
809
+ },
810
+ toggleFullscreen() {
811
+ this.fullscreen = !this.fullscreen;
812
+ },
813
+ onChange(s) {
814
+ if (s == 1) {
815
+ this.next();
816
+ return;
817
+ }
818
+ this.previous();
819
+ },
820
+ open(s) {
821
+ this.fullscreen = !1, this.record = s, this.visible = !0;
822
+ let t = s ? "sysFlowWork:edit" : "sysFlowWork:add";
823
+ if (this.permissionsBnt = this.$hasPerm(t), this.sysViewButtons = this.sysViewButtons.map((e) => (e.displayName === "\u4FDD\u5B58" && (e.name = t), e)), s) {
824
+ this.current = 1, this.getDetail();
825
+ return;
826
+ }
827
+ this.stateCodes = 0, this.current = 0, this.status = "process", this.init();
828
+ },
829
+ init() {
830
+ let s = [], t = m("start"), e = m("end");
831
+ s.push(t), s.push(e), this.list = s, this.$nextTick(() => {
832
+ setTimeout(() => {
833
+ this.$refs.settings.init(null);
834
+ }, 0);
835
+ });
836
+ },
837
+ getDetail(s) {
838
+ this.confirmLoading = !0, C({
839
+ id: this.record
840
+ }).then((t) => {
841
+ var e, a;
842
+ if (t.success) {
843
+ 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(",") : [];
844
+ n = n.map((g) => Number(g)), o = o.map((g) => Number(g));
845
+ let r = {
846
+ name: t.data.data.name,
847
+ sysCodeGenId: t.data.data.syscodegenid,
848
+ ranges: t.data.data.ranges ? String(t.data.data.ranges) : "",
849
+ stateCodes: String(t.data.data.statecodes),
850
+ isBackgroud: t.data.data.isbackgroud ? String(t.data.data.isbackgroud).split(",") : [],
851
+ firing: t.data.data.firing ? String(t.data.data.firing).split(",") : [],
852
+ updateFields: n,
853
+ updateFieldsAfter: o,
854
+ code: t.data.data.code ? t.data.data.code : "",
855
+ langs: [],
856
+ transKey: t.data.data.transkey ? t.data.data.transkey : null
857
+ }, c = m("end");
858
+ 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);
859
+ }
860
+ this.confirmLoading = !1;
861
+ });
862
+ },
863
+ sbumitNext(s) {
864
+ 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(() => {
865
+ setTimeout(() => {
866
+ this.$refs.flowsDesigner.init(this.list), this.$refs.settings.init(this.list[0].data);
867
+ }, 0);
868
+ });
869
+ },
870
+ handleSubmit() {
871
+ let s = this.$refs.flowsDesigner.list, t = s.length - 1, e = s.filter((o, r) => !(r == 0 || r == t));
872
+ if (e.length == 0) {
873
+ this.$message.error(this.$i18nt("gd.flow.perfectTip"));
874
+ return;
875
+ }
876
+ if (!this.isChecked(e[0].list)) {
877
+ this.$message.error(this.$i18nt("gd.flow.perfectTip"));
878
+ return;
879
+ }
880
+ let a = [];
881
+ 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) => {
882
+ g.type != "else" && (g.err = g.fieldwheres.length == 0, g.err && a.push(g)), g.list = l(g.list);
883
+ }), r.type == "step" && (r.err = r.list.length == 0, r.err && a.push(r)), !0)), o);
884
+ l(e[0].list);
885
+ let i = s[0].data;
886
+ typeof i.isBackgroud != "string" && (i.isBackgroud = i.isBackgroud.join(","), i.firing = i.firing.join(","), i.updateFields = i.updateFields.join(","), i.updateFieldsAfter = i.updateFieldsAfter.join(","));
887
+ let n = /* @__PURE__ */ new Map();
888
+ for (let o in i)
889
+ n.set(o.toLowerCase(), i[o]);
890
+ if (Object.fromEntries(n), e[0], a.length > 0) {
891
+ this.$message.error(this.$i18nt("gd.flow.nodeTip"));
892
+ return;
893
+ }
894
+ this.record ? this.edit(Object.fromEntries(n), e[0]) : this.add(Object.fromEntries(n), e[0]);
895
+ },
896
+ add(s, t) {
897
+ this.confirmLoading = !0, s.stateCodes = 0, P({
898
+ data: s,
899
+ list: t
900
+ }).then((e) => {
901
+ e.success ? (this.$message.success(this.$i18nt("gd.https.addSucc")), this.$emit("ok", e.data), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.addFail") + e.message), this.confirmLoading = !1;
902
+ });
903
+ },
904
+ edit(s, t) {
905
+ this.confirmLoading = !0, k({
906
+ data: Object.assign(this.detail.data, s),
907
+ list: t
908
+ }).then((e) => {
909
+ e.success ? (this.$message.success(this.$i18nt("gd.https.editSucc")), this.$emit("ok", e.data), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.editFail") + e.message), this.confirmLoading = !1;
910
+ });
911
+ },
912
+ isChecked(s) {
913
+ return s.every((t, e, a) => t.list.length > 0);
914
+ },
915
+ previous() {
916
+ 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(() => {
917
+ setTimeout(() => {
918
+ this.$refs.settings.init(this.list[0].data);
919
+ }, 0);
920
+ });
921
+ },
922
+ next() {
923
+ this.$refs.settings.addSubmit();
924
+ },
925
+ async handleCancel() {
926
+ this.visible = !1, this.detail = null, await this.init(), setTimeout(() => {
927
+ this.$refs.flowsDesigner.init(this.list), this.previous();
928
+ }, 200);
929
+ },
930
+ doEvent(s) {
931
+ let t = s.item.functionName;
932
+ this[t] && this[t]();
933
+ }
934
+ }
935
+ };
936
+ var dt = function() {
937
+ var t = this, e = t._self._c;
938
+ 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) {
939
+ t.visible = a;
940
+ }, 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) {
941
+ return t.changeCurrent(0);
942
+ } } }), e("el-step", { staticStyle: { cursor: "pointer" }, attrs: { title: t.$i18nt("gd.flow.processDesign", "\u6D41\u7A0B\u8BBE\u8BA1") }, nativeOn: { click: function(a) {
943
+ return t.changeCurrent(1);
944
+ } } })], 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) {
945
+ return t.plusAdd("-");
946
+ } } }), 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) {
947
+ return t.plusAdd("+");
948
+ } } })]), 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);
949
+ }, ct = [], ut = /* @__PURE__ */ h(
950
+ ot,
951
+ dt,
952
+ ct,
953
+ !1,
954
+ null,
955
+ "978fede9",
956
+ null,
957
+ null
958
+ );
959
+ const gt = ut.exports;
960
+ const pt = {
961
+ props: {
962
+ status: {
963
+ type: String,
964
+ default: "process"
965
+ },
966
+ stateCodes: {
967
+ type: [String, Number],
968
+ default: 0
969
+ },
970
+ permissionsBnt: {
971
+ type: Boolean,
972
+ default: !0
973
+ },
974
+ startCategory: {
975
+ type: String,
976
+ default: ""
977
+ }
978
+ },
979
+ data() {
980
+ return {
981
+ state: !1,
982
+ tableNameData: [],
983
+ fetching: !1,
984
+ show: !1,
985
+ msgList: [],
986
+ msgListCC: [],
987
+ msgListPress: [],
988
+ msgListBack: [],
989
+ msgListRject: [],
990
+ msgListEnd: [],
991
+ msgListTrans: [],
992
+ msgListReturn: [],
993
+ msgListApproval: [],
994
+ msgListAutomatic: [],
995
+ fkEntityName: "Msg_MessagetemPlate",
996
+ type: 1,
997
+ datail: null,
998
+ showHistory: !1,
999
+ textReturn: !1,
1000
+ textSgin: !1,
1001
+ isReturnMsg: !1,
1002
+ isRejectMsg: !1,
1003
+ ruleFormData: {
1004
+ name: ""
1005
+ },
1006
+ rules: {
1007
+ name: [
1008
+ {
1009
+ required: !0,
1010
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
1011
+ trigger: "change"
1012
+ }
1013
+ ],
1014
+ tableId: [
1015
+ {
1016
+ required: !0,
1017
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
1018
+ trigger: "change"
1019
+ }
1020
+ ],
1021
+ category: [
1022
+ {
1023
+ required: !0,
1024
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
1025
+ trigger: "change"
1026
+ }
1027
+ ],
1028
+ autoApprovalType: [
1029
+ {
1030
+ required: !0,
1031
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
1032
+ trigger: "change"
1033
+ }
1034
+ ],
1035
+ enCode: [
1036
+ {
1037
+ required: !0,
1038
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
1039
+ trigger: "change"
1040
+ }
1041
+ ],
1042
+ stateCodes: [
1043
+ {
1044
+ required: !0,
1045
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
1046
+ trigger: "change"
1047
+ }
1048
+ ]
1049
+ },
1050
+ templateList: null,
1051
+ msgType: null,
1052
+ list: [
1053
+ {
1054
+ type: "",
1055
+ tempid: "",
1056
+ msgList: []
1057
+ }
1058
+ ],
1059
+ msgcclist: [
1060
+ {
1061
+ type: "",
1062
+ tempid: "",
1063
+ msgList: []
1064
+ }
1065
+ ],
1066
+ msguplist: [
1067
+ {
1068
+ type: "",
1069
+ tempid: "",
1070
+ msgList: []
1071
+ }
1072
+ ],
1073
+ msgrvlist: [
1074
+ {
1075
+ type: "",
1076
+ tempid: "",
1077
+ msgList: []
1078
+ }
1079
+ ],
1080
+ msgrjlist: [
1081
+ {
1082
+ type: "",
1083
+ tempid: "",
1084
+ msgList: []
1085
+ }
1086
+ ],
1087
+ msgtrlist: [
1088
+ {
1089
+ type: "",
1090
+ tempid: "",
1091
+ msgList: []
1092
+ }
1093
+ ],
1094
+ msgaslist: [
1095
+ {
1096
+ type: "",
1097
+ tempid: "",
1098
+ msgList: []
1099
+ }
1100
+ ],
1101
+ msgrtlist: [
1102
+ {
1103
+ type: "",
1104
+ tempid: "",
1105
+ msgList: []
1106
+ }
1107
+ ],
1108
+ msgrtalist: [
1109
+ {
1110
+ type: "",
1111
+ tempid: "",
1112
+ msgList: []
1113
+ }
1114
+ ],
1115
+ msgaalist: [
1116
+ {
1117
+ type: "",
1118
+ tempid: "",
1119
+ msgList: []
1120
+ }
1121
+ ]
1122
+ };
1123
+ },
1124
+ computed: {
1125
+ categoryDisableds() {
1126
+ let s = this.getDictionary("table_flows_type").filter((t) => t.code == this.startCategory)[0];
1127
+ return s === void 0 || s.statecodes == 1 ? "" : s.code;
1128
+ },
1129
+ dictList() {
1130
+ return this.getDictionary("table_flows_type").filter((t) => t.statecodes == 1 || t.code == this.categoryDisableds);
1131
+ },
1132
+ disableds() {
1133
+ return this.permissionsBnt ? this.stateCodes == 1 : !0;
1134
+ },
1135
+ getSendType() {
1136
+ let s = [], t = [];
1137
+ return this.getDictionary("SendType").map((a) => (a.disabled = a.statecodes != 1, a.disabled ? t.push(a) : s.push(a), a)), s.concat(t);
1138
+ },
1139
+ ...y(["screenHeight", "labelPosition", "formMode"])
1140
+ },
1141
+ methods: {
1142
+ onChange(s) {
1143
+ this.isReturnMsg = s.target.checked;
1144
+ },
1145
+ onChange1(s) {
1146
+ this.isRejectMsg = s.target.checked;
1147
+ },
1148
+ lookupSeled(s) {
1149
+ 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);
1150
+ },
1151
+ async lookup(s, t) {
1152
+ this.type = s;
1153
+ let e = t, a = {
1154
+ fkEntityName: this.fkEntityName,
1155
+ effectType: "fk",
1156
+ options: {},
1157
+ val: e
1158
+ };
1159
+ this.$refs.engineSearch.open(a);
1160
+ },
1161
+ addSubmit() {
1162
+ this.$refs.ruleForm.validate((s) => {
1163
+ if (s) {
1164
+ const t = this.list.map((d) => {
1165
+ const { msgList: p, ...u } = d;
1166
+ return u;
1167
+ }), e = this.msgcclist.map((d) => {
1168
+ const { msgList: p, ...u } = d;
1169
+ return u;
1170
+ }), a = this.msguplist.map((d) => {
1171
+ const { msgList: p, ...u } = d;
1172
+ return u;
1173
+ }), l = this.msgrvlist.map((d) => {
1174
+ const { msgList: p, ...u } = d;
1175
+ return u;
1176
+ }), i = this.msgrjlist.map((d) => {
1177
+ const { msgList: p, ...u } = d;
1178
+ return u;
1179
+ }), n = this.msgtrlist.map((d) => {
1180
+ const { msgList: p, ...u } = d;
1181
+ return u;
1182
+ }), o = this.msgaslist.map((d) => {
1183
+ const { msgList: p, ...u } = d;
1184
+ return u;
1185
+ }), r = this.msgrtlist.map((d) => {
1186
+ const { msgList: p, ...u } = d;
1187
+ return u;
1188
+ }), c = this.msgrtalist.map((d) => {
1189
+ const { msgList: p, ...u } = d;
1190
+ return u;
1191
+ }), g = this.msgaalist.map((d) => {
1192
+ const { msgList: p, ...u } = d;
1193
+ return u;
1194
+ });
1195
+ this.$emit(
1196
+ "next",
1197
+ Object.assign(
1198
+ {
1199
+ ...this.ruleFormData
1200
+ },
1201
+ {
1202
+ langs: JSON.parse(this.ruleFormData.langs)
1203
+ },
1204
+ {
1205
+ isRejectMsg: this.isRejectMsg == !0 ? 1 : 0
1206
+ },
1207
+ {
1208
+ isReturnMsg: this.isReturnMsg == !0 ? 1 : 0
1209
+ },
1210
+ {
1211
+ msg_MessagetemPlateId: JSON.stringify(t)
1212
+ },
1213
+ {
1214
+ msg_MessagetemPlateId_CC: JSON.stringify(e)
1215
+ },
1216
+ {
1217
+ msg_MessagetemPlateId_UP: JSON.stringify(a)
1218
+ },
1219
+ {
1220
+ msg_MessagetemPlateId_RV: JSON.stringify(l)
1221
+ },
1222
+ {
1223
+ msg_MessagetemPlateId_RJ: JSON.stringify(i)
1224
+ },
1225
+ {
1226
+ msg_MessagetemPlateId_TR: JSON.stringify(n)
1227
+ },
1228
+ {
1229
+ msg_MessagetemPlateId_AS: JSON.stringify(o)
1230
+ },
1231
+ {
1232
+ msg_MessagetemPlateId_RT: JSON.stringify(r)
1233
+ },
1234
+ {
1235
+ msg_MessagetemPlateId_RTA: JSON.stringify(c)
1236
+ },
1237
+ {
1238
+ msg_MessagetemPlateId_AA: JSON.stringify(g)
1239
+ }
1240
+ )
1241
+ );
1242
+ }
1243
+ });
1244
+ },
1245
+ init(s) {
1246
+ if (this.state)
1247
+ return;
1248
+ this.state = !0, this.datail = s, this.show = !!(s && s.stateCodes != null);
1249
+ let t = s ? s.langs : [];
1250
+ this.$nextTick(() => {
1251
+ setTimeout(() => {
1252
+ let e = {
1253
+ name: s ? s.name : "",
1254
+ isresubmit: s ? s.isresubmit : 0,
1255
+ tableId: s ? s.tableId : void 0,
1256
+ category: s ? s.category : void 0,
1257
+ description: s ? s.description : "",
1258
+ enCode: s ? s.enCode : f(8),
1259
+ autoApprovalType: s ? String(s.autoApprovalType) : "0",
1260
+ transKey: s ? s.transKey : null,
1261
+ langs: JSON.stringify(t)
1262
+ };
1263
+ this.isReturnMsg = !!(s && s.isReturnMsg == 1), this.isRejectMsg = !!(s && s.isRejectMsg == 1), s && s.stateCodes != null && (e = Object.assign(e, {
1264
+ stateCodes: s.stateCodes
1265
+ }));
1266
+ let a = [];
1267
+ [].forEach((i, n) => {
1268
+ let o = this.searchMsgDataId(i.d, i.t, 16 * n);
1269
+ a.push(o);
1270
+ }), Promise.all(a).then(() => {
1271
+ this.state = !1;
1272
+ }), 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) => ({
1273
+ ...i,
1274
+ type: String(i.type),
1275
+ msgList: []
1276
+ })) : [{ type: "", tempid: "", msgList: [] }], this.list.forEach((i) => {
1277
+ i.tempid != "" && this.selTemplateType(i);
1278
+ })) : this.list = [
1279
+ {
1280
+ type: "",
1281
+ tempid: "",
1282
+ msgList: []
1283
+ }
1284
+ ], 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) => ({
1285
+ ...i,
1286
+ type: String(i.type),
1287
+ msgList: []
1288
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgcclist.forEach((i) => {
1289
+ i.tempid != "" && this.selTemplateType(i);
1290
+ })) : this.msgcclist = [
1291
+ {
1292
+ type: "",
1293
+ tempid: "",
1294
+ msgList: []
1295
+ }
1296
+ ], 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) => ({
1297
+ ...i,
1298
+ type: String(i.type),
1299
+ msgList: []
1300
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msguplist.forEach((i) => {
1301
+ i.tempid != "" && this.selTemplateType(i);
1302
+ })) : this.msguplist = [
1303
+ {
1304
+ type: "",
1305
+ tempid: "",
1306
+ msgList: []
1307
+ }
1308
+ ], 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) => ({
1309
+ ...i,
1310
+ type: String(i.type),
1311
+ msgList: []
1312
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgrvlist.forEach((i) => {
1313
+ i.tempid != "" && this.selTemplateType(i);
1314
+ })) : this.msgrvlist = [
1315
+ {
1316
+ type: "",
1317
+ tempid: "",
1318
+ msgList: []
1319
+ }
1320
+ ], 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) => ({
1321
+ ...i,
1322
+ type: String(i.type),
1323
+ msgList: []
1324
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgrjlist.forEach((i) => {
1325
+ i.tempid != "" && this.selTemplateType(i);
1326
+ })) : this.msgrjlist = [
1327
+ {
1328
+ type: "",
1329
+ tempid: "",
1330
+ msgList: []
1331
+ }
1332
+ ], 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) => ({
1333
+ ...i,
1334
+ type: String(i.type),
1335
+ msgList: []
1336
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgtrlist.forEach((i) => {
1337
+ i.tempid != "" && this.selTemplateType(i);
1338
+ })) : this.msgtrlist = [
1339
+ {
1340
+ type: "",
1341
+ tempid: "",
1342
+ msgList: []
1343
+ }
1344
+ ], 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) => ({
1345
+ ...i,
1346
+ type: String(i.type),
1347
+ msgList: []
1348
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgaslist.forEach((i) => {
1349
+ i.tempid != "" && this.selTemplateType(i);
1350
+ })) : this.msgaslist = [
1351
+ {
1352
+ type: "",
1353
+ tempid: "",
1354
+ msgList: []
1355
+ }
1356
+ ], 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) => ({
1357
+ ...i,
1358
+ type: String(i.type),
1359
+ msgList: []
1360
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgrtlist.forEach((i) => {
1361
+ i.tempid != "" && this.selTemplateType(i);
1362
+ })) : this.msgrtlist = [
1363
+ {
1364
+ type: "",
1365
+ tempid: "",
1366
+ msgList: []
1367
+ }
1368
+ ], 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) => ({
1369
+ ...i,
1370
+ type: String(i.type),
1371
+ msgList: []
1372
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgrtalist.forEach((i) => {
1373
+ i.tempid != "" && this.selTemplateType(i);
1374
+ })) : this.msgrtalist = [
1375
+ {
1376
+ type: "",
1377
+ tempid: "",
1378
+ msgList: []
1379
+ }
1380
+ ], 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) => ({
1381
+ ...i,
1382
+ type: String(i.type),
1383
+ msgList: []
1384
+ })) : [{ type: "", tempid: "", msgList: [] }], this.msgaalist.forEach((i) => {
1385
+ i.tempid != "" && this.selTemplateType(i);
1386
+ })) : this.msgaalist = [
1387
+ {
1388
+ type: "",
1389
+ tempid: "",
1390
+ msgList: []
1391
+ }
1392
+ ], this.ruleFormData = e, this.$refs.ruleForm.resetFields(), this.$refs.gdTranslation && this.$refs.gdTranslation.init();
1393
+ }, 0);
1394
+ });
1395
+ },
1396
+ searchTable(s) {
1397
+ this.fetching = !0, this.tableNameData = [], z({
1398
+ busName: s
1399
+ }).then((t) => {
1400
+ this.tableNameData = [...t.data], this.fetching = !1;
1401
+ });
1402
+ },
1403
+ changeMsg(s) {
1404
+ this.msgType = s, this.searchMsgData("");
1405
+ },
1406
+ searchMsgData(s) {
1407
+ let t = {
1408
+ fkEntityName: this.fkEntityName,
1409
+ name: s
1410
+ };
1411
+ 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) => {
1412
+ 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);
1413
+ });
1414
+ },
1415
+ searchMsgDataId(s, t, e = 0) {
1416
+ let a = {
1417
+ fkEntityName: this.fkEntityName,
1418
+ id: s
1419
+ };
1420
+ 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(() => {
1421
+ w(a).then((l) => {
1422
+ 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;
1423
+ });
1424
+ }, e);
1425
+ },
1426
+ getDictionary(s) {
1427
+ return this.$options.filters.dictData(s);
1428
+ },
1429
+ toggleHistory() {
1430
+ this.showHistory = !this.showHistory;
1431
+ },
1432
+ addList(s) {
1433
+ let t = {
1434
+ id: f(),
1435
+ type: "",
1436
+ msgList: ""
1437
+ };
1438
+ 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));
1439
+ },
1440
+ delList(s, t) {
1441
+ 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));
1442
+ },
1443
+ selTemplateType(s) {
1444
+ q({
1445
+ templateType: s.type
1446
+ }).then((t) => {
1447
+ s.msgList = t.data;
1448
+ });
1449
+ }
1450
+ },
1451
+ created() {
1452
+ this.searchTable("");
1453
+ }
1454
+ };
1455
+ var ht = function() {
1456
+ var t = this, e = t._self._c;
1457
+ 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) {
1458
+ a.preventDefault();
1459
+ } } }, [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) {
1460
+ t.$set(t.ruleFormData, "transKey", a);
1461
+ }, 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) {
1462
+ t.$set(t.ruleFormData, "langs", a);
1463
+ }, 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) {
1464
+ t.$set(t.ruleFormData, "name", a);
1465
+ }, 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) {
1466
+ t.$set(t.ruleFormData, "tableId", a);
1467
+ }, expression: "ruleFormData.tableId" } }, t._l(t.tableNameData, function(a, l) {
1468
+ 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))])]);
1469
+ }), 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) {
1470
+ t.$set(t.ruleFormData, "category", a);
1471
+ }, expression: "ruleFormData.category" } }, t._l(t.dictList, function(a, l) {
1472
+ 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) } });
1473
+ }), 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) {
1474
+ t.$set(t.ruleFormData, "autoApprovalType", a);
1475
+ }, expression: "ruleFormData.autoApprovalType" } }, t._l(t.getDictionary("table_flows_autoApproval"), function(a, l) {
1476
+ return e("el-option", { key: l, attrs: { value: a.code, label: t.$i18nt(`Dynamics.${a.transKey}`, a.name) } });
1477
+ }), 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) {
1478
+ t.$set(t.ruleFormData, "isresubmit", a);
1479
+ }, 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) {
1480
+ return t.addList("1");
1481
+ } } }, [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) {
1482
+ 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) {
1483
+ return t.selTemplateType(a);
1484
+ } }, model: { value: a.type, callback: function(i) {
1485
+ t.$set(a, "type", i);
1486
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1487
+ 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)) + " ")]);
1488
+ }), 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) {
1489
+ return t.changeMsg(1);
1490
+ } }, model: { value: a.tempid, callback: function(i) {
1491
+ t.$set(a, "tempid", i);
1492
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1493
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1494
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1495
+ return t.delList(l, "1");
1496
+ } } })])], 1);
1497
+ }), 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) {
1498
+ return t.addList("2");
1499
+ } } }, [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) {
1500
+ 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) {
1501
+ return t.selTemplateType(a);
1502
+ } }, model: { value: a.type, callback: function(i) {
1503
+ t.$set(a, "type", i);
1504
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1505
+ 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)) + " ")]);
1506
+ }), 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) {
1507
+ return t.changeMsg(2);
1508
+ } }, model: { value: a.tempid, callback: function(i) {
1509
+ t.$set(a, "tempid", i);
1510
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1511
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1512
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1513
+ return t.delList(l, "2");
1514
+ } } })])], 1);
1515
+ }), 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) {
1516
+ return t.addList("3");
1517
+ } } }, [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) {
1518
+ 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) {
1519
+ return t.selTemplateType(a);
1520
+ } }, model: { value: a.type, callback: function(i) {
1521
+ t.$set(a, "type", i);
1522
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1523
+ 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)) + " ")]);
1524
+ }), 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) {
1525
+ return t.changeMsg(3);
1526
+ } }, model: { value: a.tempid, callback: function(i) {
1527
+ t.$set(a, "tempid", i);
1528
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1529
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1530
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1531
+ return t.delList(l, "3");
1532
+ } } })])], 1);
1533
+ }), 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) {
1534
+ return t.addList("4");
1535
+ } } }, [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) {
1536
+ 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) {
1537
+ return t.selTemplateType(a);
1538
+ } }, model: { value: a.type, callback: function(i) {
1539
+ t.$set(a, "type", i);
1540
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1541
+ 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)) + " ")]);
1542
+ }), 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) {
1543
+ return t.changeMsg(4);
1544
+ } }, model: { value: a.tempid, callback: function(i) {
1545
+ t.$set(a, "tempid", i);
1546
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1547
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1548
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1549
+ return t.delList(l, "4");
1550
+ } } })])], 1);
1551
+ }), 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) {
1552
+ return t.addList("5");
1553
+ } } }, [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) {
1554
+ 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) {
1555
+ return t.selTemplateType(a);
1556
+ } }, model: { value: a.type, callback: function(i) {
1557
+ t.$set(a, "type", i);
1558
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1559
+ 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)) + " ")]);
1560
+ }), 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) {
1561
+ return t.changeMsg(5);
1562
+ } }, model: { value: a.tempid, callback: function(i) {
1563
+ t.$set(a, "tempid", i);
1564
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1565
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1566
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1567
+ return t.delList(l, "5");
1568
+ } } })])], 1);
1569
+ }), 1)], 1), e("el-checkbox", { attrs: { disabled: t.disableds }, on: { click: t.onChange1 }, model: { value: t.isRejectMsg, callback: function(a) {
1570
+ t.isRejectMsg = a;
1571
+ }, 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) {
1572
+ return t.addList("6");
1573
+ } } }, [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) {
1574
+ 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) {
1575
+ return t.selTemplateType(a);
1576
+ } }, model: { value: a.type, callback: function(i) {
1577
+ t.$set(a, "type", i);
1578
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1579
+ 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)) + " ")]);
1580
+ }), 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) {
1581
+ return t.changeMsg(6);
1582
+ } }, model: { value: a.tempid, callback: function(i) {
1583
+ t.$set(a, "tempid", i);
1584
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1585
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1586
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1587
+ return t.delList(l, "6");
1588
+ } } })])], 1);
1589
+ }), 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) {
1590
+ return t.addList("7");
1591
+ } } }, [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) {
1592
+ 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) {
1593
+ return t.selTemplateType(a);
1594
+ } }, model: { value: a.type, callback: function(i) {
1595
+ t.$set(a, "type", i);
1596
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1597
+ 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)) + " ")]);
1598
+ }), 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) {
1599
+ return t.changeMsg(7);
1600
+ } }, model: { value: a.tempid, callback: function(i) {
1601
+ t.$set(a, "tempid", i);
1602
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1603
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1604
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1605
+ return t.delList(l, "7");
1606
+ } } })])], 1);
1607
+ }), 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) {
1608
+ return t.addList("8");
1609
+ } } }, [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) {
1610
+ 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) {
1611
+ return t.selTemplateType(a);
1612
+ } }, model: { value: a.type, callback: function(i) {
1613
+ t.$set(a, "type", i);
1614
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1615
+ 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)) + " ")]);
1616
+ }), 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) {
1617
+ return t.changeMsg(8);
1618
+ } }, model: { value: a.tempid, callback: function(i) {
1619
+ t.$set(a, "tempid", i);
1620
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1621
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1622
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1623
+ return t.delList(l, "8");
1624
+ } } })])], 1);
1625
+ }), 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) {
1626
+ t.isReturnMsg = a;
1627
+ }, 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) {
1628
+ return t.addList("9");
1629
+ } } }, [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) {
1630
+ 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) {
1631
+ return t.selTemplateType(a);
1632
+ } }, model: { value: a.type, callback: function(i) {
1633
+ t.$set(a, "type", i);
1634
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1635
+ 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)) + " ")]);
1636
+ }), 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) {
1637
+ return t.changeMsg(9);
1638
+ } }, model: { value: a.tempid, callback: function(i) {
1639
+ t.$set(a, "tempid", i);
1640
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1641
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1642
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1643
+ return t.delList(l, "9");
1644
+ } } })])], 1);
1645
+ }), 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) {
1646
+ return t.addList("10");
1647
+ } } }, [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) {
1648
+ 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) {
1649
+ return t.selTemplateType(a);
1650
+ } }, model: { value: a.type, callback: function(i) {
1651
+ t.$set(a, "type", i);
1652
+ }, expression: "item.type" } }, t._l(t.getSendType, function(i, n) {
1653
+ 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)) + " ")]);
1654
+ }), 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) {
1655
+ return t.changeMsg(10);
1656
+ } }, model: { value: a.tempid, callback: function(i) {
1657
+ t.$set(a, "tempid", i);
1658
+ }, expression: "item.tempid" } }, t._l(a.msgList, function(i, n) {
1659
+ return e("el-option", { key: n, attrs: { value: i.id, label: i.name } });
1660
+ }), 1)], 1)]), e("el-col", { staticStyle: { "padding-top": "2px" }, attrs: { span: 4 } }, [e("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
1661
+ return t.delList(l, "10");
1662
+ } } })])], 1);
1663
+ }), 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) {
1664
+ t.$set(t.ruleFormData, "stateCodes", a);
1665
+ }, expression: "ruleFormData.stateCodes" } }, t._l(t.getDictionary("state_code"), function(a, l) {
1666
+ return e("el-option", { key: l, attrs: { value: a.code, label: t.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
1667
+ }), 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) {
1668
+ t.$set(t.ruleFormData, "enCode", a);
1669
+ }, 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) {
1670
+ t.$set(t.ruleFormData, "description", a);
1671
+ }, expression: "ruleFormData.description" } })], 1)], 1)], 1)], 1), e("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: t.lookupSeled } })], 1);
1672
+ }, mt = [], ft = /* @__PURE__ */ h(
1673
+ pt,
1674
+ ht,
1675
+ mt,
1676
+ !1,
1677
+ null,
1678
+ "11b988ef",
1679
+ null,
1680
+ null
1681
+ );
1682
+ const yt = ft.exports;
1683
+ const bt = {
1684
+ props: {
1685
+ modeType: {
1686
+ type: String,
1687
+ default: "approval"
1688
+ }
1689
+ },
1690
+ data() {
1691
+ return {
1692
+ scaleVal: 100,
1693
+ permissionsBnt: !0,
1694
+ record: null,
1695
+ title: "\u5BA1\u6279\u6D41\u7A0B",
1696
+ visible: !1,
1697
+ confirmLoading: !1,
1698
+ list: [],
1699
+ sysViewButtons: [
1700
+ {
1701
+ displayName: "\u4E0A\u4E00\u6B65",
1702
+ functionName: "previous",
1703
+ show: !1,
1704
+ transKey: "gd.btn.prev",
1705
+ icon: "el-icon-d-arrow-left"
1706
+ },
1707
+ {
1708
+ displayName: "\u4E0B\u4E00\u6B65",
1709
+ functionName: "next",
1710
+ show: !0,
1711
+ transKey: "gd.btn.next",
1712
+ icon: "el-icon-d-arrow-right"
1713
+ },
1714
+ {
1715
+ displayName: "\u4FDD\u5B58",
1716
+ functionName: "handleSubmit",
1717
+ show: !1,
1718
+ transKey: "gd.btn.save",
1719
+ icon: "el-icon-document-checked"
1720
+ }
1721
+ ],
1722
+ current: -1,
1723
+ status: "success",
1724
+ detail: null,
1725
+ menberList: [],
1726
+ fullscreen: !1,
1727
+ width: "90%",
1728
+ stateCodes: 0,
1729
+ startCategory: ""
1730
+ };
1731
+ },
1732
+ components: {
1733
+ Settings: yt
1734
+ },
1735
+ computed: {
1736
+ prefixKey() {
1737
+ const s = this.detail ? this.detail.id : f(8);
1738
+ return S("saf", s);
1739
+ },
1740
+ bodyStyle() {
1741
+ return {
1742
+ background: this.current == 0 ? "#f5f6f6" : "#fff",
1743
+ borderRadius: "10px"
1744
+ };
1745
+ }
1746
+ },
1747
+ methods: {
1748
+ changeCurrent(s) {
1749
+ this.current !== s && this.onChange(s);
1750
+ },
1751
+ plusAdd(s) {
1752
+ let t = s == "-" ? this.scaleVal - 5 : this.scaleVal + 5;
1753
+ this.scaleVal = t <= 50 ? 50 : t >= 150 ? 150 : t;
1754
+ },
1755
+ toggleFullscreen() {
1756
+ this.fullscreen = !this.fullscreen;
1757
+ },
1758
+ onChange(s) {
1759
+ if (s == 1) {
1760
+ this.next();
1761
+ return;
1762
+ }
1763
+ this.previous();
1764
+ },
1765
+ open(s) {
1766
+ this.startCategory = "", this.fullscreen = !1, this.record = s;
1767
+ let t = s ? "sysFlowWork:edit" : "sysFlowWork:add";
1768
+ 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) {
1769
+ this.current = 1, this.getDetail();
1770
+ return;
1771
+ }
1772
+ this.current = 0, this.stateCodes = 0, this.status = "process", this.init();
1773
+ },
1774
+ init() {
1775
+ let s = [], t = m("start"), e = m("end");
1776
+ s.push(t), s.push(e), this.list = s, this.$nextTick(() => {
1777
+ setTimeout(() => {
1778
+ this.$refs.settings.init(null);
1779
+ }, 0);
1780
+ });
1781
+ },
1782
+ getMenber() {
1783
+ B().then((s) => {
1784
+ if (s.code == 200) {
1785
+ 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);
1786
+ t(s.data), this.menberList = s.data;
1787
+ }
1788
+ });
1789
+ },
1790
+ getDetail(s) {
1791
+ this.confirmLoading = !0, N(this.record).then((t) => {
1792
+ if (t.success) {
1793
+ let e = [], a = m("start"), l = t.data, i = {
1794
+ name: l.name,
1795
+ enCode: l.encode,
1796
+ category: l.category,
1797
+ stateCodes: l.statecodes == 1 ? "1" : "0",
1798
+ description: l.description,
1799
+ tableId: l.tableid,
1800
+ msg_MessagetemPlateId: l.msg_messagetemplateid,
1801
+ msg_MessagetemPlateId_CC: l.msg_messagetemplateid_cc,
1802
+ msg_MessagetemPlateId_UP: l.msg_messagetemplateid_up,
1803
+ msg_MessagetemPlateId_RV: l.msg_messagetemplateid_rv,
1804
+ msg_MessagetemPlateId_RJ: l.msg_messagetemplateid_rj,
1805
+ msg_MessagetemPlateId_TR: l.msg_messagetemplateid_tr,
1806
+ msg_MessagetemPlateId_AS: l.msg_messagetemplateid_as,
1807
+ msg_MessagetemPlateId_RT: l.msg_messagetemplateid_rt,
1808
+ msg_MessagetemPlateId_RTA: l.msg_messagetemplateid_rta,
1809
+ msg_MessagetemPlateId_AA: l.msg_messagetemplateid_aa,
1810
+ isReturnMsg: l.isreturnmsg,
1811
+ isRejectMsg: l.isrejectmsg,
1812
+ autoApprovalType: l.autoapprovaltype,
1813
+ isresubmit: l.isresubmit,
1814
+ langs: [],
1815
+ transKey: t.data.transkey ? t.data.transkey : null
1816
+ };
1817
+ this.startCategory = l.category;
1818
+ let n = m("end");
1819
+ e.push(a);
1820
+ let o = JSON.parse(l.flowtemplatejson);
1821
+ 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);
1822
+ }
1823
+ this.confirmLoading = !1;
1824
+ });
1825
+ },
1826
+ sbumitNext(s) {
1827
+ 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(() => {
1828
+ setTimeout(() => {
1829
+ this.$refs.flowsDesigner.init(this.list), this.$refs.settings.init(s);
1830
+ }, 0);
1831
+ });
1832
+ },
1833
+ handleSubmit() {
1834
+ let s = this.$refs.flowsDesigner.list, t = s.length - 1, e = s.filter((r, c) => !(c == 0 || c == t));
1835
+ if (e.length == 0) {
1836
+ this.$message.error(this.$i18nt("gd.flow.perfectTip", "\u8BF7\u5B8C\u5584\u4FE1\u606F!"));
1837
+ return;
1838
+ }
1839
+ let a = [], l = s[0].data, i = [];
1840
+ 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) => {
1841
+ if (d.type != "else") {
1842
+ const p = d.properties.conditions.list.length > 0 ? d.properties.conditions.list[0].columnname : d.properties.conditions.columnname;
1843
+ d.err = p === "", d.err && a.push(d);
1844
+ }
1845
+ d.list = n(d.list);
1846
+ }), c.type == "parallel" && c.list.forEach((d) => {
1847
+ const p = d.properties.conditions.list.length > 0 ? d.properties.conditions.list[0].columnname : d.properties.conditions.columnname;
1848
+ d.err = p === "", d.err && a.push(d), d.list = n(d.list);
1849
+ }), 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);
1850
+ if (n(e), l = Object.assign({ ...l }, { flowtemplatejson: JSON.stringify(e), enabled: l.enabled == 1 }), a.length > 0) {
1851
+ this.$message.error(this.$i18nt("gd.flow.nodeTip", "\u8BF7\u6839\u636E\u63D0\u793A\u5B8C\u6210\u6D41\u7A0B\u8282\u70B9\u8BBE\u7F6E!"));
1852
+ return;
1853
+ }
1854
+ if (i.length == 0) {
1855
+ this.$message.error(this.$i18nt("gd.flow.approval.nodeApproval", "\u8BF7\u6DFB\u52A0\u5BA1\u6838\u4EBA\u6D41\u7A0B\u914D\u7F6E"));
1856
+ return;
1857
+ }
1858
+ let o = /* @__PURE__ */ new Map();
1859
+ for (let r in l)
1860
+ o.set(r.toLowerCase(), l[r]);
1861
+ this.record ? this.edit(Object.fromEntries(o)) : this.add(Object.fromEntries(o));
1862
+ },
1863
+ add(s) {
1864
+ this.confirmLoading = !0, I(s).then((t) => {
1865
+ if (t.success) {
1866
+ this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.$emit("ok", t.data);
1867
+ let e = this.$refs.flowsDesigner.delTransKeyList;
1868
+ this.deltransKey(e), this.handleCancel(1);
1869
+ } else
1870
+ this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25") + t.message);
1871
+ this.confirmLoading = !1;
1872
+ });
1873
+ },
1874
+ edit(s) {
1875
+ this.confirmLoading = !0, L(Object.assign({ ...this.detail }, { ...s })).then((t) => {
1876
+ if (t.success) {
1877
+ this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.$emit("ok", t.data);
1878
+ let e = this.$refs.flowsDesigner.delTransKeyList;
1879
+ this.deltransKey(e), this.handleCancel(2);
1880
+ } else
1881
+ this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25") + t.message);
1882
+ this.confirmLoading = !1;
1883
+ });
1884
+ },
1885
+ isAutoApproval(s, t) {
1886
+ if (t.properties.assigneeType != "3" && t.properties.assigneeType != "4")
1887
+ return !1;
1888
+ let a = this.getDictionary("table_flows_autoApproval").filter((n) => n.code == String(s.autoApprovalType))[0];
1889
+ if (a === void 0)
1890
+ return !0;
1891
+ let l = a.remark ? a.remark.split("#") : [];
1892
+ return !(l.length > 0 ? l[l.length - 1].split(",") : []).includes(t.properties.autoApprvalType);
1893
+ },
1894
+ previous() {
1895
+ 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(() => {
1896
+ setTimeout(() => {
1897
+ this.$refs.settings.init(this.list[0].data);
1898
+ }, 0);
1899
+ });
1900
+ },
1901
+ next() {
1902
+ this.$refs.settings.addSubmit();
1903
+ },
1904
+ async handleCancel(s) {
1905
+ if (s !== 2 && s !== 1) {
1906
+ let t = this.$refs.flowsDesigner.addTransKeyList;
1907
+ this.deltransKey(t);
1908
+ }
1909
+ this.visible = !1, this.detail = null, await this.init(), setTimeout(() => {
1910
+ this.$refs.flowsDesigner.init(this.list), this.previous();
1911
+ }, 200);
1912
+ },
1913
+ deltransKey(s) {
1914
+ s.length !== 0 && T({
1915
+ name: s.join(",")
1916
+ });
1917
+ },
1918
+ doEvent(s) {
1919
+ let t = s.item.functionName;
1920
+ this[t] && this[t]();
1921
+ },
1922
+ getDictionary(s) {
1923
+ return this.$options.filters.dictData(s);
1924
+ }
1925
+ }
1926
+ };
1927
+ var _t = function() {
1928
+ var t = this, e = t._self._c;
1929
+ 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) {
1930
+ t.visible = a;
1931
+ }, 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) {
1932
+ return t.changeCurrent(0);
1933
+ } } }), e("el-step", { staticStyle: { cursor: "pointer" }, attrs: { title: t.$i18nt("gd.flow.processDesign", "\u6D41\u7A0B\u8BBE\u8BA1") }, nativeOn: { click: function(a) {
1934
+ return t.changeCurrent(1);
1935
+ } } })], 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) {
1936
+ return t.plusAdd("-");
1937
+ } } }), 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) {
1938
+ return t.plusAdd("+");
1939
+ } } })]), 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);
1940
+ }, vt = [], wt = /* @__PURE__ */ h(
1941
+ bt,
1942
+ _t,
1943
+ vt,
1944
+ !1,
1945
+ null,
1946
+ "4a0e7cce",
1947
+ null,
1948
+ null
1949
+ );
1950
+ const $t = wt.exports, Ct = {
1951
+ data() {
1952
+ return {
1953
+ tableColumns: [{
1954
+ type: "selection",
1955
+ width: "60"
1956
+ }, {
1957
+ transKey: "gd.flow.processName",
1958
+ prop: "name",
1959
+ label: "\u6D41\u7A0B\u540D\u79F0",
1960
+ width: "260",
1961
+ type: "slot",
1962
+ slotType: "name",
1963
+ align: "left",
1964
+ showOverflowTooltip: !0
1965
+ }, {
1966
+ transKey: "gd.process.tableSort",
1967
+ prop: "sysCodeGenId",
1968
+ label: "\u8868\u540D\u79F0(\u70B9\u51FB\u53EF\u6392\u5E8F)",
1969
+ width: "260",
1970
+ type: "slot",
1971
+ slotType: "sysCodeGenId",
1972
+ align: "left",
1973
+ showOverflowTooltip: !0
1974
+ }, {
1975
+ transKey: "gd.flow.state",
1976
+ prop: "stateCodes",
1977
+ width: "160",
1978
+ label: "\u72B6\u6001",
1979
+ type: "slot",
1980
+ slotType: "stateCodes",
1981
+ align: "left"
1982
+ }, {
1983
+ transKey: "gd.flow.creationTime",
1984
+ prop: "createdtime",
1985
+ width: "180",
1986
+ label: "\u521B\u5EFA\u65F6\u95F4",
1987
+ align: "center"
1988
+ }, {
1989
+ transKey: "gd.flow.explain",
1990
+ prop: "description",
1991
+ width: "260",
1992
+ label: "\u8BF4\u660E",
1993
+ align: "left"
1994
+ }],
1995
+ tableButtons: [
1996
+ {
1997
+ displayName: "\u65B0\u589E",
1998
+ functionName: "add",
1999
+ show: !0,
2000
+ transKey: "gd.btn.add",
2001
+ icon: "el-icon-plus",
2002
+ name: "sysFlowProcess:add"
2003
+ },
2004
+ {
2005
+ displayName: "\u7F16\u8F91",
2006
+ functionName: "edit",
2007
+ show: !0,
2008
+ transKey: "gd.btn.edit",
2009
+ icon: "el-icon-edit",
2010
+ name: "sysFlowProcess:edit"
2011
+ },
2012
+ {
2013
+ displayName: "\u5220\u9664",
2014
+ functionName: "del",
2015
+ show: !0,
2016
+ transKey: "gd.btn.del",
2017
+ icon: "el-icon-delete",
2018
+ btnType: "danger",
2019
+ name: "sysFlowProcess:delete"
2020
+ },
2021
+ {
2022
+ displayName: "\u6392\u5E8F",
2023
+ functionName: "sortSel",
2024
+ show: !0,
2025
+ transKey: "gd.btn.sort",
2026
+ icon: "el-icon-rank",
2027
+ name: "sysFlowProcess:sort"
2028
+ }
2029
+ ],
2030
+ tableQueries: [{
2031
+ transKey: "gd.process.tableSor",
2032
+ prop: "tableId",
2033
+ label: "\u8868\u540D\u79F0",
2034
+ effectType: "selectTable",
2035
+ rules: []
2036
+ }, {
2037
+ transKey: "gd.flow.state",
2038
+ prop: "stateCodes",
2039
+ label: "\u72B6\u6001",
2040
+ effectType: "select",
2041
+ dictTypeCode: "state_code",
2042
+ rules: []
2043
+ }]
2044
+ };
2045
+ }
2046
+ };
2047
+ const kt = {
2048
+ props: {
2049
+ record: {
2050
+ type: Object,
2051
+ default: () => ({})
2052
+ }
2053
+ },
2054
+ data() {
2055
+ return {
2056
+ selectedRowKeys: [],
2057
+ fullscreen: !1,
2058
+ confirmLoading: !1,
2059
+ sysViewButtons: [
2060
+ {
2061
+ displayName: "\u786E\u5B9A",
2062
+ functionName: "handleSubmit",
2063
+ show: !0,
2064
+ transKey: "gd.btn.confirm",
2065
+ icon: "el-icon-document-checked",
2066
+ name: "sysMsgSendPlan:edit"
2067
+ }
2068
+ ],
2069
+ visible: !1,
2070
+ width: "600px",
2071
+ title: "",
2072
+ columns: [
2073
+ {
2074
+ label: "\u64CD\u4F5C",
2075
+ width: "100",
2076
+ prop: "handle",
2077
+ type: "slot",
2078
+ slotType: "handle",
2079
+ align: "left",
2080
+ transKey: "gd.flow.handle"
2081
+ },
2082
+ {
2083
+ label: "\u6D41\u7A0B\u540D\u79F0",
2084
+ prop: "name",
2085
+ type: "slot",
2086
+ align: "left",
2087
+ slotType: "name",
2088
+ transKey: "gd.flow.processName"
2089
+ },
2090
+ {
2091
+ title: "\u72B6\u6001",
2092
+ prop: "stateCodes",
2093
+ type: "slot",
2094
+ slotType: "stateCodes",
2095
+ align: "left",
2096
+ transKey: "gd.flow.state"
2097
+ }
2098
+ ],
2099
+ loadData: []
2100
+ };
2101
+ },
2102
+ components: {
2103
+ draggable: G
2104
+ },
2105
+ computed: {
2106
+ ...y(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
2107
+ },
2108
+ methods: {
2109
+ open(s) {
2110
+ this.visible = !0, this.fullscreen = !1, this.confirmLoading = !0, this.$nextTick(() => {
2111
+ setTimeout(() => {
2112
+ this.refresh();
2113
+ }, 0);
2114
+ });
2115
+ },
2116
+ toggleFullscreen() {
2117
+ this.fullscreen = !this.fullscreen;
2118
+ },
2119
+ refresh() {
2120
+ M({
2121
+ tableId: this.record.syscodegenid
2122
+ }).then((s) => {
2123
+ s.success && (this.loadData = s.data, this.confirmLoading = !1);
2124
+ });
2125
+ },
2126
+ handleSubmit() {
2127
+ this.$confirm(this.$i18nt("gd.https.saveContent", "\u662F\u5426\u786E\u8BA4\u4FDD\u5B58?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2128
+ confirmButtonText: this.$i18nt("gd.https.saveOk", "\u786E\u8BA4\u4FDD\u5B58"),
2129
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2130
+ showClose: !1,
2131
+ confirmButtonLoading: !1,
2132
+ cancelButtonLoading: !1,
2133
+ closeOnClickModal: !1,
2134
+ type: "warning",
2135
+ confirmButtonClass: "el-button--danger",
2136
+ customClass: "custom-alert",
2137
+ callback: () => {
2138
+ },
2139
+ beforeClose: (s, t, e) => {
2140
+ this.sava(s, t, e);
2141
+ }
2142
+ });
2143
+ },
2144
+ sava(s, t, e) {
2145
+ if (s !== "confirm") {
2146
+ e();
2147
+ return;
2148
+ }
2149
+ let a = [];
2150
+ this.loadData.forEach((n, o) => {
2151
+ let r = {
2152
+ id: n.id,
2153
+ seqencing: o + 1,
2154
+ name: n.name
2155
+ };
2156
+ a.push(r);
2157
+ });
2158
+ let l = [], i = K(a).then((n) => n);
2159
+ l.push(i), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(l).then((n) => {
2160
+ t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, e();
2161
+ const o = n.filter((r) => !r.success);
2162
+ 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);
2163
+ });
2164
+ },
2165
+ closed() {
2166
+ this.visible = !1, this.loadData = [];
2167
+ },
2168
+ doEvent(s) {
2169
+ let t = s.item.functionName;
2170
+ this[t]();
2171
+ },
2172
+ dictSwitch(s, t) {
2173
+ let e = this.$options.filters.dictData(t).filter((a) => a.code == s)[0];
2174
+ return e != null && e.colour ? e.colour : null;
2175
+ }
2176
+ }
2177
+ };
2178
+ var Lt = function() {
2179
+ var t = this, e = t._self._c;
2180
+ 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) {
2181
+ t.visible = a;
2182
+ }, 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("div", { staticClass: "title_btom" }, [e("draggable", t._b({ model: { value: t.loadData, callback: function(a) {
2183
+ t.loadData = a;
2184
+ }, expression: "loadData" } }, "draggable", { animation: 300, handle: ".drag-move" }, !1), [t._l(t.loadData, function(a) {
2185
+ return [e("el-row", [e("el-col", { attrs: { span: 6 } }, [e("i", { staticClass: "drag-move el-icon-rank active-color", 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)];
2186
+ })], 2)], 1)])])], 1)], 1);
2187
+ }, St = [], Tt = /* @__PURE__ */ h(
2188
+ kt,
2189
+ Lt,
2190
+ St,
2191
+ !1,
2192
+ null,
2193
+ "f458df24",
2194
+ null,
2195
+ null
2196
+ );
2197
+ const D = Tt.exports, Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2198
+ __proto__: null,
2199
+ default: D
2200
+ }, Symbol.toStringTag, { value: "Module" }));
2201
+ const xt = {
2202
+ props: {
2203
+ height: {
2204
+ type: Number,
2205
+ default: 0
2206
+ }
2207
+ },
2208
+ mixins: [v, Ct],
2209
+ data() {
2210
+ return {
2211
+ selectedRows: [],
2212
+ selectedRowKeys: [],
2213
+ queryParam: {},
2214
+ loadData: (s) => R(Object.assign(s, this.queryParam)).then((t) => (this.upStatuList = null, t.data)),
2215
+ detail: {}
2216
+ };
2217
+ },
2218
+ computed: {
2219
+ getHeight() {
2220
+ return this.height - 55;
2221
+ },
2222
+ styled() {
2223
+ return this.$hasPerm("sysFlowProcess:edit") ? `color:${this.primaryColor};cursor: pointer;` : "";
2224
+ },
2225
+ ...y(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
2226
+ },
2227
+ components: {
2228
+ flowDesign: st,
2229
+ FlowsSort: D
2230
+ },
2231
+ methods: {
2232
+ add() {
2233
+ this.transKey = "gd.btn.add", this.visible = !0, this.$refs.flowDesign.open(null);
2234
+ },
2235
+ edit() {
2236
+ if (this.selectedRowKeys.length === 0) {
2237
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
2238
+ return;
2239
+ }
2240
+ if (this.selectedRowKeys.length > 1) {
2241
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
2242
+ return;
2243
+ }
2244
+ this.editForm(this.selectedRows[0]);
2245
+ },
2246
+ del() {
2247
+ if (this.selectedRowKeys.length === 0) {
2248
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
2249
+ return;
2250
+ }
2251
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2252
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
2253
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2254
+ showClose: !1,
2255
+ confirmButtonLoading: !1,
2256
+ cancelButtonLoading: !1,
2257
+ closeOnClickModal: !1,
2258
+ type: "warning",
2259
+ confirmButtonClass: "el-button--danger",
2260
+ customClass: "custom-alert",
2261
+ callback: () => {
2262
+ },
2263
+ beforeClose: (s, t, e) => {
2264
+ this.delHand(s, t, e);
2265
+ }
2266
+ });
2267
+ },
2268
+ delHand(s, t, e) {
2269
+ if (s !== "confirm") {
2270
+ e();
2271
+ return;
2272
+ }
2273
+ let a = [], l = O({
2274
+ ids: this.selectedRowKeys.join(",")
2275
+ }).then((i) => i);
2276
+ a.push(l), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(a).then((i) => {
2277
+ e(), t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0;
2278
+ const n = i.filter((o) => !o.success);
2279
+ 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();
2280
+ });
2281
+ },
2282
+ enabling(s) {
2283
+ let t = Object.assign(
2284
+ {
2285
+ ...s
2286
+ },
2287
+ {
2288
+ statecodes: s.statecodes == 1 ? 0 : 1
2289
+ }
2290
+ ), e = s.statecodes == 1 ? "\u662F\u5426\u7981\u7528?" : "\u662F\u5426\u542F\u7528?";
2291
+ this.$confirm(e, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2292
+ confirmButtonText: s.statecodes == 1 ? this.$i18nt("gd.state.disable") : this.$i18nt("gd.state.enable"),
2293
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2294
+ showClose: !1,
2295
+ confirmButtonLoading: !1,
2296
+ cancelButtonLoading: !1,
2297
+ closeOnClickModal: !1,
2298
+ type: "warning",
2299
+ confirmButtonClass: "el-button--danger",
2300
+ customClass: "custom-alert",
2301
+ callback: () => {
2302
+ },
2303
+ beforeClose: (a, l, i) => {
2304
+ this.enabHand(a, l, i, t);
2305
+ }
2306
+ });
2307
+ },
2308
+ enabHand(s, t, e, a) {
2309
+ if (s !== "confirm") {
2310
+ e();
2311
+ return;
2312
+ }
2313
+ let l = [], i = $(a).then((n) => n);
2314
+ l.push(i), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(l).then((n) => {
2315
+ t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, e();
2316
+ const o = n.filter((r) => !r.success);
2317
+ 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();
2318
+ });
2319
+ },
2320
+ onSelectChange(s, t) {
2321
+ this.selectedRowKeys = s, this.selectedRows = t;
2322
+ },
2323
+ saveQueries(s) {
2324
+ this.queryParam = {
2325
+ ...s
2326
+ }, this.refresh();
2327
+ },
2328
+ editForm(s) {
2329
+ this.$refs.flowDesign.open(s.id);
2330
+ },
2331
+ sortList(s) {
2332
+ !this.$hasPerm("sysFlowProcess:sort") || (this.detail = s, this.$nextTick(() => {
2333
+ setTimeout(() => {
2334
+ this.$refs.flowsSort.open();
2335
+ }, 0);
2336
+ }));
2337
+ },
2338
+ sortSel() {
2339
+ if (this.selectedRowKeys.length === 0) {
2340
+ this.$message.warning(this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"));
2341
+ return;
2342
+ }
2343
+ if (this.selectedRowKeys.length > 1) {
2344
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
2345
+ return;
2346
+ }
2347
+ this.detail = this.selectedRows[0], this.$nextTick(() => {
2348
+ setTimeout(() => {
2349
+ this.$refs.flowsSort.open();
2350
+ }, 0);
2351
+ });
2352
+ },
2353
+ refresh() {
2354
+ this.$refs.table.refresh();
2355
+ },
2356
+ dictSwitch(s, t) {
2357
+ let e = this.$options.filters.dictData(t).filter((a) => a.code == s)[0];
2358
+ return e != null && e.colour ? e.colour : null;
2359
+ },
2360
+ doEvent(s) {
2361
+ let t = s.item.functionName;
2362
+ this[t] && this[t]();
2363
+ }
2364
+ }
2365
+ };
2366
+ var Ft = function() {
2367
+ var t = this, e = t._self._c;
2368
+ 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() {
2369
+ 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) {
2370
+ t.$set(t.queryParam, "tableId", a);
2371
+ }, expression: "queryParam.tableId" } }, t._l(t.tableLists, function(a) {
2372
+ 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) + " ")]);
2373
+ }), 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)])];
2374
+ }, proxy: !0 }, { key: "name", fn: function({ column: a, row: l }) {
2375
+ return [e("div", { staticClass: "active-color line1", staticStyle: { cursor: "pointer" }, on: { click: function(i) {
2376
+ return t.editForm(l);
2377
+ } } }, [t._v(t._s(l.name))])];
2378
+ } }, { key: "sysCodeGenId", fn: function({ column: a, row: l }) {
2379
+ return [l.syscodegen ? e("span", { style: t.styled, on: { click: function(i) {
2380
+ return t.sortList(l);
2381
+ } } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${l.syscodegen.transkey}`, l.syscodegen.busname)) + " ")]) : t._e()];
2382
+ } }, { key: "stateCodes", fn: function(a) {
2383
+ 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) {
2384
+ return t.enabling(a.row);
2385
+ } } }, [t._v(" " + t._s(t._f("dictType")("state_code", a.row.statecodes)) + " ")]) : e("span", { on: { click: function(l) {
2386
+ return t.enabling(a.row);
2387
+ } } }, [t._v(t._s(t._f("dictType")("state_code", a.row.statecodes)))])];
2388
+ } }, { key: "filtering", fn: function({ colse: a, visible: l }) {
2389
+ return [e("gd-table-queries-field", { attrs: { columns: t.tableQueries, height: t.getHeight, queryParam: t.queryParam, colse: a, visible: l }, on: { save: t.saveQueries } })];
2390
+ } }]) })], 1), e("flowDesign", { ref: "flowDesign", on: { ok: t.refresh } }), e("FlowsSort", { ref: "flowsSort", attrs: { record: t.detail }, on: { ok: t.refresh } })], 1);
2391
+ }, Pt = [], Bt = /* @__PURE__ */ h(
2392
+ xt,
2393
+ Ft,
2394
+ Pt,
2395
+ !1,
2396
+ null,
2397
+ "fc2db8b4",
2398
+ null,
2399
+ null
2400
+ );
2401
+ const Nt = Bt.exports, It = {
2402
+ data() {
2403
+ return {
2404
+ tableColumns: [{
2405
+ type: "selection",
2406
+ width: "60"
2407
+ }, {
2408
+ transKey: "gd.flow.processName",
2409
+ prop: "name",
2410
+ label: "\u6D41\u7A0B\u540D\u79F0",
2411
+ width: "260",
2412
+ type: "slot",
2413
+ slotType: "name",
2414
+ align: "left",
2415
+ showOverflowTooltip: !0
2416
+ }, {
2417
+ transKey: "gd.process.tableSort",
2418
+ prop: "sysCodeGenId",
2419
+ label: "\u8868\u540D\u79F0",
2420
+ width: "260",
2421
+ type: "slot",
2422
+ slotType: "sysCodeGenId",
2423
+ align: "left",
2424
+ showOverflowTooltip: !0
2425
+ }, {
2426
+ transKey: "gd.flow.state",
2427
+ prop: "stateCodes",
2428
+ width: "160",
2429
+ label: "\u72B6\u6001",
2430
+ type: "slot",
2431
+ slotType: "stateCodes",
2432
+ align: "left"
2433
+ }, {
2434
+ transKey: "gd.flow.creationTime",
2435
+ prop: "createdtime",
2436
+ width: "160",
2437
+ label: "\u521B\u5EFA\u65F6\u95F4",
2438
+ align: "center"
2439
+ }],
2440
+ tableButtons: [
2441
+ {
2442
+ displayName: "\u65B0\u589E",
2443
+ functionName: "add",
2444
+ show: !0,
2445
+ transKey: "gd.btn.add",
2446
+ icon: "el-icon-plus",
2447
+ name: "sysFlowWork:add"
2448
+ },
2449
+ {
2450
+ displayName: "\u7F16\u8F91",
2451
+ functionName: "edit",
2452
+ show: !0,
2453
+ transKey: "gd.btn.edit",
2454
+ icon: "el-icon-edit",
2455
+ name: "sysFlowWork:edit"
2456
+ },
2457
+ {
2458
+ displayName: "\u5220\u9664",
2459
+ functionName: "del",
2460
+ show: !0,
2461
+ transKey: "gd.btn.del",
2462
+ icon: "el-icon-delete",
2463
+ btnType: "danger",
2464
+ name: "sysFlowWork:delete"
2465
+ }
2466
+ ],
2467
+ tableQueries: [{
2468
+ transKey: "gd.process.tableSor",
2469
+ prop: "tableId",
2470
+ label: "\u8868\u540D\u79F0",
2471
+ effectType: "selectTable",
2472
+ rules: []
2473
+ }, {
2474
+ transKey: "gd.flow.state",
2475
+ prop: "stateCodes",
2476
+ label: "\u72B6\u6001",
2477
+ effectType: "select",
2478
+ dictTypeCode: "state_code",
2479
+ rules: []
2480
+ }]
2481
+ };
2482
+ }
2483
+ };
2484
+ const Mt = {
2485
+ props: {
2486
+ height: {
2487
+ type: Number,
2488
+ default: 0
2489
+ }
2490
+ },
2491
+ mixins: [v, It],
2492
+ data() {
2493
+ return {
2494
+ selectedRows: [],
2495
+ selectedRowKeys: [],
2496
+ queryParam: {},
2497
+ loadData: (s) => A(Object.assign(s, this.queryParam)).then((t) => (this.upStatuList = null, t.data)),
2498
+ confirmLoading: !1,
2499
+ upStatuList: null
2500
+ };
2501
+ },
2502
+ computed: {
2503
+ getHeight() {
2504
+ return this.height - 55;
2505
+ },
2506
+ ...y(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
2507
+ },
2508
+ components: {
2509
+ flowDesign: gt
2510
+ },
2511
+ methods: {
2512
+ add() {
2513
+ this.transKey = "gd.btn.add", this.visible = !0, this.$refs.flowDesign.open(null);
2514
+ },
2515
+ edit() {
2516
+ if (this.selectedRowKeys.length === 0) {
2517
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
2518
+ return;
2519
+ }
2520
+ if (this.selectedRowKeys.length > 1) {
2521
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
2522
+ return;
2523
+ }
2524
+ this.editForm(this.selectedRows[0]);
2525
+ },
2526
+ del() {
2527
+ if (this.selectedRowKeys.length === 0) {
2528
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
2529
+ return;
2530
+ }
2531
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2532
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
2533
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2534
+ showClose: !1,
2535
+ confirmButtonLoading: !1,
2536
+ cancelButtonLoading: !1,
2537
+ closeOnClickModal: !1,
2538
+ type: "warning",
2539
+ confirmButtonClass: "el-button--danger",
2540
+ customClass: "custom-alert",
2541
+ callback: () => {
2542
+ },
2543
+ beforeClose: (s, t, e) => {
2544
+ this.delHand(s, t, e);
2545
+ }
2546
+ });
2547
+ },
2548
+ delHand(s, t, e) {
2549
+ if (s !== "confirm") {
2550
+ e();
2551
+ return;
2552
+ }
2553
+ let a = [], l = j({
2554
+ ids: this.selectedRowKeys.join(",")
2555
+ }).then((i) => i);
2556
+ a.push(l), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(a).then((i) => {
2557
+ t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, e();
2558
+ const n = i.filter((o) => !o.success);
2559
+ 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;
2560
+ });
2561
+ },
2562
+ getDetail(s) {
2563
+ this.confirmLoading = !0, C({
2564
+ id: s
2565
+ }).then((t) => {
2566
+ t.success && (this.upStatuList = t.data);
2567
+ });
2568
+ },
2569
+ enabling(s) {
2570
+ if (!this.$hasPerm("sysFlowWork:edit"))
2571
+ return;
2572
+ this.getDetail(s.id);
2573
+ let t = s.statecodes == 1 ? "\u662F\u5426\u7981\u7528?" : "\u662F\u5426\u542F\u7528?";
2574
+ this.$confirm(t, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2575
+ confirmButtonText: s.statecodes == 1 ? this.$i18nt("gd.state.disable", "\u7981\u7528") : this.$i18nt("gd.state.enable", "\u542F\u7528"),
2576
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2577
+ showClose: !1,
2578
+ confirmButtonLoading: !1,
2579
+ cancelButtonLoading: !1,
2580
+ closeOnClickModal: !1,
2581
+ type: "warning",
2582
+ confirmButtonClass: "el-button--danger",
2583
+ customClass: "custom-alert",
2584
+ callback: () => {
2585
+ },
2586
+ beforeClose: (e, a, l) => {
2587
+ this.upStatuList.data.statecodes = s.statecodes == 1 ? 0 : 1, this.enabHand(e, a, l, this.upStatuList);
2588
+ }
2589
+ });
2590
+ },
2591
+ enabHand(s, t, e, a) {
2592
+ if (s !== "confirm") {
2593
+ e();
2594
+ return;
2595
+ }
2596
+ let l = [], i = k(a).then((n) => n);
2597
+ l.push(i), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(l).then((n) => {
2598
+ t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, e();
2599
+ const o = n.filter((r) => !r.success);
2600
+ 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();
2601
+ });
2602
+ },
2603
+ onSelectChange(s, t) {
2604
+ this.selectedRowKeys = s, this.selectedRows = t;
2605
+ },
2606
+ saveQueries(s) {
2607
+ this.queryParam = {
2608
+ ...s
2609
+ }, this.refresh();
2610
+ },
2611
+ editForm(s) {
2612
+ this.$refs.flowDesign.open(s.id);
2613
+ },
2614
+ refresh() {
2615
+ this.upStatuList = null, this.$refs.table.refresh();
2616
+ },
2617
+ dictSwitch(s, t) {
2618
+ let e = this.$options.filters.dictData(t).filter((a) => a.code == s)[0];
2619
+ return e != null && e.colour ? e.colour : null;
2620
+ },
2621
+ doEvent(s) {
2622
+ let t = s.item.functionName;
2623
+ this[t] && this[t]();
2624
+ }
2625
+ }
2626
+ };
2627
+ var Kt = function() {
2628
+ var t = this, e = t._self._c;
2629
+ 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() {
2630
+ 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) {
2631
+ t.$set(t.queryParam, "tableId", a);
2632
+ }, expression: "queryParam.tableId" } }, t._l(t.tableLists, function(a) {
2633
+ 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) + " ")]);
2634
+ }), 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)])];
2635
+ }, proxy: !0 }, { key: "name", fn: function({ column: a, row: l }) {
2636
+ return [e("gd-tooltip", { attrs: { rowKey: "name", row: l, highlight: "" }, on: { click: t.editForm } })];
2637
+ } }, { key: "sysCodeGenId", fn: function({ column: a, row: l }) {
2638
+ return [l.syscodegen ? e("span", [t._v(" " + t._s(t.$i18nt(`Dynamics.${l.syscodegen.transkey}`, l.syscodegen.busname)) + " ")]) : t._e()];
2639
+ } }, { key: "stateCodes", fn: function(a) {
2640
+ 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) {
2641
+ return t.enabling(a.row);
2642
+ } } }, [t._v(" " + t._s(t._f("dictType")("state_code", a.row.statecodes)) + " ")]) : e("span", { on: { click: function(l) {
2643
+ return t.enabling(a.row);
2644
+ } } }, [t._v(t._s(t._f("dictType")("state_code", a.row.statecodes)))])];
2645
+ } }, { key: "filtering", fn: function({ colse: a, visible: l }) {
2646
+ return [e("gd-table-queries-field", { attrs: { columns: t.tableQueries, height: t.getHeight, queryParam: t.queryParam, colse: a, visible: l }, on: { save: t.saveQueries } })];
2647
+ } }]) })], 1), e("flowDesign", { ref: "flowDesign", on: { ok: t.refresh } })], 1);
2648
+ }, Rt = [], Ot = /* @__PURE__ */ h(
2649
+ Mt,
2650
+ Kt,
2651
+ Rt,
2652
+ !1,
2653
+ null,
2654
+ "74b50ecf",
2655
+ null,
2656
+ null
2657
+ );
2658
+ const At = Ot.exports, jt = {
2659
+ data() {
2660
+ return {
2661
+ tableColumns: [{
2662
+ type: "selection",
2663
+ width: "60"
2664
+ }, {
2665
+ transKey: "gd.flow.approval.name",
2666
+ prop: "name",
2667
+ label: "\u540D\u79F0",
2668
+ width: "260",
2669
+ type: "slot",
2670
+ slotType: "name",
2671
+ align: "left",
2672
+ showOverflowTooltip: !0
2673
+ }, {
2674
+ transKey: "gd.flow.approval.table",
2675
+ prop: "tableId",
2676
+ label: "\u5173\u8054\u8868",
2677
+ width: "260",
2678
+ type: "slot",
2679
+ slotType: "tableId",
2680
+ align: "left",
2681
+ showOverflowTooltip: !0
2682
+ }, {
2683
+ transKey: "gd.flow.approval.classify",
2684
+ prop: "category",
2685
+ width: "160",
2686
+ label: "\u5206\u7C7B",
2687
+ type: "slot",
2688
+ slotType: "category",
2689
+ align: "left"
2690
+ }, {
2691
+ transKey: "gd.flow.approval.code",
2692
+ prop: "encode",
2693
+ width: "160",
2694
+ label: "\u7F16\u7801",
2695
+ align: "left"
2696
+ }, {
2697
+ transKey: "gd.flow.state",
2698
+ prop: "stateCodes",
2699
+ width: "120",
2700
+ label: "\u72B6\u6001",
2701
+ type: "slot",
2702
+ slotType: "stateCodes",
2703
+ align: "left"
2704
+ }, {
2705
+ transKey: "gd.flow.creationTime",
2706
+ prop: "createdtime",
2707
+ width: "180",
2708
+ label: "\u521B\u5EFA\u65F6\u95F4",
2709
+ align: "center"
2710
+ }, {
2711
+ transKey: "gd.flow.explain",
2712
+ prop: "description",
2713
+ width: "260",
2714
+ label: "\u8BF4\u660E",
2715
+ align: "left"
2716
+ }],
2717
+ tableButtons: [
2718
+ {
2719
+ displayName: "\u65B0\u589E",
2720
+ functionName: "add",
2721
+ show: !0,
2722
+ transKey: "gd.btn.add",
2723
+ icon: "el-icon-plus",
2724
+ name: "sysFlowApproval:add"
2725
+ },
2726
+ {
2727
+ displayName: "\u7F16\u8F91",
2728
+ functionName: "edit",
2729
+ show: !0,
2730
+ transKey: "gd.btn.edit",
2731
+ icon: "el-icon-edit",
2732
+ name: "sysFlowApproval:edit"
2733
+ },
2734
+ {
2735
+ displayName: "\u5220\u9664",
2736
+ functionName: "del",
2737
+ show: !0,
2738
+ transKey: "gd.btn.del",
2739
+ icon: "el-icon-delete",
2740
+ btnType: "danger",
2741
+ name: "sysFlowApproval:delete"
2742
+ }
2743
+ ],
2744
+ tableQueries: [
2745
+ {
2746
+ transKey: "gd.flow.approval.name",
2747
+ prop: "keyword",
2748
+ label: "\u540D\u79F0",
2749
+ effectType: "input",
2750
+ rules: []
2751
+ },
2752
+ {
2753
+ transKey: "gd.process.tableSor",
2754
+ prop: "tableId",
2755
+ label: "\u8868\u540D\u79F0",
2756
+ effectType: "selectTable",
2757
+ rules: []
2758
+ },
2759
+ {
2760
+ transKey: "gd.flow.state",
2761
+ prop: "stateCodes",
2762
+ label: "\u72B6\u6001",
2763
+ effectType: "select",
2764
+ dictTypeCode: "state_code",
2765
+ rules: []
2766
+ },
2767
+ {
2768
+ transKey: "gd.flow.state",
2769
+ prop: "category",
2770
+ label: "\u5206\u7C7B",
2771
+ effectType: "select",
2772
+ dictTypeCode: "table_flows_type",
2773
+ rules: []
2774
+ }
2775
+ ]
2776
+ };
2777
+ }
2778
+ };
2779
+ const Et = {
2780
+ props: {
2781
+ height: {
2782
+ type: Number,
2783
+ default: 0
2784
+ }
2785
+ },
2786
+ mixins: [v, jt],
2787
+ data() {
2788
+ return {
2789
+ selectedRows: [],
2790
+ selectedRowKeys: [],
2791
+ queryParam: {},
2792
+ loadData: (s) => {
2793
+ let t = {
2794
+ ...this.queryParam
2795
+ };
2796
+ return t.stateCodes != null && (t = Object.assign(
2797
+ {
2798
+ ...t
2799
+ },
2800
+ {
2801
+ stateCodes: t.stateCodes
2802
+ }
2803
+ )), E(Object.assign(s, t)).then((e) => {
2804
+ if (e.code === 200) {
2805
+ const a = e.data.rows.map((l) => {
2806
+ const i = this.tableLists.filter((n) => n.id === l.tableid)[0];
2807
+ return Object.assign(l, i ? { tableData: i } : {});
2808
+ });
2809
+ Object.assign(e.data, { rows: a });
2810
+ }
2811
+ return e.data;
2812
+ });
2813
+ }
2814
+ };
2815
+ },
2816
+ computed: {
2817
+ getHeight() {
2818
+ return this.height - 55;
2819
+ },
2820
+ ...y(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
2821
+ },
2822
+ components: {
2823
+ flowDesign: $t
2824
+ },
2825
+ methods: {
2826
+ add() {
2827
+ this.transKey = "gd.btn.add", this.visible = !0, this.$refs.flowDesign.open(null);
2828
+ },
2829
+ edit() {
2830
+ if (this.selectedRowKeys.length === 0) {
2831
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
2832
+ return;
2833
+ }
2834
+ if (this.selectedRowKeys.length > 1) {
2835
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
2836
+ return;
2837
+ }
2838
+ this.editForm(this.selectedRows[0]);
2839
+ },
2840
+ del() {
2841
+ if (this.selectedRowKeys.length === 0) {
2842
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
2843
+ return;
2844
+ }
2845
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2846
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
2847
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2848
+ showClose: !1,
2849
+ confirmButtonLoading: !1,
2850
+ cancelButtonLoading: !1,
2851
+ closeOnClickModal: !1,
2852
+ type: "warning",
2853
+ confirmButtonClass: "el-button--danger",
2854
+ customClass: "custom-alert",
2855
+ callback: () => {
2856
+ },
2857
+ beforeClose: (s, t, e) => {
2858
+ this.delHand(s, t, e);
2859
+ }
2860
+ });
2861
+ },
2862
+ delHand(s, t, e) {
2863
+ if (s !== "confirm") {
2864
+ e();
2865
+ return;
2866
+ }
2867
+ let a = [], l = V({
2868
+ ids: this.selectedRowKeys.join(",")
2869
+ }).then((i) => i);
2870
+ a.push(l), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(a).then((i) => {
2871
+ t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, e();
2872
+ const n = i.filter((o) => !o.success);
2873
+ 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();
2874
+ });
2875
+ },
2876
+ enabling(s) {
2877
+ let t = Object.assign(
2878
+ {
2879
+ ...s
2880
+ },
2881
+ {
2882
+ statecodes: s.statecodes == 1 ? 0 : 1
2883
+ }
2884
+ ), e = s.statecodes == 1 ? "\u662F\u5426\u7981\u7528?" : "\u662F\u5426\u542F\u7528?";
2885
+ this.$confirm(e, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2886
+ confirmButtonText: s.statecodes == 1 ? this.$i18nt("gd.state.disable") : this.$i18nt("gd.state.enable"),
2887
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2888
+ showClose: !1,
2889
+ confirmButtonLoading: !1,
2890
+ cancelButtonLoading: !1,
2891
+ closeOnClickModal: !1,
2892
+ type: "warning",
2893
+ confirmButtonClass: "el-button--danger",
2894
+ customClass: "custom-alert",
2895
+ callback: () => {
2896
+ },
2897
+ beforeClose: (a, l, i) => {
2898
+ this.enabHand(a, l, i, t);
2899
+ }
2900
+ });
2901
+ },
2902
+ enabHand(s, t, e, a) {
2903
+ if (s !== "confirm") {
2904
+ e();
2905
+ return;
2906
+ }
2907
+ let l = [], i = L(a).then((n) => n);
2908
+ l.push(i), t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, Promise.all(l).then((n) => {
2909
+ e(), t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0;
2910
+ const o = n.filter((r) => !r.success);
2911
+ 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();
2912
+ });
2913
+ },
2914
+ onSelectChange(s, t) {
2915
+ this.selectedRowKeys = s, this.selectedRows = t;
2916
+ },
2917
+ saveQueries(s) {
2918
+ this.queryParam = {
2919
+ ...s
2920
+ }, this.refresh();
2921
+ },
2922
+ editForm(s) {
2923
+ this.$refs.flowDesign.open(s.id);
2924
+ },
2925
+ refresh() {
2926
+ this.$refs.table.refresh();
2927
+ },
2928
+ dictSwitch(s, t) {
2929
+ let e = this.$options.filters.dictData(t).filter((a) => a.code == s)[0];
2930
+ return e && e.colour ? e.colour : null;
2931
+ },
2932
+ doEvent(s) {
2933
+ let t = s.item.functionName;
2934
+ this[t] && this[t]();
2935
+ }
2936
+ }
2937
+ };
2938
+ var Vt = function() {
2939
+ var t = this, e = t._self._c;
2940
+ 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() {
2941
+ 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) {
2942
+ return !a.type.indexOf("key") && t._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : t.refresh.apply(null, arguments);
2943
+ } }, model: { value: t.queryParam.keyword, callback: function(a) {
2944
+ t.$set(t.queryParam, "keyword", a);
2945
+ }, 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)])];
2946
+ }, proxy: !0 }, { key: "name", fn: function({ column: a, row: l }) {
2947
+ return [e("gd-tooltip", { attrs: { rowKey: "name", row: l, highlight: "" }, on: { click: t.editForm } })];
2948
+ } }, { key: "tableId", fn: function({ column: a, row: l }) {
2949
+ return [l.tableData ? e("span", [t._v(t._s(t.$i18nt(`Dynamics.${l.tableData.transkey}`, l.tableData.busname)))]) : t._e()];
2950
+ } }, { key: "stateCodes", fn: function(a) {
2951
+ 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) {
2952
+ return t.enabling(a.row);
2953
+ } } }, [t._v(" " + t._s(t._f("dictType")("state_code", a.row.statecodes)) + " ")]) : e("span", { on: { click: function(l) {
2954
+ return t.enabling(a.row);
2955
+ } } }, [t._v(t._s(t._f("dictType")("state_code", a.row.statecodes)))])];
2956
+ } }, { key: "category", fn: function(a) {
2957
+ return [e("span", [t._v(t._s(t._f("dictType")("table_flows_type", a.row.category)))])];
2958
+ } }, { key: "filtering", fn: function({ colse: a, visible: l }) {
2959
+ return [e("gd-table-queries-field", { attrs: { columns: t.tableQueries, height: t.getHeight, queryParam: t.queryParam, colse: a, visible: l }, on: { save: t.saveQueries } })];
2960
+ } }]) })], 1), e("flowDesign", { ref: "flowDesign", on: { ok: t.refresh } })], 1);
2961
+ }, Gt = [], Jt = /* @__PURE__ */ h(
2962
+ Et,
2963
+ Vt,
2964
+ Gt,
2965
+ !1,
2966
+ null,
2967
+ "f0f853e0",
2968
+ null,
2969
+ null
2970
+ );
2971
+ const zt = Jt.exports;
2972
+ const qt = {
2973
+ props: {
2974
+ height: {
2975
+ type: Number,
2976
+ default: 0
2977
+ }
2978
+ },
2979
+ name: "GdFlowList",
2980
+ data() {
2981
+ return {
2982
+ type: "process"
2983
+ };
2984
+ },
2985
+ computed: {
2986
+ getHeight() {
2987
+ return this.height;
2988
+ }
2989
+ },
2990
+ components: {
2991
+ processFlow: Nt,
2992
+ workFlow: At,
2993
+ approvalFlow: zt
2994
+ },
2995
+ mounted() {
2996
+ this.$hasPerm("sysFlowProcess:page") ? this.type = "process" : this.$hasPerm("sysFlowWork:page") ? this.type = "work" : this.$hasPerm("sysFlowApproval:page") && (this.type = "approval");
2997
+ },
2998
+ methods: {
2999
+ tabChange(s) {
3000
+ this.$nextTick(() => {
3001
+ setTimeout(() => {
3002
+ this.$refs[this.type + "Flow"].refresh();
3003
+ }, 0);
3004
+ });
3005
+ }
3006
+ }
3007
+ };
3008
+ var Ht = function() {
3009
+ var t = this, e = t._self._c;
3010
+ return e("div", [e("el-tabs", { attrs: { type: "card" }, on: { "tab-click": t.tabChange }, model: { value: t.type, callback: function(a) {
3011
+ t.type = a;
3012
+ }, 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);
3013
+ }, Wt = [], Qt = /* @__PURE__ */ h(
3014
+ qt,
3015
+ Ht,
3016
+ Wt,
3017
+ !1,
3018
+ null,
3019
+ "0119a45c",
3020
+ null,
3021
+ null
3022
+ );
3023
+ const _ = Qt.exports;
3024
+ _.install = function(s) {
3025
+ s.component(_.name, _);
3026
+ };
3027
+ export {
3028
+ _ as G,
3029
+ st as a,
3030
+ gt as b,
3031
+ $t as f
3032
+ };