workDailyRoutineView.jsp 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>日常事务管理</title>
  6. <meta name="decorator" content="default"/>
  7. </head>
  8. <body>
  9. <div class="single-form">
  10. <div class="container view-form">
  11. <form:form id="inputForm" modelAttribute="workDailyRoutine" action="${ctx}/workdailyroutine/workDailyRoutine/save" method="post" class="form-horizontal">
  12. <form:hidden path="id"/>
  13. <div class="form-group layui-row first">
  14. <div class="form-group-label"><h2>基本信息</h2></div>
  15. <div class="layui-item layui-col-sm6">
  16. <label class="layui-form-label"><span class="require-item">*</span>事务名称:</label>
  17. <div class="layui-input-block">
  18. <form:input path="name" htmlEscape="false" readonly="true" class="form-control layui-input required"/>
  19. </div>
  20. </div>
  21. <div class="layui-item layui-col-sm6">
  22. <label class="layui-form-label"><span class="require-item">*</span>事务来源:</label>
  23. <div class="layui-input-block">
  24. <form:input path="source" htmlEscape="false" readonly="true" class="form-control layui-input required"/>
  25. </div>
  26. </div>
  27. <div class="layui-item layui-col-sm6">
  28. <label class="layui-form-label">创建人:</label>
  29. <div class="layui-input-block">
  30. <form:input path="createBy.name" htmlEscape="false" readonly="true" class="form-control layui-input required"/>
  31. </div>
  32. </div>
  33. <div class="layui-item layui-col-sm6">
  34. <label class="layui-form-label">所属部门:</label>
  35. <div class="layui-input-block">
  36. <input type="text" name="office.name" readonly="readonly" class="form-control layui-input" value="${workDailyRoutine.office.topCompany}"/>
  37. <input type="hidden" name="office.id" readonly="readonly" class="form-control layui-input" value="${workDailyRoutine.office.id}"/>
  38. </div>
  39. </div>
  40. <div class="layui-item layui-col-sm6">
  41. <label class="layui-form-label">创建时间:</label>
  42. <div class="layui-input-block">
  43. <input type="text" id="createDate" htmlEscape="false" value="<fmt:formatDate value="${workDailyRoutine.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>" readonly="true" class="form-control layui-input required"/>
  44. </div>
  45. </div>
  46. <div class="layui-item layui-col-sm6">
  47. <label class="layui-form-label">事务状态:</label>
  48. <div class="layui-input-block">
  49. <form:input path="status" htmlEscape="false" readonly="true" class="form-control layui-input required"/>
  50. </div>
  51. </div>
  52. <div class="layui-item layui-col-sm12 with-textarea">
  53. <label class="layui-form-label">具体要求:</label>
  54. <div class="layui-input-block">
  55. <form:textarea path="remarks" htmlEscape="false" readonly="true" rows="3" class="form-control"/>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="form-group layui-row lw12">
  60. <div class="form-group-label"><h2>执行人明细</h2></div>
  61. <table id="termsTable" class="table table-bordered table-condensed details">
  62. <thead>
  63. <tr>
  64. <th>姓名</th>
  65. <th>部门</th>
  66. <th>完成状态</th>
  67. <th>完成日期</th>
  68. <th>完成情况说明</th>
  69. </tr>
  70. </thead>
  71. <tbody id="termTableList">
  72. <c:forEach items="${workDailyRoutine.detailList}" var="routineDetail" varStatus="idx">
  73. <tr>
  74. <td style="text-align:center;">
  75. ${routineDetail.operator.name}
  76. </td>
  77. <td style="text-align:center;">
  78. ${routineDetail.office.name}
  79. </td>
  80. <td style="text-align:center;">
  81. ${routineDetail.status}
  82. </td>
  83. <td style="text-align:center;">
  84. <fmt:formatDate value="${routineDetail.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
  85. </td>
  86. <td style="text-align:center;" title="${routineDetail.remarks}">
  87. ${routineDetail.remarks}
  88. </td>
  89. </tr>
  90. </c:forEach>
  91. </tbody>
  92. </table>
  93. </div>
  94. <div class="form-group layui-row">
  95. <div class="form-group-label"><h2>附件信息</h2></div>
  96. <div class="layui-item layui-col-xs12" style="padding:0 16px;">
  97. <table id="listAttachment" class="table table-bordered table-condensed no-bottom-margin details">
  98. <thead>
  99. <tr>
  100. <%-- <th>序号</th>--%>
  101. <th>文件预览</th>
  102. <th>上传人</th>
  103. <th>上传时间</th>
  104. <th width="150px">操作</th>
  105. </tr>
  106. </thead>
  107. <tbody id="file_attachment">
  108. <c:forEach items="${workDailyRoutine.workAttachments}" var = "workClientAttachment" varStatus="status">
  109. <tr>
  110. <%-- <td>${status.index + 1}</td>--%>
  111. <c:choose>
  112. <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
  113. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
  114. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
  115. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
  116. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
  117. <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}"></td>
  118. </c:when>
  119. <c:otherwise>
  120. <c:choose>
  121. <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
  122. <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%','1')">${workClientAttachment.attachmentName}</a></td>
  123. </c:when>
  124. <c:otherwise>
  125. <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%')">${workClientAttachment.attachmentName}</a></td>
  126. </c:otherwise>
  127. </c:choose>
  128. </c:otherwise>
  129. </c:choose>
  130. <td>${workClientAttachment.createBy.name}</td>
  131. <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
  132. <td class="op-td">
  133. <div class="op-btn-box" >
  134. <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent(encodeURIComponent('${workClientAttachment.url}'));" class="op-btn op-btn-download"><i class="fa fa-download"></i>&nbsp;下载</a>
  135. </div>
  136. </td>
  137. </tr>
  138. </c:forEach>
  139. </tbody>
  140. </table>
  141. </div>
  142. </div>
  143. </form:form>
  144. </div>
  145. </div>
  146. </body>
  147. </html>