|
@@ -0,0 +1,908 @@
|
|
|
|
+<%@ page contentType="text/html;charset=UTF-8" %>
|
|
|
|
+<%@ include file="/webpage/include/taglib.jsp"%>
|
|
|
|
+<html>
|
|
|
|
+<head>
|
|
|
|
+ <title>报销单管理</title>
|
|
|
|
+ <meta name="decorator" content="default"/>
|
|
|
|
+ <script type="text/javascript" src="${ctxStatic}/layui/layui.js"></script>
|
|
|
|
+ <link rel='stylesheet' type="text/css" href="${ctxStatic}/layui/css/layui.css"/>
|
|
|
|
+ <script src="${ctxStatic}/common/html/js/script.js"></script>
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ var validateForm;
|
|
|
|
+ $(document).ready(function() {
|
|
|
|
+
|
|
|
|
+ var reimbursementTypeRadio = '${workReimbursement.reimbursementType}';//后端获取值
|
|
|
|
+ if(undefined == reimbursementTypeRadio || null == reimbursementTypeRadio || '' == reimbursementTypeRadio || reimbursementTypeRadio == "0"){
|
|
|
|
+ $(".count2").hide();
|
|
|
|
+ $(".count1").show();
|
|
|
|
+ }else{
|
|
|
|
+ $(".count1").hide();
|
|
|
|
+ $(".count2").show();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (${workReimbursement.ext == 0}){
|
|
|
|
+ $(".td1").removeClass("hide");
|
|
|
|
+ $(".project_reimbursement_div").show();
|
|
|
|
+ $(".not_project_reimbursement_div").hide();
|
|
|
|
+ }else {
|
|
|
|
+ $(".td1").addClass("hide");
|
|
|
|
+ $(".project_reimbursement_div").hide();
|
|
|
|
+ $(".not_project_reimbursement_div").show();
|
|
|
|
+ }
|
|
|
|
+ if (${workReimbursement.isPublic =='0'}){
|
|
|
|
+ $(".isPublic").addClass("hide");
|
|
|
|
+ }else {
|
|
|
|
+ $(".isPublic").removeClass("hide");
|
|
|
|
+ }
|
|
|
|
+ var state=${isShow};
|
|
|
|
+ if (state =='0'){
|
|
|
|
+ $(".isShow").hide();
|
|
|
|
+ }else {
|
|
|
|
+ $(".isShow").show();
|
|
|
|
+ }
|
|
|
|
+ if($("#backmoney").val()==null||$("#backmoney").val()==''){
|
|
|
|
+ $("#backmoney").val('0');
|
|
|
|
+ }
|
|
|
|
+ validateForm = $("#inputForm").validate({
|
|
|
|
+ submitHandler: function(form){
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ rules:{
|
|
|
|
+ number:{
|
|
|
|
+ required:true
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ messages:{
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function(error, element) {
|
|
|
|
+ $("#messageBox").text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ $("#attachment_btn").click(function () {
|
|
|
|
+ $("#attachment_file").click();
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ var invoiceVATTaxes = $("#reimbursementElectronicInvoiceVATTaxes tr").length;
|
|
|
|
+ var reimbursementElectronicInvoiceVATTaxesMoneys = "";
|
|
|
|
+ var reimbursementElectronicInvoiceVATTaxesTaxAmount = "";
|
|
|
|
+ var reimbursementElectronicInvoiceVATTaxesSumMoney = "";
|
|
|
|
+ for(var i = 0;i < invoiceVATTaxes;i++){
|
|
|
|
+ var moneys = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(5).find("input").eq(0).val();
|
|
|
|
+ var taxAmount = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(6).find("input").eq(0).val();
|
|
|
|
+ var rsumMoney = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(7).find("input").eq(0).val();
|
|
|
|
+
|
|
|
|
+ if (moneys!=undefined && !isNaN(moneys)){
|
|
|
|
+ if(reimbursementElectronicInvoiceVATTaxesMoneys==""){
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesMoneys = parseFloat(moneys).toFixed(2);
|
|
|
|
+ }else {
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesMoneys = (parseFloat(reimbursementElectronicInvoiceVATTaxesMoneys) + parseFloat(moneys)).toFixed(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (taxAmount!=undefined && !isNaN(taxAmount)){
|
|
|
|
+ if(reimbursementElectronicInvoiceVATTaxesTaxAmount==""){
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesTaxAmount = parseFloat(taxAmount).toFixed(2);
|
|
|
|
+ }else {
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesTaxAmount = (parseFloat(reimbursementElectronicInvoiceVATTaxesTaxAmount) + parseFloat(taxAmount)).toFixed(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (rsumMoney!=undefined && !isNaN(rsumMoney)){
|
|
|
|
+ if(reimbursementElectronicInvoiceVATTaxesSumMoney==""){
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesSumMoney = parseFloat(rsumMoney).toFixed(2);
|
|
|
|
+ }else {
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesSumMoney = (parseFloat(reimbursementElectronicInvoiceVATTaxesSumMoney) + parseFloat(rsumMoney)).toFixed(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxesMoneys").val(reimbursementElectronicInvoiceVATTaxesMoneys);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxesTaxAmount").val(reimbursementElectronicInvoiceVATTaxesTaxAmount);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxesSumMoney").val(reimbursementElectronicInvoiceVATTaxesSumMoney);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ </script>
|
|
|
|
+ <style>
|
|
|
|
+ /*超过5个汉字,调整label的长度,以下是配套的*/
|
|
|
|
+ .layui-item .layui-form-label{
|
|
|
|
+ width:90px;
|
|
|
|
+ }
|
|
|
|
+ .form-group .layui-item .layui-input-block,
|
|
|
|
+ .query .layui-input-block {
|
|
|
|
+ margin-left: 116px;
|
|
|
|
+ }
|
|
|
|
+ </style>
|
|
|
|
+</head>
|
|
|
|
+<body>
|
|
|
|
+<div class="single-form">
|
|
|
|
+ <div class="container view-form">
|
|
|
|
+<form:form id="inputForm" modelAttribute="workReimbursement" action="${ctx}/workreimbursement/workReimbursement/save" method="post" class="form-horizontal" >
|
|
|
|
+<form:hidden path="ext"/>
|
|
|
|
+<%--<sys:message content="${message}"/>--%>
|
|
|
|
+ <div class="form-group layui-row first ">
|
|
|
|
+ <div class="form-group-label">
|
|
|
|
+ <div style="float: right">
|
|
|
|
+ <c:if test="${not empty historyShow}">
|
|
|
|
+ <a href="javascript:void(0)" style='background-color: #FFB800' onclick="openDialogView('历史调整信息', '${ctx}/workReimbursementNew/workReimbursementNew/historyReimbursementInfo?id=${workReimbursement.id}','1100px', '35%','','关闭')" class="layui-btn layui-btn-sm" >历史调整信息</a>
|
|
|
|
+ </c:if>
|
|
|
|
+ </div>
|
|
|
|
+ <h2>基础信息</h2>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>报销项:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value = "${workReimbursement.reimbursementTypeStr}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label">报销编号:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <div class="input-group">
|
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="${workReimbursement.number}"/>
|
|
|
|
+ <span class="input-group-btn">
|
|
|
|
+ <label class="form-status"><c:choose><c:when test="${not empty workReimbursement.status}">${fns:getDictLabel(workReimbursement.status, 'audit_state', '')}</c:when><c:otherwise>新添</c:otherwise></c:choose></label>
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>报销人:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:input path="submitterName" readonly="true" cssStyle="background-color: #f1f1f1" htmlEscape="false" id="submitterName" class="form-control layui-input" value = "${workReimbursement.submitterName}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label">所属部门:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value = "${workReimbursement.officeName}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <%--<div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label">银行卡号:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value = "${workReimbursement.bankCard}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label">报销类型:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input readonly="true" htmlEscape="false" class="form-control layui-input"
|
|
|
|
+ value="<c:choose><c:when test="${workReimbursement.ext == 0}">项目报销</c:when><c:otherwise>非项目报销</c:otherwise></c:choose>"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="layui-item layui-col-sm6 td1">
|
|
|
|
+ <label class="layui-form-label">报销项目:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workReimbursement.project.projectName}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label">报销类别:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workReimbursement.typeName}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <%–<div class="layui-item layui-col-sm6 td1">
|
|
|
|
+ <label class="layui-form-label">项目负责人:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workReimbursement.projectMasterName}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>–%>
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label double-line">是否对公报销:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input readonly="true" htmlEscape="false" class="form-control layui-input"
|
|
|
|
+ value="<c:choose><c:when test="${workReimbursement.isPublic == '0'}">否</c:when><c:otherwise>是</c:otherwise></c:choose>"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 isPublic">
|
|
|
|
+ <label class="layui-form-label">公司名称:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workReimbursement.comname}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 isPublic">
|
|
|
|
+ <label class="layui-form-label">开户行:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workReimbursement.bank}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 isPublic">
|
|
|
|
+ <label class="layui-form-label">银行账号:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workReimbursement.bankNo}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label">报销人:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workReimbursement.submitterName}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>--%>
|
|
|
|
+
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label">报销日期:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input readonly="readonly" style="background-color: #f1f1f1" class="form-control layui-input" value="<fmt:formatDate value="${workReimbursement.submitterDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 with-textarea">
|
|
|
|
+ <label class="layui-form-label ">备注:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:textarea path="remarks" cssStyle="background-color: #f1f1f1" readonly="true" htmlEscape="false" rows="4" maxlength="255" value="${workReimbursement.remarks}" class="form-control "/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <%--<div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label"><h2>借款明细</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-xs12 form-table-container" >
|
|
|
|
+ <table id="contentTable3" class="table table-bordered table-condensed can-edit no-bottom-margin">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th width="190px">借款日期</th>
|
|
|
|
+ <th width="190px">借款类型</th>
|
|
|
|
+ <th width="190px">借款项目</th>
|
|
|
|
+ <th width="190px">借款金额</th>
|
|
|
|
+ <th width="180px">未还金额</th>
|
|
|
|
+ <th width="100px">本次还款</th>
|
|
|
|
+ <th width="120px">借款编号</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="reimbursementBackList">
|
|
|
|
+ <c:if test="${not empty workReimbursement.reimbursementBackList}">
|
|
|
|
+ <c:forEach items="${workReimbursement.reimbursementBackList}" var="reimbursementBack" varStatus="index">
|
|
|
|
+ <tr id="reimbursementBackList${index.index}">
|
|
|
|
+ <td class="hide">
|
|
|
|
+ <input id="reimbursementBackList${index.index}_id" name="reimbursementBackList[${index.index}].id" type="hidden" value="${reimbursementBack.id}"/>
|
|
|
|
+ <input id="reimbursementBackList${index.index}_workLoanId" name="reimbursementBackList[${index.index}].workLoan.id" type="hidden" value="${reimbursementBack.workLoan.id}"/>
|
|
|
|
+ <input id="reimbursementBackList${index.index}_delFlag" name="reimbursementBackList[${index.index}].delFlag" type="hidden" value="0"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementBackList${index.index}_1" type="text" maxlength="20" readonly="true" class=" form-control layui-input"
|
|
|
|
+ value="<fmt:formatDate value="${reimbursementBack.workLoan.loanDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
|
+ </input>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementBackList${index.index}_2" readonly="true" type="text" value="${reimbursementBack.workLoan.type}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementBackList${index.index}_3" readonly="true" type="text" value="${reimbursementBack.workLoan.projectRecords.projectName}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementBackList${index.index}_4" readonly="true" type="text" value="${reimbursementBack.workLoan.money}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementBackList${index.index}_5" readonly="true" type="text" value="${reimbursementBack.workLoan.notRepay}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementBackList${index.index}_6" readonly="true" name="reimbursementBackList[${index.index}].money" type="text" value="${reimbursementBack.money}" class="form-control number "/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementBackList${index.index}_7" readonly="true" type="text" value="${reimbursementBack.workLoan.num}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </c:if>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ <table id="contentMoneys1" class="table table-bordered table-condensed can-edit summary">
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="width:190px;vertical-align:middle;text-align: center;"><label><font color="red">*</font>合计</label></td>
|
|
|
|
+ <td width="190px" style="vertical-align:middle;text-align: center;">
|
|
|
|
+ -
|
|
|
|
+ </td >
|
|
|
|
+ <td width="190px" style="vertical-align:middle;text-align: center;">
|
|
|
|
+ -
|
|
|
|
+ </td>
|
|
|
|
+ <td width="190px" style="vertical-align:middle;text-align: center;">
|
|
|
|
+ -
|
|
|
|
+ </td>
|
|
|
|
+ <td width="180px" style="vertical-align:middle;text-align: center;">
|
|
|
|
+ -
|
|
|
|
+ </td>
|
|
|
|
+ <td width="100px" style="vertical-align:middle;text-align: center;">
|
|
|
|
+ <input id="backmoney" value="${workReimbursement.backmoney}" name="backmoney" htmlEscape="false" readonly="true" maxlength="12" class="form-control "/>
|
|
|
|
+ </td>
|
|
|
|
+ <td width="120px" style="vertical-align:middle;text-align: center;">
|
|
|
|
+ -
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>--%>
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label"><h2>报销详情</h2></div>
|
|
|
|
+ <div class="layui-table-body layui-item layui-col-xs12 form-table-container" style="padding:0px">
|
|
|
|
+ <table id="contentTable" class="table table-bordered table-condensed can-edit no-bottom-margin details">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th width="200px">报销人</th>
|
|
|
|
+ <th width="200px">报销部门</th>
|
|
|
|
+ <th width="200px">报销类型</th>
|
|
|
|
+ <th width="200px">报销项目</th>
|
|
|
|
+ <th width="200px">报告号</th>
|
|
|
|
+ <th width="200px">费用(元)</th>
|
|
|
|
+ <th width="200px">收据张数</th>
|
|
|
|
+ <th width="200px">出差天数</th>
|
|
|
|
+ <th width="200px">内容</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="workAccountList">
|
|
|
|
+ <c:if test="${not empty workReimbursement.workAccountList}">
|
|
|
|
+ <c:forEach items="${workReimbursement.workAccountList}" var="workAccount" varStatus="index">
|
|
|
|
+ <c:if test="${not empty workAccount.workAccountAuditList}">
|
|
|
|
+ <c:forEach items="${workAccount.workAccountAuditList}" var="workAccountAudit" varStatus="index">
|
|
|
|
+ <c:if test="${index.index==0}">
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="hide">
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle">
|
|
|
|
+ ${workAccount.reimbursementName}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle">
|
|
|
|
+ ${workAccount.officeId}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle" title="${workAccount.typeName}">
|
|
|
|
+ ${workAccount.typeName}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle" title="${workAccount.project.projectName}">
|
|
|
|
+ ${workAccount.project.projectName}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle" title="${workAccount.projectReportNumber}">
|
|
|
|
+ ${workAccount.projectReportNumber}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle">
|
|
|
|
+ <fmt:formatNumber value="${workAccount.money}" pattern="#,#00.00"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle" title="${workAccount.bills}">
|
|
|
|
+ ${workAccount.bills}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle" title="${workAccount.evectionNumber}">
|
|
|
|
+ ${workAccount.evectionNumber}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle" title="${workAccount.remarks}">
|
|
|
|
+ ${workAccount.remarks}
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ </tr>
|
|
|
|
+ </c:if>
|
|
|
|
+ <c:if test="${index.index!=0}">
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="hide">
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ </tr>
|
|
|
|
+ </c:if>
|
|
|
|
+
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </c:if>
|
|
|
|
+ <c:if test="${empty workAccount.workAccountAuditList}">
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="hide">
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle">
|
|
|
|
+ ${workAccount.reimbursementName}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle">
|
|
|
|
+ ${workAccount.officeId}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle" title="${workAccount.typeName}">
|
|
|
|
+ ${workAccount.typeName}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle" title="${workAccount.project.projectName}">
|
|
|
|
+ ${workAccount.project.projectName}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle" title="${workAccount.projectReportNumber}">
|
|
|
|
+ ${workAccount.projectReportNumber}
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td style="text-align: center; vertical-align: middle">
|
|
|
|
+ <fmt:formatNumber value="${workAccount.money}" pattern="#,#00.00"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle" title="${workAccount.bills}">
|
|
|
|
+ ${workAccount.bills}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle" title="${workAccount.evectionNumber}">
|
|
|
|
+ ${workAccount.evectionNumber}
|
|
|
|
+ </td>
|
|
|
|
+ <td style="text-align: center; vertical-align: middle" title="${workAccount.remarks}">
|
|
|
|
+ ${workAccount.remarks}
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:if>
|
|
|
|
+
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </c:if>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ <table id="contentMoneys" class="table table-bordered table-condensed can-edit no-bottom-margin details">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr style="border: 0px">
|
|
|
|
+ <td width="200px" style="vertical-align:middle;text-align: center;background-color: #ffffff;"><label>总报销费用(元):</label></td>
|
|
|
|
+ <td width="200px" style="background-color: #ffffff;"></td>
|
|
|
|
+ <td width="200px" style="background-color: #ffffff;"></td>
|
|
|
|
+ <td width="200px" style="background-color: #ffffff;"></td>
|
|
|
|
+ <td width="200px" style="background-color: #ffffff;"></td>
|
|
|
|
+ <td width="200px" style="border: 0px;font-weight: bold;text-align: center;background-color: #ffffff;">
|
|
|
|
+ <fmt:formatNumber value="${workReimbursement.money}" pattern="#,#00.00"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td width="200px" style="background-color: #ffffff;"></td>
|
|
|
|
+ <td width="200px" style="background-color: #ffffff;"></td>
|
|
|
|
+ <td width="200px" style="background-color: #ffffff;"></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group layui-row count1">
|
|
|
|
+ <div class="form-group-label"><h2>专用发票信息</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-xs12 form-table-container" >
|
|
|
|
+ <table id="contentTable2" class="table table-bordered table-condensed no-bottom-margin details">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th width="300px">发票代码</th>
|
|
|
|
+ <th width="200px">发票号</th>
|
|
|
|
+ <th width="200px">金额</th>
|
|
|
|
+ <th width="200px">税额</th>
|
|
|
|
+ <th width="200px">价税合计</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="reimbursementVATTaxes">
|
|
|
|
+ <c:if test="${not empty workReimbursement.reimbursementVATTaxes}">
|
|
|
|
+ <c:forEach items="${workReimbursement.reimbursementVATTaxes}" var="reimbursementVATTaxe" varStatus="index">
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="hide">
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ ${reimbursementVATTaxe.invoiceCode}
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td>
|
|
|
|
+ ${reimbursementVATTaxe.invoiceNumber}
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ ${reimbursementVATTaxe.money}
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ ${reimbursementVATTaxe.taxAmount}
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ ${reimbursementVATTaxe.sumMoney}
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </c:if>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row count2">
|
|
|
|
+ <div class="form-group-label"><h2>数电发票信息</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-xs12 form-table-container">
|
|
|
|
+ <table id="contentTable3" class="table table-bordered table-condensed can-edit no-bottom-margin">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th width="200px"><font color="red">*</font>发票类型</th>
|
|
|
|
+ <th width="200px"><font color="red">*</font>发票项目名</th>
|
|
|
|
+ <th width="200px"><font color="red">*</font>发票号</th>
|
|
|
|
+ <th width="200px"><font color="red">*</font>开票日期</th>
|
|
|
|
+ <th width="200px"><font color="red">*</font>开票单位</th>
|
|
|
|
+ <th width="200px"><font color="red">*</font>金额</th>
|
|
|
|
+ <th width="200px"><font color="red">*</font>税额</th>
|
|
|
|
+ <th width="200px"><font color="red">*</font>价税合计</th>
|
|
|
|
+ <th width="200px">备注</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="reimbursementElectronicInvoiceVATTaxes">
|
|
|
|
+ <c:if test="${not empty workReimbursement.reimbursementElectronicInvoiceVATTaxes}">
|
|
|
|
+ <c:forEach items="${workReimbursement.reimbursementElectronicInvoiceVATTaxes}" var="reimbursementElectronicInvoiceVATTaxes" varStatus="index">
|
|
|
|
+ <tr id="reimbursementElectronicInvoiceVATTaxes${index.index}">
|
|
|
|
+ <%--发票类型--%>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceType" onmouseover="this.title=this.value" readOnly="true" maxlength="30" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceType" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceTypeStr}" onmouseover="this.title=this.value" class="form-control "/>
|
|
|
|
+ </td>
|
|
|
|
+ <%--发票项目名--%>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceProjectName" onmouseover="this.title=this.value" readOnly="true" maxlength="500" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceProjectName" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceProjectName}" placeholder="请输入发票项目名" class="form-control "/>
|
|
|
|
+ </td>
|
|
|
|
+ <%--发票号--%>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceNumber" onmouseover="this.title=this.value" readOnly="true" maxlength="30" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceNumber" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceNumber}" onmouseover="this.title=this.value" placeholder="请输入发票号" class="form-control "/>
|
|
|
|
+ </td>
|
|
|
|
+ <%--开票日期--%>
|
|
|
|
+ <td>
|
|
|
|
+ <input lay-verify="date" placeholder="yyyy-MM-dd HH:mm:ss" readonly autocomplete="off" onmouseover="this.title=this.value" readOnly="true" id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceDate" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceDate" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceDateStr}" onmouseover="this.title=this.value" class="form-control datetime"/>
|
|
|
|
+ </td>
|
|
|
|
+ <%--开票单位--%>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceUnit" onmouseover="this.title=this.value" readOnly="true" maxlength="30" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceUnit" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceUnit}" placeholder="请输入开票单位" onmouseover="this.title=this.value" class="form-control "/>
|
|
|
|
+ </td>
|
|
|
|
+ <%--金额--%>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_money" onmouseover="this.title=this.value" readOnly="true" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].money" type="text" maxlength="32" value="${reimbursementElectronicInvoiceVATTaxes.money}" placeholder="请输入金额" onmouseover="this.title=this.value" class="form-control "/>
|
|
|
|
+ </td>
|
|
|
|
+ <%--税额--%>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_taxAmount" onmouseover="this.title=this.value" readOnly="true" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].taxAmount" type="text" maxlength="32" value="${reimbursementElectronicInvoiceVATTaxes.taxAmount}" placeholder="请输入税额" onmouseover="this.title=this.value" class="form-control "/>
|
|
|
|
+ </td>
|
|
|
|
+ <%--合计价税--%>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_sumMoney" onmouseover="this.title=this.value" readOnly="true" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].sumMoney" type="text" maxlength="32" value="${reimbursementElectronicInvoiceVATTaxes.sumMoney}" onmouseover="this.title=this.value" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <%--备注--%>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_remarks" onmouseover="this.title=this.value" readOnly="true" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].remarks" type="text" maxlength="255" value="${reimbursementElectronicInvoiceVATTaxes.remarks}" class="form-control input"/>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </c:if>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ <table id="contentTable4" class="table table-bordered table-condensed can-edit no-bottom-margin">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr >
|
|
|
|
+ <td width="200px" style="vertical-align:middle;text-align: center;"><label>费用汇总(元):</label></td>
|
|
|
|
+ <td width="200px"></td>
|
|
|
|
+ <td width="200px"></td>
|
|
|
|
+ <td width="200px"></td>
|
|
|
|
+ <td width="200px"></td>
|
|
|
|
+ <td width="200px" style="border: 0px">
|
|
|
|
+ <input htmlEscape="false" style="border: 0px; font-weight: bold;" id="reimbursementElectronicInvoiceVATTaxesMoneys" name="reimbursementElectronicInvoiceVATTaxesMoneys" readonly="true" class="form-control layui-input" value=""/>
|
|
|
|
+ </td>
|
|
|
|
+ <td width="200px">
|
|
|
|
+ <input htmlEscape="false" style="border: 0px; font-weight: bold;" id="reimbursementElectronicInvoiceVATTaxesTaxAmount" name="reimbursementElectronicInvoiceVATTaxesTaxAmount" readonly="true" class="form-control layui-input" value=""/>
|
|
|
|
+ </td>
|
|
|
|
+ <td width="200px">
|
|
|
|
+ <input htmlEscape="false" style="border: 0px; font-weight: bold;" id="reimbursementElectronicInvoiceVATTaxesSumMoney" name="reimbursementElectronicInvoiceVATTaxesSumMoney" readonly="true" class="form-control layui-input" value=""/>
|
|
|
|
+ </td>
|
|
|
|
+ <td width="200px"></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row count2">
|
|
|
|
+ <input id="attachment_InvoiceReimbursement_file" type="file" multiple="multiple" style="display: none;" onChange="if(this.value)insertTitleInvoiceReimbursement(this.value);"/>
|
|
|
|
+ <span id="attachment_title"></span>
|
|
|
|
+ <div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
|
|
+ <table id="listAttachment" class="table table-bordered table-condensed details">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <%-- <th>序号</th>--%>
|
|
|
|
+ <th>数电发票文件预览</th>
|
|
|
|
+ <th>上传人</th>
|
|
|
|
+ <th>上传时间</th>
|
|
|
|
+ <th width="200px">操作</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="file_attachment_InvoiceReimbursement">
|
|
|
|
+ <c:forEach items="${workReimbursement.workAttachmentInvoiceReimbursements}" var = "workClientAttachment" varStatus="status">
|
|
|
|
+ <tr>
|
|
|
|
+
|
|
|
|
+ <%-- <td>${status.index + 1}</td>--%>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${workReimbursement.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${workClientAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.temporaryUrl}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${workReimbursement.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${workClientAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.temporaryUrl}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+
|
|
|
|
+ <td>${workClientAttachment.createBy.name}</td>
|
|
|
|
+ <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
|
|
|
|
+ <td class="op-td">
|
|
|
|
+ <div class="op-btn-box" >
|
|
|
|
+ <%--附件下载删除--%>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${workReimbursement.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <a href="${workClientAttachment.temporaryUrl}" target="_blank" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'xml')}">
|
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${workClientAttachment.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <a href="${workClientAttachment.temporaryUrl}" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${workClientAttachment.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ <%--<c:if test="${workClientAttachment.collectFlag != 1}">
|
|
|
|
+ <a href="javascript:void(0)" onclick="collectingAccessory(this,'${ctx}/projectAccessory/projectAccessory/saveCollectAccessory','${workClientAttachment.url}','${workClientAttachment.createBy.id}','${workClientAttachment.fileSize}')" class="op-btn op-btn-delete" style="background-color: #FFB800"><i class="layui-icon layui-icon-rate"></i> 收藏</a>
|
|
|
|
+ </c:if>--%>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label"><h2>附件</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-xs12 form-table-container" >
|
|
|
|
+ <table id="upTable" class="table table-bordered table-condensed details">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <%-- <th>序号</th>--%>
|
|
|
|
+ <th>文件预览</th>
|
|
|
|
+ <th>上传人</th>
|
|
|
|
+ <th>上传时间</th>
|
|
|
|
+ <th width="150px">操作</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="file_attachment">
|
|
|
|
+ <c:forEach items="${workReimbursement.workAttachments}" var = "workClientAttachment" varStatus="status">
|
|
|
|
+ <tr>
|
|
|
|
+ <%-- <td>${status.index + 1}</td>--%>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${workReimbursement.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${workClientAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.temporaryUrl}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+
|
|
|
|
+ <td>${workClientAttachment.createBy.name}</td>
|
|
|
|
+ <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
|
|
|
|
+ <td class="op-td">
|
|
|
|
+ <div class="op-btn-box" >
|
|
|
|
+ <%--附件下载删除--%>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${workReimbursement.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <a href="${workClientAttachment.temporaryUrl}" target="_blank" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'xml')}">
|
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${workClientAttachment.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <a href="${workClientAttachment.temporaryUrl}" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${workClientAttachment.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ <c:if test="${workClientAttachment.collectFlag != 1}">
|
|
|
|
+ <a href="javascript:void(0)" onclick="collectingAccessory(this,'${ctx}/projectAccessory/projectAccessory/saveCollectAccessory','${workClientAttachment.url}','${workClientAttachment.createBy.id}','${workClientAttachment.fileSize}')" class="op-btn op-btn-delete" style="background-color: #FFB800"><i class="layui-icon layui-icon-rate"></i> 收藏</a>
|
|
|
|
+ </c:if>
|
|
|
|
+ <%-- <c:if test="${workClientAttachment.createBy.id eq fns:getUser().id}">
|
|
|
|
+ <a href="javascript:void(0)" onclick="deleteFileFromAliyun(this,'${ctx}/sys/workattachment/deleteFileFromAliyun?url=${workClientAttachment.url}&id=${workClientAttachment.id}&type=2','addFile')" class="op-btn op-btn-delete" ><i class="fa fa-trash"></i> 删除</a>
|
|
|
|
+ </c:if>--%>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label"><h2>${projectNotifyType}审批流程</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-xs12 form-table-container" >
|
|
|
|
+ <act:flowChart procInsId="${workReimbursement.act.procInsId}"/>
|
|
|
|
+ <act:histoicFlow procInsId="${workReimbursement.act.procInsId}" />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group layui-row page-end"></div>
|
|
|
|
+</form:form>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+</body>
|
|
|
|
+</html>
|