|
@@ -4,6 +4,11 @@
|
|
|
<head>
|
|
|
<title>发票管理</title>
|
|
|
<meta name="decorator" content="default"/>
|
|
|
+ <style>
|
|
|
+ #workInvoiceProjectRelationList tr td{
|
|
|
+ padding: 0px;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
<script type="text/javascript">
|
|
|
var validateForm;
|
|
|
function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
@@ -334,7 +339,7 @@
|
|
|
<body>
|
|
|
<div class="single-form">
|
|
|
<div class="container">
|
|
|
- <form:form id="inputForm" modelAttribute="workInvoice" action="${ctx}/workinvoiceAll/workInvoiceAll/saveAudit" method="post" class="form-horizontal">
|
|
|
+ <form:form id="inputForm" modelAttribute="workInvoice" action="${ctx}/workinvoiceAll/workInvoiceAll/adminModify" method="post" class="form-horizontal">
|
|
|
<form:hidden path="id"/>
|
|
|
<form:hidden path="invoiceDate"/>
|
|
|
<form:hidden path="home"/>
|
|
@@ -348,160 +353,158 @@
|
|
|
<%--<form:hidden path="invoiceNumber"/>--%>
|
|
|
|
|
|
<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 with-icon">
|
|
|
- <input type="hidden" value="" id ="ids">
|
|
|
- <sys:gridselectcallprojectt url="${ctx}/workinvoiceAll/workInvoiceAll/selectproject" id="project" name="project.id" value="${workInvoice.project.id}" title="选择所属项目" labelName="workInvoice.project.projectName"
|
|
|
- labelValue="${workInvoice.project.projectName}" cssClass="form-control required layui-input" fieldLabels="项目" fieldKeys="projectName" searchLabel="项目名称" searchKey="projectName" ></sys:gridselectcallprojectt>
|
|
|
- </div>
|
|
|
+ <div class="form-group-label"><h2>发票项目信息</h2></div>
|
|
|
+ <div class="layui-table-body layui-item layui-col-xs12 form-table-container" >
|
|
|
+ <table id="contentTables" class="table table-bordered table-condensed can-edit no-bottom-margin details">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th width="200px"><font color="red">*</font>项目名称</th>
|
|
|
+ <th width="200px">合同名称</th>
|
|
|
+ <th width="200px">项目编号</th>
|
|
|
+ <th width="200px">委托方</th>
|
|
|
+ <th width="200px">报告号</th>
|
|
|
+ <%-- <th width="100px">操作</th>--%>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="workInvoiceProjectRelationList">
|
|
|
+ <c:forEach items="${workInvoice.workInvoiceProjectRelationList}" var="list">
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <a onclick="openDialogView('查看项目', '${ctx}/ruralProject/ruralProjectView/view?id=${list.projectId}','95%', '95%')">
|
|
|
+ <input type="text" value="${list.projectName}" readonly="readonly" class="form-control"/></a>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" value="${list.workContractName}" readonly="readonly" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td style="text-align:center;">
|
|
|
+ <input type="text" value="${list.projectNum}" readonly="readonly" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" value="${list.clientName}" readonly="readonly" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" value="${list.reportDataNum}" readonly="readonly" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <%-- <td class="text-center op-td" >--%>
|
|
|
+ <%-- {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workInvoiceProjectRelationList{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}--%>
|
|
|
+ <%-- </td>--%>
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
</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">发票申请编号:</label>
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>发票类型:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <div class="input-group">
|
|
|
- <form:input path="number" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
- <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>
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" 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">合同名称:</label>
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>实际开票单位:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input id ="cInfoName" path="project.workContractInfo.name" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="${workInvoice.client.name}"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label">项目编号:</label>
|
|
|
+ <label class="layui-form-label">纳税人识别号:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input id ="pNumber" path="project.projectId" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="${workInvoice.orUnicode}"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label">委托方:</label>
|
|
|
+ <label class="layui-form-label">地址:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input id ="cName" path="project.workContractInfo.client.name" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="${workInvoice.address}"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label">报告号:</label>
|
|
|
+ <label class="layui-form-label">电话:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input id ="prdNumber" path="project.reportData.number" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="${workInvoice.telephone}"/>
|
|
|
</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 id ="officeName" path="office.name" htmlEscape="false" readonly="true" class="form-control layui-input"/>--%>
|
|
|
- <%--<form:hidden path="office.id" id ="officeId" />--%>
|
|
|
- <%--</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">
|
|
|
- <c:choose>
|
|
|
- <c:when test="${workInvoice.invoiceState == 4}">
|
|
|
- <c:choose>
|
|
|
- <c:when test="${workInvoice.ext ==0}">
|
|
|
- <input value = "本公司开票" readonly="true" class="form-control layui-input"/>
|
|
|
- </c:when>
|
|
|
- <c:otherwise>
|
|
|
- <input value = "上级公司开票" readonly="true" class="form-control layui-input"/>
|
|
|
- </c:otherwise>
|
|
|
- </c:choose>
|
|
|
- </c:when>
|
|
|
- <c:otherwise>
|
|
|
- <input type="radio" class="i-checks" name="ext" checked id="ext" value="0">
|
|
|
- <label for="ext">本公司开票</label>
|
|
|
- <input type="radio" class="i-checks" name="ext" id="ext1" value="1">
|
|
|
- <label for="ext1">上级公司开票</label>
|
|
|
- </c:otherwise>
|
|
|
- </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 type="radio" class="i-checks" name="invoiceType" checked id="invoiceType1" value="1">
|
|
|
- <label for="invoiceType1">专票</label>
|
|
|
- <input type="radio" class="i-checks" name="invoiceType" id="invoiceType" value="2">
|
|
|
- <label for="invoiceType">普票</label>
|
|
|
+ <label class="layui-form-label">开户银行:</label>
|
|
|
+ <div class="layui-input-block ">
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="${workInvoice.bank}"/>
|
|
|
</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 with-icon">
|
|
|
- <sys:gridselect url="${ctx}/workinvoiceAll/workInvoiceAll/selectclient" id="client" name="client.id" value="${workInvoice.client.id}" title="选择开票单位" labelName="workInvoice.client.name"
|
|
|
- labelValue="${workInvoice.client.name}" cssClass="form-control required layui-input" fieldLabels="单位" fieldKeys="name" searchLabel="客户名称" searchKey="name" ></sys:gridselect>
|
|
|
- </td>
|
|
|
+ <label class="layui-form-label">银行账号:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" 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 invoicetype">*</span>纳税人识别号:</label>
|
|
|
+ <label class="layui-form-label">收款类型:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input id="orUnicode" path="orUnicode" htmlEscape="false" class="form-control isUscCode layui-input"/>
|
|
|
+ <input id="chargeType" htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="${workInvoice.chargeType}" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label"><span class="require-item invoicetype">*</span>地址:</label>
|
|
|
+ <label class="layui-form-label">开票内容:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input id="address" path="address" htmlEscape="false" class="form-control layui-input"/>
|
|
|
+ <input id="billingContent" htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="${workInvoice.billingContent}" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label"><span class="require-item invoicetype">*</span>电话:</label>
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>开票金额(元):</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input id="telephone" path="telephone" htmlEscape="false" class="form-control isTel layui-input"/>
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" 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"><span class="require-item invoicetype">*</span>开户银行:</label>
|
|
|
+ <label class="layui-form-label">开票内容要求:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input id ="bank" path="bank" htmlEscape="false" class="form-control layui-input"/>
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="${workInvoice.content}"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label"><span class="require-item invoicetype">*</span>银行账号:</label>
|
|
|
+ <label class="layui-form-label">开票人:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input id="bankNumber" path="bankNumber" htmlEscape="false" class="form-control number layui-input"/>
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="${workInvoice.drawerName}"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-item layui-col-sm12">
|
|
|
- <label class="layui-form-label"><span class="require-item">*</span>开票金额(元):</label>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">开票时间:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <input name="money" htmlEscape="false" value="<fmt:formatNumber value="${workInvoice.money}" pattern="#.00#"/>" class="form-control required number layui-input"/>
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="<fmt:formatDate value="${workInvoice.invoiceDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-item layui-col-sm12 with-textarea">
|
|
|
- <label class="layui-form-label">开票内容要求:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <form:textarea path="content" id="contractTypeDoc" htmlEscape="false" rows="4" class="form-control"/>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">对账人:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <input type="text" readonly="true" value="${workInvoice.accountCheckingUserName}" class="form-control layui-input" style="background-color: #f1f1f1" >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label">开票人:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <form:input id="" path="" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
+ <label class="layui-form-label">对账地区:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <input type="text" readonly="true" value="${workInvoice.area.name}" class="form-control layui-input" style="background-color: #f1f1f1" >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label">开票时间:</label>
|
|
|
+ <label class="layui-form-label">领票时间:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input id="" path="" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
+ <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="<fmt:formatDate value="${workInvoice.takeDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label">领票时间:</label>
|
|
|
+ <div class="layui-item layui-col-sm12 with-textarea">
|
|
|
+ <label class="layui-form-label double-line">备注:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input id="" path="" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
+ <form:textarea path="remarks" readonly="true" htmlEscape="false" rows="4" class="form-control" style="background-color: #f1f1f1" />
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
<div class="form-group layui-row">
|
|
|
<div class="form-group-label"><h2>发票明细</h2></div>
|
|
@@ -509,14 +512,13 @@
|
|
|
<table id="contentTable" class="table table-bordered table-condensed can-edit">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
- <th><span class="require-item">*</span>发票代码</th>
|
|
|
+ <th>发票代码</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 width="150px">操作</th>
|
|
|
+ <th>税率</th>
|
|
|
+ <th>金额</th>
|
|
|
+ <th>税额</th>
|
|
|
+ <th>累计登记金额</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody id="workAccountList">
|
|
@@ -529,7 +531,7 @@
|
|
|
<input id="workAccountList{{idx}}_delFlag" name="workAccountList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input id="workAccountList{{idx}}_code" name="workAccountList[{{idx}}].code" type="text" value="{{row.code}}" class="form-control required"/>
|
|
|
+ <input id="workAccountList{{idx}}_code" name="workAccountList[{{idx}}].code" type="text" value="{{row.code}}" class="form-control"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
<input id="workAccountList{{idx}}_number" name="workAccountList[{{idx}}].number" type="text" value="{{row.number}}" class="form-control required"/>
|
|
@@ -539,30 +541,26 @@
|
|
|
</td>
|
|
|
<td>
|
|
|
<div class="input-group">
|
|
|
- <input id="workAccountList{{idx}}_tax" onblur="setTaxMoney(this)" name="workAccountList[{{idx}}].tax" type="text" value="{{row.tax}}" class="form-control number required"/><span class="input-group-addon">%</span>
|
|
|
+ <input id="workAccountList{{idx}}_tax" onblur="setTaxMoney(this)" name="workAccountList[{{idx}}].tax" type="text" value="{{row.tax}}" class="form-control number"/><span class="input-group-addon">%</span>
|
|
|
</div>
|
|
|
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input id="workAccountList{{idx}}_taxMoney" name="workAccountList[{{idx}}].taxMoney" type="text" value="{{row.taxMoney}}" class="form-control required"/>
|
|
|
+ <input id="workAccountList{{idx}}_taxMoney" name="workAccountList[{{idx}}].taxMoney" type="text" value="{{row.taxMoney}}" class="form-control"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input id="workAccountList{{idx}}_taxRate" name="workAccountList[{{idx}}].taxRate" type="text" value="{{row.taxRate}}" class="form-control required"/>
|
|
|
+ <input id="workAccountList{{idx}}_taxRate" name="workAccountList[{{idx}}].taxRate" type="text" value="{{row.taxRate}}" class="form-control"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input id="workAccountList{{idx}}_incomeMoney" name="workAccountList[{{idx}}].incomeMoney" type="text" value="0" readonly="true" class="form-control required"/>
|
|
|
+ <input id="workAccountList{{idx}}_incomeMoney" name="workAccountList[{{idx}}].incomeMoney" type="text" value="0" readonly="true" class="form-control"/>
|
|
|
</td>
|
|
|
|
|
|
<input id="workAccountList{{idx}}_state" name="workAccountList[{{idx}}].state" type="hidden" value="正常" class="form-control"/>
|
|
|
|
|
|
- <input id="workAccountList{{idx}}_backSign" name="workAccountList[{{idx}}].backSign" type="hidden" value="正常" readonly="true" class="form-control required"/>
|
|
|
+ <input id="workAccountList{{idx}}_backSign" name="workAccountList[{{idx}}].backSign" type="hidden" value="正常" readonly="true" class="form-control"/>
|
|
|
|
|
|
- <input id="workAccountList{{idx}}_backNumber" name="workAccountList[{{idx}}].backNumber" type="hidden" value="" readonly="true" class="form-control required"/>
|
|
|
+ <input id="workAccountList{{idx}}_backNumber" name="workAccountList[{{idx}}].backNumber" type="hidden" value="" readonly="true" class="form-control"/>
|
|
|
|
|
|
-
|
|
|
- <td class="text-center" width="10">
|
|
|
- {{#delBtn}}<span class="close" onclick="delRow(this, '#workAccountList{{idx}}')" title="删除">×</span>{{/delBtn}}
|
|
|
- </td>
|
|
|
</tr>//-->
|
|
|
</script>
|
|
|
<script type="text/javascript">
|
|
@@ -589,4 +587,4 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</body>
|
|
|
-</html>
|
|
|
+</html>
|