Commit d931e717 authored by yangyuxin's avatar yangyuxin

按钮样式和税费申报bug

parent e5bb61d1
......@@ -42,9 +42,11 @@
<span>申报月份:</span>
<input readonly id="getInputValue" name="birth_date" style="width: 10%; display: inline;min-width: 150px"
type="text" class="Wdate checkId-input check-items-birthday form-control">
<input id="reset" class="btn btn-primary tdDong-btn"
<!-- <input id="reset" class="btn btn-primary tdDong-btn"
style="margin-right: 10%;margin-right: 10px;height: 32px;margin-top: 5px;position:absolute;right: 120px;"
type="button" value="重置申报清册" />
type="button" value="重置申报清册" /> -->
<div id="reset" class="btn btn-primary tdDong-btn"
style="position:absolute;right: 120px;padding: 8px 10px;height: 30px;">重置申报清册</div>
</div>
</div>
</br>
......
......@@ -19,7 +19,7 @@ function getInitTable() {
token: getUrlParam("token"),
sbsq: "",
// pzzlDm: getUrlParam("pzzlDm"),
pzzlDm: "12101|10401|10402|11303|11304",
pzzlDm: "10110|10111|10112|10113|10107|10114|10121|10118|10119|10902|10401|10402|11303|10304",
},
// beforeSend:function(){
// myAlert("提示", "正在获取初始化信息", "确定")
......@@ -267,7 +267,7 @@ function initPage(companyInfo) {
refreshSbzt: refreshSbzt
}
$.ajax({
url: url + "/online/declare/getPzzlList1",
url: url + "/online/declare/cxsTcPzzlList",
data: param,
type: "POST",
dataType: "JSON",
......@@ -329,15 +329,15 @@ function initPage(companyInfo) {
$('#zhsbtcBox').append(divObj1); //将子div添加到父div中
if ((i-1+1) == 0) {
var btnObj = '<input id="jfsbBtn" class="btn btn-primary"'+
'style="height: 30px;right: 120px;margin: 0; padding: 0 5px;float: right;"'+
'type="button" value="税费申报"/>'+
'<input id="jkBtn" class="btn btn-primary"'+
'style="height: 30px;right: 120px;margin: 0 10px 0 0; padding: 0 5px;float: right;"'+
'type="button" value="缴款" />';
var btnObj = '<div id="jfsbBtn" class="btn btn-primary"'+
'style="float: right;padding: 4px 10px;height: 30px;"'+
'>税费申报</div>'+
'<div id="jkBtn" class="btn btn-primary"'+
'style="float: right;padding: 4px 10px;height: 30px;margin-right:20px;"'+
'>缴款</div>';
$('#btnBox').append(btnObj);
$(document).on("click","#jfsbBtn", function(){
$("#jfsbBtn").off('click');
$("#jfsbBtn").on("click", function(){
cxurlHandleFun(companyInfo.djxh)
});
......@@ -549,20 +549,22 @@ function initPage(companyInfo) {
}
//财行页面的跳转
var cxurlHandleFun = function (djxh){
console.log(companyInfo, djxh)
console.log(companyInfo, djxh, nowdate.substring(5))
//http://dev-ws.htyfw.com.cn/web/index.html?djxh=10111298000025892661&zsDjxh=10111298000025892661&lybz=online&operateType=shenbao&nsrmc=%E5%A4%A9%E6%B4%A5%E7%A5%9E%E5%B7%9E%E6%B5%A9%E5%A4%A9%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&nsrsbh=911201167773033345&sydbz=Y&month=10 web/tax-plugin
if (window.location.href.indexOf('https://wsswjmn.tjsat.gov.cn')>-1 || window.location.href.indexOf('https://etax.tianjin.chinatax.gov.cn')>-1) {
var cxUrl = '/web/tax-plugin/index.html?lybz=online&operateType=shenbao&sydbz=Y&djxh='+djxh+'&zsDjxh='+companyInfo.zsDjxh+'&value='+companyInfo.value+'&nsrsbh='+companyInfo.nsrsbh+'month='+Math.random()+'random='+Math.random();
var cxUrl = '/web/tax-plugin/index.html?lybz=online&operateType=shenbao&sydbz=Y&djxh='+djxh+'&zsDjxh='+companyInfo.zsDjxh+'&value='+companyInfo.value+'&nsrsbh='+companyInfo.nsrsbh+'month='+nowdate.substring(5)+'random='+Math.random();
} else {
var cxUrl = 'http://dev-ws.htyfw.com.cn/web/index.html?lybz=online&operateType=shenbao&sydbz=Y&djxh='+djxh+'&zsDjxh='+companyInfo.zsDjxh+'&nsrsbh='+companyInfo.nsrsbh+'month='+Math.random()+'random='+Math.random();
var cxUrl = 'http://dev-ws.htyfw.com.cn/web/index.html?lybz=online&operateType=shenbao&sydbz=Y&djxh='+djxh+'&zsDjxh='+companyInfo.zsDjxh+'&nsrsbh='+companyInfo.nsrsbh+'month='+nowdate.substring(5)+'random='+Math.random();
}
$("a").remove(".cxA");
let aLink = document.createElement('a');
aLink.classList.add('cxA');
aLink.href = cxUrl;
aLink.target = '_blank';
aLink.style.display = 'none';
document.body.appendChild(aLink);
aLink.click();
document.body.removeChild(aLink)
}
......
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