123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- <%--
- ~ Copyright (c) 2014, 2023, Chengdu Minto Technology Co.,LTD. All rights reserved.
- ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- --%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
- <%@ page isELIgnored="false" %>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta name="renderer" content="webkit|ie-stand|ie-comp">
- <meta http-equiv="X-UA-Compatible" content="IE=11;IE=10;IE=9; IE=8; IE=7; IE=EDGE,chrome=1" />
- <title>催办</title>
- <link rel="stylesheet" href="${path}/common/css/minto.icon.css${resSuffix}" type="text/css" />
- <link rel="stylesheet" href="${path}/common/css/minto.comp.css${resSuffix}" type="text/css" />
- <link href="${path}/tc_ttp/bootstrap/css/bootstrap.min.css${resSuffix}" media="screen" rel="stylesheet" type="text/css"/>
- <link href="${path}/tc_suite/taskmt/byType/css/byType.css${resSuffix}" media="screen" rel="stylesheet" type="text/css" />
- <link href="${path}/tc_ttp/bootstrap-multiselect/bootstrap-multiselect.css${resSuffix}" media="screen" rel="stylesheet" type="text/css" />
- <style type="text/css">
- 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;}
- .ajust-length {
- line-height: 46.5px;
- }
- .fileDiv{
- height: 100px;
- }
- #addFiles div{
- float: none!important;
- }
- /*.newMsgTable tr{border: 1px solid #ccc;}*/
- .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline {
- margin-top: 0;
- margin-left: 0px;
- margin-right: 10px;
- }
- .radio-inline, .checkbox-inline {
- margin-right: 10px;
- }
- label {
- font-weight: normal;
- }
- </style>
- <script type="text/javascript" src="${path}/tc_ttp/jquery/jquery-1.12.4.min.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/jquery.json.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/tc.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/bootstrap/js/bootstrap.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/bootstrap-multiselect/bootstrap-multiselect.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/lhgdialog4.2.0/lhgdialog.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/function.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_tap/space/js/upload.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_tap/relResource/js/relResource.js${resSuffix}"></script>
- <script type="text/javascript">
- $(function () {
- //督办文件上传
- $("#s_file_upload").click(function(){
- var target = $(this).attr("targetId");
- var hidename = $(this).attr("hidename");
- TC.ui.rel.show({
- model:3,
- onSuccess:function(result) {
- var fileResult = result.fileResult;
- for(var i = 0; i < fileResult.length; i++) {
- var file = fileResult[i];
- addFileHtml(file,$("#"+target),hidename);
- }
- }
- });
- });
- //全选
- $("#selectAll").on("click",function(){
- $("input[name='remind-dept']").prop("checked",$(this).prop("checked"));
- });
- //选择全部后,把全选按钮选中
- $("input[name='remind-dept']").on("click",function(){
- $("#selectAll").prop("checked",$("input[name='remind-dept']").length === $("input[name='remind-dept']:checked").length);
- });
- $("#selectAll").prop("checked",$("input[name='remind-dept']").length === $("input[name='remind-dept']:checked").length);
- $("#modifySmsContent").on("click",function () {
- var scb = $("#modifySmsContent").html();
- if ("隐藏"==scb) {
- scb = "修改";
- } else {
- scb = "隐藏";
- }
- $("#modifySmsContent").html(scb);
- $("#smsContent").toggle();
- });
- $("#remindContent").on("blur",function () {
- $("#smsContent").val($(this).val());
- $("#showSmsContent").html("短信发送内容:"+$("#prefixMsg").val()+$("#smsContent").val()+$("#suffixMsg").val());
- });
- $("#smsContent").on("blur",function () {
- $("#showSmsContent").html("短信发送内容:"+$("#prefixMsg").val()+$("#smsContent").val()+$("#suffixMsg").val());
- });
- //默认勾选全部
- /* if (!$("#selectAll").is(":checked")) {
- $("#selectAll").click();
- } */
- if($("#sendTr") != null){
- $("input[name='sendSmsFlag']").click(function(){
- var value = $(this).val();
- if(value == "1"){
- $(".sendClass").each(function(){
- $(this).show();
- });
- }
- if(value == "0"){
- $(".sendClass").each(function(){
- $(this).hide();
- });
- }
- });
- }
- });
- function sendSignRemind(callback) {
- if ($("input[name='remind-dept']:checked").size() === 0) {
- $.alert("请先勾选要催办的成员!");
- return ;
- }
- var remindContent= $("#remindContent").val();
- if(!remindContent){
- $.alert("请输入催办内容");
- return;
- }
- if ($("input[name=msgType]:checked").size()===0) {
- $.alert("请勾选一种以上催办方式!");
- return ;
- }
- var deptIds = [];
- $("input[name='remind-dept']:checked").each(function(){
- deptIds.push({
- deptId:$(this).val(),
- taskIds:$(this).attr("taskIds"),
- phone:$(this).attr("phone")
- });
- });
- // var attachment = [];
- // $("input[name='attachment']").each(function(){
- // attachment.push($(this).val())
- // });
- var progressBar = $.startProc("正在发送,请稍后...")
- var result = {result:"error",message:"发送失败,请重新发送。"};
- $.ajax({
- url:TC.config.baseUrl+"/project/sendMessage/",
- traditional:true,
- data:{
- "referenceIds":'${referenceIds}',
- "phaseId":'${phaseId}',
- "deptIds":jQuery.toJSON(deptIds),
- "remindContent":remindContent,
- "sendSmsFlag":$("input[name='sendSmsFlag']:checked").val()
- },
- type:"POST",
- async:true,
- dataType:"json",
- success:function(res){
- $.extend(result,res);
- if ($.isFunction(callback)) {
- callback(result,progressBar);
- }
- }
- });
- }
- </script>
- </head>
- <body>
- <form style="margin: 10px">
- <table cellspacing="0" cellpadding="0" style="width:100%;border-collapse:collapse;" class="newMsgTable">
- <tr class="mt-form-item">
- <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>
- <td class="mt-form-right"><textarea class="mt-textarea" id="remindContent" placeholder="请输入催办内容" rows="5"></textarea></td>
- </tr>
- <c:if test="${smsSwitch==1}">
- <tr id="sendTr" class="mt-form-item">
- <td class="mt-form-left"><label for="selectUnit">发送短信:</label></td>
- <td class="mt-form-right">
- <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>
- <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>
- </td>
- </tr>
- </c:if>
- <%--<tr>--%>
- <%--<td style="text-align:right;"><label for="s_file_upload">催办附件:</label></td>--%>
- <%--<td><a href="javascript:;" id="s_file_upload" hidename="attachment" targetId="addFiles" style="color:#0c94ff;">上传附件</a></td>--%>
- <%--</tr>--%>
- <tr class="mt-form-item">
- <td class="mt-form-left"><label for="selectUnit">催办单位:</label></td>
- <td class="mt-form-right">
- <div id="selectUnit">
- <c:set value="${fn:length(remindInfos)}" var="size"/>
- <label class="checkbox-inline" for="selectAll">
- <input type="checkbox" id="selectAll" value="0"> 全选
- </label>
- <br>
- <c:forEach items="${remindInfos}" var="remindInfo" varStatus="s">
- <label class="checkbox-inline" for="${remindInfo.did}">
- <%-- 增加默认选中 Modified by Zhengyu.Hu 2017/12/13. --%>
- <c:choose>
- <c:when test="${remindInfo.showFlag}">
- <input type="checkbox" name="remind-dept" taskIds="${remindInfo.referenceId}" phone="${remindInfo.phone}" id="${remindInfo.personId}" value="${remindInfo.personId}"> ${remindInfo.name}
- </c:when>
- <c:otherwise>
- <input type="checkbox" checked name="remind-dept" taskIds="${remindInfo.referenceId}" phone="${remindInfo.phone}" id="${remindInfo.personId}" value="${remindInfo.personId}"> ${remindInfo.name}
- </c:otherwise>
- </c:choose>
- </label>
- </c:forEach>
- </div>
- </td>
- </tr>
- <tr class="mt-form-item" id="addFilesTr">
- <td colspan="2" style="padding-left: 100px;"><div id="addFiles" style="width: auto; margin-top: -10px; line-height: 25px;"></div></td>
- </tr>
- </table>
- </form>
- <%--<input type="hidden" id="prefixMsg" value="${smsInfo.prefixMsg}">--%>
- <%--<input type="hidden" id="suffixMsg" value="${smsInfo.suffixMsg}">--%>
- </body>
- </html>
|