reportInvalid.jsp 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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. var validateForm;
  9. function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
  10. if(validateForm.form()){
  11. if(obj == 1){
  12. $("#inputForm").attr("action","${ctx}/projectcontentinfo/projectcontentinfo/saveInvalidAudit?view=reportInvalid&projectReportData.reviewStandard=${reviewStandard}");
  13. }else{
  14. $("#inputForm").attr("action","${ctx}/projectcontentinfo/projectcontentinfo/saveInvalid?view=reportInvalid&projectReportData.reviewStandard=${reviewStandard}");
  15. }
  16. $("#inputForm").submit();
  17. return true;
  18. }
  19. return false;
  20. }
  21. $(document).ready(function() {
  22. validateForm = $("#inputForm").validate({
  23. submitHandler: function(form){
  24. loading('正在提交,请稍等...');
  25. form.submit();
  26. },
  27. errorContainer: "#messageBox",
  28. errorPlacement: function(error, element) {
  29. $("#messageBox").text("输入有误,请先更正。");
  30. if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
  31. error.appendTo(element.parent().parent());
  32. } else {
  33. error.insertAfter(element);
  34. }
  35. }
  36. });
  37. laydate.render({
  38. elem: '#reportDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
  39. event: 'focus', //响应事件。如果没有传入event,则按照默认的click
  40. type : 'date'
  41. });
  42. $("#attachment_btn").click(function () {
  43. $("#attachment_file").click();
  44. });
  45. });
  46. function getFee() {
  47. var rf = $("#reviewFee").val();
  48. var af = $("#approvalFee").val();
  49. if(rf != ''&& af !=''){
  50. var hf = parseInt(rf)-parseInt(af);
  51. var rate = Math.round(parseInt(hf) / parseInt(rf) * 100) / 100 * 100
  52. $("#verifyFee").val(hf);
  53. $("#verifyRate").val(rate);
  54. }
  55. if(af !=''){
  56. $("#consultFee").val(af)
  57. }
  58. }
  59. </script>
  60. </head>
  61. <body>
  62. <div class="single-form">
  63. <div class="container${container} view-form">
  64. <form:form id="inputForm" modelAttribute="projectcontentinfo" method="post" class="form-horizontal">
  65. <form:hidden path="id"/>
  66. <form:hidden path="parentIds"/>
  67. <form:hidden path="condition"/>
  68. <form:hidden path="projectReportData.id"/>
  69. <form:hidden path="projectReportData.createBy.id"/>
  70. <sys:message content="${message}"/>
  71. <div class="form-group layui-row first lw12">
  72. <div class="form-group-label"><h2>基本信息</h2></div>
  73. <div class="layui-item layui-col-sm6">
  74. <label class="layui-form-label"><span class="require-item">*</span>报告名称:</label>
  75. <div class="layui-input-block with-icon">
  76. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectcontentinfo.projectReportData.name}"/>
  77. </div>
  78. </div>
  79. <div class="layui-item layui-col-sm6">
  80. <label class="layui-form-label"><span class="require-item">*</span>报告编号:</label>
  81. <div class="layui-input-block">
  82. <div class="input-group">
  83. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectcontentinfo.projectReportData.number}"/>
  84. <span class="input-group-btn">
  85. <label class="form-status">
  86. <c:choose>
  87. <c:when test="${not empty projectcontentinfo.projectReportData.status}">${fns:getDictLabel(projectcontentinfo.projectReportData.status, 'audit_state', '')}
  88. </c:when>
  89. <c:otherwise>新添</c:otherwise>
  90. </c:choose></label>
  91. </span>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="layui-item layui-col-sm6">
  96. <label class="layui-form-label"><span class="require-item">*</span>工作内容类型:</label>
  97. <div class="layui-input-block">
  98. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${fns:getContentTypeName(projectcontentinfo.projectReportData.type,"")}"/>
  99. </div>
  100. </div>
  101. <div class="layui-item layui-col-sm6">
  102. <label class="layui-form-label">成果类型:</label>
  103. <div class="layui-input-block">
  104. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${fns:getMainDictLabel(projectcontentinfo.projectReportData.achievementType, 'achievement_type', '')}"/>
  105. </div>
  106. </div>
  107. <div class="layui-item layui-col-sm6">
  108. <label class="layui-form-label">复核标准:</label>
  109. <div class="layui-input-block">
  110. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${fns:getMainDictLabel(projectcontentinfo.projectReportData.reviewStandard, 'reviewStandard', '')}"/>
  111. </div>
  112. </div>
  113. <div class="layui-item layui-col-sm6">
  114. <label class="layui-form-label">报告日期:</label>
  115. <div class="layui-input-block">
  116. <input id="provideDate" name="projectReportData.provideDate" type="text" htmlEscape="false" readonly="true" class="laydate-icondate form-control layer-date required layui-input laydate-icon"
  117. value="<fmt:formatDate value="${projectcontentinfo.projectReportData.reportDate}" pattern="yyyy-MM-dd"/>"/>
  118. </div>
  119. </div>
  120. <%--<div class="layui-item layui-col-sm6">
  121. <label class="layui-form-label">签字造价师一:</label>
  122. <div class="layui-input-block">
  123. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectcontentinfo.projectReportData.signCostOne.name}"/>
  124. </div>
  125. </div>
  126. <div class="layui-item layui-col-sm6">
  127. <label class="layui-form-label">签字造价师二:</label>
  128. <div class="layui-input-block">
  129. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectcontentinfo.projectReportData.signCostTwo.name}"/>
  130. </div>
  131. </div>--%>
  132. <div class="layui-item layui-col-sm6">
  133. <label class="layui-form-label">负责人:</label>
  134. <div class="layui-input-block">
  135. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectcontentinfo.projectReportData.master.name}"/>
  136. </div>
  137. </div>
  138. <div class="layui-item layui-col-sm6">
  139. <label class="layui-form-label">归档状态:</label>
  140. <div class="layui-input-block">
  141. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${fns:getDictLabel(projectcontentinfo.projectReportData.fileStatus, 'record_state', '')}"/>
  142. </div>
  143. </div>
  144. <div class="layui-item layui-col-sm6">
  145. <label class="layui-form-label"><span class="require-item">*</span>作废原因:</label>
  146. <div class="layui-input-block">
  147. <form:textarea path="projectReportData.remarks" htmlEscape="false" rows="3" class="form-control required"/>
  148. </div>
  149. </div>
  150. </div>
  151. <div class="form-group layui-row first lw12">
  152. <div class="form-group-label"><h2>项目信息</h2></div>
  153. <div class="layui-item layui-col-sm6">
  154. <label class="layui-form-label">送审价(元):</label>
  155. <div class="layui-input-block with-icon">
  156. <form:input id="reviewFee" path="projectReportData.reviewFee" htmlEscape="false" class="form-control layui-input number" onchange="getFee()" readonly="true"/>
  157. </div>
  158. </div>
  159. <div class="layui-item layui-col-sm6">
  160. <label class="layui-form-label">审定价(元):</label>
  161. <div class="layui-input-block with-icon">
  162. <form:input id="approvalFee" path="projectReportData.approvalFee" htmlEscape="false" class="form-control layui-input number" onchange="getFee()" readonly="true"/>
  163. </div>
  164. </div>
  165. <div class="layui-item layui-col-sm6">
  166. <label class="layui-form-label">合同价(元):</label>
  167. <div class="layui-input-block with-icon">
  168. <form:input id="contractFee" path="projectReportData.contractFee" htmlEscape="false" class="form-control layui-input number" readonly="true"/>
  169. </div>
  170. </div>
  171. <div class="layui-item layui-col-sm6">
  172. <label class="layui-form-label">核增核减额(元):</label>
  173. <div class="layui-input-block with-icon">
  174. <form:input id="verifyFee" path="projectReportData.verifyFee" htmlEscape="false" class="form-control layui-input number" readonly="true"/>
  175. </div>
  176. </div>
  177. <div class="layui-item layui-col-sm6">
  178. <label class="layui-form-label">核增核减率(%):</label>
  179. <div class="layui-input-block with-icon">
  180. <form:input id="verifyRate" path="projectReportData.verifyRate" htmlEscape="false" class="form-control layui-input number" readonly="true"/>
  181. </div>
  182. </div>
  183. <div class="layui-item layui-col-sm6">
  184. <label class="layui-form-label">咨询标的额(元):</label>
  185. <div class="layui-input-block with-icon">
  186. <form:input id="consultFee" path="projectReportData.consultFee" htmlEscape="false" class="form-control layui-input number" readonly="true"/>
  187. </div>
  188. </div>
  189. <div class="layui-item layui-col-sm6">
  190. <label class="layui-form-label">土建造价(元):</label>
  191. <div class="layui-input-block with-icon">
  192. <form:input id="buildingFee" path="projectReportData.buildingFee" htmlEscape="false" class="form-control layui-input number" readonly="true"/>
  193. </div>
  194. </div>
  195. <div class="layui-item layui-col-sm6">
  196. <label class="layui-form-label">安装造价(元):</label>
  197. <div class="layui-input-block with-icon">
  198. <form:input id="installFee" path="projectReportData.installFee" htmlEscape="false" class="form-control layui-input number" readonly="true"/>
  199. </div>
  200. </div>
  201. </div>
  202. <div class="form-group layui-row first lw12">
  203. <div class="form-group-label"><h2>依据性资料明细</h2></div>
  204. <div class="layui-item layui-col-xs12 form-table-container">
  205. <table id="contentTableBase" class="table table-bordered table-condensed details">
  206. <thead>
  207. <tr>
  208. <th class="hide"></th>
  209. <th >资料编号</th>
  210. <th >资料名称</th>
  211. <th >资料类别</th>
  212. <th >上传人</th>
  213. <th >上传日期</th>
  214. </tr>
  215. </thead>
  216. <tbody id="workBaseDataList">
  217. <c:forEach items="${projectcontentinfo.projectReportData.projectBasedDataList}" var="projectBasedData" varStatus="idx">
  218. <tr>
  219. <td class="hide">
  220. <input type="hidden" id="workBaseDataList${idx.index}_id" value="${projectBasedData.id}">
  221. </td>
  222. <td style="text-align:center;">
  223. ${projectBasedData.number}
  224. </td>
  225. <td style="text-align:center;">
  226. ${projectBasedData.name}
  227. </td>
  228. <td style="text-align:center;">
  229. ${fns:getDictLabel(projectBasedData.type, 'project_document_type', '')}
  230. </td>
  231. <td style="text-align:center;">
  232. ${projectBasedData.uploadUser.name}
  233. </td>
  234. <td style="text-align:center;">
  235. <fmt:formatDate value="${projectBasedData.uploadDate}" pattern="yyyy-MM-dd"/>
  236. </td>
  237. </tr>
  238. </c:forEach>
  239. </tbody>
  240. </table>
  241. </div>
  242. </div>
  243. <div class="form-group layui-row first lw12">
  244. <div class="form-group-label"><h2>依据工作内容</h2></div>
  245. <!-- 表格 -->
  246. <div class="layui-item layui-col-xs12" style="padding:0 16px;">
  247. <table id="contentTable" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
  248. <thead>
  249. <tr>
  250. <th style="text-align: center;width:20%">工作内容编号</th>
  251. <th style="text-align: center;width:20%">工作内容名称</th>
  252. <th style="text-align: center;width:20%">工作内容类型</th>
  253. <th style="text-align: center;width:20%">负责人</th>
  254. <th style="text-align: center;width:20%">创建时间</th>
  255. </tr>
  256. </thead>
  257. <tbody id="projectContentDataList">
  258. <c:forEach items="${projectcontentinfo.projectReportData.projectContentDataList}" var="projectContentData" varStatus="index">
  259. <tr>
  260. <td>
  261. ${projectContentData.number}
  262. </td>
  263. <td>
  264. ${projectContentData.name}
  265. </td>
  266. <td>
  267. ${fns:getContentTypeName(projectContentData.type,"")}
  268. </td>
  269. <td>
  270. ${projectContentData.master.name}
  271. </td>
  272. <td>
  273. <fmt:formatDate value="${projectContentData.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
  274. </td>
  275. </tr>
  276. </c:forEach>
  277. </tbody>
  278. </table>
  279. </div>
  280. </div>
  281. <div class="form-group layui-row">
  282. <div class="form-group-label"><h2>报告文件</h2></div>
  283. <div class="layui-item layui-col-xs12" style="padding:0 16px;">
  284. <table id="upTable" class="table table-bordered table-condensed details">
  285. <thead>
  286. <tr>
  287. <%-- <th>序号</th>--%>
  288. <th>文件预览</th>
  289. <th>上传人</th>
  290. <th>上传时间</th>
  291. <th width="150px">操作</th>
  292. </tr>
  293. </thead>
  294. <tbody id="file_attachment">
  295. <c:forEach items="${projectcontentinfo.projectReportData.workAttachments}" var = "workClientAttachment" varStatus="status">
  296. <tr>
  297. <%-- <td>${status.index + 1}</td>--%>
  298. <c:choose>
  299. <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
  300. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
  301. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
  302. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
  303. or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
  304. <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}"></td>
  305. </c:when>
  306. <c:otherwise>
  307. <c:choose>
  308. <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
  309. <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%','1')">${workClientAttachment.attachmentName}</a></td>
  310. </c:when>
  311. <c:otherwise>
  312. <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%')">${workClientAttachment.attachmentName}</a></td>
  313. </c:otherwise>
  314. </c:choose>
  315. </c:otherwise>
  316. </c:choose>
  317. <td>${workClientAttachment.createBy.name}</td>
  318. <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
  319. <td class="op-td">
  320. <div class="op-btn-box" >
  321. <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>
  322. </div>
  323. </td>
  324. </tr>
  325. </c:forEach>
  326. </tbody>
  327. </table>
  328. </div>
  329. </div>
  330. <div class="form-group layui-row">
  331. <div class="form-group-label"><h2>自检</h2></div>
  332. <div class="layui-item layui-col-xs12 form-table-container">
  333. <table id="contentTable2" class="table details table-bordered table-condensed">
  334. <thead>
  335. <tr>
  336. <th style="text-align: center;width:15%">序号</th>
  337. <th style="text-align: center;width:70%">复核内容及评分标准</th>
  338. <th style="text-align: center;width:15%">操作</th>
  339. </tr>
  340. </thead>
  341. <tbody id="projectContentDataList2">
  342. <c:forEach items="${projectcontentinfo.projectReportData.projectReviewList}" var="projectReview" varStatus="index">
  343. <tr>
  344. <td>
  345. <input id="projectReviewList${index.index}_id" name="projectReportData.projectReviewList[${index.index}].id" type="hidden" value="${projectReview.id}"/>
  346. <input id="projectReviewList${index.index}_delFalg" name="projectReportData.projectReviewList[${index.index}].delFalg" type="hidden" value="1"/>
  347. <input id="projectReviewList${index.index}_remarks" name="projectReportData.projectReviewList[${index.index}].remarks" type="hidden" value="${projectReview.remarks}"/>
  348. ${index.index + 1}
  349. </td>
  350. <td>
  351. ${projectReview.standardDetail}
  352. </td>
  353. <td>
  354. <c:choose>
  355. <c:when test="${not empty projectReview.remarks}">
  356. <div class="check-ok">
  357. <i class="fa fa-check"></i>
  358. </div>
  359. </c:when>
  360. <c:otherwise>
  361. <div id = "check1${projectReview.id}">
  362. </div>
  363. <div id = "check2${projectReview.id}" class="check-ok" style="display: none">
  364. <i class="fa fa-check"></i>
  365. </div>
  366. </c:otherwise>
  367. </c:choose>
  368. </td>
  369. </tr>
  370. </c:forEach>
  371. </tbody>
  372. </table>
  373. </div>
  374. </div>
  375. <div class="form-group layui-row page-end"></div>
  376. </form:form>
  377. </div>
  378. </div>
  379. </body>
  380. </html>