|
@@ -258,14 +258,15 @@ export default {
|
|
|
// 0 支付状态 1 订单状态
|
|
// 0 支付状态 1 订单状态
|
|
|
tidyStatus() {
|
|
tidyStatus() {
|
|
|
return (da) => {
|
|
return (da) => {
|
|
|
- if (da[0] === 0 && da[1] != 5) return "待支付";
|
|
|
|
|
- if (da[1] === 0 && da[0] == 1) return "待发货";
|
|
|
|
|
- if (da[1] === 0 && da[0] != 1) return "待支付";
|
|
|
|
|
- if (da[1] == 1) return "待收货";
|
|
|
|
|
- if (da[1] == 2) return "已收货";
|
|
|
|
|
- if (da[1] == 3) return "申请退货";
|
|
|
|
|
- if (da[1] == 4) return "已退货";
|
|
|
|
|
- if (da[1] == 5) return "已作废";
|
|
|
|
|
|
|
+ let str;
|
|
|
|
|
+ if (da[1] === 0) str = "待发货";
|
|
|
|
|
+ if (da[1] === 1) str = "待收货";
|
|
|
|
|
+ if (da[1] === 2) str = "已收货";
|
|
|
|
|
+ if (da[1] === 3) str = "申请退货";
|
|
|
|
|
+ if (da[1] === 4) str = "已退货";
|
|
|
|
|
+ if (da[1] === 5) str = "已作废";
|
|
|
|
|
+ if (da[0] === 0 && da[1] != 5) str = "待支付";
|
|
|
|
|
+ return str
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
tidyTpye() {
|
|
tidyTpye() {
|