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
c4f3ed0d
Commit
c4f3ed0d
authored
Dec 29, 2020
by
刘明珠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加综合申报
parent
5ac1a48f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
476 additions
and
14 deletions
+476
-14
index.html
jsp/syntheticalReport/index.html
+74
-0
syntheticalReport_grid.js
static/biz/syntheticalReport_grid.js
+387
-0
config.js
static/config.js
+15
-14
No files found.
jsp/syntheticalReport/index.html
0 → 100644
View file @
c4f3ed0d
<!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=
"/web/onlineReport/static/tools/css/bootstrap.css?v=1.1"
rel=
"stylesheet"
>
<!--滚动条-->
<link
rel=
"stylesheet"
href=
"/web/onlineReport/static/tools/css/scroll.css"
/>
<!--table样式-->
<link
rel=
"stylesheet"
href=
"/web/onlineReport/static/tools/css/table.css"
/>
<!--样式-->
<link
rel=
"stylesheet"
href=
"/web/onlineReport/static/tools/css/encapsulation.css"
/>
<!--时间插件-->
<link
rel=
"stylesheet"
href=
"/web/onlineReport/static/tools/js/My97DatePicker/skin/WdatePicker.css"
/>
<!--declare-->
<link
rel=
"stylesheet"
href=
"/web/onlineReport/static/css/declare/declare.css"
/>
<!-- 页面自定义样式 -->
<title>
在线填报
</title>
</head>
<script>
document
.
write
(
"<script type='text/javascript' src='/web/onlineReport/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=
"/web/onlineReport/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; width: 100%;position :relative"
>
<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"
style=
"margin-right: 10%;margin-right: 10px;height: 32px;margin-top: 5px;position:absolute;right: 120px;"
type=
"button"
value=
"重置申报清册"
/>
</div>
</div>
</br>
<div
class=
"div-clear-folat"
>
<strong>
税费申报
</strong>
</div>
<hr
class=
"hr-margin"
/>
<div
id=
"taxGrid"
></div>
</div>
</div>
</div>
<input
type=
'hidden'
name=
'data'
value=
"${token}"
id=
"token"
>
<input
type=
'hidden'
name=
'data'
value=
"${djxh}"
id=
"djxh"
>
</body>
<script
src=
"/web/onlineReport/static/tools/js/jquery-1.11.3.js?v=1.1"
></script>
<script
src=
"/web/onlineReport/static/js/tax/tool.js"
></script>
<script
src=
"/web/onlineReport/static/tools/js/jquery.nicescroll.js?v=1.1"
></script>
<script
src=
"/web/onlineReport/static/tools/js/bootstrap.js?v=1.1"
></script>
<script
src=
"/web/onlineReport/static/tools/js/encapsulation.js?v=1.3"
></script>
<script
src=
"/web/onlineReport/static/tools/js/minScroll.js?v=1.1"
></script>
<script
src=
"/web/onlineReport/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"
></script>
<script
src=
"/web/onlineReport/static/biz/syntheticalReport_grid.js?v=1.0"
></script>
</html>
static/biz/syntheticalReport_grid.js
0 → 100644
View file @
c4f3ed0d
var
initpage
;
var
sbqDate
=
''
$
(
function
()
{
showLoading
();
getInitTable
();
})
function
getInitTable
()
{
$
.
ajax
({
type
:
"post"
,
url
:
config
.
url
+
"/online/declare/index"
,
dataType
:
"json"
,
// 请求方式为jsonp
// async: false,
data
:
{
djxh
:
getUrlParam
(
"djxh"
),
token
:
getUrlParam
(
"token"
),
sbsq
:
""
,
pzzlDm
:
getUrlParam
(
"pzzlDm"
),
},
// beforeSend:function(){
// myAlert("提示", "正在获取初始化信息", "确定")
// },
success
:
function
(
data
)
{
//客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading
();
//el表达式变jqa
// $("#token").attr("value","");
if
(
data
.
success
)
{
if
(
data
.
bean
.
url
==
"error.jsp"
)
{
myAlert
(
"提示"
,
data
.
bean
.
errorInfo
,
"确定"
)
// window.location.href = "/jsp/error/index.html?falg="+param;
return
}
}
data
.
bean
.
financialInfos
=
[];
data
.
bean
.
taxInfos
=
[{
"sssqZ"
:
"--"
,
"sssqQ"
:
"--"
,
"sbrq"
:
"--"
,
"pzzlMc"
:
"综合审报表"
,
}]
var
companyInfo
=
data
;
if
(
companyInfo
.
success
)
{
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
);
initpage
.
changeDate
(
this
,
companyInfo
.
bean
.
sbsq
);
}
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======================"
)
}
})
}
/**
* 按期申报填报列表页控制脚本
*
* @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
]);
}
}
}
var
id
=
"#taxGrid"
;
var
buttonHtml
=
"填写申报表"
;
var
order
=
[
"pzzlMc"
,
"sssqQ"
,
"sssqZ"
,
"sbrq"
,
"do"
];
var
promptStatement
=
""
;
var
headerList
=
[{
name
:
"序号"
,
width
:
"5%"
},
{
name
:
"申报表"
,
width
:
"55%"
},
{
name
:
"税款所属期起"
,
width
:
"10%"
},
{
name
:
"税款所属期止"
,
width
:
"10%"
},
{
name
:
"申报日期"
,
width
:
"10%"
},
{
name
:
"操作"
,
width
:
"10%"
}];
//渲染表
getTableDeclaration
(
id
,
order
,
headerList
,
taxInfo
,
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
)
{
var
url
=
config
.
zhsbPage
+
'?token='
+
getUrlParam
(
"token"
)
+
'&djxh='
+
getUrlParam
(
"djxh"
)
+
'&sbsq='
+
sbqDate
window
.
open
(
url
,
'_blank'
);
}
//点击按钮后的回调函数
};
var
object
=
tool
.
tableCreate
(
tableObj
);
// object.jsonReadyTo(ddt, { page: "1", pageSize: ddt.length });
};
/**
* 税务申报 初始化数据获取
* @param {*} mydate
*/
//地址
//http://sbjs.tjsat.gov.cn:18090
//http://localhost:7070
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/getPzzlList"
,
data
:
param
,
type
:
"POST"
,
dataType
:
"JSON"
,
// beforeSend:function(){
// myAlert("提示", "正在获取初始化信息", "确定")
// },
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
if
(
data
.
bean
.
url
==
"error.jsp"
)
{
myAlert
(
"提示"
,
data
.
bean
.
errorInfo
,
"确定"
)
return
}
data
.
bean
.
financialInfos
=
[];
data
.
bean
.
taxInfos
=
[{
"sssqZ"
:
"--"
,
"sssqQ"
:
"--"
,
"sbrq"
:
"--"
,
"pzzlMc"
:
"综合审报表"
,
}]
drawGrid
(
data
.
bean
);
companyInfo
=
data
.
bean
;
config
.
value
=
companyInfo
.
value
;
if
(
type
==
'Y'
)
{
myAlert
(
"提示"
,
"重置清册成功"
,
"确定"
)
}
}
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
)
{
//两个表合成一个表
$
.
each
(
bean
.
financialInfos
,
function
(
i
,
item
)
{
bean
.
taxInfos
.
push
(
item
);
});
if
(
bean
.
taxInfos
.
length
==
0
)
{
showTax
(
bean
.
taxInfos
);
alertInfo
(
"税费申报暂无数据"
);
}
else
{
showTax
(
bean
.
taxInfos
);
}
};
/**
* 日期改变时触发
* 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
window
.
mlistener
.
selectRowData
=
submitData
;
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
getTaxDeclaration
(
sbqDate
,
"N"
,
'2'
);
},
1000
);
}
})
}
else
{
//"ssfwpt_zxtb"
// var form = $("#changeForm");
// form.find("#changeForm_data").val(JSON.stringify(submitData));
// form.submit();
showLoading
()
var
falg
=
"declare"
;
$
.
ajax
({
type
:
"POST"
,
url
:
url
+
"/online/declare/toPzzl"
,
dataType
:
"json"
,
// 请求方式为jsonp
data
:
{
data
:
JSON
.
stringify
(
submitData
)
},
success
:
function
(
data
)
{
hideLoading
()
if
(
data
.
code
==
99
||
data
.
code
==
"99"
)
{
if
(
data
.
errmsg
!=
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
return
false
}
window
.
taxInfo
=
JSON
.
stringify
(
submitData
);
localStorage
.
setItem
(
"data"
,
JSON
.
stringify
(
submitData
));
if
(
data
.
url
==
"edit.jsp"
)
{
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
();
// window.open(config.spreadUrl+"/online_report/declare/toPzzl?falg=" + falg + '&data=' + JSON.stringify(submitData));
// window.open(config.webUrl + "declare/edit.html?falg=" + falg + '¶ms=' + encodeURI(JSON.stringify(submitData)));
}
/* else if (data.url == "yearReport.jsp") {
window.open(config.webUrl + "declare/yearReport.html?falg=" + falg + '¶ms=' + encodeURI(JSON.stringify(submitData)));
} else if (data.url == "yearReportGLB.jsp") {
window.open(config.webUrl + "declare/yearReportGLB.html?falg=" + falg + '¶ms=' + encodeURI(JSON.stringify(submitData)));
} else {
//因为后台不知道返回路径是什么样的就直接改成了else data.url == "error.jsp"
window.open(config.webUrl + "error/index.html?falg=" + falg + '¶ms=' + encodeURI(JSON.stringify(submitData)));
}*/
},
error
:
function
(
xhr
)
{
//jsonp 方式此方法不被触发
if
(
data
.
returnMessage
==
undefined
)
{
if
(
data
.
returnMessage
==
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
alertWarning
(
"程序错误,请联系管理员!"
);
}
}
else
{
alertWarning
(
data
.
returnMessage
);
}
hideLoading
()
console
.
log
(
"=======error======================"
)
}
})
closeModal
();
}
}
/**
* 重置调用方法
* @param {} params
*/
$
(
"#reset,#reset1"
).
on
(
"click"
,
refresh
);
$
(
"#goRecord"
).
click
(
function
()
{
//TODO 调用备案接口
});
// 格式化后台返回的时间
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
}
}
static/config.js
View file @
c4f3ed0d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
* @Param
* @Param
* @return
* @return
**/
**/
function
getUrlParam
(
name
)
{
function
getUrlParam
(
name
)
{
var
reg
=
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
);
var
reg
=
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
return
decodeURIComponent
(
r
[
2
]);
if
(
r
!=
null
)
return
decodeURIComponent
(
r
[
2
]);
...
@@ -13,14 +13,15 @@ function getUrlParam (name) {
...
@@ -13,14 +13,15 @@ function getUrlParam (name) {
}
}
// 公共配置 生产环境
// 公共配置 生产环境
var
config
=
{
var
config
=
{
environmental
:
"test"
,
//production 生产 test 测试
environmental
:
"test"
,
//production 生产 test 测试
webUrl
:
"/web/onlineReport/jsp/"
,
// 预生产环境解开
webUrl
:
"/web/onlineReport/jsp/"
,
// 预生产环境解开
url
:
""
,
// 开发环境配置跨域设置 // 开发环境
url
:
""
,
// 开发环境配置跨域设置 // 开发环境
spreadUrl
:
"http://sbjs.tjsat.gov.cn"
,
// 局端生产 值为空 其余全部指向在线的域名
spreadUrl
:
"http://sbjs.tjsat.gov.cn"
,
// 局端生产 值为空 其余全部指向在线的域名
ssfwptPage
:
"/web/online/taxservicedesk/index.html#/taxTableList"
,
// 涉税服务平台填报页面地址
ssfwptPage
:
"/web/taxservicedesk/index.html#/taxTableList"
,
// 涉税服务平台填报页面地址
taxFormComponent
:
"/web/taxFormComponent/index.html?param="
,
// 涉税服务平台填报页面地址
zhsbPage
:
"/web/taxservicedesk/index.html#/syntheticalReport"
,
// 涉税 综合申报页面
value
:
''
,
//加密token
taxFormComponent
:
"/web/taxFormComponent/index.html?param="
,
// 涉税服务平台填报页面地址
nsrsbq
:
''
,
value
:
''
,
//加密token
nsrsbq
:
''
,
}
}
//公共配置 本地环境,测试环境
//公共配置 本地环境,测试环境
/*var config = {
/*var config = {
...
...
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