|
@@ -0,0 +1,398 @@
|
|
|
|
+<%@ page contentType="text/html;charset=UTF-8" %>
|
|
|
|
+<%@ include file="/webpage/include/taglib.jsp"%>
|
|
|
|
+<html>
|
|
|
|
+<head>
|
|
|
|
+ <title>发票管理</title>
|
|
|
|
+ <meta name="decorator" content="default"/>
|
|
|
|
+ <style>
|
|
|
|
+ td input{
|
|
|
|
+ margin-left:0px !important;
|
|
|
|
+ height: 42px !important;
|
|
|
|
+ }
|
|
|
|
+ #receiptTable td{
|
|
|
|
+ padding-left: 0px;
|
|
|
|
+ padding-right: 0px;
|
|
|
|
+ }
|
|
|
|
+ </style>
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ var validateForm;
|
|
|
|
+ function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
|
|
+ if(validateForm.form()){
|
|
|
|
+ var length = $("#workReceiptList tr").length;
|
|
|
|
+ var invoiceMoney = $("#invoiceMoney").val();
|
|
|
|
+ if(length==0){
|
|
|
|
+ parent.layer.msg('请录入收款信息',{icon:5});
|
|
|
|
+ return false;
|
|
|
|
+ }else{
|
|
|
|
+ var moneys = 0;
|
|
|
|
+ for(var i=0; i<length; i++) {
|
|
|
|
+ //获取每一行的汇款金额
|
|
|
|
+ var money = parseFloat(workReceiptList.rows[i].cells[2].getElementsByTagName("INPUT")[0].value);
|
|
|
|
+ //计算所有汇款综合
|
|
|
|
+ moneys = moneys+money;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(obj == 2){
|
|
|
|
+ if(moneys<invoiceMoney){
|
|
|
|
+ layer.confirm('收款金额小于发票金额,确定收款吗?', {
|
|
|
|
+ btn: ['确定', '关闭'],
|
|
|
|
+ btn1: function(index, layero){
|
|
|
|
+ $("#inputForm").attr("action","${ctx}/workinvoice/workInvoice/saveAffirmReceipt");
|
|
|
|
+ $("#inputForm").submit();
|
|
|
|
+ top.layer.close(index);//关闭对话框。
|
|
|
|
+ parent.layer.close(index);//关闭对话框。
|
|
|
|
+ },btn2: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ if(moneys > invoiceMoney){
|
|
|
|
+ parent.layer.msg('收款金额不能大于开票金额',{icon:5});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ $("#inputForm").attr("action","${ctx}/workinvoice/workInvoice/saveReceipt");
|
|
|
|
+ $("#inputForm").submit();
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $(document).ready(function() {
|
|
|
|
+ $("#name").focus();
|
|
|
|
+ validateForm = $("#inputForm").validate({
|
|
|
|
+ submitHandler: function(form){
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ 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);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ laydate.render({
|
|
|
|
+ elem: '#receiptDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
|
+ event: 'focus', //响应事件。如果没有传入event,则按照默认的click
|
|
|
|
+ type : 'date'
|
|
|
|
+ , trigger: 'click'
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ function addRow(list, idx, tpl, row){
|
|
|
|
+ var idx1 = $("#workReceiptList tr").length;
|
|
|
|
+ bornTemplete(list, idx, tpl, row, idx1);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function bornTemplete(list, idx, tpl, row, idx1){
|
|
|
|
+ $(list).append(Mustache.render(tpl, {
|
|
|
|
+ idx: idx, delBtn: true, row: row,
|
|
|
|
+ order:idx1 + 1
|
|
|
|
+ }));
|
|
|
|
+ $(list+idx).find("select").each(function(){
|
|
|
|
+ $(this).val($(this).attr("data-value"));
|
|
|
|
+ });
|
|
|
|
+ $(list+idx).find("input[type='checkbox'], input[type='radio']").each(function(){
|
|
|
|
+ var ss = $(this).attr("data-value").split(',');
|
|
|
|
+ for (var i=0; i<ss.length; i++){
|
|
|
|
+ if($(this).val() == ss[i]){
|
|
|
|
+ $(this).attr("checked","checked");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ laydate.render({
|
|
|
|
+ elem : (list+idx+"_receiptDate"),
|
|
|
|
+ event: 'focus',
|
|
|
|
+ type : 'date'
|
|
|
|
+ , trigger: 'click',
|
|
|
|
+ trigger: 'click'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ function delRow(obj, prefix){
|
|
|
|
+ var id = $(prefix+"_id");
|
|
|
|
+ var delFlag = $(prefix+"_delFlag");
|
|
|
|
+ if (id.val() == ""){
|
|
|
|
+ $(obj).parent().parent().remove();
|
|
|
|
+ }else if(delFlag.val() == "0"){
|
|
|
|
+ delFlag.val("1");
|
|
|
|
+ $(obj).html("÷").attr("title", "撤回删除");
|
|
|
|
+ $(obj).parent().parent().addClass("error");
|
|
|
|
+ $(obj).parent().parent().addClass("hide");
|
|
|
|
+ }else if(delFlag.val() == "1"){
|
|
|
|
+ delFlag.val("0");
|
|
|
|
+ $(obj).html("×").attr("title", "删除");
|
|
|
|
+ $(obj).parent().parent().removeClass("error");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ </script>
|
|
|
|
+</head>
|
|
|
|
+<body >
|
|
|
|
+<div class="single-form view-form">
|
|
|
|
+ <div class="container">
|
|
|
|
+ <form:form id="inputForm" modelAttribute="workInvoice" action="${ctx}/workinvoice/workInvoice/saveReceipt" method="post" class="form-horizontal">
|
|
|
|
+ <form:hidden path="id"/>
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row first lw14">
|
|
|
|
+ <div class="form-group-label"><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" readonly="true" class="form-control layui-input" value="${workInvoice.project.projectName}"/>
|
|
|
|
+ </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">
|
|
|
|
+ <div class="input-group">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workInvoice.number}"/>
|
|
|
|
+ <span class="input-group-btn">
|
|
|
|
+ <label class="form-status"><c:choose><c:when test="${ empty workInvoice.invoiceState}">新添</c:when><c:otherwise>${fns:getDictLabel(workInvoice.invoiceState, 'audit_state','')}</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">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workInvoice.project.workContractInfo.name}"/>
|
|
|
|
+ </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">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workInvoice.project.projectId}"/>
|
|
|
|
+ </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">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workInvoice.project.workContractInfo.client.name}"/>
|
|
|
|
+ </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="${workInvoice.project.reportData.number}"/>
|
|
|
|
+ </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">--%>
|
|
|
|
+ <%--<input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workInvoice.office.name}"/>--%>
|
|
|
|
+ <%--</div>--%>
|
|
|
|
+ <%--</div>--%>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group layui-row first lw14">
|
|
|
|
+ <div class="form-group-label"><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" readonly="true" class="form-control layui-input" value="<c:choose><c:when test="${workInvoice.ext eq '0'}">本公司开票 </c:when><c:when test="${workInvoice.ext eq '1'}">上级公司开票</c:when></c:choose>"/>
|
|
|
|
+ </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">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="<c:choose><c:when test="${workInvoice.invoiceType eq '1'}">专票</c:when><c:when test="${workInvoice.invoiceType eq '2'}">普票</c:when></c:choose>"/>
|
|
|
|
+ </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">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${workInvoice.client.name}"/>
|
|
|
|
+ </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="${workInvoice.orUnicode}"/>
|
|
|
|
+ </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="${workInvoice.address}"/>
|
|
|
|
+ </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="${workInvoice.telephone}"/>
|
|
|
|
+ </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="${workInvoice.bank}"/>
|
|
|
|
+ </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="${workInvoice.bankNumber}"/>
|
|
|
|
+ </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">
|
|
|
|
+ <input htmlEscape="false" readonly="true" id="invoiceMoney" class="form-control layui-input" value="<fmt:formatNumber value="${workInvoice.money}" pattern="#,#00.00"/>"/>
|
|
|
|
+ </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="${workInvoice.content}"/>
|
|
|
|
+ </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="${workInvoice.drawerName}"/>
|
|
|
|
+ </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="<fmt:formatDate value="${workInvoice.invoiceDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm12">
|
|
|
|
+ <label class="layui-form-label">领票时间:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input" value="<fmt:formatDate value="${workInvoice.takeDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
|
+ </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="contentTable" class="table table-bordered table-condensed details">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th><span class="require-item">*</span>发票代码</th>
|
|
|
|
+ <th><span class="require-item">*</span>发票号</th>
|
|
|
|
+ <th><span class="require-item">*</span>开票金额</th>
|
|
|
|
+ <th><span class="require-item">*</span>税率</th>
|
|
|
|
+ <th><span class="require-item">*</span>金额</th>
|
|
|
|
+ <th><span class="require-item">*</span>税额</th>
|
|
|
|
+ <th><span class="require-item">*</span>累计登记金额</th>
|
|
|
|
+ <th><span class="require-item">*</span>发票状态</th><%--正常--%>
|
|
|
|
+ <th><span class="require-item">*</span>被退标记</th>
|
|
|
|
+ <%--<th><span class="require-item">*</span>被退票号</th>
|
|
|
|
+ <th><span class="require-item">*</span>开票日期</th>--%>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="workAccountList">
|
|
|
|
+ <c:if test="${not empty workInvoice.workAccountList}">
|
|
|
|
+ <c:forEach items="${workInvoice.workAccountList}" var="workAccount" varStatus="index">
|
|
|
|
+ <tr id="workAccountList${index.index}">
|
|
|
|
+ <td title="${workAccount.code}">
|
|
|
|
+ ${workAccount.code}
|
|
|
|
+ </td>
|
|
|
|
+ <td title="${workAccount.number}">
|
|
|
|
+ ${workAccount.number}
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td title="<fmt:formatNumber value="${workAccount.totalMoney}" pattern="#,#00.00"/>">
|
|
|
|
+ <fmt:formatNumber value="${workAccount.totalMoney}" pattern="#,#00.00"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td title="${workAccount.tax}">
|
|
|
|
+ ${workAccount.tax}
|
|
|
|
+ </td>
|
|
|
|
+ <td title="<fmt:formatNumber value="${workAccount.taxMoney}" pattern="#,#00.00"/>">
|
|
|
|
+ <fmt:formatNumber value="${workAccount.taxMoney}" pattern="#,#00.00"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td title="<fmt:formatNumber value="${workAccount.taxRate}" pattern="#,#00.00"/>">
|
|
|
|
+ <fmt:formatNumber value="${workAccount.taxRate}" pattern="#,#00.00"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td title="<fmt:formatNumber value="${workAccount.incomeMoney}" pattern="#,#00.00"/>">
|
|
|
|
+ <fmt:formatNumber value="${workAccount.incomeMoney}" pattern="#,#00.00"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td title="${workAccount.state}">
|
|
|
|
+ ${workAccount.state}
|
|
|
|
+ </td>
|
|
|
|
+ <td title="${workAccount.backSign}">
|
|
|
|
+ ${workAccount.backSign}
|
|
|
|
+ </td>
|
|
|
|
+ <%--<td title="${workAccount.backNumber}">
|
|
|
|
+ ${workAccount.backNumber}
|
|
|
|
+ </td>
|
|
|
|
+ <td title="<fmt:formatDate value="${workInvoice.invoiceDate}" pattern="yyyy-MM-dd"/>">
|
|
|
|
+ <fmt:formatDate value="${workInvoice.invoiceDate}" pattern="yyyy-MM-dd"/>
|
|
|
|
+ </td>--%>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </c:if>
|
|
|
|
+ </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">
|
|
|
|
+ <div class="layui-item nav-btns" style="padding-left:0px;">
|
|
|
|
+ <a class="nav-btn nav-btn-add"
|
|
|
|
+ onclick="addRow('#workReceiptList', workClientBankRowIdx, workClientBankTpl);workClientBankRowIdx = workClientBankRowIdx + 1;"
|
|
|
|
+ title="新增"><i class="fa fa-plus"></i> 新增</a>
|
|
|
|
+ </div>
|
|
|
|
+ <table id="receiptTable" class="table table-bordered table-condensed details">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th><span class="require-item">*</span>汇款单位</th>
|
|
|
|
+ <th><span class="require-item">*</span>汇款金额</th>
|
|
|
|
+ <th width="160px"><span class="require-item">*</span>汇款时间</th>
|
|
|
|
+ <th width="100px">操作</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="workReceiptList">
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ <script type="text/template" id="workClientBankTpl">//<!--
|
|
|
|
+ <tr id="workReceiptList{{idx}}">
|
|
|
|
+ <td class="hide">
|
|
|
|
+ <input id="workReceiptList{{idx}}_id" name="workReceiptList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
|
|
|
|
+ <input id="workReceiptList{{idx}}_delFlag" name="workReceiptList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="workReceiptList{{idx}}_companyName" name="workReceiptList[{{idx}}].companyName" value="{{row.companyName}}" style="text-align: center" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="workReceiptList{{idx}}_money" name="workReceiptList[{{idx}}].money" value="{{row.money}}" style="text-align: center" class="form-control number required"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td>
|
|
|
|
+ <input lay-verify="date" readonly="true" placeholder="yyyy-MM-dd" autocomplete="off" id="workReceiptList{{idx}}_receiptDate" name="workReceiptList[{{idx}}].receiptDate" type="text" value="{{row.receiptDate}}" style="text-align: center" class="form-control required datetime"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td class="text-center op-td" width="10">
|
|
|
|
+ {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workReceiptList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
|
|
|
|
+ </td>
|
|
|
|
+ </tr>//-->
|
|
|
|
+ </script>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group layui-row page-end"></div>
|
|
|
|
+ </form:form>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+<script type="text/javascript">
|
|
|
|
+ var workClientBankRowIdx = 0,
|
|
|
|
+ workClientBankTpl = $("#workClientBankTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
|
|
|
|
+ $(document).ready(function () {
|
|
|
|
+ var dataBank = ${fns:toJson(workInvoice.workReceiptList)};
|
|
|
|
+ for (var i = 0; i < dataBank.length; i++) {
|
|
|
|
+ addRow('#workReceiptList', workClientBankRowIdx, workClientBankTpl, dataBank[i]);
|
|
|
|
+ workClientBankRowIdx = workClientBankRowIdx + 1;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+</script>
|
|
|
|
+</body>
|
|
|
|
+</html>
|