zaitu.vue
18.0 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
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
<template>
<div>
<div class="fa-box">
<div class="lik">
<div class="fa-ji">
<div :class="huos == 1 ? 'fa-textsq' : 'fa-texts'" @click="huo(1)">
途中检查记录
<div class="gexians" v-if="huos == 1"></div>
</div>
<div :class="huos == 2 ? 'fa-textsq' : 'fa-texts'" @click="huo(2)">
事件上报记录
<div class="gexians" v-if="huos == 2"></div>
</div>
</div>
<el-button type="primary" @click="denji">登记检查记录</el-button>
</div>
<div class="biaoge" style="margin-top: 34px" >
<div class="biao-box">
<div class="fhuo">
<div class="fahuos">
<div class="fas-text">派车单编号</div>
<input
type="text"
placeholder="请输入派车单编号"
class="fa-input"
/>
</div>
<div class="fahuos">
<div class="fas-text">车牌编号</div>
<input
type="text"
placeholder="请输入车牌编号"
class="fa-input"
/>
</div>
<div class="fahuos">
<div class="fas-text">检查状态</div>
<input
type="text"
placeholder="请输入检查状态"
class="fa-input"
/>
</div>
<div class="fahuos">
<div class="fas-text">车辆负责人</div>
<input
type="text"
placeholder="请输入车辆负责人"
class="fa-input"
/>
</div>
<div class="chaxun">
<img src="../../assets/chaxun.png" class="cha-imgs" alt="">
</div>
</div>
</div>
<div class="zhonlist" v-if="huos == 1">
<el-table
:data="tableData"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column prop="date" label="产品货运单号" width="270">
</el-table-column>
<el-table-column prop="name" label="车牌照号" width="270">
</el-table-column>
<el-table-column prop="province" label="照片集" width="128">
</el-table-column>
<el-table-column prop="city" label="检查状态" width="128">
</el-table-column>
<el-table-column prop="address" label="检查说明" width="160">
</el-table-column>
<el-table-column prop="zip" label="车辆负责人" width="280">
</el-table-column>
<el-table-column fixed="right" label="操作" width="256">
<template>
<el-button
type="text"
size="small"
@click="xq"
>查看详情</el-button
>
</template>
</el-table-column>
</el-table>
</div>
<div class="zhonlist" v-if="huos == 2">
<el-table
:data="tableData"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column prop="date" label="派车单编号" width="270">
</el-table-column>
<el-table-column prop="name" label="照片集" width="270">
</el-table-column>
<el-table-column prop="province" label="事件类型" width="128">
</el-table-column>
<el-table-column prop="city" label="事件说明" width="128">
</el-table-column>
<el-table-column prop="address" label="报告状态" width="160">
</el-table-column>
<el-table-column prop="zip" label="车辆负责人" width="280">
</el-table-column>
<el-table-column prop="zip" label="报告时间" width="280">
</el-table-column>
<el-table-column fixed="right" label="操作" width="256">
<template>
<el-button
type="text"
size="small"
@click="dialogVisiblebao = true"
>查看详情</el-button
>
<el-button
type="text"
size="small"
@click="dialogVisiblechu = true"
>登记处置情况</el-button
>
</template>
</el-table-column>
</el-table>
</div>
</div>
<div class="tiaoshu">
<div class="left-io"></div>
<div class="gon">共{{total}}条</div>
<div class="kls">
<el-pagination
:page-size="10"
:pager-count="11"
layout="prev, pager, next"
:total="10"
>
</el-pagination>
</div>
</div>
</div>
<!-- 途中检查记录 -->
<el-dialog
title="途中检查记录"
:visible.sync="dialogVisible"
width="60%"
style="margin-top: 10%"
:append-to-body="true"
>
<div class="liebiao" style="margin-top: 24px">
<div class="fahuo-li">
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">派车单编号</div>
<input v-model="bianhao" type="text" placeholder="请输入派车单编号" class="input" />
</div>
<div class="sd">
<div class="fa-ji">照片集</div>
<div class="zhaopiang">
<img src="../../assets/zhao.png" class="zhao-img" alt="" />
</div>
</div>
</div>
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">检查状态</div>
<div class="yichan">
<div class="wu">
<img
src="../../assets/xuankuan.png"
class="xuankuan"
alt=""
/>
无异常
</div>
<div class="wu">
<img
src="../../assets/xuankuan.png"
class="xuankuan"
alt=""
/>
异常
</div>
</div>
</div>
<div class="sd">
<div class="fa-ji">检查时间</div>
<input v-model="j_time" type="text" placeholder="请输入检查时间" class="input" />
</div>
</div>
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">检查说明</div>
<input v-model="j_shuoming" type="text" placeholder="请输入检查说明" class="input" />
</div>
<div class="sd">
<div class="fa-ji">检查地点</div>
<input v-model="j_address" type="text" placeholder="请输入检查地点" class="input" />
</div>
</div>
</div>
<div class="queren">
<div @click="yes">
<el-button type="primary" round>确认</el-button>
</div>
<div @click="no">
<el-button round>取消</el-button>
</div>
</div>
</div>
</el-dialog>
<!-- 事件上报 -->
<el-dialog
title="事件上报"
:visible.sync="dialogVisibleshi"
width="60%"
style="margin-top:9%;"
:append-to-body="true"
>
<div class="liebiao" style="margin-top: 24px">
<div class="fahuo-li">
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">派车单编号</div>
<input type="text" placeholder="请输入派车单编号" class="input" />
</div>
<div class="sd">
<div class="fa-ji">照片集</div>
<div class="zhaopiang">
<img src="../../assets/zhao.png" class="zhao-img" alt="" />
</div>
</div>
</div>
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">事件类型</div>
<input type="text" placeholder="请输入事件类型" class="input" />
</div>
<div class="sd">
<div class="fa-ji">报告状态</div>
<input type="text" placeholder="请输入报告状态" class="input" />
</div>
<div class="sd">
<div class="fa-ji">报告时间</div>
<input type="text" placeholder="请输入报告时间" class="input" />
</div>
</div>
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">事件说明</div>
<input type="text" placeholder="请输入事件说明" class="input" />
</div>
<div class="sd">
<div class="fa-ji">车辆负责人</div>
<input type="text" placeholder="请输入车辆负责人" class="input" />
</div>
<div class="sd">
<div class="fa-ji">报告地点</div>
<input type="text" placeholder="请输入报告地点" class="input" />
</div>
</div>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisibleshi = false">确认</el-button>
<el-button round @click="dialogVisibleshi = false">取消</el-button>
</div>
</div>
</el-dialog>
<!-- 途中检查记录 -->
<el-dialog
title="途中检查记录"
:visible.sync="dialogVisibleg"
width="60%"
style="margin-top: 10%"
:append-to-body="true"
>
<div class="liebiao" style="margin-top: 24px">
<div class="fahuo-li">
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">派车单编号</div>
<div class="conrt">{{l_bianhao}}</div>
</div>
<div class="sd">
<div class="fa-ji">照片集</div>
<div class="zhaopiangs">
<img src="../../assets/zhao.png" class="zhao-img" alt="" />
</div>
</div>
</div>
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">检查状态</div>
<div class="conrt"></div>
</div>
<div class="sd">
<div class="fa-ji">检查时间</div>
<div class="conrt">{{l_time}}</div>
</div>
</div>
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">检查说明</div>
<div class="conrt">
{{l_shuoming}}
</div>
</div>
<div class="sd">
<div class="fa-ji">检查地点</div>
<div class="conrt">{{ll_address}}</div>
</div>
</div>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisibleg = false">确认</el-button>
<el-button round @click="dialogVisibleg = false">取消</el-button>
</div>
</div>
</el-dialog>
<!-- 事件上报记录 -->
<el-dialog
title="事件上报记录"
:visible.sync="dialogVisiblebao"
width="60%"
style="margin-top: 8%"
:append-to-body="true"
>
<div class="liebiao" style="margin-top: 24px">
<div class="fahuo-li">
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">派车单编号</div>
<div class="conrt">JK524567K</div>
</div>
<div class="sd">
<div class="fa-ji">照片集</div>
<div class="zhaopiangs">
<img src="../../assets/zhao.png" class="zhao-img" alt="" />
</div>
</div>
<div class="sd">
<div class="fa-ji">处置状态</div>
<div class="conrt">JK524567K</div>
</div>
<div class="sd">
<div class="fa-ji">确认时间</div>
<div class="conrt">JK524567K</div>
</div>
</div>
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">事件类型</div>
<div class="conrt">无异常</div>
</div>
<div class="sd">
<div class="fa-ji">报告状态</div>
<div class="conrt">2020/12/05</div>
</div>
<div class="sd">
<div class="fa-ji">报告时间</div>
<div class="conrt">2020/12/05</div>
</div>
<div class="sd">
<div class="fa-ji">处置说明</div>
<div class="conrt">2020/12/05</div>
</div>
</div>
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">事件说明</div>
<div class="conrt">
检查说明字段检查说明检查说明字段检查说明字段
</div>
</div>
<div class="sd">
<div class="fa-ji">车辆负责人</div>
<div class="conrt">北京南开区</div>
</div>
<div class="sd">
<div class="fa-ji">报告地点</div>
<div class="conrt">北京南开区</div>
</div>
<div class="sd">
<div class="fa-ji">确认人</div>
<div class="conrt">北京南开区</div>
</div>
</div>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisiblebao = false">确认</el-button>
<el-button round @click="dialogVisiblebao = false">取消</el-button>
</div>
</div>
</el-dialog>
<!-- 登记处置情况 -->
<el-dialog
title="登记处置情况"
:visible.sync="dialogVisiblechu"
width="60%"
style="margin-top: 10%"
:append-to-body="true"
>
<div class="liebiao" style="margin-top: 24px">
<div class="chuzhis">处置说明</div>
<textarea name="" placeholder="请输入处置说明" class="chuzhitext" id="" cols="30" rows="10"></textarea>
<div class="queren">
<el-button type="primary" round @click="dialogVisiblechu = false">确认</el-button>
<el-button round @click="dialogVisiblechu = false">取消</el-button>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
huos: 1,
radio: "1",
tableData: [
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092301",
name: "P2112020092301",
province: "天津电站",
city: "赵吾光",
address: "178 2038 0192",
zip: "重庆市南岸区长生桥镇长生路46号附2号",
}
],
bianhao:"",
j_shuoming:"",
j_time:"",
j_address:"",
index:0,
total:0,
tableDatas: [
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
}
],
dialogVisible: false,
dialogVisibleg: false,
dialogVisibleq: false,
dialogVisibleh: false,
dialogVisibleyu: false,
dialogVisibleshi:false,
dialogVisiblebao:false,
dialogVisiblechu: false,
dialogImageUrl: "",
dialogVisiblex: false,
};
},
mounted() {
console.log("111");
this.totalPage()
},
methods: {
// 分页总条数
totalPage(){
if(this.huos == 1){
this.total = this.tableData.length
}else{
this.total = this.tableDatas.length
}
for(let i=0;i<this.tableData.length;i++){
}
},
// 查看详情
xq(index){
},
//编辑发货申请
handleClick(row) {
console.log(row);
},
//切换
huo(index) {
this.huos = index;
},
//上传图片
handleRemove(file, fileList) {
console.log(file, fileList);
},
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
//登记
denji(){
if(this.huos == 1){
this.dialogVisible = true
this.dialogVisibleshi = false
}else{
this.dialogVisible = false
this.dialogVisibleshi = true
}
},
// 途中检查记录 点击确定
yes(){
this.dialogVisible = false
this.dialogVisibleshi = false
let json={
date: this.bianhao,
name: "P211202009230"+parseInt(++this.index),
province: "北京电站",
city:this.type,
address: this.j_shuoming,
zip: this.j_address,
}
this.tableData.push(json)
},
no(){
this.dialogVisible = false
this.dialogVisibleshi = false
}
},
};
</script>
<style>
.el-dialog__body {
padding: 5px 20px;
padding-bottom: 18px;
}
.el-dialog__title {
font-size: 29px !important;
color: #000000 !important;
font-weight: 500;
}
.el-upload--picture-card {
width: 107px !important;
height: 107px !important;
line-height: 107px !important;
}
.el-upload-list--picture-card .el-upload-list__item {
width: 107px !important;
height: 107px !important;
line-height: 107px !important;
}
.el-carousel__container {
margin-top: 52px;
height: 629px;
}
</style>
<style scoped>
@import "../../css/fa.css";
@import "../../css/zaitu.css";
</style>