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
0938c6c8
Commit
0938c6c8
authored
Oct 26, 2021
by
yangyuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财行综合申报提交代码
parent
aff9f6c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
96 additions
and
15 deletions
+96
-15
zhsbtc_grid.js
static/biz/zhsbtc_grid.js
+96
-15
No files found.
static/biz/zhsbtc_grid.js
View file @
0938c6c8
...
...
@@ -11,7 +11,7 @@ $(function () {
function
getInitTable
()
{
$
.
ajax
({
type
:
"post"
,
url
:
config
.
url
+
"/online/declare/
i
ndex"
,
url
:
config
.
url
+
"/online/declare/
cxsTcI
ndex"
,
dataType
:
"json"
,
// 请求方式为jsonp
// async: false,
data
:
{
...
...
@@ -19,7 +19,7 @@ function getInitTable() {
token
:
getUrlParam
(
"token"
),
sbsq
:
""
,
// pzzlDm: getUrlParam("pzzlDm"),
pzzlDm
:
"12101|10401|10402"
,
pzzlDm
:
"12101|10401|10402
|11303|11304
"
,
},
// beforeSend:function(){
// myAlert("提示", "正在获取初始化信息", "确定")
...
...
@@ -167,8 +167,19 @@ function initPage(companyInfo) {
},
jsonReady
:
ddt
,
callback
:
function
(
data
,
node
)
{
console
.
log
(
data
,
node
[
0
].
innerText
)
console
.
log
(
data
,
node
)
if
(
node
[
0
].
innerText
==
"申报"
)
{
cxurlHandleFun
(
data
.
djxh
);
}
else
if
(
node
[
0
].
innerText
==
"税源信息采集"
)
{
var
cjUrl
=
cjurlHandleFun
(
data
.
bblxDm
)
let
aLink
=
document
.
createElement
(
'a'
);
// aLink.href = "http://114.115.168.201/web/propertybehaviortax#/collectListGDZYS?lybz=online&djxh=10211200000090016380&zsDjxh=10111298000025892661&value=5572DA6A3C11BC372A96FC8F6052D31DBDD47ED6BAD6E90C342919703F21EED8988D1A3BC1BB5F12FA36DD8D2709AD4484E8F19E366C4EF4D58F1B671BB93B16DDCC908ECA5C741BD70981B857E81FE7F7D7312DD16378644DF64B3E2C5FC7C60B9497A3B631B96B527C06F31DAD3457864C9C08C9A960673CFF1C65122879268fa938297e";
aLink
.
href
=
cjUrl
+
'?lybz=online&djxh='
+
data
.
djxh
+
'&zsDjxh='
+
data
.
zsDjxh
+
'&value='
+
companyInfo
.
value
+
'&random='
+
Math
.
random
();
aLink
.
target
=
'_blank'
;
aLink
.
style
.
display
=
'none'
;
document
.
body
.
appendChild
(
aLink
);
aLink
.
click
();
document
.
body
.
removeChild
(
aLink
);
}
else
if
(
node
[
0
].
innerText
==
"填写并申报"
)
{
data
.
operateType
=
'3'
;
...
...
@@ -278,7 +289,8 @@ function initPage(companyInfo) {
myAlert
(
"提示"
,
data
.
bean
.
errorInfo
,
"确定"
)
return
}
drawGrid
(
data
.
bean
);
// drawGrid(data.bean);
getInitTable
();
companyInfo
=
data
.
bean
;
zjhm
=
companyInfo
.
zjhm
config
.
value
=
companyInfo
.
value
;
...
...
@@ -317,25 +329,25 @@ function initPage(companyInfo) {
alertInfo
(
"税费申报暂无数据"
);
}
else
{
$
.
each
(
arr
,
function
(
i
,
item
)
{
//两个表合成一个表
$
.
each
(
bean
.
financialInfos
,
function
(
i
,
item1
)
{
item
.
push
(
item1
);
});
var
divObj1
=
'<div id="btnBox" class="div-clear-folat" style="width: 99%; height: 40px;line-height: 40px;">'
+
'<strong>'
+
item
[
0
].
djxh
+
item
[
0
].
zgswskfjMc
+
'</strong>'
+
'</div>'
;
$
(
'#zhsbtcBox'
).
append
(
divObj1
);
//将子div添加到父div中
if
((
i
-
1
+
1
)
==
0
)
{
var
btnObj
=
'<input id="
reset
" class="btn btn-primary"'
+
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="
reset
" class="btn btn-primary"'
+
'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="缴款" />'
;
$
(
'#btnBox'
).
append
(
btnObj
);
$
(
document
).
on
(
"click"
,
"#jfsbBtn"
,
function
(){
cxurlHandleFun
(
companyInfo
.
djxh
)
});
}
var
divObj2
=
"<div id='taxGrid"
+
i
+
"' class='zhsbtcTab'></div>"
;
$
(
'#zhsbtcBox'
).
append
(
divObj2
);
...
...
@@ -358,13 +370,13 @@ function initPage(companyInfo) {
if
(
item
.
length
>
0
)
{
for
(
var
j
=
0
;
j
<
item
.
length
;
j
++
)
{
item
[
j
].
buttonHtml
=
"填写并申报"
;
// 印花税 - 10111 税源信息采集 申报
// 印花税 - 10111
,10902
税源信息采集 申报
// 耕地占用税 - 10118
// 契税 - 10119 -
// 土地增值税 - 10113
// 环境保护税 - 10121
// 资源税 - 10107
if
([
'10111'
,
'10118'
,
'10119'
,
'10113'
,
'10121'
,
'10107'
].
indexOf
(
item
[
j
].
bblxDm
)
>
-
1
)
{
if
([
'10111'
,
'10
902'
,
'10
118'
,
'10119'
,
'10113'
,
'10121'
,
'10107'
].
indexOf
(
item
[
j
].
bblxDm
)
>
-
1
)
{
item
[
j
].
buttonHtml
=
"税源信息采集, 申报"
}
else
if
([
'10110'
,
'10114'
,
'10112'
].
indexOf
(
item
[
j
].
bblxDm
)
>
-
1
)
{
// 房产税 - 10110 申报
...
...
@@ -519,6 +531,74 @@ function initPage(companyInfo) {
// closeModal();
}
}
//采集页面的跳转
var
cjurlHandleFun
=
function
(
bblxDm
)
{
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
(
bblxDm
==
'10111'
||
bblxDm
==
'10902'
)
{
ccxwsTableUrl
=
"http://114.115.168.201/web/propertybehaviortax#/collectListYHS"
;
}
else
if
(
bblxDm
==
'10118'
)
{
ccxwsTableUrl
=
"http://114.115.168.201/web/propertybehaviortax#/collectListGDZYS"
;
}
else
if
(
bblxDm
==
'10119'
)
{
ccxwsTableUrl
=
"http://114.115.168.201/web/propertybehaviortax#/collectListQS"
;
}
else
if
(
bblxDm
==
'10113'
)
{
ccxwsTableUrl
=
"http://114.115.168.201/web/propertybehaviortax#/collectListTDZZS"
;
}
else
if
(
bblxDm
==
'10121'
)
{
ccxwsTableUrl
=
"http://114.115.168.201/web/propertybehaviortax#/collectListHJBHS"
;
}
else
if
(
bblxDm
==
'10107'
)
{
ccxwsTableUrl
=
"http://114.115.168.201/web/propertybehaviortax#/collectListZYS"
;
}
}
return
ccxwsTableUrl
;
}
//财行页面的跳转
var
cxurlHandleFun
=
function
(
djxh
){
console
.
log
(
companyInfo
,
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&djxh='
+
djxh
+
'&zsDjxh='
+
companyInfo
.
zsDjxh
+
'&value='
+
companyInfo
.
value
+
'&random='
+
Math
.
random
();
}
else
{
var
cxUrl
=
'http://dev-web.htyfw.com.cn/page/property_tax_plugin_web/index.html?djxh='
+
djxh
+
'&zsDjxh='
+
companyInfo
.
zsDjxh
+
'&lybz=online&random='
+
Math
.
random
();
}
let
aLink
=
document
.
createElement
(
'a'
);
aLink
.
href
=
cxUrl
;
aLink
.
target
=
'_blank'
;
aLink
.
style
.
display
=
'none'
;
document
.
body
.
appendChild
(
aLink
);
aLink
.
click
();
document
.
body
.
removeChild
(
aLink
)
}
/**
* 重置调用方法
* @param {} params
...
...
@@ -543,4 +623,5 @@ function initPage(companyInfo) {
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