Authored by lea guo

订单删除

... ... @@ -94,6 +94,7 @@ export default {
// store.dispatch("order/orderList/fetchOrderList", { owner, status });
},
activated() {
this.reset("inSaleOrderList");
this.fetchData();
},
methods: {
... ...
... ... @@ -93,8 +93,13 @@ export default {
this.fetchData();
},
methods: {
...mapActions(["fetchOrderList", "cancelTradeConfirmInfo", "cancelTrade"]),
...mapMutations(["setOrderStatus"]),
...mapActions([
"fetchOrderList",
"cancelTradeConfirmInfo",
"cancelTrade",
"deleteOrder"
]),
...mapMutations(["setOrderStatus", "filterOrderList"]),
...orderMapMutations(["reset"]),
fetchMore() {
this.fetchOrderList(this.$route.params);
... ... @@ -130,6 +135,9 @@ export default {
orderCode,
owner
});
if (isOk) {
this.filterOrderList(orderCode);
}
const txt = isOk ? "删除成功" : "删除失败";
this.$createToast({ txt, type: "txt" }).show();
}
... ...