itemBalanceSpread.vm
9.09 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
$page.setTitle("当前库存分布报表")
<div class="xn-breadcrumb auto xn-width 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="ItemBalanceSpreadReportController">
<!--操作日志部分-->
<!--搜索部分-->
<div class="xn-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="inpuName" class="xn-label">物料:</label>
<div class="xn-input-sm">
<lookup options="inventoryOptions" name="item"
show-field="itemName"
ng-model="vm.itemId"
place-holder=请输入物料名称>
<table>
<tbody>
<tr ng-repeat="inventory in inventoryList"
ng-click="selectInventory(inventory, $index)">
<td>{{inventory.number}}-{{inventory.name}}<span ng-if="inventory.specCode != null && inventory.specCode != ''">-{{inventory.specCode}}</span></td>
</tr>
</tbody>
</table>
</lookup>
</div>
<div class="tip"></div>
<label for="inpuName" class="xn-label">库存组织:</label>
<div class="xn-input-sm">
#*<input type="text" class="form-control" id="inventoryOrg" placeholder="" name="inventoryOrg" ng-model="vm.inventoryOrg"
data-submit-enter="false" typeahead="inventoryOrg as (inventoryOrg.name)+'('+inventoryOrg.legalPerson+')' for inventoryOrg in getInventoryOrg($viewValue)" typeahead-loading="loadingLocations" autocomplete="off">
<i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>*#
<lookup options="accountOptions" name="operatingUnitId" show-field="vm.inventoryOrg.name" ng-model="vm.inventoryOrg" place-holder="请输入库存组织名称">
<table>
<tbody>
<tr ng-repeat="account in accountUnitList" ng-click="selectAccount(account)">
<td>{{account.name}}</td>
</tr>
</tbody>
</table>
</lookup>
</div>
</div>
<div class="tip"></div>
<div class="xn-input-line clearfix">
<label for="inpuName" class="xn-label">库房:</label>
<div class="xn-input-sm">
#*<input type="text" class="form-control" id="storeroom" placeholder="" name="storeroom" ng-model="vm.storeroom"
data-submit-enter="false" typeahead="storeroom as storeroom.name for storeroom in getStoreroom($viewValue)" typeahead-loading="loadingLocations" autocomplete="off">
<i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>*#
<lookup options="accountOptions1" name="operatingUnitId1" show-field="vm.storeroom.name" ng-model="vm.storeroom" place-holder="请输入库房名称">
<table>
<tbody>
<tr ng-repeat="account in accountUnitList1" ng-click="selectAccount1(account)">
<td>{{account.name}}</td>
</tr>
</tbody>
</table>
</lookup>
</div>
<div class="tip"></div>
<label for="inpuName" class="xn-label">类别:</label>
<div class="xn-input-sm">
<div xn-multiple-select-tree ng-model="category" select-data="categoryList" name="category" ></div>
</div>
</div>
<div class="tip"></div>
<div class="xn-input-line clearfix">
<label for="phone" class="xn-label">品牌:</label>
<div class="xn-input-sm">
<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>
<div class="tip"></div>
<label for="phone" class="xn-label">关键字:</label>
<div class="xn-input-sm">
<input type="text" class="form-control" name="keywords" ng-model="vm.keywords" placeholder="请输入物料名称/物料货号" maxlength="20">
</div>
</div>
</div>
<div class="ware-btn">
<a class="btn btn-primary w_100 mr_10 f-right " style="margin-top: 20px;margin-left: 5px;"
ng-click="balanceReport()">导出</a>
<button class="btn btn-success w_100 f-right" ng-click="doFind()" style="margin-top: 20px;margin-left: 5px;">查询</button>
</div>
</form>
</div>
<div class="xn-table-wrap">
<table class="table table-bordered table-striped ">
<thead>
<tr>
<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-1">类别名称</th>
<th class="col-sm-1">品牌</th>
<th class="col-sm-2">库房</th>
<th class="col-sm-1 xn-text-right">在库数量</th>
#* <th class="col-sm-1">成本单价</th>*#
## <th class="col-sm-1 xn-text-right">采购单价</th>
#*<th class="col-sm-1">库存金额</th>*#
</tr>
</thead>
<tbody id="tbody">
<tr ng-repeat="itemBalance in itemBalanceList ">
<td>{{itemBalance.name}}</td>
<td>{{itemBalance.number}}</td>
<td>{{itemBalance.uom}}</td>
<td>{{itemBalance.itemSpecCode}}</td>
<td>{{itemBalance.itemSpecName}}</td>
<td>{{itemBalance.categoryName}}</td>
<td>{{itemBalance.brandName}}</td>
<td>{{itemBalance.storeroomName}}</td>
<td class="xn-text-right">{{itemBalance.quantityOnhand}}</td>
#*<td class="xn-text-right">{{itemBalance.cost}}</td>*#
## <td class="xn-text-right">{{itemBalance.purchasePrice}}</td>
#* <td class="xn-text-right">{{itemBalance.inventoryAmount}}</td>*#
</tr>
<tr ng-if="vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
</tbody>
</table>
<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="getList()" 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>