|
@@ -13,8 +13,13 @@ export default { |
|
@@ -13,8 +13,13 @@ export default { |
13
|
methods: {
|
13
|
methods: {
|
14
|
...mapActions(['cancelTradeConfirmInfo', 'cancelTrade']),
|
14
|
...mapActions(['cancelTradeConfirmInfo', 'cancelTrade']),
|
15
|
...inSaleMapMutations(['filterInSaleOrderList']),
|
15
|
...inSaleMapMutations(['filterInSaleOrderList']),
|
16
|
- async onInSaleOrderAction({ action, order, isDetail = false } = {}) {
|
|
|
17
|
- const { owner = ownType.SELL } = this.$route.params;
|
16
|
+ async onInSaleOrderAction({
|
|
|
17
|
+ action,
|
|
|
18
|
+ order,
|
|
|
19
|
+ isDetail = false, // 是否是详情
|
|
|
20
|
+ isInSale = false, // 是否是出售中
|
|
|
21
|
+ } = {}) {
|
|
|
22
|
+ const { owner = ownType.SELL, status } = this.$route.params;
|
18
|
const { orderCode, earnestMoney = 0 } = order;
|
23
|
const { orderCode, earnestMoney = 0 } = order;
|
19
|
|
24
|
|
20
|
switch (action.name) {
|
25
|
switch (action.name) {
|
|
@@ -42,7 +47,15 @@ export default { |
|
@@ -42,7 +47,15 @@ export default { |
42
|
if (isDetail) {
|
47
|
if (isDetail) {
|
43
|
this.fetchOrderDetail(this.$route.params);
|
48
|
this.fetchOrderDetail(this.$route.params);
|
44
|
} else {
|
49
|
} else {
|
|
|
50
|
+ if (isInSale) {
|
45
|
this.filterInSaleOrderList(orderCode);
|
51
|
this.filterInSaleOrderList(orderCode);
|
|
|
52
|
+ } else {
|
|
|
53
|
+ this.filterOrderList({
|
|
|
54
|
+ orderCode,
|
|
|
55
|
+ owner,
|
|
|
56
|
+ status,
|
|
|
57
|
+ });
|
|
|
58
|
+ }
|
46
|
}
|
59
|
}
|
47
|
}
|
60
|
}
|
48
|
},
|
61
|
},
|