Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
youjj
cloud-platform-ui
Commits
1c645add
Commit
1c645add
authored
Nov 01, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员订单管理导出兼容
parent
305314c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
30 deletions
+8
-30
index.vue
src/views/order/memberOrderInfo/index.vue
+7
-29
discountRecord.vue
src/views/purseManage/discountRecord.vue
+1
-1
No files found.
src/views/order/memberOrderInfo/index.vue
View file @
1c645add
...
@@ -534,36 +534,16 @@ export default {
...
@@ -534,36 +534,16 @@ export default {
},
},
excel
()
{
excel
()
{
this
.
listQuery
.
isExport
=
true
;
this
.
listQuery
.
isExport
=
true
;
// if (!!this.createTime && !!this.createTime[0]) {
var
u
=
navigator
.
userAgent
,
app
=
navigator
.
appVersion
;
// this.listQuery.startOrderTime = formatDate(this.createTime[0], 'yyyy-MM-dd')+ ' 00:00:00'
// this.listQuery.endOrderTime = formatDate(this.createTime[1], 'yyyy-MM-dd')+ ' 23:59:59'
// }
// if (!!this.aplyTime && !!this.aplyTime[0]) {
// this.listQuery.startPayTime = this.aplyTime[0].getTime()
// this.listQuery.endPayTime = this.aplyTime[1].getTime()
// }
// let endOrderTime = this.listQuery.endOrderTime
// let endPayTime = this.listQuery.endPayTime
// let facilitatePhone = this.listQuery.facilitatePhone
// let isExport = 'true'
// let leaderPhone = this.listQuery.leaderPhone
// let level = this.listQuery.level
// let name = this.listQuery.name
// let orderNo = this.listQuery.orderNo
// let phone = this.listQuery.phone
// let startOrderTime = this.listQuery.startOrderTime
// let startPayTime = this.listQuery.startPayTime
// let state = this.listQuery.state
// let type = this.listQuery.type
// window.location.href=process.env.BASE_API+'/api/order/orderMember/app/unauth/export'+'?isExport='+isExport
orderMemberExcel
(
this
.
listQuery
,{
responseType
:
'arraybuffer'
}).
then
(
res
=>
{
orderMemberExcel
(
this
.
listQuery
,{
responseType
:
'arraybuffer'
}).
then
(
res
=>
{
this
.
listQuery
.
isExport
=
false
;
this
.
listQuery
.
isExport
=
false
;
const
content
=
res
const
content
=
res
const
blob
=
new
Blob
([
content
],
{
type
:
"application/vnd.ms-excel"
})
const
blob
=
new
Blob
([
content
],
{
type
:
"application/vnd.ms-excel"
})
const
fileName
=
this
.
timestamp
(
new
Date
())
+
'.xlsx'
const
fileName
=
this
.
timestamp
(
new
Date
())
+
'会员订单列表.xlsx'
if
(
'download'
in
document
.
createElement
(
'a'
))
{
if
(
u
.
indexOf
(
'Trident'
)
>
-
1
){
// 非IE下载
window
.
navigator
.
msSaveBlob
(
blob
,
fileName
)
console
.
log
(
'ie'
);
}
else
{
const
elink
=
document
.
createElement
(
'a'
)
const
elink
=
document
.
createElement
(
'a'
)
elink
.
download
=
fileName
elink
.
download
=
fileName
elink
.
style
.
display
=
'none'
elink
.
style
.
display
=
'none'
...
@@ -572,9 +552,7 @@ export default {
...
@@ -572,9 +552,7 @@ export default {
elink
.
click
()
elink
.
click
()
URL
.
revokeObjectURL
(
elink
.
href
)
// 释放URL 对象
URL
.
revokeObjectURL
(
elink
.
href
)
// 释放URL 对象
document
.
body
.
removeChild
(
elink
)
document
.
body
.
removeChild
(
elink
)
}
else
{
console
.
log
(
'fei ie'
);
// IE10+下载
window
.
navigator
.
msSaveBlob
(
blob
,
fileName
)
}
}
})
})
},
},
...
...
src/views/purseManage/discountRecord.vue
View file @
1c645add
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"收款账号"
>
<el-table-column
align=
"center"
label=
"收款账号"
>
<
template
scope=
"scope"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
accountN
ame
}}
</span>
<span>
{{
scope
.
row
.
accountN
umber
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
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