detail.vue
3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<template>
<layout-body>
<div class="detail">
<div class="detail-header">
<p class="bold-title">状态:{{ data.status }}</p>
<p class="no-title">提现发起后,正常xx-xx工作日到款</p>
</div>
<div class="detail-list">
<p>
<span class="no-title">创建时间:{{ data.createTime | timeFormat }}</span>
<span class="no-title">店铺:{{ data.shopName }}</span>
<span class="no-title">供应商: {{ data.supplierName }}</span>
</p>
<table border class="table-body">
<tr>
<td>业务单据号</td>
<td>{{ data.statementSn }}</td>
<td>类型</td>
<td>{{ data.type }}</td>
</tr>
<tr>
<td>收款账户</td>
<td>{{ data.targetAccount }}</td>
<td>付款账户</td>
<td>有货商贸有限公司(yh@yoho.cn){{ data.targetAccount }}</td>
</tr>
<tr>
<td>申请金额(元)</td>
<td>{{ data.applyAmount }}</td>
<td>服务费</td>
<td>{{ data.serviceAmount }}</td>
</tr>
<tr>
<td>成功金额(元)</td>
<td>{{ data.tradeSuccessAmount }}</td>
<td>操作人</td>
<td>{{ data.applyPid }}</td>
</tr>
<tr>
<td>说明</td>
<td>{{ data.remarks }}</td>
<td>失败原因</td>
<td>{{ data.errorReason }}</td>
</tr>
<tr>
<td>备注</td>
<td>{{ data.remarks }}</td>
<td></td>
<td></td>
</tr>
</table>
</div>
<div class="detail-footer">
<i-button type="primary" @click="backList">返回列表</i-button>
</div>
</div>
</layout-body>
</template>
<script>
import FinanceService from 'services/finance/finance-service';
export default {
name: 'Detail',
props: ['id'],
data() {
return {
data: [],
};
},
created() {
this.financeService = new FinanceService();
},
mounted() {
this.getDetail();
},
methods: {
backList() {
this.$router.push({ name: 'finance.withdraw.withdrawlist' });
},
getDetail() {
return this.financeService.shopWithdrawApplyById(this.$route.params).then(result => {
if (result.code === 200) {
this.data = result.data;
this.$emit('on-change', this.data);
}
});
},
refresh() {
this.getDetail();
},
},
};
</script>
<style lang="scss">
.detail {
margin-bottom: 20px;
.detail-header {
.bold-title {
font-size: 25px;
}
.no-title {
font-size: 12px;
}
}
.detail-list {
margin-top: 20px;
table,
tr,
td {
border: 1px solid #e9e9e9;
padding: 8px 16px;
text-align: left;
}
table {
font-size: 12px;
border-collapse: collapse;
border-spacing: 0;
empty-cells: show;
}
}
.detail-footer {
margin-top: 20px;
}
}
</style>