Index.html
17.3 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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
<div class="panel panel-default" id="priceChangeSearch" style="margin-bottom:10px;">
<div class="panel-body">
<div class="row">
<div class="panel-col">
<input id="skn" class="form-control panel-input height40" type="text" placeholder="请输入SKN" onkeyup="this.value=this.value.replace(/\D/gi,'')">
</div>
<input type="hidden" id='authority' value="<%auditAuthority.authority%>" />
<div class="panel-col">
<select name="shop" id="shop" tabindex="-1" title="" class="form-control">
<option value="-1">请选择店铺</option>
</select>
</div>
<div class="panel-col">
<select name="brand" id="brand" tabindex="-1" title="" class="form-control">
<option value="-1">请选择品牌</option>
</select>
</div>
<div class="panel-col">
<select name="supplier" id="supplier" tabindex="-1" title="" class="form-control">
<option value="-1">请选择供应商</option>
</select>
</div>
<div class="panel-col">
<select name="jit" id="jit" tabindex="-1" title="" class="form-control">
<option value="-1">是否JIT商品</option>
<option value="Y">是</option>
<option value="N">否</option>
</select>
</div>
<div class="panel-col">
<select name="status" id="status" tabindex="-1" title="" class="form-control">
<option value="-1">上架状态</option>
<option value="200">上架</option>
<option value="0">下架</option>
</select>
</div>
<div class="panel-col">
<select name="stock" id="stock" tabindex="-1" title="" class="form-control">
<option value="-1">库存情况</option>
<option value="1">有库存</option>
<option value="0">无库存</option>
</select>
</div>
<div class="panel-col">
<select name="sex" id="sex" tabindex="-1" title="" class="form-control">
<option value="-1">选择性别</option>
<option value="1">男</option>
<option value="2">女</option>
<option value="3">通用</option>
</select>
</div>
<div class="panel-col2">
<div id="sortTree"></div>
</div>
<div class="panel-col">
<select name="cooperationType" id="cooperationType" tabindex="-1" title="" class="form-control">
<option value="-1">变价合作模式</option>
<option value="2">经销</option>
<option value="1">代销</option>
</select>
</div>
<div class="panel-col">
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="all-btn" href="javascript:;" class="btn btn-info">全部</a>
</div>
<div class="panel-col" style="margin: 0 0 0 -5px;">
<a id="batchExportChangePrice" href="javascript:;" class="btn btn-primary">导出</a>
<a id="import-btn" href="javascript:;" class="btn btn-primary">批量导入</a>
</div>
<div class="panel-col" style="margin: 0 0 0 12px;width:25%;">
<a id="batch_pass_btn" href="javascript:;" class="btn btn-success">通过</a>
<a id="batch_reject_btn" href="javascript:;" class="btn btn-danger">驳回</a>
<a id="batch_audit_btn" href="javascript:;" class="btn btn-primary">批量审核</a>
</div>
</div>
</div>
</div>
<div class="panel panel-primary-head">
<div class="dataTab_wrapper" id="priceTab" style="margin-bottom: 10px"></div>
<div class="dataTab_wrapper" id="basicTable"></div>
</div>
<div class="panel bulk_import" style="display: none">
<div class="panel " >
<a id="" href="javascript:;" class="btn btn-info return-btn">返回列表</a>
<a id="download-btn" href="javascript:;" class="btn btn-success" style="display: none">
<span class="glyphicon glyphicon-arrow-down"></span> 下载导入结果
</a>
<table class="table table-bordered" style="border:1px solid #ddd; margin-top: 10px">
<tr>
<td width="120px" style="line-height: 37px"><b>上传EXCEL:</b></td>
<td style="position: relative;">
<input id="priceChangeUpload" name="file" type="file" style="cursor: pointer; height: 37px; top: 8px;">
<div class="file-name btn btn-primary">请选择文件</div>
</td>
</tr>
<tr>
<td width="120px"><b>说明:</b></td>
<td>
1、上传文件必须是<span style="color:red;">.xlsx</span>文件<br>
2、Excel表头为:<span style="color: #67D267;">SKN、吊牌价、销售价、VIP折扣类型、VIP价、白金价、金卡价、银卡价</span><br>
3、第一行为表头内容,第二行开始为正式内容<br>
4、每个文件控制在2500行以内<br>
5、<a href="/ajax/link/batchUpdatePrice" style="margin: 0; text-decoration: underline">下载样例.xlsx</a>
</td>
</tr>
</table>
<div id="priceChangeImportMessage">
<b>批量上传结果:</b>
<span id="detailMassage"></span>
<div class="clearfix"></div>
</div>
<div id="priceChangeImportResultSet">
<div class="title">
<span>生效时间设置:</span>
<div class="clearfix"></div>
</div>
<div class="form-inline">
<label>价格生效时间:</label>
<div class="form-group">
<input id="importStartDate" jsaction="date:end:importEndDate" type="text" class="form-control" placeholder="开始日期" style="width: 150px">
~
<input id="importEndDate" jsaction="date:start:importStartDate" type="text" class="form-control" placeholder="结束日期" style="width: 150px">
</div>
<div class="form-group">
<a href="javascript:;" class="btn btn-success btn-submit-priceChange">确定提交</a>
</div>
</div>
</div>
<div id="priceChangeImportResult">
<div class="title">
<span>批量变价列表:(成功导入的变价)</span>
<a id="deleteAllImport" href="javascript:;" class="btn btn-xs btn-danger" style="float: right;padding-right: 10px">全部删除</a>
<div class="clearfix"></div>
</div>
<div id="importResultTable"></div>
</div>
</div>
</div>
<div class="panel bulk_batch_autdit" style="display: none" >
<div class="panel " >
<a id="" href="javascript:;" class="btn btn-info return-btn">返回列表</a>
<table class="table table-bordered" style="border:1px solid #ddd;margin-top: 10px">
<tr>
<td width="120px" style="line-height: 37px"><b>上传EXCEL:</b></td>
<td style="position: relative;">
<input id="priceAuditUpload" name="file" type="file" style="cursor: pointer; height: 37px; top: 8px;">
<div class="file-name btn btn-primary">请选择文件</div>
</td>
</tr>
<tr>
<td width="120px"><b>说明:</b></td>
<td>
1、上传文件必须是<span style="color:red;">.xlsx</span>文件<br>
2、Excel表头为:<span style="color: #67D267;">SKN、审批(通过:1,驳回:2)、驳回原因</span><br>
3、第一行为表头内容,第二行开始为正式内容<br>
4、每个文件控制在2500行以内<br>
5、<a href="/ajax/link/batchAuditPrice" style="margin: 0; text-decoration: underline">下载样例.xlsx</a>
</td>
</tr>
</table>
</div>
<div class="panel-body red" id="message">
</div>
</div>
</div>
<script id="template" type="text/template">
<td colspan="16" style="padding: 0">
<table class="table table-striped table-bordered" style="margin: 0;border: 0">
<tr>
<th style="border-top: 0; border-left: 0">SKN</th>
<th style="border-top: 0">VIP折扣类型</th>
<th style="border-top: 0">VIP价</th>
<th style="border-top: 0">白金</th>
<th style="border-top: 0">金卡</th>
<th style="border-top: 0">银卡</th>
<th style="border-top: 0">学生价</th>
<th style="border-top: 0">建议销售价</th>
<th style="border-top: 0">销售价</th>
<th style="border-top: 0">价格生效时间</th>
<th style="border-top: 0">预估毛利率</th>
<th style="border-top: 0">库存成本</th>
<th style="border-top: 0; border-right: 0">操作</th>
</tr>
<tr>
<td style="border-bottom: 0; border-left: 0">
{product_skn}
<input class="plan-id form-control" type="hidden" value="{planId}" >
</td>
<td style="border-bottom: 0">
<select class="discount-select form-control" style="width: 110px">
<option value="1">正常折扣</option>
<option value="2">统一折扣</option>
<option value="3">无折扣</option>
<option value="4">固定折扣</option>
<option value="5">自定义折扣</option>
</select>
</td>
<td style="border-bottom: 0">
<input class="vip-price form-control" type="text" value="{vip_price}" onkeyup="this.value=this.value.replace(/[^\d\.]|^\./gi,'')">
</td>
<td style="border-bottom: 0">
<input class="vip3-price form-control" type="text" value="{vip3_price}" onkeyup="this.value=this.value.replace(/[^\d\.]|^\./gi,'')" disabled>
</td>
<td style="border-bottom: 0">
<input class="vip2-price form-control" type="text" value="{vip2_price}" onkeyup="this.value=this.value.replace(/[^\d\.]|^\./gi,'')" disabled>
</td>
<td style="border-bottom: 0">
<input class="vip1-price form-control" type="text" value="{vip1_price}" onkeyup="this.value=this.value.replace(/[^\d\.]|^\./gi,'')" disabled>
</td>
<td style="border-bottom: 0">
<div class="form-inline" style="margin-bottom: 5px">
<div class="form-group">
<!-- <input type="radio"style="margin-left: 35%" disabled>关闭<br> -->
<input class="student_price form-control" type="text" value="{student_price}" onkeyup="this.value=this.value.replace(/[^\d\.]|^\./gi,'')" disabled>
</div>
</div>
</td>
<td style="border-bottom: 0">
</td>
<td style="border-bottom: 0">
<input class="sale-price form-control" type="text" value="{sales_price}" onkeyup="this.value=this.value.replace(/[^\d\.]|^\./gi,'')">
</td>
<td class="form-inline" style="border-bottom: 0">
<input id="start_{product_skn}" jsaction="date:end:end_{product_skn}" class="startDate form-control" type="text" value="{cgpriceStartTime}" placeholder="开始日期" style='background-color:#fff;'>
<label> ~ </label>
<input id="end_{product_skn}" jsaction="date:start:start_{product_skn}" class="endDate form-control" type="text" value="{cgpriceEndTime}" placeholder="结束日期" style='background-color:#fff'>
</td>
<td style="border-bottom: 0">
<div class="input-group">
<input type="text" class="expect_gross_profit_rate form-control" value="{expectGrossProfitRate}" disabled>
<span class="input-group-addon">%</span>
</div>
</td>
<td style="border-bottom: 0">
<input class="storage_per_price form-control" type="text" value="{storagePerPrice}" disabled>
</td>
<td style="border-bottom: 0; border-right: 0;width:5%">
<a href="javascript:;" class="btn btn-success btn-xs sure-modify" style="margin-bottom:10px;">提交</a>
<a href="javascript:;" class="btn btn-success btn-xs cancel-modify" >取消</a>
</td>
</tr>
</table>
</td>
</script>
<script id="template2" type="text/template">
<div class="productInfo">
<table class="table table-striped table-bordered">
<thead>
<tr align="center">
<th>SKN</th>
<th>商品名称</th>
<th>品牌</th>
<th>类目</th>
</tr>
</thead>
<tbody>
<tr>
<td>[[productSkn]]</td>
<td>[[goodsName]]</td>
<td>[[brandName]]</td>
<td>
[[maxSortName]]
[[if midleSortName]] > [[midleSortName]][[/if]]
[[if smallSortName]] > [[smallSortName]][[/if]]
</td>
</tr>
</tbody>
</table>
</div>
<h2 style="color: #999; font-family: 'Microsoft YaHei'; font-size: 14px;">—— 变价记录表 ——</h2>
<div class="historyList">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>吊牌价</th>
<th>销售价</th>
<th>学生价</th>
<th>价格生效-<font color="green">开始时间</font></th>
<th>价格生效-<font color="red">结束时间</font></th>
<th>状态</th>
<th>变价申请时间</th>
<th>变价人</th>
<th>操作</th>
</tr>
</thead>
<tbody>
[[if list.length > 0]]
[[each list as item index]]
<tr>
<td>[[item.retailPrice]]</td>
<td>[[item.salesPrice]]</td>
<td>[[item.studentPrice]]</td>
<td>[[item.effectiveTime]]</td>
<td>[[item.changePriceEndTime]]</td>
<td>
[[if item.checkState == '101' ]] 待一审 [[/if]]
[[if item.checkState == '102' ]] 待二审 [[/if]]
[[if item.checkState == '103' ]] 待三审 [[/if]]
[[if item.checkState == '200' ]] 通过 [[/if]]
[[if item.checkState == '300' ]] 驳回 [[/if]]
</td>
<td>[[item.createTime]]</td>
<td>[[item.founderName]]</td>
<td>
[[if item.flag && item.flag == 1]]
<a data-planid="[[item.planId]]" data-skn="[[productSkn]]" href="javascript:;" class="btn btn-danger btn-xs deleteHistory">删除</a>
[[/if]]
</td>
</tr>
[[/each]]
[[else]]
<tr><td colspan="9">没有变价记录!</td></tr>
[[/if]]
</tbody>
</table>
</div>
</script>
<script type="text/template" id="template3">
<div class="rows" style="height: 100px;">
<div class="form-group">
<span class="col-sm-2 control-label">驳回原因:</span>
<div class="col-sm-8">
<textarea id="rejectResult" class="form-control" rows="3"></textarea>
</div>
</div>
</div>
</div>
</script>
<%include '../../../common/views/__ui/footer'%>