itemBalance.vm
5.97 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
##$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" ng-controller="ItemBalanceReportController">
<!--操作日志部分-->
<!--搜索部分-->
<div class="xn-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="inpuName" 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="inputID" placeholder="" name="textId"
ng-model="vm.itemName" autofocus>
</div>
<label for="inpuName" 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="inputID" placeholder="" name="textId"
ng-model="vm.itemNumber" autofocus>
</div>
<div class="tip"></div>
<label for="storeroom" class="xn-col-sm-4 l-h-34 xn-text-right" >库房:</label>
<div class="xn-col-sm-10">
<lookup options="storeroomOptions" name="storeroomId" show-field="vm.storeroom.name" ng-model="vm.storeroom" place-holder=请输入仓库名称>
<table>
<tbody>
<tr ng-repeat="storeroom in storeroomList" ng-click="selectStoreroom(storeroom)">
<td>{{storeroom.name}}</td>
</tr>
</tbody>
</table>
</lookup>
</div>
</div>
<div class="xn-input-line clearfix">
<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="barcode" placeholder="" name="itemBarcode"
ng-model="vm.itemBarcode" autofocus>
</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="doExport()">批量导出</button>
<button type="button" class="btn btn-success btn-sm 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="col-sm-1">料号</th>
<th class="col-sm-2" ng-click="f='name'; rev=!rev">物料名称</th>
<th class="col-sm-1">规格代码</th>
<th class="col-sm-1">规格名称</th>
<th class="col-sm-1">条形码</th>
<th class="col-sm-1">类别名称</th>
<th class="col-sm-2">库房</th>
<th class="col-sm-1">批号</th>
<th class="col-sm-1 xn-text-right">在库数量</th>
<th class="col-sm-1 xn-text-right">保留数量</th>
</tr>
</thead>
<tbody id="tbody">
<tr ng-repeat="itemBalance in itemBalanceList |pageOffset: (page.pageNumber-1)*page.pageSize | limitTo: page.pageSize">
<td>{{itemBalance.number}}</td>
<td>{{itemBalance.name}}</td>
<td>{{itemBalance.specCode}}</td>
<td>{{itemBalance.specName}}</td>
<td>{{itemBalance.barcode}}</td>
<td>{{itemBalance.categoryName}}</td>
<td>{{itemBalance.storeroomName}}</td>
<td>{{itemBalance.lotNumber}}</td>
<td class="xn-text-right">{{itemBalance.quantityOnhand}}</td>
<td class="xn-text-right">{{itemBalance.quantityAllocate}}</td>
</tr>
<tr ng-if="vm.totalCount == 0"><td colspan="11" class="center">无法找到相应的记录</td></tr>
</tbody>
</table>
<div class="xn-text-center clearfix" >
<div class="f-right mt_10 mb_10">
<ul>
<li><label>汇 总 数 量:</label>{{totalQuantity}}</li>
</ul>
</div>
</div>
#*<div class="xn-text-center clearfix" >
<div class="xn-directive-page pagetop" xn-pagination ng-model="page" data-on-change="onChange()" ng-show="page.totalCount>=page.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>