pai.vue
24.5 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
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
<template>
<div>
<div class="fa-box">
<div class="lik">
<div class="fa-ji">
<div class="ge"></div>
<div class="fa-text">派车管理</div>
</div>
</div>
<div class="biaoge">
<div class="biao-box">
<div class="fhuo">
<div class="fahuos">
<div class="fas-text">派车单编码</div>
<input
type="text"
placeholder="请输入派车单编码"
class="fa-inputas"
v-model="dispatchCarId"
/>
</div>
<div class="fahuos">
<div class="fas-text">电站</div>
<input
type="text"
placeholder="请输入电站"
class="fa-inputas"
v-model="telegramListName"
/>
</div>
<div class="fahuos">
<div class="fas-text">计划发车时间</div>
<input
type="text"
placeholder="请输入计划发车时间"
class="fa-inputas"
v-model="planTime"
/>
</div>
<div class="fahuos">
<div class="fas-text">承运单位</div>
<input
type="text"
placeholder="请输入承运单位 "
class="fa-inputas"
v-model="carrier"
/>
</div>
<div class="fahuos">
<div class="fas-text">车辆牌号</div>
<input
type="text"
placeholder="请输入车辆牌号"
class="fa-inputas"
v-model="status"
/>
</div>
<div class="fahuos">
<div class="fas-text">派车状态</div>
<input
type="text"
placeholder="请输入派车转态"
class="fa-inputas"
v-model="status"
/>
</div>
<div class="chaxun">
<img
src="../../assets/chaxun.png"
class="cha-imgs"
@click="chaxuns"
alt=""
/>
</div>
</div>
</div>
<div class="zhonlist">
<el-table
:data="tableData"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column
fixed
prop="dispatchCarId"
label="派车单编码"
width="184"
>
</el-table-column>
<el-table-column prop="telegramListName" label="电站" width="184">
</el-table-column>
<el-table-column
prop="settlementLocation"
label="到货地点"
width="184"
>
</el-table-column>
<el-table-column
prop="clearingKilometers"
label="预计里程"
width="120"
>
</el-table-column>
<el-table-column prop="shipTime" label="计划发车时间" width="160">
</el-table-column>
<el-table-column prop="carType" label="超车/超限" width="160">
</el-table-column>
<el-table-column prop="transportModel" label="运输车型" width="160">
</el-table-column>
<el-table-column prop="shipBy" label="发货计划人" width="160">
</el-table-column>
<el-table-column prop="carriageName" label="承运单位" width="160">
</el-table-column>
<el-table-column prop="alertOthers" label="通知人" width="160">
</el-table-column>
<el-table-column prop="alertTime" label="通知时间" width="160">
</el-table-column>
<el-table-column prop="carGrade" label="车辆牌号" width="160">
</el-table-column>
<el-table-column
prop="carPersonName"
label="车辆负责人"
width="160"
>
</el-table-column>
<el-table-column prop="createBy" label="派车人" width="160">
</el-table-column>
<el-table-column prop="createTime" label="派车时间" width="160">
</el-table-column>
<el-table-column prop="status" label="派车状态" width="160">
<template slot-scope="scope">
<span type="text" size="small" v-if="scope.row.status == 0"
>待派车</span
>
<span type="text" size="small" v-if="scope.row.status == 1"
>待确认</span
>
<span
type="text"
size="small"
v-if="scope.row.status == 2"
@click="tonzhi"
>已确认</span
>
<span
type="text"
size="small"
v-if="scope.row.status == 3"
@click="tonzhi"
>已退回</span
>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="256">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click="paiche(scope.row.dispatchCarId)"
>查看详情</el-button
>
<el-button
type="text"
size="small"
v-if="scope.row.status == 0"
@click="fason(scope.row.dispatchCarId)"
>发送通知</el-button
>
<el-button
type="text"
size="small"
v-if="scope.row.status == 1 && scope.row.status == 3"
@click="tonzhi"
>通知处理</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="20"
:pager-count="11"
layout="prev, pager, next"
:total="total"
>
</el-pagination>
</div>
</div>
</div>
<!-- 发送通知 -->
<div class="paiche">
<el-dialog
title="派车通知"
:visible.sync="dialogVisible"
width="60%"
:append-to-body="true"
style="margin-top: 10%"
>
<div class="liebiao">
<div class="fahuo-li">
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">派车单编码</div>
<div class="conrt">{{cont.dispatchCarId}}</div>
</div>
<div class="sd">
<div class="fa-ji">发货人计划人</div>
<div class="conrt">{{cont.shipBy}}</div>
</div>
<div class="sd">
<div class="fa-ji">预计里程</div>
<div class="conrt">{{cont.clearingKilometers}}</div>
</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>
<div class="conrt">{{cont.telegramListName}}</div>
</div>
<div class="sd">
<div class="fa-ji">车辆种类</div>
<div class="conrt">{{cont.transportModel}}</div>
</div>
<div class="sd">
<div class="fa-ji">计划发车时间</div>
<div class="conrt">{{cont.shipTime}}</div>
</div>
</div>
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">到货地点</div>
<div class="conrt">{{cont.settlementLocation}}</div>
</div>
<div class="sd">
<div class="fa-ji">车型要求</div>
<div class="conrt">{{cont.carType}}</div>
</div>
<div class="sd">
<div class="fa-ji">计划行车路线</div>
<div class="img-chuan">
<div class="lisg">
<img src="../../assets/tu.png" class="tu" alt="" />
<img
src="../../assets/fanda.png"
class="fan"
alt=""
@click="yujh"
/>
</div>
<div class="lisg">
<img src="../../assets/tu.png" class="tu" alt="" />
<img src="../../assets/fanda.png" class="fan" alt="" />
</div>
</div>
</div>
</div>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisible = false">确认</el-button>
<el-button round @click="dialogVisible = false">取消</el-button>
</div>
</div>
</el-dialog>
</div>
<!-- 通知处理 -->
<el-dialog
title="通知处理"
:visible.sync="dialogVisibleg"
width="80%"
:append-to-body="true"
style="margin-top: 4%"
>
<div class="liebiao" style="margin-top: 20px">
<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="conrt">李丽丽</div>
</div>
<div class="sd">
<div class="fa-ji">预计里程</div>
<div class="conrt">10000KM</div>
</div>
<div class="sd">
<div class="fa-ji">车辆牌号</div>
<div class="inputt">
<input type="text" placeholder="京A456789" class="sss" />
<img src="../../assets/xiala.png" class="xial" 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">拖板</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="inputt">
<input
type="text"
placeholder="李丽丽(15687456197)"
class="sss"
/>
<img src="../../assets/xiala.png" class="xial" 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">车辆要求车型要求详情</div>
</div>
<div class="sd">
<div class="fa-ji">计划行车路线</div>
<div class="img-chuan">
<div class="lisg">
<img src="../../assets/tu.png" class="tu" alt="" />
<img src="../../assets/fanda.png" class="fan" alt="" />
</div>
</div>
</div>
</div>
</div>
<div class="queren">
<div class="querens">接受</div>
<div class="quxiaos">取消</div>
</div>
</div>
</el-dialog>
<!-- 确认发货 -->
<el-dialog
title="确认发货计划"
:visible.sync="dialogVisibleq"
width="80%"
:append-to-body="true"
>
<div class="liebiao">
<div class="jichus">
<div class="gesk"></div>
<div class="jichu">基础信息</div>
</div>
<div class="fahuo-li">
<div class="a">
<div class="sd">
<div class="fa-ji">发货计划</div>
<div class="conrt">发货计划1.5</div>
</div>
<div class="sd">
<div class="fa-ji">到货联系电话</div>
<div class="conrt">18303210468</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="img-chuan">
<div class="lisg">
<img src="../../assets/tu.png" class="tu" alt="" />
<img src="../../assets/fanda.png" class="fan" alt="" />
</div>
<div class="lisg">
<img src="../../assets/tu.png" class="tu" alt="" />
<img src="../../assets/fanda.png" class="fan" alt="" />
</div>
</div>
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">合同编码</div>
<div class="conrt">130403788465487984</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 class="a">
<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 class="a">
<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="ziliao-lists">
<div class="ziliaotu">
<div class="ziliao-left">
<img src="../../assets/21.png" class="ziliao-img" alt="" />
<span class="text-sp">food.jpg</span>
</div>
</div>
</div>
</div>
<div class="sg">
<div class="tianjia">添加产品</div>
</div>
</div>
</div>
<div class="lista">
<el-table
:data="tablelist"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column fixed prop="date" label="产品型号" width="292">
</el-table-column>
<el-table-column prop="name" label="产品编号" width="292">
</el-table-column>
<el-table-column prop="province" label="产品数量" width="292">
</el-table-column>
<el-table-column prop="city" label="要求到货时间" width="292">
</el-table-column>
<el-table-column fixed="right" label="操作" width="292">
<template slot-scope="scope">
<el-button
@click="handleClick(scope.row)"
type="text"
size="small"
>确认完成</el-button
>
</template>
</el-table-column>
</el-table>
</div>
<div class="queren">
<div class="querens">确认</div>
<div class="quxiaos">取消</div>
</div>
</div>
</el-dialog>
<!-- 查看派车通知 -->
<el-dialog
title="查看派车通知"
:visible.sync="dialogVisibleh"
:append-to-body="true"
style="padding-bottom: 0;margin-top: 160px;"
>
<div class="liebiao" style="margin-top: 24px; padding-bottom: 0">
<div class="fahuo-li">
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">派车单编码</div>
<div class="conrt">{{ de.dispatchCarId }}</div>
</div>
<div class="sd">
<div class="fa-ji">发货人计划人</div>
<div class="conrt">{{ de.shipBy }}</div>
</div>
<div class="sd">
<div class="fa-ji">预计里程</div>
<div class="conrt">{{ de.clearingKilometers }}</div>
</div>
<div class="sd">
<div class="fa-ji">派车状态</div>
<div class="conrt" v-if="de.status == 0">待派车</div>
<div class="conrt" v-if="de.status == 1">待确认</div>
<div class="conrt" v-if="de.status == 2">已确认</div>
<div class="conrt" v-if="de.status == 3">已退回</div>
</div>
<div class="sd">
<div class="fa-ji">通知时间</div>
<div class="conrt">{{ de.alertTime }}</div>
</div>
<div class="sd">
<div class="fa-ji">派车人</div>
<div class="conrt">{{ de.createBy }}</div>
</div>
</div>
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">电站名称</div>
<div class="conrt">{{ de.telegramListName }}</div>
</div>
<div class="sd">
<div class="fa-ji">车型要求</div>
<div class="conrt">{{ de.transportModel }}</div>
</div>
<div class="sd">
<div class="fa-ji">承运单位</div>
<div class="conrt">{{ de.carriageName }}</div>
</div>
<div class="sd">
<div class="fa-ji">通知人</div>
<div class="conrt">{{ de.alertOthers }}</div>
</div>
<div class="sd">
<div class="fa-ji">车辆牌号</div>
<div class="conrt">{{ de.carGrade }}</div>
</div>
<div class="sd">
<div class="fa-ji">派车时间</div>
<div class="conrt">{{ de.createTime }}</div>
</div>
</div>
<div class="a" style="width: 33.3%">
<div class="sd">
<div class="fa-ji">到货地点</div>
<div class="conrt">{{ de.settlementLocation }}</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="img-chuan">
<div class="lisg">
<img src="../../assets/tu.png" class="tu" alt="" />
<img src="../../assets/fanda.png" class="fan" alt="" />
</div>
</div>
</div>
<div class="sd">
<div class="fa-ji">车辆负责人</div>
<div class="conrt">{{ de.carPersonName }}</div>
</div>
</div>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisibleh = false">确认</el-button>
</div>
</div>
</el-dialog>
<!-- 预览图片 -->
<el-dialog
:visible.sync="dialogVisibleyu"
width="60%"
style="margin-top: 8%"
:append-to-body="true"
>
<div class="fanhui" @click="fanhuis">
<img src="../../assets/zuojian.png" class="zuojian" alt="" />
<div class="sski">返回上一层</div>
</div>
<el-carousel indicator-position="outside">
<el-carousel-item v-for="item in 4" :key="item">
<img src="../../assets/tu.png" class="swipeb" alt="" />
</el-carousel-item>
</el-carousel>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
tableData: [],
dialogVisible: false,
dialogVisibleg: false,
dialogVisibleq: false,
dialogVisibleh: false,
dialogVisibleyu: false,
dialogImageUrl: "",
dialogVisiblex: false,
carrier: "", //承运单位
dispatchCarId: "", //派车编码
status: "", //状态
vehicleLicensePlate: "", // 车辆牌号
telegramListName: "", //电站
planTime: "", // 计划发车时间
pageNum: 1,
pageSize: 10,
total: "", //总条数
de: [], //查看详情
cont:[] //内容
};
},
mounted() {
this.pai();
},
methods: {
//派车管理
paiche(index) {
this.dialogVisibleh = true;
let that = this;
var url = "/api/dispatch-car/dispatch-car/" + index;
let params = {};
that.$axios
.get(url)
.then(function (res) {
console.log(res);
that.de = res.data;
})
.catch(function (err) {
console.log(err);
});
},
//查询
chaxuns() {
this.pai();
},
//查看派车管理列表
pai() {
let that = this;
var url = "/api/dispatch-car/list";
let params = {
carrier: that.carrier,
dispatchCarId: that.dispatchCarId,
status: that.status,
vehicleLicensePlate: that.vehicleLicensePlate,
telegramListName: that.telegramListName,
planTime: that.planTime,
pageNum: that.pageNum,
pageSize: that.pageSize,
};
that.$axios
.post(url, params)
.then(function (res) {
console.log(res);
that.tableData = res.rows;
that.total = res.total;
})
.catch(function (err) {
console.log(err);
});
},
//编辑发货申请
handleClick(row) {
console.log(row);
},
//上传图片
handleRemove(file, fileList) {
console.log(file, fileList);
},
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
//发送通知
fason(id) {
this.dialogVisible = true;
this.peiche(id)
},
//根据id获取配车详情
peiche(id) {
let that = this;
var url = "/api/dispatch-car/" + id;
let params = {};
that.$axios
.get(url)
.then(function (res) {
console.log(res);
that.cont = res.data
})
.catch(function (err) {
console.log(err);
});
},
//预览返回
//返回上一层
fanhuis() {
this.dialogVisible = true;
this.dialogVisibleyu = false;
},
//预览图片
yujh() {
this.dialogVisible = false;
this.dialogVisibleyu = true;
},
//通知处理
tonzhi() {
this.dialogVisibleg = true;
},
},
};
</script>
<style>
.el-dialog__body {
padding: 5px 20px;
}
.el-dialog__title {
font-size: 22px !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: 450px;
}
</style>
<style scoped>
@import "../../css/fa.css";
@import "../../css/pai.css";
</style>