productManager.html
15.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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<div>
<div class="row wrapper wrapper-content animated fadeInRight" style="padding: 0;">
<!-- <div class="serchBox form-right"> -->
<div class="ibox relative" style="margin-bottom: 0">
<div class="ibox-title clearfix" style="border: none">
<div class="row">
<form class="form-inline col-lg-12 form-right" role="form">
<div class="form-group">
<select class="form-control a_select mt3" ng-model="fieldName" style="width:100px;">
<option value="productCode">产品编号</option>
<option value="productName">产品名称</option>
<option value="supplierCode">供应商SAP代码</option>
<option value="supplierName">供应商SAP名称</option>
<option value="idStr" selected>编号</option>
</select>
<input type="text" class="form-control a_ipt mt3" ng-model="fieldText" style="width:150px;" />
</div>
<div class="form-group">
<label class="name control-label">类目代码:</label>
<input type="text" class="form-control a_ipt mt3" maxlength="50" ng-model="serchInfo.categoryCode"
style="width:150px;">
</div>
<div class="form-group">
<label class="name control-label">产品生产型号:</label>
<input type="text" class="form-control a_ipt mt3" maxlength="50" ng-model="serchInfo.procuctModel"
style="width:150px;">
</div>
<div class="form-group">
<label class="name control-label">品牌:</label>
<input type="text" class="form-control a_ipt mt3" maxlength="50" ng-model="serchInfo.brandName"
style="width:150px;">
</div>
<div class="form-group">
<label class="name control-label">当前状态:</label>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.status" theme="select2" style="width:190px;">
<ui-select-match placeholder="全部">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="item in statusArrays | filter: $select.search">
<span ng-bind="item.name"></span>
</ui-select-choices>
</ui-select>
</div>
<div class="form-group">
<label class="name control-label text-right" style="width: 60px;">备注:</label>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.hasRemark" theme="select2"
style="width:150px;">
<ui-select-match placeholder="全部">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="item in remarkOptions | filter: $select.search">
<span ng-bind="item.name"></span>
</ui-select-choices>
</ui-select>
</div>
<div class="form-group">
<label class="name control-label text-right" style="width: 60px;">产地:</label>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.countryId" theme="select2"
style="width:150px;">
<ui-select-match placeholder="请选择国家">
<span ng-bind="$select.selected.name"></span>
</ui-select-match>
<ui-select-choices repeat="item in (countryOptions | filter: $select.search) track by item.id">
<span ng-bind="item.name"></span>
</ui-select-choices>
</ui-select>
<ui-select ng-show="serchInfo.countryId.id == 37" class="a_select pd0"
ng-model="$parent.serchInfo.provinceId" ng-change="changeProvince($select.selected.pid)" theme="select2"
style="width:100px;">
<ui-select-match placeholder="请选择省份">
<span ng-bind="$select.selected.province"></span>
</ui-select-match>
<ui-select-choices repeat="item in (provinceOptions | filter: $select.search) track by item.pid">
<span ng-bind="item.province"></span>
</ui-select-choices>
</ui-select>
<ui-select ng-show="serchInfo.countryId.id == 37" class="a_select pd0" ng-model="$parent.serchInfo.cityId"
theme="select2" style="width:100px;">
<ui-select-match placeholder="请选择城市">
<span ng-bind="$select.selected.city"></span>
</ui-select-match>
<ui-select-choices repeat="item in (cityOptions | filter: $select.search) track by item.cid">
<span ng-bind="item.city"></span>
</ui-select-choices>
</ui-select>
</div>
<div class="form-group">
<label class="name control-label">产品分类:</label>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.bizCategoryCode"
ng-change="changeCategory(1,$select.selected.categoryCode)" theme="select2" style="width:120px;">
<ui-select-match placeholder="请选择">
<span ng-bind="$select.selected.categoryName"></span>
</ui-select-match>
<ui-select-choices
repeat="item in (bizCategoryOptions | filter: $select.search) track by item.categoryCode">
<span ng-bind="item.categoryName"></span>
</ui-select-choices>
</ui-select>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.bigCategoryCode"
ng-change="changeCategory(2,$select.selected.categoryCode)" theme="select2" style="width:120px;">
<ui-select-match placeholder="选择分类">
<span ng-bind="$select.selected.categoryName"></span>
</ui-select-match>
<ui-select-choices
repeat="item in (bigCategoryOptions | filter: $select.search) track by item.categoryCode">
<span ng-bind="item.categoryName"></span>
</ui-select-choices>
</ui-select>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.productCategoryCode"
ng-change="changeCategory(3,$select.selected.categoryCode)" theme="select2" style="width:120px;">
<ui-select-match placeholder="选择分类">
<span ng-bind="$select.selected.categoryName"></span>
</ui-select-match>
<ui-select-choices
repeat="item in (productCategoryOptions | filter: $select.search) track by item.categoryCode">
<span ng-bind="item.categoryName"></span>
</ui-select-choices>
</ui-select>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.subCategoryCode"
ng-change="changeCategory(4,$select.selected.categoryCode)" theme="select2" style="width:120px;">
<ui-select-match placeholder="选择分类">
<span ng-bind="$select.selected.categoryName"></span>
</ui-select-match>
<ui-select-choices
repeat="item in (subCategoryOptions | filter: $select.search) track by item.categoryCode">
<span ng-bind="item.categoryName"></span>
</ui-select-choices>
</ui-select>
</div>
<div class="form-group">
<label class="name control-label">车型:</label>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.carBrand"
ng-change="changeCarBrand($select.selected.id)" theme="select2" style="width:120px;">
<ui-select-match placeholder="请选择">
<span ng-bind="$select.selected.name"></span>
</ui-select-match>
<ui-select-choices repeat="item in (carBrandOptions | filter: $select.search) track by item.id">
<span ng-bind="item.name"></span>
</ui-select-choices>
</ui-select>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.carSmallBrand"
ng-change="changeCarSmallBrand($select.selected.id)" theme="select2" style="width:120px;">
<ui-select-match placeholder="请选择">
<span ng-bind="$select.selected.name"></span>
</ui-select-match>
<ui-select-choices repeat="item in (carSmallBrandOptions | filter: $select.search) track by item.id">
<span ng-bind="item.name"></span>
</ui-select-choices>
</ui-select>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.carSeries" theme="select2"
style="width:120px;">
<ui-select-match placeholder="请选择">
<span ng-bind="$select.selected.name"></span>
</ui-select-match>
<ui-select-choices repeat="item in (carSeriesOptions | filter: $select.search) track by item.id">
<span ng-bind="item.name"></span>
</ui-select-choices>
</ui-select>
</div>
<div class="form-group">
<label class="name control-label">投诉情况:</label>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.hasComplain" theme="select2"
style="width:150px;">
<ui-select-match placeholder="全部">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="item in complainOptions | filter: $select.search">
<span ng-bind="item.name"></span>
</ui-select-choices>
</ui-select>
</div>
<div class="form-group">
<label class="name control-label">编号:</label>
<input type="text" class="form-control a_ipt mt3" ng-model="serchInfo.minId" style="width:120px;"
ng-blur="checkIdRange(1,1);" maxlength="11" ng-change="checkIdRange(2,1);">
<span class="name control-label">-- </span>
<input type="text" class="form-control a_ipt mt3" ng-model="serchInfo.maxId" style="width:120px;"
ng-blur="checkIdRange(1,2);" maxlength="11" ng-change="checkIdRange(2,2);">
</div>
<!-- <div class="form-group form-btn">
<button type="submit" class="btn btn-primary aButton" ng-click="getProductList()">查询</button>
</div> -->
</form>
<div class="form-group" style="margin-left: 15px;">
<button class="btn btn-primary btn-search" ng-click="getProductList()"><img
src="images/searchBtn.png" /><i>查询</i></button>
</div>
</div>
</div>
</div>
<!-- 搜索区域 end -->
<!--操作按钮区域 开始-->
<div class="form-group">
<div class="leftBox">
<div class="dt-buttons btn-group" ng-repeat="attr in userDefinedOptions"
style="min-width: 800px;margin-top: 10px;">
<div style="float: left;padding: 5px 12px;color:#353535;font-weight: bold;font-size: 14px;">
{{attr.outAttrName}}
</div>
<a href="javascript:void(0)" style="margin-right: 5px;"
class="btn btn-default {{userDefinedOptions[$parent.$index].attrValList[$index].selected ?'active':''}}"
ng-repeat="attrVal in attr.attrValList"
ng-click="selectUserDefinedVal($parent.$index,$index)">{{attrVal.attrValName}}</a>
</div>
</div>
</div>
<!--操作按钮区域 end-->
<!-- <div class="form-group">
<div class="leftBox">
<div style="color:#F00">
待发送供应商:{{count.waitSendCount}}个;
待供应商完善:{{count.waitImprovedCount}}个;
待总部审核:{{count.waitAuditCount}}个;
审核不通过:{{count.auditNotPassCount}}个;
待上架:{{count.waitShelvesCount}}个;
已上架:{{count.shelvesCount}}个;
已下架:{{count.offShelvesCount}}个;<br />
有备注:{{count.hasResultCount}}个;
</div>
</div>
</div> -->
<div class="ibox-content table-container" style="margin: 10px">
<div class="icon-tips icon-green" style="width: 100%;display: inline-block; margin-bottom: 20px">
<img src="images/comment.png" />
<span>待发送供应商<i>{{count.waitSendCount || 0}}</i></span>
<span>待供应商完善<i>{{count.waitImprovedCount || 0}}</i></span>
<span>待总部审核<i>{{count.waitAuditCount || 0}}</i></span>
<span>审核不通过<i>{{count.auditNotPassCount || 0}}</i></span>
<span>待上架<i>{{count.waitShelvesCount || 0}}</i></span>
<span>已上架<i>{{count.shelvesCount || 0}}</i></span>
<span>已下架<i>{{count.offShelvesCount || 0}}</i></span><br>
<span>有备注<i>{{count.hasResultCount || 0}}</i></span>
</div>
<div id="productManager" process-datatable dt-options="dtOptions" dt-instance="dtInstance" dt-columns="dtColumns"
condition="condition" ng-dis />
</div>
</div>
</div>
<script type="text/ng-template" id="productManagerOperateModal">
<div class="modal-header">
<button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">×</span></button>
<h3 class="modal-title" id="modal-title">{{message}}</h3>
</div>
<div class="modal-body">
<div class="form-group" ng-show="status == 3">
<label class="name control-label fl">原 因:</label>
<textarea name="remarks" class="textarea form-control" rows="5" autocomplete="off" ng-model="auditReason" placeholder="100字符以内" style="width: 400px;height: 80px" maxlength="100" ></textarea>
</div>
<div class="row" ng-show="status != 3">
<p>是否确认{{message}}?</p>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" type="button" ng-click="confirm()">确认<i class="fa fa-spinner fa-spin" ng-show="isWorking"></i></button>
<button class="btn" type="button" ng-click="cancel()">取消</button>
</div>
</script>
<!-- 审核 -->
<script type="text/ng-template" id="productManagerAuditModal">
<div class="modal-header">
<h3 class="modal-title">审核</h3>
</div>
<div class="modal-body">
<div class="clearfix">
<div class="form-group">
<label class="name control-label fl">审核结果:</label>
<select class="form-control a_select mt3" ng-model="auditSelect" style="width:120px;">
<option value="4">审核通过</option>
<option value="3">审核不通过</option>
</select>
</div>
<div class="form-group" ng-show="auditSelect == 3">
<label class="name control-label fl">原 因:</label>
<textarea name="remarks" class="textarea form-control" rows="5" autocomplete="off" ng-model="auditReason" placeholder="100字符以内" style="width: 400px;height: 80px" maxlength="100" ></textarea>
</div>
</div>
<div class="btnGroup m-t-md">
<a href="javascript:void(0)" class="btn btn-success aButton" ng-click="confirm()" ng-disabled="isWorking">确定</a>
<a href="javascript:void(0)" class="btn btn-default aButton" ng-click="cancel()">取消</a>
</div>
</div>
</script>