|
|
@@ -260,15 +260,17 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
tidyStatus() {
|
|
|
- return (da) => {
|
|
|
- if (da[0] === 0) return "待支付";
|
|
|
- if (da[1] === 0) 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 "已作废";
|
|
|
- };
|
|
|
+ return (da) => {
|
|
|
+ let str;
|
|
|
+ if (da[0] === 0) 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 = "已作废";
|
|
|
+ return str
|
|
|
+ };
|
|
|
},
|
|
|
},
|
|
|
};
|