Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 728e0152
authored
Nov 29, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加订单状态
1 parent
fb90c542
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
src/views/memberCenter/orderDetail.vue
src/views/memberCenter/orderDetail.vue
View file @
728e015
...
@@ -67,7 +67,8 @@
...
@@ -67,7 +67,8 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"orderStatus"
label=
"状态"
align=
"center"
>
<el-table-column
prop=
"orderStatus"
label=
"状态"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
orderStatus
==
2
?
'待收货'
:
scope
.
row
.
orderStatus
==
3
?
'已完成'
:
scope
.
row
.
orderStatus
==
4
?
'售后中'
:
scope
.
row
.
orderStatus
==
2
?
'退款失败'
:
scope
.
row
.
orderStatus
==
2
?
'已退款'
:
''
}}
</span>
<span>
{{
scope
.
row
.
orderStatus
==
2
?
'待收货'
:
scope
.
row
.
orderStatus
==
3
?
'已完成'
:
scope
.
row
.
orderStatus
==
4
?
'售后中'
:
scope
.
row
.
orderStatus
==
5
?
'退款失败'
:
scope
.
row
.
orderStatus
==
6
?
'已退款'
:
''
}}
</span>
<div>
{{
scope
.
row
.
refundReason
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -113,25 +114,12 @@ export default {
...
@@ -113,25 +114,12 @@ export default {
this
.
$set
(
this
.
tableData
[
0
],
'totalPrice'
,
this
.
detail
.
originalPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'totalPrice'
,
this
.
detail
.
originalPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'realPayPrice'
,
this
.
detail
.
realPayPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'realPayPrice'
,
this
.
detail
.
realPayPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'orderStatus'
,
this
.
detail
.
orderStatus
)
this
.
$set
(
this
.
tableData
[
0
],
'orderStatus'
,
this
.
detail
.
orderStatus
)
this
.
$set
(
this
.
tableData
[
0
],
'refundReason'
,
this
.
detail
.
refundReason
)
}
else
{
}
else
{
this
.
$message
.
error
(
`
${
res
.
message
}
`
)
this
.
$message
.
error
(
`
${
res
.
message
}
`
)
}
}
})
})
},
},
// setTableData() {
// this.$set(this.tableData[0], 'couponList', this.detail.couponList)
// this.$set(this.tableData[0], 'orderType', this.detail.orderType)
// this.$set(this.tableData[0], 'effectiveNum', this.detail.effectiveNum)
// this.$set(this.tableData[0], 'originalPrice', this.detail.originalPrice)
// this.$set(this.tableData[0], 'amount', 1)
// this.$set(this.tableData[0], 'totalPrice', this.detail.originalPrice)
// this.$set(this.tableData[0], 'realPayPrice', this.detail.realPayPrice)
// this.$set(this.tableData[0], 'orderStatus', this.detail.orderStatus)
// console.log(this.tableData[0], '表格数据')
// },
goBack
()
{
goBack
()
{
console
.
log
(
this
.
detail
,
'gggg'
)
console
.
log
(
this
.
detail
,
'gggg'
)
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment