PreManifest.vue
32.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
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
<template>
<div class="app-container">
<div class="filter-container">
<el-input v-model="listQuery.title" style="width: 200px;" class="filter-item" placeholder="运单号"/>
<el-input v-model="listQuery.title" style="width: 200px;" class="filter-item" placeholder="航班号"/>
<el-input v-model="listQuery.title" style="width: 200px;" class="filter-item" placeholder="航班日期"/>
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">{{ $t('table.search') }}</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="handleCreate">{{ $t('table.add') }}</el-button>
<el-button v-waves :loading="downloadLoading" class="filter-item" type="primary" icon="el-icon-download" @click="handleDownload">{{ $t('table.export') }}</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-message" @click="handleCreate">批量发送</el-button>
</div>
<tree-table :data="tableData" :eval-func="func" :eval-args="args" :expand-all="expandAll" stripe style="font-size: 13px" border @selection-change="handleSelectionChange">
<el-table-column prop="waybillNo" label="主单号" width="110px" align="center" sortable>
<template slot-scope="scope">
<span>{{ scope.row.waybillNo }}</span>
</template>
</el-table-column>
<el-table-column label="分单号" width="120px" align="center" sortable>
<template slot-scope="scope">
<span>{{ scope.row.houseWaybillNo }}</span>
</template>
</el-table-column>
<el-table-column label="航班号" width="90px" align="center" sortable>
<template slot-scope="scope">
<span>{{ scope.row.flight }}</span>
</template>
</el-table-column>
<el-table-column label="航班日期" width="100px" align="center" sortable>
<template slot-scope="scope">
<span>{{ scope.row.flightDate }}</span>
</template>
</el-table-column>
<el-table-column label="起始站" width="60px" align="center">
<template slot-scope="scope">
<span>{{ scope.row.oriStation }}</span>
</template>
</el-table-column>
<el-table-column label="目的站" width="60px" align="center">
<template slot-scope="scope">
<span>{{ scope.row.desStation }}</span>
</template>
</el-table-column>
<el-table-column label="预配件数" width="80px" align="center">
<template slot-scope="scope">
<span>{{ scope.row.maniPiece }}</span>
</template>
</el-table-column>
<el-table-column label="预配重量" width="80px" align="center">
<template slot-scope="scope">
<span>{{ scope.row.maniWeight }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('table.status')" class-name="status-col" width="90" sortable>
<template slot-scope="scope">
<el-tag :type="scope.row.status | statusFilter">{{ scope.row.status }}</el-tag>
</template>
</el-table-column>
<el-table-column label="回执内容" width="230px" align="center">
<template slot-scope="scope">
<span>{{ scope.row.customText }}</span>
<div>
<el-progress :percentage="scope.row.customComplate" :status="scope.row.status | statusFilter" />
</div>
</template>
</el-table-column>
<el-table-column :label="$t('table.actions')" align="center" class-name="small-padding fixed-width" >
<template slot-scope="scope">
<el-button type="primary" size="small" @click="handleUpdate(scope.row)">快速编辑</el-button>
<el-button type="primary" size="mini" @click="handleUpdate(scope.row)">{{ $t('table.edit') }}</el-button>
<el-button v-if="scope.row.status!='41301'" size="mini" type="success" @click="handleModifyStatus(scope.row,'41301')">{{ $t('table.publish') }}</el-button>
<el-button v-if="scope.row.status!='10002'" size="small" @click="handleModifyStatus(scope.row,'10002')">客服反馈</el-button>
<el-button v-if="scope.row.status=='10002'" size="mini" type="danger" @click="handleModifyStatus(scope.row,'deleted')">{{ $t('table.delete') }}</el-button>
<el-switch
v-model="resend"
active-color="#13ce66"
inactive-color="#ff4949" />
</template>
</el-table-column>
</tree-table>
<pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" fullscreen>
<el-form ref="" :inline="true" :rules="rules" :model="temp" label-width="100px" style="font-size: 13px">
<div>
<el-tag type="info" effect="plain">
航班信息
</el-tag>
</div>
<el-row type="flex" class="row-bg bg-purple">
<el-col :span="24">
<div class="grid-content">
<el-form-item label="航班号" prop="flight">
<el-input v-model="temp.flight"/>
</el-form-item>
<el-form-item label="航班日期" prop="flightDate">
<el-date-picker :picker-options="pickerOptions" v-model="temp.flightDate" align="right" type="date" placeholder="请输入航班日期" />
</el-form-item>
</div>
</el-col>
</el-row>
<div>
<el-tag type="info" effect="plain">
运单信息
</el-tag>
</div>
<el-form-item label="主单号" prop="waybillNo">
<el-input v-model="temp.waybillNo"/>
</el-form-item>
<el-form-item label="分单号" prop="houseWaybillNo">
<el-input v-model="temp.houseWaybillNo"/>
</el-form-item>
<el-form-item label="关区代码" prop="custom">
<el-select v-model="temp.custom" class="filter-item" placeholder="请选择关区代码">
<el-option v-for="item in manifestCustoms" :key="item" :label="item" :value="item"/>
</el-select>
</el-form-item>
<el-form-item label="起始站" prop="oriStation">
<el-input v-model="temp.oriStation"/>
</el-form-item>
<el-form-item label="目的站" prop="desStation">
<el-input v-model="temp.desStation"/>
</el-form-item>
<el-form-item label="预配件数" prop="maniPiece">
<el-input v-model.number="temp.maniPiece"/>
</el-form-item>
<el-form-item label="预配重量" prop="maniWeight">
<el-input v-model.number="temp.maniWeight"/>
</el-form-item>
<el-form-item label="付费方式" prop="payMode">
<el-select v-model="temp.payMode" class="filter-item" placeholder="付费方式">
<el-option v-for="item in manifestCustoms" :key="item" :label="item" :value="item"/>
</el-select>
</el-form-item>
<el-form-item label="海关状态" prop="goodsType">
<el-select v-model="temp.goodsType" class="filter-item" placeholder="请录入货物类型">
<el-option v-for="item in manifestCustoms" :key="item" :label="item" :value="item"/>
</el-select>
</el-form-item>
<div>
<el-tag type="info" effect="plain">
发货人信息
</el-tag>
</div>
<el-row type="flex" class="row-bg bg-purple">
<el-col :span="24">
<div class="grid-content">
<el-form-item label="公司" prop="shpCompany">
<el-input v-model="temp.shpCompany"/>
</el-form-item>
<el-form-item label="地址" prop="shpAddress">
<el-input v-model="temp.shpAddress"/>
</el-form-item>
<el-form-item label="城市" prop="shpCity">
<el-input v-model="temp.shpAddress"/>
</el-form-item>
<el-form-item label="邮编" prop="shpCity">
<el-input v-model="temp.shpAddress"/>
</el-form-item>
<el-form-item label="电话" prop="shpCity">
<el-input v-model="temp.shpAddress"/>
</el-form-item>
<el-form-item label="传真" prop="shpCity">
<el-input v-model="temp.shpAddress"/>
</el-form-item>
</div>
<div>
<el-form-item label="国家" prop="shpCountry">
<el-select
:remote-method="remoteMethod"
:loading="loading"
v-model="temp.country"
filterable
remote
placeholder="请选择" >
<el-option
v-for="item in countryOption"
:key="item.value"
:label="item.label"
:value="item.value">
<span style="float: left">{{ item.label }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.value }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="企业代码类型" prop="shpCompnyType">
<el-select
v-model="temp.shpCompnyType"
filterable
placeholder="请选择企业代码类型" >
<el-option
v-for="item in shpCompnyTypeOption"
:key="item.value"
:label="item.label"
:value="item.value" />
</el-select>
</el-form-item>
<el-form-item prop="shpCity">
<el-input v-model="temp.shpAddress" placeholder="企业代码"/>
</el-form-item>
</div>
</el-col>
</el-row>
<div>
<el-tag type="info" effect="plain">
收货人信息
</el-tag>
</div>
<el-row type="flex" class="row-bg bg-purple">
<el-col :span="24">
<div class="grid-content">
<el-form-item label="公司" prop="shpCompany">
<el-input v-model="temp.shpCompany"/>
</el-form-item>
<el-form-item label="地址" prop="shpAddress">
<el-input v-model="temp.shpAddress"/>
</el-form-item>
<el-form-item label="城市" prop="shpCity">
<el-input v-model="temp.shpAddress"/>
</el-form-item>
<el-form-item label="邮编" prop="shpCity">
<el-input v-model="temp.shpAddress"/>
</el-form-item>
<el-form-item label="电话" prop="shpCity">
<el-input v-model="temp.shpAddress"/>
</el-form-item>
<el-form-item label="传真" prop="shpCity">
<el-input v-model="temp.shpAddress"/>
</el-form-item>
</div>
<div>
<el-form-item label="国家" prop="shpCountry">
<el-select
:remote-method="remoteMethod"
:loading="loading"
v-model="temp.country"
filterable
remote
placeholder="请选择" >
<el-option
v-for="item in countryOption"
:key="item.value"
:label="item.label"
:value="item.value">
<span style="float: left">{{ item.label }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.value }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="企业代码类型" prop="shpCompnyType">
<el-select
v-model="temp.shpCompnyType"
filterable
placeholder="请选择企业代码类型" >
<el-option
v-for="item in shpCompnyTypeOption"
:key="item.value"
:label="item.label"
:value="item.value" />
</el-select>
</el-form-item>
<el-form-item prop="shpCity">
<el-input v-model="temp.shpAddress" placeholder="企业代码"/>
</el-form-item>
</div>
</el-col>
</el-row>
<div>
<el-tag type="info" effect="plain">
危险品信息
</el-tag>
</div>
<el-row type="flex" class="row-bg bg-purple">
<el-col :span="24">
<el-form-item label="危险品信息" prop="shpCompnyType">
<el-select
v-model="temp.dangerGoods"
placeholder="请选择危险品类型" >
<el-option
v-for="item in dangerGoods"
:key="item.value"
:label="item.label"
:value="item.value" >
<span style="float: left">{{ item.label }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.value }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="危险品类别" prop="shpCity">
<el-input v-model="temp.shpAddress" placeholder="危险品类别"/>
</el-form-item>
</el-col>
</el-row>
<div>
<el-tag type="info" effect="plain">
交运信息
</el-tag>
</div>
<el-row type="flex" class="row-bg bg-purple">
<el-col :span="24">
<el-form-item label="包装" prop="shpCompnyType">
<el-select
v-model="temp.goodsPackage"
placeholder="请选择包装类型" >
<el-option
v-for="item in goodsPackage"
:key="item.value"
:label="item.label"
:value="item.value" />
</el-select>
</el-form-item>
<el-form-item label="尺寸" prop="shpCity">
<el-input v-model="temp.shpAddress" placeholder="请输入尺寸"/>
</el-form-item>
<el-form-item label="计费重量" prop="shpCity">
<el-input v-model="temp.shpAddress" placeholder="请输入计费重量"/>
</el-form-item>
<el-form-item label="体积" prop="shpCity">
<el-input v-model="temp.shpAddress" placeholder="请输入体积"/>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex" class="row-bg bg-purple">
<el-col :span="24">
<div class="remark">
<el-form-item label="备注" prop="shpCity" inline-message="false">
<el-input
v-model="temp.shpAddress"
type="textarea"
placeholder="其他需要备注的信息"
maxlength="30"
show-word-limit
/>
</el-form-item>
</div>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">{{ $t('table.cancel') }}</el-button>
<el-button type="primary" @click="dialogStatus==='create'?createData():updateData()">{{ $t('table.confirm') }}</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
/**
Auth: Lei.j1ang
Created: 2018/1/19-14:54
*/
import treeTable from '@/components/TreeTable'
import treeToArray from '@/utils/customEval'
import Pagination from '@/components/Pagination'
import waves from '@/directive/waves' // Waves directive
import country from '@/utils/country.js'
import companyType from '@/utils/companyType.js'
import dangerGoods from '@/utils/dangerGoods.js'
import goodsPackage from '@/utils/goodsPackage.js'
const calendarTypeOptions = [
{ key: 'CN', display_name: 'China' },
{ key: 'US', display_name: 'USA' },
{ key: 'JP', display_name: 'Japan' },
{ key: 'EU', display_name: 'Eurozone' }
]
// arr to obj ,such as { CN : "China", US : "USA" }
const calendarTypeKeyValue = calendarTypeOptions.reduce((acc, cur) => {
acc[cur.key] = cur.display_name
return acc
}, {})
treeTable.expandAll = {
type: Boolean,
default: false
}
export default {
name: 'CustomTreeTableDemo',
components: { treeTable, Pagination },
directives: { waves },
filters: {
statusFilter(status) {
const statusMap = {
10003: '',
41301: 'success',
10002: 'info',
10000: 'danger',
45103: 'warning',
wrong: 'exception'
}
return statusMap[status]
},
typeFilter(type) {
return calendarTypeKeyValue[type]
}
},
data() {
return {
func: treeToArray,
expandAll: true,
fullscreen:true,
total: 1,
resend: true,
loading:false,
listLoading: true,
downloadLoading:false,
multipleSelection: [],
dialogFormVisible: false,
dialogStatus: '',
country: country,
countryOption: [],
shpCompnyTypeOption: [],
dangerGoods: dangerGoods,
goodsPackage: goodsPackage,
textMap: {
update: '编辑',
create: '添加'
},
listQuery: {
page: 1,
limit: 20,
waybillNo: '',
flight: '',
flightDate: '',
custom: ''
},
tableData:[],
temp: {
id: undefined,
waybillNo: '',
houseWaybillNo: '',
custom: '4604',
flight: '',
flightDate: '',
oriStation: 'CGO',
desStation: '',
maniPiece: undefined,
maniWeight: undefined
},
manifestCustoms: ['4604', '4620', '4613'],
pickerOptions: {
shortcuts: [
{
text: '今天',
onClick(picker) {
picker.$emit('pick', new Date())
}
},
{
text: '昨天',
onClick(picker) {
const date = new Date()
date.setTime(date.getTime() - 3600 * 1000 * 24)
picker.$emit('pick', date)
}
},
{
text: '明天',
onClick(picker) {
const date = new Date()
date.setTime(date.getTime() + 3600 * 1000 * 24)
picker.$emit('pick', date)
}
},
{
text: '一周前',
onClick(picker) {
const date = new Date()
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
picker.$emit('pick', date)
}
}
]
},
args: [null, null, 'timeLine'],
rules: {
maniWeight: [{ type: 'number', required: true, message: '重量必须为数字', trigger: 'blur' }],
maniPiece: [{ type: 'number', required: true, message: '件数必须为数字', trigger: 'blur' }],
desStation: [{ required: true, message: '运单目的地必须输入', trigger: 'blur' }],
oriStation: [{ required: true, message: '运单起始站必须数据', trigger: 'change' }],
flightDate: [{ type: 'date', required: true, message: '航班日期必须输入', trigger: 'change' }],
flight: [{ required: true, message: '航班号必须输入', trigger: 'blur' }],
custom: [{ required: true, message: '关区代码必须选择', trigger: 'change' }],
waybillNo: [{ required: true, message: '运单号必须输入', trigger: 'blur' }]
}
}
},
created(){
console.log(this.$route.params.scopeRow)
this.getList()
},
methods: {
message(row) {
this.$message.info(row.event)
},
sortChange(data) {
const { prop, order } = data
if (prop === 'id') {
this.sortByID(order)
}
},
sortByID(order) {
if (order === 'ascending') {
this.listQuery.sort = '+id'
} else {
this.listQuery.sort = '-id'
}
this.handleFilter()
},
handleFilter(){
},
handleSwitch(row){
},
handleDownload(){
this.downloadLoading = true
},
handleUpdate(row) {
this.temp = Object.assign({}, row) // copy obj
this.temp.timestamp = new Date(this.temp.timestamp)
this.dialogStatus = 'update'
this.dialogFormVisible = true
this.$nextTick(() => {
this.$refs[''].clearValidate()
})
},
handleModifyStatus(row, status) {
this.$message({
message: '操作成功',
type: 'success'
})
row.status = status
},
getList() {
this.tableData = [
{
id: 0,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 1,
waybillNo: '580-20728396',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9731',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: 'wrong',
customText: ' 预配回执异常 ',
customComplate: 25,
children: [
{
id: 2,
waybillNo: '580-20728396',
houseWaybillNo: 'ADDSS21231',
custom: '4604',
flight: 'CV9731',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '10002',
customText: ' 已暂存',
customComplate: 0
},
{
id: 3,
waybillNo: '580-20728396',
houseWaybillNo: 'SDE3411',
custom: '4604',
flight: 'CV9731',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '45103',
customText: ' 45103 该提(运)单的运抵报告重复申报,海关审核不通过。 关区代码:4604。',
customComplate: 100
},
{
id: 4,
waybillNo: '580-20728396',
houseWaybillNo: 'SDE3411',
custom: '4604',
flight: 'CV9731',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '10000',
customText: ' 已删除 ',
customComplate: 50
}
]
},
{
id: 4,
waybillNo: '580-20728391',
houseWaybillNo: '',
custom: '4604',
flight: 'KA740',
flightDate: '2019-06-29',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '10003',
customText: ' 已发送预配舱单 '
},
{
id: 5,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 6,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 7,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 8,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 9,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 10,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 11,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 12,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 13,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},{
id: 14,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 15,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 16,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 17,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 18,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 19,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 20,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
},
{
id: 23,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41301',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
}, {
id: 22,
waybillNo: '580-20728399',
houseWaybillNo: '',
custom: '4604',
flight: 'CV9733',
flightDate: '2019-06-21',
oriStation: 'LUX',
desStation: 'CGO',
maniPiece: 50,
maniWeight: 21321,
status: '41300',
customText: ' 预配舱单主要数据传输成功。',
customComplate: 25
}
]
this.total = this.tableData.length
},
handleSelectionChange(val) {
this.multipleSelection = val
},
resetTemp() {
this.temp = {
id: undefined,
waybillNo: '',
houseWaybillNo: '',
custom: '4604',
flight: '',
flightDate: '',
oriStation: 'CGO',
desStation: '',
maniPiece: undefined,
maniWeight: undefined
}
},
handleCreate() {
this.resetTemp()
this.dialogStatus = 'create'
this.dialogFormVisible = true
this.$nextTick(() => {
this.$refs[''].clearValidate()
})
},
remoteMethod(query) {
if (query !== '') {
this.loading = true
setTimeout(() => {
this.loading = false
this.countryOption = this.country.filter(item => {
return item.value.toUpperCase()
.indexOf(query.toUpperCase()) > -1
})
this.shpCompnyTypeOption = companyType.filter(item => {
return item.value.toUpperCase()
.indexOf(query.toUpperCase()) > -1
})
}, 200)
} else {
this.countryOption = []
}
}
}
}
</script>
<style>
.el-row {
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
}
.el-col {
border-radius: 4px;
}
.bg-purple-dark {
background: #99a9bf;
}
.bg-purple {
background: #d3dce6;
}
.bg-purple-light {
background: #e5e9f2;
}
.grid-content {
border-radius: 4px;
min-height: 36px;
}
.row-bg {
padding: 10px 0;
background-color: #f9fafc;
}
.el-progress.is-warning .el-progress-bar__inner{
background-color:#E6A23C
}
.remark textarea{
width: 600px;
}
</style>