Commit cbb5b526 authored by 彭令令's avatar 彭令令

所得税弹框添加属期判断标志,避免重复调方法

parent ef92c87b
......@@ -46,8 +46,8 @@ function getInitTable() {
skssq = companyInfo.bean.taxInfos[i].sksssjz
}
}
if (skssq) {
getJjkjTag(djxhbz,companyInfo.bean.sbsq.replace(/\-/g, ""),skssq)
if (skssq == '20210930') {
getJjkjTag(djxhbz,companyInfo.bean.sbsq.replace(/\-/g, ""))
}
} else {
......@@ -85,7 +85,7 @@ function getInitTable() {
})
}
// 获取研发费用加计扣减标志
function getJjkjTag(djxh,nsrsbq,sbsq) {
function getJjkjTag(djxh,nsrsbq) {
$.ajax({
type: "post",
url: config.url + "/online/zxtb/get_yffyjjkcbz",
......@@ -100,7 +100,7 @@ function getJjkjTag(djxh,nsrsbq,sbsq) {
var companyInfo = data;
if (companyInfo.returnCode=='00') {
// console.log('9月7号这个接口返回成功啦!!!!')
if (companyInfo.content == 'Y' && sbsq == '20210930') {
if (companyInfo.content == 'Y') {
myAlert("提示", "按照最新政策规定,企业(负面清单行业除外)自2021年三季度预缴开始,可就前三季度研发费用申报享受加计扣除。同时,制造业享受研发费用加计扣除比例由75%提高到100%。", "确定");
// localStorage.setItem('isShow','Y')
}
......@@ -316,8 +316,8 @@ function initPage(companyInfo) {
skssq = data.bean.taxInfos[i].sksssjz
}
}
if (skssq) {
getJjkjTag(djxhbz,sbqDate.replace(/\-/g, ""),skssq)
if (skssq == '20210930') {
getJjkjTag(djxhbz,sbqDate.replace(/\-/g, ""))
}
} else {
if (data.errmsg != undefined) {
......
......@@ -81,8 +81,8 @@ function getInitTable() {
companyInfo.bean.return = true; /* @Author ygy @Date 10:12 2020/7/8 @Description 前端判断接口成功返回数据标记用于区分是否执行初始化table方法*/
config.return = true;
initpage = initPage(companyInfo.bean);
if (skssq) {
getJjkjTag(djxh,companyInfo.bean.sbsq.replace(/\-/g, ""),skssq)
if (skssq == '20210930') {
getJjkjTag(djxh,companyInfo.bean.sbsq.replace(/\-/g, ""))
}
} else {
hideLoading();
......@@ -119,7 +119,7 @@ function getInitTable() {
}
// pll 所得税弹框
// 获取研发费用加计扣减标志
function getJjkjTag(djxh,nsrsbq,sbsq) {
function getJjkjTag(djxh,nsrsbq) {
$.ajax({
type: "post",
url: config.url + "/online/zxtb/get_yffyjjkcbz",
......@@ -134,7 +134,7 @@ function getJjkjTag(djxh,nsrsbq,sbsq) {
var companyInfo = data;
if (companyInfo.returnCode=='00') {
// console.log('9月7号这个接口返回成功啦!!!!')
if (companyInfo.content == 'Y' && sbsq == '20210930') {
if (companyInfo.content == 'Y') {
myAlert("提示", "按照最新政策规定,企业(负面清单行业除外)自2021年三季度预缴开始,可就前三季度研发费用申报享受加计扣除。同时,制造业享受研发费用加计扣除比例由75%提高到100%。", "确定");
}
} else {
......@@ -344,8 +344,8 @@ function initPage(companyInfo) {
if (type == 'Y') {
myAlert("提示", "重置清册成功", "确定")
}
if (skssq) {
getJjkjTag(djxh,sbqDate.replace(/\-/g, ""),skssq)
if (skssq == '20210930') {
getJjkjTag(djxh,sbqDate.replace(/\-/g, ""))
}
} else {
if (data.errmsg != undefined) {
......
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