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
93f4a17c
Commit
93f4a17c
authored
Aug 18, 2020
by
刘明珠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口报错信息提示兼容
parent
dcde7a92
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
58 additions
and
16 deletions
+58
-16
index.html
jsp/amend/index.html
+5
-1
index.html
jsp/cancellation/index.html
+1
-1
index.html
jsp/overdue/index.html
+1
-1
amend_grid.js
static/biz/amend_grid.js
+11
-6
cancellation_grid.js
static/biz/cancellation_grid.js
+17
-3
declare_grid.js
static/biz/declare_grid.js
+11
-2
overdue_grid.js
static/biz/overdue_grid.js
+12
-2
No files found.
jsp/amend/index.html
View file @
93f4a17c
...
...
@@ -127,7 +127,11 @@
initpage
=
initPage
(
companyInfo
.
bean
);
}
else
{
hideLoading
();
if
(
companyInfo
.
errmsg
!=
undefined
)
{
alertWarning
(
companyInfo
.
errmsg
);
}
else
{
alertWarning
(
companyInfo
.
returnMessage
);
}
if
(
!
companyInfo
.
bean
)
{
companyInfo
.
bean
=
{};
companyInfo
.
bean
.
djxh
=
getUrlParam
(
"djxh"
);
...
...
jsp/cancellation/index.html
View file @
93f4a17c
...
...
@@ -93,7 +93,7 @@
djxh
:
getUrlParam
(
"djxh"
),
token
:
getUrlParam
(
"token"
),
sbsq
:
''
,
pzzlDm
:
''
pzzlDm
:
getUrlParam
(
"pzzlDm"
)
},
success
:
function
(
data
)
{
//客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading
();
...
...
jsp/overdue/index.html
View file @
93f4a17c
...
...
@@ -157,7 +157,7 @@
djxh
:
getUrlParam
(
"djxh"
),
token
:
getUrlParam
(
"token"
),
sbsq
:
''
,
pzzlDm
:
''
pzzlDm
:
getUrlParam
(
"pzzlDm"
)
},
success
:
function
(
data
)
{
//客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading
();
...
...
static/biz/amend_grid.js
View file @
93f4a17c
...
...
@@ -153,7 +153,11 @@ function initPage(companyInfo) {
success
:
function
(
data
)
{
hideLoading
()
if
(
data
.
code
==
99
||
data
.
code
==
"99"
)
{
if
(
data
.
errmsg
!=
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
return
false
}
requestData
.
flag
=
true
;
...
...
@@ -263,7 +267,6 @@ function initPage(companyInfo) {
// TODO 开始加载等待动画
showLoading
();
$
.
ajax
({
// url: url + "/ssfwpt/amend/getPzzlList", // 查询接口
url
:
url
+
"/ssfwpt/amend/getPzzlList"
,
data
:
param
,
type
:
"POST"
,
...
...
@@ -279,14 +282,16 @@ function initPage(companyInfo) {
item
.
ybtse
=
Number
(
item
.
ybtse
)
})
companyInfo
=
data
.
bean
;
// console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■");
// console.log(companyInfo);
// console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■");
config
.
value
=
companyInfo
.
value
;
pagingDataFun
(
sourceData
,
1
,
initPagingNum
);
taxAmendGrid
(
sourceData
);
}
else
{
if
(
data
.
errmsg
!=
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
}
}).
always
(
function
(
data
)
{
hideLoading
();
});
...
...
static/biz/cancellation_grid.js
View file @
93f4a17c
...
...
@@ -229,10 +229,17 @@ function initPage(companyInfo) {
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
companyInfo
=
data
.
bean
;
config
.
value
=
companyInfo
.
value
;
if
(
data
.
bean
){
drawGrid
(
data
.
bean
);
}
}
else
{
if
(
data
.
errmsg
!=
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
}
}).
always
(
function
(
data
)
{
hideLoading
();
});
...
...
@@ -245,6 +252,9 @@ function initPage(companyInfo) {
$
(
'#myMask #myModal'
).
hide
();
}
var
drawGrid
=
function
(
bean
)
{
if
(
bean
==
null
||
bean
==
'null'
||
bean
==
''
||
bean
==
undefined
||
'undefined'
){
return
false
;
}
if
(
bean
.
taxInfos
.
length
==
0
)
{
alertInfo
(
"税费申报暂无数据"
);
}
...
...
@@ -318,7 +328,11 @@ function initPage(companyInfo) {
},
success
:
function
(
data
)
{
if
(
data
.
code
==
99
||
data
.
code
==
"99"
)
{
if
(
data
.
errmsg
!=
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
return
false
}
hideLoading
()
...
...
static/biz/declare_grid.js
View file @
93f4a17c
...
...
@@ -255,8 +255,13 @@ function initPage(companyInfo) {
}
drawGrid
(
data
.
bean
);
companyInfo
=
data
.
bean
;
config
.
value
=
companyInfo
.
value
;
}
else
{
if
(
data
.
errmsg
!=
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
}
}).
always
(
function
(
data
)
{
hideLoading
();
...
...
@@ -346,7 +351,11 @@ function initPage(companyInfo) {
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
);
...
...
static/biz/overdue_grid.js
View file @
93f4a17c
...
...
@@ -226,8 +226,14 @@ function initPage(companyInfo) {
if
(
data
.
success
)
{
drawGrid
(
data
.
bean
);
companyInfo
=
data
.
bean
;
}
config
.
value
=
companyInfo
.
value
;
}
else
{
if
(
data
.
errmsg
!=
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
}
}).
always
(
function
(
data
)
{
hideLoading
();
});
...
...
@@ -287,7 +293,11 @@ function initPage(companyInfo) {
success
:
function
(
data
)
{
hideLoading
()
if
(
data
.
code
==
99
||
data
.
code
==
"99"
)
{
if
(
data
.
errmsg
!=
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
return
false
}
localStorage
.
setItem
(
"data"
,
JSON
.
stringify
(
submitData
));
...
...
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