balance.vm
7.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
##$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="BalanceController">
<div class="pm-task-bottom-top pm-plan-bottom-top mt_10 mb_10 clearfix">
<h3>平台商品可售余额报表</h3>
</div>
<div class="xn-form-table-wrap">
<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">
<select class="xn-click-input form-control" ng-change="selectType(type)" ng-model="type"
ng-options="type.value as type.name for type in typeList">
<option value="">---请选择发布渠道---</option>
</select>
</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="brandOptions" name="brandName"
show-field="vm.brandName"
ng-model="vm.brandId"
place-holder=请输入品牌名称 >
<table>
<tbody>
<tr ng-repeat="brand in brandList"
ng-click="selectBrand(brand)">
<td>{{brand.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="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>
</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">
<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">
<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">
<select class="xn-click-input form-control" ng-change="selectIsShip(isShip)" ng-model="isShip"
ng-options="isShip.value as isShip.name for isShip in isShipList">
<option value="">---请选择商品状态---</option>
</select>
</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>
## <div class="xn-width mb_10 pr_10 clearfix">
## <button class="btn btn-link btn-sm f-right mr_10" ng-click="doExport()">批量导出</button>
## </div>
## <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 class="xn-table-wrap">
<table class="table table-bordered table-striped ">
<thead>
<tr>
<th class="xn-col-sm-2 ">品牌</th>
<th class="xn-col-sm-2 ">所属类目</th>
<th class="xn-col-sm-2 ">商品代码 </th>
<th class="xn-col-sm-4 ">商品名称</th>
<th class="xn-col-sm-3">规格代码</th>
<th class="xn-col-sm-2 ">规格名称</th>
<th class="xn-col-sm-2" >在售数量</th>
<th class="xn-col-sm-2">当日销售数量</th>
<th class="xn-col-sm-2" >ERP可用数量</th>
<th class="xn-col-sm-2" >ERP安全库存</th>
## <th class="xn-col-sm-2" >分销价</th>
## <th class="xn-col-sm-2" >零售价</th>
<th class="xn-col-sm-4" >上架状态</th>
</tr>
</thead>
<tbody id="tbody">
<tr ng-repeat="item in itemList">
<td>{{item.brandName}}</td>
<td>{{item.categoryName}}</td>
<td>{{item.itemNumber}}</td>
<td>{{item.itemName}}</td>
<td>{{item.itemSpecCode}}</td>
<td>{{item.itemSpecName}}</td>
<td>{{item.ebQuantity}}</td>
<td>{{item.eoQuantity}}</td>
<td>{{item.canUseQuantity}}</td>
<td>{{item.safeQuantity}}</td>
## <td>{{item.disPrice}}</td>
## <td>{{item.retailPrice}}</td>
<td>{{item.isShelf | isShelf}}</td>
</tr>
<tr ng-if="vm.totalCount == 0"><td colspan="38" 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>