salesOrderLine.vm
11.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
$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="SalesReportOrderLineController">
<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>
<div class="xn-col-sm-8">
<lookup options="operatingOptions" name="operatingUnitId" show-field="operatingUnit.name" ng-model="operatingUnit.id" place-holder=请输入经营单元名称>
<table>
<tbody>
<tr ng-repeat="operatingUnit in operatingUnitList" ng-click="selectOperatingUnit(operatingUnit)">
<td>{{operatingUnit.name}}</td>
</tr>
</tbody>
</table>
</lookup>
</div>
<label class="xn-col-sm-4 l-h-34 34 xn-text-right">客户:</label>
<div class="xn-col-sm-8">
<lookup options="customerOptions" name="customerId" show-field="customer.name" ng-model="customer.id" place-holder=请输入客户名称>
<table>
<tbody>
<tr ng-repeat="customer in customerList" ng-click="selectCustomer(customer)">
<td>{{customer.name}}</td>
</tr>
</tbody>
</table>
</lookup>
</div>
<label class="xn-col-sm-4 l-h-34 34 xn-text-right">销售员:</label>
<div class="xn-col-sm-8">
<lookup options="salesPersonOptions" name="salesPersonId" show-field="salesPerson.name" ng-model="salesPerson.userId" place-holder=请输入采购员名称>
<table>
<tbody>
<tr ng-repeat="salesPerson in salesPersonList" ng-click="selectSalesPerson(salesPerson)">
<td>{{salesPerson.name}}</td>
</tr>
</tbody>
</table>
</lookup>
</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">
<input type="text" class="form-control" id="orderNumber" name="orderNumber" ng-model="vm.orderNumber">
</div>
<label class="xn-col-sm-4 l-h-34 34 xn-text-right">商品名称:</label>
<div class="xn-col-sm-8">
<lookup options="inventoryOptions" name="item"
show-field="itemName"
ng-model="vm.itemName"
place-holder=请输入物料名称>
<table>
<tbody>
<tr ng-repeat="inventory in inventoryList"
ng-click="selectInventory(inventory, $index)">
<td>{{inventory.name}}<span ng-if="inventory.specCode != null && inventory.specCode != ''">-{{inventory.specCode}}</span></td>
</tr>
</tbody>
</table>
</lookup>
</div>
<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="itemNumber" name="number" ng-model="vm.itemNumber">
</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">
<input class="form-control" id="businessPersonName" ng-model="vm.businessPersonName" place-holder=请输入业务员名称 name="businessPersonName">
</div>
<label class="xn-col-sm-4 l-h-34 34 xn-text-right">品牌:</label>
<div class="xn-col-sm-8">
<lookup options="brandOptions" name="brandUnitId2" show-field="vm.brand.name" ng-model="vm.brand" place-holder="请输入品牌名称">
<table>
<tbody>
<tr ng-repeat="brand in brandUnitList" ng-click="selectBrand(brand)">
<td>{{brand.name}}</td>
</tr>
</tbody>
</table>
</lookup>
</div>
<label class="xn-col-sm-4 l-h-34 34 xn-text-right">物料类别:</label>
<div class="xn-col-sm-8">
<div xn-multiple-select-tree ng-model="category" select-data="categoryList" name="category" ></div>
</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.startSubmitTime" 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" 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.endSubmitTime" 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" type="button" ng-click="openEnd($event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</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="xn-input" xn-checkbox-list ng-model="orderState" data-checkbox-list="orderStatelist"></div>
</div>
<label class="xn-col-sm-4 l-h-34 34 xn-text-right">发货状态:</label>
<div class="xn-col-sm-8">
<div class="xn-input" xn-checkbox-list ng-model="processState" data-checkbox-list="processStateList"></div>
</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="xn-input" xn-checkbox-list ng-model="checkbox" data-checkbox-list="checkboxlist"></div>
</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 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">商品代码<br/>商品名称</th>
<th class="col-md-1">单位</th>
<th class="col-md-1">品牌</th>
<th class="col-md-1">规格代码
<br>规格名称</th>
<th class="col-md-1">物料类别</th>
<th class="col-md-1 xn-text-right">订单数量</th>
<th class="col-md-1 xn-text-right">已发货数量</th>
<th class="col-md-1 xn-text-right">未发货数量</th>
</tr>
</thead>
<tbody id="tbody" >
<tr ng-repeat= "line in orderLineList" >
<td><pre>{{line.submitTime|timeReturnFormat:"YMDHms"}}</pre></td>
<td >{{line.orderNumber}}</td>
<td >{{line.customerName}}</td>
<td >{{line.businessPersonName}}</td>
<td >{{line.itemNumber}}<br/>{{line.itemName}}</td>
<td >{{line.itemUom}}</td>
<td >{{line.brandName}}</td>
<td >{{line.itemSpecCode}}</br>{{line.itemSpecName}}</td>
<td >{{line.categoryName}}</td>
<td class="xn-text-right">{{line.quantityOrder}}</td>
<td class="xn-text-right">{{line.quantityShipped}}</td>
<td class="xn-text-right">{{line.quantityNotShipped}}</td>
</tr>
<tr ng-if="!vm.totalCount || vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
</tbody>
</table>
<div class="xn-text-center clearfix" 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>