Index.html
21.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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body" style="padding-bottom: 0">
<a id="add-btn" href="/market/couponList/add" class="btn btn-success "><i class="fa fa-plus"></i> 添加优惠券</a>
<a id="updateh5-btn" href="javascript:;" class="btn btn-success "><i class="fa fa-plus"></i> 定制卡券h5链接</a>
</div>
<div class="panel-body">
<div class="row">
<div class="panel-col">
<input id="filter-coupon" class="form-control panel-input" type="text" placeholder="优惠券ID">
</div>
<div class="panel-col">
<input id="filter-couponName" class="form-control panel-input" type="text" placeholder="名称">
</div>
<div class="panel-col" id="departments"></div>
<div class="panel-col">
<select id="filter-couponType" tabindex="-1" class="select2-offscreen brandBtn-group observe">
<option value="-1">优惠券类型</option>
<option value="1">活动券</option>
<option value="3">券码</option>
<option value="4">生日券</option>
<option value="5">免邮券</option>
<option value="6">店铺券</option>
<option value="7">分享券</option>
<option value="8">会员营销券</option>
</select>
</div>
<div class="panel-col">
<select id="filter-feeSharingType" tabindex="-1" class="select2-offscreen brandBtn-group observe">
<option value="-1">费用承担</option>
<option value="1">我司承担</option>
<option value="2">供应商承担</option>
<option value="3">分摊(合同结算)</option>
<option value="4">分摊-我司承担比例</option>
<option value="5">优惠券分摊条款</option>
</select>
</div>
<div class="panel-col">
<input type="text" id="startTimeStr" class="form-control panel-input" name="startTimeStr"
placeholder="开始时间" value="" kl_vkbd_parsed="true" readonly>
</div>
<div class="panel-col">
<input type="text" id="endTimeStr" class="form-control panel-input" name="endTimeStr"
placeholder="结束时间" value="" kl_vkbd_parsed="true" readonly>
</div>
<div class="panel-col">
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="all-btn" href="/market/couponList/index" class="btn btn-info">全部</a>
</div>
<div class="panel-col">
<a id="exportByTimeRange-btn" href="javascript:;" class="btn btn-warning">导出</a>
</div>
</div>
</div>
</div>
<div class="panel panel-primary-head">
<div class="dataTab_wrapper" id="basicTab" style="margin-bottom: 10px"></div>
<div class="basicTable_wrapper" id="basicTable"></div>
</div>
</div>
<script type="text/template" id="template">
<p>[[name]]</p>
<label class="col-sm-3 control-label"><i class="red">*请填写原因</i></label>
<input id="reason" type="text" class="form-control" name="agreement-code" style="width:280px;">
</script>
<script type="text/template" id="search-department">
<select id="choose-department" title="" class=" select2-offscreen form-control">
<option value="-1">申请部门</option>
[[each data as item index]]
<option value="[[item.department]]">[[item.departmentName]]</option>
[[/each]]
</select>
</script>
<script type="text/template" id="templateInfo">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">优惠券ID:[[id]]</h4>
<h4 class="panel-title">申请时间:[[createTime]]</h4>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">类型</label>
<div class="col-sm-8">
<p>
[[couponType]] <br/>
[[if couponType=='免邮券' && isNew == '2']]
前台展示(用于金卡/白金卡用户免邮券前台展示标识)
[[/if]]
</p>
</div>
</div>
</div>
</div>
[[if couponType=='券码']]
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">市场通用</label>
<div class="col-sm-8">
<p> [[if isUseLimitRule==''||isUseLimitRule=='Y']]否[[else]]是[[/if]]</p>
</div>
</div>
</div>
</div>
[[if publicCouponType=='1']]
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">码值</label>
<div class="col-sm-8">
<p> [[cusPublicCouponName]]</p>
</div>
</div>
</div>
</div>
[[/if]]
[[/if]]
<div class="panel-heading">
<h4 class="panel-title">基本信息</h4>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">名称 </label>
<div class="col-sm-8">
<p>[[couponName]]</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">数量</label>
<div class="col-sm-8">
<p>[[couponNum]]</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">申请部门</label>
<div class="col-sm-8">
<p>[[departmentName]]</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">领取开始时间</label>
<div class="col-sm-8">
<p>[[limitStartTime]]</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">使用期限</label>
<div class="col-sm-3">
<p>[[startTime]]</p>
</div>
<div class="col-sm-1">
<p>到</p>
</div>
<div class="col-sm-3">
<p>[[endTime]]</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">优惠券说明</label>
<div class="col-sm-8">
<p>[[explains]]</p>
</div>
</div>
</div>
</div>
<div class="panel-heading">
<h4 class="panel-title">使用条件</h4>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">优惠类型</label>
<div class="col-sm-8">
<p>[[useLimitType]]</p>
</div>
</div>
[[if useLimitType!='无限制']]
<div class="form-group">
<label class="col-sm-2 control-label">优惠条件</label>
[[if useLimitType=='货物件数限制']]
<div class="col-sm-4">
<p>件数满 [[useLimit]]件</p>
</div>
[[/if]]
[[if useLimitType=='订单金额限制']]
<div class="col-sm-4">
<p>金额满 [[useLimit]]元</p>
</div>
[[/if]]
</div>
[[/if]]
<div class="form-group">
<label class="col-sm-2 control-label">优惠结果</label>
<div class="col-sm-4">
<p>面额 [[couponAmount]]元</p>
</div>
<div class="col-sm-4">
<p>倍数 [[multipleNum]]</p>
</div>
</div>
[[if brandsList]]
<div class="form-group">
<label class="col-sm-2 control-label">品牌限制</label>
<div class="col-sm-10">
<p>[[brandsList]]</p>
</div>
</div>
[[/if]]
[[if shopList]]
<div class="form-group">
<label class="col-sm-2 control-label">店铺限制</label>
<div class="col-sm-10">
<p>[[shopList]]</p>
</div>
</div>
[[/if]]
[[if sortsList]]
<div class="form-group">
<label class="col-sm-2 control-label">分类限制</label>
<div class="col-sm-10">
<p>[[sortsList]]</p>
</div>
</div>
[[/if]]
[[if productLimit]]
<div class="form-group">
<label class="col-sm-2 control-label">商品限制</label>
<div class="col-sm-10">
<p>[[productLimit]]</p>
</div>
</div>
[[/if]]
[[if prdPoolLimit]]
<div class="form-group">
<label class="col-sm-2 control-label">商品池限制</label>
<div class="col-sm-10">
<p>[[prdPoolLimitName]]</p>
</div>
</div>
[[/if]]
<div class="form-group">
<label class="col-sm-2 control-label">互斥配置</label>
<div class="col-sm-8">
<p>[[shopPriceLimits]]</p>
</div>
</div>
[[if couponType !='券码' && couponType!='活动券']]
<div class="form-group">
<label class="col-sm-2 control-label">SKN除外</label>
<div class="col-sm-8">
<textarea class="form-control observe" prompt="SKN除外" data-field="sknExclude"
placeholder="" style="resize: none" disabled >[[sknExclude]]</textarea>
</div>
</div>
[[/if]]
</div>
</div>
<!-------------- 使用渠道 start -------------->
<div class="panel-heading">
<h4 class="panel-title">渠道限制</h4>
</div>
<div class="panel-body">
<div class="row">
[[each couponAvailableChannels as Available_Channels i]]
<div>
<div>
<div class="form-group">
<div class="col-sm-12">
<!--<label class="col-sm-2 control-label"></label>-->
<!-- 渠道 -->
<div class="col-sm-8">
<label class="checkbox-inline">
<!-- 判断是否选中 -->
<input type="checkbox" class="couponAvailableChannels" disabled
[[each channel as Available_Channels_status j]]
[[if Available_Channels_status.groupId==Available_Channels.groupId]]
checked
[[/if]]
[[/each]]
value="[[Available_Channels.groupId]]"> [[Available_Channels.groupName]]
</label>
</div>
</div>
</div>
</div>
<div>
<!-- 子门店 -->
[[if Available_Channels.storeList]]
<div class="form-group">
<label class="col-sm-2 control-label"></label>
<div class="col-sm-8">
[[each Available_Channels.storeList as Available_storeList index]]
<label class="checkbox-inline">
<!-- 判断是否选中 -->
<input type="checkbox" class="couponAvailableChannelStoreList couponAvailableChannelStoreList_[[Available_Channels.groupId]]" disabled
[[each channel as Available_Channels_status j]]
[[if Available_Channels_status.groupId==Available_Channels.groupId]]
[[each Available_Channels_status.storeList as Available_Channels_storeList_status k]]
[[if Available_Channels_storeList_status==Available_storeList.storeId]]
checked
[[/if]]
[[/each]]
[[/if]]
[[/each]]
value="[[Available_storeList.storeId]]"> [[Available_storeList.storeName]] [[Available_Channels_storeList_status]]
</label>
[[/each]]
</div>
</div>
[[/if]]
</div>
</div>
[[/each]]
</div>
</div>
<!-------------- 使用渠道 end -------------->
<div class="panel-heading">
<h4 class="panel-title">领券条件</h4>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">会员身份</label>
<div class="col-sm-8">
<p>[[customType]]</p>
</div>
</div>
</div>
</div>
<div class="panel-heading">
<h4 class="panel-title">费用承担</h4>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">费用承担</label>
<div class="col-sm-8">
[[if feeSharingType == 1]]
<p>我司承担</p>
[[else if feeSharingType == 2]]
<p>供应商承担</p>
[[else if feeSharingType == 3]]
<p>分摊(合同结算)</p>
[[else if feeSharingType == 4]]
<p>分摊-我司承担比例:[[feeSharingRatio]]</p>
[[else if feeSharingType == 5]]
<p>优惠券分摊条款</p>
[[/if]]
</div>
</div>
</div>
</div>
<div class="panel-heading">
<h4 class="panel-title">展示范围</h4>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">展示范围</label>
<div class="col-sm-8">
<p>[[showScope]]</p>
</div>
</div>
</div>
</div>
</div>
</script>
<script type="text/template" id="operation-record-template">
<div class="historyList">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>操作类型</th>
<th>操作人</th>
<th>部门</th>
<th>执行时间</th>
</tr>
</thead>
<tbody>
[[if list.length > 0]]
[[each list as item index]]
<tr>
<td>[[item.operationType]]</td>
<td>[[item.operator]]</td>
<td>[[item.deptName]]</td>
<td>[[item.createTime]]</td>
</tr>
[[/each]]
[[else]]
<tr><td colspan="7">没有操作记录!</td></tr>
[[/if]]
</tbody>
</table>
</div>
</script>
<script id="third-template" type="text/template" charset="utf-8">
<div class="row" id="baseform">
<div class="form-group">
<label class="col-sm-2 control-label">第三方类型 </label>
<div class="col-sm-8">
<input type="hidden" name="couponId" id="couponId" value="{{couponId}}"/>
<select name="thirdType" id="thirdType" {{if thirdType == 1}}disabled{{/if}} tabindex="-1" class="select2-offscreen" style="width: 100px;">
<option value="1" {{if thirdType == 1}}selected{{/if}}>微信</option>
<option value="2" {{if thirdType == 2}}selected{{/if}}>支付宝</option>
<option value="3" {{if thirdType != 1 && thirdType != 2}}selected{{/if}}>微博</option>
</select>
</div>
</div>
<div class="form-group">/couponList/index
<label class="col-sm-2 control-label">第三方 ID</label>
<div class="col-sm-8">
<input id="thirdId" class="form-control panel-input" value="{{thirdId}}" {{if thirdType == 1}}readonly{{/if}} type="text" placeholder="第三方 ID">
</div>
</div>
<div class="form-group" id="weixin" style="display: none">
<label class="col-sm-2 control-label">微信公众号</label>
<div class="col-sm-8">
<select name="publicNumberType" id="publicNumberType" tabindex="-1" class="form-control" style="width: 200px;">
<option value="1" {{if publicNumberType == 1}}selected{{/if}}>有货YOHOBUY 订阅号</option>
<option value="3" {{if publicNumberType == 3}}selected{{/if}}>有货潮流志微信 订阅号</option>
</select>
</div>
</div>
</div>
</script>
<script id="h5Link-template" type="text/template" charset="utf-8">
<div class="row" id="h5LinkForm">
<div class="form-group">
<label class="col-sm-2 control-label">微信公众号</label>
<div class="col-sm-8">
<select name="publicNumberCode" id="publicNumberCode" tabindex="-1" class="form-control" style="width: 200px;">
<option value="1" {{if publicNumberCode == 1}}selected{{/if}}>有货YOHOBUY 订阅号</option>
<option value="3" {{if publicNumberCode == 3}}selected{{/if}}>有货潮流志微信 订阅号</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">卡券ID</label>
<div class="col-sm-8">
<input id="cardId" class="form-control panel-input" value="{{thirdId}}" type="text" placeholder="卡券ID">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">H5链接</label>
<div class="col-sm-8">
<input id="h5Link" class="form-control panel-input" value="{{h5Link}}" type="text" placeholder="h5链接">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">小程序入口</label>
<div class="col-sm-8">
<input id="miniappPages" class="form-control panel-input" value="{{miniappPages}}" type="text" placeholder="小程序入口(首页=pages/index/index)">
</div>
</div>
</div>
</script>
<%include '../../common/__ui/footer'%>