Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
e7faf6e6
Commit
e7faf6e6
authored
May 03, 2022
by
神话
Browse files
优化excel导出的文件格式和文件名称
parent
be0ec2a4
Changes
4
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/mixins/JeecgListMixin.js
View file @
e7faf6e6
...
...
@@ -3,7 +3,7 @@
* 高级查询按钮调用 superQuery方法 高级查询组件ref定义为superQueryModal
* data中url定义 list为查询列表 delete为删除单条记录 deleteBatch为批量删除
*/
import
{
filterObj
}
from
'
@/utils/util
'
;
import
{
filterObj
,
getNowFormatStr
}
from
'
@/utils/util
'
;
import
{
deleteAction
,
getAction
,
postAction
,
downFile
,
getFileAccessHttpUrl
}
from
'
@/api/manage
'
import
Vue
from
'
vue
'
import
{
ACCESS_TOKEN
}
from
"
@/store/mutation-types
"
...
...
@@ -301,7 +301,7 @@ export const JeecgListMixin = {
let
link
=
document
.
createElement
(
'
a
'
)
link
.
style
.
display
=
'
none
'
link
.
href
=
url
link
.
setAttribute
(
'
download
'
,
fileName
+
'
.xls
'
)
link
.
setAttribute
(
'
download
'
,
fileName
+
'
_
'
+
getNowFormatStr
()
+
'
.xls
'
)
document
.
body
.
appendChild
(
link
)
link
.
click
()
document
.
body
.
removeChild
(
link
);
//下载完成移除元素
...
...
jshERP-web/src/utils/util.js
View file @
e7faf6e6
...
...
@@ -618,7 +618,7 @@ export function openDownloadDialog (url, saveName) {
}
let
aLink
=
document
.
createElement
(
'
a
'
)
aLink
.
href
=
url
saveName
=
saveName
+
'
_
'
+
getNowFormatStr
()
+
'
.xls
x
'
saveName
=
saveName
+
'
_
'
+
getNowFormatStr
()
+
'
.xls
'
aLink
.
download
=
saveName
||
''
// HTML5新增的属性,指定保存文件名,可以不要后缀,注意,file:///模式下不会生效
let
event
if
(
window
.
MouseEvent
)
event
=
new
MouseEvent
(
'
click
'
)
...
...
jshERP-web/src/views/system/modules/CustomerModal.vue
View file @
e7faf6e6
...
...
@@ -63,7 +63,7 @@
</a-col>
<a-col
:span=
"24/2"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"税率(%)"
>
<a-input
placeholder=
"请输入税率
(%)
"
v-decorator.trim=
"[ 'taxRate' ]"
/>
<a-input
-number
style=
"width:100%"
placeholder=
"请输入税率"
v-decorator.trim=
"[ 'taxRate' ]"
/>
</a-form-item>
</a-col>
<a-col
:span=
"24/2"
>
...
...
jshERP-web/src/views/system/modules/VendorModal.vue
View file @
e7faf6e6
...
...
@@ -63,7 +63,7 @@
</a-col>
<a-col
:span=
"24/2"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"税率(%)"
>
<a-input
placeholder=
"请输入税率
(%)
"
v-decorator.trim=
"[ 'taxRate' ]"
/>
<a-input
-number
style=
"width:100%"
placeholder=
"请输入税率"
v-decorator.trim=
"[ 'taxRate' ]"
/>
</a-form-item>
</a-col>
<a-col
:span=
"24/2"
>
...
...
Write
Preview
Supports
Markdown
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