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
5eb8c66a
Commit
5eb8c66a
authored
May 18, 2020
by
yangyuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改amend_grid.js
parent
9f7c6640
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
50 deletions
+79
-50
amend_grid.js
static/biz/amend_grid.js
+79
-50
No files found.
static/biz/amend_grid.js
View file @
5eb8c66a
...
@@ -75,57 +75,82 @@ function initPage(companyInfo) {
...
@@ -75,57 +75,82 @@ function initPage(companyInfo) {
* @date 2018/12/16 20:31
* @date 2018/12/16 20:31
*/
*/
var
getTableDeclaration
=
function
(
id
,
order
,
headerList
,
ddt
,
buttonHtml
)
{
var
getTableDeclaration
=
function
(
id
,
order
,
headerList
,
ddt
,
buttonHtml
)
{
var
tableObj
=
{
var
tableObj
=
{
id
:
id
,
//tabel父元素的id
id
:
id
,
//tabel父元素的id
autoHeight
:
10
,
autoHeight
:
10
,
// buttonControlArr:[{html:"办理",classA:"doCollectArr"},{html:"删除",classA:"deletCollectArr"}],
// buttonControlArr:[{html:"办理",classA:"doCollectArr"},{html:"删除",classA:"deletCollectArr"}],
containerWidth
:
"99%"
,
//table占父元素的百分比
containerWidth
:
"99%"
,
//table占父元素的百分比
order
:
order
,
//数据按照什么顺序排序 1.do为是否保函操作 2.序号列会自动添加不需要写
order
:
order
,
//数据按照什么顺序排序 1.do为是否保函操作 2.序号列会自动添加不需要写
onlyId
:
"sbuuid"
,
//数据的唯一标识
onlyId
:
"sbuuid"
,
//数据的唯一标识
height
:
"320"
,
//表格的高度
height
:
"320"
,
//表格的高度
buttonHeight
:
"70"
,
//表格的高度
buttonHeight
:
"70"
,
//表格的高度
buttonHtml
:
buttonHtml
,
//按钮里的字
buttonHtml
:
buttonHtml
,
//按钮里的字
headerList
:
headerList
,
//表头名字及占比,顺序与order对应
headerList
:
headerList
,
//表头名字及占比,顺序与order对应
data
:
{
data
:
{
page
:
"1"
,
page
:
"1"
,
pageSize
:
"20"
pageSize
:
"20"
},
},
jsonReady
:
ddt
,
jsonReady
:
ddt
,
callback
:
function
(
data
,
node
)
{
callback
:
function
(
data
,
node
)
{
//TODO 跳转页面
//TODO 跳转页面
data
.
djxh
=
companyInfo
.
djxh
;
data
.
djxh
=
companyInfo
.
djxh
;
data
.
nssbqq2
=
durationOfTaxStart
;
data
.
nssbqq2
=
durationOfTaxStart
;
data
.
nssbqz2
=
durationOfTaxEnd
;
data
.
nssbqz2
=
durationOfTaxEnd
;
data
.
gzCacheKey
=
companyInfo
.
gzCacheKey
;
data
.
gzCacheKey
=
companyInfo
.
gzCacheKey
;
data
.
checkTime
=
false
;
data
.
checkTime
=
false
;
if
(
data
.
bblxDm
===
'11602'
)
{
if
(
data
.
bblxDm
===
'11602'
)
{
var
List
=
companyInfo
.
gzTaxInfos
.
filter
(
function
(
item
)
{
var
List
=
companyInfo
.
gzTaxInfos
.
filter
(
function
(
item
)
{
return
item
.
bblxDm
==
'10101'
||
item
.
bblxDm
==
'10102'
return
item
.
bblxDm
==
'10101'
||
item
.
bblxDm
==
'10102'
})
})
if
(
List
.
length
===
0
)
{
if
(
List
.
length
===
0
)
{
data
.
checkTime
=
true
;
data
.
checkTime
=
true
;
}
}
for
(
var
i
=
0
;
i
<
List
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
List
.
length
;
i
++
){
if
(
List
[
i
].
skssqq
!==
data
.
skssqq
||
List
[
i
].
skssqz
!==
data
.
skssqz
)
{
if
(
List
[
i
].
skssqq
!==
data
.
skssqq
||
List
[
i
].
skssqz
!==
data
.
skssqz
)
{
data
.
checkTime
=
true
;
data
.
checkTime
=
true
;
break
;
break
;
}
}
}
}
var
form
=
$
(
"#changeForm_amend"
);
}
form
.
find
(
"#changeForm_data"
).
val
(
JSON
.
stringify
(
data
));
}
form
.
submit
();
// var form = $("#changeForm_amend");
}
//点击按钮后的回调函数
// form.find("#changeForm_data").val(JSON.stringify(data));
};
// form.submit();
var
object
=
tool
.
tableCreate
(
tableObj
);
// object.jsonReadyTo(ddt, { page: "1", pageSize: ddt.length });
}
/**
$
.
ajax
({
* @Description: // 查询点击事件 // 根据申报日期起、止来判断是否需要查询后台
type
:
"POST"
,
* @author ygy
url
:
url
+
"/online_report/amend/toGzPzzl"
,
* @date 2018/12/16 20:56
dataType
:
"json"
,
// 请求方式为jsonp
*/
data
:
{
data
:
JSON
.
stringify
(
data
)
},
success
:
function
(
data
)
{
localStorage
.
setItem
(
"data"
,
JSON
.
stringify
(
data
));
console
.
log
(
"请求成功"
,
data
)
// if (data.url == "edit.jsp") {
// window.open("/jsp/declare/edit.html");
// }else if (data.url == "yearReport.jsp") {
// window.open("/jsp/declare/yearReport.html");
// }else if (data.url == "yearReportGLB.jsp") {
// window.open("/jsp/declare/yearReportGLB.html");
// }
},
error
:
function
(
xhr
){
//jsonp 方式此方法不被触发
console
.
log
(
"=======error======================"
)
}
})
}
//点击按钮后的回调函数
};
var
object
=
tool
.
tableCreate
(
tableObj
);
// object.jsonReadyTo(ddt, { page: "1", pageSize: ddt.length });
}
/**
* @Description: // 查询点击事件 // 根据申报日期起、止来判断是否需要查询后台
* @author ygy
* @date 2018/12/16 20:56
*/
$
(
"#getAmendData"
).
click
(
function
()
{
$
(
"#getAmendData"
).
click
(
function
()
{
var
declarationDateStart
=
$
(
"#declarationDateStart"
).
val
();
var
declarationDateStart
=
$
(
"#declarationDateStart"
).
val
();
...
@@ -187,11 +212,15 @@ function initPage(companyInfo) {
...
@@ -187,11 +212,15 @@ function initPage(companyInfo) {
* @author ygy
* @author ygy
* @date 2018/12/16 21:10
* @date 2018/12/16 21:10
*/
*/
//地址
//http://sbjs.tjsat.gov.cn:18090
//http://localhost:7070
var
url
=
"http://localhost:7070"
;
var
getTaxAmendData
=
function
(
param
)
{
var
getTaxAmendData
=
function
(
param
)
{
// TODO 开始加载等待动画
// TODO 开始加载等待动画
showLoading
();
showLoading
();
$
.
ajax
({
$
.
ajax
({
url
:
"/online_report/amend/getPzzlList"
,
// 查询接口
url
:
url
+
"/online_report/amend/getPzzlList"
,
// 查询接口
data
:
param
,
data
:
param
,
type
:
"POST"
,
type
:
"POST"
,
dataType
:
"JSON"
dataType
:
"JSON"
...
...
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