|
@@ -210,7 +210,7 @@ export default class OrderDetail extends Vue {
|
|
|
}
|
|
|
|
|
|
orderInfo = {
|
|
|
- // 0:待支付 1:已完成 -2:已取消
|
|
|
+ // 0:待支付 1:已完成 -2:已取消 -3:已退款
|
|
|
state: 1,
|
|
|
applybillStatus: 1,
|
|
|
ordercode: '',
|
|
@@ -253,6 +253,9 @@ export default class OrderDetail extends Vue {
|
|
|
if (res.data && Object.keys(res.data).length !== 0) {
|
|
|
// this.productInfo = res.data.productInfo
|
|
|
// this.orderInfo = res.data.orderInfo
|
|
|
+ if (res.data && res.data.orderInfo && res.data.orderInfo.state === -3) {
|
|
|
+ res.data.orderInfo.state = -2
|
|
|
+ }
|
|
|
for (const key in res.data.productInfo) {
|
|
|
this.productInfo[key] = res.data.productInfo[key]
|
|
|
}
|