-
+
+
@@ -280,7 +291,7 @@
-
+
@@ -350,20 +361,22 @@ export default {
sn: "", // 订单号
logisticsModal: false, //查询物流模态框
logisticsInfo: {}, //物流信息
- form: { // 物流信息
+ form: {
+ // 物流信息
logisticsNo: "",
logisticsId: "",
}, //换货发货form
formValidate: {
logisticsNo: [
- {required: true, message: "发货单号不能为空", trigger: "change"},
+ { required: true, message: "发货单号不能为空", trigger: "change" },
],
logisticsId: [
- {required: true, message: "请选择物流公司", trigger: "blur"},
+ { required: true, message: "请选择物流公司", trigger: "blur" },
],
},
modalVisible: false, // 添加或编辑显示
- afterSaleInfo: { // 售后信息
+ afterSaleInfo: {
+ // 售后信息
afterSaleAllowOperationVO: {
return_goods: false,
},
@@ -380,18 +393,18 @@ export default {
},
// 售后状态
afterSaleStatus: [
- {status: 'APPLY', label: '申请售后'},
- {status: 'PASS', label: '申请通过'},
- {status: 'REFUSE', label: '申请拒绝'},
- {status: 'BUYER_RETURN', label: '买家退货,待卖家收货'},
- {status: 'SELLER_RE_DELIVERY', label: '商家换货'},
- {status: 'SELLER_CONFIRM', label: '卖家确认收货'},
- {status: 'SELLER_TERMINATION', label: '卖家终止售后'},
- {status: 'BUYER_CONFIRM', label: '买家确认收货'},
- {status: 'BUYER_CANCEL', label: '买家取消售后'},
- {status: 'WAIT_REFUND', label: '等待平台退款'},
- {status: 'COMPLETE', label: '已完成'},
- ]
+ { status: "APPLY", label: "申请售后" },
+ { status: "PASS", label: "申请通过" },
+ { status: "REFUSE", label: "申请拒绝" },
+ { status: "BUYER_RETURN", label: "买家退货,待卖家收货" },
+ { status: "SELLER_RE_DELIVERY", label: "商家换货" },
+ { status: "SELLER_CONFIRM", label: "卖家确认收货" },
+ { status: "SELLER_TERMINATION", label: "卖家终止售后" },
+ { status: "BUYER_CONFIRM", label: "买家确认收货" },
+ { status: "BUYER_CANCEL", label: "买家取消售后" },
+ { status: "WAIT_REFUND", label: "等待平台退款" },
+ { status: "COMPLETE", label: "已完成" },
+ ],
};
},
methods: {
@@ -493,22 +506,22 @@ export default {
});
},
// 返回售后状态中文描述
- filterStatus (status) {
- let label = ''
- for (let i = 0; i< this.afterSaleStatus.length; i++) {
- const obj = this.afterSaleStatus[i]
+ filterStatus(status) {
+ let label = "";
+ for (let i = 0; i < this.afterSaleStatus.length; i++) {
+ const obj = this.afterSaleStatus[i];
if (obj.status === status) {
- label = obj.label
+ label = obj.label;
break;
}
}
- return label
- }
+ return label;
+ },
},
- activated () {
+ activated() {
this.sn = this.$route.query.sn;
this.getDetail();
- }
+ },
};