index.vue
24.9 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
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
<template>
<div>
<template>
<div class="tab_wrap">
<el-tabs v-model="activeNameTabs">
<el-tab-pane v-if="[1, 12, 13, 14, 2, 3, 4, 0, 10, 11, 8, 9, 7].includes(repotData.status)" class="bg" label="核赔信息" name="second">
<div class="widget">
<div class="title">维修信息</div>
<div class="content pad20">
<div class="element_wrap">
<div class="label">批准金额:</div>
<div class="pannel">
<template v-for="(item, index) in itemsList">
<div :key="index" class="wrapper">
<div class="name">{{ item.serviceItemName }}</div>
<div v-if="item.serviceItemCode == 'SC0003'" style="height: 36px" class="messag flex_sc">
<div class="ms flex_sc">
<span>损失类型:</span>
<el-radio value="1" label="1">{{ item.lossType == 1 ? '全损' : '局部' }}</el-radio>
</div>
</div>
<div v-if="item.serviceItemCode == 'SC0006'" style="height: 36px" class="messag flex_sc">
<div class="ms flex_sc">
<span>服务类型:</span>
<el-checkbox-group v-model="item.lossTypeList">
<el-checkbox disabled label="3">钥匙</el-checkbox>
<el-checkbox disabled label="4">车牌重置</el-checkbox>
</el-checkbox-group>
</div>
</div>
<div style="height: 36px" class="messag flex_scb">
<div class="ms">
<span>预估损失金额/元:</span>
<span class="price">{{ item.applyAmount || 0 }}</span>
</div>
<div class="ms">
<span>定损批准金额:</span>
<span class="price">{{ item.approveAmount || 0 }}</span>
</div>
</div>
</div>
</template>
<div class="total flex_scb">
<span>合计</span>
<span>
<span>预估损失金额:{{ repotData.applyAmount || 0 }}元</span>
<span style="margin: 0 10px">|</span>
<span>定损批准金额:{{ repotData.approveAmount || 0 }}元</span>
</span>
</div>
</div>
</div>
<div v-if="repotData.bankAccountDTO" class="element_wrap ma21">
<div class="label">收款对象:</div>
<div class="pannel">
<div class="wrapper">
<div class="name">
<el-radio value="1" label="1">{{ repotData.bankAccountDTO.objectType ? '其他' : '店面' }}</el-radio>
</div>
<div class="pannel_box">
<template v-for="(item, index) in accountList">
<div :key="index" class="line" style="display: flex">
<div class="lab">
<span style="color: #eb4e4e">*</span>
<span>{{ item.name }}</span>
</div>
<div class="tip" style="width: 160px; word-break: break-all">{{ item.value }}</div>
</div>
</template>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="widget ma16">
<div class="title">上传资料</div>
<div class="cotent pad20">
<el-tabs class="tabs" v-model="activeNameClaims" @tab-click="changeTabss">
<el-tab-pane v-for="(item, index) in images2" :key="index" :label="item.firstClassifyName">
<div v-if="item.firstClassifyName.indexOf('细节') != -1" class="service_line_wrap flex_sc">
<template v-for="(serviceitems, serviceIndex) in item.services">
<div :key="serviceIndex" class="line_box flex_cc" @click="selectServices(serviceIndex)">
<div class="inner flex_cc" :class="[{ active: currentServicesIndex == serviceIndex }]">{{ serviceitems }}</div>
</div>
</template>
</div>
<div v-if="item.firstClassifyName.indexOf('细节') != -1" class="image_container">
<template v-for="(img, i) in images2[currentIndxClaims].secondClassifyList">
<div v-if="img.serviceItemName == item.services[currentServicesIndex]" :key="i" class="img_box">
<div class="title_tip flex_sc">
<i v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i>
<div class="">{{ img.secondClassifyName }}</div>
</div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image>
<!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> -->
<div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
<div v-if="!img.attachmentList.length" class="egTag flex_cc">示例</div>
</div>
</div>
</template>
</div>
<div v-else-if="item.firstClassifyName.indexOf('其他') == -1" class="image_container">
<div v-for="(img, i) in images2[currentIndxClaims].secondClassifyList" :key="i" class="img_box">
<template v-if="img.attachmentList.length">
<!-- <div v-if="img.serviceItemName" class="service_title">{{ img.serviceItemName }}</div> -->
<div class="title_tip">
<i v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i>
<span>{{ img.secondClassifyName }}</span>
</div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image>
<!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> -->
<div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
<div v-if="!img.attachmentList.length" class="egTag flex_cc">示例</div>
</div>
</template>
</div>
</div>
<div v-else class="image_container">
<div v-for="(img, i) in images2[currentIndxClaims].allImages" :key="i" class="img_box">
<div class="title_tip">
<i v-if="img.auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.auditStatus == 0" class="el-icon-error error"></i>
<span>图片{{ i + 1 }}</span>
</div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentFile]" v-if="img.attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentFile" :fit="fit"></el-image>
<el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image>
<!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> -->
<div v-if="img.auditStatus == 0" class="errMsg flex_cc">{{ img.reasonForFailure }}</div>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
<div class="widget ma16">
<div class="title">寄回原件说明</div>
<div class="cotent pad20">
<div v-if="repotData.claimsAttachmentConfigs2.length" class="image_container">
<div v-for="(img, i) in repotData.claimsAttachmentConfigs2[0].secondClassifyList" :key="i" class="img_box">
<div class="title_tip">
<span>{{ img.secondClassifyName }}</span>
</div>
<div v-if="img.exampleUrl" class="img_pannel flex_cc">
<el-image :preview-src-list="[img.exampleUrl]" style="width: 216px; height: 135px; border-radius: 4px" :src="img.exampleUrl" :fit="fit"></el-image>
<div class="egTag flex_cc">示例</div>
</div>
</div>
</div>
</div>
</div>
<!-- 案件补充说明 -->
<div>
<explanation :isCheck="true" :supplementList="repotData.supplementList2"></explanation>
</div>
</el-tab-pane>
<el-tab-pane class="bg" label="定损信息" name="first">
<div class="widget">
<div class="title">报案信息(客户提交)</div>
<div class="content pad20">
<div class="code text_14_4_333">核销码:{{ repotData.writeOffCode }}</div>
<div class="pannel flex_wrap">
<div v-for="(item, index) in watchData" :key="index" class="line flex_sc">
<div class="label text_14_4_666">
<span style="color: #eb4e4e">*</span>
<span>{{ item.name }}</span>
</div>
<div class="value text_14_4_333">{{ item.value }}</div>
</div>
</div>
</div>
</div>
<div class="widget ma16">
<div class="title">报案信息(店面补充)</div>
<div class="content pad20">
<div class="pannel flex_wrap">
<div class="line flex_sc">
<div class="label text_14_4_666">
<span style="color: #eb4e4e">*</span>
<span>经办人:</span>
</div>
<div class="value text_14_4_333">{{ repotData.handlerName }}</div>
</div>
<div class="line flex_sc">
<div class="label text_14_4_666">
<span style="color: #eb4e4e">*</span>
<span>经办人联系号码:</span>
</div>
<div class="value text_14_4_333">{{ repotData.handlerPhone }}</div>
</div>
<div class="line flex_sc">
<div class="label text_14_4_666">
<span style="color: #eb4e4e">*</span>
<span>出险经过描述:</span>
</div>
<div class="value text_14_4_333">{{ repotData.reimbursementProcess }}</div>
</div>
</div>
</div>
</div>
<div class="widget ma16">
<div class="title">上传资料</div>
<div class="cotent pad20">
<el-tabs class="tabs" v-model="activeName" @tab-click="changeTabs">
<el-tab-pane v-for="(item, index) in images" :key="index" :label="item.firstClassifyName">
<div v-if="item.firstClassifyName.indexOf('细节') != -1" class="service_line_wrap flex_sc">
<template v-for="(serviceitems, serviceIndex) in item.services">
<div :key="serviceIndex" class="line_box flex_cc" @click="selectServices(serviceIndex)">
<div class="inner flex_cc" :class="[{ active: currentServicesIndex == serviceIndex }]">{{ serviceitems }}</div>
</div>
</template>
</div>
<div v-if="item.firstClassifyName.indexOf('细节') != -1" class="image_container">
<template v-for="(img, i) in images[currentIndx].secondClassifyList">
<div v-if="img.serviceItemName == '钥匙及车牌重置服务' && img.serviceItemName == item.services[currentServicesIndex] ? lossTypeList.includes(img.lossType) : img.serviceItemName == item.services[currentServicesIndex]" :key="i" class="img_box">
<div class="title_tip flex_sc">
<i v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i>
<div class="">{{ img.secondClassifyName }}</div>
</div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image>
<!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> -->
<!-- <div v-if="img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> -->
<div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">
<el-popover placement="top-start" width="200" trigger="hover" :content="img.attachmentList[0].reasonForFailure">
<div class="intext" slot="reference">{{ img.attachmentList[0].reasonForFailure }}</div>
</el-popover>
</div>
<div v-if="!img.attachmentList.length" class="egTag flex_cc">示例</div>
</div>
</div>
</template>
</div>
<div v-else-if="item.firstClassifyName.indexOf('其他') == -1" class="image_container">
<div v-for="(img, i) in images[currentIndx].secondClassifyList" :key="i" class="img_box">
<template v-if="img.attachmentList.length">
<!-- <div v-if="img.serviceItemName" class="service_title">{{ img.serviceItemName }}</div> -->
<div class="title_tip">
<i v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i>
<span>{{ img.secondClassifyName }}</span>
</div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image>
<!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> -->
<!-- <div v-if="img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> -->
<div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">
<el-popover placement="top-start" width="200" trigger="hover" :content="img.attachmentList[0].reasonForFailure">
<div class="intext" slot="reference">{{ img.attachmentList[0].reasonForFailure }}</div>
</el-popover>
</div>
<div v-if="!img.attachmentList.length" class="egTag flex_cc">示例</div>
</div>
</template>
</div>
</div>
<div v-else class="image_container">
<div v-for="(img, i) in images[currentIndx].allImages" :key="i" class="img_box">
<div class="title_tip">
<i v-if="img.auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.auditStatus == 0" class="el-icon-error error"></i>
<span>图片{{ i + 1 }}</span>
</div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentFile]" v-if="img.attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentFile" :fit="fit"></el-image>
<el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image>
<!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> -->
<!-- <div v-if="img.auditStatus == 0" class="errMsg flex_cc">{{ img.reasonForFailure }}</div> -->
<div v-if="img.auditStatus == 0" class="errMsg flex_cc">
<el-popover placement="top-start" width="200" trigger="hover" :content="img.reasonForFailure">
<div class="intext" slot="reference">{{ img.reasonForFailure }}</div>
</el-popover>
</div>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
<!-- 案件补充说明 -->
<div>
<explanation :isCheck="true" :supplementList="repotData.supplementList1"></explanation>
</div>
<!-- 其他信息 -->
<div>
<other-info :otherInfoData="otherInfoData"></other-info>
</div>
</el-tab-pane>
</el-tabs>
</div>
</template>
</div>
</template>
<script type="text/ecmascript-6">
import explanation from '../explanation.vue'
import otherInfo from '../otherInfo.vue'
export default {
name: 'watchPage',
components: {
explanation,
otherInfo
},
data() {
return {
currentIndx: 0,
currentIndxClaims: 0,
activeName: '0',
activeNameClaims: '0',
currentServicesIndex: 0,
activeNameTabs: 'first'
}
},
props: {
repotData: Object,
watchData: Array,
accountList: Array,
itemsList: Array,
images: Array,
images2: Array,
otherInfoData: Object,
lossTypeList:Array
},
mounted() {},
methods: {
selectServices(index) {
this.currentServicesIndex = index
},
changeTabs(e) {
this.activeName = e.index.toString()
this.currentIndx = e.index
},
changeTabss(e) {
this.activeNameClaims = e.index.toString()
this.currentIndxClaims = e.index
}
}
}
</script>
<style lang="scss" scoped>
.ma16 {
margin-top: 16px;
}
.ma21 {
margin-top: 21px;
}
.image_container {
display: flex;
flex-wrap: wrap;
.img_box {
margin-bottom: 16px;
margin-right: 16px;
.service_title {
margin: 8px 0;
}
.title_tip {
font-size: 14px;
font-weight: 400;
color: #333333;
}
.success {
color: #2cca74;
margin-right: 5px;
}
.error {
color: #eb4e4e;
margin-right: 5px;
}
.img_pannel {
width: 216px;
height: 135px;
margin: 8px 0;
border: 1px solid #e5e5e5;
background: #f5f5f5;
position: relative;
border-radius: 4px;
.errMsg {
background: rgba(255, 82, 87, 0.5);
position: absolute;
left: 0;
right: 0;
bottom: 0;
min-height: 44px;
font-size: 12px;
font-weight: 400;
color: #ffffff;
z-index: 10;
.intext {
box-sizing: border-box;
padding: 0 2px;
font-size: 12px;
font-weight: 400;
color: #ffffff;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
text-overflow: ellipsis;
}
}
.egTag {
position: absolute;
right: 8px;
top: 8px;
width: 36px;
height: 18px;
color: #666;
font-size: 12px;
border-radius: 2px;
background: #e5e5e5;
}
}
.uplpad_pannel {
background: #f5f5f5;
.file_1 {
position: absolute;
opacity: 0;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: 10;
}
}
.errBorder {
border: 1px solid #ff5257;
}
.footer_btn {
display: flex;
align-items: center;
justify-content: center;
.up_wrap {
position: relative;
font-size: 14px;
font-weight: 400;
color: #5850ff;
margin-left: 20px;
cursor: pointer;
.file {
opacity: 0;
position: absolute;
left: 0;
top: 0;
width: 28px;
height: 23px;
z-index: 10;
}
}
}
.marlr20 {
margin-left: 20px;
}
}
}
.service_line_wrap {
border-radius: 4px;
margin-bottom: 16px;
.line_box {
height: 36px;
background: #f8f8f8;
box-sizing: border-box;
padding: 2px;
}
.inner {
font-size: 14px;
font-weight: 500;
color: #666666;
padding: 0 16px;
cursor: pointer;
}
.active {
height: 32px;
background: #ffffff;
border-radius: 3px;
color: #5850ff;
}
}
/deep/ .el-tabs {
.el-tabs__nav-wrap::after {
height: 1px;
background-color: #e5e5e5;
}
.el-tabs__item {
height: 45px;
font-size: 16px;
font-weight: 500;
}
.pass-btn {
width: 216px;
display: flex;
padding: 0 20px;
box-sizing: border-box;
justify-content: space-around;
.el-button {
margin: 0;
}
}
}
.text_wrap {
white-space: pre-wrap !important;
}
</style>