Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zxtb_to_ssfwpt
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Bugzilla
Bugzilla
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
卢世豪
zxtb_to_ssfwpt
Commits
68b2a772
Commit
68b2a772
authored
Jun 09, 2022
by
彭令令
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5292 快捷申报缴款功能 #2
parent
e1bd80ce
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
864 additions
and
0 deletions
+864
-0
index.html
jsp/declarePay/index.html
+149
-0
declarePay.js
static/biz/declarePay.js
+715
-0
No files found.
jsp/declarePay/index.html
0 → 100644
View file @
68b2a772
<!doctype html>
<html>
<head>
<meta
charset=
'UTF-8'
>
<!-- 让360双核浏览器用webkit内核渲染页面-->
<meta
name=
"renderer"
content=
"webkit"
>
<meta
name=
renderer
content=
webkit
>
<!-- 让IE浏览器用最高级内核渲染页面 还有用 Chrome 框架的页面用webkit 内核 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<!-- IOS6全屏 Chrome高版本全屏 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"edge"
>
<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>
<script>
document
.
write
(
"<script type='text/javascript' src='../../static/config.js?time="
+
Math
.
random
()
+
"'></"
+
"script"
+
">"
)
</script>
<body>
<div>
<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/zxtb.png"
>
<span
style=
"float:left;display:block;margin-left: 10px;margin-top: 9px;top: 10px;"
class=
"span-title"
>
快捷申报缴款
</span>
</div>
<div>
<!-- <div class="div-float" style="padding-bottom: 8px;">
<span>申报月份:</span>
<input readonly id="getInputValue" name="birth_date" style="width: 20%; display: inline;" type="text"
class="Wdate checkId-input check-items-birthday form-control">
</div> -->
<div
class=
"div-float text-right div-margin "
style=
"height:100%;margin-left:52%"
>
<input
id=
"pay"
class=
"btn btn-primary tdDong-btn"
style=
"margin-right: 1px;height: 32px;"
type=
"button"
value=
"缴款"
/>
<input
id=
"reset"
class=
"btn btn-primary tdDong-btn"
style=
"margin-right: 100px;height: 32px;"
type=
"button"
value=
"重置申报清册"
/>
</div>
</div>
</br>
<div
class=
"div-clear-folat"
>
<strong>
正常税种
</strong>
</div>
<hr
class=
"hr-margin"
/>
<div
id=
"taxGrid"
></div>
<div
class=
"div-clear-folat"
style=
"padding-top: 10px;"
>
<strong>
财行税税种
</strong>
</div>
<div
class=
"sbqkTj"
><span
class=
"span-font-size"
>
注:无税源信息的税种,申报情况为已申报0条 未申报0条,如需申报,请进行税源信息采集
</span></div>
<hr
class=
"hr-margin"
/>
<div
id=
"financialGrid"
></div>
<!-- <div style="height:16px"></div> -->
<div
class=
"font-clo"
style=
"padding-top: 20px;"
>
<div
style=
"font-size:12px"
>
温馨提示:
</div>
<div
class=
"reminder"
><span
class=
"span-font-size"
>
1、如近期有税费种认定、纳税人资格、备案等发生变动,页面展现清册与实际所需不符的,
</span></div>
<div
class=
"reminder"
><span
class=
"span-font-size"
>
请点此处
“
<label
for=
"reset"
id=
"reset1"
class=
"label_declare"
>
重置申报清册
</label>
”
对该户清册进行重新生成。
</span>
</div>
<div
class=
"reminder"
><span
class=
"span-font-size"
>
2、点击页眉
“申报缴税”
即会触发下属首个菜单
“按期应申报”
,无需再点击
“按期应申报”
,
</span>
</div>
<div
class=
"reminder"
><span
class=
"span-font-size"
>
如发现清册重复,也请点击前述链接
“重置申报清册”
。
</span>
</div>
<div
class=
"reminder"
><span
class=
"span-font-size"
>
无上述1、2情况请勿点击重置。
</span></div>
<div
class=
"reminder"
><span
class=
"span-font-size"
>
3、仅当操作期间申报状态有变化时点
“刷新”
,切换月份、刚进入本页面、申报完成后本页面已显示
“已申报”
等情形无需刷新。
</span>
</div>
<div
class=
"reminder"
><span
class=
"span-font-size"
>
4、如发现
“刷新”
后的申报日期和状态不是最新情况,通常是因为
“刷新”
按钮所查数据同步延时所致,
</span>
</div>
<div
class=
"reminder"
><span
class=
"span-font-size"
>
如遇此情况,等几秒钟再
“刷新”
或退出后稍后重进申报清册查看。
</span>
</div>
<div
class=
"reminder"
><span
class=
"span-font-size"
>
5、没有财务报表清册,可能是以下原因之一:
</span></div>
<div
class=
"reminder"
><span
class=
"span-font-size"
>
未做财务报表备案;
</span></div>
<div
class=
"reminder"
><span
class=
"span-font-size"
>
只做了备案报告书但未做具体的会计报表名称;
</span></div>
</div>
</div>
</div>
</div>
<input
type=
'hidden'
name=
'data'
value=
"${token}"
id=
"token"
>
<input
type=
'hidden'
name=
'data'
value=
"${djxh}"
id=
"djxh"
>
<form
action=
"/declare/toPzzl"
method=
"POST"
target=
"_blank"
id=
"changeForm"
>
<input
type=
'hidden'
name=
'data'
id=
"changeForm_data"
>
</form>
<div
id=
"myMask"
class=
"myMask"
hidden
></div>
<div
id=
"myModal"
class=
"myModal"
hidden
>
<div
class=
"myModal-title"
>
选择申报方式
</div>
<div
class=
"myModal-body"
>
<div
class=
"myModal-body-div"
>
<div
style=
"line-height: 40px;margin: 10px;font-size: 14px;"
>
<div
id=
"dName"
></div>
<button
class=
"btn btn-primary"
id=
"normalDeclaration"
onclick=
"initpage.declarationMethod('N')"
>
一般申报
</button>
</div>
</div>
<div
class=
"myModal-body-div"
style=
"clear:both;padding-top: 10px;"
>
<div
style=
"line-height: 40px;margin: 10px;font-size: 14px;"
>
<div
id=
"ybName"
></div>
<button
class=
"btn btn-primary ybDeclaration1"
id=
"ybDeclaration"
onmouseover=
"this.className='btn ybDeclaration'"
onmouseout=
"this.className='btn btn-primary ybDeclaration1'"
onclick=
"initpage.declarationMethod('Y')"
>
一表集成
</button>
</div>
</div>
<img
class=
"img-ybjc-modal"
onclick=
"initpage.closeModal()"
src=
"../../static/tools/images/close.png"
>
</div>
</div>
</body>
<script
src=
"../../static/tools/js/jquery-1.11.3.js?v=1.1"
></script>
<script
src=
"../../static/js/tax/tool.js"
></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>
document
.
write
(
"<script type='text/javascript' src='../../static/biz/declarePay.js?time="
+
Math
.
random
()
+
"'></"
+
"script"
+
">"
)
</script>
<script>
//
<!--
// 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面
// var companyInfo = ${json};
// 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("请求失败!");
// // 弹出错误对话框
// }
</script>
</html>
\ No newline at end of file
static/biz/declarePay.js
0 → 100644
View file @
68b2a772
var
zjhm
=
''
;
var
initpage
;
var
sbqDate
=
''
;
var
yearBblxDm
=
[
'10414'
,
'10420'
];
var
ccxwsBblxDm
=
[
'10111'
,
'10902'
,
'10118'
,
'10119'
,
'10113'
,
'10121'
,
'10107'
,
'10110'
,
'10114'
,
'10112'
]
var
djXh
=
""
var
prefix
=
""
;
var
AuthorizationBz
=
""
$
(
function
()
{
if
(
config
.
environmental
==
'test'
||
config
.
environmental
==
'preProduce'
)
{
prefix
=
"/web"
;
}
else
if
(
config
.
environmental
==
'production'
)
{
prefix
=
"/web/online"
;
}
showLoading
();
getInitTable
();
})
function
getInitTable
()
{
$
.
ajax
({
type
:
"post"
,
url
:
config
.
url
+
"/online/declare/kjsbIndex"
,
dataType
:
"json"
,
// 请求方式为jsonp
// async: false,
data
:
{
djxh
:
getUrlParam
(
"djxh"
),
token
:
getUrlParam
(
"token"
),
sbsq
:
""
,
pzzlDm
:
getUrlParam
(
"pzzlDm"
),
},
success
:
function
(
data
)
{
//客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading
();
var
companyInfo
=
data
;
AuthorizationBz
=
companyInfo
.
bean
.
value
if
(
companyInfo
.
success
)
{
zjhm
=
companyInfo
.
bean
.
zjhm
djXh
=
companyInfo
.
bean
.
taxInfos
[
0
].
zsDjxh
config
.
value
=
companyInfo
.
bean
.
value
companyInfo
.
bean
.
config
=
config
companyInfo
.
bean
.
return
=
true
;
/* @Author ygy @Date 10:12 2020/7/8 @Description 前端判断接口成功返回数据标记用于区分是否执行初始化table方法*/
config
.
return
=
true
;
initpage
=
initPage
(
companyInfo
.
bean
);
var
djxhbz
=
companyInfo
.
bean
.
djxh
var
skssq
for
(
var
i
in
companyInfo
.
bean
.
taxInfos
)
{
if
(
companyInfo
.
bean
.
taxInfos
[
i
].
bblxDm
==
'10401'
)
{
skssq
=
companyInfo
.
bean
.
taxInfos
[
i
].
sksssjz
}
}
if
(
skssq
==
'20210930'
)
{
getJjkjTag
(
djxhbz
,
companyInfo
.
bean
.
sbsq
.
replace
(
/
\-
/g
,
""
))
}
}
else
{
hideLoading
();
if
(
data
.
errmsg
!=
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
if
(
!
companyInfo
.
bean
)
{
companyInfo
.
bean
=
{};
companyInfo
.
bean
.
djxh
=
getUrlParam
(
"djxh"
);
companyInfo
.
bean
.
return
=
false
;
}
companyInfo
.
bean
.
config
=
config
initpage
=
initPage
(
companyInfo
.
bean
);
// 弹出错误对话框
}
// $("#getInputValue").on("focus", function () {
// WdatePicker({
// isShowClear: false,
// dateFmt: 'yyyy-MM',
// onpicking: function (dp) {
// initpage.changeDate(this, dp);
// }
// });
// });
},
error
:
function
(
xhr
)
{
hideLoading
();
//jsonp 方式此方法不被触发
console
.
log
(
"=======error======================"
)
}
})
}
// 获取研发费用加计扣减标志
function
getJjkjTag
(
djxh
,
nsrsbq
)
{
$
.
ajax
({
type
:
"post"
,
url
:
config
.
url
+
"/online/zxtb/get_yffyjjkcbz"
,
dataType
:
"json"
,
// 请求方式为jsonp
// async: false
data
:
{
djxh
:
djxh
,
nsrsbq
:
nsrsbq
},
success
:
function
(
data
)
{
//客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading
();
var
companyInfo
=
data
;
if
(
companyInfo
.
returnCode
==
'00'
)
{
// console.log('9月7号这个接口返回成功啦!!!!')
if
(
companyInfo
.
content
==
'Y'
)
{
myAlert
(
"提示"
,
"按照最新政策规定,企业(负面清单行业除外)自2021年三季度预缴开始,可就前三季度研发费用申报享受加计扣除。同时,制造业享受研发费用加计扣除比例由75%提高到100%。"
,
"确定"
);
// localStorage.setItem('isShow','Y')
}
}
else
{
hideLoading
();
if
(
data
.
errmsg
!=
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
// 弹出错误对话框
}
},
error
:
function
(
xhr
)
{
hideLoading
();
//jsonp 方式此方法不被触发
console
.
log
(
"=======error======================"
)
}
})
}
/**
* 按期申报填报列表页控制脚本
*
* @author 于广洋
* @modify 王雷
*/
// -------------------------------
/**
* 绘制税种填报页面
*
* @param {*} companyInfo
*/
function
initPage
(
companyInfo
)
{
getIEVersion
();
localStorage
.
setItem
(
"cancellation"
,
null
);
var
companyInfo
=
companyInfo
;
var
djxh
=
companyInfo
.
djxh
;
var
nowdate
=
""
;
// 存储当前选择的时间框;
var
submitData
/**
* 展示税种申报信息
*/
var
showTax
=
function
(
taxInfo
)
{
if
(
taxInfo
.
length
>
0
)
{
for
(
var
i
=
0
;
i
<
taxInfo
.
length
;
i
++
)
{
if
(
taxInfo
[
i
].
sbrq
)
{
taxInfo
[
i
].
sbrq
=
tool
.
formatDate
(
taxInfo
[
i
].
sbrq
.
split
(
" "
)[
0
]);
}
if
(
taxInfo
[
i
].
bblxDm
==
'30101'
)
{
taxInfo
[
i
].
sssqQ
=
"-"
;
taxInfo
[
i
].
sssqZ
=
"-"
;
}
if
([
null
,
undefined
,
''
,
"null"
].
includes
(
taxInfo
[
i
].
se
))
{
taxInfo
[
i
].
se
=
"-"
}
if
(
taxInfo
[
i
].
sbzt
==
'Y'
)
{
taxInfo
[
i
].
sbzt
=
"已申报"
}
else
{
taxInfo
[
i
].
sbzt
=
"未申报"
}
if
(
taxInfo
[
i
].
jkzt
==
'Y'
)
{
taxInfo
[
i
].
jkzt
=
"已缴款"
}
else
if
(
taxInfo
[
i
].
jkzt
==
'N'
){
taxInfo
[
i
].
jkzt
=
"未缴款"
}
else
if
(
taxInfo
[
i
].
jkzt
==
'W'
){
taxInfo
[
i
].
jkzt
=
"无税款"
}
else
{
taxInfo
[
i
].
jkzt
=
"-"
}
}
}
var
id
=
"#taxGrid"
;
var
buttonHtml
=
"填写申报表"
;
var
order
=
[
"pzzlMc"
,
"djxh"
,
"zgswskfjMc"
,
"sssqQ"
,
"sssqZ"
,
"sbzt"
,
"se"
,
"jkzt"
,
"sbrq"
,
"do"
];
var
promptStatement
=
""
;
var
headerList
=
[{
name
:
"序号"
,
width
:
"4%"
},
{
name
:
"申报表"
,
width
:
"16%"
},
{
name
:
"登记序号"
,
width
:
"12%"
},
{
name
:
"主管税务所(科、分局)"
,
width
:
"20%"
},
{
name
:
"税款所属期起"
,
width
:
"7%"
},
{
name
:
"税款所属期止"
,
width
:
"7%"
},
{
name
:
"申报状态"
,
width
:
"6%"
},
{
name
:
"税额"
,
width
:
"5%"
},
{
name
:
"缴款状态"
,
width
:
"6%"
},
{
name
:
"申报日期"
,
width
:
"7%"
},
{
name
:
"操作"
,
width
:
"10%"
}];
//渲染表
getTableDeclaration
(
id
,
order
,
headerList
,
taxInfo
,
buttonHtml
,
promptStatement
)
};
/**
* 展示财行税申报信息
*/
var
showFinancial
=
function
(
financialInfo
,
type
)
{
//时间格式化
$
.
each
(
financialInfo
,
function
(
i
,
item
)
{
if
(
item
.
sssqQ
)
{
item
.
sssqQ
=
tool
.
formatDate
(
item
.
sssqQ
);
}
if
(
item
.
sssqZ
)
{
item
.
sssqZ
=
tool
.
formatDate
(
item
.
sssqZ
);
}
if
(
item
.
sbrq
)
{
item
.
sbrq
=
tool
.
formatDate
(
item
.
sbrq
);
}
if
([
null
,
undefined
,
'null'
,
''
].
includes
(
item
.
ysb
))
{
item
.
ysb
=
'0'
}
if
([
null
,
undefined
,
'null'
,
''
].
includes
(
item
.
wsb
))
{
item
.
wsb
=
'0'
}
if
([
null
,
undefined
,
'null'
,
''
].
includes
(
item
.
yjk
))
{
item
.
yjk
=
'0.0'
}
if
([
null
,
undefined
,
'null'
,
''
].
includes
(
item
.
wjk
))
{
item
.
wjk
=
"0.0"
}
item
.
sbqk
=
'已申报'
+
item
.
ysb
+
'条,未申报'
+
item
.
wsb
+
'条'
item
.
jkqk
=
'已缴'
+
item
.
yjk
+
'元,未缴'
+
item
.
wjk
+
'元'
item
.
buttonHtml
=
"填写申报表"
;
// 印花税 - 10111,10902 税源信息采集 申报
// 耕地占用税 - 10118
// 契税 - 10119 -
// 土地增值税 - 10113
// 环境保护税 - 10121
// 资源税 - 10107
if
([
'10111'
,
'10902'
,
'10118'
,
'10119'
,
'10113'
,
'10121'
,
'10107'
].
indexOf
(
item
.
bblxDm
)
>
-
1
)
{
item
.
buttonHtml
=
"税源信息采集 , 税费申报"
// $(".tdDong-btn").css({"margin-left":"3%"});
}
else
if
([
'10110'
,
'10114'
,
'10112'
].
indexOf
(
item
.
bblxDm
)
>
-
1
)
{
// 房产税 - 10110 申报
// 车船税 - 10114 -
// 城镇土地使用税 - 10112
item
.
buttonHtml
=
"税费申报"
}
else
{
item
.
buttonHtml
=
"填写申报表"
;
}
})
var
id
=
"#financialGrid"
;
var
buttonHtml
=
""
;
var
order
=
[
"pzzlMc"
,
"djxh"
,
"zgswskfjMc"
,
"sssqQ"
,
"sssqZ"
,
"sbqk"
,
"jkqk"
,
"do"
];
var
promptStatement
=
""
;
// if (financialInfo.length < 1 && type == 1) {
// promptStatement = "您尚未进行财务报表类型备案,请先备案后再进行申报";
// }
var
headerList
=
[{
name
:
"序号"
,
width
:
"4%"
},
{
name
:
"申报表"
,
width
:
"14%"
},
{
name
:
"登记序号"
,
width
:
"12%"
},
{
name
:
"主管税务所(科、分局)"
,
width
:
"20%"
},
{
name
:
"税款所属期起"
,
width
:
"7%"
},
{
name
:
"税款所属期止"
,
width
:
"7%"
},
{
name
:
"申报情况"
,
width
:
"12%"
},
{
name
:
"缴款情况"
,
width
:
"12%"
},
{
name
:
"操作"
,
width
:
"12%"
}];
//渲染表
getTableDeclaration
(
id
,
order
,
headerList
,
financialInfo
,
buttonHtml
,
promptStatement
)
};
/**
* 税务申报table渲染
* @param {*} id
* @param {*} order
* @param {*} headerList
* @param {*} ddt
* @param {*} buttonHtml
*/
var
getTableDeclaration
=
function
(
id
,
order
,
headerList
,
ddt
,
buttonHtml
,
promptStatement
)
{
var
tableObj
=
{
id
:
id
,
//tabel父元素的id
autoHeight
:
ddt
.
length
>
0
?
10
:
""
,
containerWidth
:
"99%"
,
//table占父元素的百分比
autoHeight
:
ddt
.
length
>
0
?
10
:
""
,
// 默认10行
order
:
order
,
//数据按照什么顺序排序 1.do为是否保函操作 2.序号列会自动添加不需要写
onlyId
:
"uuId"
,
//数据的唯一标识
height
:
"320"
,
//表格的高度
buttonHeight
:
""
,
//表格的高度
buttonHtml
:
buttonHtml
,
//按钮里的字
headerList
:
headerList
,
//表头名字及占比,顺序与order对应
promptStatement
:
promptStatement
,
// 没有数据时默认提示
data
:
{
page
:
"1"
,
pageSize
:
ddt
.
length
},
jsonReady
:
ddt
,
callback
:
function
(
data
,
node
)
{
data
.
operateType
=
'3'
;
data
.
sbbz
=
'3'
;
data
.
value
=
config
.
value
;
if
(
data
.
sbzt
==
"Y"
)
{
myAlert
(
"提示"
,
"当前申报表已经申报"
,
"确定"
)
return
false
;
}
if
(
node
[
0
].
innerText
==
"税费申报"
)
{
window
.
open
(
cxurlHandleFun
(
data
.
djxh
),
'_blank'
);
}
else
if
(
node
[
0
].
innerText
==
"税源信息采集"
)
{
window
.
open
(
cjurlHandleFun
(
data
.
bblxDm
,
data
),
'_blank'
);
}
else
if
(
node
[
0
].
innerText
==
"填写申报表"
)
{
if
(
data
.
sourceFlag
==
"ssfwpt_sbzj"
)
{
window
.
mlistener
=
{
selectRowData
:
{},
};
data
.
fillingFlag
=
"declare"
// 填报标记
data
.
saveUserId
=
"zxtb"
;
// 用户id
window
.
mlistener
.
selectRowData
=
data
;
if
(
yearBblxDm
.
indexOf
(
data
.
bblxDm
)
!=
-
1
)
{
data
.
saveUserId
=
"zxtb_singleReport"
;
// 用户id
data
.
userId
=
"zxtb"
;
// userId
window
.
open
(
prefix
+
config
.
yearTaxTable
,
'_blank'
);
}
else
{
window
.
open
(
prefix
+
config
.
ssfwptPage
,
'_blank'
);
}
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
getTaxOverdue
(
nowDate
,
"N"
,
'2'
);
},
1000
);
}
})
}
else
if
(
data
.
sourceFlag
==
"ssfwpt_sbzj_version_2"
)
{
window
.
mlistener
=
{
selectRowData
:
{},
urlList
:
{
getMenu
:
'/tax_service/getBbLb'
,
//菜单接口
openTable
:
"/tax_service/open_table"
,
//开表接口
getData
:
"/tax_service/get_data"
,
//提取数据接口
saveTable
:
"/tax_service/save_single_sbb_info"
,
//保存
deleteTable
:
"/tax_service/delete_single_sbb_info"
,
//删除
checkTaxTable
:
"/tax_service/report_data_validate"
,
//表间校验
declareTable
:
"/tax_service/declare"
,
//申报
downloadFile
:
"/tax_service/load_declare_file"
//下载申报文件接口
}
};
data
.
fillingFlag
=
"declare"
// 填报标记
data
.
flag
=
''
//清算标志 1是清算,空是正常开表
window
.
mlistener
.
selectRowData
=
data
;
var
openUrl
=
prefix
+
config
.
tableBridge
;
//测试环境
window
.
open
(
openUrl
,
'_blank'
);
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
getTaxDeclaration
(
sbqDate
,
"N"
,
'2'
);
},
1000
);
}
})
}
else
{
data
.
djxh
=
djxh
;
data
.
iszzsybjc
=
companyInfo
.
iszzsybjc
;
// 一表申报代码
data
.
nsrsbh
=
companyInfo
.
nsrsbh
;
// 那随人识别号
data
.
nssbq
=
nowDate
;
// 将选择的日期放入json中
data
.
checkTime
=
false
;
if
(
data
.
pzzlDm
===
'11602'
)
{
var
List
=
companyInfo
.
taxInfos
.
filter
(
function
(
item
)
{
return
item
.
pzzlDm
==
'10101'
||
item
.
pzzlDm
==
'10102'
})
if
(
List
.
length
===
0
)
{
data
.
checkTime
=
true
;
}
for
(
var
i
=
0
;
i
<
List
.
length
;
i
++
)
{
if
(
List
[
i
].
sssqQ
!==
data
.
sssqQ
||
List
[
i
].
sssqZ
!==
data
.
sssqZ
)
{
data
.
checkTime
=
true
;
break
;
}
}
}
submitData
=
data
;
if
(
node
.
context
.
innerText
==
"填写申报表"
&&
companyInfo
.
iszzsybjc
==
"01"
&&
data
.
pzzlDm
==
"10101"
)
{
initpage
.
declarationMethod
(
'N'
)
// if(node.context.innerText=="填写申报表"){
// $('#myMask').show();
// $('#myModal').show();
// $('#dName').html(data.pzzlMc);
// $('#dName').attr("title",data.pzzlMc);//修改title值
// $('#ybName').html(data.pzzlMc);
// $('#ybName').attr("title",data.pzzlMc);//修改title值
}
else
{
declarationMethod
(
"N"
)
}
}
}
}
//点击按钮后的回调函数
};
var
object
=
tool
.
tableCreate
(
tableObj
);
$
(
"#financialGrid .tdDong-btn"
).
css
({
"float"
:
"left"
,
"margin-left"
:
'2%'
,
'margin-top'
:
'1%'
});
};
/**
* 税务申报 初始化数据获取
* @param {*} mydate
*/
var
url
;
if
(
companyInfo
)
{
url
=
companyInfo
.
config
.
url
;
}
var
getTaxDeclaration
=
function
(
date
,
type
,
refreshSbzt
)
{
// TODO 开始加载等待动画
showLoading
();
var
param
=
{
djxh
:
djxh
,
operateType
:
companyInfo
.
operateType
,
sbsq
:
date
,
isFresh
:
type
.
toUpperCase
()
==
"Y"
,
pzzlDm
:
companyInfo
.
pzzlDm
,
refreshSbzt
:
refreshSbzt
}
$
.
ajax
({
url
:
url
+
"/online/declare/kjsbPzzlList"
,
data
:
param
,
type
:
"POST"
,
dataType
:
"JSON"
,
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
if
(
data
.
bean
.
url
==
"error.jsp"
)
{
myAlert
(
"提示"
,
data
.
bean
.
errorInfo
,
"确定"
)
return
}
drawGrid
(
data
.
bean
);
companyInfo
=
data
.
bean
;
var
djxhbz
=
companyInfo
.
djxh
zjhm
=
companyInfo
.
zjhm
config
.
value
=
companyInfo
.
value
;
if
(
type
==
'Y'
)
{
myAlert
(
"提示"
,
"重置清册成功"
,
"确定"
)
}
var
skssq
for
(
var
i
in
data
.
bean
.
taxInfos
)
{
if
(
data
.
bean
.
taxInfos
[
i
].
bblxDm
==
'10401'
)
{
skssq
=
data
.
bean
.
taxInfos
[
i
].
sksssjz
}
}
if
(
skssq
==
'20210930'
)
{
getJjkjTag
(
djxhbz
,
sbqDate
.
replace
(
/
\-
/g
,
""
))
}
}
else
{
if
(
data
.
errmsg
!=
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
}
}).
always
(
function
(
data
)
{
hideLoading
();
});
};
/**
* 隐藏modal
*/
var
closeModal
=
function
()
{
$
(
'#ybName'
).
html
(
""
);
$
(
'#dName'
).
html
(
""
);
$
(
'#myMask'
).
hide
();
$
(
'#myModal'
).
hide
();
}
var
drawGrid
=
function
(
bean
)
{
if
(
bean
.
taxInfos
.
length
==
0
)
{
alertInfo
(
"税费申报暂无数据"
);
}
showTax
(
bean
.
taxInfos
);
if
(
bean
.
cxsLb
.
length
==
0
)
{
showFinancial
(
bean
.
cxsLb
,
0
);
alertInfo
(
"财行税申报暂无数据"
);
}
else
{
showFinancial
(
bean
.
cxsLb
,
0
);
}
};
/**
* 日期改变时触发
* N 非强制刷新
* @param {*} obj
* @param {*} dp
*/
var
changeDate
=
function
(
obj
,
dp
)
{
date
=
dp
.
cal
.
getNewDateStr
();
nowdate
=
date
;
// 给缓存时间赋值
// 加了一个延时,时间改变后时间框没有收起隐藏就加载数据,没有找到好的解决办法,暂时用延时处理
sbqDate
=
date
setTimeout
(
function
()
{
getTaxDeclaration
(
date
,
"N"
,
'1'
);
},
50
);
};
var
refresh
=
function
()
{
myConfirm
(
"消息"
,
"您确定需要重置申报清册吗?点击确定继续"
,
"确定"
,
"取消"
,
function
()
{
getTaxDeclaration
(
nowdate
,
"Y"
,
'1'
);
});
};
//申报方式 当iszzsybjc=01同时pzzlDm=010101时,调用改方法
var
declarationMethod
=
function
(
statu
)
{
submitData
.
ybjcState
=
statu
;
submitData
.
value
=
config
.
value
;
//需要判断在线还是税表的开关
if
(
submitData
.
sourceFlag
==
"ssfwpt_sbzj"
)
{
window
.
mlistener
=
{
selectRowData
:
{},
};
submitData
.
fillingFlag
=
"normal"
// 填报标记
submitData
.
saveUserId
=
"zxtb"
;
// 用户id
submitData
.
zjhm
=
zjhm
window
.
mlistener
.
selectRowData
=
submitData
;
if
(
yearBblxDm
.
indexOf
(
data
.
bblxDm
)
==
-
1
)
{
window
.
open
(
prefix
+
config
.
ssfwptPage
,
'_blank'
);
}
else
{
data
.
saveUserId
=
"zxtb_singleReport"
;
// 用户id
data
.
userId
=
"zxtb"
;
// userId
window
.
open
(
prefix
+
config
.
yearTaxTable
,
'_blank'
);
}
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
getTaxDeclaration
(
sbqDate
,
"N"
,
'2'
);
},
1000
);
}
})
}
else
{
var
falg
=
"declare"
;
window
.
taxInfo
=
JSON
.
stringify
(
submitData
);
localStorage
.
setItem
(
"data"
,
JSON
.
stringify
(
submitData
));
submitData
.
flag
=
true
;
submitData
.
encryptKey
=
config
.
value
;
var
url
=
config
.
spreadUrl
+
"/online_report/declare/toPzzl?falg="
+
falg
var
form
=
$
(
"#changeForm"
);
form
.
attr
(
'action'
,
url
);
//通过jquery为action属性赋值
form
.
find
(
"#changeForm_data"
).
val
(
JSON
.
stringify
(
submitData
));
form
.
submit
();
return
false
;
}
}
//采集页面的跳转
var
cjurlHandleFun
=
function
(
bblxDm
,
data
)
{
var
ccxwsTableUrl
=
""
;
if
(
window
.
location
.
href
.
indexOf
(
'https://wsswjmn.tjsat.gov.cn'
)
>-
1
)
{
if
(
bblxDm
==
'10111'
||
bblxDm
==
'10902'
)
{
ccxwsTableUrl
=
"/web/collectListYHS/index.html"
;
}
else
if
(
bblxDm
==
'10118'
)
{
ccxwsTableUrl
=
"/web/collectListGDZYS/index.html"
;
}
else
if
(
bblxDm
==
'10119'
)
{
ccxwsTableUrl
=
"/web/collectListQS/index.html"
;
}
else
if
(
bblxDm
==
'10113'
)
{
ccxwsTableUrl
=
"/web/collectListTDZZS/index.html"
;
}
else
if
(
bblxDm
==
'10121'
)
{
ccxwsTableUrl
=
"/web/collectListHJBHS/index.html"
;
}
else
if
(
bblxDm
==
'10107'
)
{
ccxwsTableUrl
=
"/web/collectListZYS/index.html"
;
}
}
else
if
(
window
.
location
.
href
.
indexOf
(
'https://etax.tianjin.chinatax.gov.cn'
)
>-
1
)
{
//生产
if
(
bblxDm
==
'10111'
||
bblxDm
==
'10902'
)
{
ccxwsTableUrl
=
"/web/online/collectListYHS/index.html"
;
}
else
if
(
bblxDm
==
'10118'
)
{
ccxwsTableUrl
=
"/web/online/collectListGDZYS/index.html"
;
}
else
if
(
bblxDm
==
'10119'
)
{
ccxwsTableUrl
=
"/web/online/collectListQS/index.html"
;
}
else
if
(
bblxDm
==
'10113'
)
{
ccxwsTableUrl
=
"/web/online/collectListTDZZS/index.html"
;
}
else
if
(
bblxDm
==
'10121'
)
{
ccxwsTableUrl
=
"/web/online/collectListHJBHS/index.html"
;
}
else
if
(
bblxDm
==
'10107'
)
{
ccxwsTableUrl
=
"/web/online/collectListZYS/index.html"
;
}
}
else
if
(
window
.
location
.
href
.
indexOf
(
'http://114.115.168.201'
)
>-
1
){
if
(
bblxDm
==
'10111'
||
bblxDm
==
'10902'
)
{
ccxwsTableUrl
=
"/web/propertybehaviortax#/collectListYHS"
;
}
else
if
(
bblxDm
==
'10118'
)
{
ccxwsTableUrl
=
"/web/propertybehaviortax#/collectListGDZYS"
;
}
else
if
(
bblxDm
==
'10119'
)
{
ccxwsTableUrl
=
"/web/propertybehaviortax#/collectListQS"
;
}
else
if
(
bblxDm
==
'10113'
)
{
ccxwsTableUrl
=
"/web/propertybehaviortax#/collectListTDZZS"
;
}
else
if
(
bblxDm
==
'10121'
)
{
ccxwsTableUrl
=
"/web/propertybehaviortax#/collectListHJBHS"
;
}
else
if
(
bblxDm
==
'10107'
)
{
ccxwsTableUrl
=
"/web/propertybehaviortax#/collectListZYS"
;
}
}
else
{
if
(
bblxDm
==
'10111'
||
bblxDm
==
'10902'
)
{
ccxwsTableUrl
=
"http://192.168.106.99:9099/web/propertybehaviortax/#/collectListYHS"
;
}
else
if
(
bblxDm
==
'10118'
)
{
ccxwsTableUrl
=
"http://192.168.106.99:9099/web/propertybehaviortax/#/collectListGDZYS"
;
}
else
if
(
bblxDm
==
'10119'
)
{
ccxwsTableUrl
=
"http://192.168.106.99:9099/web/propertybehaviortax/#/collectListQS"
;
}
else
if
(
bblxDm
==
'10113'
)
{
ccxwsTableUrl
=
"http://192.168.106.99:9099/web/propertybehaviortax/#/collectListTDZZS"
;
}
else
if
(
bblxDm
==
'10121'
)
{
ccxwsTableUrl
=
"http://192.168.106.99:9099/web/propertybehaviortax/#/collectListHJBHS"
;
}
else
if
(
bblxDm
==
'10107'
)
{
ccxwsTableUrl
=
"http://192.168.106.99:9099/web/propertybehaviortax/#/collectListZYS"
;
}
}
var
url
=
ccxwsTableUrl
+
'?skipType=cxzhsbtc&lybz=online&djxh='
+
data
.
djxh
+
'&zsDjxh='
+
data
.
zsDjxh
+
'&Authorization='
+
AuthorizationBz
+
'&random='
+
Math
.
random
();
return
url
;
}
//财行页面的跳转
var
cxurlHandleFun
=
function
(
djxh
){
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='
+
nowdate
.
substring
(
5
)
+
'&Authorization='
+
AuthorizationBz
+
'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='
+
nowdate
.
substring
(
5
)
+
'&Authorization='
+
AuthorizationBz
+
'random='
+
Math
.
random
();
}
return
cxUrl
}
/**
* 重置调用方法
* @param {} params
*/
$
(
"#reset,#reset1"
).
on
(
"click"
,
refresh
);
$
(
"#goRecord"
).
click
(
function
()
{
//TODO 调用备案接口
});
// 去缴款按钮
$
(
"#pay"
).
click
(
function
()
{
var
param
=
{
djxh
:
djXh
,
operationType
:
"swjJk"
}
$
.
ajax
({
url
:
config
.
url
+
"/online/declare/getGovernmentWebsite"
,
data
:
param
,
type
:
"POST"
,
dataType
:
"JSON"
}).
done
(
function
(
data
)
{
if
(
data
&&
data
.
ifSuccess
)
{
if
(
data
.
ifSuccess
)
{
window
.
close
();
window
.
open
(
data
.
uRL
,
"_blank"
);
}
else
{
alert
(
data
.
uRL
,
'提示'
,
{
confirmButtonText
:
'确定'
,
callback
:
action
=>
{
}
});
}
}
else
{
alert
(
data
.
uRL
)
}
});
})
// 格式化后台返回的时间
if
(
companyInfo
.
config
.
return
)
{
$
(
"#getInputValue"
).
val
(
tool
.
formatDate
(
companyInfo
.
sbsq
));
nowdate
=
companyInfo
.
sbsq
;
drawGrid
(
companyInfo
);
}
//页面出现滚动条,监听滚动条变化将高赋值给模态框
window
.
onscroll
=
function
()
{
$
(
"#myModal"
).
css
(
"top"
,
$
(
document
).
scrollTop
()
+
235
);
}
return
{
changeDate
:
changeDate
,
reset
:
reset
,
declarationMethod
:
declarationMethod
,
closeModal
:
closeModal
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment