collision.html
18.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
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
<!-- 流失线索页面 -->
<!-- 第二部分 tab -->
<div class="wrapper animated fadeInRight bg-white">
<div class="ibox relative" style="margin-bottom: 0;">
<div class="clearfix tab-menu" style="border: 0;">
<div class="row">
<ul class="nav nav-tabs">
<li id='uib-tab' class="uib-tab" style="margin-top: 0;"><a href=""
ng-class="{'tab-active': tabActive}" ng-click="tabCbk(true)">设置</a>
</li>
<li class="uib-tab" style="margin-top: 0;"><a href=""
ng-class="{'tab-active': !tabActive}" ng-click="tabCbk(false)">送修线索</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div ng-show="tabActive">
<div class="wrapper wrapper-content" style="padding-top: 0;">
<div class="row">
<div class="col-lg-12">
<div class="ibox float-e-margins">
<div class="ibox-content">
<!-- ng-show="createAccouts.length > 0 || mark == 'edit'" -->
<div class="row">
<form name="collisionFrom"
class="form-horizontal col-sm-6" novalidate>
<div class="form-group">
<div class="col-sm-10">
<p class="text-danger form-text" style="margin-left: 8%">标
* 号的部分为必填项</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label required" style='width: 140px;'>门店地址:</label>
<div class="col-sm-6" style="position: relative;">
<input type="text" class="form-control" name="address"
ng-model="merchant.address" maxlength="100" required readonly
placeholder="请选择商户地址">
<span class="span-btn btn-primary" ng-click="openMapDialog()">选择地址</span>
</div>
<div class="m-t-xs"
ng-show="collisionFrom.address.$invalid && submitted">
<p ng-show="collisionFrom.address.$error.required"
class="text-danger form-text" style='margin-left:19%;'>请选择门店地址</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label required" style='width: 140px;'>道路救援服务范围:</label>
<div class="col-sm-6">
<!-- ng-required="saveFlag" -->
<label class="checkbox-inline p-l-none"> <input icheck
ng-required="true"
name="isCheck" type="radio"
ng-model="collisionConfig.serviceRange" ng-value="1">
同城
</label> <label class="checkbox-inline p-l-none"> <input
ng-required="true"
icheck name="isCheck" type="radio"
ng-model="collisionConfig.serviceRange" ng-value="2">
同省
</label> <label class="checkbox-inline p-l-none"> <input
ng-required="true"
icheck name="isCheck" type="radio"
ng-model="collisionConfig.serviceRange" ng-value="3">
全国
</label>
<div class="col-sm-10">
<p class="text-danger form-text" style="color:#757576">
当车主发生碰撞事故地点在服务范围时,会将救援信息推送您</p>
</div>
</div>
<div class="m-t-xs" ng-show="collisionFrom.isCheck.$invalid && submitted">
<p class="text-danger" ng-show="collisionFrom.isCheck.$error.required">请选择道路救援范围1</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label required" style='width: 140px;'>救援服务时间:</label>
<div class="col-sm-7" style="display: flex;">
<div class="input-group clockpicker"
style="float: left; width: 35%;">
<input type="text" class="form-control" readonly
ng-required="true"
name='openTime'
ng-model="serviceHours.openTime"> <span
ng-show="openShow" class="input-clear"
ng-click="clearOpenTime()">×</span> <span
class="input-group-addon"> <span
class="glyphicon glyphicon-time"></span>
</span>
</div>
<!-- <small class="text-danger"
ng-show="merchantForm.openTime.$error.required && merchant.submitted">此项不能为空</small> -->
<div style="margin: 0 5px; line-height: 30px;">-</div>
<div class="input-group clockpicker"
style="float: left; width: 35%;">
<input type="text" class="form-control" readonly
ng-required="true"
name='closeTime'
ng-model="serviceHours.closeTime"> <span
ng-show="closeShow" class="input-clear"
ng-click="clearCloseTime()">×</span> <span
class="input-group-addon"> <span
class="glyphicon glyphicon-time"></span>
</span>
</div>
<button type="button" class="btn btn-primary" ng-click="setTime24()">设为24小时</button>
<!-- <small class="text-danger"
ng-show="merchantForm.closeTime.$error.required && merchant.submitted">此项不能为空</small> -->
</div>
<div class="col-sm-8">
<p class="text-danger" style="padding-left: 140px;color:#757576" >
仅在碰撞提醒服务时间范围内推送送修线索,其他时间范围内不推送
</div>
<div class="m-t-xs" ng-show="timeShowError">
<p class="text-danger form-text">请输入正确的服务时间</p>
</div>
<div class="m-t-xs" ng-show="collisionFrom.openTime.$invalid && submitted || collisionFrom.closeTime.$invalid && submitted">
<p ng-show="collisionFrom.openTime.$error.required||collisionFrom.closeTime.$error.required"class="text-danger form-text"> 请选择救援服务时间
</p>
</div>
</div>
<div class="form-group" >
<label class="col-sm-2 control-label required" style='width: 140px;'>门店送修短信提醒:</label>
<div class="col-sm-6">
<label class="checkbox-inline"><input icheck name="type" type="radio" ng-required="true" ng-model="cnotifySwitch" ng-value="1">
开</label>
<label class="checkbox-inline"><input icheck ng-required="true" name="type" type="radio" ng-model="cnotifySwitch" ng-value="2">
关 </label>
</div>
<div class="m-t-xs" ng-show="collisionFrom.type.$invalid && submitted">
<small class="text-danger" ng-show="collisionFrom.type.$error.required">请选择门店送修短信提醒开关</small>
</div>
</div>
<div class="form-group" style="height:400px;">
<label class="col-sm-2 control-label" style='width: 140px;'>送修顾问设置:</label>
<div class="col-sm-6">
<p><label class="col-sm-2 control-label" style='width: 80px;padding-left: 0;'>联系人姓名:</label></p>
<input type="text" class="form-control"
name="counselorName"
ng-model="counselorName" maxlength="20">
<p><label class="col-sm-2 control-label required" style='width: 80px;padding-left: 0;'>联系手机号:</label></p>
<input type="text" class="form-control" placeholder="请输入联系电话" ng-required="true" name="collisionPhone"
ng-model="collisionPhone" ng-minlength="3" maxlength="11" ng-pattern="/^1(3|4|5|6|7|8|9)\d{9}$/">
<div class="m-t-xs">
<p class="text-danger form-text" style="color:#757576">
当车主发送碰撞事故时,会往您所填的手机号推送一条碰撞预警的短信,同时也会将您的手机号同步给客户。</p>
<p class="text-danger form-text" style="color:#757576">
如:您的客户XXX在广东省深圳市南山区粤海街道科苑北路疑似发生事故,客户手机号为:13888888888,请及时联系客户。
</p>
</div>
<p>
<label class="col-sm-2 control-label "
style='width: 80px; padding-left: 0;'>联系人头像:</label>
</p>
<div class="control-content col-lg-4" style="width: 400px;">
<div class="fileUploadArea clearfix pre">
<img ng-src="{{counserlorImageUrl}}"
style="height: 100px; width: 100px; border-radius: 50%; border: solid rgb(100, 100, 100) 1px;">
<div style="color: #00a479; display: inline-block;">(请上传格式PNG,JPG图片,推荐大小在10MB内)</div>
<p ng-show="!counserlorImageUrl"
class="text-danger form-text">请上传图片</p>
<div class="files pa img" name="file" ng-click="imgCrop()">
<div class="add" ng-show='!counserlorImageUrl'>+</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group" ng-show="cnotifySwitch == 1">
<label class="col-sm-2 control-label" style='width: 140px;'>备用手机号:</label>
<div class="col-sm-6">
<!-- <input type="text" class="form-control" placeholder="请输入联系电话" ng-required="true" name="collisionPhone"
ng-model="collisionPhone" ng-minlength="3" maxlength="11" ng-pattern="/^1(3|4|5|6|7|8|9)\d{9}$/">
<div class="m-t-xs">
<p class="text-danger form-text" style="color:#757576">
当车主发送碰撞事故时,会往您所填的手机号推送一条碰撞预警的短信,同时也会将您的手机号同步给客户。</p>
<p class="text-danger form-text" style="color:#757576">
如:您的客户XXX在广东省深圳市南山区粤海街道科苑北路疑似发生事故,客户手机号为:13888888888,请及时联系客户。
</p>
</div> -->
<input type="text" class="form-control" placeholder="请输入备用联系电话1" name="sparePhone1"
ng-model="sparePhone1" ng-minlength="3" maxlength="11" ng-pattern="/^1(3|4|5|6|7|8|9)\d{9}$/">
<input type="text" class="form-control" placeholder="请输入备用联系电话2" name="sparePhone2"
ng-model="sparePhone2" ng-minlength="3" maxlength="11" ng-pattern="/^1(3|4|5|6|7|8|9)\d{9}$/">
</div>
<div class="m-t-xs" ng-show="collisionFrom.collisionPhone.$invalid && submitted">
<p ng-show="collisionFrom.collisionPhone.$error.required" class="text-danger form-text">电话号码不能为空</p>
</div>
<div ng-show="collisionFrom.collisionPhone.$error.pattern" class="m-t-xs text-danger form-text">请输入正确的电话号码</div>
</div>
<div class="form-group" ng-show="cnotifySwitch == 1">
<label class="col-sm-2 control-label required" style='width: 140px;'>用户营销短信:</label>
<div class="col-sm-6">
<label class="checkbox-inline"><input icheck required name="customerNotifySwitch" type="radio" ng-model="customerNotifySwitch" value="ON">
开</label>
<label class="checkbox-inline"><input icheck required name="customerNotifySwitch" type="radio" ng-model="customerNotifySwitch" value="OF">
关 </label>
</div>
<div class="m-t-xs" ng-show="collisionFrom.customerNotifySwitch.$invalid && submitted">
<small class="text-danger" ng-show="collisionFrom.customerNotifySwitch.$error.required">请选择用户营销短信</small>
</div>
</div>
<div class="form-group" ng-show="cnotifySwitch == 1 && customerNotifySwitch == 'ON'">
<label class="col-sm-2 control-label" style='width: 140px;'>短信营销文案:</label>
<div class="col-sm-6">
<input type="text" class="form-control"
placeholder="如:送您一张价值199元的钣喷券" name="marketingCopy"
ng-model="collisionConfig.marketingCopy" maxlength="70">
<div class="m-t-xs">
<p class="text-danger" style="color:#757576">当客户发生事故时,客户会收到一条短信如下,以上输入框内文案将填入"[]"中。</p>
<p class="text-danger" style="color:#757576">如:您的爱车疑似发生事故,如需帮助,请联系:xxxxxxxx.【送您一张价值199元的钣喷券。】</p>
</div>
</div>
</div>
<div class="form-group" style="text-align: center;">
<button class="btn btn-success aButton" ng-click="save()"
ng-disabled="saveBtnDisabled">保存</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div ng-show="!tabActive">
<div class="wrapper wrapper-content animated fadeInRight" style="padding-top: 0;">
<div class="ibox relative">
<div class="ibox-title clearfix" style="padding-top: 0">
<div class="row">
<form class="form-inline col-lg-12" role="form"
ng-submit="alarmListForm();" name="test">
<!--<rps period="period" region="region" province="province" shop-name="shopName" simple="true"></rps>-->
<br>
<div class="form-group" style="width:300px">
<select class="form-control a_select mt3"
ng-model="selectCondition">
<option value="" selected>查询条件</option>
<option value="standNo">车架</option>
<option value="name">姓名</option>
<option value="mobile">手机号</option>
<option value="sn">设备号</option>
</select> <input type="text" class="form-control a_ipt mt3"
ng-model="conditionText" />
</div>
<div class="form-group" style="width:260px">
<label class="control-label">碰撞时间:</label> <input
autocomplete="off" date-range-picker option="{range: true}"
name="dateRange" class="form-control date-picker" type="text"
ng-model="collisionTime" />
</div>
<div class="form-group" style="width:260px">
<label class="control-label">回访状态:</label> <select
class="form-control a_select mt3" style="width: 150px;"
ng-model="status">
<option value="">全部</option>
<option value="1">未回访</option>
<option value="2">已回访</option>
</select>
</div>
<div class="form-group" style="width:260px">
<label class="control-label">回访结果:</label> <select
class="form-control a_select mt3" style="width: 150px;"
ng-model="followResult">
<option value="">全部</option>
<option value="22">真实事故</option>
<option value="23">非真实事故</option>
</select>
</div>
<div class="form-group" style="width:260px">
<label class="control-label">事故类型:</label> <select
class="form-control a_select mt3" style="width: 150px;"
ng-model="collisionType">
<option value="">全部</option>
<option value="1">碰撞</option>
<option value="2">拖车</option>
<option value="3">搭电</option>
<option value="4">换胎</option>
<option value="6">SOS救援</option>
<option value="5">其他</option>
</select>
</div>
<div class="form-group fl" style="width:260px">
<label class="control-label">选择月份:</label>
<ui-select class="a_select pd0"
ng-model="$parent.monthSelectsDate" theme="select2"
style="width:150px;"> <ui-select-match
placeholder="全部">{{$select.selected.name}}</ui-select-match> <ui-select-choices
repeat="item in monthSelects | filter: $select.search">
<span ng-bind="item.name"></span> </ui-select-choices> </ui-select>
</div>
<div class="form-group col-lg-12" style="position: relative;top:10px;">
<merchant-select factory-merchant-id="factoryMerchantId" province-merchant-id="provinceMerchantId" city-merchant-id="cityMerchantId" merchant-id="shopMerchantId" ></merchant-select>
</div>
<div class="form-group col-lg-12" style="margin-left: -15px;">
<button class="btn btn-primary btn-search" ng-click="tableSearch()"><img
src="images/searchBtn.png" /><i>查询</i></button>
<button class="btn btn-primary" ng-click="exportExcel()"
functional-contrl fc-menu="collisionRemind"
fc-attrname="collisionRemindExcel"
ng-class="isExporting?'disabled':''">导出excel</button>
<!-- <button class="btn btn-primary" ng-click="setSms()">碰撞短信提醒</button> -->
</div>
</form>
</div>
</div>
<!-- 表格部分 start -->
<div class="ibox-content table-container" style="margin-top: 10px;">
<div process-datatable dt-options="dtOptions"
dt-instance="dtInstance" dt-columns="dtColumns"
condition="condition" />
</div>
<!-- 表格部分 end -->
</div>
</div>
</div>
<script>
$(document).ready(function() {
$('.clockpicker').clockpicker();
})
/* $(document).ready(function () {
$('.clockpicker').clockpicker();
}) */
</script>
<style type="text/css">
.addImg {
width: 100%;
height: 100%;
font-size: 100px;
text-align: center;
color: #999999;
background: #FBFBFB;
border: 1px solid #D9D9D9;
border-radius: 4px;
cursor: pointer;
}
.storeImg .tip {
position: absolute;
bottom: 0;
left: 263px;
width: 100%;
}
.add-el-dialog {
transform: translateX(0);
margin-top: 2vh !important;
}
.dialog-title {
font-size: 16px;
color: #696C6E;
}
.fileUploadArea .img {
width: 100px;
height: 100px;
opacity: 1;
}
.fileUploadArea .img input {
position: relative;
opacity: 0;
z-index: 1;
}
.fileUploadArea .img .add {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 20px;
color: #000;
}
.selfLabel input {
display: inline-block;
width: 80%;
}
.selfLabel .add {
width: 20px;
height: 20px;
cursor: pointer;
border: 1px solid;
text-align: center;
margin-left: 10px;
border-radius: 100%;
font-weight: bold;
box-sizing: border-box;
display: inline-block;
}
.map-btn {
margin: 5px 15px;
float: right;
}
.input-clear {
position: absolute;
top: 25%;
right: 44px;
z-index: 100;
cursor: pointer;
}
.span-btn {
position: absolute;
top: 3px;
right:-62px;
padding: 1px 6px;
border-width: 2px;
border-style: outset;
cursor: pointer;
}
</style>
<style>
.loss-warn .form-label {
width: 76px;
text-align: right;
}
.loss-warn .btn-search {
padding: 3px 22px;
}
.loss-warn .btn-search i {
font-style: normal;
vertical-align: middle;
margin-left: 4px;
}
.warn-info-box {
width: 100%;
height: 40px;
line-height: 40px;
border: 1px solid #BBFFFF;
background: #E0FFFF;
margin-bottom: 15px;
border-radius: 3px
}
.warn-info-box .warn-info-box-msg {
padding-left: 10px;
}
.warn-info-box .warn-info-box-bmsg {
color: #436EEE;
text-decoration: underline;
cursor: pointer;
}
.warn-info-box .warn-info-box-close {
margin-top: 8px;
border-right-width: 10px;
margin-right: 15px;
}
</style>
<style>
.page-heading {
padding-bottom: 0px;
}
</style>