tBActivitiCostRequest-add.jsp 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. <script src="webpage/cn/com/lzt/useractiviti/select_user_tools.js"></script>
  9. <script src="webpage/cn/com/lzt/cost/cost_tools.js"></script>
  10. <script type="text/javascript" src="plug-in/tools/money.js"></script>
  11. <script type="text/javascript">
  12. //编写自定义JS代码
  13. function openDep(){
  14. selectUserDep('项目列表');
  15. }
  16. function openCostType(){
  17. selectCostType();
  18. }
  19. function setChnMoney(money){
  20. var chn = convertCurrency(money);
  21. $('#totalamountCHN').html(chn);
  22. }
  23. $(function(){
  24. $('#expectMoney').bind('input',function(){
  25. var $t = $(this);
  26. var v =$t.val().replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3');
  27. $t.val(v);
  28. setChnMoney(v)
  29. });
  30. setChnMoney($('#expectMoney').val());
  31. })
  32. </script>
  33. </head>
  34. <body>
  35. <%--处理回调--%>
  36. <c:set var="_callback">
  37. <c:choose>
  38. <c:when test="${in_process}">@Overridecallback</c:when>
  39. <c:otherwise>callback</c:otherwise>
  40. </c:choose>
  41. </c:set>
  42. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="tBActivitiCostRequestController.do?doAdd"
  43. callback="${_callback}">
  44. <input id="id" name="id" type="hidden" value="${entity.id }"/>
  45. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  46. <c:if test="${in_process}">
  47. <c:if test="${invalid}"><script>alert('单据已被申请人作废')</script></c:if>
  48. <tr>
  49. <td align="right">
  50. <label class="Validform_label">
  51. 申请人:
  52. </label>
  53. </td>
  54. <td class="value">
  55. ${entity.realName}
  56. </td>
  57. </tr>
  58. </c:if>
  59. <tr>
  60. <td align="right">
  61. <label class="Validform_label">
  62. 所属部门:
  63. </label>
  64. </td>
  65. <td class="value">
  66. <input type="hidden" name="departId" id="departId" value="${empty entity.departId?param.departId:entity.departId}"/>
  67. <input type="hidden" name="depName" id="depName" value="${empty entity.depName?param.depName:entity.depName}"/>
  68. ${empty entity.depName?param.depName:entity.depName}
  69. <%--<c:if test="${(empty param.load && !in_process)|| (in_process&& param.flag==1)}">
  70. <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" icon="icon-select" id="dutiesSearch" onclick="openDep()">选择</a>
  71. </c:if>--%>
  72. <span class="Validform_checktip"></span>
  73. <label class="Validform_label" style="display: none;">所属部门</label>
  74. </td>
  75. </tr>
  76. <tr>
  77. <td align="right">
  78. <label class="Validform_label">
  79. 费用类型:
  80. </label>
  81. </td>
  82. <td class="value">
  83. <input type="hidden" id="costType" name="costType" value="${entity.costType}" />
  84. <input type="text" id="costTypeName" name="costTypeName" value="${entity.costTypeName}" datatype="*" nullmsg="请选择费用类型" readonly="readonly"/>
  85. <c:if test="${(empty param.load && !in_process)}">
  86. <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" icon="icon-select" id="dutiesSearch" onclick="openCostType()">选择</a>
  87. </c:if>
  88. <span class="Validform_checktip"></span>
  89. <label class="Validform_label" style="display: none;">费用类型</label>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td align="right">
  94. <label class="Validform_label">
  95. 预计费用:
  96. </label>
  97. </td>
  98. <td class="value">
  99. <input id="expectMoney" name="expectMoney" type="text" style="width: 150px" class="inputxt"
  100. datatype="d,fix2" value="${entity.expectMoney}"/>
  101. <label id="totalamountCHN" style="font-size: 18px"></label>
  102. <span class="Validform_checktip"></span>
  103. <label class="Validform_label" style="display: none;">预计费用</label>
  104. </td>
  105. </tr>
  106. <c:if test="${in_process}">
  107. <tr>
  108. <td align="right">
  109. <label class="Validform_label">
  110. 此类型本月费用金额:
  111. </label>
  112. </td>
  113. <td class="value">
  114. ${curMonthMoney}
  115. </td>
  116. </tr>
  117. <tr>
  118. <td align="right">
  119. <label class="Validform_label">
  120. 此类型今年费用金额:
  121. </label>
  122. </td>
  123. <td class="value">
  124. ${curYearMoney}
  125. </td>
  126. </tr>
  127. </c:if>
  128. <tr>
  129. <td align="right">
  130. <label class="Validform_label">
  131. <span color="red" class="requiredIcon">*</span>用途摘要:
  132. </label>
  133. </td>
  134. <td class="value">
  135. <input id="summary" name="summary" type="text" style="width: 250px" class="inputxt" datatype="s1-20" value="${entity.summary}"/>
  136. <span class="Validform_checktip"></span>
  137. <label class="Validform_label" style="display: none;">用途摘要</label>
  138. </td>
  139. </tr>
  140. <tr>
  141. <td align="right">
  142. <label class="Validform_label">
  143. 备注:
  144. </label>
  145. </td>
  146. <td class="value" >
  147. <textarea style="width:400px;height: 150px" class="inputxt" rows="6" id="remark" name="remark" >${entity.remark}</textarea>
  148. <span class="Validform_checktip"></span>
  149. <label class="Validform_label" style="display: none;">备注</label>
  150. </td>
  151. </tr>
  152. <c:if test="${entity.bpmStatus!='3'}"> <%--审批通过后不可见--%>
  153. <tr>
  154. <td align="right">
  155. <label class="Validform_label">
  156. 特殊说明:
  157. </label>
  158. </td>
  159. <td class="value" >
  160. <input id="special" name="special" type="text" style="width: 250px" class="inputxt" value="${entity.special}"/>
  161. <span class="Validform_checktip"></span>
  162. <label class="Validform_label" style="display: none;">备注</label>
  163. </td>
  164. </tr>
  165. </c:if>
  166. <tr>
  167. <td align="right">
  168. <label class="Validform_label">
  169. 附件:
  170. </label>
  171. </td>
  172. <td class="value">
  173. <t:webUploader auto="true" busiId="${entity.id}" readOnly="${param.load=='detail' || in_process}"
  174. busiTable="t_b_activiti_cost_request"
  175. bizType="attachment"
  176. extensions="png,jpg,jpeg,bmp"
  177. name="attachment" duplicate="true"
  178. nullMsg="附件不可为空"></t:webUploader>
  179. <span class="Validform_checktip Validform_right" style="display: none;">文件已上传</span>
  180. </td>
  181. </tr>
  182. </table>
  183. <table style="width: 100%">
  184. <tr>
  185. <td style="text-align:center;">
  186. <%@include file="/webpage/cn/com/lzt/useractiviti/view_submit_buttons.jsp"%>
  187. </td>
  188. </tr>
  189. </table>
  190. </t:formvalid>
  191. </body>
  192. <script src = "webpage/cn/com/lzt/cost/activiti/costrequest/tBActivitiCostRequest.js"></script>