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
b0d6600e
Commit
b0d6600e
authored
Nov 01, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员订单管理
parent
a71f356d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
34 deletions
+77
-34
rentVehicle.js
src/api/order/rentVehicle.js
+8
-0
index.vue
src/views/order/memberOrderInfo/index.vue
+69
-34
No files found.
src/api/order/rentVehicle.js
View file @
b0d6600e
...
...
@@ -145,4 +145,12 @@ export function orderMemberExcel(params) {
data
:
params
,
responseType
:
'blob'
});
}
//用户信息
export
function
user_info
(
id
)
{
return
fetch
({
url
:
'/api/admin/appUsersManage/user_info/'
+
id
,
method
:
'get'
});
}
\ No newline at end of file
src/views/order/memberOrderInfo/index.vue
View file @
b0d6600e
...
...
@@ -177,17 +177,17 @@
</
template
>
</el-table-column>
<el-table-column
width=
"1
5
0"
align=
"center"
label=
"订单价格(元)"
>
<el-table-column
width=
"1
1
0"
align=
"center"
label=
"订单价格(元)"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
orderAmount
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"1
8
0"
align=
"center"
label=
"优惠金额(元)"
>
<el-table-column
width=
"1
1
0"
align=
"center"
label=
"优惠金额(元)"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
couponAmount
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"1
8
0"
align=
"center"
label=
"实付金额(元)"
>
<el-table-column
width=
"1
2
0"
align=
"center"
label=
"实付金额(元)"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
realAmount
}}
</span>
</
template
>
...
...
@@ -370,7 +370,7 @@
</template>
<
script
>
import
{
pageList
,
orderMemberExcel
}
from
'api/order/rentVehicle'
import
{
pageList
,
orderMemberExcel
,
user_info
}
from
'api/order/rentVehicle'
import
{
mapGetters
}
from
'vuex'
import
rsCode
from
'../../../utils/rsCode'
// import dataFormattor from '../../../utils/dataFormattor'
...
...
@@ -519,25 +519,49 @@ export default {
!
val
?
this
.
clearSearch
()
:
''
},
timestamp
(
now
)
{
var
year
=
now
.
getFullYear
();
var
month
=
now
.
getMonth
()
+
1
;
var
date
=
now
.
getDate
();
var
Hours
=
now
.
getHours
();
var
Minutes
=
now
.
getMinutes
();
var
Seconds
=
now
.
getSeconds
();
month
=
month
.
toString
().
length
==
1
?
'0'
+
month
:
month
;
date
=
date
.
toString
().
length
==
1
?
'0'
+
date
:
date
;
Hours
=
Hours
.
toString
().
length
==
1
?
'0'
+
Hours
:
Hours
;
Minutes
=
Minutes
.
toString
().
length
==
1
?
'0'
+
Minutes
:
Minutes
;
Seconds
=
Seconds
.
toString
().
length
==
1
?
'0'
+
Seconds
:
Seconds
;
return
year
+
"-"
+
month
+
"-"
+
date
+
' '
+
Hours
+
':'
+
Minutes
+
":"
+
Seconds
var
year
=
now
.
getFullYear
();
var
month
=
now
.
getMonth
()
+
1
;
var
date
=
now
.
getDate
();
var
Hours
=
now
.
getHours
();
var
Minutes
=
now
.
getMinutes
();
var
Seconds
=
now
.
getSeconds
();
month
=
month
.
toString
().
length
==
1
?
'0'
+
month
:
month
;
date
=
date
.
toString
().
length
==
1
?
'0'
+
date
:
date
;
Hours
=
Hours
.
toString
().
length
==
1
?
'0'
+
Hours
:
Hours
;
Minutes
=
Minutes
.
toString
().
length
==
1
?
'0'
+
Minutes
:
Minutes
;
Seconds
=
Seconds
.
toString
().
length
==
1
?
'0'
+
Seconds
:
Seconds
;
return
year
+
"-"
+
month
+
"-"
+
date
+
' '
+
Hours
+
':'
+
Minutes
+
":"
+
Seconds
},
excel
()
{
this
.
listQuery
.
isExport
=
true
;
orderMemberExcel
(
this
.
listQuery
).
then
(
res
=>
{
// if (!!this.createTime && !!this.createTime[0]) {
// 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
=>
{
this
.
listQuery
.
isExport
=
false
;
const
content
=
res
const
blob
=
new
Blob
([
content
])
const
blob
=
new
Blob
([
content
]
,
{
type
:
"application/vnd.ms-excel"
}
)
const
fileName
=
this
.
timestamp
(
new
Date
())
+
'.xlsx'
if
(
'download'
in
document
.
createElement
(
'a'
))
{
// 非IE下载
...
...
@@ -556,7 +580,18 @@ export default {
})
},
handleBuy
(
row
)
{
console
.
log
(
row
);
this
.
detailsDialogFormVisible
=
true
;
user_info
(
row
.
userId
).
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
this
.
userDetails
=
data
.
data
this
.
getBoolean
(
this
.
userDetails
.
certificationStatus
)
}
})
},
getBoolean
(
bool
)
{
if
(
bool
===
'1'
)
{
this
.
statusBoolean
=
true
}
},
handleFilter
()
{
this
.
listQuery
.
page
=
1
...
...
@@ -588,20 +623,20 @@ export default {
name
:
null
},
this
.
createTime
=
null
,
this
.
aplyTime
=
null
,
this
.
query
=
null
,
this
.
aplyTime
=
null
,
this
.
query
=
null
,
this
.
getList
()
},
getList
()
{
this
.
listLoading
=
true
if
(
!!
this
.
createTime
&&
!!
this
.
createTime
[
0
])
{
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
()
}
this
.
listLoading
=
true
if
(
!!
this
.
createTime
&&
!!
this
.
createTime
[
0
])
{
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
()
}
if
(
this
.
listQuery
)
{
localStorage
.
setItem
(
'memberOrderInfo'
,
...
...
@@ -609,10 +644,10 @@ export default {
)
}
pageList
(
this
.
listQuery
).
then
(
response
=>
{
this
.
list
=
response
.
data
.
memberOrderPage
.
data
if
(
this
.
listQuery
.
page
==
1
)
{
this
.
statistics
=
response
.
data
.
memberOrderStatisticsBo
}
this
.
list
=
response
.
data
.
memberOrderPage
.
data
if
(
this
.
listQuery
.
page
==
1
)
{
this
.
statistics
=
response
.
data
.
memberOrderStatisticsBo
}
this
.
total
=
response
.
data
.
memberOrderPage
.
totalCount
})
setTimeout
(()
=>
{
...
...
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