|
@@ -200,14 +200,14 @@
|
|
<div class="wrapper wrapper-content">
|
|
<div class="wrapper wrapper-content">
|
|
<sys:message content="${message}"/>
|
|
<sys:message content="${message}"/>
|
|
<div class="layui-row ">
|
|
<div class="layui-row ">
|
|
- <div class="full-width fl">
|
|
|
|
|
|
+ <%--<div class="full-width fl">
|
|
<div class=" contentShadow shadowLTR list-form-tab" id="tabDiv">
|
|
<div class=" contentShadow shadowLTR list-form-tab" id="tabDiv">
|
|
<ul class="list-tabs" >
|
|
<ul class="list-tabs" >
|
|
<li class="active"><a href="${ctx}/workinvoice/workInvoice/list">发票管理</a></li>
|
|
<li class="active"><a href="${ctx}/workinvoice/workInvoice/list">发票管理</a></li>
|
|
<li><a href="${ctx}/workinvoicealter/workInvoiceAlter/list">发票变更</a></li>
|
|
<li><a href="${ctx}/workinvoicealter/workInvoiceAlter/list">发票变更</a></li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div>--%>
|
|
<div class="full-width fl">
|
|
<div class="full-width fl">
|
|
<div class=" layui-row contentShadow shadowLR" id="queryDiv">
|
|
<div class=" layui-row contentShadow shadowLR" id="queryDiv">
|
|
<form:form id="searchForm" modelAttribute="workInvoice" action="${ctx}/workinvoice/workInvoice/" method="post" class="form-inline">
|
|
<form:form id="searchForm" modelAttribute="workInvoice" action="${ctx}/workinvoice/workInvoice/" method="post" class="form-inline">
|
|
@@ -273,7 +273,7 @@
|
|
<div class="layui-input-block with-icon">
|
|
<div class="layui-input-block with-icon">
|
|
<form:select path="invoiceState" class="form-control simple-select">
|
|
<form:select path="invoiceState" class="form-control simple-select">
|
|
<form:option value="" label=""/>
|
|
<form:option value="" label=""/>
|
|
- <form:options items="${fns:getDictList('audit_state')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
|
|
+ <form:options items="${fns:getDictList('invoice_audit_state')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
</form:select>
|
|
</form:select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -289,7 +289,9 @@
|
|
</shiro:hasPermission>
|
|
</shiro:hasPermission>
|
|
|
|
|
|
<button class="nav-btn nav-btn-refresh" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"><i class="glyphicon glyphicon-repeat"></i> 刷新</button>
|
|
<button class="nav-btn nav-btn-refresh" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"><i class="glyphicon glyphicon-repeat"></i> 刷新</button>
|
|
-
|
|
|
|
|
|
+ <%--<shiro:hasPermission name="workinvoice:workInvoice:del">
|
|
|
|
+ <table:delRow url="${ctx}/workinvoice/workInvoice/deleteAll" id="contentTable"></table:delRow><!-- 删除按钮 -->
|
|
|
|
+ </shiro:hasPermission>--%>
|
|
<div style="clear: both;"></div>
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
</div>
|
|
<table class="oa-table layui-table" id="contentTable"></table>
|
|
<table class="oa-table layui-table" id="contentTable"></table>
|
|
@@ -310,27 +312,45 @@
|
|
,elem: '#contentTable'
|
|
,elem: '#contentTable'
|
|
,page: false
|
|
,page: false
|
|
,cols: [[
|
|
,cols: [[
|
|
- // {checkbox: true, fixed: true},
|
|
|
|
|
|
+ {checkbox: true, fixed: true},
|
|
{field:'index',align:'center', title: '序号',width:40}
|
|
{field:'index',align:'center', title: '序号',width:40}
|
|
- ,{field:'invoiceNum',align:'center', sort:true,title: '发票申请编号', minWidth:150,templet:function(d){
|
|
|
|
|
|
+ ,{field:'projName',align:'center', title: '项目名称', minWidth:160,templet:function(d){
|
|
|
|
+ return "<a class=\"attention-info\" title=\"" + d.projName + "\" href=\"javascript:void(0);\" onclick=\"openDialogView('查看项目', '${ctx}/ruralProject/ruralProjectRecords/view?id=" + d.projectId +"','95%', '95%')\">" + d.projName + "</a>";
|
|
|
|
+ }}
|
|
|
|
+ ,{field:'invoiceNum',align:'center', sort:true,title: '发票编号', minWidth:130,templet:function(d){
|
|
return "<a class=\"attention-info\" title=\""+ d.invoiceNum +"\"href=\"javascript:void(0);\" onclick=\"openDialogView('查看发票管理', '${ctx}/workinvoice/workInvoice/form?id=" + d.id + "&tabId=1','95%', '95%')\">" + d.invoiceNum + "</a>";
|
|
return "<a class=\"attention-info\" title=\""+ d.invoiceNum +"\"href=\"javascript:void(0);\" onclick=\"openDialogView('查看发票管理', '${ctx}/workinvoice/workInvoice/form?id=" + d.id + "&tabId=1','95%', '95%')\">" + d.invoiceNum + "</a>";
|
|
}}
|
|
}}
|
|
- ,{field:'projNum',align:'center', sort:true,title: '项目编号', minWidth:150,templet:function(d){
|
|
|
|
- return "<span title='"+ d.projNum +"'>" + d.projNum + "</span>";
|
|
|
|
- }}
|
|
|
|
- ,{field:'projName',align:'center', title: '项目名称', minWidth:100,templet:function(d){
|
|
|
|
- return "<span title='"+ d.projName +"'>" + d.projName + "</span>";
|
|
|
|
|
|
+ ,{field:'clientName', align:'center',title: '开票单位', minWidth:160,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.clientName +"'>" + d.clientName + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{field:'responsibleName', align:'center',title: '经办人', minWidth:80,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.responsibleName +"'>" + d.responsibleName + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{field:'officeName', align:'center',title: '经办单位',width:80,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.officeName +"'>" + d.officeName + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{field:'money',align:'center', title: '开票金额', width:90,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.money +"'>" + d.money + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{field:'billingContent',align:'center', title: '开票内容', width:90,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.billingContent +"'>" + d.billingContent + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{field:'chargeType',align:'center', title: '收款类型', width:90,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.chargeType +"'>" + d.chargeType + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{field:'invoiceType',align:'center', title: '发票类型', width:90,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.invoiceType +"'>" + d.invoiceType + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{field:'reportNumber',align:'center', title: '报告号', minWidth:150,templet:function(d){
|
|
|
|
+ return "<a class=\"attention-info\" title=\"" + d.reportNumber + "\" href=\"javascript:void(0);\" onclick=\"openDialogView('查看报告信息', '${ctx}/ruralProject/ruralProjectMessage/modify?projectId=" + d.projectId + "&view=view','95%', '95%')\">" + d.reportNumber + "</a>";
|
|
}}
|
|
}}
|
|
- ,{field:'clientName', align:'center',title: '实际开票单位', minWidth:150,templet:function(d){
|
|
|
|
- return "<span title='"+ d.clientName +"'>" + d.clientName + "</span>";
|
|
|
|
|
|
+ ,{field:'areaName',align:'center', title: '项目所在地', minWidth:80,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.areaName +"'>" + d.areaName + "</span>";
|
|
}}
|
|
}}
|
|
- ,{field:'officeName', align:'center',title: '所属部门',width:150,templet:function(d){
|
|
|
|
- return "<span title='"+ d.officeName +"'>" + d.officeName + "</span>";
|
|
|
|
- }}
|
|
|
|
- ,{field:'money',align:'center', title: '价税合计(元)', width:90,templet:function(d){
|
|
|
|
- return "<span title='"+ d.money +"'>" + d.money + "</span>";
|
|
|
|
- }}
|
|
|
|
- ,{field:'createDate',align:'center', sort:true,title: '创建时间', width:80}
|
|
|
|
|
|
+ ,{field:'createDate',align:'center', sort:true,title: '开票日期', width:80}
|
|
|
|
+ ,{field:'receiptMoneyDate',align:'center', sort:true,title: '收款日期', width:80}
|
|
|
|
+ ,{field:'receiptMoney',align:'center', title: '是否收款', width:80}
|
|
|
|
+ ,{field:'cancellation',align:'center', title: '是否作废', width:80}
|
|
,{align:'center', title: '状态', width:70,templet:function(d){
|
|
,{align:'center', title: '状态', width:70,templet:function(d){
|
|
<%--var st = getAuditState(d.status);--%>
|
|
<%--var st = getAuditState(d.status);--%>
|
|
|
|
|
|
@@ -366,10 +386,10 @@
|
|
{
|
|
{
|
|
xml += "<a href=\"${ctx}/workinvoice/workInvoice/cancelInvalidate?id="+ d.id +"\" onclick=\"return confirmx('确认要强制撤回?', this.href)\" class=\"op-btn op-btn-cancel\" ><i class=\"glyphicon glyphicon-share-alt\"></i> 撤回</a>";
|
|
xml += "<a href=\"${ctx}/workinvoice/workInvoice/cancelInvalidate?id="+ d.id +"\" onclick=\"return confirmx('确认要强制撤回?', this.href)\" class=\"op-btn op-btn-cancel\" ><i class=\"glyphicon glyphicon-share-alt\"></i> 撤回</a>";
|
|
}
|
|
}
|
|
- if(d.canalter != undefined && d.canalter =="1")
|
|
|
|
|
|
+ /*if(d.canalter != undefined && d.canalter =="1")
|
|
{
|
|
{
|
|
xml += "<a href=\"javascript:void(0)\" onclick=\"contractOpenDialogre('变更发票管理', '${ctx}/workinvoice/workInvoice/alterForm?id="+ d.id +"','95%','95%')\" class=\"op-btn op-btn-revert\" ><i class=\"fa fa-edit\"></i> 变更</a>";
|
|
xml += "<a href=\"javascript:void(0)\" onclick=\"contractOpenDialogre('变更发票管理', '${ctx}/workinvoice/workInvoice/alterForm?id="+ d.id +"','95%','95%')\" class=\"op-btn op-btn-revert\" ><i class=\"fa fa-edit\"></i> 变更</a>";
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
return xml;
|
|
return xml;
|
|
|
|
|
|
}}
|
|
}}
|
|
@@ -382,12 +402,21 @@
|
|
"index":"${index.index+1}"
|
|
"index":"${index.index+1}"
|
|
,"id":"${workInvoice.id}"
|
|
,"id":"${workInvoice.id}"
|
|
,"invoiceNum":"${workInvoice.number}"
|
|
,"invoiceNum":"${workInvoice.number}"
|
|
|
|
+ ,"chargeType":"${fns:getMainDictLabels(workInvoice.chargeType,',','receipt_type', '')}"
|
|
|
|
+ ,"billingContent":"${fns:getMainDictLabels(workInvoice.billingContent,',','billing_content', '')}"
|
|
|
|
+ ,"invoiceType":"${workInvoice.invoiceTypeStr}"
|
|
,"projNum":"${workInvoice.project.projectId}"
|
|
,"projNum":"${workInvoice.project.projectId}"
|
|
|
|
+ ,"projectId":"${workInvoice.project.id}"
|
|
|
|
+ ,"areaName":"${workInvoice.project.county}"
|
|
|
|
+ ,"reportNumber":"${workInvoice.project.reportData.number}"
|
|
,"projName":"${workInvoice.project.projectName}"
|
|
,"projName":"${workInvoice.project.projectName}"
|
|
,"clientName":"${workInvoice.client.name}"
|
|
,"clientName":"${workInvoice.client.name}"
|
|
,"officeName":"${workInvoice.office.name}"
|
|
,"officeName":"${workInvoice.office.name}"
|
|
|
|
+ ,"responsibleName":"${workInvoice.createBy.name}"
|
|
|
|
+ ,"receiptMoney":"${workInvoice.receiptMoney}"
|
|
,"money":"<fmt:formatNumber value="${workInvoice.money}" pattern="#,#0.00"/>"
|
|
,"money":"<fmt:formatNumber value="${workInvoice.money}" pattern="#,#0.00"/>"
|
|
,"createDate":"<fmt:formatDate value="${workInvoice.createDate}" pattern="yyyy-MM-dd"/>"
|
|
,"createDate":"<fmt:formatDate value="${workInvoice.createDate}" pattern="yyyy-MM-dd"/>"
|
|
|
|
+ ,"receiptMoneyDate":"<fmt:formatDate value="${workInvoice.receiptMoneyDate}" pattern="yyyy-MM-dd"/>"
|
|
,"status":"${workInvoice.invoiceState}"
|
|
,"status":"${workInvoice.invoiceState}"
|
|
<c:if test="${workInvoice.invoiceState == 1 && fns:getUser().id == workInvoice.createBy.id}"><shiro:hasPermission name="workinvoice:workInvoice:edit">,"canedit1":"1"</shiro:hasPermission></c:if><%--暂存-修改--%>
|
|
<c:if test="${workInvoice.invoiceState == 1 && fns:getUser().id == workInvoice.createBy.id}"><shiro:hasPermission name="workinvoice:workInvoice:edit">,"canedit1":"1"</shiro:hasPermission></c:if><%--暂存-修改--%>
|
|
<c:if test="${workInvoice.invoiceState == '4' && fns:getUser().id == workInvoice.createBy.id}">,"canedit2":"1"</c:if><%--驳回--修改--%>
|
|
<c:if test="${workInvoice.invoiceState == '4' && fns:getUser().id == workInvoice.createBy.id}">,"canedit2":"1"</c:if><%--驳回--修改--%>
|
|
@@ -397,6 +426,10 @@
|
|
<shiro:hasPermission name="workinvoice:workInvoice:alteredit">
|
|
<shiro:hasPermission name="workinvoice:workInvoice:alteredit">
|
|
<c:if test="${workInvoice.invoiceState == '5'}">,"canalter":"1"</c:if>
|
|
<c:if test="${workInvoice.invoiceState == '5'}">,"canalter":"1"</c:if>
|
|
</shiro:hasPermission>
|
|
</shiro:hasPermission>
|
|
|
|
+ ,"cancellation":<c:choose>
|
|
|
|
+ <c:when test="${workInvoice.invoiceState == '7'}">"是"</c:when>
|
|
|
|
+ <c:otherwise>"否"</c:otherwise>
|
|
|
|
+ </c:choose>
|
|
}
|
|
}
|
|
</c:forEach>
|
|
</c:forEach>
|
|
</c:if>
|
|
</c:if>
|