sellDaily.vm
6.57 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
##$page.setTitle("OMS销售日报")
<title>OMS采购订单明细报表</title>
<div class="xn-breadcrumb xn-width auto clearfix">
<ul class="breadcrumb">
<li><a class="icon icon-home_page" href="$customizationLink.setTarget("index")"></a></li>
<li><a href="$customizationLink.setTarget("report")">报表中心</a></li>
<li class="active">OMS销售日报</li>
</ul>
</div>
<div class="main auto xn-width clearfix mt_12" ng-controller="SellDailyController">
<!--搜索部分-->
<div class="xn-height-search clearfix">
<form class="form-horizontal clearfix xn-form" name="searchForm" #*xn-form-validate*# novalidate role="form">
<div class="height-search-box auto">
<div class="xn-input-line clearfix">
<label for="orderdate" class="xn-label">日期:</label>
<div class="xn-input-sm">
<div class="input-group openData">
<input type="text" class="form-control" id="startDate" placeholder="开始日期" ng-model="vm.transactionStartTime" name="regularDate"
datepicker-popup="yyyy-MM-dd" is-open="startDate" min-date="minDate" datepicker-options="dateOptions"
date-disabled="disabled(date, mode)" close-text="关闭" current-text="今天" clear-text="清除">
<span class="input-group-btn">
<button class="btn btn-default" style="height: 34px" type="button" ng-click="openStart($event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
<div class="tip"></div>
<label for="number" class="xn-label"></label>
<div class="xn-input-sm">
<div class="input-group openData">
<input type="text" class="form-control" id="endDate" placeholder="结束日期" ng-model="vm.transactionEndTime" name="regularDate"
datepicker-popup="yyyy-MM-dd" is-open="endDate" min-date="minDate" datepicker-options="dateOptions"
date-disabled="disabled(date, mode)" close-text="关闭" current-text="今天" clear-text="清除">
<span class="input-group-btn">
<button class="btn btn-default" style="height: 34px" type="button" ng-click="openEnd($event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
</div>
<div class="xn-input-line clearfix">
<label for="inpuName" class="xn-label"> 店铺名称:</label>
<div class="xn-input-sm">
<lookup options="storeOptions" name="shopName"
show-field="orderHead.storeName"
ng-model="vm.storeId"
place-holder=请输入店铺名称>
<table>
<tbody>
<tr ng-repeat="store in storeList"
ng-click="selectStore(store)">
<td>{{store.name}}</td>
</tr>
</tbody>
</table>
</lookup>
</div>
<div class="tip"></div>
</div>
<div class="xn-input-line clearfix">
<div class="xn-input-lg ml_177">
<a class="btn btn-primary btn-sm w_80 f-right" href="javascript:void(0);" ng-click="exportReport()" id="exportBtn">
<span>导出</span>
</a>
<button type="button" class="btn btn-success w_150 f-right" xn-submit-enter="doFind()">查询</button>
</div>
</div>
</div>
</form>
</div>
<!--搜索部分结束-->
<div class="xn-table-wrap">
<table class="table table-bordered table-striped ">
<thead>
<tr>
<th class="col-md-1">日期</th>
<th class="col-md-1">订单总数</th>
<th class="col-md-1">客户数</th>
<th class="col-md-1">商品总数</th>
<th class="col-md-1">优惠金额</th>
<th class="col-md-1">进口税</th>
<th class="col-md-1">订单总金额</th>
<th class="col-md-1">退款成功单数</th>
</tr>
</thead>
<tbody id="tbody">
<tr ng-repeat="daily in sellDailyList">
<td class="xn-text-left">{{daily.dateId}}</td>
<td class="xn-text-left">{{daily.orderAmount}}</td>
<td class="xn-text-left">{{daily.customerAmount}}</td>
<td class="xn-text-left">{{daily.productAmount}}</td>
<td class="xn-text-left">{{daily.discountFee | moneySingle:5}}</td>
<td class="xn-text-left">{{daily.orderTaxFee | moneySingle:5}}</td>
<td class="xn-text-left">{{daily.sumIncome | moneySingle:5}}</td>
<td class="xn-text-left">{{daily.refundSuccessAmount}}</td>
</tr>
<tr ng-if="vm.totalCount == 0">
<td colspan="8" class="center">无法找到相应的记录</td>
</tr>
</tbody>
</table>
## <div class="xn-text-center">
## <div class="xn-directive-page pagetop" xn-pagination ng-model="vm" data-on-change="onChange()" ng-show="vm.totalCount>=vm.pageSize"></div>
## </div>
<div class="xn-text-center clearfix" >
<div class="f-left mt_20 mb_10">共{{vm.totalCount}}条</div>
<pagination ng-show="vm.totalCount>vm.pageSize" ng-change="onChange()" max-size="5" total-items="vm.totalCount"
ng-model="vm.pageNumber" items-per-page="vm.pageSize" class="pagination-sm" boundary-links="true"
previous-text="‹" next-text="›" first-text="«" last-text="»"></pagination>
</div>
</div>
</div>
<script type="text/javascript" src="$customizationContent.getURI('dist/scripts/report.js')"></script>