|
@@ -230,7 +230,10 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
orderID: function() {
|
|
|
- return window.location.href.split('/').reverse()[0] * 1
|
|
|
+ return this.$route.query.orderID
|
|
|
+ },
|
|
|
+ refundId: function() {
|
|
|
+ return this.$route.params.id
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -239,7 +242,7 @@ export default {
|
|
|
methods: {
|
|
|
fetchData() {
|
|
|
this.listLoading = true
|
|
|
- getRefundDetail({ orderID: this.orderID }).then(response => {
|
|
|
+ getRefundDetail({ id: this.refundId, orderID: this.orderID }).then(response => {
|
|
|
this.order = response.data.order
|
|
|
this.bpClauses = response.data.bpClauses
|
|
|
this.refundList = response.data.cmReturnedPurchaseList
|