balanceItem.vm
9.84 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
##$page.setTitle("库存明细报表")
<title>库存明细报表</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">库存明细报表</li>
</ul>
</div>
<div class="xn-main auto xn-width clearfix" ng-controller="BalanceItemController">
<div class="xn-form clearfix">
</div>
<div class="pm-task-bottom-top pm-plan-bottom-top mt_10 mb_0 clearfix">
<h3>库存明细报表</h3>
</div>
<div class="xn-form-table-wrap">
<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 xn-text-right ml_25">商品代码:</label>
<div class="xn-col-sm-8 mt_7">
<input class="form-control" type="text" ng-model="vm.itemNumber">
</div>
<label class="xn-col-sm-4 l-h-34 xn-text-right ml_25">规格代码:</label>
<div class="xn-col-sm-8 mt_7">
<input class="form-control" type="text" ng-model="vm.itemSpecCode">
</div>
<label class="xn-col-sm-4 l-h-34 xn-text-right ml_25">商品名称:</label>
<div class="xn-col-sm-8 mt_7">
<input class="form-control" type="text" ng-model="vm.itemName">
</div>
</div>
<div class="xn-input-line clearfix">
<label class="xn-col-sm-4 l-h-34 xn-text-right ml_25">库房:</label>
<div class="xn-col-sm-8 mt_7">
<lookup options="roomOptions" name="storeroomName"
show-field="vm.storeroomName"
ng-model="vm.storeroomId"
place-holder=请输入仓库名称 >
<table>
<tbody>
<tr ng-repeat="storeroom in storeroomList"
ng-click="selectStoreroom(storeroom)">
<td>{{storeroom.name}}</td>
</tr>
</tbody>
</table>
</lookup>
</div>
<label class="xn-col-sm-4 l-h-34 xn-text-right ml_25">商品类别:</label>
<div class="xn-col-sm-8">
<lookup options="categoryOptions" name="categoryName"
show-field="vm.categoryName"
ng-model="vm.categoryId"
place-holder=请输入所属类目 >
<table>
<tbody>
<tr ng-repeat="category in categoryList"
ng-click="selectCategory(category)">
<td>{{category.name}}</td>
</tr>
</tbody>
</table>
</lookup>
</div>
<label class="xn-col-sm-4 l-h-34 xn-text-right ml_25">供应商:</label>
<div class="xn-col-sm-8 mt_7">
<lookup options="supplierOptions" name="supplierName"
show-field="vm.supplierName"
ng-model="vm.supplierId"
place-holder=请输入供应商名称 >
<table>
<tbody>
<tr ng-repeat="supplier in supplierList"
ng-click="selectSupplier(supplier)">
<td>{{supplier.name}}</td>
</tr>
</tbody>
</table>
</lookup>
## <input class="form-control" type="text" ng-model="vm.supplierName">
</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" ng-click="query()">查询</button>
</div>
</div>
## <div class="xn-input-line clearfix">
## <div class="xn-input-line clearfix f-right">
## <a class=" btn btn-primary mr_30" ng-click="query()">查询</a>
## <a class=" btn btn-primary mr_30" ng-click="doExport()">导出</a>
## </div>
## </div>
</div>
</div>
</div>
<div class="xn-table-wrap" >
<table class="table table-bordered table-striped ">
<thead>
<tr>
<th class="xn-col-sm-3 xn-text-center">库房名称</th>
<th class="xn-col-sm-4 xn-text-center">商品代码<br/>商品名称</th>
## <th class="xn-col-sm-2 "></th>
<th class="xn-col-sm-4 xn-text-center">规格代码<br/>规格名称</th>
## <th class="xn-col-sm-2 "></th>
<th class="xn-col-sm-2 xn-text-center">库存数</th>
<th class="xn-col-sm-2 xn-text-center">可用数</th>
<th class="xn-col-sm-2 xn-text-center">预售数<br/>在途数</th>
## <th class="xn-col-sm-2 ">标准进价</th>
<th class="xn-col-sm-2 xn-text-center">成本价</th>
## <th class="xn-col-sm-2 ">零售价</th>
## <th class="xn-col-sm-2">分销价</th>
<th class="xn-col-sm-2 xn-text-center">商品重量(g)</th>
<th class="xn-col-sm-2 xn-text-center" >最后采购价格</th>
<th class="xn-col-sm-6 xn-text-center">供应商</th>
## <th class="xn-col-sm-2" >商品条形码</th>
## <th class="xn-col-sm-2" >库位信息</th>
<th class="xn-col-sm-3 xn-text-center" >安全库存</th>
## <th class="xn-col-sm-2" >商品类别</th>
## <th class="xn-col-sm-2" >在途数</th>
<th class="xn-col-sm-2 xn-text-center" >预计到货日期</th>
<th class="xn-col-sm-2 xn-text-center" >状态</th>
</tr>
</thead>
<tbody id="tbody">
<tr ng-repeat="itemBalance in itemBalanceList">
<td class="xn-col-sm-3 xn-text-center">{{itemBalance.storeroomName}}</td>
<td class="xn-col-sm-4 xn-text-center">{{itemBalance.itemNumber}}<br/>{{itemBalance.itemName}}</td>
## <td></td>
<td class="xn-col-sm-4 xn-text-center">{{itemBalance.itemSpecCode}}<br/>{{itemBalance.itemSpecName}}</td>
## <td></td>
<td class="xn-col-sm-2 xn-text-center">{{itemBalance.balanceQuantity}}</td>
<td class="xn-col-sm-2 xn-text-center">{{itemBalance.canUseQuantity}}</td>
<td class="xn-col-sm-2 xn-text-center"><span ng-if="itemBalance.preSale != null">{{itemBalance.preSale}}</span>
<span ng-if="itemBalance.preSale == null">0</span>
<br/>
<span ng-if="itemBalance.theWayQuantity != null">{{itemBalance.theWayQuantity}}</span>
<span ng-if="itemBalance.theWayQuantity == null">0</span>
</td>
## <td>{{itemBalance.purchasePrice| moneySingle:2}}</td>
<td class="xn-col-sm-2 xn-text-right">{{itemBalance.cost| moneySingle:2}}</td>
## <td>{{itemBalance.retailPrice| moneySingle:2}}</td>
## <td>{{itemBalance.disPrice| moneySingle:2}}</td>
<td class="xn-col-sm-2 xn-text-center">{{itemBalance.weight}}</td>
<td class="xn-col-sm-2 xn-text-right">{{itemBalance.unitPrice| moneySingle:2}}</td>
<td class="xn-col-sm-6 xn-text-center">{{itemBalance.supplierName}}</td>
## <td>{{itemBalance.itemBarcode}}</td>
## <td>{{itemBalance.locatorName}}</td>
<td class="xn-col-sm-3 xn-text-center">{{itemBalance.safeQuantity}}</td>
## <td>{{itemBalance.categoryName}}</td>
## <td></td>
<td ng-if="itemBalance.theWayQuantity != 0" class="xn-col-sm-2 xn-text-center">{{itemBalance.needDate |timeToDateFormat}}</td>
<td ng-if="itemBalance.theWayQuantity == 0" class="xn-col-sm-2 xn-text-center"> </td>
<td class="xn-col-sm-2 xn-text-center">{{itemBalance.state|itemState}}</td>
</tr>
<tr ng-if="vm.totalCount == 0"><td colspan="39" 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="query()" 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>