green_view.jsp 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>软件技术类签报</title>
  7. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  8. <link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
  9. <script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.js"></script>
  10. <script src="plug-in/layer/layer.js"></script>
  11. </head>
  12. <body>
  13. <c:set var="update">
  14. <c:if test="${param.flag==1}">false</c:if>
  15. <c:if test="${param.flag!=1}">false</c:if>
  16. </c:set>
  17. <t:formvalid formid="formobj" tipSweep="true" dialog="false" usePlugin="password" layout="table" action="tBusActivitiGreenController.do?doUpdate" tiptype="1"
  18. callback="callback" beforeSubmit="beforeSubmit">
  19. <input id="id" name="id" type="hidden" value="${entity.id }"/>
  20. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  21. <tr>
  22. <td align="right">
  23. <label class="Validform_label">
  24. 申请人:
  25. </label>
  26. </td>
  27. <td class="value" colspan="2" >
  28. ${entity.createName}
  29. </td>
  30. </tr>
  31. <tr>
  32. <td align="right">
  33. <label class="Validform_label">
  34. 申请部门:
  35. </label>
  36. </td>
  37. <td class="value" colspan="2" >
  38. ${entity.depName}
  39. </td>
  40. </tr>
  41. <tr>
  42. <td align="right">
  43. <label class="Validform_label">
  44. 当前状态:
  45. </label>
  46. </td>
  47. <td class="value" colspan="2" >
  48. <textarea style="width:600px;height: 80px;" class="inputxt" rows="6" <c:if test="${!update}">disabled="disabled"</c:if>
  49. id="current" maxlength="500" name="current" datatype="*" placeholder="请输入签报内容"
  50. >${ entity.current}</textarea>
  51. <label class="Validform_label" style="display: none;">签报内容</label>
  52. </td>
  53. </tr>
  54. <tr>
  55. <td align="right">
  56. <label class="Validform_label">
  57. 期望效果:
  58. </label>
  59. </td>
  60. <td class="value" colspan="2" >
  61. <textarea style="width:600px;height: 80px;" class="inputxt" rows="6" <c:if test="${!update}">disabled="disabled"</c:if>
  62. id="expect" maxlength="500" name="expect" datatype="*" placeholder="请输入签报内容"
  63. >${ entity.expect}</textarea>
  64. <label class="Validform_label" style="display: none;">期望效果</label>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td align="right">
  69. <label class="Validform_label">
  70. 现状附件:
  71. </label>
  72. </td>
  73. <td class="value" colspan="2" >
  74. <t:webUploader auto="true" busiId="${entity.id}" readOnly="true"
  75. busiTable="t_b_activiti_green"
  76. bizType="attachment"
  77. extensions="png,jpg,jpeg,bmp,pdf,doc,docx,xls,xlsx"
  78. name="attachment" duplicate="true" fileNumLimit="10"
  79. nullMsg="附件不可为空"></t:webUploader>
  80. </td>
  81. </tr>
  82. <c:if test="${param.flag ==10}"><%--分配任务--%>
  83. <tr>
  84. <td colspan="3">
  85. <div>
  86. <t:tabs id="detail_tab" iframe="false" tabPosition="top" fit="false">
  87. <t:tab href="tBusActivitiGreenController.do?tBusActivitiGreenDetailList&id=${entity.id}" icon="icon-search" title="指派任务" id="tBusUserActivitiGreenDetail"></t:tab>
  88. </t:tabs>
  89. </div>
  90. </td>
  91. </tr>
  92. </c:if>
  93. <tr>
  94. <td style="text-align:center;" colspan="2">
  95. <input type="submit" id ="btn_sub" value="" style="display: none;"/>
  96. <c:forEach items="${transitionList}" var="trans">
  97. <li style="list-style:none;"><button class="btn btn-default" style="width:80px; height:35px;border-radius:5px;background:#3275C6;border:0 none;margin-right:5px;color:white;" type="button" id="${trans.nextnode}"
  98. onclick="popWriteOption1('<t:mutiLang langKey="common.task.operate"/>',800,300,'${trans.Transition }','${taskId}',${nextCodeCount},'${trans.nextnode}','${trans.nextnodeName}')" >${trans.Transition }<tton>
  99. </c:forEach>
  100. </td>
  101. </tr>
  102. </table>
  103. </t:formvalid>
  104. </body>
  105. <script src = "webpage/cn/com/lzt/leave/leave.js"></script>
  106. <script type="text/javascript">
  107. var flag = '${param.flag}';
  108. var update = '${update}';
  109. var popArauments = {};
  110. function callback(data){
  111. if(data.success){
  112. if(update=='true') {
  113. dealProcFlowNoOption(popArauments[0], popArauments[4], popArauments[6], popArauments[5], false);
  114. }else{
  115. popWriteOption(popArauments[0],popArauments[1],popArauments[2],popArauments[3],popArauments[4],popArauments[5],popArauments[6]);
  116. setTimeout(function(){
  117. var loading = $(top.document).find('#infoTable-loading');
  118. loading.hide();
  119. loading.prev().show();//ajax请求后 会把弹窗隐藏,手动显示
  120. },100);}
  121. }
  122. else{
  123. layer.alert(data.msg);
  124. }
  125. }
  126. function beforeSubmit(frm) {
  127. if(update!='true'){
  128. var checkbox = frm.find('input:checkbox:checked');
  129. if(checkbox.length==0){
  130. layer.alert('请指派任务');
  131. return false;
  132. }
  133. }
  134. return true;
  135. }
  136. function callbackTable(msg){//不能删,审批后关闭页面调用
  137. window.parent.callbackTable(msg);
  138. }
  139. function popWriteOption1(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId){
  140. if(update=='true'||(flag=='10' && buttonTitle!='驳回')) {
  141. popArauments = arguments;
  142. $("#btn_sub").click();
  143. // popWriteOption(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId);
  144. // popWriteOption(popArauments[0],popArauments[1],popArauments[2],popArauments[3],popArauments[4],popArauments[5],popArauments[6]);
  145. }else{
  146. popWriteOption(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId);
  147. }
  148. }
  149. </script>