eoss-ui 0.3.97

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 (378) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/README.md +30 -0
  3. package/lib/button-group.js +2857 -0
  4. package/lib/button.js +2884 -0
  5. package/lib/card.js +603 -0
  6. package/lib/cascader.js +373 -0
  7. package/lib/checkbox-group.js +3099 -0
  8. package/lib/clients.js +375 -0
  9. package/lib/config/api.js +205 -0
  10. package/lib/data-table-form.js +3848 -0
  11. package/lib/data-table.js +6315 -0
  12. package/lib/date-picker.js +2821 -0
  13. package/lib/dialog.js +3730 -0
  14. package/lib/enterprise.js +372 -0
  15. package/lib/eoss-ui.common.js +65365 -0
  16. package/lib/error-page.js +293 -0
  17. package/lib/flow-group.js +4200 -0
  18. package/lib/flow-list.js +4350 -0
  19. package/lib/flow.js +12893 -0
  20. package/lib/form.js +15635 -0
  21. package/lib/handle-user.js +2900 -0
  22. package/lib/handler.js +3118 -0
  23. package/lib/index.js +1 -0
  24. package/lib/input-number.js +2743 -0
  25. package/lib/input.js +2935 -0
  26. package/lib/label.js +411 -0
  27. package/lib/login.js +5048 -0
  28. package/lib/main.js +5816 -0
  29. package/lib/mainComp.js +6530 -0
  30. package/lib/menu.js +529 -0
  31. package/lib/nav.js +3048 -0
  32. package/lib/notify.js +1079 -0
  33. package/lib/page.js +3036 -0
  34. package/lib/pagination.js +354 -0
  35. package/lib/player.js +2904 -0
  36. package/lib/qr-code.js +2860 -0
  37. package/lib/radio-group.js +3091 -0
  38. package/lib/select-ganged.js +3242 -0
  39. package/lib/select.js +3295 -0
  40. package/lib/selector-panel.js +4425 -0
  41. package/lib/selector.js +3722 -0
  42. package/lib/sizer.js +3067 -0
  43. package/lib/steps.js +2943 -0
  44. package/lib/switch.js +2784 -0
  45. package/lib/table-form.js +6211 -0
  46. package/lib/tabs-panel.js +274 -0
  47. package/lib/tabs.js +4988 -0
  48. package/lib/theme-chalk/base.css +1 -0
  49. package/lib/theme-chalk/button-group.css +1 -0
  50. package/lib/theme-chalk/button.css +0 -0
  51. package/lib/theme-chalk/card.css +1 -0
  52. package/lib/theme-chalk/cascader.css +0 -0
  53. package/lib/theme-chalk/checkbox-group.css +1 -0
  54. package/lib/theme-chalk/clients.css +1 -0
  55. package/lib/theme-chalk/data-table-form.css +1 -0
  56. package/lib/theme-chalk/data-table.css +1 -0
  57. package/lib/theme-chalk/date-picker.css +1 -0
  58. package/lib/theme-chalk/dialog.css +1 -0
  59. package/lib/theme-chalk/enterprise.css +1 -0
  60. package/lib/theme-chalk/error-page.css +1 -0
  61. package/lib/theme-chalk/flow-chart.css +0 -0
  62. package/lib/theme-chalk/flow-group.css +1 -0
  63. package/lib/theme-chalk/flow-list.css +1 -0
  64. package/lib/theme-chalk/flow.css +1 -0
  65. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  66. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  67. package/lib/theme-chalk/form.css +1 -0
  68. package/lib/theme-chalk/handle-user.css +1 -0
  69. package/lib/theme-chalk/handler.css +1 -0
  70. package/lib/theme-chalk/icon.css +1 -0
  71. package/lib/theme-chalk/index.css +1 -0
  72. package/lib/theme-chalk/input-number.css +0 -0
  73. package/lib/theme-chalk/input.css +1 -0
  74. package/lib/theme-chalk/label.css +1 -0
  75. package/lib/theme-chalk/login.css +1 -0
  76. package/lib/theme-chalk/main.css +1 -0
  77. package/lib/theme-chalk/mainComp.css +0 -0
  78. package/lib/theme-chalk/menu.css +1 -0
  79. package/lib/theme-chalk/nav.css +1 -0
  80. package/lib/theme-chalk/notify.css +0 -0
  81. package/lib/theme-chalk/page.css +1 -0
  82. package/lib/theme-chalk/pagination.css +1 -0
  83. package/lib/theme-chalk/player.css +1 -0
  84. package/lib/theme-chalk/qr-code.css +1 -0
  85. package/lib/theme-chalk/radio-group.css +1 -0
  86. package/lib/theme-chalk/radio.css +1 -0
  87. package/lib/theme-chalk/select-ganged.css +1 -0
  88. package/lib/theme-chalk/select.css +0 -0
  89. package/lib/theme-chalk/selector-panel.css +1 -0
  90. package/lib/theme-chalk/selector.css +1 -0
  91. package/lib/theme-chalk/sizer.css +1 -0
  92. package/lib/theme-chalk/steps.css +1 -0
  93. package/lib/theme-chalk/switch.css +1 -0
  94. package/lib/theme-chalk/table-form.css +0 -0
  95. package/lib/theme-chalk/tabs-panel.css +0 -0
  96. package/lib/theme-chalk/tabs.css +1 -0
  97. package/lib/theme-chalk/tips.css +1 -0
  98. package/lib/theme-chalk/toolbar.css +1 -0
  99. package/lib/theme-chalk/tree-group.css +1 -0
  100. package/lib/theme-chalk/tree.css +1 -0
  101. package/lib/theme-chalk/upload.css +1 -0
  102. package/lib/theme-chalk/wujie.css +0 -0
  103. package/lib/theme-chalk/wxlogin.css +1 -0
  104. package/lib/tips.js +2830 -0
  105. package/lib/toolbar.js +531 -0
  106. package/lib/tree-group.js +3373 -0
  107. package/lib/tree.js +3482 -0
  108. package/lib/upload.js +3913 -0
  109. package/lib/utils/bus.js +9 -0
  110. package/lib/utils/date-util.js +318 -0
  111. package/lib/utils/http.js +58 -0
  112. package/lib/utils/rules.js +19 -0
  113. package/lib/utils/store.js +22 -0
  114. package/lib/utils/util.js +2056 -0
  115. package/lib/wujie.js +2845 -0
  116. package/lib/wxlogin.js +2799 -0
  117. package/package.json +151 -0
  118. package/packages/button/index.js +5 -0
  119. package/packages/button/src/main.vue +264 -0
  120. package/packages/button-group/index.js +5 -0
  121. package/packages/button-group/src/main.vue +130 -0
  122. package/packages/card/index.js +5 -0
  123. package/packages/card/src/main.vue +144 -0
  124. package/packages/cascader/index.js +5 -0
  125. package/packages/cascader/src/main.vue +144 -0
  126. package/packages/checkbox-group/index.js +5 -0
  127. package/packages/checkbox-group/src/main.vue +285 -0
  128. package/packages/clients/index.js +5 -0
  129. package/packages/clients/src/main.vue +50 -0
  130. package/packages/data-table/index.js +5 -0
  131. package/packages/data-table/src/children.vue +40 -0
  132. package/packages/data-table/src/column.vue +796 -0
  133. package/packages/data-table/src/main copy.vue +1383 -0
  134. package/packages/data-table/src/main.vue +1229 -0
  135. package/packages/data-table/src/mixins/table.js +12 -0
  136. package/packages/data-table/src/sizer.vue +160 -0
  137. package/packages/data-table-form/index.js +5 -0
  138. package/packages/data-table-form/src/colgroup.vue +17 -0
  139. package/packages/data-table-form/src/main.vue +167 -0
  140. package/packages/data-table-form/src/table.vue +192 -0
  141. package/packages/data-table-form/src/tbody.vue +219 -0
  142. package/packages/data-table-form/src/thead.vue +68 -0
  143. package/packages/date-picker/index.js +5 -0
  144. package/packages/date-picker/src/main.vue +185 -0
  145. package/packages/dialog/index.js +5 -0
  146. package/packages/dialog/src/main.vue +442 -0
  147. package/packages/enterprise/index.js +5 -0
  148. package/packages/enterprise/src/main.vue +66 -0
  149. package/packages/error-page/index.js +5 -0
  150. package/packages/error-page/src/main.vue +44 -0
  151. package/packages/flow/index.js +5 -0
  152. package/packages/flow/src/component/CommonOpinions.vue +290 -0
  153. package/packages/flow/src/component/CustomPreset.vue +311 -0
  154. package/packages/flow/src/component/FileList.vue +97 -0
  155. package/packages/flow/src/component/Preset.vue +253 -0
  156. package/packages/flow/src/component/SendMsg.vue +221 -0
  157. package/packages/flow/src/component/TimeLimit.vue +190 -0
  158. package/packages/flow/src/component/taskUnionExamine.vue +507 -0
  159. package/packages/flow/src/form.vue +120 -0
  160. package/packages/flow/src/main.vue +2107 -0
  161. package/packages/flow/src/processForm.vue +866 -0
  162. package/packages/flow/src/processReject.vue +262 -0
  163. package/packages/flow/src/selectUser.vue +425 -0
  164. package/packages/flow/src/startTaskRead.vue +556 -0
  165. package/packages/flow/src/table.vue +51 -0
  166. package/packages/flow-group/index.js +5 -0
  167. package/packages/flow-group/src/main.vue +540 -0
  168. package/packages/flow-list/index.js +5 -0
  169. package/packages/flow-list/src/flow-table.vue +445 -0
  170. package/packages/flow-list/src/main.vue +456 -0
  171. package/packages/form/index.js +5 -0
  172. package/packages/form/src/main.vue +4429 -0
  173. package/packages/form/src/table.vue +1196 -0
  174. package/packages/handle-user/index.js +5 -0
  175. package/packages/handle-user/src/main.vue +122 -0
  176. package/packages/handler/index.js +5 -0
  177. package/packages/handler/src/main.vue +306 -0
  178. package/packages/input/index.js +5 -0
  179. package/packages/input/src/main.vue +307 -0
  180. package/packages/input-number/index.js +5 -0
  181. package/packages/input-number/src/main.vue +106 -0
  182. package/packages/label/index.js +5 -0
  183. package/packages/label/src/main.vue +208 -0
  184. package/packages/login/index.js +5 -0
  185. package/packages/login/src/main.vue +1193 -0
  186. package/packages/login/src/resetPassword.vue +332 -0
  187. package/packages/main/index.js +5 -0
  188. package/packages/main/src/main.vue +1496 -0
  189. package/packages/main/src/message.vue +239 -0
  190. package/packages/main/src/notice.vue +145 -0
  191. package/packages/main/src/settings.vue +105 -0
  192. package/packages/main/src/userinfo.vue +430 -0
  193. package/packages/mainComp/index.js +5 -0
  194. package/packages/mainComp/src/async-component/index.vue +85 -0
  195. package/packages/mainComp/src/main.vue +1934 -0
  196. package/packages/mainComp/src/message.vue +239 -0
  197. package/packages/mainComp/src/notice.vue +152 -0
  198. package/packages/mainComp/src/settings.vue +105 -0
  199. package/packages/mainComp/src/userinfo.vue +423 -0
  200. package/packages/menu/index.js +5 -0
  201. package/packages/menu/src/main.vue +401 -0
  202. package/packages/nav/index.js +5 -0
  203. package/packages/nav/src/main.vue +250 -0
  204. package/packages/notify/index.js +5 -0
  205. package/packages/notify/src/main.vue +538 -0
  206. package/packages/page/index.js +5 -0
  207. package/packages/page/src/main.vue +167 -0
  208. package/packages/pagination/index.js +5 -0
  209. package/packages/pagination/src/main.vue +77 -0
  210. package/packages/player/index.js +5 -0
  211. package/packages/player/src/main.vue +194 -0
  212. package/packages/qr-code/index.js +5 -0
  213. package/packages/qr-code/src/main.vue +154 -0
  214. package/packages/radio/index.js +5 -0
  215. package/packages/radio/src/main.vue +259 -0
  216. package/packages/radio-group/index.js +6 -0
  217. package/packages/radio-group/src/main.vue +267 -0
  218. package/packages/select/index.js +5 -0
  219. package/packages/select/src/main.vue +683 -0
  220. package/packages/select-ganged/index.js +5 -0
  221. package/packages/select-ganged/src/main.vue +686 -0
  222. package/packages/selector/index.js +5 -0
  223. package/packages/selector/src/main.vue +588 -0
  224. package/packages/selector-panel/index.js +5 -0
  225. package/packages/selector-panel/src/main.vue +968 -0
  226. package/packages/selector-panel/src/selection.vue +142 -0
  227. package/packages/selector-panel/src/tree.vue +129 -0
  228. package/packages/sizer/index.js +5 -0
  229. package/packages/sizer/src/main.vue +254 -0
  230. package/packages/steps/index.js +5 -0
  231. package/packages/steps/src/main.vue +175 -0
  232. package/packages/switch/index.js +5 -0
  233. package/packages/switch/src/main.vue +154 -0
  234. package/packages/table-form/index.js +5 -0
  235. package/packages/tabs/index.js +5 -0
  236. package/packages/tabs/src/main.vue +749 -0
  237. package/packages/tabs-panel/index.js +5 -0
  238. package/packages/tabs-panel/src/main.vue +18 -0
  239. package/packages/theme-chalk/README.md +33 -0
  240. package/packages/theme-chalk/lib/base.css +1 -0
  241. package/packages/theme-chalk/lib/button-group.css +1 -0
  242. package/packages/theme-chalk/lib/button.css +0 -0
  243. package/packages/theme-chalk/lib/card.css +1 -0
  244. package/packages/theme-chalk/lib/cascader.css +0 -0
  245. package/packages/theme-chalk/lib/checkbox-group.css +1 -0
  246. package/packages/theme-chalk/lib/clients.css +1 -0
  247. package/packages/theme-chalk/lib/data-table-form.css +1 -0
  248. package/packages/theme-chalk/lib/data-table.css +1 -0
  249. package/packages/theme-chalk/lib/date-picker.css +1 -0
  250. package/packages/theme-chalk/lib/dialog.css +1 -0
  251. package/packages/theme-chalk/lib/enterprise.css +1 -0
  252. package/packages/theme-chalk/lib/error-page.css +1 -0
  253. package/packages/theme-chalk/lib/flow-chart.css +0 -0
  254. package/packages/theme-chalk/lib/flow-group.css +1 -0
  255. package/packages/theme-chalk/lib/flow-list.css +1 -0
  256. package/packages/theme-chalk/lib/flow.css +1 -0
  257. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  258. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  259. package/packages/theme-chalk/lib/form.css +1 -0
  260. package/packages/theme-chalk/lib/handle-user.css +1 -0
  261. package/packages/theme-chalk/lib/handler.css +1 -0
  262. package/packages/theme-chalk/lib/icon.css +1 -0
  263. package/packages/theme-chalk/lib/index.css +1 -0
  264. package/packages/theme-chalk/lib/input-number.css +0 -0
  265. package/packages/theme-chalk/lib/input.css +1 -0
  266. package/packages/theme-chalk/lib/label.css +1 -0
  267. package/packages/theme-chalk/lib/login.css +1 -0
  268. package/packages/theme-chalk/lib/main.css +1 -0
  269. package/packages/theme-chalk/lib/mainComp.css +0 -0
  270. package/packages/theme-chalk/lib/menu.css +1 -0
  271. package/packages/theme-chalk/lib/nav.css +1 -0
  272. package/packages/theme-chalk/lib/notify.css +0 -0
  273. package/packages/theme-chalk/lib/page.css +1 -0
  274. package/packages/theme-chalk/lib/pagination.css +1 -0
  275. package/packages/theme-chalk/lib/player.css +1 -0
  276. package/packages/theme-chalk/lib/qr-code.css +1 -0
  277. package/packages/theme-chalk/lib/radio-group.css +1 -0
  278. package/packages/theme-chalk/lib/radio.css +1 -0
  279. package/packages/theme-chalk/lib/select-ganged.css +1 -0
  280. package/packages/theme-chalk/lib/select.css +0 -0
  281. package/packages/theme-chalk/lib/selector-panel.css +1 -0
  282. package/packages/theme-chalk/lib/selector.css +1 -0
  283. package/packages/theme-chalk/lib/sizer.css +1 -0
  284. package/packages/theme-chalk/lib/steps.css +1 -0
  285. package/packages/theme-chalk/lib/switch.css +1 -0
  286. package/packages/theme-chalk/lib/table-form.css +0 -0
  287. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  288. package/packages/theme-chalk/lib/tabs.css +1 -0
  289. package/packages/theme-chalk/lib/tips.css +1 -0
  290. package/packages/theme-chalk/lib/toolbar.css +1 -0
  291. package/packages/theme-chalk/lib/tree-group.css +1 -0
  292. package/packages/theme-chalk/lib/tree.css +1 -0
  293. package/packages/theme-chalk/lib/upload.css +1 -0
  294. package/packages/theme-chalk/lib/wujie.css +0 -0
  295. package/packages/theme-chalk/lib/wxlogin.css +1 -0
  296. package/packages/theme-chalk/package.json +35 -0
  297. package/packages/theme-chalk/src/base.scss +165 -0
  298. package/packages/theme-chalk/src/button-group.scss +9 -0
  299. package/packages/theme-chalk/src/button.scss +0 -0
  300. package/packages/theme-chalk/src/card.scss +55 -0
  301. package/packages/theme-chalk/src/cascader.scss +0 -0
  302. package/packages/theme-chalk/src/checkbox-group.scss +8 -0
  303. package/packages/theme-chalk/src/clients.scss +72 -0
  304. package/packages/theme-chalk/src/common/var.scss +1516 -0
  305. package/packages/theme-chalk/src/data-table-form.scss +55 -0
  306. package/packages/theme-chalk/src/data-table.scss +202 -0
  307. package/packages/theme-chalk/src/date-picker.scss +8 -0
  308. package/packages/theme-chalk/src/dialog.scss +52 -0
  309. package/packages/theme-chalk/src/enterprise.scss +5 -0
  310. package/packages/theme-chalk/src/error-page.scss +18 -0
  311. package/packages/theme-chalk/src/flow-chart.scss +0 -0
  312. package/packages/theme-chalk/src/flow-group.scss +101 -0
  313. package/packages/theme-chalk/src/flow-list.scss +41 -0
  314. package/packages/theme-chalk/src/flow.scss +285 -0
  315. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  316. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  317. package/packages/theme-chalk/src/form.scss +451 -0
  318. package/packages/theme-chalk/src/handle-user.scss +40 -0
  319. package/packages/theme-chalk/src/handler.scss +131 -0
  320. package/packages/theme-chalk/src/icon.scss +1714 -0
  321. package/packages/theme-chalk/src/index.scss +50 -0
  322. package/packages/theme-chalk/src/input-number.scss +0 -0
  323. package/packages/theme-chalk/src/input.scss +3 -0
  324. package/packages/theme-chalk/src/label.scss +24 -0
  325. package/packages/theme-chalk/src/login.scss +490 -0
  326. package/packages/theme-chalk/src/main.scss +483 -0
  327. package/packages/theme-chalk/src/mainComp.scss +0 -0
  328. package/packages/theme-chalk/src/menu.scss +201 -0
  329. package/packages/theme-chalk/src/mixins/color.scss +117 -0
  330. package/packages/theme-chalk/src/mixins/mixins.scss +25 -0
  331. package/packages/theme-chalk/src/nav.scss +73 -0
  332. package/packages/theme-chalk/src/notify.scss +0 -0
  333. package/packages/theme-chalk/src/page.scss +3 -0
  334. package/packages/theme-chalk/src/pagination.scss +14 -0
  335. package/packages/theme-chalk/src/player.scss +9 -0
  336. package/packages/theme-chalk/src/qr-code.scss +17 -0
  337. package/packages/theme-chalk/src/radio-group.scss +9 -0
  338. package/packages/theme-chalk/src/radio.scss +3 -0
  339. package/packages/theme-chalk/src/select-ganged.scss +9 -0
  340. package/packages/theme-chalk/src/select.scss +0 -0
  341. package/packages/theme-chalk/src/selector-panel.scss +203 -0
  342. package/packages/theme-chalk/src/selector.scss +85 -0
  343. package/packages/theme-chalk/src/sizer.scss +36 -0
  344. package/packages/theme-chalk/src/steps.scss +88 -0
  345. package/packages/theme-chalk/src/switch.scss +3 -0
  346. package/packages/theme-chalk/src/table-form.scss +1 -0
  347. package/packages/theme-chalk/src/tabs-panel.scss +0 -0
  348. package/packages/theme-chalk/src/tabs.scss +91 -0
  349. package/packages/theme-chalk/src/tips.scss +7 -0
  350. package/packages/theme-chalk/src/toolbar.scss +121 -0
  351. package/packages/theme-chalk/src/tree-group.scss +64 -0
  352. package/packages/theme-chalk/src/tree.scss +140 -0
  353. package/packages/theme-chalk/src/upload.scss +131 -0
  354. package/packages/theme-chalk/src/wujie.scss +0 -0
  355. package/packages/theme-chalk/src/wxlogin.scss +3 -0
  356. package/packages/tips/index.js +5 -0
  357. package/packages/tips/src/main.vue +126 -0
  358. package/packages/toolbar/index.js +5 -0
  359. package/packages/toolbar/src/main.vue +377 -0
  360. package/packages/tree/index.js +5 -0
  361. package/packages/tree/src/main.vue +636 -0
  362. package/packages/tree-group/index.js +5 -0
  363. package/packages/tree-group/src/main.vue +435 -0
  364. package/packages/upload/index.js +5 -0
  365. package/packages/upload/src/main.vue +1033 -0
  366. package/packages/upload/src/picture.js +15 -0
  367. package/packages/wujie/index.js +5 -0
  368. package/packages/wujie/src/main.vue +137 -0
  369. package/packages/wxlogin/index.js +5 -0
  370. package/packages/wxlogin/src/main.vue +110 -0
  371. package/src/config/api.js +211 -0
  372. package/src/index.js +167 -0
  373. package/src/utils/bus.js +3 -0
  374. package/src/utils/date-util.js +312 -0
  375. package/src/utils/http.js +50 -0
  376. package/src/utils/rules.js +18 -0
  377. package/src/utils/store.js +21 -0
  378. package/src/utils/util.js +2105 -0
@@ -0,0 +1,507 @@
1
+ <template>
2
+ <div class="es-flow-index task-union-examine" v-loading="loading">
3
+ <el-form
4
+ ref="infoList"
5
+ :model="infoList"
6
+ class="demo-dynamic"
7
+ label-width="100px"
8
+ >
9
+ <el-form-item v-if="isSinglePage" prop="opinion" label="意见">
10
+ <CommonOpinions @change="val => (opinion = val)" />
11
+ </el-form-item>
12
+ <el-form-item
13
+ v-if="isHideCurrentOrg == 0"
14
+ :prop="type != 'takeAdvice' ? 'nextOtherOrgObj' : 'nextCurrentOrgObj'"
15
+ :label="
16
+ type == 'takeAdvice'
17
+ ? currentOrgName
18
+ ? currentOrgName
19
+ : '本单位'
20
+ : type == 'startDraf'
21
+ ? '呈送单位'
22
+ : type === 'taskReview'
23
+ ? '复核人'
24
+ : type === 'twoOfficesDispatch'
25
+ ? '报送单位'
26
+ : '联合单位'
27
+ "
28
+ >
29
+ <SelectUser
30
+ :nextUser="
31
+ type != 'takeAdvice'
32
+ ? infoList.nextOtherOrgObj
33
+ : infoList.nextCurrentOrgObj
34
+ "
35
+ :multiple="newMultiple"
36
+ @change="
37
+ changeSelectUser(
38
+ $event,
39
+ type != 'takeAdvice' ? 'nextOtherOrgObj' : 'nextCurrentOrgObj'
40
+ )
41
+ "
42
+ :types="
43
+ type == 'takeAdvice'
44
+ ? ['department', 'employee']
45
+ : type == 'startDraf'
46
+ ? ['enterprise', 'employee']
47
+ : ['enterprise']
48
+ "
49
+ :params="params"
50
+ :disabled="disabled"
51
+ :onlyName="onlyName"
52
+ />
53
+ </el-form-item>
54
+ <el-form-item
55
+ prop="nextOtherOrgObj"
56
+ v-if="isHideOtherOrg == 0 && type == 'takeAdvice'"
57
+ :label="otherOrgName ? otherOrgName : '外单位'"
58
+ >
59
+ <SelectUser
60
+ :nextUser="infoList.nextOtherOrgObj"
61
+ :multiple="newMultiple"
62
+ @change="changeSelectUser($event, 'nextOtherOrgObj')"
63
+ :types="
64
+ isChoiceOtherOrgDept == 'true'
65
+ ? ['enterprise', 'department']
66
+ : ['enterprise']
67
+ "
68
+ :params="otherParams"
69
+ />
70
+ </el-form-item>
71
+ <el-form-item
72
+ prop="noticeType"
73
+ label="通知方式"
74
+ :rules="[
75
+ { required: true, message: `请选择通知方式`, trigger: 'blur' }
76
+ ]"
77
+ >
78
+ <el-checkbox-group v-model="infoList.noticeType">
79
+ <el-checkbox
80
+ v-for="item of infoList.noticeList"
81
+ :key="item.cciValue"
82
+ :label="item.cciValue"
83
+ >
84
+ {{ item.shortName }}
85
+ </el-checkbox>
86
+ </el-checkbox-group>
87
+ </el-form-item>
88
+ <el-form-item
89
+ v-show="infoList.noticeType.length != 0"
90
+ prop="noticeInfo"
91
+ label="通知消息"
92
+ >
93
+ <span>{{ infoList.noticeInfo }}</span>
94
+ </el-form-item>
95
+ <el-form-item>
96
+ <div style="text-align:right">
97
+ <el-button type="primary" size="small" @click="subMit">
98
+ 确定
99
+ </el-button>
100
+ <el-button @click="quit" size="small">
101
+ 取消
102
+ </el-button>
103
+ </div>
104
+ </el-form-item>
105
+ </el-form>
106
+ </div>
107
+ </template>
108
+
109
+ <script>
110
+ import CommonOpinions from './CommonOpinions.vue';
111
+ import SelectUser from '../selectUser.vue';
112
+ import {
113
+ findSysCodes,
114
+ getNotificationMsg,
115
+ toTaskTakeAdvice,
116
+ findCodeValues,
117
+ toTaskStartDraft,
118
+ toTaskReview,
119
+ taskStartDraft,
120
+ toTaskUnionSeal,
121
+ taskReview,
122
+ toTwoOfficesDispatch,
123
+ taskUnionSeal,
124
+ twoOfficesDispatch,
125
+ taskUnionExamine,
126
+ taskTakeAdvice,
127
+ toTaskUnionExamine
128
+ } from 'eoss-ui/src/config/api';
129
+ import util from 'eoss-ui/src/utils/util.js';
130
+ export default {
131
+ name: 'TaskUnionExamine',
132
+ components: {
133
+ [CommonOpinions.name]: CommonOpinions,
134
+ [SelectUser.name]: SelectUser
135
+ },
136
+ props: {
137
+ pendingId: { type: String, default: '' },
138
+ type: { type: String, default: '' },
139
+ defaultOpinion: { type: String, default: '' },
140
+ disabled: { type: Boolean, default: false },
141
+ multiple: { type: Boolean, default: true }
142
+ },
143
+ inheritAttrs: false,
144
+ data() {
145
+ return {
146
+ opinion: '', //办理意见
147
+ infoList: {
148
+ nextOtherOrgObj: [],
149
+ nextCurrentOrgObj: [],
150
+ noticeType: [],
151
+ noticeInfo: '',
152
+ opinion: ''
153
+ },
154
+ onlyName: '',
155
+ currentOrgProcessKey: '',
156
+ isSubFlow: true,
157
+ choiceDeptId: '',
158
+ choiceOrgId: '',
159
+ isSinglePage: false,
160
+ isChoiceOtherOrgDept: '',
161
+ currentOrgName: '',
162
+ otherOrgName: '',
163
+ newMultiple: true,
164
+ params: { filid: 'all' },
165
+ isHideOtherOrg: '',
166
+ isHideCurrentOrg: 0,
167
+ isOpinionRequired: 0,
168
+ otherParams: { filid: 'all' },
169
+ loading: false
170
+ };
171
+ },
172
+ mounted() {
173
+ this.loading = true;
174
+ this.newMultiple = this.multiple;
175
+ if (this.type === 'taskReview') return this.getTaskReview();
176
+ this.getInfo();
177
+ },
178
+ methods: {
179
+ isMultiple(val) {
180
+ if (val == 7 || val == 9 || val == 11) {
181
+ this.newMultiple = false;
182
+ }
183
+ if (this.type == 'takeAdvice') {
184
+ this.params.filid = sessionStorage.getItem('orgId');
185
+ }
186
+ },
187
+ subTaskReview() {
188
+ let {
189
+ infoList: { nextOtherOrgObj, noticeType, noticeInfo },
190
+ businessId,
191
+ opinion,
192
+ isSubFlow,
193
+ currentOrgProcessKey,
194
+ pendingId
195
+ } = this;
196
+ let params = {
197
+ url: taskReview,
198
+ data: {
199
+ nextUserId: nextOtherOrgObj,
200
+ notificationType: noticeType.join(','),
201
+ notificationMsg: noticeInfo,
202
+ opinion,
203
+ isSubFlow,
204
+ businessId,
205
+ currentOrgProcessKey,
206
+ pendingId
207
+ },
208
+ method: 'POST'
209
+ };
210
+ this.loading = true;
211
+ util
212
+ .ajax(params)
213
+ .then(res => {
214
+ const { message, status } = res;
215
+ this.loading = false;
216
+ if (status === 'success') {
217
+ this.$message.success('提交成功');
218
+ this.quit(true);
219
+ } else {
220
+ this.$message.error(message || '系统错误,请联系管理员!');
221
+ }
222
+ })
223
+ .catch(err => {
224
+ this.loading = false;
225
+ if (err.message && err.message !== 'canceled') {
226
+ this.$message.error(err.message);
227
+ }
228
+ });
229
+ },
230
+ getTaskReview() {
231
+ let params = {
232
+ url: toTaskReview,
233
+ params: { pendingId: this.pendingId }
234
+ };
235
+ util
236
+ .ajax(params)
237
+ .then(res => {
238
+ const { status, message } = res;
239
+ this.loading = false;
240
+ if (status === 'success') {
241
+ const {
242
+ data: { initiatorUser, taskExamine }
243
+ } = res;
244
+ this.opinion = taskExamine.opinion;
245
+ this.infoList.nextOtherOrgObj.push(initiatorUser.userId);
246
+ this.onlyName = initiatorUser.username;
247
+ this.isSubFlow = taskExamine.isSubFlow;
248
+ this.currentOrgProcessKey = taskExamine.currentOrgProcessKey;
249
+ this.getFind();
250
+ this.getMessage();
251
+ this.getNodeType();
252
+ } else {
253
+ this.$message.error(message || '系统错误,请联系管理员!');
254
+ }
255
+ })
256
+ .catch(err => {
257
+ this.loading = false;
258
+ if (err.message && err.message !== 'canceled') {
259
+ this.$message.error(err.message);
260
+ }
261
+ });
262
+ },
263
+ getInfo() {
264
+ let params = {
265
+ url:
266
+ this.type == 'takeAdvice'
267
+ ? toTaskTakeAdvice
268
+ : this.type === 'startDraf'
269
+ ? toTaskStartDraft
270
+ : this.type == 'unionSeal'
271
+ ? toTaskUnionSeal
272
+ : this.type == 'twoOfficesDispatch'
273
+ ? toTwoOfficesDispatch
274
+ : toTaskUnionExamine,
275
+ params: { pendingId: this.pendingId },
276
+ headers: { Accept: 'application/json,text/plain' }
277
+ };
278
+ util
279
+ .ajax(params)
280
+ .then(res => {
281
+ const { message, status } = res;
282
+ this.loading = false;
283
+ if (status == 'success') {
284
+ const {
285
+ data: {
286
+ choiceDeptId,
287
+ choiceOrgId,
288
+ taskExamine,
289
+ unionDispatchOrgName,
290
+ unionDispatchOrgId,
291
+ orgNames,
292
+ nodeInfoMap: {
293
+ nodeExtAttr: {
294
+ userSelectionType,
295
+ isHideOtherOrg,
296
+ isHideCurrentOrg,
297
+ isOpinionRequired
298
+ }
299
+ }
300
+ }
301
+ } = res;
302
+ this.isSinglePage = taskExamine.isSinglePage;
303
+ this.isSubFlow = taskExamine.isSubFlow;
304
+ this.opinion = taskExamine.opinion;
305
+ this.choiceDeptId = choiceDeptId;
306
+ this.choiceOrgId = choiceOrgId;
307
+ if (this.type == 'takeAdvice' || this.type == 'startDraf') {
308
+ this.currentOrgName = res.data.currentOrgName;
309
+ this.otherOrgName = res.data.otherOrgName;
310
+ this.isChoiceOtherOrgDept = res.data.isChoiceOtherOrgDept;
311
+ this.isHideOtherOrg = isHideOtherOrg;
312
+ this.isHideCurrentOrg = isHideCurrentOrg;
313
+ }
314
+ this.isOpinionRequired = isOpinionRequired;
315
+ if (this.type == 'unionSeal') {
316
+ this.onlyName = unionDispatchOrgName;
317
+ this.infoList.nextOtherOrgObj.push(unionDispatchOrgId);
318
+ }
319
+ if (this.type == 'twoOfficesDispatch') {
320
+ this.onlyName = orgNames;
321
+ this.infoList.nextOtherOrgObj.push(taskExamine.nextOtherOrgObj);
322
+ }
323
+ this.isMultiple(userSelectionType);
324
+ this.getFind();
325
+ this.getMessage();
326
+ this.getNodeType();
327
+ } else {
328
+ this.$message.error(message || '系统错误,请联系管理员!');
329
+ }
330
+ })
331
+ .catch(err => {
332
+ this.loading = false;
333
+ if (err.message && err.message !== 'canceled') {
334
+ this.$message.error(err.message);
335
+ }
336
+ });
337
+ },
338
+ subMit() {
339
+ // if (
340
+ // this.infoList.nextOtherOrgObjName == '' ||
341
+ // this.infoList.nextOtherOrgObjName.length == 0
342
+ // )
343
+ // return this.$message.warning('请选择联合单位');
344
+ if (this.type === 'taskReview') return this.subTaskReview();
345
+ let {
346
+ infoList: {
347
+ nextCurrentOrgObj,
348
+ nextOtherOrgObj,
349
+ noticeType,
350
+ noticeInfo
351
+ },
352
+ isOpinionRequired,
353
+ opinion,
354
+ type,
355
+ isHideOtherOrg,
356
+ choiceDeptId,
357
+ choiceOrgId,
358
+ isHideCurrentOrg,
359
+ isSubFlow,
360
+ pendingId
361
+ } = this;
362
+ if (
363
+ (type == 'takeAdvice' &&
364
+ (nextCurrentOrgObj == '' ||
365
+ (nextCurrentOrgObj == null && isHideCurrentOrg == 0))) ||
366
+ ((isHideOtherOrg == 0 && nextOtherOrgObj == '') ||
367
+ nextOtherOrgObj == null)
368
+ ) {
369
+ return this.$message.warning('请选择处理对象!');
370
+ } else if (
371
+ isHideCurrentOrg == 0 &&
372
+ (nextOtherOrgObj == '' || nextOtherOrgObj == null)
373
+ ) {
374
+ return this.$message.warning('请选择处理对象!');
375
+ }
376
+
377
+ if (isOpinionRequired == 1 && (opinion == '' || opinion == null)) {
378
+ return this.$message.warning('当前步骤必须输入意见!');
379
+ }
380
+ // if (this.type != 'startDraf' && this.type != 'unionSeal' && this.type != 'twoOfficesDispatch')
381
+ // return this.$message.warning('暂未开放,敬请期待!');
382
+ const param = {
383
+ url:
384
+ this.type === 'startDraf'
385
+ ? taskStartDraft
386
+ : this.type == 'unionSeal'
387
+ ? taskUnionSeal
388
+ : this.type === 'twoOfficesDispatch'
389
+ ? twoOfficesDispatch
390
+ : this.type == 'takeAdvice'
391
+ ? taskTakeAdvice
392
+ : taskUnionExamine,
393
+ data: {
394
+ opinion,
395
+ pendingId,
396
+ nextOtherOrgObj: nextOtherOrgObj,
397
+ nextCurrentOrgObj: nextCurrentOrgObj,
398
+ notificationMsg: noticeInfo,
399
+ notificationType: noticeType.join(','),
400
+ choiceDeptId,
401
+ isSubFlow,
402
+ choiceOrgId
403
+ },
404
+ headers: { Accept: 'application/json,text/plain' },
405
+ method: 'POST'
406
+ };
407
+ this.loading = true;
408
+ util
409
+ .ajax(param)
410
+ .then(res => {
411
+ const { message, status } = res;
412
+ this.loading = false;
413
+ if (status == 'success') {
414
+ this.$message.success('提交成功');
415
+ this.quit(true);
416
+ } else {
417
+ this.$message.error(message || '系统错误,请联系管理员!');
418
+ }
419
+ })
420
+ .catch(err => {
421
+ this.loading = false;
422
+ if (err.message && err.message !== 'canceled') {
423
+ this.$message.error(err.message);
424
+ }
425
+ });
426
+ },
427
+ quit(val) {
428
+ if (val === true) return this.$emit('cancel', val);
429
+ this.$emit('cancel');
430
+ },
431
+ changeSelectUser(val, type) {
432
+ const { nextUser, options } = val;
433
+ let newNextUser = '';
434
+ options.map(item => {
435
+ if (newNextUser) {
436
+ newNextUser += `,${item.stype}-${item.id}`;
437
+ } else {
438
+ newNextUser = `${item.stype}-${item.id}`;
439
+ }
440
+ });
441
+ this.infoList[type] = newNextUser;
442
+ },
443
+ getNodeType() {
444
+ util
445
+ .ajax({
446
+ url: findCodeValues,
447
+ params: { ccCode: 'notification_type' }
448
+ })
449
+ .then(res => {
450
+ const { status, data } = res;
451
+ this.loading = false;
452
+ if (status === 'success') {
453
+ this.infoList.noticeList = data;
454
+ }
455
+ })
456
+ .catch(err => {
457
+ this.loading = false;
458
+ if (err.message && err.message !== 'canceled') {
459
+ this.$message.error(err.message);
460
+ }
461
+ });
462
+ },
463
+ //获取通知信息
464
+ getMessage() {
465
+ let params = {
466
+ pendingId: this.pendingId
467
+ };
468
+ util
469
+ .ajax({ url: getNotificationMsg, params, methods: 'post' })
470
+ .then(res => {
471
+ if (res.status === 'success') {
472
+ this.infoList.noticeInfo = res.message;
473
+ }
474
+ this.loading = false;
475
+ })
476
+ .catch(err => {
477
+ this.loading = false;
478
+ if (err.message && err.message !== 'canceled') {
479
+ this.$message.error(err.message);
480
+ }
481
+ });
482
+ },
483
+ getFind() {
484
+ util
485
+ .ajax({
486
+ url: findSysCodes
487
+ })
488
+ .then(res => {
489
+ const { status, message } = res;
490
+ if (status === 'success') {
491
+ this.infoList.noticeType = message.split(',');
492
+ } else {
493
+ this.$message.error(message || '系统错误,请联系管理员!');
494
+ }
495
+ })
496
+ .catch(err => {
497
+ this.loading = false;
498
+ if (err.message && err.message !== 'canceled') {
499
+ this.$message.error(err.message);
500
+ }
501
+ });
502
+ }
503
+ }
504
+ };
505
+ </script>
506
+
507
+ <style></style>
@@ -0,0 +1,120 @@
1
+ <template>
2
+ <div class="es-from" v-loading="loading">
3
+ <el-form
4
+ ref="dynamicValidateForm"
5
+ :label-position="labelPosition"
6
+ :model="newData"
7
+ :label-width="labelWidth"
8
+ class="demo-dynamic"
9
+ >
10
+ <el-form-item
11
+ prop="sort"
12
+ label="排序号"
13
+ :rules="[{ required: true, message: `请输入排序号`, trigger: 'blur' }]"
14
+ >
15
+ <el-input
16
+ v-model="newData.sort"
17
+ :placeholder="`请输入入排序号`"
18
+ ></el-input>
19
+ </el-form-item>
20
+ <el-form-item
21
+ prop="content"
22
+ label="内容"
23
+ :rules="[{ required: true, message: `请输入内容`, trigger: 'blur' }]"
24
+ >
25
+ <el-input
26
+ v-model="newData.content"
27
+ :placeholder="`请输入内容`"
28
+ ></el-input>
29
+ </el-form-item>
30
+ <!-- <el-form-item> -->
31
+ <!-- </el-form-item> -->
32
+ </el-form>
33
+ <div style="text-align:right">
34
+ <el-button
35
+ v-show="showSubBtn"
36
+ type="primary"
37
+ size="small"
38
+ @click="submitForm('dynamicValidateForm')"
39
+ >
40
+ 保存
41
+ </el-button>
42
+ </div>
43
+ </div>
44
+ </template>
45
+
46
+ <script>
47
+ import { addCommonOpion, editCommonOpion } from 'eoss-ui/src/config/api';
48
+ import util from 'eoss-ui/src/utils/util';
49
+ export default {
50
+ name: 'ideas',
51
+ componentName: 'ideas',
52
+ props: {
53
+ data: {
54
+ type: Object,
55
+ default: () => {}
56
+ },
57
+ formItemList: {
58
+ type: Array,
59
+ default: () => []
60
+ },
61
+ labelWidth: {
62
+ type: String,
63
+ default: '100px'
64
+ },
65
+ showSubBtn: {
66
+ type: Boolean,
67
+ default: true
68
+ },
69
+ labelPosition: {
70
+ type: String,
71
+ default: 'left'
72
+ }
73
+ },
74
+ data() {
75
+ return {
76
+ formList: [],
77
+ loading: false,
78
+ newData: {},
79
+ index: 0
80
+ };
81
+ },
82
+ mounted() {
83
+ this.data.id ? this.add(this.data.id) : this.add();
84
+ },
85
+ methods: {
86
+ add(id) {
87
+ this.loading = true;
88
+ util
89
+ .ajax({
90
+ url: id ? editCommonOpion : addCommonOpion,
91
+ params: { id }
92
+ })
93
+ .then(res => {
94
+ const { status, message, data } = res;
95
+ if (status == 'success') {
96
+ this.newData = data.bean;
97
+ } else {
98
+ this.$message.error(message || '系统错误,请联系管理员!');
99
+ }
100
+ this.loading = false;
101
+ })
102
+ .catch(err => {
103
+ this.loading = false;
104
+ if (err.message && err.message !== 'canceled') {
105
+ this.$message.error(err.message);
106
+ }
107
+ });
108
+ },
109
+ submitForm(formName) {
110
+ this.$refs[formName].validate(valid => {
111
+ if (valid) {
112
+ this.$emit('subMit', { addVisible: false, data: this.newData });
113
+ } else {
114
+ return false;
115
+ }
116
+ });
117
+ }
118
+ }
119
+ };
120
+ </script>