1003410408_run.jsp 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <%@ taglib uri="/WEB-INF/SpaceCoreApp.tld" prefix="app"%>
  4. <% pageContext.setAttribute(space.core.apps.common.ConstVars.MODULE_DM_KEY, "sys"); %>
  5. <!DOCTYPE html >
  6. <html>
  7. <head>
  8. <meta charset="UTF-8">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <link rel="stylesheet" href="/apps/space/css/SpaceIcon/iconfont.css">
  12. <link rel="stylesheet" href="/css/mobile.animate.css">
  13. <link rel="stylesheet" href="/css/ckeditor.css">
  14. <link rel="stylesheet" href="/apps/space/plug-in/mescroll/dist/mescroll.min.css">
  15. <link rel="stylesheet" href="/apps/space/plug-in/vant/index.css">
  16. <link rel="stylesheet" href="/apps/space/plug-in/mobileSelect/css/mobileSelect.css">
  17. <link rel="stylesheet" href="/css/mobile.style.css">
  18. <script>var space = { vars: {} };</script>
  19. <script src="/js/jquery1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
  20. <script src="/apps/space/plug-in/vue/vue.min.js" type="text/javascript" charset="utf-8"></script>
  21. <script src="/apps/space/plug-in/vant/vant.min.js" type="text/javascript" charset="utf-8"></script>
  22. <script src="/apps/space/plug-in/dayjs/dayjs.min.js" type="text/javascript" charset="utf-8"></script>
  23. <script src="/apps/space/plug-in/mescroll/dist/mescroll.js"></script>
  24. <script src="/apps/space/plug-in/layer-v3.1.1/layer.js"></script>
  25. <script src="/apps/space/plug-in/mobileSelect/js/mobileSelect.js"></script>
  26. <script src="/js/space.mobile.core.js" type="text/javascript" charset="utf-8"></script>
  27. <script src="/js/space.vue.subassembly.js" type="text/javascript" charset="utf-8"></script>
  28. <script src="/js/space.mobile.recycle.js" type="text/javascript" charset="utf-8"></script>
  29. <style>
  30. html,
  31. body,
  32. #space-content,
  33. .content-wrap{
  34. height: 100%;
  35. width: 100%;
  36. }
  37. .transactor-list{
  38. box-sizing: border-box;
  39. width: 100%;
  40. height: -moz-calc(100% - 50px);
  41. height: -webkit-calc(100% - 50px);
  42. height: calc(100% - 50px);
  43. padding: 20px 0;
  44. overflow-y: auto;
  45. }
  46. .transactor-list dt{
  47. width: 40px;
  48. height: 40px;
  49. border-radius: 6px;
  50. float: left;
  51. position: relative;
  52. }
  53. .transactor-list dt .van-image{
  54. width: 100%;
  55. height: 100%;
  56. line-height: 40px;
  57. text-align: center;
  58. border-radius: 6px;
  59. overflow: hidden;
  60. }
  61. .transactor-list .van-image .van-icon{
  62. color: #648ef7;
  63. font-size: 26px;
  64. }
  65. .transactor-list dt>i{
  66. position: absolute;
  67. bottom: -3px;
  68. right: -10px;
  69. color: #ea9b56;
  70. font-size: 18px;
  71. background-color: #fff;
  72. border-radius: 50%;
  73. }
  74. .transactor-list dd{
  75. margin-left: 57px;
  76. color: #666;
  77. font-size: 12px;
  78. line-height: 20px;
  79. }
  80. .transactor-list .transactor-list-username{
  81. color: #333;
  82. font-size: 14px;
  83. }
  84. .space-tabbar-list a{
  85. color: #646566;
  86. }
  87. .space-tabbar-img-wrap i{
  88. font-size: 22px;
  89. }
  90. [class*=van-hairline]::after{
  91. border: 0;
  92. }
  93. /* 弹出层 */
  94. .popup-content{
  95. width: 100%;
  96. height: 100%;
  97. }
  98. .popup-content-top{
  99. box-sizing: border-box;
  100. width: 100%;
  101. height: calc(100% - 54px);
  102. padding: 12px;
  103. }
  104. .popup-content-bottom{
  105. width: 90%;
  106. margin: 0 auto;
  107. padding: 5px;
  108. }
  109. .ck.ck-editor {
  110. margin-top: 30px !important;
  111. }
  112. .van-form .van-cell::after{
  113. border-bottom: none;
  114. }
  115. #ueditor_textarea_editorValue{
  116. background-color: red;
  117. }
  118. .icon-success-hollow,.icon-error-hollow {
  119. color:#000;
  120. }
  121. </style>
  122. <title>办理人列表</title>
  123. </head>
  124. <body>
  125. <div v-cloak id="space-content">
  126. <div class="content-wrap">
  127. <div class="transactor-list">
  128. <van-checkbox-group v-model="result" ref="checkboxGroup">
  129. <van-cell-group>
  130. <van-cell v-for="(item, index) in list" clickable :key="index" @click="toggle(index)" auto-fill="false">
  131. <template #title>
  132. <dl>
  133. <dt>
  134. <van-image :src="item.iconPath">
  135. <template v-slot:error><van-icon name="user-o" ></van-icon></template>
  136. </van-image>
  137. </dt>
  138. <dd class="transactor-list-username">
  139. {{item.personName}}
  140. </dd>
  141. <dd>
  142. {{item.deptName}}
  143. </dd>
  144. </dl>
  145. </template>
  146. <template #right-icon>
  147. <van-checkbox :name="item" ref="checkboxes"></van-checkbox>
  148. </template>
  149. </van-cell>
  150. </van-cell-group>
  151. </van-checkbox-group>
  152. </div>
  153. <div class="space-tabbar">
  154. <ul class="space-tabbar-list">
  155. <li @click="toggleAll">
  156. <a href="javascript:;">
  157. <div class="space-tabbar-img-wrap">
  158. <i class="spaceicon" :class="result.length == 0 ? 'icon-success-hollow' : 'icon-error-hollow'"></i>
  159. </div>
  160. <p>
  161. {{result.length == 0 ? '全选' : "反选"}}
  162. </p>
  163. </a>
  164. </li>
  165. <li @click="showUrged">
  166. <div class="space-tabbar-img-wrap">
  167. <i class="spaceicon icon-jiaji"></i>
  168. </div>
  169. <p>
  170. 催促
  171. </p>
  172. </li>
  173. <c:if test="${apply.reclaimFlow == '11'}">
  174. <li @click="withdraw">
  175. <div class="space-tabbar-img-wrap">
  176. <i class="spaceicon icon-chehui"></i>
  177. </div>
  178. <p>
  179. 收回
  180. </p>
  181. </li>
  182. </c:if>
  183. <li @click="viewInfo">
  184. <div class="space-tabbar-img-wrap">
  185. <i class="spaceicon icon-file"></i>
  186. </div>
  187. <p>
  188. 内容
  189. </p>
  190. </li>
  191. </ul>
  192. </div>
  193. <!-- Popup 弹出层 -->
  194. <van-popup v-model="isShowPopup" position="bottom" :style="{ height: '300px' }" closeable round>
  195. <div class="space-form-infor">
  196. <van-form action="<app:token name='sys.sys_urged_audit' />" method="post" :model="obj" ref="obj" style="height: 100%;">
  197. <div class="popup-content-top">
  198. <space-editor v-model="obj.content" type="flow" height="150px" placeholder="请输入内容" ref="editor"></space-editor>
  199. </div>
  200. </van-form>
  201. </div>
  202. <div class="bottom-div">
  203. <van-button type="info" native-type="button" @click="space.forms.submit();" style="width: 94%;" round>催促</van-button>
  204. </div>
  205. </van-popup>
  206. </div>
  207. </div>
  208. </body>
  209. <script type="text/javascript">
  210. var auditPersonList = '${auditPersonList}';
  211. space.vue = new Vue({
  212. el: space.appContent,
  213. data: function() {
  214. return {
  215. isShowPopup: false,
  216. isInitUE: false,
  217. obj: {
  218. auditIds: undefined,
  219. cmsId: undefined,
  220. content: '',
  221. },
  222. list: space.utils.isNull(auditPersonList) ? [] : JSON.parse(auditPersonList),
  223. result: [],
  224. service: {
  225. // 撤回(收回)服务
  226. withdrawApplyUri: '<app:token name='sys.sys_withdraw_apply' params='{applyid: "${applyid}"}' />'
  227. },
  228. }
  229. },
  230. methods: {
  231. /**
  232. * 初始化 editor 的 CMS
  233. */
  234. initCkCMS: function() {
  235. var _this = this;
  236. this.winInterval = setInterval(function() {
  237. if (!_this.$refs.editor.editor) {
  238. return;
  239. }
  240. window.clearInterval(_this.winInterval);
  241. space.plugin.ckEditor.CMS.init.applyCMS(_this.$refs.editor.editor);
  242. _this.obj.cmsId = _this.$refs.editor.editor.CMS.id;
  243. }, 100);
  244. this.isInitUE = true;
  245. },
  246. showUrged() {
  247. if (this.result.length <= 0){
  248. top.space.message.warning('未选择办理人');
  249. return false;
  250. }
  251. this.isShowPopup = true;
  252. if (!this.isInitUE) {
  253. this.initCkCMS();
  254. }
  255. },
  256. toggle(index) {
  257. this.$refs.checkboxes[index].toggle();
  258. },
  259. // 全选
  260. toggleAll() {
  261. // 选中
  262. for (let index = 0; index < this.list.length; index++) {
  263. const element = this.list[index];
  264. this.toggle(index);
  265. }
  266. },
  267. /**
  268. * 查看发起内容
  269. */
  270. viewInfo: function() {
  271. space.plugin.layer.open({
  272. url: '${applyInfo}'
  273. });
  274. },
  275. /**
  276. * 撤回(收回)
  277. */
  278. withdraw: function() {
  279. var _this = this;
  280. this.$dialog.confirm({
  281. title: '提示',
  282. message: '此操作将收回该流程, 是否继续?',
  283. }).then(() => {
  284. space.plugin.loading.show();
  285. space.utils.ajax({
  286. url: _this.service.withdrawApplyUri,
  287. dataType: 'json',
  288. callback: function(data) {
  289. space.plugin.loading.close();
  290. if (data.code == "success") {
  291. top.space.message.success('收回成功');
  292. try {
  293. // 在 AppWindow 里面
  294. if(space.plugin.appWindow.isInThe()) {
  295. space.plugin.appWindow.close();
  296. }
  297. else {
  298. space.utils.window.close();
  299. }
  300. } catch(e) {
  301. top.space.message.warning("发生错误,请稍后再试");
  302. }
  303. }
  304. else {
  305. top.space.message.error('系统繁忙,请稍后再试');
  306. }
  307. }
  308. });
  309. }).catch(() => {
  310. _this.$toast('已取消收回流程');
  311. });
  312. }
  313. },
  314. })
  315. space.forms.before = function () {
  316. if (!space.vue.$data.obj.content) {
  317. top.space.message.warning('请输入催促内容');
  318. return false;
  319. }
  320. space.plugin.ckEditor.CMS.submit(space.vue.$refs.editor.editor);
  321. var tmpAuditIds = [];
  322. space.vue.$data.result.forEach(element => {
  323. tmpAuditIds.push(element.auditId);
  324. });
  325. space.vue.$data.obj.auditIds = tmpAuditIds.join(',');
  326. return true;
  327. }
  328. </script>
  329. <script type="text/javascript">space.vars.pageTypeCode = "10005";</script>
  330. <script type="text/javascript">space.vars.pageHashCode = "RH1cK6PnkOxDTAvumUCV7Q==";</script>
  331. <script type="text/javascript">removeTokens("<app:token name='sys.removeToken' />", '<%= pageContext.getAttribute(space.core.apps.common.ConstVars.TOKEN_SESSION_LIST_KEY) %>')</script>
  332. </html>