grossDetail.vm
7.74 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
$page.setTitle("毛利明细报表")
<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">毛利明细报表</li>
</ul>
</div>
<div class="xn-main auto xn-width clearfix" ng-controller="ReportReturnGrossDetailController">
<div class="pm-task-bottom-top pm-plan-bottom-top mt_10 mb_10 clearfix">
<h3>毛利明细报表</h3>
</div>
<!--搜索部分-->
<div class="xn-input-line clearfix">
<div class="xn_search_box auto">
<div class="xn-input-line clearfix">
<label class="xn-col-sm-4 l-h-34 34 xn-text-right">事业部:</label>
<li class="xn-col-sm-8">
<lookup options="operatingUnitOptions" name="operatingUnitid" show-field="vm.operatingUnitName" ng-model="vm.operatingUnitid" place-holder=请输入事业部名称>
<table>
<tbody>
<tr ng-repeat="operatingUnit in operatingUnitList" ng-click="selectOperatingUnit(operatingUnit)">
<td>{{operatingUnit.name}}</td>
</tr>
</tbody>
</table>
</lookup>
</li>
<label class="xn-col-sm-4 l-h-34 34 xn-text-right">商品名称:</label>
<li class="xn-col-sm-8">
<lookup options="inventoryOptions" name="itemId" show-field="vm.itemName" ng-model="vm.itemId" place-holder=请输入商品名称>
<table>
<tbody>
<tr ng-repeat="inventory in inventoryList" ng-click="selectInventory(inventory)">
<td>{{inventory.name}}</td>
</tr>
</tbody>
</table>
</lookup>
</li>
<label class="xn-col-sm-4 l-h-34 34 xn-text-right">订单号:</label>
<div class="xn-col-sm-8">
<input type="text" class="form-control" id="returnNumber" name="returnNumber" ng-model="vm.orderNumber">
</div>
</div>
<div class="xn-input-line clearfix">
<label class="xn-col-sm-4 l-h-34 34 xn-text-right">订单起始日期:</label>
<div class="xn-col-sm-8">
<div class="input-group openData">
<input type="text" class="form-control" id="startDate" placeholder="开始日期" ng-model="vm.orderStartTime" name="transactionStartTime"
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" type="button" ng-click="openStart($event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
<label class="xn-col-sm-4 l-h-34 34 xn-text-right">订单结束日期:</label>
<div class="xn-col-sm-8">
<div class="input-group openData">
<input type="text" class="form-control" id="endDate" placeholder="结束日期" ng-model="vm.orderEndTime" name="transactionEndTime"
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" type="button" ng-click="openEnd($event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
<div class="xn-input-line clearfix pt_10">
<div class="xn-input-line clearfix">
<button class="btn btn-success btn-sm w_80 f-right ml_10" ng-click="reportExport()">批量导出</button>
<button type="button" class="btn btn-success btn-sm w_80 f-right" ng-click="doFind()">查询</button>
</div>
</div>
</div>
</div>
</div>
<!--搜索部分结束-->
<div class="xn-table-wrap" >
<table class="table table-bordered table-striped ">
<thead>
<tr>
<th class="col-md-2" style="line-height: 30px">事业部<br/>订单时间</th>
<th class="col-md-2" style="line-height: 30px">订单号<br/>订单干线物流费<br/>订单支线物流费</th>
<th class="col-md-2" style="line-height: 30px">商品名称<br/>商品干线物流费<br/>商品支线物流费</th>
<th class="col-md-2" style="line-height: 30px">订单总金额<br/>实收金额(收入)<br/>实收分摊</th>
<th class="col-md-1" style="line-height: 30px">商品成本<br/>优惠券<br/>抵扣券</th>
<th class="col-md-1" style="line-height: 30px">毛利<br/>净毛利</th>
<th class="col-md-1" style="line-height: 30px">平台分佣<br/>体验店分佣</th>
<th class="col-md-3" style="line-height: 30px">省管分佣<br/>县管分佣</th>
</tr>
</thead>
<tbody id="tbody" >
<tr ng-repeat= "gross in returnGrossList" >
<td class="col-md-2" style="line-height: 30px">{{gross.operatingUnitName}}<br/>{{gross.orderTime|timeReturnFormat}}</td>
<td class="col-md-2" style="line-height: 30px">{{gross.orderNumber}}<br/>{{gross.mainLogisticsOrder}}<br/>{{gross.totalLogisticsOrder}}</td>
<td class="col-md-2" style="line-height: 30px">{{gross.itemName}}<br/>{{gross.mainLogisticsCommodity}}<br/>{{gross.totalLogisticsCommodity}}</td>
<td class="col-md-2" style="line-height: 30px">{{gross.totalAmount}}<br/>{{gross.paidAmount}}<br/>{{gross.totalRevenue}}</td>
<td class="col-md-1" style="line-height: 30px">{{gross.cost}}<br/>{{gross.packetDiscount}}<br/>{{gross.discount}}</td>
<td class="col-md-1" style="line-height: 30px">{{gross.gross}}<br/>{{gross.profit}}</td>
<td class="col-md-1" style="line-height: 30px">{{gross.platCommissionRate}}<br/>{{gross.proviceCommissionRate}}</td>
<td class="col-md-1" style="line-height: 30px">{{gross.districtCommissionRate}}<br/>{{gross.shopCommissionRate}}</td>
</tr>
<tr ng-if="!vm.totalCount || vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
</tbody>
</table>
<div class="xn-text-center" ng-if="vm.totalCount ">
<div class="f-left mt_20 mb_10">共{{vm.totalCount}}条</div>
<pagination ng-show="vm.totalCount>vm.pageSize" ng-change="getList()" max-size="maxPageSize" 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>