Commit 123e3ed2 authored by yangyuxin's avatar yangyuxin

测试页面公共方法登记序号修改传值

parent afa01da3
......@@ -71,16 +71,20 @@
$(function(){
//按期申报
var btnObj1 = $("#delcareBtn");
declareFun(btnObj1, "declare");
var djxhNumber1 = $("#form_djxh")
declareFun(btnObj1, djxhNumber1, "declare");
//更正申报
var btnObj2 = $("#amendBtn");
declareFun(btnObj2, "amend");
var djxhNumber2 = $("#form_djxh_amend");
declareFun(btnObj2, djxhNumber2, "amend");
//逾期申报
var btnObj3 = $("#overdueBtn");
declareFun(btnObj3, "overdue");
var djxhNumber3 = $("#form_djxh_overdue");
declareFun(btnObj3, djxhNumber3, "overdue");
//清册注销
var btnObj4 = $("#cancellationBtn");
declareFun(btnObj4, "cancellation");
var djxhNumber4 = $("#form_djxh_cancellation");
declareFun(btnObj4, djxhNumber4, "cancellation");
// $("#delcareBtn").click(function(){
// $.ajax({
// type: "GET",
......@@ -103,22 +107,22 @@
// });
//四个按钮请求的公共方法
function declareFun (btnObj, param) {
function declareFun (btnObj, djxhNumber, param) {
btnObj.click(function(){
$.ajax({
type: "GET",
url: url+"/online_report/" + param,
dataType: "json", // 请求方式为jsonp
data: {
djxh: $("#form_djxh").val()
djxh: djxhNumber.val()
},
success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
localStorage.setItem("djxh",$("#form_djxh").val());
localStorage.setItem("djxh",djxhNumber.val());
if (data.success) {
if (param == "declare") {
window.location.href = "/jsp/declare/index.html";
}else if (param == "amend") {
window.location.href = "/jsp/amend/index.html";
}else if (param == "overdue") {
}else if (param == "cancellation") {
......
<!DOCTYPE HTML>
<html>
<head>
<mete charset='UTF-8'>
<link href="/static/tools/css/bootstrap.css?v=1.1" rel="stylesheet">
<!--分页-->
<link rel="stylesheet" href="/static/tools/css/paging-table.css" />
<!--下拉选择-->
<link rel="stylesheet" href="/static/tools/css/select.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/amend/amend.css" />
<title>申报更正</title>
</head>
<body>
<div class="div-border father-div">
<div class="div-border first-child-div">
<div class="div-float"></div>
<div class="div-float-middle">
<div style="padding-bottom: 16px;height: 55px;">
<img class="img-img" src="static/tools/images/sbgz.png">&nbsp;&nbsp;
<span class="span-title">申报更正</span>
</div>
<!-- <div>
<div style="padding-bottom: 20px;">
<span style="">申报表种类:</span>
<select id="taxName">
</select>
</div>
</div> -->
<div style="padding-top: 15px;">
<!-- <span>申报日期起止:</span>
<input readonly id="declarationDateStart" name="declarationDateStart" style="width: 10%; display: inline;" type="text" value="" class="Wdate checkId-input check-items-birthday form-control" onfocus="WdatePicker({isShowClear:false,dateFmt:'yyyy-MM-dd'})">
<span>&nbsp;&nbsp;-&nbsp;&nbsp;</span>
<input readonly id="declarationDateEnd" name="declarationDateEnd" style="width: 10%; display: inline;" type="text" value="" class="Wdate checkId-input check-items-birthday form-control" onfocus="WdatePicker({isShowClear:false,dateFmt:'yyyy-MM-dd'})"> -->
<span>&nbsp;&nbsp;税款所属期起止:</span>
<input readonly id="durationOfTaxStart" name="durationOfTaxStart" style="width: 10%; display: inline;min-width: 150px" type="text" class="Wdate checkId-input check-items-birthday form-control" onfocus="WdatePicker({isShowClear:false,dateFmt:'yyyy-MM-dd'})">
<span>&nbsp;&nbsp;-&nbsp;&nbsp;</span>
<input readonly id="durationOfTaxEnd" name="durationOfTaxEnd" style="width: 10%; display: inline;min-width: 150px" type="text" class="Wdate checkId-input check-items-birthday form-control" onfocus="WdatePicker({isShowClear:false,dateFmt:'yyyy-MM-dd'})">
<input class="btn btn-primary btn-search margin-left" style="margin-top: -5px;" type="button" id="getAmendData" value="查询" />
</div>
<div style="height:16px;"></div>
<div id="taxAmendGrid"></div>
<div id="father-paging" style="width:98.7%;height: 40px;background-color: #F5F5F5;margin-left: 4px;">
<div style="float:right;margin-right: 15px;" id="taxAmendPaging" class="page_divContainer">
<div class="div-float"></div>
</div>
</div>
<div style="padding-top: 50px;">
<div class="font-clo">温馨提示:</div>
<div><span class="span-font-size">1、本功能主要用于更正当期或往期已申报的申报表(税款属期2017年01月01日以后(含))</span></div>
</div>
<!--跳转需要传递的参数-->
<form action="/amend/toGzPzzl" method="POST" target="_blank" id="changeForm_amend">
<input type='hidden' name='data' id="changeForm_data">
<!-- <input type='hidden' name='token' id="changeForm_token">
<input type='hidden' name='pzzlDm' id="changeForm_pzzlDm">
<input type='hidden' name='sssqQ' id="changeForm_sssqQ">
<input type='hidden' name='sssqZ' id="changeForm_sssqZ">
<input type='hidden' name='sbbsx' id="changeForm_sbbsx"> -->
</form>
<input type='hidden' name='data' value="${djxh}" id="djxh">
<input type='hidden' name='data' value="${token}" id="token">
<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.3"></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/amend_grid.js?v=1.0"></script>
<script>
// <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面
var companyInfo = ${json};
if (companyInfo.success) {
var initpage = initPage(companyInfo.bean);
} else {
alertWarning("请求失败!");
// 弹出错误对话框
}
// -->
</script>
</body>
</html>
\ No newline at end of file
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