1003410402_run.jsp 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. .iframe-wrap{
  31. box-sizing: border-box;
  32. width: 100%;
  33. height: calc(100% - 50px);
  34. }
  35. .iframe-wrap iframe{
  36. width: 100%;
  37. height: 100%;
  38. }
  39. .plain-btn{
  40. border: 1px solid #1989fa;
  41. color: #1989fa;
  42. background-color: #fff;
  43. }
  44. /* 弹出层 */
  45. .popup-content{
  46. width: 100%;
  47. height: 100%;
  48. }
  49. .popup-content-top{
  50. box-sizing: border-box;
  51. width: 100%;
  52. height: calc(100% - 54px);
  53. padding: 12px;
  54. }
  55. .popup-content-bottom{
  56. width: 90%;
  57. margin: 0 auto;
  58. padding: 5px;
  59. }
  60. .icon-node:before, .icon-flow2:before {
  61. font-size: 20px;
  62. }
  63. .ck.ck-editor {
  64. margin-top: 30px !important;
  65. }
  66. .van-form .van-cell::after{
  67. border-bottom: none;
  68. }
  69. </style>
  70. <title>待办审核</title>
  71. </head>
  72. <body class="body-bg-gray">
  73. <div v-cloak id="space-content">
  74. <div class="content-wrap">
  75. <div class="iframe-wrap">
  76. <iframe id="applyInfo" frameborder="0"></iframe>
  77. </div>
  78. <!-- 底部 -->
  79. <van-goods-action style="padding-left:10px">
  80. <van-goods-action-icon class="spaceicon icon-node" text="流转意见" @click="auditOpinion();"></van-goods-action-icon>
  81. <van-goods-action-icon class="spaceicon icon-flow2" text="流程图" @click="flowChart()"></van-goods-action-icon>
  82. <van-goods-action-button type="info" text="退回" class="plain-btn" @click="showAudit('reject')"></van-goods-action-button>
  83. <van-goods-action-button type="info" text="同意" @click="showAudit('agree')"></van-goods-action-button>
  84. </van-goods-action>
  85. <!-- Popup 弹出层 -->
  86. <van-popup v-model="isShowPopup" position="bottom" :style="{ height: '300px' }" closeable round>
  87. <div class="popup-content">
  88. <div class="space-form-infor">
  89. <van-form id="aform" method="post" :model="obj" ref="obj" style="height: 100%;">
  90. <div class="popup-content-top">
  91. <space-editor v-model="obj.body" type="flow" height="150px" placeholder="请输入审批意见" ref="editor"></space-editor>
  92. </div>
  93. </van-form>
  94. </div>
  95. <div class="bottom-div">
  96. <van-button round type="info" native-type="button" @click="space.forms.submit();" style="width: 94%;">{{buttonName}}</van-button>
  97. </div>
  98. </div>
  99. </van-popup>
  100. </div>
  101. </div>
  102. </body>
  103. <script type="text/javascript">
  104. $('#applyInfo').attr("src", "${applyInfoToken}");
  105. space.vue = new Vue({
  106. el: space.appContent,
  107. data: function() {
  108. return {
  109. oldAuditType: '',
  110. auditType: '',
  111. buttonName: '',
  112. isInitUE: false,
  113. isShowPopup: false,
  114. obj: {
  115. cmsId: undefined,
  116. body: ''
  117. },
  118. }
  119. },
  120. mounted: function () {
  121. },
  122. methods: {
  123. /**
  124. * 初始化 editor 的 CMS
  125. */
  126. initCkCMS: function() {
  127. space.plugin.ckEditor.CMS.init.applyCMS(this.$refs.editor.editor);
  128. this.obj.cmsId = this.$refs.editor.editor.CMS.id;
  129. },
  130. /**
  131. * 显示审核层
  132. */
  133. showAudit(type) {
  134. this.auditType = type;
  135. if (this.auditType == 'reject') {
  136. this.buttonName = '确认退回';
  137. }
  138. else if (this.auditType == 'agree') {
  139. this.buttonName = '确认同意';
  140. }
  141. this.isShowPopup = true;
  142. if (!this.isInitUE) {
  143. var _this = this;
  144. setTimeout(function() {
  145. _this.initCkCMS();
  146. },100);
  147. this.isInitUE = true;
  148. }
  149. if (this.oldAuditType != '' && this.oldAuditType != type) {
  150. this.$refs.editor.editor.setData("");// 清空 editor 内容
  151. }
  152. this.oldAuditType = type;
  153. },
  154. /**
  155. * 流转意见
  156. */
  157. auditOpinion: function() {
  158. space.plugin.layer.open({
  159. url: '<app:token name='sys.sys_flow_audit_info' page='10404' params='{applyid: "${applyid}", auditid: "${auditid}", tabsType: "auditOpinion", childServiceParamsMap: "${childServiceParamsMap}"}' />'
  160. });
  161. },
  162. /**
  163. * 流程图
  164. */
  165. flowChart: function() {
  166. space.plugin.layer.open({
  167. url: '<app:token name='sys.sys_flow_audit_info' page='10404' params='{applyid: "${applyid}", auditid: "${auditid}", tabsType: "flowChart", childServiceParamsMap: "${childServiceParamsMap}"}' />'
  168. });
  169. }
  170. }
  171. })
  172. space.forms.before = function () {
  173. space.plugin.ckEditor.CMS.submit(space.vue.$refs.editor.editor);
  174. // 审核流程(同意、退回)
  175. var url = "";
  176. if (space.vue.$data.auditType == 'reject') {
  177. url = '${rejectToken}';// 退回
  178. }
  179. else if (space.vue.$data.auditType == 'agree') {
  180. url = '${agreeToken}';// 同意
  181. }
  182. $("#aform").attr('action', url);
  183. }
  184. </script>
  185. <script type="text/javascript">space.vars.pageTypeCode = "10005";</script>
  186. <script type="text/javascript">space.vars.pageHashCode = "+dOpVN5jJ3cwocZtizje4w==";</script>
  187. <script type="text/javascript">removeTokens("<app:token name='sys.removeToken' />", '<%= pageContext.getAttribute(space.core.apps.common.ConstVars.TOKEN_SESSION_LIST_KEY) %>')</script>
  188. </html>