| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- <%@ 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" src="webpage/cn/com/lzt/budget/data/js/budget_control.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)
- var fv = parseFloat(v);
- if(!isNaN(fv)){
- var leftValue=budgetValue.expectValue-budgetValue.actualValue-fv;
- budgetValue.leftValue= leftValue;
- if(leftValue<0) leftValue=0;
- $('#leftValue').html(leftValue);
- }
- });
- setChnMoney($('#expectMoney').val());
- $('#budgetMonth').bind('change',getActualValue);
- $('#measureId').bind('change',getActualValue);
- getActualValue();
- })
- function getActualValue() {
- var yearMonth = $('#budgetMonth').val();
- var measureId = $('#measureId').val();
- if(!yearMonth || !measureId){
- return;
- }
- var departId = $('#departId').val();
- var busType = 'cost_request_other';
- getExpectActualValue(busType,yearMonth,departId,measureId,function(expectValue,actualValue,leftValue){
- $('#actualValue').html(actualValue);
- $('#leftValue').html(leftValue);
- $('#expectMoney').trigger('input');
- });
- }
- </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="activitiCostRequestOtherController.do?doAdd"
- callback="${_callback}" beforeSubmit="checkOverBudget">
- <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}">
- <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">
- <span color="red" class="requiredIcon">*</span>计入预算月份:
- </label>
- </td>
- <td class="value">
- <input id="budgetMonth" name="budgetMonth" type="text" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM',onpicked:getActualValue})" value="${entity.budgetMonth}" datatype="*"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">计入预算月份</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>预算指标:
- </label>
- </td>
- <td class="value">
- <%--
- A01A06 公共事业费 A01A16 保险费 A01A17 不可预见费用 A01A18 应急活动费 A01A03差旅费
- --%>
- <t:dictSelect field="measureId" id="measureId" type="list" dictTable="t_b_budget_measure" dictField="id" dictText="name" defaultVal="${entity.measureId}" datatype="*"
- dictCondition=" where code like 'A01A06_%' or code='A01A17' or code like 'A01A18_%' or code='A01A16A01'
- or code='A01A16A02' or code='A01A16A03' or code='A01A16A04' or code='A01A16A05' or code='A01A16A06'
- or code='A01A16A07' or code='A01A16A08' or code like 'A01A03_%' order by code" />
- <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">
- <span id="actualValue"></span>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 剩余预算额度:
- </label>
- </td>
- <td class="value">
- <span id="leftValue"></span>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>预计费用:
- </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>
- <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_other"
- 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>
|