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
15a25bdb
Commit
15a25bdb
authored
Oct 26, 2021
by
yangyuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重置申报清册
parent
0938c6c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
68 deletions
+35
-68
zhsbtc_grid.js
static/biz/zhsbtc_grid.js
+35
-68
No files found.
static/biz/zhsbtc_grid.js
View file @
15a25bdb
...
...
@@ -26,15 +26,6 @@ function getInitTable() {
// },
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
// }
// }
var
companyInfo
=
data
;
if
(
companyInfo
.
success
)
{
zjhm
=
companyInfo
.
bean
.
zjhm
...
...
@@ -319,8 +310,11 @@ function initPage(companyInfo) {
}
var
drawGrid
=
function
(
bean
)
{
$
(
"div"
).
remove
(
"#btnBox"
);
$
(
"div"
).
remove
(
".zhsbtcTab"
);
$
(
"hr"
).
remove
(
".hr-margin1"
);
$
(
"div"
).
remove
(
".font-clo"
);
var
arr
=
[];
console
.
log
(
bean
)
for
(
let
i
in
bean
.
taxInfos
)
{
arr
.
push
(
bean
.
taxInfos
[
i
]);
//属性
//arr.push(obj[i]); //值
...
...
@@ -346,6 +340,36 @@ function initPage(companyInfo) {
$
(
document
).
on
(
"click"
,
"#jfsbBtn"
,
function
(){
cxurlHandleFun
(
companyInfo
.
djxh
)
});
// 去缴款按钮
$
(
"#jkBtn"
).
click
(
function
()
{
console
.
log
(
"去缴款"
)
var
param
=
{
djxh
:
companyInfo
.
zsDjxh
,
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
)
}
});
})
}
...
...
@@ -353,7 +377,7 @@ function initPage(companyInfo) {
$
(
'#zhsbtcBox'
).
append
(
divObj2
);
if
((
i
-
1
+
1
)
<
arr
.
length
)
{
$
(
'#zhsbtcBox'
).
append
(
'<hr class="hr-margin" />'
);
$
(
'#zhsbtcBox'
).
append
(
'<hr class="hr-margin
hr-margin1
" />'
);
}
if
((
i
-
1
+
1
)
==
arr
.
length
-
1
)
{
...
...
@@ -472,63 +496,6 @@ function initPage(companyInfo) {
form
.
find
(
"#changeForm_data"
).
val
(
JSON
.
stringify
(
submitData
));
form
.
submit
();
return
false
;
// $.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();
}
}
...
...
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