| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>费用申请签报</title>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <script src="webpage/cn/com/lzt/useractiviti/select_user_tools.js"></script>
- <script src="webpage/cn/com/lzt/cost/cost_tools.js"></script>
- <script type="text/javascript" src="plug-in/tools/money.js"></script>
- <script type="text/javascript">
- //编写自定义JS代码
- function openDep(){
- selectUserDep('项目列表');
- }
- function openCostType(){
- selectCostType();
- }
- function setChnMoney(money){
- var chn = convertCurrency(money);
- $('#totalamountCHN').html(chn);
- }
- $(function(){
- $('#expectMoney').bind('input',function(){
- var $t = $(this);
- var v =$t.val().replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3');
- $t.val(v);
- setChnMoney(v)
- });
- setChnMoney($('#expectMoney').val());
- })
- </script>
- </head>
- <body>
- <%--处理回调--%>
- <c:set var="_callback">
- <c:choose>
- <c:when test="${in_process}">@Overridecallback</c:when>
- <c:otherwise>callback</c:otherwise>
- </c:choose>
- </c:set>
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="tBActivitiCostRequestController.do?doAdd"
- callback="${_callback}">
- <input id="id" name="id" type="hidden" value="${entity.id }"/>
- <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
- <c:if test="${in_process}">
- <c:if test="${invalid}"><script>alert('单据已被申请人作废')</script></c:if>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 申请人:
- </label>
- </td>
- <td class="value">
- ${entity.realName}
- </td>
- </tr>
- </c:if>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 所属部门:
- </label>
- </td>
- <td class="value">
- <input type="hidden" name="departId" id="departId" value="${empty entity.departId?param.departId:entity.departId}"/>
- <input type="hidden" name="depName" id="depName" value="${empty entity.depName?param.depName:entity.depName}"/>
- ${empty entity.depName?param.depName:entity.depName}
- <%--<c:if test="${(empty param.load && !in_process)|| (in_process&& param.flag==1)}">
- <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" icon="icon-select" id="dutiesSearch" onclick="openDep()">选择</a>
- </c:if>--%>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">所属部门</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 费用类型:
- </label>
- </td>
- <td class="value">
- <input type="hidden" id="costType" name="costType" value="${entity.costType}" />
- <input type="text" id="costTypeName" name="costTypeName" value="${entity.costTypeName}" datatype="*" nullmsg="请选择费用类型" readonly="readonly"/>
- <c:if test="${(empty param.load && !in_process)}">
- <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" icon="icon-select" id="dutiesSearch" onclick="openCostType()">选择</a>
- </c:if>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">费用类型</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 预计费用:
- </label>
- </td>
- <td class="value">
- <input id="expectMoney" name="expectMoney" type="text" style="width: 150px" class="inputxt"
- datatype="d,fix2" value="${entity.expectMoney}"/>
- <label id="totalamountCHN" style="font-size: 18px"></label>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">预计费用</label>
- </td>
- </tr>
- <c:if test="${in_process}">
- <tr>
- <td align="right">
- <label class="Validform_label">
- 此类型本月费用金额:
- </label>
- </td>
- <td class="value">
- ${curMonthMoney}
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 此类型今年费用金额:
- </label>
- </td>
- <td class="value">
- ${curYearMoney}
- </td>
- </tr>
- </c:if>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>用途摘要:
- </label>
- </td>
- <td class="value">
- <input id="summary" name="summary" type="text" style="width: 250px" class="inputxt" datatype="s1-20" value="${entity.summary}"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">用途摘要</label>
- </td>
- </tr>
-
-
- <tr>
- <td align="right">
- <label class="Validform_label">
- 备注:
- </label>
- </td>
- <td class="value" >
- <textarea style="width:400px;height: 150px" class="inputxt" rows="6" id="remark" name="remark" >${entity.remark}</textarea>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">备注</label>
- </td>
- </tr>
- <c:if test="${entity.bpmStatus!='3'}"> <%--审批通过后不可见--%>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 特殊说明:
- </label>
- </td>
- <td class="value" >
- <input id="special" name="special" type="text" style="width: 250px" class="inputxt" value="${entity.special}"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">备注</label>
- </td>
- </tr>
- </c:if>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 附件:
- </label>
- </td>
- <td class="value">
- <t:webUploader auto="true" busiId="${entity.id}" readOnly="${param.load=='detail' || in_process}"
- busiTable="t_b_activiti_cost_request"
- bizType="attachment"
- extensions="png,jpg,jpeg,bmp"
- name="attachment" duplicate="true"
- nullMsg="附件不可为空"></t:webUploader>
- <span class="Validform_checktip Validform_right" style="display: none;">文件已上传</span>
- </td>
- </tr>
- </table>
- <table style="width: 100%">
- <tr>
- <td style="text-align:center;">
- <%@include file="/webpage/cn/com/lzt/useractiviti/view_submit_buttons.jsp"%>
- </td>
- </tr>
- </table>
- </t:formvalid>
- </body>
- <script src = "webpage/cn/com/lzt/cost/activiti/costrequest/tBActivitiCostRequest.js"></script>
|