financeList.html
17.4 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
<!-- 财务列表页面 -->
<div class="page">
<!--图表区域 开始-->
<div class="statistical_box" ng-if="showStatic != 2">
<div class="title_box">
<div class="left">
<span>汇总</span>
</div>
<div class="icon_box">
<select class="form-control" ng-model="staticTime" placeholder="请选择"
ng-change="changeMonth(staticTime)">
<option value="">全部</option>
<option ng-repeat="item in monthList" value="{{item.id}}">{{item.name}}</option>
</select>
</div>
</div>
<div class="bottom_box">
<div class="total_box">
<div class="title">
<span class="sp1">收入概览</span>
<a href="javascript:void(0)" class="a_link" ng-click="lookStoreList()">
<span>查看详情</span>
<i class="glyphicon glyphicon-menu-right"></i>
</a>
</div>
<div class="show_box">
<h2 class="h2">
<span class="sp1">¥</span>
<span>{{staticInfo.countShare||0}}</span>
</h2>
<h3 class="h3">
<img src="images/income.png" alt="" />
<span>总利润</span>
</h3>
</div>
<div class="show_list">
<div class="cell">
<p class="p1">
<span class="sp1">¥</span>
<span>{{staticInfo.averageMerchantShare||0}}</span>
</p>
<p class="p2">平均单店收入</p>
</div>
<div class="cell">
<p class="p1">
<span class="sp1">¥</span>
<span>{{staticInfo.averageOrderShare||0}}</span>
</p>
<p class="p2">平均客单价</p>
</div>
<div class="cell">
<p class="p1">
<span class="sp1">¥</span>
<span>{{staticInfo.firstYqMerchantShare||0}}</span>
</p>
<p class="p2">冠军店<span
title="{{staticInfo.shopName?staticInfo.shopName:''}}">{{getShopName(staticInfo)}}</span><span>占{{staticInfo.firstYqMerchantRatio?(staticInfo.firstYqMerchantRatio*100).toFixed():0}}%</span>
</p>
</div>
</div>
</div>
<div class="echart_box">
<div class="title">
<span class="sp1">门店收入分布</span>
<a href="javascript:void(0)" class="a_link" ng-click="downStaticExcel()">
<span>导出Excel</span>
</a>
</div>
<div class="no_charts" id="no_charts" ng-show="showNoCharts">
<img src="images/chart_nodata.png" alt="" />
<p>暂无数据</p>
</div>
<div id='lossOfClues' class="lossOfClues" ng-show="!showNoCharts"></div>
</div>
</div>
</div>
<!--图表区域 end-->
<!--搜索区域 开始-->
<div class="search_box">
<form class="form-inline">
<div class="form-group">
<label>
支付时间
</label>
<input date-range-picker options="dateOptions" class="form-control date-picker readonlyInput"
placeholder="请选择支付时间" type="text" ng-model="searchForm.fixTimeStr" readonly />
</div>
<div class="form-group">
<merchant-select #merchantSelect factory-merchant-id="factoryMerchantId"
province-merchant-id="provinceMerchantId" city-merchant-id="cityMerchantId"
merchant-id="shopMerchantId" style="margin-top: 10px;border-bottom-width: 10px;"></merchant-select>
</div>
<div class="form-group">
<label>
<select class="form-control" ng-model="orderType" placeholder="请选择" ng-change="onChange()">
<option value="1">主订单编号</option>
<option value="2">交易参考号</option>
</select>
</label>
<input type="text" ng-if="orderType == 1" class="form-control" ng-model="searchForm.orderCode"
placeholder="请输入主订单编号">
<input type="text" ng-if="orderType == 2" class="form-control" ng-model="searchForm.tradeNo"
placeholder="请输入交易参考号">
</div>
<div class="form-group">
<label>分账类型:</label>
<select class="form-control" ng-model="searchForm.divisionType" placeholder="请选择">
<option value="">全部</option>
<option value="1">线下对账</option>
<option value="2">线上分账</option>
</select>
</div>
<div class="form-group">
<button type="button" class="btn btn-success" ng-click="onSearch()">查询</button>
</div>
<div class="form-group">
<button type="button" class="btn btn-default" ng-click="rest()">重置</button>
</div>
</form>
</div>
<!--搜索区域 开始-->
<!--列表区域 开始-->
<div class="table_box">
<!--按钮区域 开始-->
<div class="links_group">
<div>
共<span class="sp1">{{tableStaticInfo.allSubNum}}</span>笔订单,累计订单分账金额<span
class="sp1">{{tableStaticInfo.countShare}}</span>元
</div>
<button type="button" class="btn btn-success" ng-click="downExcel()"><i
class="glyphicon glyphicon-download-alt"></i>导出</button>
</div>
<!--按钮区域 end-->
<!--表格 开始-->
<table class="el_table">
<thead>
<tr>
<th width="4%" rowspan="2">序号</th>
<th colspan="10">订单信息</th>
<th colspan="3">支付信息</th>
<th colspan="7">导流方分账</th>
</tr>
<tr>
<th width="5%">主订单</th>
<th width="5%">交易参考号</th>
<th width="5%">子订单编号</th>
<th width="5%">商品名称</th>
<th width="5%">商品编号</th>
<th width="5%">商品成本</th>
<th width="5%">客户姓名</th>
<th width="5%">客户手机号</th>
<th width="5%">转化员姓名</th>
<th width="5%">销售顾问</th>
<th width="5%">支付时间</th>
<th width="5%">支付方式</th>
<th width="5%">支付金额</th>
<th width="5%">总分账金额</th>
<th width="5%">分账对象</th>
<th width="5%">品类规则</th>
<th width="5%">套餐规则</th>
<th width="5%">整单规则</th>
<th width="5%">流量费</th>
<th width="4%">分账类型</th>
<th width="7%">操作</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in dataList">
<td>{{$index + 1}}</td>
<td rowspan="{{item.rowspan?item.rowspan:1}}" ng-style="{'display': item.rowspan? '': 'none'}">
{{item.orderCode}}</td>
<td rowspan="{{item.rowspan?item.rowspan:1}}" ng-style="{'display': item.rowspan? '': 'none'}">
{{item.tradeNo}}
</td>
<td>{{item.subOrderCode}}</td>
<td>{{item.upgradeGoodsName}}</td>
<td>{{item.upgradeGoodsCommodityCode}}</td>
<td>{{item.virtualAccountCost?item.virtualAccountCost:item.goodsCost}}</td>
<td rowspan="{{item.rowspan?item.rowspan:1}}" ng-style="{'display': item.rowspan? '': 'none'}">
{{item.customerName}}</td>
<td rowspan="{{item.rowspan?item.rowspan:1}}" ng-style="{'display': item.rowspan? '': 'none'}">
{{item.customerPhone}}</td>
<td rowspan="{{item.rowspan?item.rowspan:1}}" ng-style="{'display': item.rowspan? '': 'none'}">
{{item.sellerName}}</td>
<td rowspan="{{item.rowspan?item.rowspan:1}}" ng-style="{'display': item.rowspan? '': 'none'}">
{{item.employeeName}}</td>
<td rowspan="{{item.rowspan?item.rowspan:1}}" ng-style="{'display': item.rowspan? '': 'none'}">
{{item.paySuccessDate}}</td>
<td rowspan="{{item.rowspan?item.rowspan:1}}" ng-style="{'display': item.rowspan? '': 'none'}">
{{payTypeList[item.payType]}}</td>
<td>{{item.subTotalPrice}}</td>
<td>{{item.actualIncomeMoney}}</td>
<!-- 分账对象 -->
<td>{{item.realityShopMerchantName}}</td>
<!-- 品类规则 -->
<td>{{item.rule}}</td>
<!-- 套餐规则 -->
<td rowspan="{{item.setMealRowspan?item.setMealRowspan:1}}" ng-style="{'display': item.setMealRowspan? '': 'none'}">
{{item.setMealRule}}</td>
<!-- 整单规则 -->
<td rowspan="{{item.rowspan?item.rowspan:1}}" ng-style="{'display': item.rowspan? '': 'none'}">
{{item.orderRule}}</td>
<!-- <td>{{shopProfitTypeList[item.shopTrafficMoneyCalculateType] + item.shopTrafficMoneyCalculateValue +
(item.shopTrafficMoneyCalculateType == 3 ? '元':'%')}}</td> -->
<td rowspan="{{item.rowspan?item.rowspan:1}}" ng-style="{'display': item.rowspan? '': 'none'}">
{{item.shopTrafficMoney}}
</td>
<td rowspan="{{item.rowspan?item.rowspan:1}}" ng-style="{'display': item.rowspan? '': 'none'}">
{{typeList[item.divisionType]}}</td>
<td>
<a href="javascript:void(0)" ng-click="lookDetail(item)">查看明细</a>
</td>
</tr>
<tr ng-if="!dataList || dataList.length<=0">
<td colspan="20">暂无数据</td>
</tr>
</tbody>
</table>
<!--表格 end-->
<!-- 分页 开始 -->
<div class="pageBox page_pagination">
<span class="p2">共{{totalPage}}页</span>
<uib-Pagination total-items="totalItems" ng-model="currentPage" max-size="maxSize" ng-change="getList()"
previous-text="{{previousName}}" next-text="{{nextName}}" class="pagination-sm m-b"></uib-Pagination>
</div>
<!-- 分页 end -->
</div>
<!--列表区域 end-->
</div>
<style scoped>
.search_box {
background: #fff;
padding: 10px;
margin: 10px 0;
}
.search_box .form-group {
margin-right: 10px;
margin-bottom: 5px;
margin-top: 5px;
}
.search_box .form-group label {
margin-bottom: 0;
}
.table_box {
background: #fff;
padding: 10px;
}
.links_group {
display: flex;
align-items: flex-end;
justify-content: space-between;
}
.links_group .sp1 {
color: #ff3f3f;
}
.links_group .btn i {
margin-right: 10px;
font-weight: normal;
font-size: 12px;
}
.el_table {
width: 100%;
border-collapse: collapse;
margin: 10px 0;
/*table-layout: fixed*/
}
.el_table,
.el_table th,
.el_table td {
border: 1px solid #d8d8d8;
}
.el_table th,
.el_table td {
padding: 8px;
text-align: center;
word-break: break-all;
word-wrap: break-word;
}
.el_table thead th {
/*font-weight:normal;*/
background: #f2f2f2;
font-size: 12px;
}
.statistical_box {
background: #fff;
margin-top: 10px;
border-radius: 4px;
}
.statistical_box .title_box {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 10px;
position: relative;
}
.statistical_box .title_box .left {
font-family: PingFangSC-Medium;
font-size: 14px;
color: #333333;
letter-spacing: 0;
text-align: center;
}
.statistical_box .title_box:after {
display: block;
content: "";
height: 1px;
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: #d8d8d8;
opacity: 0.8;
}
.bottom_box {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px;
}
.bottom_box .total_box {
flex: 1;
height: 360px;
}
.bottom_box .echart_box {
flex: 1;
}
.bottom_box .total_box,
.bottom_box .echart_box {
background: #fff;
border-radius: 0px;
min-height: 300px;
margin-right: 20px;
border: 1px solid #d8d8d8;
border-radius: 4px;
}
.bottom_box .total_box .title,
.bottom_box .echart_box .title {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
padding: 4px 10px;
}
.bottom_box .total_box .title .sp1,
.bottom_box .echart_box .title .sp1 {
font-family: PingFangSC-Medium;
font-size: 14px;
color: #666666;
}
.bottom_box .total_box .title .a_link,
.bottom_box .echart_box .title .a_link {
background: #FFFFFF;
border: 1px solid #DBDBDB;
border-radius: 2px;
width: 93px;
height: 30px;
text-align: center;
line-height: 30px;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #666666;
border-radius: 4px;
}
.bottom_box .total_box .title .a_link:hover,
.bottom_box .echart_box .title .a_link:hover {
opacity: 0.8;
}
.bottom_box .total_box .title .a_link i,
.bottom_box .echart_box .title .a_link i {
font-weight: normal !important;
}
.bottom_box .total_box .title:after,
.bottom_box .echart_box .title:after {
display: block;
content: "";
height: 1px;
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: #d8d8d8;
opacity: 0.8;
}
.show_box {
text-align: center;
padding: 43px 0;
}
.show_box .h2 {
margin: 0;
padding: 0;
font-family: PingFangSC-Medium;
font-size: 26px;
color: #ee4223;
/*line-height: 35px;*/
display: flex;
align-items: flex-end;
justify-content: center;
}
.show_box .h2 .sp1 {
font-size: 18px;
}
.show_box .h3 {
margin: 0;
padding: 0;
font-family: PingFangSC-Medium;
font-size: 14px;
color: #333333;
line-height: 12px;
display: flex;
align-items: center;
justify-content: center;
margin: 10px 0;
}
.show_list {
display: flex;
justify-content: center;
}
.show_list .cell {
position: relative;
padding: 0 40px;
text-align: center;
}
.show_list .cell .p1 {
font-family: PingFangSC-Regular;
font-size: 18px;
color: #01a77b;
text-align: center;
display: flex;
align-items: flex-end;
justify-content: center;
}
.show_list .cell .p1 .sp1 {
font-size: 14px;
}
.show_list .cell .p2 {
font-family: PingFangSC-Medium;
font-size: 14px;
color: #333333;
text-align: center;
line-height: 12px;
margin: 0;
padding: 0;
}
.show_list .cell .p2 span {
color: #01a77b;
}
.show_list .cell:after {
display: block;
content: "";
width: 1px;
background: #eee;
position: absolute;
height: 70%;
top: 50%;
right: 0;
transform: translate(0, -50%);
}
.show_list .cell:last-child:after {
display: none;
}
.lossOfClues {
height: 320px;
}
.no_charts {
height: 320px;
text-align: center;
/*line-height:320px;*/
}
.no_charts img {
height: 70%;
vertical-align: middle;
margin-top: 30px;
}
.no_charts p {
text-align: center;
font-size: 14px;
color: #666;
line-height: 30px;
}
</style>