projectcontentinfoForm.jsp 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  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. $(function(){
  9. initControlData();
  10. });
  11. function openDialogre(title,url,width,height,target){
  12. if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
  13. width='auto';
  14. height='auto';
  15. }else{//如果是PC端,根据用户设置的width和height显示。
  16. }
  17. top.layer.open({
  18. type: 2,
  19. area: [width, height],
  20. title: title,
  21. skin: 'three-btns',
  22. maxmin: true, //开启最大化最小化按钮
  23. content: url ,
  24. btn: ['提交','关闭'],
  25. btn1: function(index, layero){
  26. var body = top.layer.getChildFrame('body', index);
  27. var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
  28. var inputForm = body.find('#inputForm');
  29. var top_iframe;
  30. if(target){
  31. top_iframe = target;//如果指定了iframe,则在改frame中跳转
  32. }else{
  33. top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
  34. }
  35. inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
  36. if(iframeWin.contentWindow.doSubmit(1) ){
  37. top.layer.close(index);//关闭对话框。
  38. setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
  39. }
  40. },
  41. btn2: function(index){
  42. }
  43. });
  44. }
  45. function openDialogreAudit(title,url,width,height,target){
  46. if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
  47. width='auto';
  48. height='auto';
  49. }else{//如果是PC端,根据用户设置的width和height显示。
  50. }
  51. top.layer.open({
  52. type: 2,
  53. area: [width, height],
  54. title: title,
  55. skin: 'three-btns',
  56. maxmin: true, //开启最大化最小化按钮
  57. content: url ,
  58. btn: ['送审','关闭'],
  59. btn1: function(index, layero){
  60. var body = top.layer.getChildFrame('body', index);
  61. var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
  62. var inputForm = body.find('#inputForm');
  63. var top_iframe;
  64. if(target){
  65. top_iframe = target;//如果指定了iframe,则在改frame中跳转
  66. }else{
  67. top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
  68. }
  69. inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
  70. if(iframeWin.contentWindow.doSubmit(1) ){
  71. top.layer.close(index);//关闭对话框。
  72. setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
  73. }
  74. },
  75. btn2: function(index){
  76. }
  77. });
  78. }
  79. function openDialogres(title,url,width,height,target){
  80. // var length = $("#upTable").find("tr").length;
  81. // if(length>1){
  82. // console.log($("#upTable").find("tr").find("td").html())
  83. // if($("#upTable").find("tr").find("td").eq(1).text() == '暂无数据'){
  84. // console.log("1111")
  85. // }
  86. // layer.msg("最多提交一个报告", {icon: 5});
  87. // return;
  88. // }
  89. $.ajax({
  90. url:"${ctx}/projectcontentinfo/projectReportData/queryCount",
  91. data:{"id":"${projectRecords.id}"},
  92. type:"get",
  93. success:function(data){
  94. if(data.code == '1'){
  95. layer.msg("最多提交一个报告", {icon: 5})
  96. return;
  97. }else {
  98. if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
  99. width='auto';
  100. height='auto';
  101. }else{//如果是PC端,根据用户设置的width和height显示。
  102. }
  103. top.layer.open({
  104. type: 2,
  105. area: [width, height],
  106. title: title,
  107. skin: 'three-btns',
  108. maxmin: true, //开启最大化最小化按钮
  109. content: url ,
  110. btn: ['送审','暂存','关闭'],
  111. btn1: function(index, layero){
  112. var body = top.layer.getChildFrame('body', index);
  113. var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
  114. var inputForm = body.find('#inputForm');
  115. var top_iframe;
  116. if(target){
  117. top_iframe = target;//如果指定了iframe,则在改frame中跳转
  118. }else{
  119. top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
  120. }
  121. inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
  122. if(iframeWin.contentWindow.doSubmit(1) ){
  123. //top.layer.close(index);//关闭对话框。
  124. setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
  125. }
  126. },
  127. btn2:function(index,layero){
  128. var body = top.layer.getChildFrame('body', index);
  129. var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
  130. var inputForm = body.find('#inputForm');
  131. var top_iframe;
  132. if(target){
  133. top_iframe = target;//如果指定了iframe,则在改frame中跳转
  134. }else{
  135. top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
  136. }
  137. inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
  138. if(iframeWin.contentWindow.doSubmit(2) ){
  139. // top.layer.close(index);//关闭对话框。
  140. setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
  141. }
  142. return false;
  143. },
  144. btn3: function(index){
  145. }
  146. });
  147. }
  148. }
  149. });
  150. // if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
  151. // width='auto';
  152. // height='auto';
  153. // }else{//如果是PC端,根据用户设置的width和height显示。
  154. //
  155. // }
  156. // top.layer.open({
  157. // type: 2,
  158. // area: [width, height],
  159. // title: title,
  160. // skin: 'three-btns',
  161. // maxmin: true, //开启最大化最小化按钮
  162. // content: url ,
  163. // btn: ['送审','暂存','关闭'],
  164. // btn1: function(index, layero){
  165. // var body = top.layer.getChildFrame('body', index);
  166. // var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
  167. // var inputForm = body.find('#inputForm');
  168. // var top_iframe;
  169. // if(target){
  170. // top_iframe = target;//如果指定了iframe,则在改frame中跳转
  171. // }else{
  172. // top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
  173. // }
  174. // inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
  175. // if(iframeWin.contentWindow.doSubmit(1) ){
  176. // //top.layer.close(index);//关闭对话框。
  177. // setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
  178. // }
  179. // },
  180. // btn2:function(index,layero){
  181. // var body = top.layer.getChildFrame('body', index);
  182. // var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
  183. // var inputForm = body.find('#inputForm');
  184. // var top_iframe;
  185. // if(target){
  186. // top_iframe = target;//如果指定了iframe,则在改frame中跳转
  187. // }else{
  188. // top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
  189. // }
  190. // inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
  191. // if(iframeWin.contentWindow.doSubmit(2) ){
  192. // // top.layer.close(index);//关闭对话框。
  193. // setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
  194. // }
  195. // return false;
  196. // },
  197. // btn3: function(index){
  198. // }
  199. // });
  200. }
  201. // 确认对话框
  202. function confirmxRefresh(mess, href){
  203. top.layer.confirm(mess, {icon: 3, title:'系统提示'}, function(index){
  204. //do something
  205. if (typeof href == 'function') {
  206. href();
  207. }else{
  208. resetTip(); //loading();
  209. $.ajax({
  210. url:href,
  211. data:$('#loginForm').serialize(),
  212. type:"post",
  213. success:function(data){
  214. if(data.status){
  215. parent.layer.msg('删除成功',{icon:1});
  216. }else {
  217. parent.layer.msg('删除失败',{icon:2});
  218. }
  219. parent.refreshTrees();
  220. location = '${ctx}/projectcontentinfo/projectcontentinfo/list?project.id=${projectRecords.id}';
  221. }
  222. });
  223. }
  224. top.layer.close(index);
  225. });
  226. return false;
  227. }
  228. function openDialogWork1(title,url,width,height,target){
  229. top.layer.open({
  230. type: 2,
  231. area: [width, height],
  232. title: title,
  233. maxmin: true, //开启最大化最小化按钮
  234. content: url ,
  235. btn: ['关闭'],
  236. end:function(index){
  237. top.layer.close(index)
  238. }
  239. });
  240. }
  241. function openDialogWork(title,url,width,height,target){
  242. initControlData();
  243. if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
  244. width='auto';
  245. height='auto';
  246. }else{//如果是PC端,根据用户设置的width和height显示。
  247. }
  248. top.layer.open({
  249. type: 2,
  250. area: [width, height],
  251. title: title,
  252. maxmin: true, //开启最大化最小化按钮
  253. content: url ,
  254. btn: ['提交', '关闭'],
  255. yes: function(index, layero){
  256. var body = top.layer.getChildFrame('body', index);
  257. var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
  258. var inputForm = body.find('#inputForm');
  259. var top_iframe;
  260. if(target){
  261. top_iframe = target;//如果指定了iframe,则在改frame中跳转
  262. }else{
  263. top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
  264. }
  265. inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
  266. if(iframeWin.contentWindow.doSubmit() ){
  267. // top.layer.close(index);//关闭对话框。
  268. setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
  269. }
  270. },
  271. cancel: function(index){
  272. },
  273. end:function(index){
  274. top.layer.close(index)
  275. }
  276. });
  277. }
  278. /**
  279. * 初始化控制数据
  280. */
  281. function initControlData(){
  282. $.ajax({
  283. type:'post',
  284. url:'${ctx}/projectcontroltable/projectControlTable/delControlData',
  285. data:{
  286. "projectId":"${projectRecords.id}"
  287. },
  288. success:function(data){
  289. console.log(data);
  290. }
  291. })
  292. }
  293. </script>
  294. <script>
  295. function initRecordStatus(index,id,dataid,status)
  296. {
  297. var elem = document.getElementById("status_td_" + index);
  298. var st = getAuditState(status);
  299. if(st.action)
  300. var xml = "<span onclick=\"openDialogView('流程追踪', '${ctx}/projectcontentinfo/projectcontentinfo/getProcessOne?id=" + id + "&projectReportData.id="+ dataid + "&type="+status+"','95%','95%')\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
  301. else
  302. var xml = "<span style=\"cursor:default;\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
  303. elem.innerHTML = xml;
  304. }
  305. </script>
  306. </head>
  307. <body>
  308. <div class="single-form">
  309. <div class="container${container}" id="container">
  310. <sys:message content="${message}"/>
  311. <div class="form-group layui-row first lw12">
  312. <div class="form-group-label"><h2>基本信息</h2></div>
  313. <div class="layui-item layui-col-sm6">
  314. <label class="layui-form-label"><span class="require-item">*</span>项目名称:</label>
  315. <div class="layui-input-block">
  316. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectRecords.projectName}"/>
  317. </div>
  318. </div>
  319. <div class="layui-item layui-col-sm6">
  320. <label class="layui-form-label">项目编号:</label>
  321. <div class="layui-input-block">
  322. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectRecords.projectId}"/>
  323. </div>
  324. </div>
  325. <div class="layui-item layui-col-sm6">
  326. <label class="layui-form-label"><span class="require-item">*</span>项目负责人:</label>
  327. <div class="layui-input-block">
  328. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectRecords.leaderNameStr}"/>
  329. </div>
  330. </div>
  331. <div class="layui-item layui-col-sm6">
  332. <label class="layui-form-label">主委托方:</label>
  333. <div class="layui-input-block">
  334. <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectRecords.workContractInfo.client.name}"/>
  335. </div>
  336. </div>
  337. <div class="form-group layui-row">
  338. <div class="form-group-label"><h2>依据性资料明细</h2></div>
  339. <div class="layui-item nav-btns">
  340. <c:if test="${empty change}">
  341. <a href="javascript:void(0)" onclick="openDialogre('新增依据性资料', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=basedData&dictType=${dictType}&id=${id}&parentIds=${parentIds}','95%','95%',false,'inputForm')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i>&nbsp; 新增</a>
  342. </c:if>
  343. </div>
  344. <div class="layui-item layui-col-xs12 form-table-container">
  345. <table id="contentTableBase" class="table table-bordered table-condensed details">
  346. <thead>
  347. <tr>
  348. <th class="hide"></th>
  349. <th >资料编号</th>
  350. <th >资料名称</th>
  351. <th width="100">资料类别</th>
  352. <th width="90">上传人</th>
  353. <th width="90">上传日期</th>
  354. <th width="130">操作</th>
  355. </tr>
  356. </thead>
  357. <tbody id="workBaseDataList">
  358. <c:choose>
  359. <c:when test="${not empty projectBasedDatas}">
  360. <c:forEach items="${projectBasedDatas}" var="projectBasedData" varStatus="idx">
  361. <tr>
  362. <td class="hide">
  363. <input type="hidden" id="workBaseDataList${idx.index}_id" value="${projectBasedData.id}">
  364. </td>
  365. <td title="${projectBasedData.number}" style="text-align:center;">
  366. ${projectBasedData.number}
  367. </td>
  368. <td title="${projectBasedData.name}" style="text-align:center;">
  369. ${projectBasedData.name}
  370. </td>
  371. <td title="${fns:getDictLabel(projectBasedData.type, 'project_document_type', '')}" style="text-align:center;">
  372. ${fns:getDictLabel(projectBasedData.type, 'project_document_type', '')}
  373. </td>
  374. <td title="${projectBasedData.uploadUser.name}" style="text-align:center;">
  375. ${projectBasedData.uploadUser.name}
  376. </td>
  377. <td style="text-align:center;">
  378. <fmt:formatDate value="${projectBasedData.uploadDate}" pattern="yyyy-MM-dd"/>
  379. </td>
  380. <td style="text-align:center;" class="op-td">
  381. <div class="op-btn-box">
  382. <c:if test="${projectBasedData.createBy.id eq fns:getUser().id && empty change}">
  383. <a href="javascript:void(0)" onclick="openDialogre('修改依据性资料', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=basedData&dictType=${dictType}&id=${id}&parentIds=${parentIds}&projectBasedData.id=${projectBasedData.id}','95%','95%',false,'inputForm')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 修改</a>
  384. <a href="${ctx}/projectcontentinfo/projectcontentinfo/delete?infoId=${projectBasedData.id}&id=${id}&type=1" onclick="return confirmxRefresh('确认要删除该依据性资料吗?', this.href)" class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>
  385. </c:if>
  386. </div>
  387. </td>
  388. </tr>
  389. </c:forEach>
  390. </c:when>
  391. <c:otherwise>
  392. <tr>
  393. <td colspan="6">
  394. 暂无数据
  395. </td>
  396. </tr>
  397. </c:otherwise>
  398. </c:choose>
  399. </tbody>
  400. </table>
  401. </div>
  402. </div>
  403. <div class="form-group layui-row">
  404. <div class="form-group-label"><h2>工作内容列表</h2></div>
  405. <div class="layui-item nav-btns">
  406. <c:if test="${empty change}">
  407. <a href="javascript:void(0)" onclick="openDialogWork('新增工作内容', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=content&dictType=${dictType}&id=${id}&parentIds=${parentIds}','95%','95%',false,'inputForm')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i>&nbsp; 新增</a>
  408. </c:if>
  409. </div>
  410. <div class="layui-item layui-col-xs12 form-table-container">
  411. <table id="contentTable2" class="table table-bordered table-condensed details">
  412. <thead>
  413. <tr>
  414. <th>内容编号</th>
  415. <th>内容名称</th>
  416. <th width="80">内容类型</th>
  417. <th width="90">负责人</th>
  418. <th width="90">创建日期</th>
  419. <th width="130">操作</th>
  420. </tr>
  421. </thead>
  422. <tbody>
  423. <c:choose>
  424. <c:when test="${not empty projectContentDatas}">
  425. <c:forEach items="${projectContentDatas}" var="projectContentData" varStatus="idx">
  426. <tr>
  427. <td title="${projectContentData.number}">
  428. ${projectContentData.number}
  429. </td>
  430. <td><a title="${projectContentData.name}" href="#" onclick="openDialogView('查看工作内容详情', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=contentView&dictType=${dictType}&id=${id}&parentIds=${parentIds}&infoId=${projectContentData.id}','95%','95%')">
  431. ${projectContentData.name}</a>
  432. </td>
  433. <td title="${fns:getContentTypeName(projectContentData.type,"")}">
  434. ${fns:getContentTypeName(projectContentData.type,"")}
  435. </td>
  436. <td title="${projectContentData.master.name}">
  437. ${projectContentData.master.name}
  438. </td>
  439. <td>
  440. <fmt:formatDate value="${projectContentData.createDate}" pattern="yyyy-MM-dd"/>
  441. </td>
  442. <td class="op-td">
  443. <div class="op-btn-box">
  444. <c:if test="${fns:getUser().id == projectContentData.createBy.id && empty change}">
  445. <a href="#" onclick="openDialog('修改工作内容详情', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=content&dictType=${dictType}&id=${id}&parentIds=${parentIds}&infoId=${projectContentData.id}','95%','95%')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 修改</a>
  446. <a href="${ctx}/projectcontentinfo/projectcontentinfo/delete?infoId=${projectContentData.id}&id=${id}&type=2" onclick="return confirmxRefresh('确认要删除该工作内容详情吗?', this.href)" class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>
  447. </c:if>
  448. </div>
  449. </td>
  450. </tr>
  451. </c:forEach>
  452. </c:when>
  453. <c:otherwise>
  454. <tr>
  455. <td colspan="6">
  456. 暂无数据
  457. </td>
  458. </tr>
  459. </c:otherwise>
  460. </c:choose>
  461. </tbody>
  462. </table>
  463. </div>
  464. </div>
  465. <div class="form-group layui-row">
  466. <div class="form-group-label"><h2>报告列表</h2></div>
  467. <div class="layui-item nav-btns">
  468. <%--<c:if test="${empty change}">--%>
  469. <%--<a href="javascript:void(0)" onclick="openDialogWork1('领取报告号', '${ctx}/projectreportnum/projectReportNum/list','60%','95%',false,'inputForm')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i>&nbsp; 领取报告号</a>--%>
  470. <%--</c:if>--%>
  471. <c:if test="${empty change}">
  472. <a href="javascript:void(0)" onclick="openDialogres('新增报告文件', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=report&dictType=${dictType}&id=${id}&parentIds=${parentIds}','95%','95%',false,'inputForm')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i>&nbsp; 新增报告</a>
  473. </c:if>
  474. </div>
  475. <div class="layui-item layui-col-xs12 form-table-container">
  476. <table id="upTable" class="table table-bordered table-condensed details">
  477. <thead>
  478. <tr>
  479. <th width="250">报告编号</th>
  480. <th width="250">报告名称</th>
  481. <%--<th width="110">工作内容类型</th>--%>
  482. <%--<th width="80">签章类型</th>--%>
  483. <th width="120">创建日期</th>
  484. <th width="120">状态</th>
  485. <th width="140">操作</th>
  486. </tr>
  487. </thead>
  488. <tbody>
  489. <c:choose>
  490. <c:when test="${not empty projectReportDatas}">
  491. <c:forEach items="${projectReportDatas}" var="projectReportData" varStatus="index">
  492. <tr>
  493. <td><a title="${projectReportData.number}" href="javascript:void(0)" onclick="openDialogView('查看报告详情', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=reportView&dictType=${dictType}&id=${id}&parentIds=${parentIds}&infoId=${projectReportData.id}','95%', '95%')">
  494. ${projectReportData.number}
  495. </a></td>
  496. <td>
  497. <a title="${projectReportData.name}" href="javascript:void(0)" onclick="openDialogView('查看报告详情', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=reportView&dictType=${dictType}&id=${id}&parentIds=${parentIds}&infoId=${projectReportData.id}','95%', '95%')">
  498. ${projectReportData.name}
  499. </a>
  500. </td>
  501. <%--<td title="${fns:getContentTypeName(projectReportData.type,"")}">--%>
  502. <%--${fns:getContentTypeName(projectReportData.type,"")}--%>
  503. <%--</td>--%>
  504. <%--<td title="${projectReportData.reportType}">--%>
  505. <%--${projectReportData.reportType}--%>
  506. <%--</td>--%>
  507. <td>
  508. <fmt:formatDate value="${projectReportData.reportDate}" pattern="yyyy-MM-dd"/>
  509. </td>
  510. <td class="op-td">
  511. <%--<c:choose>--%>
  512. <%--<c:when test="${empty projectReportData.status || projectReportData.status eq 1}">--%>
  513. <%--<div style="text-align: center">--%>
  514. <%--<a href="javascript:void(0)" class="op-btn op-btn-trace" >${fns:getDictLabel(projectReportData.status, 'audit_state', '')}</a>--%>
  515. <%--</div>--%>
  516. <%--</c:when>--%>
  517. <%--<c:otherwise>--%>
  518. <%--<div style="text-align: center">--%>
  519. <%--<a href="javascript:void(0)" onclick="openDialogView('流程追踪', '${ctx}/projectcontentinfo/projectcontentinfo/getProcessOne?id=${id}&projectReportData.id=${projectReportData.id}&type=1','95%','95%')" class="op-btn op-btn-trace" >${fns:getDictLabel(projectReportData.status, 'audit_state', '')}</a>--%>
  520. <%--</div>--%>
  521. <%--</c:otherwise>--%>
  522. <%--</c:choose>--%>
  523. <div style="text-align: center" id="status_td_${index.index+1}">
  524. </div>
  525. <script>
  526. initRecordStatus(${index.index+1},"${id}","${projectReportData.id}","${projectReportData.status}");
  527. </script>
  528. </td>
  529. <td class="op-td">
  530. <div class="op-btn-box">
  531. <c:if test="${projectReportData.createBy.id eq fns:getUser().id && empty change}">
  532. <c:if test="${projectReportData.status eq '1'}">
  533. <a href="javascript:void(0)" onclick="openDialogreAudit('修改报告', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=report&dictType=${dictType}&id=${id}&parentIds=${parentIds}&projectReportData.id=${projectReportData.id}','95%','95%',false,'inputForm')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 修改</a>
  534. <a href="${ctx}/projectcontentinfo/projectcontentinfo/delete?infoId=${projectReportData.id}&id=${id}&type=8" onclick="return confirmxRefresh('确认要删除该工作内容报告吗?', this.href)" class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>
  535. </c:if>
  536. <c:if test="${projectReportData.status eq '3'}">
  537. <a href="javascript:void(0)" onclick="openDialogreAudit('修改报告', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=report&dictType=${dictType}&id=${id}&parentIds=${parentIds}&projectReportData.id=${projectReportData.id}','95%','95%',false,'inputForm')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 修改</a>
  538. <a href="${ctx}/projectcontentinfo/projectcontentinfo/delete?infoId=${projectReportData.id}&id=${id}&type=8" onclick="return confirmxRefresh('确认要删除该工作内容报告吗?', this.href)" class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>
  539. </c:if>
  540. <c:if test="${projectReportData.status eq '2' }">
  541. <a href="${ctx}/projectcontentinfo/projectcontentinfo/cancelInvalidate?infoId=${projectReportData.id}&id=${id}&type=8" onclick="return confirmx('确认要撤回该工作内容报告吗?', this.href)" class="op-btn op-btn-cancel"><i class="glyphicon glyphicon-share-alt"></i> 撤回</a>
  542. </c:if>
  543. <c:if test="${projectReportData.status eq '4'}">
  544. <a href="javascript:void(0)" onclick="openDialogreAudit('修改报告', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=reportModify&dictType=${dictType}&id=${id}&parentIds=${parentIds}&projectReportData.id=${projectReportData.id}','95%','95%',false,'inputForm')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 修改</a>
  545. <a href="${ctx}/projectcontentinfo/projectcontentinfo/delete?infoId=${projectReportData.id}&id=${id}&type=8" onclick="return confirmxRefresh('确认要删除该工作内容报告吗?', this.href)" class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>
  546. </c:if>
  547. <%--<c:if test="${projectReportData.status eq '5'}">--%>
  548. <%--<a href="javascript:void(0)" onclick="openDialogres('报告变更', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=reportChange&dictType=${dictType}&id=${id}&parentIds=${parentIds}&projectReportData.id=${projectReportData.id}','95%','95%',false,'inputForm')" class="op-btn op-btn-revert" ><i class="fa fa-edit"></i> 变更</a>--%>
  549. <%--<a href="javascript:void(0)" onclick="openDialogres('报告作废', '${ctx}/projectcontentinfo/projectcontentinfo/form?view=reportInvalid&dictType=${dictType}&id=${id}&parentIds=${parentIds}&projectReportData.id=${projectReportData.id}','95%','95%',false,'inputForm')" class="op-btn op-btn-invalid"><i class="fa fa-trash-o"></i> 作废</a>--%>
  550. <%--</c:if>--%>
  551. </c:if>
  552. </div>
  553. </td>
  554. </tr>
  555. </c:forEach>
  556. </c:when>
  557. <c:otherwise>
  558. <tr>
  559. <td colspan="7">
  560. 暂无数据
  561. </td>
  562. </tr>
  563. </c:otherwise>
  564. </c:choose>
  565. </tbody>
  566. </table>
  567. </div>
  568. </div>
  569. </div>
  570. </div>
  571. </div>
  572. </body>
  573. </html>