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
49cda8c7
Commit
49cda8c7
authored
Feb 01, 2021
by
刘明珠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逾期申报:js更新
parent
922bbcab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
20 deletions
+102
-20
overdue_grid.js
static/biz/overdue_grid.js
+102
-20
No files found.
static/biz/overdue_grid.js
View file @
49cda8c7
...
...
@@ -5,11 +5,82 @@
* @modify 王雷
*/
// -------------------------------
var
initpage
;
$
(
function
()
{
showLoading
();
getInitTable
();
})
function
getInitTable
()
{
$
.
ajax
({
type
:
"GET"
,
url
:
config
.
url
+
"/online/overdue/index"
,
dataType
:
"json"
,
// 请求方式为jsonp
// async: false,
data
:
{
djxh
:
getUrlParam
(
"djxh"
),
token
:
getUrlParam
(
"token"
),
sbsq
:
''
,
pzzlDm
:
getUrlParam
(
"pzzlDm"
)
},
success
:
function
(
data
)
{
//客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading
();
//el表达式变jq
// $("#token").attr("value","");
var
companyInfo
=
data
;
$
(
"#djxh"
).
attr
(
"value"
,
companyInfo
.
djxh
);
config
.
value
=
companyInfo
.
bean
.
value
if
(
companyInfo
.
success
)
{
if
(
companyInfo
.
bean
.
sfyhzctsBz
==
'Y'
)
{
myAlert
(
"提示"
,
"尊敬的纳税人、缴费人,为进一步巩固拓展减税降费成效,助力市场主体纾困解难,对部分2020年底到期税费优惠政策(不包括社会保险费),您可暂按原政策文件规定申报享受优惠(原减免性质代码可继续使用)。详细情况可咨询主管税务分局、税务所或12366纳税服务热线。感谢您的理解与支持!!"
,
"确定"
);
}
companyInfo
.
bean
.
config
=
config
companyInfo
.
bean
.
return
=
true
;
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"
);
companyInfo
.
bean
.
return
=
false
;
}
companyInfo
.
bean
.
config
=
config
initpage
=
initPage
(
companyInfo
.
bean
);
// alertWarning(companyInfo.errmsg);
// 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
)
{
//jsonp 方式此方法不被触发
console
.
log
(
"=======error======================"
)
}
})
}
/**
* 绘制税种填报页面
*
* @param {*} companyInfo
*/
var
yearBblxDm
=
[
'10414'
,
'10420'
];
function
initPage
(
companyInfo
)
{
getIEVersion
();
localStorage
.
setItem
(
"cancellation"
,
null
);
...
...
@@ -36,7 +107,7 @@ function initPage(companyInfo) {
}
var
id
=
"#taxGrid"
;
var
buttonHtml
=
"填写申报表"
;
var
order
=
[
"pzzlMc"
,
"sssqQ"
,
"sssqZ"
,
"sbqx"
,
"sbrq"
,
"do"
];
var
order
=
[
"pzzlMc"
,
"sssqQ"
,
"sssqZ"
,
"sbqx"
,
"sbrq"
,
"do"
];
var
promptStatement
=
""
;
var
headerList
=
[{
name
:
"序号"
,
...
...
@@ -149,11 +220,16 @@ function initPage(companyInfo) {
data
.
fillingFlag
=
"overdue"
// 填报标记
data
.
saveUserId
=
"zxtb"
;
// 用户id
window
.
mlistener
.
selectRowData
=
data
;
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
if
(
yearBblxDm
.
indexOf
(
data
.
bblxDm
))
{
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
}
else
{
data
.
saveUserId
=
"zxtb_singleReport"
;
// 用户id
window
.
open
(
config
.
yearTaxTable
,
'_blank'
);
}
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
getTaxOverdue
(
nowDate
,
"N"
,
'2'
);
getTaxOverdue
(
nowDate
,
"N"
,
'2'
);
},
1000
);
}
})
...
...
@@ -230,10 +306,10 @@ function initPage(companyInfo) {
drawGrid
(
data
.
bean
);
companyInfo
=
data
.
bean
;
config
.
value
=
companyInfo
.
value
;
if
(
type
==
'Y'
)
{
if
(
type
==
'Y'
)
{
myAlert
(
"提示"
,
"重置清册成功"
,
"确定"
)
}
}
else
{
}
else
{
if
(
data
.
errmsg
!=
undefined
)
{
alertWarning
(
data
.
errmsg
);
}
else
{
...
...
@@ -275,11 +351,16 @@ function initPage(companyInfo) {
submitData
.
fillingFlag
=
"overdue"
// 填报标记
data
.
saveUserId
=
"zxtb"
;
// 用户id
window
.
mlistener
.
selectRowData
=
submitData
;
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
if
(
yearBblxDm
.
indexOf
(
data
.
bblxDm
))
{
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
}
else
{
data
.
saveUserId
=
"zxtb_singleReport"
;
// 用户id
window
.
open
(
config
.
yearTaxTable
,
'_blank'
);
}
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
getTaxOverdue
(
nowDate
,
"N"
,
'2'
);
getTaxOverdue
(
nowDate
,
"N"
,
'2'
);
},
1000
);
}
})
...
...
@@ -307,22 +388,23 @@ function initPage(companyInfo) {
return
false
}
localStorage
.
setItem
(
"data"
,
JSON
.
stringify
(
submitData
));
var
url
=
""
;
if
(
data
.
url
==
"edit.jsp"
)
{
url
=
config
.
spreadUrl
+
"/online_report/declare/toPzzl?falg="
+
falg
}
else
if
(
data
.
url
==
"yearReport.jsp"
)
{
url
=
config
.
spreadUrl
+
"/online_report/declare/yearReport.html?falg="
+
falg
+
'¶ms='
+
encodeURI
(
JSON
.
stringify
(
submitData
));
}
else
if
(
data
.
url
==
"yearReportGLB.jsp"
)
{
url
=
config
.
spreadUrl
+
"/online_report/declare/yearReportGLB.html?falg="
+
falg
+
'¶ms='
+
encodeURI
(
JSON
.
stringify
(
submitData
));
}
else
{
//因为后台不知道返回路径是什么样的就直接改成了else data.url == "error.jsp"
url
=
config
.
spreadUrl
+
"/online_report/error/index.html?falg="
+
falg
+
'¶ms='
+
encodeURI
(
JSON
.
stringify
(
submitData
))
}
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
();
/* if (data.url == "edit.jsp") {
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 {
window.open(config.webUrl+"error/index.html?falg="+falg+'¶ms=' + encodeURI(JSON.stringify(submitData)));
}*/
},
error
:
function
(
xhr
)
{
hideLoading
()
...
...
@@ -352,12 +434,12 @@ function initPage(companyInfo) {
var
changeDate
=
function
(
obj
,
dp
)
{
date
=
dp
.
cal
.
getNewDateStr
();
nowDate
=
date
;
getTaxOverdue
(
date
,
"N"
);
getTaxOverdue
(
date
,
"N"
);
};
var
refresh
=
function
()
{
myConfirm
(
"消息"
,
"您确定需要重置申报清册吗?点击确定继续"
,
"确定"
,
"取消"
,
function
()
{
getTaxOverdue
(
nowDate
,
"Y"
);
getTaxOverdue
(
nowDate
,
"Y"
);
});
};
/**
...
...
@@ -380,4 +462,4 @@ 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