1
|
<template>
|
1
|
<template>
|
2
|
- <div>
|
|
|
3
|
- <layout-body>
|
|
|
4
|
- <p slot="title">资金总览</p>
|
|
|
5
|
- <layout-filter ref="filter" :model="filters" class="box-filter" :inline="true" :col="1">
|
|
|
6
|
- <filter-item label="起止时间">
|
|
|
7
|
- <Date-picker
|
|
|
8
|
- v-model="filters.createTime.model"
|
|
|
9
|
- type="datetimerange"
|
|
|
10
|
- format="yyyy-MM-dd"
|
|
|
11
|
- placeholder="选择日期和时间"
|
|
|
12
|
- @on-change="createTimeChange"
|
|
|
13
|
- ></Date-picker>
|
|
|
14
|
- <div class="quick">
|
|
|
15
|
- <a
|
|
|
16
|
- href="javascript:;"
|
|
|
17
|
- @click="
|
|
|
18
|
- () => {
|
|
|
19
|
- timeFlag(1);
|
|
|
20
|
- }
|
|
|
21
|
- "
|
|
|
22
|
- >今天</a
|
|
|
23
|
- >
|
|
|
24
|
- <a
|
|
|
25
|
- href="javascript:;"
|
|
|
26
|
- @click="
|
|
|
27
|
- () => {
|
|
|
28
|
- timeFlag(2);
|
|
|
29
|
- }
|
|
|
30
|
- "
|
|
|
31
|
- >昨天</a
|
|
|
32
|
- >
|
|
|
33
|
- <a
|
|
|
34
|
- href="javascript:;"
|
|
|
35
|
- @click="
|
|
|
36
|
- () => {
|
|
|
37
|
- timeFlag(3);
|
|
|
38
|
- }
|
|
|
39
|
- "
|
|
|
40
|
- >最近7天</a
|
|
|
41
|
- >
|
|
|
42
|
- <a
|
|
|
43
|
- href="javascript:;"
|
|
|
44
|
- @click="
|
|
|
45
|
- () => {
|
|
|
46
|
- timeFlag(4);
|
|
|
47
|
- }
|
|
|
48
|
- "
|
|
|
49
|
- >最近30天</a
|
|
|
50
|
- >
|
2
|
+ <div class="ivu-row">
|
|
|
3
|
+ <div class="ivu-card">
|
|
|
4
|
+ <div class="ivu-card-head">
|
|
|
5
|
+ <p slot="title" style="height: 30px; line-height: 30px; font-size: 20px;">资金总览</p>
|
|
|
6
|
+ </div>
|
|
|
7
|
+ <div class="ivu-card-body">
|
|
|
8
|
+ <div class="ivu-row">
|
|
|
9
|
+ <div class="ivu-flot-left">
|
|
|
10
|
+ <div class="ivu-row">
|
|
|
11
|
+ <div class="ivu-col ivu-font-b-16">我的余额</div>
|
|
|
12
|
+ </div>
|
|
|
13
|
+ <br />
|
|
|
14
|
+ <div class="ivu-row">
|
|
|
15
|
+ <div class="ivu-col ivu-col-span-12">可提现金额(元)</div>
|
|
|
16
|
+ <div class="ivu-col ivu-col-span-12 ivu-font-b-16">{{ accountData.availableAmount }}</div>
|
|
|
17
|
+ </div>
|
|
|
18
|
+ <br />
|
|
|
19
|
+ <div class="ivu-row">
|
|
|
20
|
+ <div class="ivu-col ivu-col-span-12">不可提现金额(元)</div>
|
|
|
21
|
+ <div class="ivu-col ivu-col-span-12 ivu-font-b-16">{{ accountData.unavailableAmount }}</div>
|
|
|
22
|
+ </div>
|
|
|
23
|
+ <br />
|
|
|
24
|
+ <div class="ivu-row">
|
|
|
25
|
+ <i-button type="primary" @click="goWithdrawApply">申请提现</i-button>
|
|
|
26
|
+ </div>
|
51
|
</div>
|
27
|
</div>
|
52
|
- </filter-item>
|
|
|
53
|
- <filter-item>
|
|
|
54
|
- <div class="select-container">
|
|
|
55
|
- <Select v-model.trim="filters.status.model" :placeholder="filters.status.label" clearable>
|
|
|
56
|
- <Option v-for="option in filters.status.options" :key="option.value" :value="option.value">{{
|
|
|
57
|
- option.label
|
|
|
58
|
- }}</Option>
|
|
|
59
|
- </Select>
|
28
|
+ <div class="ivu-flot-right">
|
|
|
29
|
+ <div class="ivu-row">
|
|
|
30
|
+ <div class="ivu-col ivu-font-b-16">账户信息</div>
|
|
|
31
|
+ </div>
|
|
|
32
|
+ <br />
|
|
|
33
|
+ <div class="ivu-row">
|
|
|
34
|
+ <div class="ivu-col">支付宝账号: {{ accountData.withdrawAccount }}</div>
|
|
|
35
|
+ </div>
|
|
|
36
|
+ <br />
|
|
|
37
|
+ <div class="ivu-row">
|
|
|
38
|
+ <div class="ivu-col">账号名称: {{ accountData.withdrawAccountName }}</div>
|
|
|
39
|
+ </div>
|
|
|
40
|
+ <br />
|
|
|
41
|
+ <div class="ivu-row">
|
|
|
42
|
+ <div class="ivu-col">联系方式: {{ accountData.customerTel }}</div>
|
|
|
43
|
+ </div>
|
|
|
44
|
+ <br />
|
60
|
</div>
|
45
|
</div>
|
61
|
- <div class="select-container">
|
|
|
62
|
- <Input v-model.trim="filters.statementSn.model" :placeholder="filters.statementSn.label" />
|
|
|
63
|
- </div>
|
|
|
64
|
- <div class="select-container">
|
|
|
65
|
- <Input v-model.trim="filters.targetAccount.model" :placeholder="filters.targetAccount.label" />
|
|
|
66
|
- </div>
|
|
|
67
|
- <div class="select-container">
|
|
|
68
|
- <Button type="primary" @click="search">查询</Button>
|
|
|
69
|
- <Button type="primary" @click="reset">全部</Button>
|
|
|
70
|
- <!-- <Button type="primary" @click="exportData">导出</Button>-->
|
|
|
71
|
- </div>
|
|
|
72
|
- </filter-item>
|
|
|
73
|
- </layout-filter>
|
|
|
74
|
- <layout-list>
|
|
|
75
|
- <Table border :columns="tableCols" :data="tableData"></Table>
|
|
|
76
|
- <Page
|
|
|
77
|
- :total="pageData.total"
|
|
|
78
|
- :current="pageData.current"
|
|
|
79
|
- :page-size="pageData.pageSize"
|
|
|
80
|
- show-total
|
|
|
81
|
- @on-change="pageChange"
|
|
|
82
|
- ></Page>
|
|
|
83
|
- </layout-list>
|
|
|
84
|
- </layout-body>
|
46
|
+ </div>
|
|
|
47
|
+ </div>
|
|
|
48
|
+ </div>
|
|
|
49
|
+ <div class="ivu-card">
|
|
|
50
|
+ <div class="ivu-card-head">
|
|
|
51
|
+ <p slot="title" style="height: 30px; line-height: 30px; font-size: 20px;">资金操作明细</p>
|
|
|
52
|
+ </div>
|
|
|
53
|
+ <div class="ivu-card-body">
|
|
|
54
|
+ <layout-filter ref="filter" :model="filters" class="box-filter" :inline="true" :col="1">
|
|
|
55
|
+ <filter-item label="起止时间">
|
|
|
56
|
+ <Date-picker
|
|
|
57
|
+ v-model="filters.createTime.model"
|
|
|
58
|
+ type="datetimerange"
|
|
|
59
|
+ format="yyyy-MM-dd"
|
|
|
60
|
+ placeholder="选择日期和时间"
|
|
|
61
|
+ @on-change="createTimeChange"
|
|
|
62
|
+ ></Date-picker>
|
|
|
63
|
+ <div class="quick">
|
|
|
64
|
+ <a
|
|
|
65
|
+ href="javascript:;"
|
|
|
66
|
+ @click="
|
|
|
67
|
+ () => {
|
|
|
68
|
+ timeFlag(1);
|
|
|
69
|
+ }
|
|
|
70
|
+ "
|
|
|
71
|
+ >今天</a
|
|
|
72
|
+ >
|
|
|
73
|
+ <a
|
|
|
74
|
+ href="javascript:;"
|
|
|
75
|
+ @click="
|
|
|
76
|
+ () => {
|
|
|
77
|
+ timeFlag(2);
|
|
|
78
|
+ }
|
|
|
79
|
+ "
|
|
|
80
|
+ >昨天</a
|
|
|
81
|
+ >
|
|
|
82
|
+ <a
|
|
|
83
|
+ href="javascript:;"
|
|
|
84
|
+ @click="
|
|
|
85
|
+ () => {
|
|
|
86
|
+ timeFlag(3);
|
|
|
87
|
+ }
|
|
|
88
|
+ "
|
|
|
89
|
+ >最近7天</a
|
|
|
90
|
+ >
|
|
|
91
|
+ <a
|
|
|
92
|
+ href="javascript:;"
|
|
|
93
|
+ @click="
|
|
|
94
|
+ () => {
|
|
|
95
|
+ timeFlag(4);
|
|
|
96
|
+ }
|
|
|
97
|
+ "
|
|
|
98
|
+ >最近30天</a
|
|
|
99
|
+ >
|
|
|
100
|
+ </div>
|
|
|
101
|
+ </filter-item>
|
|
|
102
|
+ <filter-item>
|
|
|
103
|
+ <div class="select-container">
|
|
|
104
|
+ <Select v-model.trim="filters.status.model" :placeholder="filters.status.label" clearable>
|
|
|
105
|
+ <Option v-for="option in filters.status.options" :key="option.value" :value="option.value">{{
|
|
|
106
|
+ option.label
|
|
|
107
|
+ }}</Option>
|
|
|
108
|
+ </Select>
|
|
|
109
|
+ </div>
|
|
|
110
|
+ <div class="select-container">
|
|
|
111
|
+ <Input v-model.trim="filters.statementSn.model" :placeholder="filters.statementSn.label" />
|
|
|
112
|
+ </div>
|
|
|
113
|
+ <div class="select-container">
|
|
|
114
|
+ <Input v-model.trim="filters.targetAccount.model" :placeholder="filters.targetAccount.label" />
|
|
|
115
|
+ </div>
|
|
|
116
|
+ <div class="select-container">
|
|
|
117
|
+ <Button type="primary" @click="search">查询</Button>
|
|
|
118
|
+ <Button type="primary" @click="reset">全部</Button>
|
|
|
119
|
+ <!-- <Button type="primary" @click="exportData">导出</Button>-->
|
|
|
120
|
+ </div>
|
|
|
121
|
+ </filter-item>
|
|
|
122
|
+ </layout-filter>
|
|
|
123
|
+ <layout-list>
|
|
|
124
|
+ <Table border :columns="tableCols" :data="tableData"></Table>
|
|
|
125
|
+ <Page
|
|
|
126
|
+ :total="pageData.total"
|
|
|
127
|
+ :current="pageData.current"
|
|
|
128
|
+ :page-size="pageData.pageSize"
|
|
|
129
|
+ show-total
|
|
|
130
|
+ @on-change="pageChange"
|
|
|
131
|
+ ></Page>
|
|
|
132
|
+ </layout-list>
|
|
|
133
|
+ </div>
|
|
|
134
|
+ </div>
|
85
|
</div>
|
135
|
</div>
|
86
|
</template>
|
136
|
</template>
|
87
|
<script>
|
137
|
<script>
|
|
@@ -98,6 +148,7 @@ export default { |
|
@@ -98,6 +148,7 @@ export default { |
98
|
created() {
|
148
|
created() {
|
99
|
this.financeService = new FinanceService();
|
149
|
this.financeService = new FinanceService();
|
100
|
this.search();
|
150
|
this.search();
|
|
|
151
|
+ this.initAccount();
|
101
|
},
|
152
|
},
|
102
|
methods: {
|
153
|
methods: {
|
103
|
filterValues() {
|
154
|
filterValues() {
|
|
@@ -179,6 +230,22 @@ export default { |
|
@@ -179,6 +230,22 @@ export default { |
179
|
},
|
230
|
},
|
180
|
});
|
231
|
});
|
181
|
},
|
232
|
},
|
|
|
233
|
+ initAccount() {
|
|
|
234
|
+ const params = {
|
|
|
235
|
+ token: this.$user.token,
|
|
|
236
|
+ timestamps: Math.round(new Date().getTime() / 1000),
|
|
|
237
|
+ };
|
|
|
238
|
+ this.financeService.shopWithdrawApplyInit(params).then(result => {
|
|
|
239
|
+ if (result.code === 200) {
|
|
|
240
|
+ this.accountData = result.data;
|
|
|
241
|
+ this.data = result.data;
|
|
|
242
|
+ this.data.withdrawAmount = result.data.withdrawAmount ? result.data.withdrawAmount : 0;
|
|
|
243
|
+ }
|
|
|
244
|
+ });
|
|
|
245
|
+ },
|
|
|
246
|
+ goWithdrawApply() {
|
|
|
247
|
+ this.$router.push({ name: 'finance.withdraw.withdrawapply' });
|
|
|
248
|
+ },
|
182
|
},
|
249
|
},
|
183
|
};
|
250
|
};
|
184
|
</script>
|
251
|
</script>
|
|
@@ -201,24 +268,6 @@ export default { |
|
@@ -201,24 +268,6 @@ export default { |
201
|
margin-bottom: 10px;
|
268
|
margin-bottom: 10px;
|
202
|
}
|
269
|
}
|
203
|
|
270
|
|
204
|
-.box-title {
|
|
|
205
|
- font-weight: 700;
|
|
|
206
|
- color: #495060;
|
|
|
207
|
- font-size: 16px;
|
|
|
208
|
- line-height: 22px;
|
|
|
209
|
- margin: 5px;
|
|
|
210
|
-
|
|
|
211
|
- &:before {
|
|
|
212
|
- content: ' ';
|
|
|
213
|
- display: inline-block;
|
|
|
214
|
- width: 5px;
|
|
|
215
|
- margin-right: 2px;
|
|
|
216
|
- height: 22px;
|
|
|
217
|
- vertical-align: top;
|
|
|
218
|
- background-color: #999;
|
|
|
219
|
- }
|
|
|
220
|
-}
|
|
|
221
|
-
|
|
|
222
|
.box-item {
|
271
|
.box-item {
|
223
|
width: 90%;
|
272
|
width: 90%;
|
224
|
height: 50px;
|
273
|
height: 50px;
|
|
@@ -290,4 +339,25 @@ export default { |
|
@@ -290,4 +339,25 @@ export default { |
290
|
}
|
339
|
}
|
291
|
}
|
340
|
}
|
292
|
}
|
341
|
}
|
|
|
342
|
+
|
|
|
343
|
+.ivu-flot-left {
|
|
|
344
|
+ width: 360px;
|
|
|
345
|
+ height: 220px;
|
|
|
346
|
+ float: left;
|
|
|
347
|
+ border: 1px solid #cccccc;
|
|
|
348
|
+ padding: 12px;
|
|
|
349
|
+}
|
|
|
350
|
+.ivu-flot-right {
|
|
|
351
|
+ width: 360px;
|
|
|
352
|
+ height: 220px;
|
|
|
353
|
+ float: left;
|
|
|
354
|
+ border: 1px solid #cccccc;
|
|
|
355
|
+ padding: 12px;
|
|
|
356
|
+ margin-left: 20px;
|
|
|
357
|
+}
|
|
|
358
|
+
|
|
|
359
|
+.ivu-font-b-16 {
|
|
|
360
|
+ font-size: 16px;
|
|
|
361
|
+ font-weight: bold;
|
|
|
362
|
+}
|
293
|
</style> |
363
|
</style> |