Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
taxformtoolframework
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
税表组件2.0工具兼容框架
taxformtoolframework
Commits
0d47c6bf
Commit
0d47c6bf
authored
Feb 10, 2022
by
zqm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加下载pdf、excel快捷键
parent
e1736831
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
5 deletions
+39
-5
taxRelated.vue
src/pages/view/taxRelated.vue
+34
-2
config.js
static/config.js
+5
-3
No files found.
src/pages/view/taxRelated.vue
View file @
0d47c6bf
<!--
* @Author: zqm
* @Date: 2021-06-25 13:49:49
* @LastEditTime: 2022-0
1-29 19:40:34
* @LastEditTime: 2022-0
2-10 10:40:15
* @LastEditors: Please set LastEditors
* @Description: 在线入口
* @FilePath: \taxFormToolFramework\src\pages\view\taxRelated.vue
...
...
@@ -152,7 +152,7 @@ export default {
var
prefix
=
'/engineJson/'
;
}
else
if
([
'production'
].
includes
(
config
.
environmental
))
{
var
prefix
=
'/web/online/tableDisplayBusiness/static/engineJson/'
;
}
else
{
}
else
{
var
prefix
=
'/web/tableDisplayBusiness/static/engineJson/'
;
}
var
url
=
prefix
+
item
.
bblxDm
+
"/"
+
sbdm
+
"/"
+
item
.
bbDm
+
'_'
+
item
.
versionNumber
+
".json"
;
...
...
@@ -259,6 +259,32 @@ export default {
}
},
"json"
,
true
);
},
//快捷键隐藏下载PDF文件
downloadPDF
(
flag
)
{
var
$eleForm
=
$
(
"<form id='download' method='post'></form>"
);
var
downloadUrl
=
interfacePrefix
+
config
.
downloadPDF
;
$eleForm
.
attr
(
"action"
,
downloadUrl
);
$
(
document
.
body
).
append
(
$eleForm
);
var
input1
=
$
(
"<input>"
);
//创建input标签
input1
.
attr
(
"type"
,
"hidden"
);
//设置隐藏域
input1
.
attr
(
"name"
,
"flag"
);
//设置发送后台数据的参数名
input1
.
attr
(
"value"
,
flag
);
$
(
"#download"
).
append
(
input1
);
var
list
=
[]
list
.
push
(
this
.
bblxHeader
)
var
input2
=
$
(
"<input>"
);
//创建input标签
input2
.
attr
(
"type"
,
"hidden"
);
//设置隐藏域
input2
.
attr
(
"name"
,
"param"
);
//设置发送后台数据的参数名
input2
.
attr
(
"value"
,
JSON
.
stringify
(
list
));
$
(
"#download"
).
append
(
input2
);
// 提交表单,实现下载
try
{
$eleForm
.
submit
();
}
catch
(
e
)
{
this
.
$router
.
push
({
name
:
'error500'
})
}
$
(
"#download"
).
remove
();
},
//是否需要弹出企业会计制度
isAccountingSystem
(
row
)
{
var
_self
=
this
;
...
...
@@ -403,6 +429,12 @@ export default {
if
(
this
.
keyboardShortcut
==
"control+shift+v"
)
{
that
.
hideDownload
();
}
if
(
this
.
keyboardShortcut
==
"control+alt+p"
)
{
that
.
downloadPDF
(
"PDF"
);
}
if
(
this
.
keyboardShortcut
==
"control+alt+e"
)
{
that
.
downloadPDF
(
"EXCEL"
);
}
};
document
.
onkeyup
=
function
(
e
)
{
arr
.
splice
(
arr
.
indexOf
(
e
.
key
.
toLowerCase
()),
1
);
...
...
static/config.js
View file @
0d47c6bf
...
...
@@ -17,9 +17,11 @@ var config = {
requestAddress
:
{},
//请求地址
find_full_qykjzd
:
"/tax/find_full_qykjzd"
,
//获取企业会计制度
*涉税/在线 公用*
find_full_qykjzd
:
"/tax/find_full_qykjzd"
,
//获取企业会计制度
sel_qykjzd
:
"/tax/sel_qykjzd"
,
//设置企业会计制度确定按钮
*涉税*
sel_qykjzd
:
"/tax/sel_qykjzd"
,
//设置企业会计制度确定按钮
xxzl_getJgxxRyxx
:
"/xxzl/getJgxxRyxx"
,
// 通过token获取人员信息 *涉税*
xxzl_getJgxxRyxx
:
"/xxzl/getJgxxRyxx"
,
// 通过token获取人员信息
downloadPDF
:
"/tax_service/download_file"
//下载pdf 文件
}
\ 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