remindReport.jsp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <%--
  2. ~ Copyright (c) 2014, 2023, Chengdu Minto Technology Co.,LTD. All rights reserved.
  3. ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4. --%>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
  7. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  8. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  9. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  10. <%@ page isELIgnored="false" %>
  11. <html xmlns="http://www.w3.org/1999/xhtml">
  12. <head>
  13. <meta name="renderer" content="webkit|ie-stand|ie-comp">
  14. <meta http-equiv="X-UA-Compatible" content="IE=11;IE=10;IE=9; IE=8; IE=7; IE=EDGE,chrome=1" />
  15. <title>催办</title>
  16. <link rel="stylesheet" href="${path}/common/css/minto.icon.css${resSuffix}" type="text/css" />
  17. <link rel="stylesheet" href="${path}/common/css/minto.comp.css${resSuffix}" type="text/css" />
  18. <link href="${path}/tc_ttp/bootstrap/css/bootstrap.min.css${resSuffix}" media="screen" rel="stylesheet" type="text/css"/>
  19. <link href="${path}/tc_suite/taskmt/byType/css/byType.css${resSuffix}" media="screen" rel="stylesheet" type="text/css" />
  20. <link href="${path}/tc_ttp/bootstrap-multiselect/bootstrap-multiselect.css${resSuffix}" media="screen" rel="stylesheet" type="text/css" />
  21. <style type="text/css">
  22. body,h1,h2,h3,h4,p,span,div,ul,ol,li,dd,dt,dl{font-family: Source Han Sans CN,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol,noto color emoji;}
  23. .ajust-length {
  24. line-height: 46.5px;
  25. }
  26. .fileDiv{
  27. height: 100px;
  28. }
  29. #addFiles div{
  30. float: none!important;
  31. }
  32. /*.newMsgTable tr{border: 1px solid #ccc;}*/
  33. .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline {
  34. margin-top: 0;
  35. margin-left: 0px;
  36. margin-right: 10px;
  37. }
  38. .radio-inline, .checkbox-inline {
  39. margin-right: 10px;
  40. }
  41. label {
  42. font-weight: normal;
  43. }
  44. </style>
  45. <script type="text/javascript" src="${path}/tc_ttp/jquery/jquery-1.12.4.min.js${resSuffix}"></script>
  46. <script type="text/javascript" src="${path}/tc_ttp/common/jquery.json.js${resSuffix}"></script>
  47. <script type="text/javascript" src="${path}/tc_ttp/common/tc.js${resSuffix}"></script>
  48. <script type="text/javascript" src="${path}/tc_ttp/bootstrap/js/bootstrap.js${resSuffix}"></script>
  49. <script type="text/javascript" src="${path}/tc_ttp/bootstrap-multiselect/bootstrap-multiselect.js${resSuffix}"></script>
  50. <script type="text/javascript" src="${path}/tc_ttp/lhgdialog4.2.0/lhgdialog.js${resSuffix}"></script>
  51. <script type="text/javascript" src="${path}/tc_ttp/common/function.js${resSuffix}"></script>
  52. <script type="text/javascript" src="${path}/tc_tap/space/js/upload.js${resSuffix}"></script>
  53. <script type="text/javascript" src="${path}/tc_tap/relResource/js/relResource.js${resSuffix}"></script>
  54. <script type="text/javascript">
  55. $(function () {
  56. //督办文件上传
  57. $("#s_file_upload").click(function(){
  58. var target = $(this).attr("targetId");
  59. var hidename = $(this).attr("hidename");
  60. TC.ui.rel.show({
  61. model:3,
  62. onSuccess:function(result) {
  63. var fileResult = result.fileResult;
  64. for(var i = 0; i < fileResult.length; i++) {
  65. var file = fileResult[i];
  66. addFileHtml(file,$("#"+target),hidename);
  67. }
  68. }
  69. });
  70. });
  71. //全选
  72. $("#selectAll").on("click",function(){
  73. $("input[name='remind-dept']").prop("checked",$(this).prop("checked"));
  74. });
  75. //选择全部后,把全选按钮选中
  76. $("input[name='remind-dept']").on("click",function(){
  77. $("#selectAll").prop("checked",$("input[name='remind-dept']").length === $("input[name='remind-dept']:checked").length);
  78. });
  79. $("#selectAll").prop("checked",$("input[name='remind-dept']").length === $("input[name='remind-dept']:checked").length);
  80. $("#modifySmsContent").on("click",function () {
  81. var scb = $("#modifySmsContent").html();
  82. if ("隐藏"==scb) {
  83. scb = "修改";
  84. } else {
  85. scb = "隐藏";
  86. }
  87. $("#modifySmsContent").html(scb);
  88. $("#smsContent").toggle();
  89. });
  90. $("#remindContent").on("blur",function () {
  91. $("#smsContent").val($(this).val());
  92. $("#showSmsContent").html("短信发送内容:"+$("#prefixMsg").val()+$("#smsContent").val()+$("#suffixMsg").val());
  93. });
  94. $("#smsContent").on("blur",function () {
  95. $("#showSmsContent").html("短信发送内容:"+$("#prefixMsg").val()+$("#smsContent").val()+$("#suffixMsg").val());
  96. });
  97. //默认勾选全部
  98. /* if (!$("#selectAll").is(":checked")) {
  99. $("#selectAll").click();
  100. } */
  101. if($("#sendTr") != null){
  102. $("input[name='sendSmsFlag']").click(function(){
  103. var value = $(this).val();
  104. if(value == "1"){
  105. $(".sendClass").each(function(){
  106. $(this).show();
  107. });
  108. }
  109. if(value == "0"){
  110. $(".sendClass").each(function(){
  111. $(this).hide();
  112. });
  113. }
  114. });
  115. }
  116. });
  117. function sendSignRemind(callback) {
  118. if ($("input[name='remind-dept']:checked").size() === 0) {
  119. $.alert("请先勾选要催办的成员!");
  120. return ;
  121. }
  122. var remindContent= $("#remindContent").val();
  123. if(!remindContent){
  124. $.alert("请输入催办内容");
  125. return;
  126. }
  127. if ($("input[name=msgType]:checked").size()===0) {
  128. $.alert("请勾选一种以上催办方式!");
  129. return ;
  130. }
  131. var deptIds = [];
  132. $("input[name='remind-dept']:checked").each(function(){
  133. deptIds.push({
  134. deptId:$(this).val(),
  135. taskIds:$(this).attr("taskIds"),
  136. phone:$(this).attr("phone")
  137. });
  138. });
  139. // var attachment = [];
  140. // $("input[name='attachment']").each(function(){
  141. // attachment.push($(this).val())
  142. // });
  143. var progressBar = $.startProc("正在发送,请稍后...")
  144. var result = {result:"error",message:"发送失败,请重新发送。"};
  145. $.ajax({
  146. url:TC.config.baseUrl+"/project/sendMessage/",
  147. traditional:true,
  148. data:{
  149. "referenceIds":'${referenceIds}',
  150. "phaseId":'${phaseId}',
  151. "deptIds":jQuery.toJSON(deptIds),
  152. "remindContent":remindContent,
  153. "sendSmsFlag":$("input[name='sendSmsFlag']:checked").val()
  154. },
  155. type:"POST",
  156. async:true,
  157. dataType:"json",
  158. success:function(res){
  159. $.extend(result,res);
  160. if ($.isFunction(callback)) {
  161. callback(result,progressBar);
  162. }
  163. }
  164. });
  165. }
  166. </script>
  167. </head>
  168. <body>
  169. <form style="margin: 10px">
  170. <table cellspacing="0" cellpadding="0" style="width:100%;border-collapse:collapse;" class="newMsgTable">
  171. <tr class="mt-form-item">
  172. <td class="mt-form-left"><label for="remindContent" style="margin-top: 7px"><input type="checkbox" name="msgType" value="0" checked style="float:left;margin-right:5px;display: none;"> 催办内容:</label></td>
  173. <td class="mt-form-right"><textarea class="mt-textarea" id="remindContent" placeholder="请输入催办内容" rows="5"></textarea></td>
  174. </tr>
  175. <c:if test="${smsSwitch==1}">
  176. <tr id="sendTr" class="mt-form-item">
  177. <td class="mt-form-left"><label for="selectUnit">发送短信:</label></td>
  178. <td class="mt-form-right">
  179. <input type="radio" value="0" name="sendSmsFlag" checked="checked" style="float:left;margin-top: 4px;"><span class="select-padding jn-check" style="margin-left:5px;margin-right:12px;float:left;">否</span>
  180. <input type="radio" value="1" name="sendSmsFlag" style="float:left;margin-top: 4px;" ><span class="select-padding jn-check" style="margin-left:5px;margin-right:12px;float:left;">是</span>
  181. </td>
  182. </tr>
  183. </c:if>
  184. <%--<tr>--%>
  185. <%--<td style="text-align:right;"><label for="s_file_upload">催办附件:</label></td>--%>
  186. <%--<td><a href="javascript:;" id="s_file_upload" hidename="attachment" targetId="addFiles" style="color:#0c94ff;">上传附件</a></td>--%>
  187. <%--</tr>--%>
  188. <tr class="mt-form-item">
  189. <td class="mt-form-left"><label for="selectUnit">催办单位:</label></td>
  190. <td class="mt-form-right">
  191. <div id="selectUnit">
  192. <c:set value="${fn:length(remindInfos)}" var="size"/>
  193. <label class="checkbox-inline" for="selectAll">
  194. <input type="checkbox" id="selectAll" value="0"> 全选
  195. </label>
  196. <br>
  197. <c:forEach items="${remindInfos}" var="remindInfo" varStatus="s">
  198. <label class="checkbox-inline" for="${remindInfo.did}">
  199. <%-- 增加默认选中 Modified by Zhengyu.Hu 2017/12/13. --%>
  200. <c:choose>
  201. <c:when test="${remindInfo.showFlag}">
  202. <input type="checkbox" name="remind-dept" taskIds="${remindInfo.referenceId}" phone="${remindInfo.phone}" id="${remindInfo.personId}" value="${remindInfo.personId}"> ${remindInfo.name}
  203. </c:when>
  204. <c:otherwise>
  205. <input type="checkbox" checked name="remind-dept" taskIds="${remindInfo.referenceId}" phone="${remindInfo.phone}" id="${remindInfo.personId}" value="${remindInfo.personId}"> ${remindInfo.name}
  206. </c:otherwise>
  207. </c:choose>
  208. </label>
  209. </c:forEach>
  210. </div>
  211. </td>
  212. </tr>
  213. <tr class="mt-form-item" id="addFilesTr">
  214. <td colspan="2" style="padding-left: 100px;"><div id="addFiles" style="width: auto; margin-top: -10px; line-height: 25px;"></div></td>
  215. </tr>
  216. </table>
  217. </form>
  218. <%--<input type="hidden" id="prefixMsg" value="${smsInfo.prefixMsg}">--%>
  219. <%--<input type="hidden" id="suffixMsg" value="${smsInfo.suffixMsg}">--%>
  220. </body>
  221. </html>