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
5346759e
Commit
5346759e
authored
Aug 19, 2020
by
刘明珠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
填报页面刷新清算列表数据方法提取
parent
9b0bb57b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
77 deletions
+60
-77
index.html
jsp/cancellation/index.html
+1
-76
cancellation_grid.js
static/biz/cancellation_grid.js
+59
-1
No files found.
jsp/cancellation/index.html
View file @
5346759e
...
@@ -61,81 +61,6 @@
...
@@ -61,81 +61,6 @@
<script
src=
"/web/onlineReport/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"
></script>
<script
src=
"/web/onlineReport/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"
></script>
<script
src=
"/web/onlineReport/static/biz/cancellation_grid.js?v=1.0"
></script>
<script
src=
"/web/onlineReport/static/biz/cancellation_grid.js?v=1.0"
></script>
<script>
<script>
// //
<!--
// 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面
// var companyInfo = ${json};
// // var initpage = initPage({
// // companyInfo: "",
// // });
// if (companyInfo.success) {
// var initpage = initPage(companyInfo.bean);
// $("#getInputValue").on("focus", function() {
// WdatePicker({
// isShowClear:false,
// dateFmt: 'yyyy-MM',
// onpicking: function(dp){
// initpage.changeDate(this, dp);
// }
// });
// });
// } else {
// alertWarning("请求失败!");
// // 弹出错误对话框
// }
var
initpage
;
$
(
function
()
{
showLoading
();
$
.
ajax
({
type
:
"POST"
,
url
:
config
.
url
+
"/ssfwpt/liquidation/tax_info"
,
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
);
if
(
companyInfo
.
returnCode
==
"00"
)
{
config
.
value
=
companyInfo
.
content
.
value
// 不一定对
companyInfo
.
content
.
config
=
config
initpage
=
initPage
(
companyInfo
.
content
);
}
else
{
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
()
{
WdatePicker
({
isShowClear
:
false
,
dateFmt
:
'yyyy-MM'
,
onpicking
:
function
(
dp
)
{
initpage
.
changeDate
(
this
,
dp
);
}
});
});
},
error
:
function
(
xhr
)
{
//jsonp 方式此方法不被触发
console
.
log
(
"=======error======================"
)
}
})
})
</script>
</script>
</html>
</html>
\ No newline at end of file
static/biz/cancellation_grid.js
View file @
5346759e
var
initpage
;
$
(
function
()
{
showLoading
();
getInitTable
();
})
function
getInitTable
(){
$
.
ajax
({
type
:
"POST"
,
url
:
config
.
url
+
"/ssfwpt/liquidation/tax_info"
,
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
);
if
(
companyInfo
.
returnCode
==
"00"
)
{
config
.
value
=
companyInfo
.
content
.
value
// 不一定对
companyInfo
.
content
.
config
=
config
initpage
=
initPage
(
companyInfo
.
content
);
}
else
{
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
()
{
WdatePicker
({
isShowClear
:
false
,
dateFmt
:
'yyyy-MM'
,
onpicking
:
function
(
dp
)
{
initpage
.
changeDate
(
this
,
dp
);
}
});
});
},
error
:
function
(
xhr
)
{
//jsonp 方式此方法不被触发
console
.
log
(
"=======error======================"
)
}
})
}
/**
/**
* 按期申报填报列表页控制脚本
* 按期申报填报列表页控制脚本
*
*
...
@@ -147,7 +205,7 @@ function initPage(companyInfo) {
...
@@ -147,7 +205,7 @@ function initPage(companyInfo) {
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
setTimeout
(
function
()
{
get
TaxDeclaration
(
nowdate
,
"N"
);
get
InitTable
()
},
1000
);
},
1000
);
}
}
})
})
...
...
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