reportView.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. <script type="text/javascript">
  8. </script>
  9. </head>
  10. <body>
  11. <div class="single-form">
  12. <div class="container${container} view-form">
  13. <div class="form-group layui-row first lw12">
  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 with-icon">
  18. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectcontentinfo.projectReportData.name}"/>
  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. <div class="input-group">
  25. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectcontentinfo.projectReportData.number}"/>
  26. <span class="input-group-btn">
  27. <label class="form-status">
  28. <c:choose>
  29. <c:when test="${not empty projectcontentinfo.projectReportData.status}">${fns:getDictLabel(projectcontentinfo.projectReportData.status, 'audit_state', '')}
  30. </c:when>
  31. <c:otherwise>新添</c:otherwise>
  32. </c:choose></label>
  33. </span>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="layui-item layui-col-sm6">
  38. <label class="layui-form-label"><span class="require-item">*</span>工作内容类型:</label>
  39. <div class="layui-input-block">
  40. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${fns:getContentTypeName(projectcontentinfo.projectReportData.type,"")}"/>
  41. </div>
  42. </div>
  43. <div class="layui-item layui-col-sm6">
  44. <label class="layui-form-label">成果类型:</label>
  45. <div class="layui-input-block">
  46. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${fns:getMainDictLabel(projectcontentinfo.projectReportData.achievementType, 'achievement_type', '')}"/>
  47. </div>
  48. </div>
  49. <div class="layui-item layui-col-sm6">
  50. <label class="layui-form-label">复核标准:</label>
  51. <div class="layui-input-block">
  52. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${fns:getDictLabel(projectcontentinfo.projectReportData.reviewStandard, 'reviewStandard', '')}"/>
  53. </div>
  54. </div>
  55. <div class="layui-item layui-col-sm6">
  56. <label class="layui-form-label">报告日期:</label>
  57. <div class="layui-input-block">
  58. <input id="provideDate" name="projectReportData.provideDate" type="text" htmlEscape="false" readonly="true" class="laydate-icondate form-control layer-date required layui-input laydate-icon"
  59. value="<fmt:formatDate value="${projectcontentinfo.projectReportData.reportDate}" pattern="yyyy-MM-dd"/>"/>
  60. </div>
  61. </div>
  62. <%--<div class="layui-item layui-col-sm6">
  63. <label class="layui-form-label">签字造价师一:</label>
  64. <div class="layui-input-block">
  65. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectcontentinfo.projectReportData.signCostOne.name}"/>
  66. </div>
  67. </div>
  68. <div class="layui-item layui-col-sm6">
  69. <label class="layui-form-label">签字造价师二:</label>
  70. <div class="layui-input-block">
  71. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectcontentinfo.projectReportData.signCostTwo.name}"/>
  72. </div>
  73. </div>--%>
  74. <div class="layui-item layui-col-sm6">
  75. <label class="layui-form-label">签章类型:</label>
  76. <div class="layui-input-block">
  77. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectcontentinfo.projectReportData.reportType}"/>
  78. </div>
  79. </div>
  80. <div class="layui-item layui-col-sm6">
  81. <label class="layui-form-label">归档状态:</label>
  82. <div class="layui-input-block">
  83. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${fns:getDictLabel(projectcontentinfo.projectReportData.fileStatus, 'record_state', '')}"/>
  84. </div>
  85. </div>
  86. <c:if test="${not empty projectcontentinfo.projectReportData.invalidStatus}">
  87. <div class="layui-item layui-col-sm6">
  88. <label class="layui-form-label">作废原因:</label>
  89. <div class="layui-input-block">
  90. <textarea path="remarks" htmlEscape="false" readonly="true" rows="3" maxlength="20" class="form-control" >${projectcontentinfo.projectReportData.remarks}</textarea>
  91. </div>
  92. </div>
  93. </c:if>
  94. </div>
  95. <div class="form-group layui-row first lw12">
  96. <div class="form-group-label"><h2>依据性资料明细</h2></div>
  97. <div class="layui-item layui-col-xs12 form-table-container">
  98. <table id="contentTableBase" class="table table-bordered table-condensed details">
  99. <thead>
  100. <tr>
  101. <th class="hide"></th>
  102. <th >资料编号</th>
  103. <th >资料名称</th>
  104. <th >资料类别</th>
  105. <th >上传人</th>
  106. <th >上传日期</th>
  107. </tr>
  108. </thead>
  109. <tbody id="workBaseDataList">
  110. <c:forEach items="${projectcontentinfo.projectReportData.projectBasedDataList}" var="projectBasedData" varStatus="idx">
  111. <tr>
  112. <td class="hide">
  113. <input type="hidden" id="workBaseDataList${idx.index}_id" value="${projectBasedData.id}">
  114. </td>
  115. <td style="text-align:center;">
  116. ${projectBasedData.number}
  117. </td>
  118. <td style="text-align:center;">
  119. ${projectBasedData.name}
  120. </td>
  121. <td style="text-align:center;">
  122. ${fns:getDictLabel(projectBasedData.type, 'project_document_type', '')}
  123. </td>
  124. <td style="text-align:center;">
  125. ${projectBasedData.uploadUser.name}
  126. </td>
  127. <td style="text-align:center;">
  128. <fmt:formatDate value="${projectBasedData.uploadDate}" pattern="yyyy-MM-dd"/>
  129. </td>
  130. </tr>
  131. </c:forEach>
  132. </tbody>
  133. </table>
  134. </div>
  135. </div>
  136. <div class="form-group layui-row first lw12">
  137. <div class="form-group-label"><h2>依据工作内容</h2></div>
  138. <!-- 表格 -->
  139. <div class="layui-item layui-col-xs12" style="padding:0 16px;">
  140. <table id="contentTable" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
  141. <thead>
  142. <tr>
  143. <th style="text-align: center;width:20%">工作内容编号</th>
  144. <th style="text-align: center;width:20%">工作内容名称</th>
  145. <th style="text-align: center;width:20%">工作内容类型</th>
  146. <th style="text-align: center;width:20%">负责人</th>
  147. <th style="text-align: center;width:20%">创建时间</th>
  148. </tr>
  149. </thead>
  150. <tbody id="projectContentDataList">
  151. <c:forEach items="${projectcontentinfo.projectReportData.projectContentDataList}" var="projectContentData" varStatus="index">
  152. <tr>
  153. <td style="text-align:center;">
  154. ${projectContentData.number}
  155. </td>
  156. <td style="text-align:center;">
  157. ${projectContentData.name}
  158. </td>
  159. <td style="text-align:center;">
  160. ${fns:getContentTypeName(projectContentData.type,"")}
  161. </td>
  162. <td style="text-align:center;">
  163. ${projectContentData.master.name}
  164. </td>
  165. <td style="text-align:center;">
  166. <fmt:formatDate value="${projectContentData.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
  167. </td>
  168. </tr>
  169. </c:forEach>
  170. </tbody>
  171. </table>
  172. </div>
  173. </div>
  174. <div class="form-group layui-row">
  175. <div class="form-group-label"><h2>报告文件</h2></div>
  176. <div class="layui-item layui-col-xs12" style="padding:0 16px;">
  177. <table id="upTable" class="table table-bordered table-condensed details">
  178. <thead>
  179. <tr>
  180. <%-- <th>序号</th>--%>
  181. <th>文件预览</th>
  182. <th>上传人</th>
  183. <th>上传时间</th>
  184. <th width="200px">操作</th>
  185. </tr>
  186. </thead>
  187. <tbody id="file_attachment">
  188. <c:forEach items="${projectcontentinfo.projectReportData.workAttachments}" var = "workClientAttachment" varStatus="status">
  189. <tr>
  190. <%-- <td>${status.index + 1}</td>--%>
  191. <c:choose>
  192. <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
  193. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
  194. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
  195. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
  196. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
  197. <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}"></td>
  198. </c:when>
  199. <c:otherwise>
  200. <c:choose>
  201. <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
  202. <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%','1')">${workClientAttachment.attachmentName}</a></td>
  203. </c:when>
  204. <c:otherwise>
  205. <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%')">${workClientAttachment.attachmentName}</a></td>
  206. </c:otherwise>
  207. </c:choose>
  208. </c:otherwise>
  209. </c:choose>
  210. <td>${workClientAttachment.createBy.name}</td>
  211. <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
  212. <td class="op-td">
  213. <div class="op-btn-box" >
  214. <c:set var="signflag" value="${fns:getSysParam('sign_flag',fns:getUser())}"/>
  215. <c:choose>
  216. <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')
  217. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'doc')
  218. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'docx')
  219. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'xls')
  220. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'xlsx')
  221. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'ppt')
  222. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'pptx')}">
  223. <c:if test="${not empty gzr && gzr eq 'gzr'}">
  224. <a href="${ctx}/isignature/iSignatureDocument/sign?recordId=${workClientAttachment.id}&type=report" class="op-btn op-btn-sign" target="_blank">签章</a>
  225. </c:if>
  226. <a href="javascript:void(0);" onclick="openDialogView('查看电子签章信息', '${ctx}/isignature/iSignatureDocument/form?recordId=${workClientAttachment.id}','95%', '95%')" class="op-btn op-btn-view" ><i class="fa fa-search-plus"></i> 查看</a>
  227. <c:choose>
  228. <c:when test="${signflag == '是'}">
  229. <a href="javascript:location.href='${ctx}/isignature/iSignatureDocument/download?recordId=${workClientAttachment.id}'" class="op-btn op-btn-download"><i class="fa fa-download"></i>&nbsp;下载</a>
  230. </c:when>
  231. <c:otherwise>
  232. <a href="javascript:location.href='${ctx}/workcontractinfo/workContractInfo/downLoadAttach?file='+encodeURIComponent(encodeURIComponent('${workClientAttachment.url}'));" class="op-btn op-btn-download"><i class="fa fa-download"></i>&nbsp;下载</a>
  233. </c:otherwise>
  234. </c:choose>
  235. </c:when>
  236. <c:otherwise>
  237. <a href="javascript:location.href='${ctx}/workcontractinfo/workContractInfo/downLoadAttach?file='+encodeURIComponent(encodeURIComponent('${workClientAttachment.url}'));" class="op-btn op-btn-download"><i class="fa fa-download"></i>&nbsp;下载</a>
  238. </c:otherwise>
  239. </c:choose>
  240. </div>
  241. </td>
  242. </tr>
  243. </c:forEach>
  244. </tbody>
  245. </table>
  246. </div>
  247. </div>
  248. <div class="form-group layui-row">
  249. <div class="form-group-label"><h2>自检</h2></div>
  250. <div class="layui-item layui-col-xs12 form-table-container">
  251. <table id="contentTable2" class="table details table-bordered table-condensed">
  252. <thead>
  253. <tr>
  254. <th style="text-align: center;width:15%">序号</th>
  255. <th style="text-align: center;width:70%">复核内容及评分标准</th>
  256. <th style="text-align: center;width:15%">操作</th>
  257. </tr>
  258. </thead>
  259. <tbody id="projectContentDataList2">
  260. <c:forEach items="${projectcontentinfo.projectReportData.projectReviewList}" var="projectReview" varStatus="index">
  261. <tr>
  262. <td>
  263. <input id="projectReviewList${index.index}_id" name="projectReportData.projectReviewList[${index.index}].id" type="hidden" value="${projectReview.id}"/>
  264. <input id="projectReviewList${index.index}_delFalg" name="projectReportData.projectReviewList[${index.index}].delFalg" type="hidden" value="1"/>
  265. <input id="projectReviewList${index.index}_remarks" name="projectReportData.projectReviewList[${index.index}].remarks" type="hidden" value="${projectReview.remarks}"/>
  266. ${index.index + 1}
  267. </td>
  268. <td>
  269. ${projectReview.standardDetail}
  270. </td>
  271. <td>
  272. <c:choose>
  273. <c:when test="${not empty projectReview.remarks}">
  274. <div class="check-ok">
  275. <i class="fa fa-check"></i>
  276. </div>
  277. </c:when>
  278. <c:otherwise>
  279. <div id = "check1${projectReview.id}">
  280. </div>
  281. <div id = "check2${projectReview.id}" class="check-ok" style="display: none">
  282. <i class="fa fa-check"></i>
  283. </div>
  284. </c:otherwise>
  285. </c:choose>
  286. </td>
  287. </tr>
  288. </c:forEach>
  289. </tbody>
  290. </table>
  291. </div>
  292. </div>
  293. <div class="form-group layui-row page-end"></div>
  294. </div>
  295. </div>
  296. </body>
  297. </html>