C6Way.vue
205.3 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
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
<template>
<el-card>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="生成主单" name="first">
<div style="height: 850px;overflow: scroll;margin-left: 25px;background-color: rgb(255,255,255)">
<el-form :model="form" label-width="0px" :rules="apply_formRules" ref="apply_formRef">
<el-row style="margin-left: 40%">
<span style="font-size: 24px;margin-bottom: 25px">
新增主运单
</span>
</el-row>
<el-row>
<el-col :span="4">
<el-form-item label-width="30px" label=" " prop="bill.waybillNum">
<el-input v-model="form.bill.waybillNum" auto-complete="off" placeholder="主运单号(必填)" @input="handleInput"></el-input>
</el-form-item>
</el-col>
<el-col style="margin-left: 30px" :span="2">
<el-form-item>
<el-input
minlength="3" maxlength="3" oninput="this.value=this.value.toUpperCase()"
@keyup.native="form.bill.origin.replace(/[^A-Za-z]/g,'')"
v-model="form.bill.origin" auto-complete="off" placeholder="起始站" size="mini"></el-input>
</el-form-item>
</el-col>
<el-col style="margin-left: 30px" :span="2">
<el-button type="warning" plain @click="cancleBtn">清空</el-button>
</el-col>
<el-col :span="2">
<el-upload
action=""
:on-change="handleChange"
:auto-upload="false"
:show-file-list="false">
<el-button slot="trigger" type="primary">Excel文件</el-button>
</el-upload>
</el-col>
</el-row>
<!-- 发货人信息-->
<el-row>
<el-col :span="12" style="border: 1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Shipper's Name and Address
<el-button type="primary" plain size="mini" style="margin-left: 15px;margin-top: 5px" @click="getShpFwb()">发货人</el-button>
<!-- <el-button type="success" plain size="mini">保 存</el-button>-->
</span>
<el-row>
<el-col style="width: 38%">
<el-form-item>
<el-input minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="form.shp.shp_name=form.shp.shp_name.replace(/[^A-Za-z0-9_\s]/g,'')" v-model="form.shp.shp_name" auto-complete="off" placeholder="名称" size="mini"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 40%;margin-left:5px">
<el-form-item>
<el-input minlength="1" maxlength="25" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="shp_contact.contact_number=shp_contact.contact_number.replace(/[^0-9]/g,'')"
v-model="shp_contact.contact_number" auto-complete="off" placeholder="电话/传真" size="mini"></el-input>
<!-- <el-select v-model="form.shp.shp_detail_number" placeholder="电话/传真">-->
<!-- <el-option label="电话" value="2"></el-option>-->
<!-- <el-option label="传真" value="3"></el-option>-->
<!-- </el-select>-->
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="width: 25%">
<el-form-item>
<el-input minlength="1" maxlength="9" onkeyup="this.value=this.value.toUpperCase()"
v-model="form.shp.shp_postcode" auto-complete="off" placeholder="邮编"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 25%;margin-left: 10px">
<el-form-item>
<el-input minlength="1" maxlength="17" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="form.shp.shp_loc_place=form.shp.shp_loc_place.replace(/[^A-Za-z0-9_\s]/g,'')"
v-model="form.shp.shp_loc_place" auto-complete="off" placeholder="城市"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 25%;margin-left: 10px">
<el-form-item>
<el-input minlength="2" maxlength="2" onkeyup="this.value=this.value.toUpperCase()"
v-model="form.shp.shp_country" auto-complete="off" placeholder="国家代码"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="width: 80%">
<el-form-item>
<el-input minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="form.shp.shp_adr=form.shp.shp_adr.replace(/[^A-Za-z0-9_\s]/g,'')"
v-model="form.shp.shp_adr" auto-complete="off" placeholder="地址"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-bottom: -5px">
<el-col style="width: 80%">
<el-form-item>
<el-input minlength="1" maxlength="65" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="shp_oci.oci_csrc_info=shp_oci.oci_csrc_info.replace(/[^A-Za-z0-9_\s]/g,'')"
v-model="shp_oci.oci_csrc_info" auto-complete="off" placeholder="企业编码"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-top:1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
<el-row style="margin-bottom: 10px">
<el-col style="width: 20%">
<span style="font-size: 12px">
Air Waybill
</span>
</el-col>
</el-row>
<el-row>
<el-col style="width: 20%">
<span style="font-size: 12px">
lssued by
</span>
</el-col>
<el-col style="width: 70%">
<el-form-item>
<el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4}"
auto-complete="off" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<span style="font-size: 12px">
Copies 1,2and3 of this Air Waybill are originals and have the same validity(Not Negotiable)
</span>
</el-row>
</el-col>
</el-row>
<!-- 收货人信息-->
<el-row style="padding-top: 10px">
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Consignee's Name and Address
<el-button type="primary" plain size="mini" style="margin-top: 5px" @click="getCneFwb()">收货人</el-button>
</span>
<el-row>
<el-col style="width: 38%">
<el-form-item>
<el-input minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="form.cne.cne_name=form.cne.cne_name.replace(/[^A-Za-z0-9_\s]/g,'')"
v-model="form.cne.cne_name" auto-complete="off" placeholder="名称" size="mini"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 40%;margin-left: 5px">
<el-form-item>
<el-input minlength="1" maxlength="25" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="cne_contact.contact_number=cne_contact.contact_number.replace(/[^0-9]/g,'')"
v-model="cne_contact.contact_number" auto-complete="off" placeholder="电话/传真" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="width: 25%">
<el-form-item>
<el-input minlength="1" maxlength="9" onkeyup="this.value=this.value.toUpperCase()"
v-model="form.cne.cne_postcode" auto-complete="off" placeholder="邮编"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 25%;margin-left: 10px">
<el-form-item>
<el-input minlength="1" maxlength="17" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="form.cne.cne_loc_place=form.cne.cne_loc_place.replace(/[^A-Za-z0-9_\s]/g,'')"
v-model="form.cne.cne_loc_place" auto-complete="off" placeholder="城市"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 25%;margin-left: 10px">
<el-form-item>
<el-input minlength="2" maxlength="2" onkeyup="this.value=this.value.toUpperCase()"
v-model="form.cne.cne_country" auto-complete="off" placeholder="国家代码"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="width: 80%">
<el-form-item>
<el-input minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="form.cne.cne_adr=form.cne.cne_adr.replace(/[^A-Z0-9_\s]/g,'')"
v-model="form.cne.cne_adr" auto-complete="off" placeholder="地址"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-bottom: -5px">
<el-col style="width: 80%">
<el-form-item>
<el-input minlength="1" maxlength="65" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="cne_oci.oci_csrc_info=cne_oci.oci_csrc_info.replace(/[^A-Za-z0-9_\s]/g,'')"
v-model="cne_oci.oci_csrc_info" auto-complete="off" placeholder="企业编码"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
It is agreed that the goods described herein are accepted for carriage in apparent good order and condition (except as noted) and SUBJECT TO THE CONDITION OF CONTRACT ON THE REVERSE HEREOF. ALL GOODS MAY BE CARRIED BY ANY OTHER MEANS INCLUDING ROAD OR ANY OTHER CARRIER UNLESS SPECIFIC CONTRARY IS DRAWN TO THE NOTICE CONCERNING CARRIER'S LIMITATION OF LIABILITY. Shipper may increase such limitation of liability by declaring higher value for carriage and paying a supplemental charge if required.
</span>
</el-col>
</el-row>
<!-- 代理人信息-->
<el-row style="padding-top: 10px">
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;;border-left:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Issuing Carrier's Agent Name and City
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 30%">
<el-form-item>
<el-input disabled v-model="form.agt.agt_name" auto-complete="off" placeholder="代理人名称" size="mini"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 30%;margin-left: 30px">
<el-form-item>
<el-input disabled v-model="form.agt.agt_ADR" auto-complete="off" placeholder="代理人地址" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Accounting information content
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 90%">
<el-form-item>
<el-input minlength="1" maxlength="34" onkeyup="this.value=this.value.toUpperCase()"
v-model="acc_info.acc_info" auto-complete="off" placeholder="财务信息内容" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Agent's IATA Code
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 65%">
<el-form-item>
<el-input disabled v-model="form.agt.agt_IATA_number" auto-complete="off" placeholder="IATA代码" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Agent's Account Number
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 65%">
<el-form-item>
<el-input disabled v-model="form.agt.agt_account_number" auto-complete="off" placeholder="代理人账号" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Accounting Information Identification
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 90%">
<el-form-item>
<el-input v-model="acc_info.acc_info_id" auto-complete="off" placeholder="财务信息标识" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<!-- 航班信息-->
<el-row style="padding-top: 10px">
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Airport of Departure (Addr. of First Carrier) and Requested Routing
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="出发机场(第一承运人地址)" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Currency
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input minlength="3" maxlength="3"
oninput="this.value=this.value.replace(/[^A-Za-z]/g,'').toUpperCase();"
v-model="form.cvd.cvd_currency_code" auto-complete="off" placeholder="货币单位" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
GHGS Code
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.cvd.cvd_charge_code" auto-complete="off" placeholder="收费代码" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
WT/VAL(PPD)&Other(PPD)
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 90%">
<el-form-item>
<el-input v-model="form.cvd.cvd_charge_prepaid" auto-complete="off" placeholder="付费方式" size="mini"></el-input>
</el-form-item>
</el-col>
<!-- <el-col style="width: 45%;margin-left: 5px">-->
<!-- <el-form-item>-->
<!-- <el-input v-model="form.companyName" auto-complete="off" placeholder="" size="mini"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
</el-row>
</el-col>
<!-- <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">-->
<!-- <span style="font-size: 12px">-->
<!-- Other(PPD)-->
<!-- </span>-->
<!-- <el-row style="margin-bottom: -5px">-->
<!-- <el-col style="width: 90%">-->
<!-- <el-form-item>-->
<!-- <el-input v-model="form.cvd.cvd_charge_prepaid" auto-complete="off" placeholder="付费方式" size="mini"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!--<!– <el-col style="width: 45%;margin-left: 5px">–>-->
<!--<!– <el-form-item>–>-->
<!--<!– <el-input v-model="form.companyName" auto-complete="off" placeholder="" size="mini"></el-input>–>-->
<!--<!– </el-form-item>–>-->
<!--<!– </el-col>–>-->
<!-- </el-row>-->
<!-- </el-col>-->
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
To1
</span>
<el-row>
<el-col style="width: 95%">
<el-form-item>
<el-input minlength="3" maxlength="3" oninput="this.value=this.value.replace(/[^A-Za-z]/g,'').toUpperCase();"
v-model="form.rtg.destinationAirport" auto-complete="off" placeholder="到达站" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
First Carrier
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input minlength="2" maxlength="2" oninput="this.value=this.value.replace(/[^A-Za-z0-9]/g,'').toUpperCase();"
v-model="form.rtg.destinationCarrier" auto-complete="off" placeholder="承运人" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
To
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.rtg.onwardAirport"
minlength="3" maxlength="3" oninput="this.value=this.value.replace(/[^A-Za-z]/g,'').toUpperCase();"
auto-complete="off" placeholder="到达站1" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
By
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.rtg.onwardCarrier"
minlength="2" maxlength="2" oninput="this.value=this.value.replace(/[^A-Za-z0-9]/g,'').toUpperCase();"
auto-complete="off" placeholder="承运人1" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
To
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.rtg.onwardAirport3"
minlength="3" maxlength="3" oninput="this.value=this.value.replace(/[^A-Za-z]/g,'').toUpperCase();"
auto-complete="off" placeholder="到达站2" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
By
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.rtg.onwardCarrier3"
minlength="2" maxlength="2" oninput="this.value=this.value.replace(/[^A-Za-z0-9]/g,'').toUpperCase();"
auto-complete="off" placeholder="承运人2" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="5" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Declared Value for Carriage
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.cvd.cvd_value_for_carriage" auto-complete="off" placeholder="运输声明价值" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="5" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Declared Value for Customs
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.cvd.cvd_value_for_customs" auto-complete="off" placeholder="海关声明价值" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Airport of Destination
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled minlength="3" maxlength="3"
oninput="this.value=this.value.replace(/[^A-Za-z]/g,'').toUpperCase();"
auto-complete="off" placeholder="目的地机场" size="mini">
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="5" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Requested Flight/Date
</span>
<el-row>
<el-col style="width: 38%">
<el-form-item prop="flightNumber">
<el-input v-model="flightNumber"
auto-complete="off" placeholder="航班号"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 58%;margin-left: 5px">
<el-form-item>
<el-date-picker
v-model="form.flt.day"
type="date" style="width: auto"
size="mini"
format="dd"
value-format="dd"
placeholder="选择日期">
</el-date-picker>
<!-- <el-input v-model="form.companyName" auto-complete="off" placeholder="航班日期" size="mini"></el-input>-->
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Requested Flight/Date
</span>
<el-row>
<el-col style="width: 38%">
<el-form-item prop="flightNumber2">
<el-input v-model="flightNumber2"
oninput="this.value=this.value.replace(/[^A-Za-z0-9]/g,'').toUpperCase();"
auto-complete="off" placeholder="航班号" ></el-input>
</el-form-item>
</el-col>
<el-col style="width: 58%;margin-left: 5px">
<el-form-item>
<el-date-picker
v-model="form.flt.day2"
type="date" style="width: auto"
size="mini"
format="dd"
value-format="dd"
placeholder="选择日期">
</el-date-picker>
<!-- <el-input v-model="form.companyName" auto-complete="off" placeholder="航班日期" size="mini"></el-input>-->
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Amount of Insurance
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.cvd.cvd_amount_of_insurance" auto-complete="off" placeholder="保险金额" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="7" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">
INSURANCE —— If carrier offers insurance, and such insurance is requested in accordance with the conditions thereof, indicate amount to be insured in figures in box marked "Amount of Insurance".
</span>
</el-col>
</el-row>
<!-- 收货人信息-->
<el-row style="padding-top: 10px">
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Notify Name and Address
<el-button type="primary" plain size="mini" style="margin-top: 5px" @click="getCneNfy()">通知人</el-button>
</span>
<el-row>
<el-col style="width: 38%">
<el-form-item>
<el-input minlength="1" maxlength="35"
oninput="this.value=this.value.replace(/[^A-Za-z0-9_\S]/g,'').toUpperCase();"
v-model="form.nfy.nfy_name" auto-complete="off" placeholder="名称" size="mini"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 40%;margin-left: 5px">
<el-form-item>
<el-input minlength="1" maxlength="25"
oninput="this.value=this.value.replace(/[^0-9]/g,'');"
v-model="nfy_contact.contact_number" auto-complete="off" placeholder="电话/传真" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="width: 25%">
<el-form-item>
<el-input minlength="1" maxlength="9"
oninput="this.value=this.value.replace(/[^0-9]/g,'');"
v-model="form.nfy.nfy_postcode" auto-complete="off" placeholder="邮编"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 25%;margin-left: 10px">
<el-form-item>
<el-input minlength="1" maxlength="17"
oninput="this.value=this.value.replace(/[^A-Za-z0-9_\s]/g,'').toUpperCase();"
v-model="form.nfy.nfy_LOC_city" auto-complete="off" placeholder="城市"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 25%;margin-left: 10px">
<el-form-item>
<el-input minlength="2" maxlength="2"
oninput="this.value=this.value.replace(/[^A-Z]/g,'').toUpperCase();"
v-model="form.nfy.nfy_country" auto-complete="off" placeholder="国家代码"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-bottom: -5px">
<el-col style="width: 80%">
<el-form-item>
<el-input minlength="1" maxlength="35"
oninput="this.value=this.value.replace(/[^A-Z0-9_\s]/g,'').toUpperCase();"
v-model="form.nfy.nfy_ADR" auto-complete="off" placeholder="地址"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
Also Notify Area
</el-col>
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="22" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding: 5px">
<span style="font-size: 12px">
Special Handling Details
</span>
<el-row style="margin-bottom: -2px">
<el-col style="width: 100%">
<el-form-item>
<!-- 每行65个字符-->
<el-input
v-model="sphCodes"
show-word-limit
maxlength="27"
type="textarea"
:autosize="{ minRows: 1, maxRows: 9}"
auto-complete="off" placeholder="特殊操作代码列表,一行一个代码,最多9行"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<!-- 处理信息-->
<el-row style="padding-top: 10px">
<el-col :span="22" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding: 5px">
<span style="font-size: 12px">
Handling Information
</span>
<el-row style="margin-bottom: -2px">
<el-col style="width: 100%">
<el-form-item>
<!-- 每行65个字符-->
<el-input
v-model="ssr_content"
show-word-limit
maxlength="195"
type="textarea"
:autosize="{ minRows: 2, maxRows: 4}"
auto-complete="off" placeholder="被通知人信息" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
<span style="font-size: 10px">
(For USA only) These commodities Licensed by U.S. for ultimate destination.Diversion contrary to U.S. law is prohibited.
</span>
</el-col>
</el-row>
<!-- 件重计费信息-->
<!-- 表头信息-->
<el-row style="padding-top: 10px">
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">
No. of Pieces RCP
</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">
Gross Weight
</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">
kg lb
</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">Rate Class</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">
Commodity Item No.
</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">
Chargeable Weight
</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">Rate / Charge</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">Total</span>
</el-col>
<el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">Nature and Quantity of Goods (incl. Dimensions or Volume)</span>
</el-col>
</el-row>
<!-- 输入信息-->
<el-row style="padding-top: 10px">
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.bill.quantity_picecs"
oninput="this.value=this.value.replace(/[^0-9]/g,'').trim();"
auto-complete="off" placeholder="件数1" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.bill.quantity_weight"
oninput="this.value=this.value.replace(/[^0-9\.]/g,'');"
auto-complete="off" placeholder="重量(KG)" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.bill.quantity_weight_code" auto-complete="off" placeholder="计量单位" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-select v-model="form.rtd.rtd_rate_class" placeholder="运价种类">
<el-option label="Q" value="Q"></el-option>
<el-option label="C" value="C"></el-option>
<el-option label="M" value="M"></el-option>
<el-option label="N" value="N"></el-option>
<el-option label="S" value="S"></el-option>
<el-option label="R" value="R"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled v-model="form.rtd.rtd_commodity_NUM" auto-complete="off" placeholder="商品代号" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.rtd.rtd_charge_weight"
oninput="this.value=this.value.replace(/[^0-9\.]/g,'');"
auto-complete="off" placeholder="计费重量" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.rtd.rtd_rate_charge"
oninput="this.value=this.value.replace(/[^0-9\.]/g,'');"
auto-complete="off" placeholder="费率" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.rtd.rtd_total"
oninput="this.value=this.value.replace(/[^0-9\.]/g,'');"
auto-complete="off" placeholder="总计" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input minlength="1" maxlength="20" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="form.rtd.rtd_goods_DES.replace(/[^A-Za-z0-9\s]/g,'')"
v-model="form.rtd.rtd_goods_DES" auto-complete="off" placeholder="货物品名" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-button type="primary" plain size="mini" style="width: 100%;text-align: left" @click="dialogTableVisible = true">尺寸</el-button>
<!-- <el-input v-model="form.companyName" auto-complete="off" placeholder="尺寸(长*宽*高*件数)" size="mini"></el-input>-->
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.bill.quantity_volume" auto-complete="off" placeholder="体积" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input auto-complete="off" placeholder="其他" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<!-- 付款信息-->
<el-row style="padding-top: 10px">
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5">
<el-row style="border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-col :span="16" style="font-size: 12px">
<el-radio v-model="form.cvd.cvd_charge_prepaid" label="PP" value="PP">预付 Prepaid</el-radio>
</el-col>
<el-col :span="4" style="font-size: 12px;margin-left: 25px">
<el-radio v-model="form.cvd.cvd_charge_prepaid" label="CC" value="CC">到付 Collect</el-radio>
</el-col>
</el-row>
<el-row style="padding-top: 20px">
<el-col :span="7" style="border-right: 1px solid #a5a5a5">
<el-input :disabled="form.cvd.cvd_charge_prepaid=='CC'" v-model="form.ppd.ppd_weight_amount" oninput="this.value=this.value.replace(/[^0-9\.]/g,'');" auto-complete="off" placeholder="货重金额" size="mini"></el-input>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;text-align: center">
<span style="font-size: 12px">
Weight Charge
</span>
</el-col>
<el-col :span="7">
<el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_weight_amount" auto-complete="off" oninput="this.value=this.value.replace(/[^0-9\.]/g,'');" placeholder="货重金额" size="mini"></el-input>
</el-col>
</el-row>
</el-col>
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Other Charges
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.oth.oth_charges" auto-complete="off" placeholder="其他费用" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5">
<el-row style="border-bottom: 1px solid #a5a5a5;margin-top: 15px">
<el-col :span="7" style="border-right: 1px solid #a5a5a5">
<el-input :disabled="form.cvd.cvd_charge_prepaid=='CC'" v-model="form.ppd.ppd_valuation_amount" auto-complete="off" placeholder="附加费" size="mini"></el-input>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;text-align: center">
<span style="font-size: 12px">
Valuation Charge
</span>
</el-col>
<el-col :span="7">
<el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_valuation_amount" auto-complete="off" placeholder="附加费" size="mini"></el-input>
</el-col>
</el-row>
<el-row style="border-bottom: 1px solid #a5a5a5;margin-top: 30px">
<el-col :span="7" style="border-right: 1px solid #a5a5a5">
<el-input :disabled="form.cvd.cvd_charge_prepaid=='CC'" v-model="form.ppd.ppd_taxes_amount" auto-complete="off" placeholder="税款" size="mini"></el-input>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;text-align: center">
<span style="font-size: 12px">
Tax
</span>
</el-col>
<el-col :span="7">
<el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_taxes_amount" auto-complete="off" placeholder="税款" size="mini"></el-input>
</el-col>
</el-row>
<el-row style="border-bottom: 1px solid #a5a5a5;margin-top: 30px">
<el-col :span="7" style="border-right: 1px solid #a5a5a5">
<el-input :disabled="form.cvd.cvd_charge_prepaid=='CC'" v-model="form.ppd.ppd_other_charges_due_agent" auto-complete="off" placeholder="其他应付代理人合计" size="mini"></el-input>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;text-align: center">
<span style="font-size: 12px">
Total other Charge Due Agent
</span>
</el-col>
<el-col :span="7">
<el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_other_charges_due_agent" auto-complete="off" placeholder="其他应付代理人合计" size="mini"></el-input>
</el-col>
</el-row>
<el-row style="margin-top: 30px;margin-bottom: 2px">
<el-col :span="7" style="border-right: 1px solid #a5a5a5">
<el-input :disabled="form.cvd.cvd_charge_prepaid=='CC'" v-model="form.ppd.ppd_other_charges_due_carrier" auto-complete="off" placeholder="其他应付承运人合计" size="mini"></el-input>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;text-align: center">
<span style="font-size: 12px">
Total other Charge Due Carrier
</span>
</el-col>
<el-col :span="7">
<el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_other_charges_due_carrier" auto-complete="off" placeholder="其他应付承运人合计" size="mini"></el-input>
</el-col>
</el-row>
</el-col>
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: 15px">
<el-col style="width: 98%">
<span style="font-size: 12px">
Shipper certifies that the particulars on the face hereof are correct and that insofar as any part of the consignment contains dangerous goods, such part is properly described by name and is in proper condition for carriage by air according to the applicable Dangerous Goods Regulations.
</span>
</el-col>
</el-row>
<el-row style="margin-bottom: -12px">
<el-col :span="10">
<span style="font-size: 12px">
Signature of shipper or His Agent
</span>
</el-col>
<el-col :span="14">
<el-form-item>
<el-input v-model="form.cer.cer_signature" maxlength="20" style="width: 95%" auto-complete="off" placeholder="托运人或其代理人签字" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Total prepaid
</span>
<el-row>
<el-col style="width: 95%">
<el-form-item>
<el-input :disabled="form.cvd.cvd_charge_prepaid=='CC'" v-model="form.ppd.ppd_charge_summary_total" oninput="this.value=this.value.replace(/[^0-9\.]/g,'');" auto-complete="off" placeholder="预付总计" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px;text-align: center">
<span style="font-size: 12px">
Currency Conversion Rate
</span>
<el-row>
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="form.cvd.cvd_currency_code" auto-complete="off" placeholder="货币兑换率" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="3" style="border-bottom:1px solid #a5a5a5;padding-left: 5px;border-right: 1px solid #a5a5a5">
<span style="font-size: 12px">
Total Collect
</span>
<el-row>
<el-col style="width: 95%">
<el-form-item>
<el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_charge_summary_total" oninput="this.value=this.value.replace(/[^0-9\.]/g,'');" auto-complete="off" placeholder="到付费用总额" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-top: -2px">
<el-col :span="6">
<span style="font-size: 12px">
Executed on(Date)
</span>
</el-col>
<el-col :span="5">
<span style="font-size: 12px">
At(place)
</span>
</el-col>
<el-col :span="12">
<span style="font-size: 12px">
Signature of Issuing Carrier or Its Agent
</span>
</el-col>
</el-row>
<el-row style="margin-top: 31px;margin-bottom: -8px">
<el-col :span="6">
<el-form-item>
<el-date-picker
v-model="form.isu.isu_day_mounth_year"
type="date" style="width: auto"
size="mini"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="5" style="margin-left: 10px">
<el-form-item>
<el-input minlength="1" maxlength="17"
oninput="this.value=this.value.toUpperCase();"
v-model="form.isu.isu_place_or_airport_code" auto-complete="off" placeholder="签署地址" size="mini"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px">
<el-form-item>
<el-input minlength="0" maxlength="20" oninput="this.value=this.value.toUpperCase()"
v-model="form.isu.isu_signature" auto-complete="off" placeholder="签署人或其代理人签字,盖章" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
CC charges in Dest. Currency
</span>
<el-row>
<el-col style="width: 95%">
<el-form-item>
<el-input auto-complete="off" placeholder="目的地CC费用。通货" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
For Carrie's Use Only at Destination
</span>
</el-col>
<el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Charges at Destination
</span>
<el-row>
<el-col style="width: 95%">
<el-form-item>
<el-input auto-complete="off" placeholder="目的地收费" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px;padding-right: 5px">
<span style="font-size: 12px">
Total Collection Charges
</span>
<el-row style="margin-bottom: -8px">
<el-form-item>
<el-input auto-complete="off" placeholder="总收款费用" size="mini"></el-input>
</el-form-item>
</el-row>
</el-col>
<el-col :span="8" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
</el-col>
</el-row>
<el-row style="margin-top: 40px;margin-left: 40%">
<el-form-item>
<el-button type="primary" @click="addFwb">提交</el-button>
</el-form-item>
</el-row>
</el-form>
</div>
</el-tab-pane>
<el-tab-pane label="生成分单" name="second">
<div style="height: 850px;overflow: scroll;margin-left: 25px;background-color: rgb(255,255,255)">
<el-form :model="addForm" label-width="0px" :rules="apply_addFormRules" ref="apply_addFormRef">
<el-row style="margin-left: 40%">
<span style="font-size: 24px;margin-bottom: 25px">
新增分运单
</span>
</el-row>
<el-row>
<el-col :span="4">
<el-form-item label-width="30px" prop="fhl.waybillNum">
<el-input v-model="addForm.fhl.waybillNum"
oninput="this.value=this.value.replace(/[^0-9\-]/g,'').toUpperCase();"
auto-complete="off" placeholder="主运单号(必填)"
@blur="blur"></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label-width="40px" prop="hbs.hbs_serial_number">
<el-input v-model="addForm.hbs.hbs_serial_number"
oninput="this.value=this.value.replace(/[^A-Za-z0-9]/g,'').toUpperCase();"
auto-complete="off" placeholder="分运单号(必填)"
onkeyup="this.value=this.value.toUpperCase()"
></el-input>
</el-form-item>
</el-col>
<el-col style="margin-left: 30px" :span="2">
<el-form-item prop="hbs.hbs_origin">
<el-input v-model="addForm.hbs.hbs_origin" auto-complete="off" placeholder="起始站" size="mini"
minlength="3" maxlength="3" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="addForm.hbs.hbs_origin.replace(/[^A-Za-z]/g,'')"></el-input>
</el-form-item>
</el-col>
<el-col style="margin-left: 30px" :span="2">
<el-button type="warning" plain @click="cancleBtn">清空</el-button>
</el-col>
</el-row>
<!-- 发货人信息-->
<el-row>
<el-col :span="12" style="border: 1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Shipper's Name and Address
<el-button type="primary" plain size="mini" style="margin-left: 15px;margin-top: 5px" @click="getShp()">发货人</el-button>
<!-- <el-button type="success" plain size="mini">保 存</el-button>-->
</span>
<el-row>
<el-col style="width: 38%">
<el-form-item label=" " prop="shp.shp_nam_name">
<el-input minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="addForm.shp.shp_nam_name=addForm.shp.shp_nam_name.replace(/[^A-Za-z0-9_\s]/g,'')" v-model="addForm.shp.shp_nam_name" auto-complete="off" placeholder="名称" size="mini"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 40%;margin-left:5px">
<el-form-item>
<el-input minlength="1" maxlength="25" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="addForm.shp.shp_detail_number=addForm.shp.shp_detail_number.replace(/[^0-9]/g,'')" v-model="addForm.shp.shp_detail_number" auto-complete="off" placeholder="电话/传真" size="mini"></el-input>
<!-- <el-select v-model="addForm.shp.shp_detail_number" placeholder="电话/传真">-->
<!-- <el-option label="电话" value="2"></el-option>-->
<!-- <el-option label="传真" value="3"></el-option>-->
<!-- </el-select>-->
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="width: 25%">
<el-form-item>
<el-input minlength="1" maxlength="9" onkeyup="this.value=this.value.toUpperCase()"
v-model="addForm.shp.shp_location_post" auto-complete="off" placeholder="邮编"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 25%;margin-left: 10px">
<el-form-item>
<el-input minlength="1" maxlength="17" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="addForm.shp.shp_loc_place=addForm.shp.shp_loc_place.replace(/[^A-Za-z0-9_\s]/g,'')"
v-model="addForm.shp.shp_loc_place" auto-complete="off" placeholder="城市"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 25%;margin-left: 10px">
<el-form-item>
<el-input minlength="2" maxlength="2" onkeyup="this.value=this.value.toUpperCase()"
v-model="addForm.shp.shp_location_iso" auto-complete="off" placeholder="国家代码"
@keyup.native="addForm.shp.shp_location_iso.replace(/[^A-Za-z]/g,'')"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="width: 80%">
<el-form-item>
<el-input minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="addForm.shp.shp_adr_street=addForm.shp.shp_adr_street.replace(/[^A-Za-z0-9_\s]/g,'')"
v-model="addForm.shp.shp_adr_street" auto-complete="off" placeholder="地址"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-bottom: -5px">
<el-col style="width: 80%">
<el-form-item>
<el-input minlength="1" maxlength="65" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="shp_aeo.oci_supplementary=shp_aeo.oci_supplementary.replace(/[^A-Za-z0-9_\s]/g,'')"
v-model="shp_aeo.oci_supplementary" auto-complete="off" placeholder="企业编码"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-top:1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
<el-row style="margin-bottom: 10px">
<el-col style="width: 20%">
<span style="font-size: 12px">
Air Waybill
</span>
</el-col>
</el-row>
<el-row>
<el-col style="width: 20%">
<span style="font-size: 12px">
lssued by
</span>
</el-col>
<el-col style="width: 70%">
<el-form-item>
<el-input disabled type="textarea" :autosize="{ minRows: 2, maxRows: 4}"
auto-complete="off" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<span style="font-size: 12px">
Copies 1,2and3 of this Air Waybill are originals and have the same validity(Not Negotiable)
</span>
</el-row>
</el-col>
</el-row>
<!-- 收货人信息-->
<el-row style="padding-top: 10px">
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Consignee's Name and Address
<el-button type="primary" plain size="mini" style="margin-top: 5px" @click="getCne()">收货人</el-button>
<!-- <el-button type="success" plain size="mini">保 存</el-button>-->
</span>
<el-row>
<el-col style="width: 38%">
<el-form-item>
<el-input minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="addForm.cne.cne_nam_name=addForm.cne.cne_nam_name.replace(/[^A-Za-z0-9_\s]/g,'')" v-model="addForm.cne.cne_nam_name" auto-complete="off" placeholder="名称" size="mini"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 40%;margin-left: 5px">
<el-form-item>
<el-input minlength="1" maxlength="25" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="addForm.cne.cne_detail_number=addForm.cne.cne_detail_number.replace(/[^0-9]/g,'')" v-model="addForm.cne.cne_detail_number" auto-complete="off" placeholder="电话/传真" size="mini"></el-input>
<!-- <el-select v-model="addForm.cne.cne_detail_number" placeholder="电话/传真">-->
<!-- <el-option label="电话" value="2"></el-option>-->
<!-- <el-option label="传真" value="3"></el-option>-->
<!-- </el-select>-->
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="width: 25%">
<el-form-item>
<el-input minlength="1" maxlength="9" onkeyup="this.value=this.value.toUpperCase()"
v-model="addForm.cne.cne_location_post" auto-complete="off" placeholder="邮编"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 25%;margin-left: 10px">
<el-form-item>
<el-input minlength="1" maxlength="17" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="addForm.cne.cne_loc_place=addForm.cne.cne_loc_place.replace(/[^A-Z0-9_\s]/g,'')" v-model="addForm.cne.cne_loc_place" auto-complete="off" placeholder="城市"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 25%;margin-left: 10px">
<el-form-item>
<el-input minlength="2" maxlength="2" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="addForm.cne.cne_location_iso.replace(/[^A-Za-z]/g,'')"
v-model="addForm.cne.cne_location_iso" auto-complete="off" placeholder="国家代码"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="width: 80%">
<el-form-item>
<el-input minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="addForm.cne.cne_adr_street=addForm.cne.cne_adr_street.replace(/[^A-Z0-9_\s]/g,'')" v-model="addForm.cne.cne_adr_street" auto-complete="off" placeholder="地址"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-bottom: -5px">
<el-col style="width: 80%">
<el-form-item>
<el-input minlength="1" maxlength="65" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="cne_aeo.oci_supplementary=cne_aeo.oci_supplementary.replace(/[^A-Z0-9_\s]/g,'')" v-model="cne_aeo.oci_supplementary" auto-complete="off" placeholder="企业编码"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
It is agreed that the goods described herein are accepted for carriage in apparent good order and condition (except as noted) and SUBJECT TO THE CONDITION OF CONTRACT ON THE REVERSE HEREOF. ALL GOODS MAY BE CARRIED BY ANY OTHER MEANS INCLUDING ROAD OR ANY OTHER CARRIER UNLESS SPECIFIC CONTRARY IS DRAWN TO THE NOTICE CONCERNING CARRIER'S LIMITATION OF LIABILITY. Shipper may increase such limitation of liability by declaring higher value for carriage and paying a supplemental charge if required.
</span>
</el-col>
</el-row>
<!-- 代理人信息-->
<el-row style="padding-top: 10px">
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;;border-left:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Issuing Carrier's Agent Name and City
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 30%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="代理人名称" size="mini"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 30%;margin-left: 30px">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="代理人地址" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Accounting information content
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 90%">
<el-form-item>
<el-input disabled v-model="addForm.acc_info" auto-complete="off" placeholder="财务信息内容" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Agent's IATA Code
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 65%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="IATA代码" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Agent's Account Number
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 65%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="代理人账号" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Accounting Information Identification
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 90%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="财务信息标识" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<!-- 航班信息-->
<el-row style="padding-top: 10px">
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
<span style="font-size: 12px">
Airport of Departure (Addr. of First Carrier) and Requested Routing
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="出发机场(第一承运人地址)" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Currency
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input minlength="3" maxlength="3"
@input.native="value => addForm.cvd.cvd_currency_code.replace(/[^A-Za-z]/g,'').toUpperCase()"
v-model="addForm.cvd.cvd_currency_code" auto-complete="off" placeholder="货币单位" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
GHGS Code
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="addForm.cvd.cvd_charge_code" disabled auto-complete="off" placeholder="收费代码" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
WT/VAL(PPD)&Other(PPD)
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 90%">
<el-form-item>
<el-input v-model="addForm.cvd.cvd_charge_prepaid" auto-complete="off" placeholder="付费方式" size="mini"></el-input>
</el-form-item>
</el-col>
<!-- <el-col style="width: 45%;margin-left: 5px">-->
<!-- <el-form-item>-->
<!-- <el-input auto-complete="off" placeholder="COLL" size="mini"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
</el-row>
</el-col>
<!-- <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">-->
<!-- <span style="font-size: 12px">-->
<!-- Other(PPD)-->
<!-- </span>-->
<!-- <el-row style="margin-bottom: -5px">-->
<!-- <el-col style="width: 90%">-->
<!-- <el-form-item>-->
<!-- <el-input auto-complete="off" placeholder="付费方式" size="mini"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!--<!– <el-col style="width: 45%;margin-left: 5px">–>-->
<!--<!– <el-form-item>–>-->
<!--<!– <el-input auto-complete="off" placeholder="COLL" size="mini"></el-input>–>-->
<!--<!– </el-form-item>–>-->
<!--<!– </el-col>–>-->
<!-- </el-row>-->
<!-- </el-col>-->
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
To
</span>
<el-row>
<el-col style="width: 95%">
<el-form-item>
<el-input minlength="3" maxlength="3"
@input.native="value => addForm.hbs.hbs_destination = value.replace(/[^A-Za-z]/g, '').toUpperCase()"
v-model="addForm.hbs.hbs_destination" auto-complete="off" placeholder="到达站" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
First Carrier
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="承运人" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
To
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="到达站" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
By
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="承运人" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
To
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="到达站" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
By
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="承运人" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="5" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Declared Value for Carriage
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="addForm.cvd.cvd_value_for_carriage" auto-complete="off" placeholder="运输声明价值" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="5" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Declared Value for Customs
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="addForm.cvd.cvd_value_for_customs" auto-complete="off" placeholder="海关声明价值" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Airport of Destination
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="目的地机场" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Requested Flight/Date
</span>
<el-row>
<el-col style="width: 38%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="航班号" size="mini"></el-input>
</el-form-item>
</el-col>
<el-col style="width: 58%;margin-left: 5px">
<el-form-item>
<el-date-picker disabled
type="date" style="width: auto"
size="mini"
format="dd"
value-format="dd"
placeholder="选择日期">
</el-date-picker>
<!-- <el-input auto-complete="off" placeholder="航班日期" size="mini"></el-input>-->
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Amount of Insurance
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="addForm.cvd.cvd_amount_of_insurance" auto-complete="off" placeholder="保险金额" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">
INSURANCE —— If carrier offers insurance, and such insurance is requested in accordance with the conditions thereof, indicate amount to be insured in figures in box marked "Amount of Insurance".
</span>
</el-col>
</el-row>
<!-- 处理信息-->
<el-row style="padding-top: 10px">
<el-col :span="22" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding: 5px">
<span style="font-size: 12px">
Handling Information
</span>
<el-row style="margin-bottom: -2px">
<el-col style="width: 100%">
<el-form-item>
<el-input v-model="addForm.txt.txt_free_text"
maxlength="585"
type="textarea" :autosize="{ minRows: 1, maxRows: 9}"
auto-complete="off" placeholder="处理信息-Free Text"></el-input>
</el-form-item>
</el-col>
</el-row>
<span style="font-size: 10px">
(For USA only) These commodities Licensed by U.S. for ultimate destination.Diversion contrary to U.S. law is prohibited.
</span>
</el-col>
</el-row>
<!-- 件重计费信息-->
<!-- 表头信息-->
<el-row style="padding-top: 10px">
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">
No. of Pieces RCP
</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">
Gross Weight
</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">
kg lb
</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">Rate Class</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">
Commodity Item No.
</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">
Chargeable Weight
</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">Rate / Charge</span>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">Total</span>
</el-col>
<el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
<span style="font-size: 12px">Nature and Quantity of Goods (incl. Dimensions or Volume)</span>
</el-col>
</el-row>
<!-- 输入信息-->
<el-row style="padding-top: 10px">
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="addForm.hbs.hbs_pieces" auto-complete="off" placeholder="件数" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="addForm.hbs.hbs_weight" auto-complete="off" placeholder="重量(KG)" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="addForm.hbs.hbs_weight_code" auto-complete="off" placeholder="最大总重量" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-select v-model="addForm.companyName1" placeholder="运价种类">
<el-option label="Q" value="Q"></el-option>
<el-option label="C" value="C"></el-option>
<el-option label="M" value="M"></el-option>
<el-option label="N" value="N"></el-option>
<el-option label="S" value="S"></el-option>
<el-option label="R" value="R"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="商品代号" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled v-model="addForm.hbs.hbs_weight" auto-complete="off" placeholder="计费重量" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="费率" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="总计" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input minlength="1" maxlength="20" onkeyup="this.value=this.value.toUpperCase()"
@keyup.native="addForm.hbs.hbs_manifest_description.replace(/[^A-Za-z0-9\s]/g,'')"
:max-length="15"
@paste.native="handlePaste($event, 15)"
v-model="addForm.hbs.hbs_manifest_description" auto-complete="off" placeholder="货物品名" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-button disabled type="primary" plain size="mini" style="width: 100%;text-align: left">尺寸</el-button>
<!-- <el-input auto-complete="off" placeholder="尺寸(长*宽*高*件数)" size="mini"></el-input>-->
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="体积" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input v-model="addForm.hbs.hbs_slac" auto-complete="off" placeholder="SLAC"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<!-- 付款信息-->
<el-row style="padding-top: 10px">
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5">
<el-row style="border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-col :span="16" style="font-size: 12px">
<el-radio disabled v-model="addForm.cvd.cvd_charge_prepaid" label="PP" value="PP">预付 Prepaid</el-radio>
</el-col>
<el-col :span="4" style="font-size: 12px;margin-left: 25px">
<el-radio disabled v-model="addForm.cvd.cvd_charge_prepaid" label="CC" value="CC">到付 Collect</el-radio>
</el-col>
</el-row>
<el-row style="padding-top: 20px">
<el-col :span="7" style="border-right: 1px solid #a5a5a5">
<el-input disabled v-model="addForm.hbs.hbs_weight" auto-complete="off" placeholder="计费重量" size="mini"></el-input>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;text-align: center">
<span style="font-size: 12px">
Weight Charge
</span>
</el-col>
<el-col :span="7">
<el-input disabled v-model="addForm.hbs.hbs_weight" auto-complete="off" placeholder="计费重量" size="mini"></el-input>
</el-col>
</el-row>
</el-col>
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Other Charges
</span>
<el-row style="margin-bottom: -5px">
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="其他费用" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5">
<el-row style="border-bottom: 1px solid #a5a5a5;margin-top: 15px">
<el-col :span="7" style="border-right: 1px solid #a5a5a5">
<el-input disabled auto-complete="off" placeholder="附加费" size="mini"></el-input>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;text-align: center">
<span style="font-size: 12px">
Valuation Charge
</span>
</el-col>
<el-col :span="7">
<el-input disabled auto-complete="off" placeholder="附加费" size="mini"></el-input>
</el-col>
</el-row>
<el-row style="border-bottom: 1px solid #a5a5a5;margin-top: 30px">
<el-col :span="7" style="border-right: 1px solid #a5a5a5">
<el-input disabled auto-complete="off" placeholder="税款" size="mini"></el-input>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;text-align: center">
<span style="font-size: 12px">
Tax
</span>
</el-col>
<el-col :span="7">
<el-input disabled auto-complete="off" placeholder="税款" size="mini"></el-input>
</el-col>
</el-row>
<el-row style="border-bottom: 1px solid #a5a5a5;margin-top: 30px">
<el-col :span="7" style="border-right: 1px solid #a5a5a5">
<el-input disabled auto-complete="off" placeholder="其他应付代理人合计" size="mini"></el-input>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;text-align: center">
<span style="font-size: 12px">
Total other Charge Due Agent
</span>
</el-col>
<el-col :span="7">
<el-input disabled auto-complete="off" placeholder="其他应付代理人合计" size="mini"></el-input>
</el-col>
</el-row>
<el-row style="margin-top: 30px;margin-bottom: -2px">
<el-col :span="7" style="border-right: 1px solid #a5a5a5;margin-bottom: 2px">
<el-input disabled auto-complete="off" placeholder="其他应付承运人合计" size="mini"></el-input>
</el-col>
<el-col :span="10" style="border-right: 1px solid #a5a5a5;text-align: center">
<span style="font-size: 12px">
Total other Charge Due Carrier
</span>
</el-col>
<el-col :span="7">
<el-input disabled auto-complete="off" placeholder="其他应付承运人合计" size="mini"></el-input>
</el-col>
</el-row>
</el-col>
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-bottom: 15px">
<el-col style="width: 98%">
<span style="font-size: 12px">
Shipper certifies that the particulars on the face hereof are correct and that insofar as any part of the consignment contains dangerous goods, such part is properly described by name and is in proper condition for carriage by air according to the applicable Dangerous Goods Regulations.
</span>
</el-col>
</el-row>
<el-row style="margin-bottom: -12px">
<el-col :span="10">
<span style="font-size: 12px">
Signature of shipper or His Agent
</span>
</el-col>
<el-col :span="14">
<el-form-item>
<el-input disabled style="width: 95%" auto-complete="off" placeholder="托运人或其代理人签字" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Total prepaid
</span>
<el-row>
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="预付总计" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px;text-align: center">
<span style="font-size: 12px">
Currency Conversion Rate
</span>
<el-row>
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="货币兑换率" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Total Collect
</span>
<el-row>
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="到付费用总额" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
<el-row style="margin-top: -2px">
<el-col :span="6">
<span style="font-size: 12px">
Executed on(Date)
</span>
</el-col>
<el-col :span="5">
<span style="font-size: 12px">
At(place)
</span>
</el-col>
<el-col :span="12">
<span style="font-size: 12px">
Signature of Issuing Carrier or Its Agent
</span>
</el-col>
</el-row>
<el-row style="margin-top: 31px;margin-bottom: -8px">
<el-col :span="6">
<el-form-item>
<el-date-picker disabled
type="date" style="width: auto"
size="mini"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="5" style="margin-left: 10px">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="签署地址" size="mini"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="签署人或其代理人签字,盖章" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
CC charges in Dest. Currency
</span>
<el-row>
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="目的地CC费用。通货" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="2" style="border-bottom:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
For Carrie's Use Only at Destination
</span>
</el-col>
<el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
<span style="font-size: 12px">
Charges at Destination
</span>
<el-row>
<el-col style="width: 95%">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="目的地收费" size="mini"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px;padding-right: 5px">
<span style="font-size: 12px">
Total Collection Charges
</span>
<el-row style="margin-bottom: -8px">
<el-form-item>
<el-input disabled auto-complete="off" placeholder="总收款费用" size="mini"></el-input>
</el-form-item>
</el-row>
</el-col>
<el-col :span="8" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
</el-col>
</el-row>
<el-row style="margin-top: 40px;margin-left: 40%">
<el-form-item>
<el-button type="primary" @click="addFhl">提交</el-button>
</el-form-item>
</el-row>
</el-form>
</div>
</el-tab-pane>
</el-tabs>
<!-- 主单获取尺寸信息-->
<el-dialog title="尺寸信息" :visible.sync="dialogTableVisible" width="80%" v-dialog-drag>
<el-row :gutter="10">
<el-col :span="18">
<el-table :data="gridData" :cell-style="{textAlign:'center'}" show-summary
:summary-method="getSummaries"
style="border-radius: 10px 10px 0px 0px;line-height: 25px" border
:header-cell-style="{background:'#6F8294',color:'#FFFFFF',textAlign:'center'}">
<el-table-column label="长(CM)" width="" prop="long">
<template slot-scope="scope">
<el-input v-model="scope.row.long" placeholder="" @input="handleEdit(scope.$index, scope.row)"/>
</template>
</el-table-column>
<el-table-column label="宽(CM)" width="" prop="wide">
<template slot-scope="scope">
<el-input v-model="scope.row.wide" placeholder="" @input="handleEdit(scope.$index, scope.row)"/>
</template>
</el-table-column>
<el-table-column label="高(CM)" prop="height">
<template slot-scope="scope">
<el-input v-model="scope.row.height" placeholder="" @input="handleEdit(scope.$index, scope.row)"/>
</template>
</el-table-column>
<el-table-column label="件数" width="" prop="pic">
<template slot-scope="scope">
<el-input v-model="scope.row.pic" placeholder="" @input="handleEdit(scope.$index, scope.row)"/>
</template>
</el-table-column>
<el-table-column label="体积(M³)" width="" prop="vol">
<template slot-scope="scope">
<el-input v-model="scope.row.vol" placeholder="" :disabled="true"/>
</template>
</el-table-column>
<el-table-column label="重量" prop="weight">
<template slot-scope="scope">
<el-input v-model="scope.row.weight" placeholder=""/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作">
<template slot-scope="scope">
<!-- v-if="scope.$index < gridData.length - 1"-->
<el-button type="danger" plain @click="deleteRows(scope)">删 除</el-button>
</template>
</el-table-column>
</el-table>
<div align="center" style="margin: 10px">
<el-button @click="addRows()" size="mini" plain style="width: 100%">+添 加</el-button>
</div>
<div align="center" style="margin: 15px">
<el-button type="primary" size="small" @click="dialogTableVisible = false">取 消</el-button>
<el-button type="success" size="small" @click="addVol()">保 存</el-button>
</div>
</el-col>
<el-col :span="6">
<el-tooltip class="item" effect="dark" placement="top-start">
<div slot="content">可以将整体的尺寸信息复制进来,一行一个尺寸信息,系统会自动识别,如:
<br/>
10x20x30x40
<br/>
10X20X30X40
<br/>
10x20x30/40
<br/>
10*20*30*40
</div>
<el-input
:autosize="{ minRows: 7, maxRows: 20}"
resize = "vertical"
type="textarea"
placeholder="快速尺寸信息录入生成,每行一条如:10x20x30x40或10x20x30/40或10*20*30*40"
v-model="dimension_textarea"
@change="convertAndCalculateVolume"
>
</el-input>
</el-tooltip>
</el-col>
</el-row>
<el-row> </el-row>
</el-dialog>
<!-- 列表区域 获取发货人-->
<el-dialog :visible.sync="dialogVisible" width="70%">
<Consigner
ref="consigner"
v-on:consigerrow="consigerSelect"
></Consigner>
</el-dialog>
<!-- 列表区域 获取收货人-->
<el-dialog :visible.sync="dialogVisible1" width="70%">
<Consignee
ref="consignee"
v-on:consigeerow="consigeeSelect"
></Consignee>
</el-dialog>
<!-- 列表区域 获取收货人-->
<el-dialog :visible.sync="dialogVisible2" width="70%">
<Consignee
ref="consignee"
v-on:consigeerow="notifiedSelect"
></Consignee>
</el-dialog>
</el-card>
</template>
<script>
import {fhl, fwb, selectawabByid, selectByKey, selectList} from '../../api/remote_interface/byont_import';
import Consigner from "../consigner/consigner"
import Consignee from "../consigner/consignee"
import {loginedUserInfo} from "../../api/user";
import {getList} from "../../api/consigner/consigner";
import jsutil from "@/common/js/util";
import XLSX from 'xlsx';
function cleanString(str, maxLength = 20) {
return str.replace(/[^a-zA-Z0-9\s]/g, '').slice(0, maxLength);
}
/*function parseCustomDate(dateStr) {
if (typeof dateStr !== 'string') {
return '无效日期';
}
// 自定义日期格式正则表达式
const regex = /(\d{1,2})\/([a-zA-Z]{3})\/(\d{4})/;
const match = dateStr.match(regex);
if (match) {
const day = match[1];
const month = match[2];
const year = match[3];
// 月份缩写映射
const monthMap = {
Jan: '01', Feb: '02', Mar: '03', Apr: '04',
May: '05', Jun: '06', Jul: '07', Aug: '08',
Sep: '09', Oct: '10', Nov: '11', Dec: '12'
};
const formattedMonth = monthMap[month.toUpperCase()];
if (formattedMonth) {
return `${year}-${formattedMonth}-${day.padStart(2, '0')}`;
}
}
return '无效日期';
}*/
function formatAF23(value) {
if (typeof value !== 'string') {
return '无效值';
}
// 删除 DIMS: 行和 VOL: 行
const cleanedValue = value.replace(/DIMS:\s*/gi, '').replace(/VOL:\s*\d+\.\d+\s*CBM/gi, '');
// 将剩余内容按行分割,并去除空行
const lines = cleanedValue.split('\n').filter(line => line.trim() !== '');
// 将非空行重新组合成字符串,并用换行符分隔
return lines.join('\n').trim();
}
export default {
components: {
Consigner,Consignee
},
data(){
return {
hidden: ['a1', 'a2', 'a3', 'a4', 'a5','a6'],
// 主单
activeName: 'first',
dimension_textarea: '',
form:{
acc:[],
agt:{
agt_ADR:'',
agt_IATA_number:'',
agt_account_number:'',
agt_name:'',
agt_participant_id:'',
},
bill:{
destination:'',
origin:'CGO',
quantity_density:'',
quantity_picecs:'',
//体积
quantity_volume:'0.0',
quantity_volume_code:'MC',
quantity_weight:'',
quantity_weight_code:'K',
waybillNum:'',
},
cne:{
cne_contacts:[],
cne_account_number:'',
cne_adr:'',
cne_country:'',
cne_loc_place:'',
cne_loc_province:'',
cne_name:'',
cne_postcode:'',
},
cvd:{
cvd_amount_of_insurance:'XXX',
cvd_charge_code:'PP',
cvd_charge_prepaid:'PP',
cvd_currency_code:'CNY',
cvd_value_for_carriage:'NVD',
cvd_value_for_customs:'NCV',
},
flt:{
cariier:"",
day:'',
flightNumber:'',
cariier2:"",
day2:'',
flightNumber2:'',
cariier3:"",
day3:'',
flightNumber3:'',
},
isu:{
isu_day_mounth_year:'',
isu_place_or_airport_code:'ZHENGZHOU',
isu_signature:'CHINA',
},
nfy:{
nfy_contacts:[],
nfy_ADR:'',
nfy_LOC_city:'',
nfy_LOC_province:'',
nfy_country:'',
nfy_name:'',
nfy_postcode:''
},
oci:[
// {
// oci_country_code:'',
// oci_csrc_id:'',
// oci_csrc_info:'',
// oci_information_id:''
// }
],
osi:[{
osi_text:[],
}],
oth:{
oth_amount:'',
oth_charge_code:'',
oth_charges:'',
oth_entitlement_code:''
},
ppd:{
ppd_charge_summary_total:'',
ppd_other_charges_due_agent:'',
ppd_other_charges_due_carrier:'',
ppd_taxes_amount:'',
ppd_valuation_amount:'',
ppd_weight_amount:'',
},
ref:{
ref_address:'CGOFD1E',
ref_file_reference:'',
ref_participant_airport:'',
ref_participant_code:'',
ref_participant_id:'',
},
rtd:
{
dimensions:[],
rtd_charge_weight:'',
rtd_combination_point:'',
rtd_commodity_NUM:'',
rtd_goods_DES:'',
rtd_goods_consol_DES:'',
rtd_gross_weight:'',
rtd_number_pieces:'',
rtd_rate_charge:'',
rtd_rate_class:'Q',
rtd_total:'',
//体积
rtd_volume:'',
rtd_volume_code:'MC',
}
,
rtg:{
destinationAirport:'',
destinationCarrier:'',
onwardAirport:'',
onwardCarrier:'',
onwardAirport3:'',
onwardCarrier3:'',
},
shp:{
shp_contacts:[],
shp_account_number:'',
shp_adr:'',
shp_country:'',
shp_loc_place:'',
shp_loc_province:'',
shp_name:'',
shp_postcode:'',
},
ssr:{
ssr_request_content:["NO SOLID WOODEN PACKING MATERIALS"],
},
cer:{
cer_signature:' DHL GLOBAL'
},
sph:{
sph_code:[]
}
},
sphCodes: "",
ssr_content:"NO SOLID WOODEN PACKING MATERIALS",
cne_contact:{
contact_id:'TE',
contact_number:'',
},
shp_contact:{
contact_id:'TE',
contact_number:'',
},
nfy_contact:{
contact_id:'TE',
contact_number:''
},
shp_oci:{
oci_country_code: "",
oci_csrc_id: "T",
oci_information_id: "SHP",
oci_csrc_info: ""
},
cne_oci:{
oci_country_code: "",
oci_csrc_id: "T",
oci_information_id: "CNE",
oci_csrc_info: ""
},
acc_info:{
acc_info:'FREIGHT PREPAID',
acc_info_id:'GEN',
},
apply_formRules:{
bill:{
waybillNum: [
{ required: true, message: '请输入主运单号', trigger: 'blur' },
// 新增的格式校验规则
{
validator: (rule, value, callback) => {
const reg = /^\d{3}-\d{8}$/; // 定义正则表达式
if (value && !reg.test(value)) {
callback(new Error('主运单号格式不正确,应为3位数字-后跟8位数字')); // 如果格式不正确,则返回错误信息
} else {
callback(); // 如果格式正确或值为空,则通过校验
}
},
trigger: 'blur'
}
],
},
flt:{
flightNumber:[
{
validator: (rule, value, callback) => {
const reg = /^[A-Z0-9]{0,2}[0-9]{3}\d?[A-Z0-9]?$/; // 定义正则表达式
if (value && !reg.test(value)) {
callback(new Error('航班格式不正确')); // 如果格式不正确,则返回错误信息
} else {
callback(); // 如果格式正确或值为空,则通过校验
}
},
trigger: 'blur'
}
],
flightNumber2:[
{
validator: (rule, value, callback) => {
const reg = /^[A-Z0-9]{0,2}[0-9]{3}\d?[A-Z0-9]?$/; // 定义正则表达式
if (value && !reg.test(value)) {
callback(new Error('航班格式不正确')); // 如果格式不正确,则返回错误信息
} else {
callback(); // 如果格式正确或值为空,则通过校验
}
},
trigger: 'blur'
}
]
}
},
// 分单
addForm:{
companyName1:'Q',
fhl:{
waybillNum:'',
quantity_weight_code:'',
quantity_weight:'',
quantity_picecs:'',
origin:'',
destination:'',
},
shp:{
shp_detail_identifier:'TE',
shp_nam_name:'',
shp_loc_place:'',
shp_location_post:'',
shp_location_iso:'',
shp_detail_number:'',
shp_adr_street:''
},
cne:{
cne_detail_identifier:'TE',
cne_nam_name:'',
cne_loc_place:'',
cne_location_post:'',
cne_location_iso:'',
cne_detail_number:'',
cne_adr_street:'',
cne_loc_province:'',
shp_loc_province:'',
shp_detail_identifier:''
},
cvd:{
cvd_value_for_carriage:'NVD',
cvd_value_for_customs:'NCV',
cvd_amount_of_insurance:'XXX',
cvd_charge_prepaid:'CC',
cvd_charge_code:'',
cvd_currency_code:'CNY',
},
hbs:{
hbs_origin:'CGO',
hbs_destination:'AMS',
hbs_manifest_description:'NOTEBOOK COMPUT',
hbs_pieces:'',
hbs_serial_number:'',
hbs_weight:'',
hbs_weight_code:'K',
hbs_slac:''
},
txt:{
txt_free_text:''
},
hts:{
hts_commodity_code:''
},
oci:[],
},
shp_aeo:{
oci_country_code: "",
oci_customs: "T",
oci_information_identifier: "SHP",
oci_supplementary: ""
},
cne_aeo:{
oci_country_code: "",
oci_customs: "T",
oci_information_identifier: "CNE",
oci_supplementary: ""
},
apply_addFormRules:{
fhl:{
waybillNum: [
{ required: true, message: '请输入主运单号', trigger: 'blur' },
],
},
hbs:{
hbs_serial_number: [
{ required: true, message: '请输入分运单号', trigger: 'blur' },
{ min: 1, max: 12, message: '长度是1-13个字符', trigger: 'blur' }
],
},
},
dialogTableVisible:false,
gridData:[],
dialogVisible:false,
dialogVisible1:false,
fileContent: null,
currentDate:new Date(),
dialogVisible2:false,
}
},
methods:{
handlePaste(event, maxLength) {
// 阻止默认的粘贴行为
event.preventDefault();
// 获取粘贴的内容
let pasteData = (event.clipboardData || window.clipboardData).getData('text').toUpperCase();
// 获取当前输入框的内容
let currentValue = this.addForm.hbs.hbs_manifest_description;
// 计算总长度
let totalLength = currentValue.length + pasteData.length;
if (totalLength > 15) {
// 如果总长度超过15,只粘贴允许的部分
pasteData = pasteData.slice(0, 15 - currentValue.length);
}
// 更新输入框的内容
this.addForm.hbs.hbs_manifest_description += pasteData;
// 再次限制总长度
this.addForm.hbs.hbs_manifest_description = this.limitInputLength(this.addForm.hbs.hbs_manifest_description);
},
limitInputLength(value, maxLength) {
// 如果输入值的长度超过15,则截取前15个字符
if (value.length > 15) {
return value.slice(0, 15);
}
return value;
},
handleInput(value) {
// 这里可以进一步处理输入值,例如去空格等
this.form.bill.waybillNum = value.trim();
},
//标签页
handleClick(tab, event) {
console.log(tab, event);
},
//添加行
addRows() {
const circle = this.gridData[0];
const newObj = {};
for (let key in circle) { //把第一个对象的属性都赋值给新对象newObj 然后每个属性的值都设置为空;
newObj[key] = '';
}
// this.gridData.splice(this.gridData.length - 1, 0, newObj);
this.gridData.push(newObj);
},
//删除行
deleteRows(scope) {
this.gridData.splice(scope.$index, 1);
this.form.rtd.dimensions.splice(scope.$index,1);
},
//求体积
handleEdit(index, row) {
console.log("index="+index)
if(row.long && row.wide && row.height && row.pic){
row.vol = Number(row.long)*Number(row.wide)*Number(row.height)*Number(row.pic)/1000000
let measurement_info = {
dim_measurement_code:'CMT',
//尺寸信息
dim_measurement_info:"" + row.long + "-" + row.wide + "-" + row.height + "/" + row.pic,
dim_weight:'',
dim_weightcode:'',
};
this.form.rtd.dimensions[index] = measurement_info;
// console.log(this.form.rtd.dimensions);
console.log("DIM数组加入了新的行数据>>"+JSON.stringify(this.form.rtd.dimensions))
}else {
console.error("DIM数组没加数据-ERRRRRR")
}
},
//合计体积
getSummaries(param) {
const {columns, data} = param
const sums = []
columns.forEach((column, index) => {
if (index === 0) {
sums[index] = '合计:'
}
else if (index == 4 ) {
const values = data.map(item => Number(item[column.property]))
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
// 保存了两位小数点
return Math.round((prev + curr) * 100) / 100;
} else {
// 保存了两位小数点
return Math.round(prev * 100) / 100;
}
}, 0)
sums[index] += '';
} else {
sums[index] = '0'
}
} else {
// sums[index] = ''
}
})
this.form.bill.quantity_volume = sums[4];
return sums;
},
//保存尺寸 关闭弹框
addVol(){
this.dialogTableVisible = false;
},
// 主单
// 获取发货人信息
getShpFwb() {
this.dialogVisible = true;
this.$refs.consigner.getConsignee();
},
// 获取收货人信息
getCneFwb() {
this.dialogVisible1 = true;
this.$refs.consignee.getConsignee();
},
// 通知人信息
getCneNfy() {
this.dialogVisible2 = true;
this.$refs.consignee.getConsignee();
},
// 分单
// 获取发货人信息
getShp() {
this.dialogVisible = true;
this.$refs.consigner.getConsignee();
},
// 获取收货人信息
getCne() {
this.dialogVisible1 = true;
this.$refs.consignee.getConsignee();
},
//发货人选中事件处理方法
consigerSelect(row){
if (this.activeName=='first'){
this.form.shp.shp_name = row.companyName;
this.form.shp.shp_contacts.contact_number = row.conPhone;
this.form.shp.shp_postcode = row.conPostcode;
this.form.shp.shp_loc_place = row.conCity;
this.form.shp.shp_country = row.country;
this.form.shp.shp_adr = row.conAddress;
this.shp_oci.oci_csrc_info=row.enterprise;
this.shp_oci.oci_country_code=row.country;
// this.form.oci.push(this.shp_oci);
this.shp_contact.contact_number=row.conPhone;
// this.form.shp.shp_contacts.push(this.shp_contact);
this.$refs.consigner.consigner_data();
this.dialogVisible = false;
}
else if(this.activeName=='second'){
this.addForm.shp.shp_nam_name = row.companyName;
this.addForm.shp.shp_detail_number = row.conPhone;
this.addForm.shp.shp_location_post = row.conPostcode;
this.addForm.shp.shp_loc_place = row.conCity;
this.addForm.shp.shp_location_iso = row.country;
this.addForm.shp.shp_adr_street = row.conAddress;
this.shp_aeo.oci_supplementary=row.enterprise;
this.shp_aeo.oci_country_code=row.country;
// this.addForm.oci.push(this.shp_aeo);
this.$refs.consigner.consigner_data();
this.dialogVisible = false;
}
else{
this.$refs.consigner.consigner_data();
this.dialogVisible = false;
}
},
//收货人选中事件处理方法
consigeeSelect(row){
if(this.activeName=='first'){
this.form.cne.cne_name = row.companyName;
this.form.cne.cne_contacts.contact_number = row.conPhone;
this.form.cne.cne_postcode = row.conPostcode;
this.form.cne.cne_loc_place = row.conCity;
this.form.cne.cne_country = row.country;
this.form.cne.cne_adr = row.conAddress;
this.cne_oci.oci_csrc_info=row.enterprise;
this.cne_oci.oci_country_code=row.country;
// this.form.oci.push(this.cne_oci);
this.cne_contact.contact_number=row.conPhone;
// this.form.cne.cne_contacts.push(this.cne_contact);
this.$refs.consignee.consignee_data();
this.dialogVisible1 = false;
}
else if(this.activeName=='second'){
this.addForm.cne.cne_nam_name = row.companyName;
this.addForm.cne.cne_detail_number = row.conPhone;
this.addForm.cne.cne_location_post = row.conPostcode;
this.addForm.cne.cne_loc_place = row.conCity;
this.addForm.cne.cne_location_iso = row.country;
this.addForm.cne.cne_adr_street = row.conAddress;
this.cne_aeo.oci_supplementary=row.enterprise;
this.cne_aeo.oci_country_code=row.country;
// this.addForm.oci.push(this.cne_aeo);
this.$refs.consignee.consignee_data();
this.dialogVisible1 = false;
}
else{
this.$refs.consignee.consignee_data();
this.dialogVisible1 = false;
}
},
//通知人选中事件处理方法
notifiedSelect(row){
if(this.activeName=='first'){
this.form.nfy.nfy_name = row.companyName;
this.form.nfy.nfy_contacts.contact_number=row.conPhone;
this.form.nfy.nfy_LOC_city=row.conCity;
this.form.nfy.nfy_country=row.country;
this.form.nfy.nfy_ADR=row.conAddress;
this.nfy_contact.contact_number=row.conPhone;;
this.$refs.consignee.consignee_data();
this.dialogVisible2 = false;
}
else{
this.$refs.consignee.consignee_data();
this.dialogVisible2 = false;
}
},
//新增分运单
addFhl() {
this.shp_aeo.oci_country_code=this.addForm.shp.shp_location_iso;
this.cne_aeo.oci_country_code=this.addForm.cne.cne_location_iso;
this.addForm.oci.push(this.shp_aeo);
this.addForm.oci.push(this.cne_aeo);
/*进行表单的预验证*/
this.$refs.apply_addFormRef.validate(valid => {
// 未通过,表单预校验
if (valid) {
fhl(this.addForm).then((response) => {
let res = response.data;
//添加调度记录信息,失败
if (res.code !== '200'){
return this.$message.error(res.msg);
}
this.$message.success(res.msg);
Object.assign(this.$data, this.$options.data());
// this.addForm = {
// fhl:{
// waybillNum:'',
// quantity_weight_code:'',
// quantity_weight:'',
// quantity_picecs:'',
// origin:'',
// destination:'',
// },
// shp:{
// shp_detail_identifier:'TE',
// shp_nam_name:'',
// shp_loc_place:'',
// shp_location_post:'',
// shp_location_iso:'',
// shp_detail_number:'',
// shp_adr_street:''
// },
// cne:{
// cne_detail_identifier:'TE',
// cne_nam_name:'',
// cne_loc_place:'',
// cne_location_post:'',
// cne_location_iso:'',
// cne_detail_number:'',
// cne_adr_street:'',
// cne_loc_province:'',
// shp_loc_province:'',
// shp_detail_identifier:''
// },
// cvd:{
// cvd_value_for_carriage:'NVD',
// cvd_value_for_customs:'NCV',
// cvd_amount_of_insurance:'XXX',
// cvd_charge_prepaid:'PP',
// cvd_charge_code:'',
// cvd_currency_code:'',
// },
// hbs:{
// hbs_origin:'',
// hbs_destination:'',
// hbs_manifest_description:'',
// hbs_pieces:'',
// hbs_serial_number:'',
// hbs_weight:'',
// hbs_weight_code:'',
// hbs_slac:''
// },
// txt:{
// txt_free_text:''
// },
// hts:{
// hts_commodity_code:''
// },
// oci:[],
// };
}).catch(error => {
this.addForm.oci=[];
this.$message.error(error.toString());
});
}else{
this.addForm.oci=[];
return false;
}
})
},
//新增主运单
addFwb() {
this.form.rtd.rtd_gross_weight=this.form.bill.quantity_weight;
this.form.rtd.rtd_number_pieces=this.form.bill.quantity_picecs;
this.form.rtd.rtd_volume=this.form.bill.quantity_volume;
this.form.ppd.ppd_weight_amount=this.form.ppd.ppd_charge_summary_total;
this.form.acc=[];
this.form.oci=[];
this.form.shp.shp_contacts=[];
this.form.cne.cne_contacts=[];
this.form.nfy.nfy_contacts = [];
this.shp_oci.oci_country_code=this.form.shp.shp_country;
this.cne_oci.oci_country_code=this.form.cne.cne_country;
this.form.acc.push(this.acc_info);
this.form.oci.push(this.shp_oci);
this.form.shp.shp_contacts.push(this.shp_contact);
this.form.oci.push(this.cne_oci);
this.form.cne.cne_contacts.push(this.cne_contact);
this.form.nfy.nfy_contacts.push(this.nfy_contact);
/*进行表单的预验证*/
this.$refs.apply_formRef.validate(valid => {
// 未通过,表单预校验
if (valid) {
fwb(this.form).then((response) => {
let res = response.data;
//添加调度记录信息,失败
if (res.code !== '200'){
return this.$message.error(res.msg);
}
this.$message.success(res.msg);
Object.assign(this.$data, this.$options.data());
}).catch(error => {
this.form.oci=[];
this.$message.error(error.toString());
});
}else{
this.form.oci=[];
return false;
}
})
},
//获取主运单信息
blur(){
selectawabByid({id: this.addForm.fhl.waybillNum}).then((res) => {
if (res.data.code == '200'){
if(res.data.data != null&& res.data.data !=''){
this.addForm.fhl.quantity_weight = res.data.data.quantity_weight;
this.addForm.fhl.quantity_picecs = res.data.data.quantity_picecs;
this.addForm.fhl.origin = res.data.data.origin;
this.addForm.fhl.destination = res.data.data.destination;
this.addForm.fhl.quantity_weight_code = res.data.data.quantity_weight_code;
this.addForm.hbs.hbs_origin=res.data.data.origin;
}
return this.$message.success(res.data.msg);
}
}).catch((error) => {
alert(error);
});
},
getAWBA(){
const _this = this
selectByKey({id:this.$route.query.id}).then((response) => {
const res = response.data
// console.log(response.data)
if (res.code !== '200') {
return _this.$message.error('获取消息收发记录,失败!')
}
// 获取列表数据
_this.form = res.data
for (const i of res.data.shp.shp_contacts) {
_this.shp_contact=i
}
for (const i of res.data.cne.cne_contacts) {
_this.cne_contact=i
}
for (const i of res.data.oci) {
if(i.oci_information_id=="SHP"){
_this.shp_oci=i;
}else{
_this.cne_oci=i;
}
}
for (const i of res.data.acc) {
_this.acc_info=i
}
// ssr 适配 使用 join 方法并传入换行符 \n 作为分隔符
_this.ssr_content = _this.form.ssr.ssr_request_content.join("\n");
//获取dmi数组
let dim = _this.form.rtd.dimensions
if (dim){
dim.forEach((item,index,arr)=>{
let dim_form = {
long:"",
wide:"",
height:"",
pic:"",
vol:"",
weight:""
};
dim_form.weight = item.dim_weight;
if(item.dim_measurement_info){
let measures = item.dim_measurement_info.split("-");
if (measures.length>2){
dim_form.long = measures[0];
dim_form.wide = measures[1];
let height_piece = measures[2];
let h_p = height_piece.split("/");
if(h_p.length>1){
dim_form.height= h_p[0];
dim_form.pic = h_p[1];
dim_form.vol = dim_form.long*dim_form.wide*dim_form.height*dim_form.pic/1000000;
}
_this.gridData.push(dim_form)
}
}
})
}
_this.$message.success(res.msg)
}).catch(error => {
// 关闭加载
_this.$message.error(error.toString())
})
},
getAWBH(){
const _this = this
selectByKey({id:this.$route.query.id}).then((response) => {
const res = response.data
if (res.code !== '200') {
return _this.$message.error('获取消息收发记录,失败!')
}
// 获取列表数据
_this.addForm = res.data
for (const i of res.data.oci) {
if(i.oci_information_id=="SHP"){
_this.shp_aeo=i;
}else{
_this.cne_aeo=i;
}
}
_this.$message.success(res.msg)
}).catch(error => {
// 关闭加载
_this.$message.error(error.toString())
})
// console.log("获取分单的方法执行了")
},
//批量尺寸信息识别
convertAndCalculateVolume() {
let _this= this;
this.$confirm('是否需要根据录入的尺寸信息生成详细的尺寸计算数据表,此操作会往表里面添加新的尺寸数据', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let text = this.dimension_textarea.trim().replaceAll("*","x");
text = text.replaceAll("CM","");
text = text.replaceAll("cm","");
text = text.replaceAll("X","x");
text = text.replaceAll("-","x");
text = text.replaceAll("×","x");
text = text.replaceAll("@","x");
text = text.replace(/\//g, 'x');
//去掉空白字符
text = text.replaceAll("/\s/g","");
const lines = text.split('\n');
let output = '';
let totalVolume = 0;
for (const line of lines) {
//正则校验每行格式
const regex = /^([\d\.]+)x([\d\.]+)x([\d\.]+)x([\d\.]+)$/;
let l = line.replace(/\s/g, "");
if (regex.test(l)) {
let dim_form = {
long:"",
wide:"",
height:"",
pic:"",
vol:"",
weight:""
};
const dimensions = l.trim().split('x');
dim_form.long = Number(dimensions[0]);
dim_form.wide = Number(dimensions[1]);
dim_form.height = Number(dimensions[2]);
dim_form.pic = Number(dimensions[3]);
dim_form.vol = dim_form.long * dim_form.wide * dim_form.height * dim_form.pic / 1000000;
let measurement_info = {
dim_measurement_code:'CMT',
//尺寸信息
dim_measurement_info:"" + dim_form.long + "-" + dim_form.wide + "-" + dim_form.height + "/" + dim_form.pic,
dim_weight:'',
dim_weightcode:'',
};
_this.form.rtd.dimensions.push(measurement_info)
_this.gridData.push(dim_form)
totalVolume += dim_form.vol;
const formattedDimensions = `${dim_form.long}-${dim_form.wide}-${dim_form.height }/${dim_form.pic}`;
output += formattedDimensions + '\n';
} else {
this.$message({
type: 'error',
message: '行:'+ line +'尺寸格式错误! 录入信息支持 数字和Xx*- '
});
return ;
}
}
if (totalVolume>0){
totalVolume = Math.floor(totalVolume * 100) / 100;
}
this.form.bill.quantity_volume=totalVolume;
return {
converted: output.trim(),
totalVolume: totalVolume
};
}).catch((e) => {
this.$message({
type: 'error',
message: '已取消'+e.message
});
});
},
cancleBtn(){
Object.assign(this.$data, this.$options.data());
},
NumberToDate(cellValue){
// 将 Excel 的序列号转换为 JavaScript 的 Date 对象
// 注意:Excel 的日期序列号是从 1900 年 1 月 1 日开始计算的(不考虑1904日期系统)
let dateObj = new Date((cellValue - 1) * 24 * 3600 * 1000 + new Date(1900, 0, 1).getTime());
// 考虑 Excel 中的一个已知错误,即它认为1900年是闰年,所以需要减去一天
if (cellValue > 60) {
dateObj = new Date(dateObj.getTime() - 24 * 3600 * 1000);
}
// 将 Date 对象格式化为你想要的日期字符串
let formattedDate = dateObj.toLocaleDateString('zh-CN', {
year: 'numeric',
month: '2-digit',
day: '2-digit'
});
return formattedDate;
},
handleChange(file, fileList) {
const files = file.raw;
const reader = new FileReader();
reader.onload = (e) => {
const data = new Uint8Array(e.target.result);
const workbook = XLSX.read(data, { type: 'array' });
const worksheetName = '格式化打印'; // 指定工作表名称
const worksheet = workbook.Sheets[worksheetName];
if (worksheet) {
const AF1 = (worksheet['AF1'] && worksheet['AF1'].v) || '';
const A16 = (worksheet['A16'] && worksheet['A16'].v) || '';
const C16 = (worksheet['C16'] && worksheet['C16'].v) || '';
const K16 = (worksheet['K16'] && worksheet['K16'].v) || '';
const L16 = (worksheet['L16'] && worksheet['L16'].v) || '';
const S16 = (worksheet['S16'] && worksheet['S16'].v) || '';
const I18 = (worksheet['I18'] && worksheet['I18'].v) || '';
const M18 = (worksheet['M18'] && worksheet['M18'].v) || '';
const A20 = (worksheet['A20'] && worksheet['A20'].v) || '';
const A22 = (worksheet['A22'] && worksheet['A22'].v) || '';
const C22 = (worksheet['C22'] && worksheet['C22'].v) || '';
const K22 = (worksheet['K22'] && worksheet['K22'].v) || '';
const P22 = (worksheet['P22'] && worksheet['P22'].v) || '';
const U22 = (worksheet['U22'] && worksheet['U22'].v) || '';
const AF22 = (worksheet['AF22'] && worksheet['AF22'].v) || '';
const AF23 = (worksheet['AF23'] && worksheet['AF23'].v) || '';
const O34 = (worksheet['O34'] && worksheet['O34'].v) || '';
//const O38 = (worksheet['O38'] && worksheet['O38'].v) || '';
const X38 = (worksheet['X38'] && worksheet['X38'].v) || '';
const AF38 = (worksheet['AF38'] && worksheet['AF38'].v) || '';
//判定acc 中是否包含COU 特殊操作代码
const S10 = (worksheet['S10'] && worksheet['S10'].v) || '';
if (S10.includes("COU")){
this.sphCodes += "COU"
}
if(I18.includes("/")){
const inFlightInfo = I18.split('/');
const outFlightInfo = M18.split('/');
const inFlightNumber = inFlightInfo[0];
const inFlightDate = inFlightInfo.length > 1 ? inFlightInfo[1].split(' ')[0] : '';
const outFlightNumber = outFlightInfo[0];
const outFlightDate = outFlightInfo.length > 1 ? outFlightInfo[1].split(' ')[0] : '';
const SSRInfo = A20.replace(/[^a-zA-Z0-9\s]/g, '');
//const signatureDate = parseCustomDate(O38);
const formattedAF23 = formatAF23(AF23);
this.fileContent = {
AF1: AF1,
A16: A16,
C16: C16,
K16: K16,
L16: L16,
S16: S16,
inFlightNumber: inFlightNumber,
inFlightDate: inFlightDate,
outFlightNumber: outFlightNumber,
outFlightDate: outFlightDate,
SSRInfo: SSRInfo,
A22: A22,
C22: C22,
K22: K22,
P22: P22,
U22: U22,
AF22: cleanString(AF22),
AF23: formattedAF23,
O34: cleanString(O34),
//signatureDate: signatureDate,
X38: X38,
AF38: cleanString(AF38),
};
this.form.bill.waybillNum=this.fileContent.AF1;
this.form.cvd.cvd_currency_code=this.fileContent.S16;
this.form.rtg.destinationAirport=this.fileContent.A16;
this.form.rtg.destinationCarrier=this.fileContent.C16;
this.form.rtg.onwardAirport=this.fileContent.K16;
this.form.rtg.onwardCarrier=this.fileContent.L16;
this.form.flt.cariier=this.fileContent.inFlightNumber.substring(0,2);
this.form.flt.day=this.fileContent.inFlightDate.substring(0,2);
this.form.flt.flightNumber=this.fileContent.inFlightNumber.substring(2);
this.form.flt.cariier2=this.fileContent.outFlightNumber.substring(0,2);
this.form.flt.day2=this.fileContent.outFlightDate.substring(0,2);
this.form.flt.flightNumber2=this.fileContent.outFlightNumber.substring(2);
this.ssr_content=this.fileContent.SSRInfo;
this.form.bill.quantity_picecs=this.fileContent.A22;
this.form.bill.quantity_weight=parseFloat(this.fileContent.C22).toFixed(2);
this.form.rtd.rtd_charge_weight=parseFloat(this.fileContent.K22).toFixed(2);
this.form.rtd.rtd_rate_charge=this.fileContent.P22;
this.form.rtd.rtd_total=parseFloat(this.fileContent.U22).toFixed(2);
this.form.ppd.ppd_weight_amount=parseFloat(this.fileContent.U22).toFixed(2);
this.form.ppd.ppd_charge_summary_total=parseFloat(this.fileContent.U22).toFixed(2);
this.form.rtd.rtd_goods_DES=this.fileContent.AF22;
this.form.cer.cer_signature=this.fileContent.O34;
this.form.isu.isu_signature=this.fileContent.AF38;
this.dimension_textarea=this.fileContent.AF23;
//this.convertAndCalculateVolume();
this.form.isu.isu_day_mounth_year=this.formattedDate();
}else{
const tempDate=this.NumberToDate(M18);
const outFlightDate=tempDate.split('/')[2];
const SSRInfo = A20.replace(/[^a-zA-Z0-9\s]/g, '');
//const signatureDate = parseCustomDate(O38);
const formattedAF23 = formatAF23(AF23);
this.fileContent = {
AF1: AF1,
A16: A16,
C16: C16,
K16: K16,
L16: L16,
S16: S16,
//outFlightDate: outFlightDate,
I18:I18,
SSRInfo: SSRInfo,
A22: A22,
C22: C22,
K22: K22,
P22: P22,
U22: U22,
M18: outFlightDate,
AF22: cleanString(AF22),
AF23: formattedAF23,
O34: cleanString(O34),
//signatureDate: signatureDate,
X38: X38,
AF38: cleanString(AF38),
};
//this.convertAndCalculateVolume();
this.form.bill.waybillNum=this.fileContent.AF1;
this.form.cvd.cvd_currency_code=this.fileContent.S16;
this.form.rtg.destinationAirport=this.fileContent.A16;
this.form.rtg.destinationCarrier=this.fileContent.C16;
this.form.rtg.onwardAirport=this.fileContent.K16;
this.form.rtg.onwardCarrier=this.fileContent.L16;
this.form.flt.cariier=this.fileContent.I18.substring(0,2);
this.form.flt.day=this.fileContent.M18;
this.form.flt.flightNumber=this.fileContent.I18.substring(2);
this.ssr_content=this.fileContent.SSRInfo;
this.form.bill.quantity_picecs=this.fileContent.A22;
this.form.bill.quantity_weight=parseFloat(this.fileContent.C22).toFixed(2);
this.form.rtd.rtd_charge_weight=parseFloat(this.fileContent.K22).toFixed(2);
this.form.rtd.rtd_rate_charge='';
this.form.rtd.rtd_goods_DES=this.fileContent.AF22;
this.form.cer.cer_signature=this.fileContent.O34;
this.form.isu.isu_signature=this.fileContent.AF38;
this.dimension_textarea=this.fileContent.AF23;
this.form.isu.isu_day_mounth_year=this.formattedDate();
}
} else {
this.fileContent = { AF1: '工作表不存在' };
}
};
reader.readAsArrayBuffer(files);
this.convertAndCalculateVolume();
},
formattedDate() {
// 格式化日期为 yyyy-MM-dd
const date = this.currentDate;
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
return `${year}-${month}-${day}`;
}
},
activated(){
if(jsutil.checkNull(this.$route.query.id)){
if(this.$route.query.id.indexOf("AWBA")==0){
this.activeName='first';
this.getAWBA();
}else{
this.activeName='second';
this.getAWBH();
}
}
},
computed:{
formattedSsrContent: {
get() {
return this.ssr_content;
},
set(value) {
// 过滤掉所有非字母数字和中文字符以及换行符
const filteredValue = value.replace(/[^A-Z1-9\n ]/g, '');
const lines = value.split('\n');
if (lines.length > 3) {
this.$message.error('最多只能输入三行文本!');
return;
}
for (let line of lines) {
if (line.length > 65) {
this.$message.error('每行不能超过65个字符!');
return;
}
}
// 如果所有校验都通过了,更新 form.ssr.ssr_request_content
this.form.ssr.ssr_request_content = lines;
this.ssr_content = value; // 更新视图中的数据
}
},
sphCodeFormat:{
get(){
return this.sphCodes;
},
set(value){
const lines = value.split('\n');
if (lines.length > 9) {
this.$message.error('最多只能输入9行文本!');
return;
}
for (let line of lines) {
if (line.length > 3) {
this.$message.error('每行不能超过3个字符!每行一个特殊操作代码,如:ELI');
return;
}
}
this.form.sph.sph_code = lines
this.sphCodes = value;
}
},
flightNumber: {
get() {
// 返回拼接后的完整航班号
return this.form.flt.cariier + this.form.flt.flightNumber;
},
set(value) {
// 将输入值转换为大写并去除非法字符
const cleanedValue = value.replace(/[^A-Za-z0-9]/g, '').toUpperCase();
// 拆分航班号
this.form.flt.cariier = cleanedValue.slice(0, 2);
this.form.flt.flightNumber = cleanedValue.slice(2);
}
},
flightNumber2: {
get() {
// 返回拼接后的完整航班号
return this.form.flt.cariier2 + this.form.flt.flightNumber2;
},
set(value) {
// 将输入值转换为大写并去除非法字符
const cleanedValue = value.replace(/[^A-Za-z0-9]/g, '').toUpperCase();
// 拆分航班号
this.form.flt.cariier2 = cleanedValue.slice(0, 2);
this.form.flt.flightNumber2 = cleanedValue.slice(2);
}
},
},
watch:{
ssr_content: {
handler(newVal) {
this.formattedSsrContent = newVal; // 触发计算属性的setter
},
immediate: true // 立即执行监听器
},
sphCodes:{
handler(newVal) {
this.sphCodeFormat = newVal; // 触发计算属性的setter
},
immediate: true // 立即执行监听器
}
}
}
</script>
<style scoped>
.el-input__inner{
background-color: rgba(236,245,255,0.8) !important;
border: 0px;
}
.el-textarea__inner{
background-color: rgba(236,245,255,0.7) !important;
border-radius: 4px;
}
.el-row{
margin-bottom: -20px;
display: flex;
flex-wrap: wrap
}
table {
width: 90%;
}
tbody tr td{
line-height: 14px;
}
tbody tr {
height: 60px;
}
.tb{
border-top: 0px;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
}
.tl{
border-top: none;
border-left: 0px;
border-right: 0px;
border-bottom: 0px;
}
.tb1{
border-top: 0px;
border-left: 0px;
border-right: 1px solid;
border-bottom: 0px;
}
.tb3{
border: 0px;
}
.tb4{
border-top: 0px;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
}
.tb5{
border-top: 0px;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 0px;
}
.tx{
border-top: 25px solid white;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
width: 180px;
margin-top: -1px;
display: inline-block;
margin-left: 40px;
}
</style>