Commit 05eb4ec0 authored by yangyuxin's avatar yangyuxin

清册分离,但是未联调

parent e2ce506d
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!doctype html>
<html>
<head>
<meta charset='UTF-8'>
<link href="/online_report/static/tools/css/bootstrap.css?v=1.1" rel="stylesheet">
<!--滚动条-->
<link rel="stylesheet" href="/online_report/static/tools/css/scroll.css" />
<!--table样式-->
<link rel="stylesheet" href="/online_report/static/tools/css/table.css" />
<!--样式-->
<link rel="stylesheet" href="/online_report/static/tools/css/encapsulation.css" />
<!--时间插件-->
<link rel="stylesheet" href="/online_report/static/tools/js/My97DatePicker/skin/WdatePicker.css" />
<!--declare-->
<link rel="stylesheet" href="/online_report/static/css/declare/declare.css" />
<!-- 页面自定义样式 -->
<title>清税注销清册</title>
</head>
<body>
<div style="background-color:#FFFFFF;">
<div style="padding: 25px;">
<div class="div-border" style="padding-bottom: 20px;height: 60px;">
<img style="float:left;display:block" src="static/tools/images/cancellation.png">&nbsp;&nbsp;
<span style="float:left;display:block;margin-left: 10px;margin-top: 9px;top: 10px;" class="span-title">清税注销清册</span>
</div>
<div class="div-clear-folat" style="padding-top: 10px;">
<strong>税费申报</strong>
</div>
<hr class="hr-margin" />
<div id="taxGrid"></div>
<div class="div-clear-folat" style="padding-top: 10px;">
<strong>财务报表报送</strong>
</div>
<hr class="hr-margin" />
<div id="financialGrid"></div>
</div>
</div>
<form action="/online_report/declare/toPzzl" method="POST" target="_blank" id="changeForm">
<input type='hidden' name='data' id="changeForm_data">
</form>
</body>
<!doctype html>
<html>
<script src="/online_report/static/tools/js/jquery-1.11.3.js?v=1.1"></script>
<script src="/online_report/static/tools/js/jquery.nicescroll.js?v=1.1"></script>
<script src="/online_report/static/tools/js/bootstrap.js?v=1.1"></script>
<script src="/online_report/static/tools/js/encapsulation.js?v=1.2"></script>
<script src="/online_report/static/tools/js/minScroll.js?v=1.1"></script>
<script src="/online_report/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"></script>
<script src="/online_report/static/biz/cancellation_grid.js?v=1.0"></script>
<script>
// <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面
var companyInfo = ${json};
// var initpage = initPage({
// companyInfo: "",
// });
<head>
<meta charset='UTF-8'>
<link href="/static/tools/css/bootstrap.css?v=1.1" rel="stylesheet">
<!--滚动条-->
<link rel="stylesheet" href="/static/tools/css/scroll.css" />
<!--table样式-->
<link rel="stylesheet" href="/static/tools/css/table.css" />
<!--样式-->
<link rel="stylesheet" href="/static/tools/css/encapsulation.css" />
<!--时间插件-->
<link rel="stylesheet" href="/static/tools/js/My97DatePicker/skin/WdatePicker.css" />
<!--declare-->
<link rel="stylesheet" href="/static/css/declare/declare.css" />
<!-- 页面自定义样式 -->
<title>清税注销清册</title>
</head>
<body>
<div style="background-color:#FFFFFF;">
<div style="padding: 25px;">
<div class="div-border" style="padding-bottom: 20px;height: 60px;">
<img style="float:left;display:block" src="static/tools/images/cancellation.png">&nbsp;&nbsp;
<span style="float:left;display:block;margin-left: 10px;margin-top: 9px;top: 10px;" class="span-title">清税注销清册</span>
</div>
<div class="div-clear-folat" style="padding-top: 10px;">
<strong>税费申报</strong>
</div>
<hr class="hr-margin" />
<div id="taxGrid"></div>
<div class="div-clear-folat" style="padding-top: 10px;">
<strong>财务报表报送</strong>
</div>
<hr class="hr-margin" />
<div id="financialGrid"></div>
</div>
</div>
<form action="/declare/toPzzl" method="POST" target="_blank" id="changeForm">
<input type='hidden' name='data' id="changeForm_data">
</form>
</body>
<script src="/static/tools/js/jquery-1.11.3.js?v=1.1"></script>
<script src="/static/tools/js/jquery.nicescroll.js?v=1.1"></script>
<script src="/static/tools/js/bootstrap.js?v=1.1"></script>
<script src="/static/tools/js/encapsulation.js?v=1.2"></script>
<script src="/static/tools/js/minScroll.js?v=1.1"></script>
<script src="/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"></script>
<script src="/static/biz/cancellation_grid.js?v=1.0"></script>
<script>
// // <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面
// var companyInfo = ${json};
// // var initpage = initPage({
// // companyInfo: "",
// // });
// if (companyInfo.success) {
// var initpage = initPage(companyInfo.bean);
// $("#getInputValue").on("focus", function() {
// WdatePicker({
// isShowClear:false,
// dateFmt: 'yyyy-MM',
// onpicking: function(dp){
// initpage.changeDate(this, dp);
// }
// });
// });
// } else {
// alertWarning("请求失败!");
// // 弹出错误对话框
// }
var initpage;
$(function(){
//
var url = "http://localhost:7070"
$.ajax({
type: "GET",
url: url + "/online_report/cancellation",
dataType: "json", // 请求方式为jsonp
// async: false,
data: {
djxh: localStorage.getItem("djxh")
},
success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
//el表达式变jq
// $("#token").attr("value","");
var companyInfo = data;
$("#djxh").attr("value", companyInfo.djxh);
if (companyInfo.success) {
var initpage = initPage(companyInfo.bean);
initpage = initPage(companyInfo.bean);
$("#getInputValue").on("focus", function() {
WdatePicker({
isShowClear:false,
......@@ -72,6 +102,13 @@
alertWarning("请求失败!");
// 弹出错误对话框
}
</script>
},
error: function(xhr){
//jsonp 方式此方法不被触发
console.log("=======error======================")
}
})
})
</script>
</html>
\ No newline at end of file
</html>
\ No newline at end of file
......@@ -175,6 +175,10 @@ function initPage(companyInfo) {
* 税务申报 初始化数据获取
* @param {*} mydate
*/
//地址
//http://sbjs.tjsat.gov.cn:18090
//http://localhost:7070
var url = "http://localhost:7070";
var getTaxDeclaration = function(date, type) {
// TODO 开始加载等待动画
showLoading();
......@@ -184,7 +188,7 @@ function initPage(companyInfo) {
isFresh: type.toUpperCase() == "Y"
}
$.ajax({
url: "/online_report/declare/getPzzlList",
url: url + "/online_report/declare/getPzzlList",
data: param,
type: "POST",
dataType: "JSON"
......@@ -248,9 +252,32 @@ function initPage(companyInfo) {
//申报方式 当iszzsybjc=01同时pzzlDm=010101时,调用改方法
var declarationMethod = function (statu) {
submitData.ybjcState = statu;
var form = $("#changeForm");
form.find("#changeForm_data").val(JSON.stringify(submitData));
form.submit();
// var form = $("#changeForm");
// form.find("#changeForm_data").val(JSON.stringify(submitData));
// form.submit();
$.ajax({
type: "POST",
url: url + "/online_report/declare/toPzzl",
dataType: "json", // 请求方式为jsonp
data: {
data: JSON.stringify(submitData)
},
success: function (data) {
localStorage.setItem("data",JSON.stringify(submitData));
console.log("请求成功", data)
// if (data.url == "edit.jsp") {
// window.open("/jsp/declare/edit.html");
// }else if (data.url == "yearReport.jsp") {
// window.open("/jsp/declare/yearReport.html");
// }else if (data.url == "yearReportGLB.jsp") {
// window.open("/jsp/declare/yearReportGLB.html");
// }
},
error: function(xhr){
//jsonp 方式此方法不被触发
console.log("=======error======================")
}
})
// closeModal();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment