{{ aftersaleDetail.userId }}
diff --git a/litemall-admin/src/views/mall/order.vue b/litemall-admin/src/views/mall/order.vue
index 51f412ad..9ad57210 100644
--- a/litemall-admin/src/views/mall/order.vue
+++ b/litemall-admin/src/views/mall/order.vue
@@ -4,6 +4,7 @@
+
@@ -190,7 +191,8 @@ export default {
timeArray: [],
orderStatusArray: [],
sort: 'add_time',
- order: 'desc'
+ order: 'desc',
+ orderId:undefined
},
pickerOptions: {
shortcuts: [{
@@ -256,16 +258,27 @@ export default {
this.listQuery.start = null
this.listQuery.end = null
}
-
- listOrder(this.listQuery).then(response => {
- this.list = response.data.data.list
- this.total = response.data.data.total
- this.listLoading = false
- }).catch(() => {
- this.list = []
- this.total = 0
- this.listLoading = false
- })
+ if(this.listQuery.orderId){
+ detailOrder(this.listQuery.orderId).then(response => {
+ this.list = [];
+ this.list.push(response.data.data.order)
+ this.listLoading = false
+ }).catch(() => {
+ this.list = []
+ this.total = 0
+ this.listLoading = false
+ })
+ }else{
+ listOrder(this.listQuery).then(response => {
+ this.list = response.data.data.list
+ this.total = response.data.data.total
+ this.listLoading = false
+ }).catch(() => {
+ this.list = []
+ this.total = 0
+ this.listLoading = false
+ })
+ }
},
getChannel() {
listChannel().then(response => {