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
c960d3fa
Commit
c960d3fa
authored
Oct 25, 2021
by
yangyuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
综合申报套餐
parent
1c504f18
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
88 additions
and
28 deletions
+88
-28
index.html
jsp/zhsbtc/index.html
+16
-10
zhsbtc_grid.js
static/biz/zhsbtc_grid.js
+63
-17
table.css
static/tools/css/table.css
+4
-0
encapsulation.js
static/tools/js/encapsulation.js
+5
-1
No files found.
jsp/zhsbtc/index.html
View file @
c960d3fa
...
...
@@ -31,7 +31,7 @@
<body>
<div>
<div
style=
"background-color:#FFFFFF;"
>
<div
style=
"padding: 25px;"
>
<div
id=
"zhsbtcBox"
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;"
...
...
@@ -52,23 +52,29 @@
<strong>
税费申报
</strong>
</div>
<hr
class=
"hr-margin"
/>
<
div
class=
"div-clear-folat
"
>
<
!-- <div class="div-clear-folat" style="width: 99%; height: 40px;line-height: 40px;
">
<strong>10111298000025892661国家税务总局天津滨海高新技术产业开发区税务局第二税务所</strong>
</div>
<div
id=
"taxGrid"
class=
"zhsbtcTab"
></div>
<hr
class=
"hr-margin"
/>
<div
class=
"div-clear-folat"
>
<input id="reset" 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"
style="height: 30px;right: 120px;margin: 0 10px 0 0; padding: 0 5px;float: right;"
type="button" value="缴款" />
</div> -->
<!-- <div id="taxGrid" class="zhsbtcTab"></div> -->
<!-- <hr class="hr-margin" />
<div class="div-clear-folat" style="width: 99%; height: 30px;line-height: 30px;">
<strong>10111298000025892661国家税务总局天津滨海高新技术产业开发区税务局第二税务所</strong>
</div>
<
div
id=
"taxGrid1"
class=
"zhsbtcTab"
></div
>
</div>
-->
<
!-- <div id="taxGrid1" class="zhsbtcTab"></div> --
>
<!-- <div style="height:16px"></div> -->
<div
class=
"font-clo"
style=
"padding-top: 20px;"
>
<
!-- <
div class="font-clo" style="padding-top: 20px;">
<div style="font-size:12px">温馨提示:</div>
<div class="reminder"><span class="span-font-size">如近期有税费种认定、纳税人资格、备案等发生变动,页面展现清册与实际所需不符的,</span></div>
<div class="reminder"><span class="span-font-size">请点此处 “<label for="reset" id="reset1"
class="label_declare">重置申报清册</label>” 对该户清册进行重新生成。</span>
</div>
</div>
</div>
-->
</div>
</div>
</div>
...
...
static/biz/zhsbtc_grid.js
View file @
c960d3fa
...
...
@@ -18,7 +18,8 @@ function getInitTable() {
djxh
:
getUrlParam
(
"djxh"
),
token
:
getUrlParam
(
"token"
),
sbsq
:
""
,
pzzlDm
:
getUrlParam
(
"pzzlDm"
),
// pzzlDm: getUrlParam("pzzlDm"),
pzzlDm
:
"12101|10401|10402"
,
},
// beforeSend:function(){
// myAlert("提示", "正在获取初始化信息", "确定")
...
...
@@ -101,7 +102,7 @@ function initPage(companyInfo) {
/**
* 展示税种申报信息
*/
var
showTax
=
function
(
taxInfo
)
{
var
showTax
=
function
(
taxInfo
,
id
)
{
if
(
taxInfo
.
length
>
0
)
{
for
(
var
i
=
0
;
i
<
taxInfo
.
length
;
i
++
)
{
if
(
taxInfo
[
i
].
sbrq
)
{
...
...
@@ -114,7 +115,7 @@ function initPage(companyInfo) {
}
}
// var id = "#taxGrid";
var
buttonHtml
=
"填写
申报表1, 申报1
"
;
// "djxh"
var
buttonHtml
=
"填写
并申报, 申报
"
;
// "djxh"
var
order
=
[
"pzzlMc"
,
"sssqQ"
,
"sssqZ"
,
"sbrq"
,
"do"
];
var
promptStatement
=
""
;
var
headerList
=
[{
...
...
@@ -137,9 +138,10 @@ function initPage(companyInfo) {
width
:
"15%"
}];
//渲染表
getTableDeclaration
(
'#taxGrid'
,
order
,
headerList
,
taxInfo
,
buttonHtml
,
promptStatement
)
console
.
log
(
'#'
+
id
)
getTableDeclaration
(
'#'
+
id
,
order
,
headerList
,
taxInfo
,
buttonHtml
,
promptStatement
)
//渲染表
getTableDeclaration
(
'#taxGrid1'
,
order
,
headerList
,
taxInfo
,
buttonHtml
,
promptStatement
)
//
getTableDeclaration('#taxGrid1', order, headerList, taxInfo, buttonHtml, promptStatement)
};
/**
* 税务申报table渲染
...
...
@@ -171,7 +173,7 @@ function initPage(companyInfo) {
console
.
log
(
data
,
node
[
0
].
innerText
)
if
(
node
[
0
].
innerText
==
"申报"
)
{
}
else
if
(
node
[
0
].
innerText
==
"填写
申报表
"
)
{
}
else
if
(
node
[
0
].
innerText
==
"填写
并申报
"
)
{
data
.
operateType
=
'3'
;
data
.
sbbz
=
'3'
;
data
.
value
=
config
.
value
;
...
...
@@ -223,8 +225,8 @@ function initPage(companyInfo) {
}
}
submitData
=
data
;
if
(
node
.
context
.
innerText
==
"填写
申报表
"
&&
companyInfo
.
iszzsybjc
==
"01"
&&
data
.
pzzlDm
==
"10101"
)
{
// if(node.context.innerText=="填写
申报表
"){
if
(
node
.
context
.
innerText
==
"填写
并申报
"
&&
companyInfo
.
iszzsybjc
==
"01"
&&
data
.
pzzlDm
==
"10101"
)
{
// if(node.context.innerText=="填写
并申报
"){
initpage
.
declarationMethod
(
'N'
)
// $('#myMask').show();
// $('#myModal').show();
...
...
@@ -308,16 +310,60 @@ function initPage(companyInfo) {
}
var
drawGrid
=
function
(
bean
)
{
//两个表合成一个表
$
.
each
(
bean
.
financialInfos
,
function
(
i
,
item
)
{
bean
.
taxInfos
.
push
(
item
);
});
if
(
bean
.
taxInfos
.
length
==
0
)
{
showTax
(
bean
.
taxInfos
);
alertInfo
(
"税费申报暂无数据"
);
}
else
{
showTax
(
bean
.
taxInfos
);
var
arr
=
[];
for
(
let
i
in
bean
.
taxInfos
)
{
arr
.
push
(
bean
.
taxInfos
[
i
]);
//属性
//arr.push(obj[i]); //值
}
$
.
each
(
arr
,
function
(
i
,
item
)
{
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"'
+
'style="height: 30px;right: 120px;margin: 0; padding: 0 5px;float: right;"'
+
'type="button" value="税费申报" />'
+
'<input id="reset" 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
);
}
var
divObj2
=
"<div id='taxGrid"
+
i
+
"' class='zhsbtcTab'></div>"
;
$
(
'#zhsbtcBox'
).
append
(
divObj2
);
if
((
i
-
1
+
1
)
<
arr
.
length
)
{
$
(
'#zhsbtcBox'
).
append
(
'<hr class="hr-margin" />'
);
}
if
((
i
-
1
+
1
)
==
arr
.
length
-
1
)
{
var
divObj3
=
'<div class="font-clo" style="padding-top: 20px;">'
+
'<div style="font-size:12px">温馨提示:</div>'
+
'<div class="reminder"><span class="span-font-size">如近期有税费种认定、纳税人资格、备案等发生变动,页面展现清册与实际所需不符的,</span></div>'
+
'<div class="reminder"><span class="span-font-size">请点此处 “<label for="reset" id="reset1"'
+
'class="label_declare">重置申报清册</label>” 对该户册进行重新生成。</span>'
+
'</div>'
+
'</div>'
;
$
(
'#zhsbtcBox'
).
append
(
divObj3
);
}
showTax
(
item
,
"taxGrid"
+
i
);
// bean.taxInfos.push(item);
});
//两个表合成一个表
// $.each(bean.financialInfos, function (i, item) {
// bean.taxInfos.push(item);
// });
// if (bean.taxInfos.length == 0) {
// showTax(bean.taxInfos);
// alertInfo("税费申报暂无数据");
// } else {
// showTax(bean.taxInfos);
// }
};
/**
...
...
static/tools/css/table.css
View file @
c960d3fa
...
...
@@ -406,6 +406,10 @@ fieldset[disabled] .searchPage {
.zhsbtcTab
.tdDoing-contain
{
text-align
:
left
!important
;
}
.zhsbtcTab
.table-tr
.row-1
{
padding-left
:
5px
!important
;
text-align
:
left
!important
;
}
.tdDoing-contain
{
text-align
:
center
!important
;
...
...
static/tools/js/encapsulation.js
View file @
c960d3fa
...
...
@@ -961,7 +961,11 @@ var JSTOOL = function() {
var
div
=
document
.
createElement
(
"div"
);
$div
=
$
(
div
);
$div
.
attr
(
"alt"
,
commonJson
[
i
][
tableObj
.
onlyId
]);
$div
.
addClass
(
"btn btn-primary tdDong-btn"
);
if
(
buttonHtmlArr
[
cxi
]
==
"填写并申报"
)
{
$div
.
addClass
(
"btn tdDong-btn"
);
}
else
{
$div
.
addClass
(
"btn btn-primary tdDong-btn"
);
}
$div
.
html
(
buttonHtmlArr
[
cxi
]);
$td
.
addClass
(
"tdDoing-contain"
);
$td
.
append
(
div
);
...
...
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