purchaseOrder.vm
10.2 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
##$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="ReportOrderLineController">
<!--搜索部分-->
<div class="xn-height-search clearfix">
<form class="form-horizontal clearfix xn-form" name="searchForm" #*xn-form-validate*# novalidate role="form">
<div class="xn_search_box_change auto">
<div class="xn-input-line clearfix">
<label for="experienceunitId" class="xn-col-sm-4 l-h-34 xn-text-right">店铺:</label>
<div class="xn-col-sm-10">
<select name="operateUnitId" id="operateUnitId" class="form-control " ng-model="vm.operatingUnitId"
ng-options="operateUnit.id as operateUnit.name for operateUnit in operateUnitList">
<option value="">-- 请选择店铺 --</option>
</select>
</div>
## <div class="tip"></div>
<label for="supplier" class="xn-col-sm-4 l-h-34 xn-text-right">供应商:</label>
<div class="xn-col-sm-10">
<select name="supplierId" id="supplierId" class="form-control " ng-model="vm.supplierId"
ng-options="supplier.id as supplier.name for supplier in supplierList">
<option value="">-- 请选择供应商 --</option>
</select>
</div>
<label for="supplier" class="xn-col-sm-4 l-h-34 xn-text-right">采购员:</label>
<div class="xn-col-sm-10">
<select name="buyerUserId" id="buyerUserId" class="form-control " ng-model="vm.buyerUserId"
ng-options="buyer.userId as buyer.name for buyer in buyerList">
<option value="">-- 请选择采购员 --</option>
</select>
</div>
</div>
<div class="xn-input-line clearfix">
<label for="number" class="xn-col-sm-4 l-h-34 xn-text-right">订单编号:</label>
<div class="xn-col-sm-10">
<input type="text" class="form-control" id="orderNumber" name="orderNumber" ng-model="vm.orderNumber">
</div>
<label for="itemName" class="xn-col-sm-4 l-h-34 xn-text-right">物品名称:</label>
<div class="xn-col-sm-10">
<input type="text" class="form-control" id="itemName" name="number" ng-model="vm.itemName">
</div>
## <div class="tip"></div>
<label for="ordermoney" class="xn-col-sm-4 l-h-34 xn-text-right">物品料号:</label>
<div class="xn-col-sm-10">
<input type="text" class="form-control" id="itemNumber" name="number" ng-model="vm.itemNumber">
</div>
</div>
<div class="xn-input-line clearfix">
<label for="orderdate" class="xn-col-sm-4 l-h-34 xn-text-right">日期:</label>
<div class="xn-col-sm-10">
<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 " style="height: 34px" type="button" ng-click="openStart($event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
<label for="number" class="xn-col-sm-4 l-h-34 xn-text-right">结束日期 :</label>
<div class="xn-col-sm-10">
<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" style="height: 34px" type="button" ng-click="openEnd($event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
<label for="itemBarcode" class="xn-col-sm-4 l-h-34 xn-text-right">条形码:</label>
<div class="xn-col-sm-10">
<input type="text" class="form-control" id="itemBarcode" name="itemBarcode" ng-model="vm.itemBarcode">
</div>
</div>
<div class="xn-input-line clearfix">
<label for="state" class="xn-col-sm-4 l-h-34 xn-text-right">流程状态:</label>
<div class="xn-input-lg h_36">
<div xn-checkbox-list ng-model="checkbox" data-checkbox-list="checkboxlist">
</div>
</div>
</div>
<div class="xn-input-line clearfix">
<label for="state" class="xn-col-sm-4 l-h-34 xn-text-right">收货状态:</label>
<div class="xn-input-lg h_36">
<div class="xn-input" xn-checkbox-list ng-model="processState" data-checkbox-list="processStateList">
</div>
</div>
<div class="xn-input-line clearfix">
<button class="btn btn-success btn-sm w_80 f-right ml_10" ng-click="doExport()">批量导出</button>
<button type="button" class="btn btn-success w_80 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="xn-col-sm-4">提交时间</th>
<th class="xn-col-sm-4">采购订单</th>
<th class="xn-col-sm-4">供应商</th>
<th class="xn-col-sm-4">料号</th>
<th class="xn-col-sm-4">物品名称</th>
<th class="xn-col-sm-4">规格代码</th>
<th class="xn-col-sm-4">规格名称</th>
<th class="xn-col-sm-4">条形码</th>
<th class="xn-col-sm-4">订购数量</th>
<th class="xn-col-sm-5">已收货数量</th>
<th class="xn-col-sm-5">未到货数量</th>
<th class="xn-col-sm-4">单价</th>
<th class="xn-col-sm-4">订购金额</th>
</tr>
</thead>
<tbody id="tbody" >
<tr ng-repeat= "line in orderLineList" >
<td>{{line.submitTime | timeReturnFormat}}</td>
<td>
<a class="btn btn-link mr_10 " ng-href="$ecommerceLink.setTarget('report/purchaseorderview')?id={{line.orderHeadId}}" target="_blank">{{line.orderNumber}}</a>
</td>
<td >{{line.supplierName}}</td>
<td >{{line.itemNumber}}</td>
<td >{{line.itemName}}</td>
<td>{{line.itemSpec}}</td>
<td>{{line.itemSpecName}}</td>
<td>{{line.itemBarcode}}</td>
<td class="xn-text-right">{{line.quantityOrder| number }}</td>
<td class="xn-text-right">{{line.quantityReceived| number}}</td>
<td class="xn-text-right">{{line.quantityNotReceived |number}}</td>
<td class="xn-text-right">{{line.unitPrice}}</td>
<td class="xn-text-right">{{line.amount | moneySingle}}</td>
</tr>
<tr ng-if="vm.totalCount == 0"><td colspan="13" 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 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 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>