|
@@ -10,6 +10,7 @@
|
10
|
10
|
<div class="project"
|
11
|
11
|
v-for="(projectItem, index) in orderListItem.list"
|
12
|
12
|
:key="index"
|
|
13
|
+ @click="toOrderDetail(projectItem)"
|
13
|
14
|
:style="{
|
14
|
15
|
color: orderStatusStyle(projectItem).color,
|
15
|
16
|
borderLeft: '1px solid',
|
|
@@ -79,6 +80,23 @@ export default {
|
79
|
80
|
break;
|
80
|
81
|
}
|
81
|
82
|
return style
|
|
83
|
+ },
|
|
84
|
+ toOrderDetail (source) {
|
|
85
|
+ if (source.status === 0) {
|
|
86
|
+ this.$router.push({
|
|
87
|
+ path: '/confirmOrder/details',
|
|
88
|
+ query: {
|
|
89
|
+ id: source.order_id
|
|
90
|
+ }
|
|
91
|
+ })
|
|
92
|
+ } else {
|
|
93
|
+ this.$router.push({
|
|
94
|
+ path: "/historicalOrder/details",
|
|
95
|
+ query: {
|
|
96
|
+ id: source.order_id
|
|
97
|
+ }
|
|
98
|
+ })
|
|
99
|
+ }
|
82
|
100
|
}
|
83
|
101
|
}
|
84
|
102
|
};
|