1003410408_edit.jsp 7.6 KB

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