|
@@ -0,0 +1,894 @@
|
|
|
|
+<%@ page import="com.jeeplus.modules.sys.utils.UserUtils" %>
|
|
|
|
+<%@ 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">
|
|
|
|
+ <%--var Srole = "<%= UserUtils.getSelectRole().getName()%>";--%>
|
|
|
|
+
|
|
|
|
+ $(document).ready(function() {
|
|
|
|
+ // laydate.render({
|
|
|
|
+ // elem: '#invoiceDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
|
+ // event: 'focus' //响应事件。如果没有传入event,则按照默认的click
|
|
|
|
+ // ,type:'datetime'
|
|
|
|
+ // });
|
|
|
|
+ //搜索框收放
|
|
|
|
+ $('#moresee').click(function(){
|
|
|
|
+ if($('#moresees').is(':visible'))
|
|
|
|
+ {
|
|
|
|
+ $('#moresees').slideUp(0,resizeListWindow2);
|
|
|
|
+ $('#moresee i').removeClass("glyphicon glyphicon-menu-up").addClass("glyphicon glyphicon-menu-down");
|
|
|
|
+ }else{
|
|
|
|
+ $('#moresees').slideDown(0,resizeListWindow2);
|
|
|
|
+ $('#moresee i').removeClass("glyphicon glyphicon-menu-down").addClass("glyphicon glyphicon-menu-up");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ laydate.render({
|
|
|
|
+ elem: '#beginContractDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
|
+ event: 'focus', //响应事件。如果没有传入event,则按照默认的click
|
|
|
|
+ type : 'date'
|
|
|
|
+, trigger: 'click'
|
|
|
|
+ });
|
|
|
|
+ laydate.render({
|
|
|
|
+ elem: '#endContractDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
|
+ event: 'focus', //响应事件。如果没有传入event,则按照默认的click
|
|
|
|
+ type : 'date'
|
|
|
|
+, trigger: 'click'
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ function openDialogre(title,url,width,height,target){
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
|
+ content: url ,
|
|
|
|
+ skin:"three-btns",
|
|
|
|
+ btn: ['送审','暂存','关闭'],
|
|
|
|
+ btn1: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ if(iframeWin.contentWindow.doSubmit(1) ){
|
|
|
|
+ // top.layer.close(index);//关闭对话框。
|
|
|
|
+ setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ btn2:function(index,layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ if(iframeWin.contentWindow.doSubmit(2) ){
|
|
|
|
+ // top.layer.close(index);//关闭对话框。
|
|
|
|
+ setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ },
|
|
|
|
+ btn3: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function openDialogreplay(title,url,width,height,target){
|
|
|
|
+
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
|
+ content: url ,
|
|
|
|
+ skin:"two-btns",
|
|
|
|
+ btn: ['送审','关闭'],
|
|
|
|
+ yes: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+
|
|
|
|
+ if(iframeWin.contentWindow.doSubmit() ){
|
|
|
|
+ top.layer.close(index);//关闭对话框。
|
|
|
|
+ //setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function receiptInvoice(title,url,width,height,target){
|
|
|
|
+
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
|
+ content: url ,
|
|
|
|
+ skin:"three-btns",
|
|
|
|
+ btn: ['保留','确认收款','关闭'],
|
|
|
|
+ btn1: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ if(iframeWin.contentWindow.doSubmit(1) ){
|
|
|
|
+ // top.layer.close(index);//关闭对话框。
|
|
|
|
+ setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ btn2:function(index,layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ if(iframeWin.contentWindow.doSubmit(2) ){
|
|
|
|
+ // top.layer.close(index);//关闭对话框。
|
|
|
|
+ setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ },
|
|
|
|
+ btn3: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function contractOpenDialogre(title,url,width,height,target){
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ maxmin: false, //开启最大化最小化按钮
|
|
|
|
+ skin:"three-btns",
|
|
|
|
+ content: url ,
|
|
|
|
+ btn: ['送审','暂存','关闭'],
|
|
|
|
+ btn1: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ if(iframeWin.contentWindow.doSubmit(1) ){
|
|
|
|
+ // top.layer.close(index);//关闭对话框。
|
|
|
|
+ setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ btn2:function(index,layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ if(iframeWin.contentWindow.doSubmit(2) ){
|
|
|
|
+ // top.layer.close(index);//关闭对话框。
|
|
|
|
+ setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ },
|
|
|
|
+ btn3: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function openDialogreModify(title,url,id,width,height,target) {
|
|
|
|
+
|
|
|
|
+ if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) {//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width = 'auto';
|
|
|
|
+ height = 'auto';
|
|
|
|
+ } else {//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $.ajax({
|
|
|
|
+ async: false,
|
|
|
|
+ url: "${ctx}/workinvoiceTwo/workinvoiceTwo/getInvoiceExist?id="+id,
|
|
|
|
+ dataType: "json",
|
|
|
|
+ success: function (data) {
|
|
|
|
+ if(data.success){
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
|
+ content: url ,
|
|
|
|
+ skin:"two-btns",
|
|
|
|
+ btn: ['送审','关闭'],
|
|
|
|
+ yes: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+
|
|
|
|
+ if(iframeWin.contentWindow.doSubmit() ){
|
|
|
|
+ top.layer.close(index);//关闭对话框。
|
|
|
|
+ //setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+ top.layer.msg("该发票信息已删除!", {icon: 0});
|
|
|
|
+ window.location.reload();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ //打开对话框(查看)
|
|
|
|
+ function openDialogListView(title,url,id,width,height){
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ $.ajax({
|
|
|
|
+ async: false,
|
|
|
|
+ url: "${ctx}/workinvoiceTwo/workinvoiceTwo/getInvoiceExist?id="+id,
|
|
|
|
+ dataType: "json",
|
|
|
|
+ success: function (data) {
|
|
|
|
+ if(data.success){
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ skin: 'one-btn',
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
|
+ content: url ,
|
|
|
|
+ btn: ['关闭'],
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+ top.layer.msg("该发票信息已删除!", {icon: 0});
|
|
|
|
+ window.location.reload();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ </script>
|
|
|
|
+ <script>
|
|
|
|
+
|
|
|
|
+ function notifyDialogre(title,url,width,height,target){
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ skin:"three-btns",
|
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
|
+ content: url ,
|
|
|
|
+ btn: ['通过','驳回','关闭'],
|
|
|
|
+ btn1: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ if(iframeWin.contentWindow.doSubmit(1) ){
|
|
|
|
+ top.layer.close(index);//关闭对话框。
|
|
|
|
+ setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ btn2:function(index,layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ if(iframeWin.contentWindow.doSubmit(2) ){
|
|
|
|
+ top.layer.close(index);//关闭对话框。
|
|
|
|
+ setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ },
|
|
|
|
+ btn3: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ function cBlur(obj) {
|
|
|
|
+ var id = $("#accountCheckingUserId").val();
|
|
|
|
+ if(undefined != obj.value && null != obj.value && '' != obj.value){
|
|
|
|
+ $.ajax({
|
|
|
|
+ url:'${ctx}/sys/user/getUserByName?name='+obj.value,
|
|
|
|
+ type:"post",
|
|
|
|
+ success:function(data){
|
|
|
|
+ var user = data.body.data;
|
|
|
|
+ if(undefined == user || null == user || '' == user){
|
|
|
|
+ $("#accountCheckingUserId").val("");
|
|
|
|
+ }else{
|
|
|
|
+ if(data.body.data.id != id){
|
|
|
|
+ if(undefined != id && null != id && '' != id){
|
|
|
|
+ $("#accountCheckingUserId").val("");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+ $("#accountCheckingUserId").val("");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ function blurSubmitterId(obj) {
|
|
|
|
+ var id = $("#submitterId").val();
|
|
|
|
+ if(undefined != obj.value && null != obj.value && '' != obj.value){
|
|
|
|
+ $.ajax({
|
|
|
|
+ url:'${ctx}/sys/user/getUserByName?name='+obj.value,
|
|
|
|
+ type:"post",
|
|
|
|
+ success:function(data){
|
|
|
|
+ var user = data.body.data;
|
|
|
|
+ if(undefined == user || null == user || '' == user){
|
|
|
|
+ $("#submitterId").val("");
|
|
|
|
+ }else{
|
|
|
|
+ if(data.body.data.id != id){
|
|
|
|
+ if(undefined != id && null != id && '' != id){
|
|
|
|
+ $("#submitterId").val("");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+ $("#submitterId").val("");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ function readDetailInfo(obj,numbers) {
|
|
|
|
+ if(numbers!=undefined && numbers!=""){
|
|
|
|
+ var vals=numbers.split(",");
|
|
|
|
+ var value="";
|
|
|
|
+ for (var i=0;i<vals.length;i++){
|
|
|
|
+ value+=vals[i]+"</br>"
|
|
|
|
+ }
|
|
|
|
+ if (vals.length>0){
|
|
|
|
+ layer.tips(value, obj, {
|
|
|
|
+ tips: [3, '#000'],
|
|
|
|
+ area: ['250px', 'auto'],
|
|
|
|
+ time: 3000
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ </script>
|
|
|
|
+ <style>
|
|
|
|
+ body{
|
|
|
|
+ background-color:transparent;
|
|
|
|
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#26FFFFFF, endColorstr=#26FFFFFF);
|
|
|
|
+ color:#ffffff;
|
|
|
|
+ background-color:rgba(255,255,255,0);
|
|
|
|
+ height:100%;
|
|
|
|
+ }
|
|
|
|
+ </style>
|
|
|
|
+</head>
|
|
|
|
+<body>
|
|
|
|
+<div class="wrapper wrapper-content">
|
|
|
|
+ <sys:message content="${message}"/>
|
|
|
|
+ <div class="layui-row ">
|
|
|
|
+ <%--<div class="full-width fl">
|
|
|
|
+ <div class=" contentShadow shadowLTR list-form-tab" id="tabDiv">
|
|
|
|
+ <ul class="list-tabs" >
|
|
|
|
+ <li class="active"><a href="${ctx}/workinvoice/workInvoice/list">发票管理</a></li>
|
|
|
|
+ <li><a href="${ctx}/workinvoicealter/workInvoiceAlter/list">发票变更</a></li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>--%>
|
|
|
|
+ <div class="full-width fl">
|
|
|
|
+ <div class=" layui-row contentShadow shadowLR" id="queryDiv">
|
|
|
|
+ <form:form id="searchForm" modelAttribute="workInvoiceShow" action="${ctx}/workinvoiceTwo/workinvoiceTwo/" method="post" class="form-inline">
|
|
|
|
+ <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
|
|
+ <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
|
|
+ <input id="toflag" name="toflag" type="hidden" value="1"/>
|
|
|
|
+ <%--<table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/><!-- 支持排序 -->--%>
|
|
|
|
+
|
|
|
|
+ <div class="commonQuery lw9">
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">发票申请编号:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:input path="number" htmlEscape="false" maxlength="64" class=" form-control layui-input"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">开票金额:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <form:input path="money" htmlEscape="false" class=" form-control layui-input"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <%--<div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">项目编号:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:input path="project.projectId" htmlEscape="false" maxlength="64" class=" form-control layui-input"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">项目名称:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <form:input path="project.projectName" htmlEscape="false" maxlength="64" class=" form-control layui-input"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>--%>
|
|
|
|
+ <div class="layui-item athird">
|
|
|
|
+ <div class="input-group">
|
|
|
|
+ <a href="#" id="moresee"><i class="glyphicon glyphicon-menu-down"></i></a>
|
|
|
|
+ <div class="layui-btn-group search-spacing">
|
|
|
|
+ <button id="searchQuery" class="layui-btn layui-btn-sm layui-bg-blue" onclick="search()">查询</button>
|
|
|
|
+ <button id="searchReset" class="layui-btn layui-btn-sm " onclick="resetSearch()">重置</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div style=" clear:both;"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div id="moresees" class="lw9" style="clear:both;display:none;">
|
|
|
|
+ <%--<div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">报告号名称:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <form:input path="project.reportData.number" htmlEscape="false" maxlength="64" class=" form-control layui-input"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>--%>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">对账人:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <sys:inquireselectUserNotReadolny id="accountCheckingUser" name="accountCheckingUserId" value="${workInvoice.accountCheckingUserId}" labelName="accountCheckingUserName" labelValue="${workInvoice.accountCheckingUserName}" cssStyle="background-color: #fff"
|
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">对账地区:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <sys:treeselectArae id="area" name="area.id" value="${workInvoice.area.id}" labelName="area.name" labelValue="${workInvoice.area.name}"
|
|
|
|
+ cssStyle="background-color:#fff" title="区域" url="/sys/area/treeData" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="false" isAll="true"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">开票日期:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input id="beginContractDate" name="beginContractDate" type="text" readonly="readonly" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon query-group" style="background-color: #fff"
|
|
|
|
+ value="<fmt:formatDate value="${workInvoice.beginContractDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
|
+ </input>
|
|
|
|
+ <span class="group-sep">-</span>
|
|
|
|
+ <input id="endContractDate" name="endContractDate" type="text" readonly="readonly" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon query-group" style="background-color: #fff"
|
|
|
|
+ value="<fmt:formatDate value="${workInvoice.endContractDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
|
+ </input>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">经办人部门:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <sys:treeselect id="officeId" name="officeId" value="${workInvoice.officeId}" labelName="officeName" labelValue="${workInvoice.officeName}" cssStyle="background-color: #fff"
|
|
|
|
+ title="部门" url="/sys/office/treeDataAll?type=2" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">经办人:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <sys:inquireselectUserNotReadolnyTow id="submitter" name="submitterId" value="${workInvoice.submitterId}" labelName="submitterName" labelValue="${workInvoice.submitterName}" cssStyle="background-color: #fff"
|
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">开票单位:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <form:input path="client.name" htmlEscape="false" class=" form-control layui-input"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">是否收款:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <select id="receiptMoney" name="receiptMoney" class="form-control simple-select">
|
|
|
|
+ <option value=""></option>
|
|
|
|
+ <option value="0" <c:if test="${workInvoiceShow.receiptMoney=='0'}">selected</c:if>>否</option>
|
|
|
|
+ <option value="1" <c:if test="${workInvoiceShow.receiptMoney=='1'}">selected</c:if>>是</option>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">发票类型:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <form:select path="invoiceType" class="form-control simple-select">
|
|
|
|
+ <form:option value="" label=""/>
|
|
|
|
+ <form:options items="${fns:getMainDictList('invoice_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">状态:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <form:select path="invoiceState" class="form-control simple-select">
|
|
|
|
+ <form:option value="" label=""/>
|
|
|
|
+ <form:options items="${fns:getDictList('invoice_audit_state')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">收款类型:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <form:select path="chargeType" class="form-control simple-select">
|
|
|
|
+ <form:option value="" label=""/>
|
|
|
|
+ <form:options items="${fns:getMainDictList('receipt_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">开票内容:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <form:select path="billingContent" class="form-control simple-select">
|
|
|
|
+ <form:option value="" label=""/>
|
|
|
|
+ <form:options items="${fns:getMainDictList('billing_content')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </form:form>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="full-width fl">
|
|
|
|
+ <div class=" contentShadow shadowLBR layui-form contentDetails">
|
|
|
|
+ <div class="nav-btns">
|
|
|
|
+ <div class="layui-btn-group" style="float: left">
|
|
|
|
+ <shiro:hasPermission name="workinvoice:workInvoice:add">
|
|
|
|
+ <button class="layui-btn layui-btn-sm layui-bg-blue" title="发票管理" onclick="openDialogre('发票管理','${ctx}//workinvoiceTwo/workinvoiceTwo/form','95%','95%')"> 添加</button>
|
|
|
|
+ </shiro:hasPermission>
|
|
|
|
+ <shiro:hasPermission name="workinvoiceTwo:workinvoiceTwo:export">
|
|
|
|
+ <table:exportExcel url="${ctx}/workinvoiceTwo/workinvoiceTwo/export"></table:exportExcel><!-- 导出按钮 -->
|
|
|
|
+ </shiro:hasPermission>
|
|
|
|
+ <button class="layui-btn layui-btn-sm layui-bg-green" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"> 刷新</button>
|
|
|
|
+ <div class=" layui-btn-sm" style="float: right;width: 300px">
|
|
|
|
+ <span style="color: red">金额汇总(开票金额):${sumMoney}(元)</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <div style="clear: both;"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <table class="oa-table layui-table" id="contentTable"></table>
|
|
|
|
+
|
|
|
|
+ <!-- 分页代码 -->
|
|
|
|
+ <table:page page="${page}"></table:page>
|
|
|
|
+ <div style="clear: both;"></div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div id="changewidth"></div>
|
|
|
|
+</div>
|
|
|
|
+<script src="${ctxStatic}/layer-v2.3/layui/layui.all.js" charset="utf-8"></script>
|
|
|
|
+<script>
|
|
|
|
+ layui.use('table', function(){
|
|
|
|
+ layui.table.render({
|
|
|
|
+ limit:${ page.pageSize }
|
|
|
|
+ ,elem: '#contentTable'
|
|
|
|
+ ,page: false
|
|
|
|
+ ,cols: [[
|
|
|
|
+ //{checkbox: true, fixed: true},
|
|
|
|
+ {field:'index',align:'center', title: '序号',width:40}
|
|
|
|
+ ,{field:'projName',align:'center', title: '项目名称', minWidth:160,templet:function(d){
|
|
|
|
+ if(1 == d.showView && d.showView != undefined){
|
|
|
|
+ return "<a class=\"attention-info\" title=\"" + d.projName + "\" href=\"javascript:void(0);\" onclick=\"openDialogView('查看项目', '${ctx}/workinvoiceAll/workInvoiceAll/projectview?id=" + d.id +"','95%', '95%')\">" + d.projName + "</a>";
|
|
|
|
+ }else{
|
|
|
|
+ return "<span title='"+ d.projName +"'>" +d.projName+ "</span>";
|
|
|
|
+ }
|
|
|
|
+ }}
|
|
|
|
+ ,{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=\"openDialogListView('查看发票管理', '${ctx}/workinvoiceTwo/workinvoiceTwo/form?id=" + d.id + "&tabId=1','"+ d.id +"','95%', '95%')\">" + d.invoiceNum + "</a>";
|
|
|
|
+ }}
|
|
|
|
+ // ,{field:'widNumber',align:'center', title: '发票号', width:90,templet:function(d){
|
|
|
|
+ // return "<span title='"+ d.widNumber +"'>" + d.widNumber + "</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:110,templet:function(d){
|
|
|
|
+ var numbers = new Array();;
|
|
|
|
+ if (d.workAccountListStr.length>0){
|
|
|
|
+ for (var i=0;i<d.workAccountListStr.length;i++){
|
|
|
|
+ numbers[i]="发票号:"+d.workAccountListStr[i].number+" 发票金额:"+d.workAccountListStr[i].totalMoney;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ var xml= "<span onmouseover=\"readDetailInfo(this,'"+numbers+"')\">" + d.money+"</span>" ;
|
|
|
|
+ return xml;
|
|
|
|
+ }}
|
|
|
|
+ // ,{field:'widTotalMoney',align:'center', title: '发票金额(元)', width:120,templet:function(d){
|
|
|
|
+ // return "<span title='"+ d.widTotalMoney +"'>" + d.widTotalMoney + "</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>";–%>--%>
|
|
|
|
+ <%-- return d.reportNumber;--%>
|
|
|
|
+ <%-- }}--%>
|
|
|
|
+ <%--,{field:'areaName',align:'center', title: '项目所在地', minWidth:80,templet:function(d){--%>
|
|
|
|
+ <%-- return "<span title='"+ d.areaName +"'>" + d.areaName + "</span>";--%>
|
|
|
|
+ <%-- }}--%>
|
|
|
|
+ ,{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: '状态', fixed: 'right', width:70,templet:function(d){
|
|
|
|
+ <%--var st = getAuditState(d.status);--%>
|
|
|
|
+
|
|
|
|
+ <%--var xml = "<span onclick=\"openDialogView('流程追踪', '${ctx}/workinvoice/workInvoice/getProcessOne?id=" + d.id + "','95%','95%')\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";--%>
|
|
|
|
+ <%--return xml;--%>
|
|
|
|
+ var st = getAuditState(d.status);
|
|
|
|
+ if(st.action)
|
|
|
|
+ var xml = "<span onclick=\"openDialogListView('流程追踪', '${ctx}/workinvoiceTwo/workinvoiceTwo/getProcessOne?id=" + d.id + "','"+ d.id +"','95%','95%')\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
|
|
+ else
|
|
|
|
+ var xml = "<span style=\"cursor:default;\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
|
|
+ return xml;
|
|
|
|
+ }}
|
|
|
|
+ ,{field:'op',align:'center',title:"操作",fixed: 'right',width:130,templet:function(d){
|
|
|
|
+ ////对操作进行初始化
|
|
|
|
+ var xml="<div class=\"layui-btn-group\">";
|
|
|
|
+
|
|
|
|
+ if(d.notifyFlag != undefined && d.notifyFlag !=null && "" != d.notifyFlag && d.notifyFlag == 1)
|
|
|
|
+ {
|
|
|
|
+ xml+="<button onclick=\"notifyDialogre('发票审批', '${ctx}/workprojectnotify/workProjectNotify/form?id=" + d.notifyId +"&home=invoice','95%', '95%')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 审批</button>";
|
|
|
|
+ }
|
|
|
|
+ if(d.canedit1 != undefined && d.canedit1 =="1")
|
|
|
|
+ {
|
|
|
|
+ xml +="<a href=\"javascript:void(0)\" onclick=\"openDialogre('修改发票', '${ctx}/workinvoiceTwo/workinvoiceTwo/form?id=" + d.id + "','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改</a>";
|
|
|
|
+ }
|
|
|
|
+ if(d.canedit2 != undefined && d.canedit2 =="1")
|
|
|
|
+ {
|
|
|
|
+ xml +="<a href=\"javascript:void(0)\" onclick=\"openDialogreModify('修改发票', '${ctx}/workinvoiceTwo/workinvoiceTwo/form?id=" + d.id + "&tabId=3','"+ d.id +"','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改</a>";
|
|
|
|
+ }
|
|
|
|
+ if(d.canedit3 != undefined && d.canedit3 =="1")
|
|
|
|
+ {
|
|
|
|
+ xml +="<a href=\"javascript:void(0)\" onclick=\"openDialogreplay('重新申请发票', '${ctx}/workinvoiceTwo/workinvoiceTwo/form?id=" + d.id + "&tabId=4','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改</a>";
|
|
|
|
+ }
|
|
|
|
+ if(d.candelete != undefined && d.candelete =="1")
|
|
|
|
+ {
|
|
|
|
+ xml += "<a href=\"${ctx}/workinvoiceTwo/workinvoiceTwo/delete?id=" + d.id + "\" onclick=\"return confirmx('确认要删除该发票记录吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除</a>";
|
|
|
|
+ }
|
|
|
|
+ if(d.cancancel != undefined && d.cancancel =="1")
|
|
|
|
+ {
|
|
|
|
+ xml += "<a href=\"${ctx}/workinvoiceTwo/workinvoiceTwo/cancelInvalidate?id="+ d.id +"\" onclick=\"return confirmx('确认要强制撤回?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 撤回</a>";
|
|
|
|
+ }
|
|
|
|
+ /*if(d.canalter != undefined && d.canalter =="1")
|
|
|
|
+ {
|
|
|
|
+ xml += "<a href=\"javascript:void(0)\" onclick=\"contractOpenDialogre('变更发票管理', '${ctx}/workinvoiceTwo/workinvoiceTwo/alterForm?id="+ d.id +"','95%','95%')\" class=\"op-btn op-btn-revert\" ><i class=\"fa fa-edit\"></i> 变更</a>";
|
|
|
|
+ }*/
|
|
|
|
+
|
|
|
|
+ if(d.financeFlag != undefined && d.financeFlag =="1")
|
|
|
|
+ {
|
|
|
|
+ xml +="<a href=\"javascript:void(0)\" onclick=\"receiptInvoice('发票收款', '${ctx}/workinvoiceTwo/workinvoiceTwo/receiptForm?id=" + d.id + "','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" > 收款</a>";
|
|
|
|
+ }
|
|
|
|
+ if(d.cancellationFlag != undefined && d.cancellationFlag =="1")
|
|
|
|
+ {
|
|
|
|
+ xml +="<a href=\"javascript:void(0)\" onclick=\"openDialogreplay('作废发票', '${ctx}/workinvoiceTwo/workinvoiceTwo/cancellationForm?id=" + d.id + "&tabId=3','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 作废</a>";
|
|
|
|
+ }
|
|
|
|
+ if(d.conditionCanedit != undefined && d.conditionCanedit =="1")
|
|
|
|
+ {
|
|
|
|
+ xml +="<a href=\"javascript:void(0)\" onclick=\"openDialogreplay('作废修改发票', '${ctx}/workinvoiceTwo/workinvoiceTwo/cancellationForm?id=" + d.id + "&tabId=3','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改</a>";
|
|
|
|
+ }
|
|
|
|
+ if(d.conditionCanedit3 != undefined && d.conditionCanedit3 =="1")
|
|
|
|
+ {
|
|
|
|
+ xml +="<a href=\"javascript:void(0)\" onclick=\"openDialogreplay('重新申请发票', '${ctx}/workinvoiceTwo/workinvoiceTwo/cancellationForm?id=" + d.id + "&tabId=4','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改</a>";
|
|
|
|
+ }
|
|
|
|
+ if(d.conditionCandelete != undefined && d.conditionCandelete =="1")
|
|
|
|
+ {
|
|
|
|
+ xml += "<a href=\"${ctx}/workinvoiceTwo/workinvoiceTwo/cancellationDelete?id=" + d.id + "\" onclick=\"return confirmx('确认要删除该发票作废记录吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除</a>";
|
|
|
|
+ }
|
|
|
|
+ if(d.conditionCancancel != undefined && d.conditionCancancel =="1")
|
|
|
|
+ {
|
|
|
|
+ xml += "<a href=\"${ctx}/workinvoiceTwo/workinvoiceTwo/conditionCancelInvalidate?id="+ d.id +"\" onclick=\"return confirmx('确认要强制撤回?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 作废撤回</a>";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(d.adminFlag != undefined && d.adminFlag =="1")
|
|
|
|
+ {
|
|
|
|
+ xml += "<a href=\"${ctx}/workinvoiceTwo/workinvoiceTwo/delete?id=" + d.id + "\" onclick=\"return confirmx('确认要删除该发票记录吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除</a>";
|
|
|
|
+ }
|
|
|
|
+ xml+="</div>"
|
|
|
|
+ return xml;
|
|
|
|
+
|
|
|
|
+ }}
|
|
|
|
+ ]]
|
|
|
|
+ ,data: [
|
|
|
|
+ <c:if test="${ not empty page.list}">
|
|
|
|
+ <c:forEach items="${page.list}" var="workInvoice" varStatus="index"><c:set var="Srole" scope="session" value="<%= UserUtils.getSelectRole().get(0).getEnname()%>"/>
|
|
|
|
+ <c:if test="${index.index != 0}">,</c:if>
|
|
|
|
+ {
|
|
|
|
+ "index":"${index.index+1}"
|
|
|
|
+ ,"id":"${workInvoice.id}"
|
|
|
|
+ ,"invoiceNum":"${workInvoice.number}"
|
|
|
|
+ ,"chargeType":"${fns:getMainDictLabels(workInvoice.chargeType,',','receipt_type', '')}"
|
|
|
|
+ ,"billingContent":"${fns:getMainDictLabels(workInvoice.billingContent,',','billing_content', '')}"
|
|
|
|
+ ,"invoiceType":"${workInvoice.invoiceTypeStr}"
|
|
|
|
+ ,"projNum":"${workInvoice.project.projectId}"
|
|
|
|
+ ,"projectId":"${workInvoice.project.id}"
|
|
|
|
+ ,"areaName":"${workInvoice.project.county}"
|
|
|
|
+ ,"reportNumber":"${workInvoice.project.reportData.number}"
|
|
|
|
+ ,"projName":"${workInvoice.projectName}"
|
|
|
|
+ ,"clientName":"${workInvoice.client.name}"
|
|
|
|
+ ,"officeName":"${workInvoice.office.name}"
|
|
|
|
+ ,"responsibleName":"${workInvoice.createBy.name}"
|
|
|
|
+ ,"receiptMoney":"${workInvoice.receiptMoney}"
|
|
|
|
+ ,"status":"${workInvoice.invoiceState}"
|
|
|
|
+ ,"notifyFlag":"${workInvoice.notifyFlag}"
|
|
|
|
+ ,"notifyId":"${workInvoice.notifyId}"
|
|
|
|
+ ,"widNumber":"${workInvoice.widNumber}"
|
|
|
|
+ ,"widTotalMoney":"${workInvoice.widTotalMoney}"
|
|
|
|
+ ,"workAccountList":"${workInvoice.workAccountList}"
|
|
|
|
+ ,"workAccountListStr":${fns:toJson(workInvoice.workAccountList)}
|
|
|
|
+ ,"money":"<fmt:formatNumber value="${workInvoice.money}" pattern="##0.00"/>"
|
|
|
|
+ ,"createDate":"<fmt:formatDate value="${workInvoice.createDate}" pattern="yyyy-MM-dd"/>"
|
|
|
|
+ ,"receiptMoneyDate":"<fmt:formatDate value="${workInvoice.receiptMoneyDate}" pattern="yyyy-MM-dd"/>"
|
|
|
|
+ <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 == '9' && fns:getUser().id == workInvoice.createBy.id}">,"conditionCanedit":"1"</c:if><%--驳回--修改--%>
|
|
|
|
+ <c:if test="${workInvoice.invoiceState == '11' && fns:getUser().id == workInvoice.createBy.id}">,"conditionCanedit3":"1"</c:if><%--作废撤回--修改--%>
|
|
|
|
+ <c:if test="${workInvoice.invoiceState == '3' && fns:getUser().id == workInvoice.createBy.id}">,"canedit3":"1"</c:if><%--撤回--修改--%>
|
|
|
|
+ <c:if test="${fns:getUser().id == workInvoice.createBy.id}"><c:if test="${workInvoice.invoiceState == '1' or workInvoice.invoiceState == '3' or workInvoice.invoiceState == '4'}"><shiro:hasPermission name="workinvoice:workInvoice:del">,"candelete":"1"</shiro:hasPermission></c:if></c:if>
|
|
|
|
+ <c:if test="${fns:getUser().id == workInvoice.createBy.id}"><c:if test="${workInvoice.invoiceState == '9' || workInvoice.invoiceState == '11' }">,"conditionCandelete":"1"</c:if></c:if>
|
|
|
|
+ <c:if test="${workInvoice.invoiceState == '2' && fns:getUser().id == workInvoice.createBy.id}">,"cancancel":"1"</c:if>
|
|
|
|
+ <c:if test="${workInvoice.invoiceState == '6' && fns:getUser().id == workInvoice.createBy.id}">,"conditionCancancel":"1"</c:if>
|
|
|
|
+ <c:if test="${workInvoice.invoiceState == '5' && fns:getUser().id == workInvoice.createBy.id}">,"cancellationFlag":"1"</c:if>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <shiro:hasPermission name="workinvoice:workInvoice:alteredit">
|
|
|
|
+ <c:if test="${workInvoice.invoiceState == '5'}">,"canalter":"1"</c:if>
|
|
|
|
+ </shiro:hasPermission>
|
|
|
|
+ ,"cancellation":<c:choose>
|
|
|
|
+ <c:when test="${workInvoice.invoiceState == '7'}">"是"</c:when>
|
|
|
|
+ <c:otherwise>"否"</c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ <shiro:hasPermission name="ruralProject:ruralProjectView:workInvoiceView">
|
|
|
|
+ ,"showView":1
|
|
|
|
+ </shiro:hasPermission>
|
|
|
|
+<%-- <shiro:hasPermission name="workinvoice:workInvoice:receipt">--%>
|
|
|
|
+<%-- ,"financeFlag":--%>
|
|
|
|
+<%-- <c:choose>--%>
|
|
|
|
+<%-- <c:when test="${workInvoice.invoiceState == 5 && workInvoice.receiptMoney == '否'}">"1"</c:when>--%>
|
|
|
|
+<%-- <c:otherwise>"0"</c:otherwise>--%>
|
|
|
|
+<%-- </c:choose>--%>
|
|
|
|
+<%-- </shiro:hasPermission>--%>
|
|
|
|
+<%-- <shiro:hasPermission name="workinvoice:workInvoice:invalid">--%>
|
|
|
|
+<%-- ,"cancellationFlag":--%>
|
|
|
|
+<%-- <c:choose>--%>
|
|
|
|
+<%-- <c:when test="${workInvoice.invoiceState == 5}">"1"</c:when>--%>
|
|
|
|
+<%-- <c:otherwise>"0"</c:otherwise>--%>
|
|
|
|
+<%-- </c:choose>--%>
|
|
|
|
+<%-- </shiro:hasPermission>--%>
|
|
|
|
+<%-- <shiro:hasPermission name="workinvoice:workInvoice:adminDel">--%>
|
|
|
|
+<%-- ,"adminFlag":--%>
|
|
|
|
+<%-- <c:choose>--%>
|
|
|
|
+<%-- <c:when test="${workInvoice.invoiceState == 5}">"1"</c:when>--%>
|
|
|
|
+<%-- <c:otherwise>"0"</c:otherwise>--%>
|
|
|
|
+<%-- </c:choose>--%>
|
|
|
|
+<%-- </shiro:hasPermission>--%>
|
|
|
|
+ }
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </c:if>
|
|
|
|
+ ]
|
|
|
|
+ // ,even: true
|
|
|
|
+ // ,height: 315
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ resizeListTable();/*消除由于有竖向滚动条造成table出现横向滚动条*/
|
|
|
|
+</script>
|
|
|
|
+<script>
|
|
|
|
+ resizeListWindow2();
|
|
|
|
+ $(window).resize(function(){
|
|
|
|
+ resizeListWindow2();
|
|
|
|
+ });
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+</body>
|
|
|
|
+</html>
|