|
|
<template>
|
|
|
<template v-if="show">
|
|
|
<div class="status-desc">
|
|
|
<p>{{detail.statusName}}</p>
|
|
|
<p>申请时间: {{detail.createTime}}</p>
|
...
|
...
|
@@ -102,6 +103,7 @@ |
|
|
<div v-if="detail.canCancel ==='Y'" class="exchange-options">
|
|
|
<button @click="cancel">取消申请</button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
...
|
...
|
@@ -117,6 +119,7 @@ |
|
|
data() {
|
|
|
return {
|
|
|
id: '',
|
|
|
show: false,
|
|
|
sourceOrderCode: '',
|
|
|
detail: {}
|
|
|
};
|
...
|
...
|
@@ -161,7 +164,8 @@ |
|
|
type: this.type
|
|
|
}
|
|
|
}).then(res => {
|
|
|
if (res.data) {
|
|
|
if (res.code === 200) {
|
|
|
this.show = true;
|
|
|
this.detail = res.data;
|
|
|
if (!this.detail.goodsList) {
|
|
|
return;
|
...
|
...
|
@@ -174,8 +178,14 @@ |
|
|
// return util.getImgHost(p) + '?imageView2/2/w/154/h/154';
|
|
|
// })
|
|
|
});
|
|
|
} else if (result.code !== 500) {
|
|
|
tip(result.message);
|
|
|
} else {
|
|
|
tip('数据获取失败');
|
|
|
}
|
|
|
});
|
|
|
}).fail(() => {
|
|
|
tip('网络错误');
|
|
|
});;
|
|
|
}
|
|
|
};
|
|
|
</script>
|
...
|
...
|
|