productView.html
11.8 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
<div>
<div class="animated fadeInRight">
<div class="productBox">
<div class="serchBox">
<div class="form-group fl">
<select class="form-control a_select mt3" ng-model="fieldName" style="width:120px;">
<option value="idStr" selected>编号</option>
<option value="productCode">产品编号</option>
<option value="productName">产品名称</option>
<option value="supplierCode">供应商SAP代码</option>
<option value="supplierName">供应商SAP名称</option>
</select>
<input type="text" class="form-control a_ipt mt3" ng-model="fieldText" style="width:120px;" />
</div>
<div class="form-group fl">
<label class="name control-label fl" style="margin-left: 20px">类目代码:</label>
<input type="text" class="form-control a_ipt mt3" maxlength="50" ng-model="serchInfo.categoryCode"
style="width:150px">
</div>
<div class="form-group fl">
<label class="name control-label fl" style="margin-left: 20px">产品生产型号:</label>
<input type="text" class="form-control a_ipt mt3" maxlength="50" ng-model="serchInfo.procuctModel"
style="width:150px;">
</div>
<div class="form-group fl">
<label class="name control-label fl" style="margin-left: 20px">品牌:</label>
<input type="text" class="form-control a_ipt mt3" maxlength="50" ng-model="serchInfo.brandName"
style="width:150px;">
</div>
<div class="form-group fl">
<label class="name control-label fl">产地:</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:150px;">
<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:150px;">
<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 fl">
<label class="name control-label fl" style="margin-left: 20px">产品分类:</label>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.bizCategoryCode"
ng-change="changeCategory(1,$select.selected.categoryCode)" theme="select2" style="width:150px;">
<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:150px;">
<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:150px;">
<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:150px;">
<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 fl">
<label class="name control-label fl">车型:</label>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.carBrand"
ng-change="changeCarBrand($select.selected.id)" 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 (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:150px;">
<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:150px;">
<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 fl">
<label class="name control-label fl" style="margin-left: 20px">投诉情况:</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 fl">
<label class="name control-label fl" style="margin-left: 20px">收藏状态:</label>
<ui-select class="a_select pd0" ng-model="$parent.serchInfo.collectStatus" theme="select2"
style="width:150px;">
<ui-select-match placeholder="全部">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="item in collectOptions | filter: $select.search">
<span ng-bind="item.name"></span>
</ui-select-choices>
</ui-select>
</div>
</div>
<div class="form-group" style="margin-top: 20px;">
<button class="btn btn-primary btn-search" ng-click="getProductList()"><img
src="images/searchBtn.png" /><i>查询</i></button>
<!-- <button class="btn btn-default btn-search" ng-click=""><img
src="images/resetBtn.png" /><i>重置</i></button> -->
</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="ibox-content table-container">
<div id="productView" style="margin: 5px;" process-datatable dt-options="dtOptions" dt-instance="dtInstance"
dt-columns="dtColumns" condition="condition" ng-dis />
</div>
</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="row">
<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: 280px;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>
<style>
.productBox {
background-color: #FFFFFF;
margin: 10px 0;
padding: 20px;
}
</style>