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
dcde7a92
Commit
dcde7a92
authored
Aug 17, 2020
by
刘明珠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逾期、清算添加申报日期列;代码格式化
parent
0c648e04
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1285 additions
and
1246 deletions
+1285
-1246
index.html
jsp/amend/index.html
+126
-119
index.html
jsp/cancellation/index.html
+117
-109
index.html
jsp/overdue/index.html
+9
-2
amend_grid.js
static/biz/amend_grid.js
+326
-326
cancellation_grid.js
static/biz/cancellation_grid.js
+340
-331
declare_grid.js
static/biz/declare_grid.js
+34
-33
overdue_grid.js
static/biz/overdue_grid.js
+333
-326
No files found.
jsp/amend/index.html
View file @
dcde7a92
<!DOCTYPE html>
<html>
...
...
@@ -10,7 +9,7 @@
<!-- 让IE浏览器用最高级内核渲染页面 还有用 Chrome 框架的页面用webkit 内核 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<!-- IOS6全屏 Chrome高版本全屏 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"edge"
>
<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/paging-table.css"
/>
...
...
@@ -27,8 +26,9 @@
<title>
申报更正
</title>
</head>
<script>
document
.
write
(
"<script type='text/javascript' src='/web/onlineReport/static/config.js?time="
+
Math
.
random
()
+
"'></"
+
"script"
+
">"
)
document
.
write
(
"<script type='text/javascript' src='/web/onlineReport/static/config.js?time="
+
Math
.
random
()
+
"'></"
+
"script"
+
">"
)
</script>
<body>
<div
class=
"div-border father-div"
>
<div
class=
"div-border first-child-div"
>
...
...
@@ -52,10 +52,17 @@
<span> - </span>
<input readonly id="declarationDateEnd" name="declarationDateEnd" style="width: 10%; display: inline;" type="text" value="" class="Wdate checkId-input check-items-birthday form-control" onfocus="WdatePicker({isShowClear:false,dateFmt:'yyyy-MM-dd'})"> -->
<span>
税款所属期起止:
</span>
<input
readonly
id=
"durationOfTaxStart"
name=
"durationOfTaxStart"
style=
"width: 10%; display: inline;min-width: 150px"
type=
"text"
class=
"Wdate checkId-input check-items-birthday form-control"
onfocus=
"WdatePicker({isShowClear:false,dateFmt:'yyyy-MM-dd'})"
>
<input
readonly
id=
"durationOfTaxStart"
name=
"durationOfTaxStart"
style=
"width: 10%; display: inline;min-width: 150px"
type=
"text"
class=
"Wdate checkId-input check-items-birthday form-control"
onfocus=
"WdatePicker({isShowClear:false,dateFmt:'yyyy-MM-dd'})"
>
<span>
-
</span>
<input
readonly
id=
"durationOfTaxEnd"
name=
"durationOfTaxEnd"
style=
"width: 10%; display: inline;min-width: 150px"
type=
"text"
class=
"Wdate checkId-input check-items-birthday form-control"
onfocus=
"WdatePicker({isShowClear:false,dateFmt:'yyyy-MM-dd'})"
>
<input
class=
"btn btn-primary btn-search margin-left"
style=
"margin-top: -5px;"
type=
"button"
id=
"getAmendData"
value=
"查询"
/>
<input
readonly
id=
"durationOfTaxEnd"
name=
"durationOfTaxEnd"
style=
"width: 10%; display: inline;min-width: 150px"
type=
"text"
class=
"Wdate checkId-input check-items-birthday form-control"
onfocus=
"WdatePicker({isShowClear:false,dateFmt:'yyyy-MM-dd'})"
>
<input
class=
"btn btn-primary btn-search margin-left"
style=
"margin-top: -5px;"
type=
"button"
id=
"getAmendData"
value=
"查询"
/>
</div>
<div
style=
"height:16px;"
></div>
<div
id=
"taxAmendGrid"
></div>
...
...
@@ -95,7 +102,7 @@
// }
// -->
var
initpage
;
$
(
function
()
{
$
(
function
()
{
showLoading
();
$
.
ajax
({
type
:
"post"
,
...
...
@@ -131,7 +138,7 @@
// 弹出错误对话框
}
},
error
:
function
(
xhr
)
{
error
:
function
(
xhr
)
{
//jsonp 方式此方法不被触发
console
.
log
(
"=======error======================"
)
}
...
...
jsp/cancellation/index.html
View file @
dcde7a92
<!doctype html>
<html>
...
...
@@ -10,7 +9,7 @@
<!-- 让IE浏览器用最高级内核渲染页面 还有用 Chrome 框架的页面用webkit 内核 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<!-- IOS6全屏 Chrome高版本全屏 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"edge"
>
<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"
/>
...
...
@@ -26,14 +25,16 @@
<title>
清税注销清册
</title>
</head>
<script>
document
.
write
(
"<script type='text/javascript' src='/web/onlineReport/static/config.js?time="
+
Math
.
random
()
+
"'></"
+
"script"
+
">"
)
document
.
write
(
"<script type='text/javascript' src='/web/onlineReport/static/config.js?time="
+
Math
.
random
()
+
"'></"
+
"script"
+
">"
)
</script>
<body>
<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/cancellation.png"
>
<span
style=
"float:left;display:block;margin-left: 10px;margin-top: 9px;top: 10px;"
class=
"span-title"
>
清税注销清册
</span>
<span
style=
"float:left;display:block;margin-left: 10px;margin-top: 9px;top: 10px;"
class=
"span-title"
>
清税注销清册
</span>
</div>
<div
class=
"div-clear-folat"
style=
"padding-top: 10px;"
>
<strong>
税费申报
</strong>
...
...
@@ -81,11 +82,11 @@
// // 弹出错误对话框
// }
var
initpage
;
$
(
function
()
{
$
(
function
()
{
showLoading
();
$
.
ajax
({
type
:
"POST"
,
url
:
config
.
url
+
"/ssfwpt/liquidation/tax_info"
,
url
:
config
.
url
+
"/ssfwpt/liquidation/tax_info"
,
dataType
:
"json"
,
// 请求方式为jsonp
// async: false,
data
:
{
...
...
@@ -109,20 +110,27 @@
hideLoading
();
// initpage = initPage("");
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
);
return
false
;
// 弹出错误对话框
}
$
(
"#getInputValue"
).
on
(
"focus"
,
function
()
{
$
(
"#getInputValue"
).
on
(
"focus"
,
function
()
{
WdatePicker
({
isShowClear
:
false
,
isShowClear
:
false
,
dateFmt
:
'yyyy-MM'
,
onpicking
:
function
(
dp
)
{
onpicking
:
function
(
dp
)
{
initpage
.
changeDate
(
this
,
dp
);
}
});
});
},
error
:
function
(
xhr
)
{
error
:
function
(
xhr
)
{
//jsonp 方式此方法不被触发
console
.
log
(
"=======error======================"
)
}
...
...
jsp/overdue/index.html
View file @
dcde7a92
...
...
@@ -173,11 +173,18 @@
}
else
{
hideLoading
();
if
(
companyInfo
.
errmsg
!=
undefined
)
{
if
(
companyInfo
.
errmsg
!=
undefined
)
{
alertWarning
(
companyInfo
.
errmsg
);
}
else
{
}
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);
...
...
static/biz/amend_grid.js
View file @
dcde7a92
...
...
@@ -25,8 +25,8 @@ function initPage(companyInfo) {
var
sourceData
=
[];
var
newData
=
[];
//新数据
var
declareDate
=
" "
;
// 缓存申报日期
var
durationOfTaxStart
=
""
;
//缓存查询时间
var
durationOfTaxEnd
=
""
;
//缓存查询时间
var
durationOfTaxStart
=
""
;
//缓存查询时间
var
durationOfTaxEnd
=
""
;
//缓存查询时间
var
param
=
{};
/**
* @Description: 渲染更正table列表
...
...
@@ -35,7 +35,7 @@ function initPage(companyInfo) {
* @author ygy
* @date 2018/12/16 20:30
*/
var
taxAmendGrid
=
function
(
ddt
)
{
var
taxAmendGrid
=
function
(
ddt
)
{
var
declarationDateStart
=
$
(
"#declarationDateStart"
).
val
();
var
declarationDateEnd
=
$
(
"#declarationDateEnd"
).
val
();
declareDate
=
declarationDateStart
+
" "
+
declarationDateEnd
;
// 临时存储date 可能用于时间比对,赋值给时间全局变量
...
...
@@ -74,7 +74,7 @@ function initPage(companyInfo) {
* @author ygy
* @date 2018/12/16 20:31
*/
var
getTableDeclaration
=
function
(
id
,
order
,
headerList
,
ddt
,
buttonHtml
)
{
var
getTableDeclaration
=
function
(
id
,
order
,
headerList
,
ddt
,
buttonHtml
)
{
var
tableObj
=
{
id
:
id
,
//tabel父元素的id
autoHeight
:
10
,
...
...
@@ -90,18 +90,18 @@ function initPage(companyInfo) {
page
:
"1"
,
pageSize
:
"20"
},
jsonReady
:
ddt
,
callback
:
function
(
data
,
node
)
{
jsonReady
:
ddt
,
callback
:
function
(
data
,
node
)
{
console
.
log
(
"一条数据信息"
,
data
)
data
.
value
=
config
.
value
;
if
(
data
.
sourceFlag
==
"ssfwpt_sbzj"
)
{
if
(
data
.
sourceFlag
==
"ssfwpt_sbzj"
)
{
window
.
mlistener
=
{
selectRowData
:
{},
};
data
.
fillingFlag
=
"corrections"
// 填报标记
data
.
saveUserId
=
"zxtb"
;
// 用户id
data
.
saveUserId
=
"zxtb"
;
// 用户id
window
.
mlistener
.
selectRowData
=
data
;
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
...
...
@@ -109,28 +109,28 @@ function initPage(companyInfo) {
djxh
:
companyInfo
.
djxh
,
//登记序号
sbrqq
:
durationOfTaxStart
,
// 申报日期起
sbrqz
:
durationOfTaxEnd
,
// 申报日期止
gzCacheKey
:
companyInfo
.
gzCacheKey
,
//登记序号
gzCacheKey
:
companyInfo
.
gzCacheKey
,
//登记序号
}
getTaxAmendData
(
param
);
},
1000
);
}
})
}
else
{
}
else
{
//TODO 跳转页面
data
.
djxh
=
companyInfo
.
djxh
;
data
.
nssbqq2
=
durationOfTaxStart
;
data
.
nssbqz2
=
durationOfTaxEnd
;
data
.
gzCacheKey
=
companyInfo
.
gzCacheKey
;
data
.
checkTime
=
false
;
if
(
data
.
bblxDm
===
'11602'
)
{
if
(
data
.
bblxDm
===
'11602'
)
{
var
List
=
companyInfo
.
gzTaxInfos
.
filter
(
function
(
item
)
{
return
item
.
bblxDm
==
'10101'
||
item
.
bblxDm
==
'10102'
})
if
(
List
.
length
===
0
)
{
if
(
List
.
length
===
0
)
{
data
.
checkTime
=
true
;
}
for
(
var
i
=
0
;
i
<
List
.
length
;
i
++
)
{
if
(
List
[
i
].
skssqq
!==
data
.
skssqq
||
List
[
i
].
skssqz
!==
data
.
skssqz
)
{
for
(
var
i
=
0
;
i
<
List
.
length
;
i
++
)
{
if
(
List
[
i
].
skssqq
!==
data
.
skssqq
||
List
[
i
].
skssqz
!==
data
.
skssqz
)
{
data
.
checkTime
=
true
;
break
;
}
...
...
@@ -152,19 +152,19 @@ function initPage(companyInfo) {
},
success
:
function
(
data
)
{
hideLoading
()
if
(
data
.
code
==
99
||
data
.
code
==
"99"
)
{
if
(
data
.
code
==
99
||
data
.
code
==
"99"
)
{
alertWarning
(
data
.
errmsg
);
return
false
}
requestData
.
flag
=
true
;
requestData
.
encryptKey
=
config
.
value
+
"1"
;
localStorage
.
setItem
(
"data"
,
requestData
);
var
url
=
config
.
spreadUrl
+
"/online_report/amend/toGzPzzl?falg="
+
falg
var
url
=
config
.
spreadUrl
+
"/online_report/amend/toGzPzzl?falg="
+
falg
var
form
=
$
(
"#changeForm_amend"
);
form
.
attr
(
'action'
,
url
);
//通过jquery为action属性赋值
form
.
attr
(
'action'
,
url
);
//通过jquery为action属性赋值
form
.
find
(
"#changeForm_data"
).
val
(
JSON
.
stringify
(
requestData
));
form
.
submit
();
/* if (data.url == "../declare/edit.jsp") {
/* if (data.url == "../declare/edit.jsp") {
window.open(config.webUrl+"declare/edit.html?falg="+falg+'¶ms=' + encodeURI(JSON.stringify(requestData)));
}else if (data.url == "../declare/yearReport.jsp") {
window.open(config.webUrl+"declare/yearReport.html?falg="+'¶ms=' + encodeURI(JSON.stringify(requestData)));
...
...
@@ -174,7 +174,7 @@ function initPage(companyInfo) {
window.open(config.webUrl+"error/index.html?falg="+'¶ms=' + encodeURI(JSON.stringify(requestData)));
}*/
},
error
:
function
(
xhr
)
{
error
:
function
(
xhr
)
{
hideLoading
()
alertWarning
(
data
.
returnMessage
);
//jsonp 方式此方法不被触发
...
...
@@ -194,7 +194,7 @@ function initPage(companyInfo) {
* @date 2018/12/16 20:56
*/
$
(
"#getAmendData"
).
click
(
function
()
{
$
(
"#getAmendData"
).
click
(
function
()
{
var
declarationDateStart
=
$
(
"#declarationDateStart"
).
val
();
var
declarationDateEnd
=
$
(
"#declarationDateEnd"
).
val
();
var
declarationDate
=
" "
;
...
...
@@ -207,7 +207,7 @@ function initPage(companyInfo) {
djxh
:
companyInfo
.
djxh
,
//登记序号
sbrqq
:
durationOfTaxStart
,
// 申报日期起
sbrqz
:
durationOfTaxEnd
,
// 申报日期止
gzCacheKey
:
companyInfo
.
gzCacheKey
,
//登记序号
gzCacheKey
:
companyInfo
.
gzCacheKey
,
//登记序号
}
// if (tool.bijiaodata(durationOfTaxStart, durationOfTaxEnd)) {
// alertInfo("税款所属期起必须小于等于税款所属期止!");
...
...
@@ -226,7 +226,7 @@ function initPage(companyInfo) {
/**
* 获取的源数据进行数据处理
*/
var
handleSourceData
=
function
(
temporaryDate
,
durationOfTaxStart
,
durationOfTaxEnd
)
{
var
handleSourceData
=
function
(
temporaryDate
,
durationOfTaxStart
,
durationOfTaxEnd
)
{
// 遍历缓存数据,将符合条件的存储到新数组中(时间,申报表名称)
newData
=
[];
if
(
!
durationOfTaxStart
&&
!
durationOfTaxEnd
)
{
...
...
@@ -258,7 +258,7 @@ function initPage(companyInfo) {
//http://sbjs.tjsat.gov.cn:18090
//http://localhost:7070
var
url
=
companyInfo
.
config
.
url
;
var
getTaxAmendData
=
function
(
param
)
{
var
getTaxAmendData
=
function
(
param
)
{
param
.
value
=
config
.
value
;
// TODO 开始加载等待动画
showLoading
();
...
...
@@ -268,26 +268,26 @@ function initPage(companyInfo) {
data
:
param
,
type
:
"POST"
,
dataType
:
"JSON"
}).
done
(
function
(
data
)
{
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
sourceData
=
data
.
bean
.
gzTaxInfos
;
newData
=
sourceData
;
if
(
newData
.
length
==
0
)
{
if
(
newData
.
length
==
0
)
{
alertInfo
(
"选择区间暂无数据"
);
}
sourceData
.
map
(
function
(
item
)
{
item
.
ybtse
=
Number
(
item
.
ybtse
)
})
companyInfo
=
data
.
bean
;
// console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■");
// console.log(companyInfo);
// console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■");
// console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■");
// console.log(companyInfo);
// console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■");
pagingDataFun
(
sourceData
,
1
,
initPagingNum
);
taxAmendGrid
(
sourceData
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
}).
always
(
function
(
data
)
{
}).
always
(
function
(
data
)
{
hideLoading
();
});
...
...
@@ -298,7 +298,7 @@ function initPage(companyInfo) {
* @author ygy
* @date 2018/12/17 13:58
*/
var
taxAmendPaging
=
function
(
id
,
data
)
{
var
taxAmendPaging
=
function
(
id
,
data
)
{
$
(
"#taxAmendPaging"
).
remove
();
var
html
=
'<div style="float:right;margin-right: 15px;" id="taxAmendPaging" class="page_divContainer">'
+
'<div class="div-float"></div>'
;
...
...
@@ -307,7 +307,7 @@ function initPage(companyInfo) {
pageNo
:
1
,
//开始时选中的页数
pageSize
:
initPagingNum
,
//每页条数
totalSize
:
newData
.
length
,
//总条数
callback
:
function
(
num
,
num2
)
{
callback
:
function
(
num
,
num2
)
{
num
=
parseInt
(
num
);
num2
=
parseInt
(
num2
);
if
(
parseInt
(
num2
)
!=
initPagingNum
)
{
...
...
@@ -328,7 +328,7 @@ function initPage(companyInfo) {
* @param {默认第一页码} page
* @param {每页默认多少条} num
*/
var
pagingDataFun
=
function
(
data
,
page
,
num
)
{
var
pagingDataFun
=
function
(
data
,
page
,
num
)
{
pagingData
=
[];
// 调用该方法,就清空原数组的数据
if
(
num
>=
data
.
length
)
{
pagingData
=
data
;
...
...
@@ -348,8 +348,8 @@ function initPage(companyInfo) {
$
(
"#durationOfTaxStart"
).
attr
(
"value"
,
tool
.
formatDate
(
companyInfo
.
sbqq
));
$
(
"#durationOfTaxEnd"
).
attr
(
"value"
,
tool
.
formatDate
(
companyInfo
.
sbqz
));
newData
=
companyInfo
.
gzTaxInfos
if
(
newData
.
length
>
0
)
{
pagingDataFun
(
newData
,
1
,
initPagingNum
);
if
(
newData
&&
newData
.
length
>
0
)
{
pagingDataFun
(
newData
,
1
,
initPagingNum
);
}
return
{}
}
\ No newline at end of file
static/biz/cancellation_grid.js
View file @
dcde7a92
/**
* 按期申报填报列表页控制脚本
*
...
...
@@ -22,57 +21,60 @@ function initPage(companyInfo) {
/**
* 展示税种申报信息
*/
var
showTax
=
function
(
taxInfo
)
{
var
showTax
=
function
(
taxInfo
)
{
//时间格式化
$
.
each
(
taxInfo
,
function
(
i
,
item
)
{
if
(
item
.
sssqQ
)
{
$
.
each
(
taxInfo
,
function
(
i
,
item
)
{
if
(
item
.
sssqQ
)
{
item
.
sssqQ
=
tool
.
formatDate
(
item
.
sssqQ
);
}
if
(
item
.
sssqZ
)
{
if
(
item
.
sssqZ
)
{
item
.
sssqZ
=
tool
.
formatDate
(
item
.
sssqZ
);
}
})
var
id
=
"#taxGrid"
;
var
buttonHtml
=
"填写申报表"
;
var
order
=
[
"pzzlMc"
,
"sssqQ"
,
"sssqZ
"
,
"do"
];
var
order
=
[
"pzzlMc"
,
"sssqQ"
,
"sssqZ"
,
"sbrq
"
,
"do"
];
var
promptStatement
=
""
;
var
headerList
=
[{
name
:
"序号"
,
width
:
"5%"
},
{
name
:
"申报表"
,
width
:
"6
5%"
width
:
"5
5%"
},
{
name
:
"税款所属期起"
,
width
:
"10%"
},
{
name
:
"税款所属期止"
,
width
:
"10%"
},
{
name
:
"申报日期"
,
width
:
"10%"
},
{
name
:
"操作"
,
width
:
"10%"
}];
//渲染表
getTableDeclaration
(
id
,
order
,
headerList
,
taxInfo
,
buttonHtml
,
promptStatement
)
getTableDeclaration
(
id
,
order
,
headerList
,
taxInfo
,
buttonHtml
,
promptStatement
)
};
/**
* 展示财务报表申报信息
*/
var
showFinancial
=
function
(
financialInfo
,
type
)
{
var
showFinancial
=
function
(
financialInfo
,
type
)
{
//时间格式化
$
.
each
(
financialInfo
,
function
(
i
,
item
)
{
if
(
item
.
sssqQ
)
{
$
.
each
(
financialInfo
,
function
(
i
,
item
)
{
if
(
item
.
sssqQ
)
{
item
.
sssqQ
=
tool
.
formatDate
(
item
.
sssqQ
);
}
if
(
item
.
sssqZ
)
{
if
(
item
.
sssqZ
)
{
item
.
sssqZ
=
tool
.
formatDate
(
item
.
sssqZ
);
}
})
var
id
=
"#financialGrid"
;
var
buttonHtml
=
"填写申报表"
;
var
order
=
[
"kjzd"
,
"pzzlMc"
,
"sssqQ"
,
"sssqZ
"
,
"do"
];
var
promptStatement
=
""
;
if
(
financialInfo
.
length
<
1
&&
type
==
1
)
{
var
order
=
[
"kjzd"
,
"pzzlMc"
,
"sssqQ"
,
"sssqZ"
,
"sbrq
"
,
"do"
];
var
promptStatement
=
""
;
if
(
financialInfo
.
length
<
1
&&
type
==
1
)
{
promptStatement
=
"您尚未进行财务报表类型备案,请先备案后再进行申报"
;
}
var
headerList
=
[{
...
...
@@ -83,19 +85,22 @@ function initPage(companyInfo) {
width
:
"10%"
},
{
name
:
"财务报表报送小类"
,
width
:
"5
5%"
width
:
"4
5%"
},
{
name
:
"报送所属期起"
,
width
:
"10%"
},
{
name
:
"报送所属期止"
,
width
:
"10%"
},
{
name
:
"申报日期"
,
width
:
"10%"
},
{
name
:
"操作"
,
width
:
"10%"
}];
//渲染表
getTableDeclaration
(
id
,
order
,
headerList
,
financialInfo
,
buttonHtml
,
promptStatement
)
getTableDeclaration
(
id
,
order
,
headerList
,
financialInfo
,
buttonHtml
,
promptStatement
)
};
...
...
@@ -107,34 +112,38 @@ function initPage(companyInfo) {
* @param {*} ddt
* @param {*} buttonHtml
*/
var
getTableDeclaration
=
function
(
id
,
order
,
headerList
,
ddt
,
buttonHtml
,
promptStatement
)
{
var
getTableDeclaration
=
function
(
id
,
order
,
headerList
,
ddt
,
buttonHtml
,
promptStatement
)
{
var
tableObj
=
{
id
:
id
,
//tabel父元素的id
autoHeight
:
ddt
.
length
>
0
?
10
:
""
,
autoHeight
:
ddt
.
length
>
0
?
10
:
""
,
containerWidth
:
"99%"
,
//table占父元素的百分比
autoHeight
:
ddt
.
length
>
0
?
10
:
""
,
// 默认10行
autoHeight
:
ddt
.
length
>
0
?
10
:
""
,
// 默认10行
order
:
order
,
//数据按照什么顺序排序 1.do为是否保函操作 2.序号列会自动添加不需要写
onlyId
:
"uuId"
,
//数据的唯一标识
height
:
"320"
,
//表格的高度
buttonHeight
:
""
,
//表格的高度
buttonHtml
:
buttonHtml
,
//按钮里的字
headerList
:
headerList
,
//表头名字及占比,顺序与order对应
promptStatement
:
promptStatement
,
// 没有数据时默认提示
promptStatement
:
promptStatement
,
// 没有数据时默认提示
data
:
{
page
:
"1"
,
pageSize
:
ddt
.
length
},
jsonReady
:
ddt
,
callback
:
function
(
data
,
node
)
{
callback
:
function
(
data
,
node
)
{
if
(
data
.
sbzt
==
"Y"
)
{
myAlert
(
"提示"
,
"当前申报表已经申报"
,
"确定"
)
return
false
;
}
data
.
value
=
config
.
value
;
if
(
data
.
sourceFlag
==
"ssfwpt_sbzj"
)
{
if
(
data
.
sourceFlag
==
"ssfwpt_sbzj"
)
{
window
.
mlistener
=
{
selectRowData
:
{},
};
data
.
fillingFlag
=
"cancellation"
// 填报标记
data
.
saveUserId
=
"zxtb"
;
// 用户id
data
.
saveUserId
=
"zxtb"
;
// 用户id
window
.
mlistener
.
selectRowData
=
data
;
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
...
...
@@ -142,36 +151,36 @@ function initPage(companyInfo) {
},
1000
);
}
})
}
else
{
}
else
{
data
.
djxh
=
companyInfo
.
djxh
;
data
.
iszzsybjc
=
companyInfo
.
iszzsybjc
;
// 一表申报代码
data
.
operateType
=
companyInfo
.
operateType
;
//标志位
data
.
nsrsbh
=
companyInfo
.
nsrsbh
;
// 那随人识别号
// data.nssbq = nowdate;
data
.
checkTime
=
false
;
if
(
data
.
pzzlDm
===
'11602'
)
{
if
(
data
.
pzzlDm
===
'11602'
)
{
var
List
=
companyInfo
.
taxInfos
.
filter
(
function
(
item
)
{
return
item
.
pzzlDm
==
'10101'
||
item
.
pzzlDm
==
'10102'
})
if
(
List
.
length
===
0
)
{
if
(
List
.
length
===
0
)
{
data
.
checkTime
=
true
;
}
for
(
var
i
=
0
;
i
<
List
.
length
;
i
++
)
{
if
(
List
[
i
].
sssqQ
!==
data
.
sssqQ
||
List
[
i
].
sssqZ
!==
data
.
sssqZ
)
{
for
(
var
i
=
0
;
i
<
List
.
length
;
i
++
)
{
if
(
List
[
i
].
sssqQ
!==
data
.
sssqQ
||
List
[
i
].
sssqZ
!==
data
.
sssqZ
)
{
data
.
checkTime
=
true
;
break
;
}
}
}
var
str
=
location
.
href
;
var
str
=
location
.
href
;
str
=
str
.
split
(
"/"
)[
4
];
if
(
str
&&
"cancellation"
==
str
.
substring
(
0
,
12
))
{
console
.
log
(
"============"
,
str
)
localStorage
.
setItem
(
"cancellation"
,
str
.
substring
(
0
,
12
));
if
(
str
&&
"cancellation"
==
str
.
substring
(
0
,
12
))
{
console
.
log
(
"============"
,
str
)
localStorage
.
setItem
(
"cancellation"
,
str
.
substring
(
0
,
12
));
}
console
.
log
(
"■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■"
);
console
.
log
(
"data"
,
data
);
console
.
log
(
"data"
,
data
);
console
.
log
(
"■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■"
);
submitData
=
data
;
declarationMethod
(
"N"
)
...
...
@@ -198,10 +207,10 @@ function initPage(companyInfo) {
//http://sbjs.tjsat.gov.cn:18090
//http://localhost:7070
var
url
;
if
(
companyInfo
)
{
if
(
companyInfo
)
{
url
=
config
.
url
;
}
var
getTaxDeclaration
=
function
(
date
,
type
)
{
var
getTaxDeclaration
=
function
(
date
,
type
)
{
// TODO 开始加载等待动画
showLoading
();
var
param
=
{
...
...
@@ -217,14 +226,14 @@ function initPage(companyInfo) {
data
:
param
,
type
:
"POST"
,
dataType
:
"JSON"
}).
done
(
function
(
data
)
{
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
companyInfo
=
data
.
bean
;
drawGrid
(
data
.
bean
);
}
else
{
alertWarning
(
data
.
returnMessage
);
}
}).
always
(
function
(
data
)
{
}).
always
(
function
(
data
)
{
hideLoading
();
});
};
...
...
@@ -236,18 +245,18 @@ function initPage(companyInfo) {
$
(
'#myMask #myModal'
).
hide
();
}
var
drawGrid
=
function
(
bean
)
{
if
(
bean
.
taxInfos
.
length
==
0
)
{
if
(
bean
.
taxInfos
.
length
==
0
)
{
alertInfo
(
"税费申报暂无数据"
);
}
showTax
(
bean
.
taxInfos
);
if
(
bean
.
financialInfos
.
length
==
0
)
{
showFinancial
(
bean
.
financialInfos
,
0
);
if
(
bean
.
financialInfos
.
length
==
0
)
{
showFinancial
(
bean
.
financialInfos
,
0
);
alertInfo
(
"财务报表报送暂无数据"
);
}
else
{
if
(
bean
.
cwbbbabz
==
"N"
)
{
showFinancial
([],
1
);
}
else
if
(
bean
.
cwbbbabz
!=
"N"
)
{
showFinancial
(
bean
.
financialInfos
,
0
);
}
else
{
if
(
bean
.
cwbbbabz
==
"N"
)
{
showFinancial
([],
1
);
}
else
if
(
bean
.
cwbbbabz
!=
"N"
)
{
showFinancial
(
bean
.
financialInfos
,
0
);
}
}
...
...
@@ -259,18 +268,18 @@ function initPage(companyInfo) {
* @param {*} obj
* @param {*} dp
*/
var
changeDate
=
function
(
obj
,
dp
)
{
var
changeDate
=
function
(
obj
,
dp
)
{
date
=
dp
.
cal
.
getNewDateStr
();
nowdate
=
date
;
// 给缓存时间赋值
// 加了一个延时,时间改变后时间框没有收起隐藏就加载数据,没有找到好的解决办法,暂时用延时处理
setTimeout
(
function
()
{
setTimeout
(
function
()
{
getTaxDeclaration
(
date
,
"N"
);
},
50
);
},
50
);
};
var
refresh
=
function
()
{
myConfirm
(
"消息"
,
"您确定需要重置申报清册吗?点击确定继续"
,
"确定"
,
"取消"
,
function
()
{
var
refresh
=
function
()
{
myConfirm
(
"消息"
,
"您确定需要重置申报清册吗?点击确定继续"
,
"确定"
,
"取消"
,
function
()
{
getTaxDeclaration
(
nowdate
,
"Y"
);
});
};
...
...
@@ -278,14 +287,14 @@ function initPage(companyInfo) {
var
declarationMethod
=
function
(
statu
)
{
submitData
.
ybjcState
=
statu
;
submitData
.
value
=
config
.
value
;
if
(
submitData
.
sourceFlag
==
"ssfwpt_sbzj"
)
{
if
(
submitData
.
sourceFlag
==
"ssfwpt_sbzj"
)
{
window
.
mlistener
=
{
selectRowData
:
{},
};
submitData
.
fillingFlag
=
"inventory"
// 填报标记
data
.
saveUserId
=
"zxtb"
;
// 用户id
data
.
saveUserId
=
"zxtb"
;
// 用户id
window
.
mlistener
.
selectRowData
=
submitData
;
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
...
...
@@ -293,7 +302,7 @@ function initPage(companyInfo) {
},
1000
);
}
})
}
else
{
}
else
{
// var form = $("#changeForm");
// form.find("#changeForm_data").val(JSON.stringify(submitData));
// form.submit();
...
...
@@ -308,21 +317,21 @@ function initPage(companyInfo) {
data
:
JSON
.
stringify
(
submitData
)
},
success
:
function
(
data
)
{
if
(
data
.
code
==
99
||
data
.
code
==
"99"
)
{
if
(
data
.
code
==
99
||
data
.
code
==
"99"
)
{
alertWarning
(
data
.
errmsg
);
return
false
}
hideLoading
()
localStorage
.
setItem
(
"data"
,
JSON
.
stringify
(
submitData
));
localStorage
.
setItem
(
"data"
,
JSON
.
stringify
(
submitData
));
console
.
log
(
"请求成功"
,
data
)
submitData
.
flag
=
true
;
submitData
.
encryptKey
=
config
.
value
;
var
url
=
config
.
spreadUrl
+
"/online_report/declare/toPzzl?falg="
+
falg
var
url
=
config
.
spreadUrl
+
"/online_report/declare/toPzzl?falg="
+
falg
var
form
=
$
(
"#changeForm"
);
form
.
attr
(
'action'
,
url
);
//通过jquery为action属性赋值
form
.
attr
(
'action'
,
url
);
//通过jquery为action属性赋值
form
.
find
(
"#changeForm_data"
).
val
(
JSON
.
stringify
(
submitData
));
form
.
submit
();
/* if (data.url == "edit.jsp") {
/* 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)));
...
...
@@ -332,7 +341,7 @@ function initPage(companyInfo) {
window.open(config.webUrl+"error/index.html?falg="+falg+'¶ms=' + encodeURI(JSON.stringify(submitData)));
}*/
},
error
:
function
(
xhr
)
{
error
:
function
(
xhr
)
{
hideLoading
()
alertWarning
(
data
.
returnMessage
);
//jsonp 方式此方法不被触发
...
...
@@ -342,14 +351,14 @@ function initPage(companyInfo) {
// closeModal();
}
}
if
(
companyInfo
)
{
if
(
companyInfo
)
{
nowdate
=
companyInfo
.
sbsq
;
//var aaa = {taxInfos:[],financialInfos:[]};
drawGrid
(
companyInfo
);
}
//页面出现滚动条,监听滚动条变化将高赋值给模态框
window
.
onscroll
=
function
()
{
$
(
"#myModal"
).
css
(
"top"
,
$
(
document
).
scrollTop
()
+
235
);
window
.
onscroll
=
function
()
{
$
(
"#myModal"
).
css
(
"top"
,
$
(
document
).
scrollTop
()
+
235
);
}
return
{
// declarationMethod: declarationMethod,
...
...
static/biz/declare_grid.js
View file @
dcde7a92
...
...
@@ -171,7 +171,7 @@ function initPage(companyInfo) {
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
getTaxDeclaration
(
sbqDate
,
"N"
,
'2'
);
getTaxDeclaration
(
sbqDate
,
"N"
,
'2'
);
},
1000
);
}
})
...
...
@@ -298,13 +298,13 @@ function initPage(companyInfo) {
// 加了一个延时,时间改变后时间框没有收起隐藏就加载数据,没有找到好的解决办法,暂时用延时处理
sbqDate
=
date
setTimeout
(
function
()
{
getTaxDeclaration
(
date
,
"N"
,
'1'
);
getTaxDeclaration
(
date
,
"N"
,
'1'
);
},
50
);
};
var
refresh
=
function
()
{
myConfirm
(
"消息"
,
"您确定需要重置申报清册吗?点击确定继续"
,
"确定"
,
"取消"
,
function
()
{
getTaxDeclaration
(
nowdate
,
"Y"
,
'1'
);
getTaxDeclaration
(
nowdate
,
"Y"
,
'1'
);
});
};
//申报方式 当iszzsybjc=01同时pzzlDm=010101时,调用改方法
...
...
@@ -324,7 +324,7 @@ function initPage(companyInfo) {
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
getTaxDeclaration
(
sbqDate
,
"N"
,
'2'
);
getTaxDeclaration
(
sbqDate
,
"N"
,
'2'
);
},
1000
);
}
})
...
...
@@ -345,7 +345,7 @@ function initPage(companyInfo) {
},
success
:
function
(
data
)
{
hideLoading
()
if
(
data
.
code
==
99
||
data
.
code
==
"99"
)
{
if
(
data
.
code
==
99
||
data
.
code
==
"99"
)
{
alertWarning
(
data
.
errmsg
);
return
false
}
...
...
@@ -354,15 +354,16 @@ function initPage(companyInfo) {
if
(
data
.
url
==
"edit.jsp"
)
{
submitData
.
flag
=
true
;
submitData
.
encryptKey
=
config
.
value
;
var
url
=
config
.
spreadUrl
+
"/online_report/declare/toPzzl?falg="
+
falg
var
url
=
config
.
spreadUrl
+
"/online_report/declare/toPzzl?falg="
+
falg
var
form
=
$
(
"#changeForm"
);
form
.
attr
(
'action'
,
url
);
//通过jquery为action属性赋值
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") {
}
/* 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)));
...
...
static/biz/overdue_grid.js
View file @
dcde7a92
/**
* 逾期申报列表页控制脚本
*
...
...
@@ -19,30 +18,30 @@ function initPage(companyInfo) {
var
djxh
=
companyInfo
.
djxh
;
var
operateType
=
companyInfo
.
operateType
;
var
nowDate
=
""
;
//用于缓存查询时间的变化
var
nowDate
=
""
;
//用于缓存查询时间的变化
var
submitData
/**
* 展示税种申报信息
*/
var
showTax
=
function
(
taxInfo
)
{
if
(
taxInfo
.
length
>
0
)
{
for
(
var
i
=
0
;
i
<
taxInfo
.
length
;
i
++
)
{
if
(
taxInfo
[
i
].
sbrq
)
{
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
);
}
}
}
var
id
=
"#taxGrid"
;
var
buttonHtml
=
"填写申报表"
;
var
order
=
[
"pzzlMc"
,
"sssqQ"
,
"sssqZ"
,
"sbqx"
,
"do"
];
var
order
=
[
"pzzlMc"
,
"sssqQ"
,
"sssqZ"
,
"sbqx"
,
"sbrq"
,
"do"
];
var
promptStatement
=
""
;
var
headerList
=
[{
name
:
"序号"
,
width
:
"5%"
},
{
name
:
"申报表"
,
width
:
"5
5%"
width
:
"4
5%"
},
{
name
:
"税款所属期起"
,
width
:
"10%"
...
...
@@ -52,6 +51,9 @@ function initPage(companyInfo) {
},
{
name
:
"申报期限"
,
width
:
"10%"
},
{
name
:
"申报日期"
,
width
:
"10%"
},
{
name
:
"操作"
,
width
:
"10%"
...
...
@@ -62,17 +64,17 @@ function initPage(companyInfo) {
/**
* 展示财务报表申报信息
*/
var
showFinancial
=
function
(
financialInfo
,
type
)
{
if
(
financialInfo
.
length
>
0
)
{
for
(
var
i
=
0
;
i
<
financialInfo
.
length
;
i
++
)
{
var
showFinancial
=
function
(
financialInfo
,
type
)
{
if
(
financialInfo
.
length
>
0
)
{
for
(
var
i
=
0
;
i
<
financialInfo
.
length
;
i
++
)
{
financialInfo
[
i
].
sbrq
=
financialInfo
[
i
].
sbrq
?
financialInfo
[
i
].
sbrq
.
split
(
" "
)[
0
]
:
""
;
}
}
var
id
=
"#financialGrid"
;
var
buttonHtml
=
"填写财报"
;
var
order
=
[
"kjzd"
,
"pzzlMc"
,
"sssqQ"
,
"sssqZ"
,
"sbqx"
,
"do"
];
var
promptStatement
=
""
;
if
(
financialInfo
.
length
<
1
&&
type
==
1
)
{
var
promptStatement
=
""
;
if
(
financialInfo
.
length
<
1
&&
type
==
1
)
{
promptStatement
=
"您尚未进行财务报表类型备案,请先备案后再进行申报"
;
}
...
...
@@ -99,7 +101,7 @@ function initPage(companyInfo) {
width
:
"10%"
}];
//渲染表
getTableOverdue
(
id
,
order
,
headerList
,
financialInfo
,
buttonHtml
,
promptStatement
)
getTableOverdue
(
id
,
order
,
headerList
,
financialInfo
,
buttonHtml
,
promptStatement
)
};
...
...
@@ -111,73 +113,77 @@ function initPage(companyInfo) {
* @param {*} ddt
* @param {*} buttonHtml
*/
var
getTableOverdue
=
function
(
id
,
order
,
headerList
,
ddt
,
buttonHtml
,
promptStatement
)
{
var
getTableOverdue
=
function
(
id
,
order
,
headerList
,
ddt
,
buttonHtml
,
promptStatement
)
{
var
tableObj
=
{
id
:
id
,
//tabel父元素的id
autoHeight
:
ddt
.
length
>
0
?
10
:
""
,
autoHeight
:
ddt
.
length
>
0
?
10
:
""
,
containerWidth
:
"99%"
,
//table占父元素的百分比
autoHeight
:
ddt
.
length
>
0
?
10
:
""
,
// 默认10行
autoHeight
:
ddt
.
length
>
0
?
10
:
""
,
// 默认10行
order
:
order
,
//数据按照什么顺序排序 1.do为是否保函操作 2.序号列会自动添加不需要写
onlyId
:
"uuId"
,
//数据的唯一标识
height
:
"320"
,
//表格的高度
buttonHeight
:
""
,
//表格的高度
buttonHtml
:
buttonHtml
,
//按钮里的字
headerList
:
headerList
,
//表头名字及占比,顺序与order对应
promptStatement
:
promptStatement
,
// 没有数据时默认提示
promptStatement
:
promptStatement
,
// 没有数据时默认提示
data
:
{
page
:
"1"
,
pageSize
:
ddt
.
length
},
jsonReady
:
ddt
,
callback
:
function
(
data
,
node
)
{
callback
:
function
(
data
,
node
)
{
if
(
data
.
sbzt
==
"Y"
)
{
myAlert
(
"提示"
,
"当前申报表已经申报"
,
"确定"
)
return
false
;
}
data
.
value
=
config
.
value
;
if
(
data
.
sourceFlag
==
"ssfwpt_sbzj"
)
{
if
(
data
.
sourceFlag
==
"ssfwpt_sbzj"
)
{
window
.
mlistener
=
{
selectRowData
:
{},
};
data
.
fillingFlag
=
"overdue"
// 填报标记
data
.
saveUserId
=
"zxtb"
;
// 用户id
data
.
saveUserId
=
"zxtb"
;
// 用户id
window
.
mlistener
.
selectRowData
=
data
;
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
getTaxOverdue
(
nowDate
,
"N"
);
getTaxOverdue
(
nowDate
,
"N"
,
'2'
);
},
1000
);
}
})
}
else
{
}
else
{
data
.
djxh
=
djxh
;
data
.
operateType
=
operateType
;
data
.
iszzsybjc
=
companyInfo
.
iszzsybjc
;
// 一表申报代码
data
.
nsrsbh
=
companyInfo
.
nsrsbh
;
// 那随人识别号
data
.
nssbq
=
nowDate
;
// 将选择的日期放入json中
data
.
checkTime
=
false
;
if
(
data
.
pzzlDm
===
'11602'
)
{
if
(
data
.
pzzlDm
===
'11602'
)
{
var
List
=
companyInfo
.
taxInfos
.
filter
(
function
(
item
)
{
return
item
.
pzzlDm
==
'10101'
||
item
.
pzzlDm
==
'10102'
})
if
(
List
.
length
===
0
)
{
if
(
List
.
length
===
0
)
{
data
.
checkTime
=
true
;
}
for
(
var
i
=
0
;
i
<
List
.
length
;
i
++
)
{
if
(
List
[
i
].
sssqQ
!==
data
.
sssqQ
||
List
[
i
].
sssqZ
!==
data
.
sssqZ
)
{
for
(
var
i
=
0
;
i
<
List
.
length
;
i
++
)
{
if
(
List
[
i
].
sssqQ
!==
data
.
sssqQ
||
List
[
i
].
sssqZ
!==
data
.
sssqZ
)
{
data
.
checkTime
=
true
;
break
;
}
}
}
submitData
=
data
;
if
(
node
.
context
.
innerText
==
"填写申报表"
&&
companyInfo
.
iszzsybjc
==
"01"
&&
data
.
pzzlDm
==
"10101"
)
{
if
(
node
.
context
.
innerText
==
"填写申报表"
&&
companyInfo
.
iszzsybjc
==
"01"
&&
data
.
pzzlDm
==
"10101"
)
{
initpage
.
declarationMethod
(
'N'
)
// if(node.context.innerText=="填写申报表"){
// $('#myMask').show();
// $('#myModal').show();
// $('#dName').html(data.pzzlMc);
// $('#dName').attr("title",data.pzzlMc);//修改title值
// $('#ybName').html(data.pzzlMc);
// $('#ybName').attr("title",data.pzzlMc);//修改title值
}
else
{
// $('#myMask').show();
// $('#myModal').show();
// $('#dName').html(data.pzzlMc);
// $('#dName').attr("title",data.pzzlMc);//修改title值
// $('#ybName').html(data.pzzlMc);
// $('#ybName').attr("title",data.pzzlMc);//修改title值
}
else
{
declarationMethod
(
"N"
)
}
}
...
...
@@ -185,7 +191,7 @@ function initPage(companyInfo) {
}
//点击按钮后的回调函数
};
var
object
=
tool
.
tableCreate
(
tableObj
);
// object.jsonReadyTo(ddt, { page: "1", pageSize: ddt.length });
// object.jsonReadyTo(ddt, { page: "1", pageSize: ddt.length });
};
/**
...
...
@@ -195,19 +201,20 @@ function initPage(companyInfo) {
//地址
//http://sbjs.tjsat.gov.cn:18090
//http://localhost:7070
var
url
;
if
(
companyInfo
)
{
var
url
;
if
(
companyInfo
)
{
url
=
config
.
url
}
var
getTaxOverdue
=
function
(
date
,
type
)
{
var
getTaxOverdue
=
function
(
date
,
type
,
refreshSbzt
)
{
// TODO 开始加载等待动画
showLoading
();
var
param
=
{
djxh
:
djxh
,
sbsq
:
date
,
isFresh
:
type
.
toUpperCase
()
==
"Y"
,
operateType
:
operateType
,
value
:
config
.
value
operateType
:
operateType
,
value
:
config
.
value
,
refreshSbzt
:
refreshSbzt
}
$
.
ajax
({
// url: url + "/ssfwpt/declare/getPzzlList",
...
...
@@ -215,32 +222,32 @@ function initPage(companyInfo) {
data
:
param
,
type
:
"POST"
,
dataType
:
"JSON"
}).
done
(
function
(
data
)
{
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
drawGrid
(
data
.
bean
);
companyInfo
=
data
.
bean
;
}
alertWarning
(
data
.
returnMessage
);
}).
always
(
function
(
data
)
{
}).
always
(
function
(
data
)
{
hideLoading
();
});
};
var
drawGrid
=
function
(
bean
)
{
if
(
bean
.
taxInfos
.
length
==
0
)
{
if
(
bean
.
taxInfos
.
length
==
0
)
{
showTax
([]);
alertInfo
(
"税费申报暂无数据"
);
}
else
{
}
else
{
showTax
(
bean
.
taxInfos
);
}
if
(
bean
.
financialInfos
.
length
==
0
)
{
showFinancial
([],
0
);
if
(
bean
.
financialInfos
.
length
==
0
)
{
showFinancial
([],
0
);
alertInfo
(
"财务报表报送暂无数据"
);
}
else
{
if
(
bean
.
cwbbbabz
==
"N"
)
{
showFinancial
([],
1
);
}
else
if
(
bean
.
cwbbbabz
!=
"N"
)
{
showFinancial
(
bean
.
financialInfos
,
0
);
}
else
{
if
(
bean
.
cwbbbabz
==
"N"
)
{
showFinancial
([],
1
);
}
else
if
(
bean
.
cwbbbabz
!=
"N"
)
{
showFinancial
(
bean
.
financialInfos
,
0
);
}
}
};
...
...
@@ -248,22 +255,22 @@ function initPage(companyInfo) {
var
declarationMethod
=
function
(
statu
)
{
submitData
.
ybjcState
=
statu
;
submitData
.
value
=
config
.
value
;
if
(
submitData
.
sourceFlag
==
"ssfwpt_sbzj"
)
{
if
(
submitData
.
sourceFlag
==
"ssfwpt_sbzj"
)
{
window
.
mlistener
=
{
selectRowData
:
{},
};
submitData
.
fillingFlag
=
"overDue"
// 填报标记
data
.
saveUserId
=
"zxtb"
;
// 用户id
data
.
saveUserId
=
"zxtb"
;
// 用户id
window
.
mlistener
.
selectRowData
=
submitData
;
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
getTaxOverdue
(
nowDate
,
"N"
);
getTaxOverdue
(
nowDate
,
"N"
,
'2'
);
},
1000
);
}
})
}
else
{
}
else
{
// var form = $("#changeForm");
// form.find("#changeForm_data").val(JSON.stringify(submitData));
// form.submit();
...
...
@@ -279,20 +286,20 @@ function initPage(companyInfo) {
},
success
:
function
(
data
)
{
hideLoading
()
if
(
data
.
code
==
99
||
data
.
code
==
"99"
)
{
if
(
data
.
code
==
99
||
data
.
code
==
"99"
)
{
alertWarning
(
data
.
errmsg
);
return
false
}
localStorage
.
setItem
(
"data"
,
JSON
.
stringify
(
submitData
));
localStorage
.
setItem
(
"data"
,
JSON
.
stringify
(
submitData
));
console
.
log
(
"请求成功"
,
data
)
submitData
.
flag
=
true
;
submitData
.
encryptKey
=
config
.
value
;
var
url
=
config
.
spreadUrl
+
"/online_report/declare/toPzzl?falg="
+
falg
var
url
=
config
.
spreadUrl
+
"/online_report/declare/toPzzl?falg="
+
falg
var
form
=
$
(
"#changeForm"
);
form
.
attr
(
'action'
,
url
);
//通过jquery为action属性赋值
form
.
attr
(
'action'
,
url
);
//通过jquery为action属性赋值
form
.
find
(
"#changeForm_data"
).
val
(
JSON
.
stringify
(
submitData
));
form
.
submit
();
/* if (data.url == "edit.jsp") {
/* 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)));
...
...
@@ -302,7 +309,7 @@ function initPage(companyInfo) {
window.open(config.webUrl+"error/index.html?falg="+falg+'¶ms=' + encodeURI(JSON.stringify(submitData)));
}*/
},
error
:
function
(
xhr
)
{
error
:
function
(
xhr
)
{
hideLoading
()
alertWarning
(
data
.
returnMessage
);
//jsonp 方式此方法不被触发
...
...
@@ -327,15 +334,15 @@ function initPage(companyInfo) {
* @param {*} obj
* @param {*} dp
*/
var
changeDate
=
function
(
obj
,
dp
)
{
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"
);
var
refresh
=
function
()
{
myConfirm
(
"消息"
,
"您确定需要重置申报清册吗?点击确定继续"
,
"确定"
,
"取消"
,
function
()
{
getTaxOverdue
(
nowDate
,
"Y"
);
});
};
/**
...
...
@@ -343,11 +350,11 @@ function initPage(companyInfo) {
* @param {} params
*/
$
(
"#reset,#reset1"
).
on
(
"click"
,
refresh
);
$
(
"#goRecord"
).
click
(
function
()
{
$
(
"#goRecord"
).
click
(
function
()
{
//TODO 调用备案接口
});
// 格式化后台返回的时间
if
(
companyInfo
.
return
)
{
if
(
companyInfo
.
return
)
{
$
(
"#getInputValue"
).
val
(
tool
.
formatDate
(
companyInfo
.
sbsq
));
nowDate
=
tool
.
formatDate
(
companyInfo
.
sbsq
);
drawGrid
(
companyInfo
);
...
...
@@ -355,7 +362,7 @@ function initPage(companyInfo) {
return
{
changeDate
:
changeDate
,
reset
:
reset
,
declarationMethod
:
declarationMethod
,
closeModal
:
closeModal
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