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
<template>
<div class="app-container">
<el-card>
<div slot="header" class="header">
<div class="card-title">{{ $t("查看") }}</div>
<el-button
type="primary"
icon="el-icon-arrow-left"
@click="$store.dispatch('tagsView/delCurrentView')"
>{{ $t("返回") }}</el-button
>
</div>
<el-form
v-if="orderData"
:model="orderData"
ref="queryForm"
size="small"
:inline="true"
label-width="120px"
class="card"
>
<el-row>
<el-form-item :label="$t('订单号') + ':'">
<router-link
:to="{
path: '/order/detail',
query: { orderId: orderData.orderId },
}"
class="link-type"
>
<span>{{ orderData.orderNo || "" }}</span>
</router-link>
</el-form-item>
</el-row>
<div
v-if="
shopData &&
[
'goods_add_exception',
'line_loop_exception',
'overweight_exception',
'line_weight_exception',
'stock_up_exception',
'in_warehousing_diff_exception',
'channel_exception',
'not_shipping_channel_exception',
'channel_packaging_overweight_exception',
].indexOf(orderExceptionData.orderExceptionType) == -1
"
>
<el-row>
<el-form-item :label="$t('产品名称') + ':'">
{{ shopData.prodTitleZh || "" }}
</el-form-item>
</el-row>
<el-row>
<el-form-item :label="$t('产品英文名称') + ':'">
{{ shopData.prodTitleEn || "" }}
</el-form-item>
</el-row>
</div>
<el-row>
<el-form-item :label="$t('运输路线') + ':'">
<span v-if="orderData"
>{{ $t("【")
}}<dict-tag
:type="DICT_TYPE.ECW_TRANSPORT_TYPE"
:value="orderData.transportId"
/>{{ $t("】") }}</span
>
<span
v-if="
getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, orderData.transportId)
.cssClass == 'channel'
"
>{{ $t("【") }}{{ orderData.channelName }}{{ $t("】") }}</span
>
{{ orderData ? getRouterNameById() : "" }}
</el-form-item>
</el-row>
<el-row>
<el-form-item
:label="$t('异常类型') + ':'"
v-if="
[
'overweight_exception',
'channel_packaging_overweight_exception',
].indexOf(orderExceptionData.orderExceptionType) == -1
"
>
<dict-tag
:type="DICT_TYPE.ORDER_ERROR_TYPE"
:value="orderExceptionData.orderExceptionType"
/>
</el-form-item>
</el-row>
<el-row
:span="12"
v-if="
[
'overweight_exception',
'channel_packaging_overweight_exception',
].indexOf(orderExceptionData.orderExceptionType) == -1
"
>
<el-form-item :label="$t('异常描述') + ':'">
<!-- <dict-tag :type="DICT_TYPE.ORDER_ERROR_TYPE" :value="orderExceptionData.orderExceptionType" /> -->
<!-- {{orderExceptionData.orderExceptionDescVO?orderExceptionData.orderExceptionDescVO.descZh:'无'}} -->
{{ $l(orderExceptionData.orderExceptionDescVO, "desc") }}
</el-form-item>
</el-row>
<el-row
:span="12"
v-if="
orderExceptionData.orderExceptionType == 'order_other_exception' &&
orderExceptionData.orderExceptionRemark
"
>
<el-form-item :label="$t('详细说明') + ':'">
<!-- <dict-tag :type="DICT_TYPE.ORDER_ERROR_TYPE" :value="orderExceptionData.orderExceptionType" /> -->
<!-- {{orderExceptionData.orderExceptionDescVO?orderExceptionData.orderExceptionDescVO.descZh:'无'}} -->
{{ $l(orderExceptionData.orderExceptionRemark, "desc") }}
</el-form-item>
</el-row>
<!-- 单证异常,发货人异常,其他异常 不显示这部分内容 -->
<div
v-if="
[
'order_doc_exception',
'order_consignor_exception',
'order_other_exception',
'overweight_exception',
'line_weight_exception',
'channel_packaging_overweight_exception',
].indexOf(orderExceptionData.orderExceptionType) == -1
"
>
<!-- 预付异常,提货异常,代收货款是针对整个订单的 -->
<template
v-if="
[
'order_pay_exception',
'order_pick_up_exception',
'order_cod_exception',
'not_customer_service_exception',
].indexOf(orderExceptionData.orderExceptionType) > -1
"
>
<el-row>
<el-form-item :label="$t('填单参数') + ':'">
<template v-if="orderData && orderData.costVO">
{{
(orderData.costVO.totalNum || 0) +
$t("箱 ") +
(orderData.costVO.totalVolume || 0) +
"m³ " +
(orderData.costVO.totalWeight || 0) +
"kg " +
(orderData.costVO.totalQuantity || 0) +
$t("个")
}}
</template>
</el-form-item>
<el-form-item
:label="$t('代收金额') + ':'"
v-if="
orderExceptionData.orderExceptionType == 'order_cod_exception'
"
>
<template v-if="orderData && orderData.costVO">
{{ orderExceptionData.orderExceptionAmount }}
{{
currencyMap[
orderExceptionData.orderExceptionAmountCurrencyId
]
}}
</template>
</el-form-item>
</el-row>
<el-row>
<el-form-item :label="$t('入仓参数') + ':'">
<template v-if="orderData && orderData.costVO">
<span>{{
(orderData.sumNum || 0) +
$t("箱") +
(orderData.sumVolume || 0) +
"m³ " +
(orderData.sumWeight || 0) +
"kg " +
(orderData.sumQuantity || 0) +
$t("个")
}}</span>
</template>
</el-form-item>
</el-row>
</template>
<template v-else>
<el-row v-if="shopData">
<el-form-item :label="$t('填单参数') + ':'">
<template>
{{
$t("{num}箱 {volume}m³ {weight}kg {quantity}个", {
num: shopData.num || 0,
volume: shopData.volume || 0,
weight: shopData.weight || 0,
quantity: shopData.quantity || 0,
})
}}
</template>
</el-form-item>
</el-row>
<el-row v-if="shopData">
<el-form-item :label="$t('入仓参数') + ':'"
><template v-if="shopData.warehouseInInfoVO">
{{
$t("{num}箱 {volume}m³ {weight}kg {quantity}个", {
num: shopData.warehouseInInfoVO.cartonsNum || 0,
volume: shopData.warehouseInInfoVO.volume || 0,
weight: shopData.warehouseInInfoVO.weight || 0,
quantity: shopData.warehouseInInfoVO.quantityAll || 0,
})
}}</template
>
<!-- <span>{{(orderData.sumNum||0)+$t('箱')+(orderData.sumVolume||0)+'m³ '+(orderData.sumWeight||0)+'kg '+(orderData.sumQuantity||0) +$t('个')}}</span> -->
<template v-else>{{ $t("无入仓数据") }}</template>
</el-form-item>
</el-row>
</template>
<el-row :span="12">
<el-form-item :label="$t('异常描述') + ':'">
<!-- <dict-tag :type="DICT_TYPE.ORDER_ERROR_TYPE" :value="orderExceptionData.orderExceptionType" /> -->
<!-- {{orderExceptionData.orderExceptionDescVO?orderExceptionData.orderExceptionDescVO.descZh:'无'}} -->
{{ $l(orderExceptionData.orderExceptionDescVO, "desc") }}
</el-form-item>
<div
style="display: inline-block; line-height: 32px; font-size: 14px"
v-if="
orderExceptionData.orderExceptionType == 'order_pay_exception'
"
>
<span style="color: red">{{
$t("注意:收款后无法修改备货信息,请先联系仓库确认订单备货完成")
}}</span>
<el-button
v-if="orderExceptionData.orderExceptionStatus != 2"
type="primary"
plain
icon="el-icon-plus"
style="margin-left: 20px"
@click="handleAdd"
>{{ $t("新增收款单") }}</el-button
>
</div>
</el-row>
<el-row v-if="orderExceptionData.orderExceptionDetails">
<el-form-item :label="$t('详细内容') + ':'">
<span>{{ orderExceptionData.orderExceptionDetails }}</span>
</el-form-item>
</el-row>
<el-row
v-if="
orderExceptionData.orderExceptionType == 'order_pay_exception' ||
orderExceptionData.orderExceptionType != 'goods_add_exception'
"
>
<el-form-item :label="$t('收费参数') + ':'">
<div v-if="shopData">
{{
$t("{num}箱 {volume}m³ {weight}kg {quantity}个", {
num: shopData.num || 0,
volume: shopData.wvolume || 0,
weight: shopData.vweight || 0,
quantity: shopData.quantity || 0,
})
}}
</div>
<span v-else
>{{ orderData.sumNum || 0 }}{{ $t("箱") }}
{{ orderData.wvolume || 0 }}m³ {{ orderData.vweight || 0 }}Kg
{{
orderData.warehouseInInfoVO
? orderData.warehouseInInfoVO.quantityAll
: orderData.sumQuantity
}}{{ $t("个") }}</span
>
</el-form-item>
</el-row>
<el-row>
<el-form-item :label="$t('创建时间') + ':'">
<span>{{ parseTime(orderExceptionData.createTime) }}</span>
</el-form-item>
</el-row>
<el-row>
<el-form-item :label="$t('处理时间') + ':'">
<span>{{
parseTime(orderExceptionData.handlerTime) || "/"
}}</span>
</el-form-item>
</el-row>
</div>
</el-form>
<!-- 预付异常的表格-->
<el-table
v-if="orderExceptionData.orderExceptionType == 'order_pay_exception'"
v-loading="loading"
border
:data="preException"
>
<el-table-column :label="$t('品名')" align="center">
<template slot-scope="scope">
{{ scope.row.titleZh + "(" + scope.row.titleEn + ")" }}
</template>
</el-table-column>
<el-table-column :label="$t('箱数')" prop="num" />
<el-table-column :label="$t('体积/重量')">
<template slot-scope="scope">
{{ scope.row.volume + "/" + scope.row.weight }}
</template>
</el-table-column>
<el-table-column :label="$t('收款类型')">
<template>
{{ $t("预付") }}
</template>
</el-table-column>
<el-table-column :label="$t('收入类型')">
<template slot-scope="scope">
<dict-tag
:type="DICT_TYPE.FEE_TYPE"
:value="scope.row.feeType"
></dict-tag>
</template>
</el-table-column>
<el-table-column :label="$t('应收金额')" prop="totalAmount">
<template slot-scope="{ row }">
{{ row.totalAmount }}
{{ currencyMap[row.currencyId] }}
</template>
</el-table-column>
<el-table-column :label="$t('付款人')">
<template slot-scope="{ row }">
<span>
<dict-tag
:type="DICT_TYPE.DRAWEE"
:value="row.paymentUser"
></dict-tag>
</span>
</template>
</el-table-column>
<el-table-column :label="$t('付款状态')" prop="worth">
<template slot-scope="scope">
<dict-tag
:type="DICT_TYPE.ECW_RECEIVABLE_STATE"
:value="scope.row.state"
></dict-tag>
</template>
</el-table-column>
<el-table-column :label="$t('付款状态')" prop="worth">
<template slot-scope="scope">
<dict-tag
:type="DICT_TYPE.ECW_RECEIVABLE_STATE"
:value="scope.row.state"
></dict-tag>
</template>
</el-table-column>
</el-table>
<!-- 单证异常,发货人异常,其他异常的表格 -->
<el-table
v-if="
[
'order_doc_exception',
'order_consignor_exception',
'order_other_exception',
'fee_exception',
'not_shipping_channel_exception',
].indexOf(orderExceptionData.orderExceptionType) > -1
"
v-loading="loading"
border
:data="orderData.orderItemVOList"
>
<el-table-column
:label="$t('序号')"
align="center"
prop="id"
type="index"
>
<template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span>
</template>
</el-table-column>
<el-table-column
:label="$t('中文名')"
align="center"
prop="prodTitleZh"
/>
<el-table-column
:label="$t('英文名')"
align="center"
prop="prodTitleEn"
/>
<el-table-column :label="$t('品牌')" align="center" prop="brandType">
<template slot-scope="scope">
<dict-tag
:type="DICT_TYPE.ECW_IS_BRAND"
:value="scope.row.brandType"
></dict-tag>
</template>
</el-table-column>
<el-table-column :label="$t('填单箱数')" prop="num" />
<!-- v2.0 入仓特性异常 -->
<el-table-column :label="$t('填单特性')" prop="prodAttrIds">
<template slot-scope="scope">
{{ getProdAtrr(scope.row.prodAttrIds) }}
</template>
</el-table-column>
<el-table-column :label="$t('入仓箱数')">
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.cartonsNum
: 0
}}
</template>
</el-table-column>
<!-- v2.0 入仓特性异常 -->
<el-table-column :label="$t('入仓特性')" prop="num">
<template slot-scope="scope">
{{ getProdAtrr(scope.row.warehouseInProdAttrIds) }}
</template>
</el-table-column>
<el-table-column :label="$t('方数')" prop="volume">
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.volume
: 0
}}
</template>
</el-table-column>
<el-table-column :label="$t('重量')" prop="weight">
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.weight
: 0
}}
</template>
</el-table-column>
<el-table-column :label="$t('数量')" prop="quantity">
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.quantityAll
: 0
}}
</template>
</el-table-column>
<el-table-column :label="$t('货值')" prop="worth" />
</el-table>
<!-- 重量超限异常 -->
<el-table
v-if="
['line_weight_exception', 'overweight_exception'].indexOf(
orderExceptionData.orderExceptionType
) > -1
"
border
:data="loopOrderItem"
>
<el-table-column
:label="$t('序号')"
align="center"
prop="id"
type="index"
>
<template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span>
</template>
</el-table-column>
<el-table-column
:label="$t('中文名')"
align="center"
prop="prodTitleZh"
/>
<el-table-column
:label="$t('英文名')"
align="center"
prop="prodTitleEn"
/>
<el-table-column :label="$t('品牌')" align="center" prop="brandType">
<template slot-scope="scope">
<dict-tag
:type="DICT_TYPE.ECW_IS_BRAND"
:value="scope.row.brandType"
></dict-tag>
</template>
</el-table-column>
<el-table-column :label="$t('填单箱数')" prop="num" />
<!-- v2.0 入仓特性异常 -->
<el-table-column :label="$t('填单特性')" prop="prodAttrIds">
<template slot-scope="scope">
{{ getProdAtrr(scope.row.prodAttrIds) }}
</template>
</el-table-column>
<el-table-column :label="$t('入仓箱数')">
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.cartonsNum
: 0
}}
</template>
</el-table-column>
<!-- v2.0 入仓特性异常 -->
<el-table-column :label="$t('入仓特性')" prop="num">
<template slot-scope="scope">
{{ getProdAtrr(scope.row.warehouseInProdAttrIds) }}
</template>
</el-table-column>
<el-table-column :label="$t('方数')" prop="volume">
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.volume
: 0
}}
</template>
</el-table-column>
<el-table-column :label="$t('重量')" prop="weight">
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.weight
: 0
}}
</template>
</el-table-column>
<el-table-column :label="$t('数量')" prop="quantity">
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.quantityAll
: 0
}}
</template>
</el-table-column>
<el-table-column :label="$t('货值')" prop="worth" />
</el-table>
<div
class="overweight_order"
v-if="
([
'overweight_exception',
'channel_packaging_overweight_exception',
].indexOf(orderExceptionData.orderExceptionType) > -1 &&
handlerParams.orderExceptionHandlerResult ==
'update_weight_limit') ||
(['line_weight_exception'].indexOf(
orderExceptionData.orderExceptionType
) > -1 &&
handlerParams.orderExceptionHandlerResult == 'change_line_weight')
"
>
<span
v-if="
orderExceptionData.orderExceptionType == 'line_weight_exception'
"
>{{ $t("路线重量上限") }}(kg)</span
>
<span v-else>{{ $t("空运订单重量上限") }}(kg)</span>
<div style="width: 200px; margin-left: 20px">
<el-input
type="number"
v-model="handlerParams.weightLimit"
></el-input>
</div>
</div>
<!-- 未分配客户经理 -->
<div
v-if="
orderExceptionData.orderExceptionType ==
'not_customer_service_exception'
"
>
<el-row :gutter="20">
<el-col :span="8" v-if="orderData.consignorVO">
<el-descriptions
class="margin-top"
border
:title="$t('发货人')"
:column="1"
:labelStyle="{ width: '150px' }"
>
<el-descriptions-item :label="$t('发货人')">{{
orderData.consignorVO.name
}}</el-descriptions-item>
<el-descriptions-item :label="$t('发货人电话')">
+{{ orderData.consignorVO.countryCode }}
{{ orderData.consignorVO.phone }}
</el-descriptions-item>
<el-descriptions-item :label="$t('发货人邮箱')">{{
orderData.consignorVO.email
}}</el-descriptions-item>
<el-descriptions-item :label="$t('发货人公司名称')">
{{ orderData.consignorVO.company }}
</el-descriptions-item>
</el-descriptions>
</el-col>
<el-col :span="16" v-if="orderData.consigneeVO">
<el-descriptions
class="margin-top"
border
:title="$t('收货人')"
:column="2"
:labelStyle="{ width: '150px' }"
>
<el-descriptions-item :label="$t('收货人')">{{
orderData.consigneeVO.name
}}</el-descriptions-item>
<el-descriptions-item :label="$t('收货人电话')">
+{{ orderData.consigneeVO.countryCode }}
{{ orderData.consigneeVO.phone }}
</el-descriptions-item>
<el-descriptions-item :label="$t('收货人邮箱')">{{
orderData.consigneeVO.email
}}</el-descriptions-item>
<el-descriptions-item :label="$t('收货人公司名称')">
{{ orderData.consigneeVO.company }}
</el-descriptions-item>
<el-descriptions-item :label="$t('收货方式')">
<dict-tag
:type="DICT_TYPE.ECW_HARVEST_METHOD"
:value="orderData.consigneeVO.harvestMethod"
/>
</el-descriptions-item>
<el-descriptions-item :label="$t('收货地区')">
{{ region }}
</el-descriptions-item>
<el-descriptions-item :label="$t('收货地址')">
{{ orderData.consigneeVO.address }}
</el-descriptions-item>
</el-descriptions>
</el-col>
</el-row>
<div class="link-text">
<router-link
:to="{ path: '/customer/query/' + orderData.customerId }"
class="link-type"
>
<span>{{ $t("归属客户") }}:{{ customerData.name || "" }} </span
><span>{{ $t("客户编号") }}:{{ customerData.number || "" }}</span>
</router-link>
</div>
</div>
<el-form
:model="handlerParams"
ref="queryForms"
size="small"
:inline="true"
label-width="120px"
class="card"
>
<el-row
v-if="orderExceptionData.orderExceptionType == 'order_pay_exception'"
>
<el-form-item :label="$t('订单总金额') + ':'">
<span
style="margin-left: 8px"
v-for="(item, key) of orderFee.totalAmountList"
:key="key"
>
{{ item }}
{{ currencyMap[key] }}
</span>
</el-form-item>
</el-row>
<el-row
v-if="orderExceptionData.orderExceptionType == 'order_pay_exception'"
>
<el-form-item :label="$t('应付预付金额') + ':'">
<span
style="margin-left: 8px"
v-for="(item, key) of orderFee.totalPaymentAmount"
:key="key"
>{{ item }}{{ currencyMap[key] }}</span
>
</el-form-item>
</el-row>
<el-row
v-if="orderExceptionData.orderExceptionType == 'order_pay_exception'"
>
<el-col :span="6">
<el-form-item :label="$t('已核销预付金额') + ':'">
<span
v-if="JSON.stringify(orderFee.writeOffAmount) != '{}'"
style="margin-left: 8px"
v-for="(item, key) of orderFee.writeOffAmount"
:key="key"
>{{ item }}{{ currencyMap[key] }}</span
>
<span v-if="JSON.stringify(orderFee.writeOffAmount) == '{}'"
>0</span
>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
:label="$t('已核销预付金额占总金额比例') + ':'"
label-width="320px"
>
{{ orderFee.writeOffAmountScale }}%
</el-form-item>
</el-col>
</el-row>
<el-row
v-if="orderExceptionData.orderExceptionType == 'order_pay_exception'"
>
<el-col :span="6">
<el-form-item :label="$t('预付商品货值') + ':'">
{{ orderFee.paymentGoodsWorth }} {{ $t("人民币") }}
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
:label="$t('预付商品货值占总货值比例') + ':'"
label-width="320px"
>
{{ orderFee.paymentGoodsWorthScale }}%
</el-form-item>
</el-col>
</el-row>
<el-row
v-if="orderExceptionData.orderExceptionType == 'order_pay_exception'"
>
<el-col :span="6">
<el-form-item :label="$t('预付商品方数') + ':'">
{{ orderFee.paymentGoodsVolume }} {{ $t("立方米") }}
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
:label="$t('货值三分之一占运费和清关费总和比例') + ':'"
label-width="320px"
>
{{ orderFee.needWorthScale }}%
</el-form-item>
</el-col>
</el-row>
<el-row
v-if="orderExceptionData.orderExceptionType == 'order_pay_exception'"
>
<el-col :span="6">
<el-form-item :label="$t('订单总方数') + ':'">
{{ orderFee.totalVolume }} {{ $t("立方米") }}
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
:label="$t('预付商品方数占总方数比例') + ':'"
label-width="320px"
>
{{ orderFee.paymentGoodsVolumeScale }}%
</el-form-item>
</el-col>
</el-row>
<el-row
:span="12"
v-if="orderExceptionData.orderExceptionType == 'order_doc_exception'"
>
<el-form-item
v-if="orderExceptionData.orderExceptionStatus != 2"
:label="$t('报关资料') + ':'"
size="medium"
:require="true"
>
<file-upload
v-model="handlerParams.fileList"
:value="orderExceptionData.orderExceptionAttr"
></file-upload>
</el-form-item>
</el-row>
<el-form-item
:label="$t('附件')"
align="center"
v-if="
orderExceptionData.orderExceptionType == 'order_other_exception'
"
>
<template slot-scope="scope">
<div class="filelist">
<span
v-for="(item, index) in handlerParams.fileList"
:key="index"
@click="onClickOpenPreview(item, index)"
>{{ "附件" + (index + 1) }}</span
>
</div>
</template>
</el-form-item>
<!--货物重量异常-->
<el-row
:span="8"
v-if="
[
'goods_weight_exception',
'channel_exception',
'not_shipping_channel_exception',
].indexOf(orderExceptionData.orderExceptionType) > -1
"
>
<el-form-item :label="$t('备注') + ':'" size="medium">
<el-input
style="width: 500px"
type="textarea"
v-model="handlerParams.orderExceptionHandlerRemark"
:disabled="orderExceptionData.orderExceptionStatus == 2"
/>
</el-form-item>
</el-row>
<!-- 渠道超限异常 -->
<div
v-if="
orderExceptionData.orderExceptionType ==
'channel_packaging_overweight_exception'
"
class="card"
>
<div style="font-size: 18px; font-weight: 600">
{{ $t("渠道包装超限品名列表") }}
</div>
<el-table
v-loading="loading"
border
:data="orderData.orderItemVOList"
>
<el-table-column
:label="$t('序号')"
align="center"
prop="id"
type="index"
min-width="30"
>
<template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span>
</template>
</el-table-column>
<el-table-column
:label="$t('中文名')"
align="center"
prop="prodTitleZh"
min-width="50"
/>
<el-table-column
:label="$t('英文名')"
align="center"
prop="prodTitleEn"
min-width="50"
/>
<el-table-column
:label="$t('品牌')"
align="center"
min-width="50"
prop="brandType"
>
<template slot-scope="scope">
<dict-tag
:type="DICT_TYPE.ECW_IS_BRAND"
:value="scope.row.brandType"
></dict-tag>
</template>
</el-table-column>
<el-table-column
:label="$t('填单箱数')"
align="center"
prop="num"
min-width="60"
/>
<!-- v2.0 入仓特性异常 -->
<el-table-column
:label="$t('填单特性')"
align="center"
prop="prodAttrIds"
min-width="60"
>
<template slot-scope="scope">
{{ getProdAtrr(scope.row.prodAttrIds) }}
</template>
</el-table-column>
<el-table-column
:label="$t('入仓箱数')"
align="center"
min-width="60"
>
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.cartonsNum
: 0
}}
</template>
</el-table-column>
<!-- v2.0 入仓特性异常 -->
<el-table-column
:label="$t('入仓特性')"
align="center"
prop="num"
min-width="60"
>
<template slot-scope="scope">
{{ getProdAtrr(scope.row.warehouseInProdAttrIds) }}
</template>
</el-table-column>
<el-table-column
:label="$t('方数')"
align="center"
prop="volume"
min-width="30"
>
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.volume
: 0
}}
</template>
</el-table-column>
<el-table-column
:label="$t('重量')"
prop="weight"
align="center"
min-width="30"
>
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.weight
: 0
}}
</template>
</el-table-column>
<el-table-column
:label="$t('数量')"
prop="quantity"
align="center"
min-width="30"
>
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.quantityAll
: 0
}}
</template>
</el-table-column>
<el-table-column
:label="$t('货值')"
prop="worth"
align="center"
min-width="30"
/>
<el-table-column
:label="$t('运费/全包价')"
prop="quantity"
align="center"
min-width="260"
>
<template slot-scope="scope">
<div v-if="scope.row.charging == 1" class="channel">
<!-- <span v-if="!scope.row.oneSeaFreight">{{$t('全包价')}}:{{$t('未报价')}}</span> -->
<div class="channel">
<div style="width: 80px">{{ $t("全包价") }}:</div>
<div
style="width: 88%"
class="channel"
v-if="
orderExceptionData.orderExceptionStatus == 0 &&
handlerParams.orderExceptionHandlerResult ==
'allow_over'
"
>
<div
v-if="
!scope.row.seaFreightCurrency ||
!scope.row.seaFreightVolume
"
>
/
</div>
<div v-else>
<inputor
default2="0"
v-model.number="scope.row.oneSeaFreight"
type="number"
:placeholder="$t('整数或者两位小数')"
class="w100"
/>
<span
>{{ currencyMap[scope.row.seaFreightCurrency] }} /
{{ unitMap[scope.row.seaFreightVolume] }}</span
>
<!-- <selector v-model="scope.row.seaFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable2 class="w100" />
/ <selector v-model="scope.row.seaFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" defaultable2 class="w100" /> -->
</div>
</div>
<div v-else class="channel">
<span v-if="!scope.row.oneSeaFreight">{{
$t("未报价")
}}</span>
<span v-else
>{{ scope.row.oneSeaFreight }}
{{ currencyMap[scope.row.seaFreightCurrency] }} /
{{ unitMap[scope.row.seaFreightVolume] }}</span
>
</div>
</div>
</div>
<div v-else>
<!-- <span v-if="!scope.row.oneSeaFreight">{{$t('运费')}}:{{$t('未报价')}}</span> -->
<div
class="channel"
v-if="
orderExceptionData.orderExceptionStatus == 0 &&
handlerParams.orderExceptionHandlerResult == 'allow_over'
"
>
<div style="width: 80px">{{ $t("运费") }}:</div>
<div
v-if="
!scope.row.seaFreightCurrency ||
!scope.row.seaFreightVolume
"
>
/
</div>
<div style="width: 88%" class="channel" v-else>
<inputor
default2="0"
v-model.number="scope.row.oneSeaFreight"
type="number"
:placeholder="$t('整数或者两位小数')"
class="w100"
/>
{{ currencyMap[scope.row.seaFreightCurrency] }} /
{{ unitMap[scope.row.seaFreightVolume] }}
<!--template v-else>
<selector v-model="scope.row.seaFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" class="w100" />
/
<selector v-model="scope.row.seaFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" class="w100" />
</template-->
</div>
</div>
<div v-else class="channel">
<span v-if="!scope.row.oneSeaFreight">{{
$t("未报价")
}}</span>
<span v-else
>{{ scope.row.oneSeaFreight }}
{{ currencyMap[scope.row.seaFreightCurrency] }} /
{{ unitMap[scope.row.seaFreightVolume] }}</span
>
</div>
</div>
</template>
</el-table-column>
<el-table-column
:label="$t('清关费')"
prop="quantity"
align="center"
min-width="180"
>
<template slot-scope="scope">
<div class="channel">
<!-- <span v-if="!scope.row.oneClearanceFreight">{{$t('未报价')}}</span> -->
<div
class="channel"
v-if="
orderExceptionData.orderExceptionStatus == 0 &&
handlerParams.orderExceptionHandlerResult == 'allow_over'
"
>
<div
v-if="
!scope.row.clearanceFreightCurrency ||
!scope.row.clearanceFreightVolume
"
>
/
</div>
<div v-else>
<inputor
default2="0"
v-model.number="scope.row.oneClearanceFreight"
type="number"
:placeholder="$t('整数或者两位小数')"
class="w100"
/>
{{ currencyMap[scope.row.clearanceFreightCurrency] }} /
{{ unitMap[scope.row.clearanceFreightVolume] }}
<!--
<selector v-model="scope.row.clearanceFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" class="w100" />
/ <selector v-model="scope.row.clearanceFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" class="w100" />
-->
</div>
</div>
<div v-else>
<span v-if="!scope.row.oneClearanceFreight">{{
$t("未报价")
}}</span>
<span v-else
>{{ scope.row.oneClearanceFreight }}
{{ currencyMap[scope.row.clearanceFreightCurrency] }} /
{{ unitMap[scope.row.clearanceFreightVolume] }}</span
>
</div>
</div>
</template>
</el-table-column>
</el-table>
</div>
<!-- 线路单证异常,重量超限 -->
<div
v-if="
orderExceptionData.orderExceptionType == 'line_loop_exception' ||
((orderExceptionData.orderExceptionType == 'overweight_exception' ||
orderExceptionData.orderExceptionType ==
'line_weight_exception') &&
handlerParams.orderExceptionHandlerResult == 'allow_over')
"
>
<div v-for="row in loopOrderItem" :key="row.orderItemId">
<!-- <span v-if="!scope.row.oneSeaFreight">{{$t('运费')}}:{{$t('未报价')}}</span> -->
<div v-if="orderExceptionData.orderExceptionStatus == 0">
<div>
<el-form-item v-if="unitChangable && handlerParams.orderExceptionHandlerResult != 'confirmed_return'" :label="$t('是否预付')">
<el-radio-group v-model="row.needPay">
<el-radio :label="1">{{ $t("预付") }}</el-radio>
<el-radio :label="0">{{ $t("均可") }}</el-radio>
</el-radio-group>
</el-form-item>
</div>
<div>
<el-form-item v-if="unitChangable && handlerParams.orderExceptionHandlerResult != 'confirmed_return'" :label="$t('单价模式')">
<dict-selector
:type="DICT_TYPE.ECW_PRICE_TYPE"
v-model="row.charging"
form-type="radio"
formatter="number"
/>
</el-form-item>
</div>
<div class="price_list" v-if="handlerParams.orderExceptionHandlerResult != 'confirmed_return'">
<div class="price_label">{{ row.charging == 1 ? $t('全包价') : $t("运费") }}:</div>
<div class="price_list">
<div
v-if="!row.seaFreightCurrency || !row.seaFreightVolume"
>
/
</div>
<div v-else>
<inputor
style="width: 100px"
default2="0"
v-model.number="row.oneSeaFreight"
type="number"
:placeholder="$t('整数或者两位小数')"
/>
<span v-if="!unitChangable">
{{ currencyMap[row.seaFreightCurrency] }} /
{{ unitMap[row.seaFreightVolume] }}
</span>
<template v-else>
<selector style="width:100px" v-model="row.seaFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable2 />
/ <selector style="width:100px" v-model="row.seaFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" defaultable2 />
</template>
</div>
</div>
</div>
<div class="price_list" v-if="(row.charging === 0 || row.charging === '0') && handlerParams.orderExceptionHandlerResult != 'confirmed_return'">
<div class="price_label">{{ $t("清关费") }}:</div>
<div class="price_list">
<div
v-if="
!row.clearanceFreightCurrency ||
!row.clearanceFreightVolume
"
>
/
</div>
<div v-else>
<inputor
style="width: 100px"
default2="0"
v-model.number="row.oneClearanceFreight"
type="number"
:placeholder="$t('整数或者两位小数')"
/>
<span v-if="!unitChangable">
{{ currencyMap[row.clearanceFreightCurrency] }} /
{{ unitMap[row.clearanceFreightVolume] }}
</span>
<template v-else>
<selector style="width:100px" v-model="row.clearanceFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" />
/ <selector style="width:100px" v-model="row.clearanceFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" />
</template>
</div>
</div>
</div>
</div>
<div v-else>
<div class="price_list">
<div v-if="!row.oneSeaFreight">
<span class="price_label">{{ $t("运费") }}:</span>
<span>{{ $t("未报价") }}</span>
</div>
<div v-else>
<span class="price_label">{{ $t("运费") }}:</span>
<span
>{{ row.oneSeaFreight }}
{{ currencyMap[row.seaFreightCurrency] }} /
{{ unitMap[row.seaFreightVolume] }}</span
>
</div>
</div>
<div class="price_list">
<div v-if="!row.oneClearanceFreight">
<span class="price_label">{{ $t("清关费") }}:</span>
<span>{{ $t("未报价") }}</span>
</div>
<div v-else>
<span class="price_label">{{ $t("清关费") }}:</span>
<span
>{{ row.oneClearanceFreight }}
{{ currencyMap[row.clearanceFreightCurrency] }} /
{{ unitMap[row.clearanceFreightVolume] }}</span
>
</div>
</div>
</div>
</div>
</div>
<!--预付异常的备选需要根据接口数据过滤-->
<el-row
v-if="orderExceptionData.orderExceptionType == 'order_pay_exception'"
>
<el-form-item :label="$t('处理结果') + ':'" required>
<el-select
v-model="handlerParams.orderExceptionHandlerResult"
:placeholder="$t('请选择')"
clearable
:disabled="orderExceptionData.orderExceptionStatus == 2"
>
<template
v-for="dict in getDictDatas(
orderExceptionData.orderExceptionType + '_result'
)"
>
<el-option
:disabled="
orderFee &&
orderFee.result &&
orderFee.result.indexOf(dict.value) == -1
"
:key="dict.value"
:label="$l(dict, 'label')"
:value="dict.value"
/>
</template>
</el-select>
</el-form-item>
</el-row>
<el-row
v-else-if="
[
'order_miss_exception',
'order_superfluous_goods_exception',
'order_in_water_exception',
'order_damage_exception',
'goods_weight_exception',
].indexOf(orderExceptionData.orderExceptionType) == -1
"
>
<el-form-item :label="$t('处理结果') + ':'" required>
<el-select
v-model="handlerParams.orderExceptionHandlerResult"
:placeholder="$t('请选择')"
clearable
@change="handlerResultChange"
:disabled="orderExceptionData.orderExceptionStatus == 2"
>
<template
v-for="dict in getDictDatas(
orderExceptionData.orderExceptionType + '_result'
)"
>
<el-option
:disabled="dict.value == 'pending'"
:key="dict.value"
:label="$l(dict, 'label')"
:value="dict.value"
/>
</template>
</el-select>
</el-form-item>
</el-row>
<!-- v1.7新增商品异常 -->
<div
v-if="
shopData &&
orderExceptionData.orderExceptionType == 'goods_add_exception' &&
handlerParams.orderExceptionHandlerResult == 'goods_exists'
"
>
<el-row :gutter="24">
<el-col :span="6">
<el-form-item :label="$t('新增品名中文') + ':'">
{{ shopData.prodTitleZh || "" }}
</el-form-item>
</el-col>
<el-form-item
label="中文品名"
:rules="{
required: true,
message: $t('请选择产品'),
trigger: 'blur',
}"
class="mb-0 mr-0"
>
<product-selector
:status="0"
:disabled="orderExceptionData.orderExceptionStatus == 2"
@hook:mounted="onTableMounted"
v-model="productId2"
@change="onProductChange($event)"
/>
</el-form-item>
</el-row>
<el-row :gutter="24">
<el-col :span="6">
<el-form-item :label="$t('新增品名英文') + ':'">
{{ shopData.prodTitleEn || "" }}
</el-form-item>
</el-col>
<el-form-item
label="英文品名"
:rules="{
required: true,
message: $t('请选择产品'),
trigger: 'blur',
}"
class="mb-0 mr-0"
>
<product-selector
lang="En"
:status="0"
v-model="productId1"
:disabled="orderExceptionData.orderExceptionStatus == 2"
@change="onProductChange($event)"
/>
</el-form-item>
</el-row>
</div>
<el-row
v-if="
orderExceptionData.orderExceptionType ==
'not_customer_service_exception' &&
handlerParams.orderExceptionHandlerResult == 'allocate'
"
>
<el-form-item :label="$t('移交客户经理') + ':'" required>
<el-select
v-model="handlerParams.customerService"
:placeholder="$t('请选择客户经理')"
clearable
:disabled="orderExceptionData.orderExceptionStatus == 2"
>
<el-option
v-for="dict in customerServiceList"
:key="dict.id"
:label="dict.nickname"
:value="dict.id"
/>
</el-select>
</el-form-item>
</el-row>
<!-- 代收货款 时需要填写代收金额 -->
<el-row v-if="handlerParams.orderExceptionHandlerResult == 'cod'">
<el-form-item :label="$t('代收金额') + ':'" size="medium" required>
<el-input
class="w-100"
type="text"
v-model="handlerParams.amount"
:disabled="orderExceptionData.orderExceptionStatus == 2"
/>
<!-- <el-select v-model="handlerParams.currency" clearable>
<el-option v-for="dict in getDictDatas('shipping_price_unit') "
:key="dict.value" :label="dict.label" :value="dict.value"/>
</el-select> -->{{ getCurrencyLabel(handlerParams.currency) }}
<!-- <dict-tag type="shipping_price_unit" v-model="handlerParams.currency" class="w-100 ml-10" /> -->
</el-form-item>
</el-row>
<el-row
:span="8"
v-if="
orderExceptionData.orderExceptionType ==
'order_pick_up_exception' &&
handlerParams.orderExceptionHandlerResult == 'cost_required'
"
>
<el-form-item :label="$t('送货费用') + ':'" size="medium">
<el-input
style="width: 100px"
type="text"
v-model="handlerParams.amount"
:disabled="orderExceptionData.orderExceptionStatus == 2"
/>
<el-select
v-model="handlerParams.currency"
style="width: 100px; margin-left: 10px"
clearable
:disabled="orderExceptionData.orderExceptionStatus == 2"
>
<el-option
v-for="dict in currencyList"
:key="dict.id"
:label="dict.titleZh"
:value="dict.id"
/>
</el-select>
</el-form-item>
</el-row>
<!--not_shipping_channel_exception 不可出渠道异常-->
<el-row
:span="8"
v-if="
[
'not_customer_service_exception',
'goods_add_exception',
'goods_weight_exception',
'channel_exception',
'not_shipping_channel_exception',
].indexOf(orderExceptionData.orderExceptionType) == -1
"
>
<el-form-item :label="$t('备注') + ':'" size="medium">
<el-input
style="width: 500px"
type="textarea"
v-model="handlerParams.orderExceptionHandlerRemark"
:disabled="orderExceptionData.orderExceptionStatus == 2"
/>
</el-form-item>
</el-row>
<div
v-if="
[
'order_miss_exception',
'order_superfluous_goods_exception',
'order_in_water_exception',
'order_damage_exception',
'goods_weight_exception',
].indexOf(orderExceptionData.orderExceptionType) > -1
"
>
<el-row>
<el-form-item :label="$t('状态') + ':'">
<el-radio-group
v-model="handlerParams.orderExceptionStatus"
@change="changeExceptionStatus"
:disabled="orderExceptionData.orderExceptionStatus == 2"
>
<el-radio label="1">{{ $t("处理中") }}</el-radio>
<el-radio label="2">{{ $t("已处理") }}</el-radio>
</el-radio-group>
</el-form-item>
</el-row>
<el-row>
<el-form-item
:label="$t('处理结果') + ':'"
required
v-if="handlerParams.orderExceptionStatus == 2"
>
<el-select
v-model="handlerParams.orderExceptionHandlerResult"
:placeholder="$t('请选择')"
clearable
:disabled="orderExceptionData.orderExceptionStatus == 2"
>
<el-option
v-for="dict in getDictDatas(
orderExceptionData.orderExceptionType + '_don_result'
)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item
:label="$t('赔付金额') + ':'"
size="medium"
required
v-if="
orderExceptionData.orderExceptionType ==
'goods_weight_exception' &&
handlerParams.orderExceptionStatus == 2 &&
handlerParams.orderExceptionHandlerResult != 'customer_not_pay'
"
>
<el-input
style="width: 100px"
type="text"
v-model="handlerParams.amount"
:disabled="orderExceptionData.orderExceptionStatus == 2"
/>
<el-select
v-model="handlerParams.currency"
style="width: 100px; margin-left: 10px"
clearable
:disabled="orderExceptionData.orderExceptionStatus == 2"
>
<el-option
v-for="dict in currencyList"
:key="dict.id"
:label="dict.titleZh"
:value="dict.id"
/>
</el-select>
</el-form-item>
<el-form-item
:label="$t('赔付金额') + ':'"
size="medium"
required
v-else-if="
handlerParams.orderExceptionStatus == 2 &&
orderExceptionData.orderExceptionType !=
'goods_weight_exception'
"
>
<el-input
style="width: 100px"
type="text"
v-model="handlerParams.amount"
:disabled="orderExceptionData.orderExceptionStatus == 2"
/>
<el-select
v-model="handlerParams.currency"
style="width: 100px; margin-left: 10px"
clearable
:disabled="orderExceptionData.orderExceptionStatus == 2"
>
<el-option
v-for="dict in currencyList"
:key="dict.id"
:label="dict.titleZh"
:value="dict.id"
/>
</el-select>
</el-form-item>
</el-row>
<div v-if="handlerParams.orderExceptionStatus == 1">
<el-form-item :label="$t('查明原因') + ':'" required>
<el-select
v-model="handlerParams.orderExceptionHandlerResult"
clearable
:disabled="orderExceptionData.orderExceptionStatus == 2"
>
<el-option
v-for="dict in getDictDatas(
orderExceptionData.orderExceptionType + '_result'
)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</div>
</div>
<!-- <el-form-item :label="$t('查明原因')+':'" required v-if="orderExceptionData.orderExceptionType=='not_shipping_channel_exception'">
<el-select v-model="handlerParams.orderExceptionHandlerResult" clearable :disabled="orderExceptionData.orderExceptionStatus==2">
<el-option v-for="dict in getDictDatas(orderExceptionData.orderExceptionType+'_result')"
:key="dict.value" :label="dict.label" :value="dict.value"/>
</el-select>
</el-form-item> -->
<!-- 不可出渠道异常,渠道异常 not_shipping_channel_exception-->
<div
v-if="
(orderExceptionData.orderExceptionType ==
'not_shipping_channel_exception' &&
handlerParams.orderExceptionHandlerResult == 'change_channel') ||
(orderExceptionData.orderExceptionType == 'channel_exception' &&
handlerParams.orderExceptionHandlerResult ==
'set_shipment_channel')
"
>
<el-form-item
:label="$t('出货渠道')"
prop="channelId"
v-if="
getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, orderData.transportId)
.cssClass == 'channel'
"
>
<!--嵌套一个form来脱离disabled控制-->
<el-form>
<el-select
v-model="handlerParams.channelId"
:placeholder="$t('请选择出货渠道')"
@change="calculationPrice"
>
<el-option
v-for="item in channelList"
:key="item.channelId"
:label="$i18n.locale == 'zh_CN' ? item.nameZh : item.nameEn"
:value="item.channelId"
/>
</el-select>
<!--<selector
v-model="handlerParams.channelId"
:options="channelList"
value-field="channelId"
:label-field="$l(null, 'name')"
></selector> -->
</el-form>
</el-form-item>
<el-form-item :label="$t('选择线路')" prop="lineId">
<el-input
:value="
selectLine
? $l(selectLine, 'startTitle') +
' > ' +
$l(selectLine, 'destTitle')
: ''
"
disabled
:placeholder="$t('请在右侧选择线路')"
></el-input>
</el-form-item>
<!--select是原生组件,不受el-form的disabled控制-->
<select
size="5"
v-model="handlerParams.lineId"
style="
min-width: 300px;
border: 1px solid #dcdfe6;
border-radius: 4px;
"
@change="changeLined"
>
<option
v-for="item in routerList"
:value="item.id"
:key="item.id"
:disabled="orderExceptionData.orderExceptionStatus > 0"
>
{{ $l(item, "startTitle") }} >>
{{ $l(item, "destTitle") }} (<dict-tag
:type="DICT_TYPE.ECW_TRANSPORT_TYPE"
:value="item.transportType"
></dict-tag
>)
</option>
</select>
</div>
<!-- 不可出渠道异常 -->
<div
v-if="
orderExceptionData.orderExceptionType ==
'not_shipping_channel_exception' &&
(handlerParams.orderExceptionHandlerResult == 'change_channel' ||
handlerParams.orderExceptionHandlerResult == 'continue_channel')
"
class="card"
>
<el-table
v-loading="loading"
border
:data="orderData.orderItemVOList"
>
<el-table-column
:label="$t('序号')"
align="center"
prop="id"
type="index"
min-width="30"
>
<template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span>
</template>
</el-table-column>
<el-table-column
:label="$t('中文名')"
align="center"
prop="prodTitleZh"
min-width="50"
/>
<el-table-column
:label="$t('英文名')"
align="center"
prop="prodTitleEn"
min-width="50"
/>
<el-table-column
:label="$t('品牌')"
align="center"
min-width="50"
prop="brandType"
>
<template slot-scope="scope">
<dict-tag
:type="DICT_TYPE.ECW_IS_BRAND"
:value="scope.row.brandType"
></dict-tag>
</template>
</el-table-column>
<el-table-column
:label="$t('填单箱数')"
align="center"
prop="num"
min-width="60"
/>
<!-- v2.0 入仓特性异常 -->
<el-table-column
:label="$t('填单特性')"
align="center"
prop="prodAttrIds"
min-width="60"
>
<template slot-scope="scope">
{{ getProdAtrr(scope.row.prodAttrIds) }}
</template>
</el-table-column>
<el-table-column
:label="$t('入仓箱数')"
align="center"
min-width="60"
>
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.cartonsNum
: 0
}}
</template>
</el-table-column>
<!-- v2.0 入仓特性异常 -->
<el-table-column
:label="$t('入仓特性')"
align="center"
prop="num"
min-width="60"
>
<template slot-scope="scope">
{{ getProdAtrr(scope.row.warehouseInProdAttrIds) }}
</template>
</el-table-column>
<el-table-column
:label="$t('方数')"
align="center"
prop="volume"
min-width="30"
>
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.volume
: 0
}}
</template>
</el-table-column>
<el-table-column
:label="$t('重量')"
prop="weight"
align="center"
min-width="30"
>
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.weight
: 0
}}
</template>
</el-table-column>
<el-table-column
:label="$t('数量')"
prop="quantity"
align="center"
min-width="30"
>
<template slot-scope="scope">
{{
scope.row.warehouseInInfoVO
? scope.row.warehouseInInfoVO.quantityAll
: 0
}}
</template>
</el-table-column>
<el-table-column
:label="$t('货值')"
prop="worth"
align="center"
min-width="30"
/>
<el-table-column
:label="$t('运费/全包价')"
prop="quantity"
align="center"
min-width="260"
v-if="
handlerParams.orderExceptionHandlerResult == 'continue_channel'
"
>
<template slot-scope="scope">
<div v-if="scope.row.charging == 1" class="channel">
<!-- <span v-if="!scope.row.oneSeaFreight">{{$t('全包价')}}:{{$t('未报价')}}</span> -->
<div class="channel">
<div style="width: 80px">{{ $t("全包价") }}:</div>
<div
style="width: 88%"
class="channel"
v-if="orderExceptionData.orderExceptionStatus == 0"
>
<div
v-if="
!scope.row.seaFreightCurrency ||
!scope.row.seaFreightVolume
"
>
/
</div>
<div v-else>
<inputor
default2="0"
v-model.number="scope.row.oneSeaFreight"
type="number"
:placeholder="$t('整数或者两位小数')"
class="w100"
/>
<span
>{{ currencyMap[scope.row.seaFreightCurrency] }} /
{{ unitMap[scope.row.seaFreightVolume] }}</span
>
<!-- <selector v-model="scope.row.seaFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable2 class="w100" />
/ <selector v-model="scope.row.seaFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" defaultable2 class="w100" /> -->
</div>
</div>
<div v-else class="channel">
<span v-if="!scope.row.oneSeaFreight">{{
$t("未报价")
}}</span>
<span v-else
>{{ scope.row.oneSeaFreight }}
{{ currencyMap[scope.row.seaFreightCurrency] }} /
{{ unitMap[scope.row.seaFreightVolume] }}</span
>
</div>
</div>
</div>
<div v-else>
<!-- <span v-if="!scope.row.oneSeaFreight">{{$t('运费')}}:{{$t('未报价')}}</span> -->
<div
class="channel"
v-if="orderExceptionData.orderExceptionStatus == 0"
>
<div style="width: 80px">{{ $t("运费") }}:</div>
<div style="width: 88%" class="channel">
<div
v-if="
!scope.row.seaFreightCurrency ||
!scope.row.seaFreightVolume
"
>
/
</div>
<div v-else>
<inputor
default2="0"
v-model.number="scope.row.oneSeaFreight"
type="number"
:placeholder="$t('整数或者两位小数')"
class="w100"
/>
<span
>{{ $t("运费") }}:{{ scope.row.oneSeaFreight }}
{{ currencyMap[scope.row.seaFreightCurrency] }} /
{{ unitMap[scope.row.seaFreightVolume] }}</span
>
<!-- <selector v-model="scope.row.seaFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable2 class="w100" />
/ <selector v-model="scope.row.seaFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" defaultable2 class="w100" /> -->
</div>
</div>
</div>
<div v-else class="channel">
<span v-if="!scope.row.oneSeaFreight"
>{{ $t("运费") }}:{{ $t("未报价") }}</span
>
<span v-else
>{{ $t("运费") }}:{{ scope.row.oneSeaFreight }}
{{ currencyMap[scope.row.seaFreightCurrency] }} /
{{ unitMap[scope.row.seaFreightVolume] }}</span
>
</div>
</div>
</template>
</el-table-column>
<el-table-column
:label="$t('清关费')"
prop="quantity"
align="center"
min-width="180"
v-if="
handlerParams.orderExceptionHandlerResult == 'continue_channel'
"
>
<template slot-scope="scope">
<div class="channel">
<!-- <span v-if="!scope.row.oneClearanceFreight">{{$t('未报价')}}</span> -->
<div
class="channel"
v-if="orderExceptionData.orderExceptionStatus == 0"
>
<div
v-if="
!scope.row.clearanceFreightCurrency ||
!scope.row.clearanceFreightVolume
"
>
/
</div>
<div v-else>
<inputor
default2="0"
v-model.number="scope.row.oneClearanceFreight"
type="number"
:placeholder="$t('整数或者两位小数')"
class="w100"
/>
<span
>{{ currencyMap[scope.row.clearanceFreightCurrency] }} /
{{ unitMap[scope.row.clearanceFreightVolume] }}</span
>
</div>
</div>
<div v-else>
<span v-if="!scope.row.oneClearanceFreight">{{
$t("未报价")
}}</span>
<span v-else
>{{ scope.row.oneClearanceFreight }}
{{ currencyMap[scope.row.clearanceFreightCurrency] }} /
{{ unitMap[scope.row.clearanceFreightVolume] }}</span
>
</div>
</div>
</template>
</el-table-column>
<el-table-column
:label="$t('运费/全包价')"
prop="quantity"
align="center"
min-width="220"
v-if="
handlerParams.orderExceptionHandlerResult == 'change_channel'
"
>
<template slot-scope="scope">
<div v-if="scope.row.charging == 1" class="channel">
<span v-if="!scope.row.oneSeaFreight"
>{{ $t("全包价") }}:{{ $t("未报价") }}</span
>
<span v-else
>{{ $t("全包价") }}:{{ scope.row.oneSeaFreight }}
{{ currencyMap[scope.row.seaFreightCurrency] }} /
{{ unitMap[scope.row.seaFreightVolume] }}</span
>
<!-- <el-button v-if="orderExceptionData.orderExceptionStatus==0" type="primary" plain @click="routeToPrice(scope.row,1)">{{!scope.row.oneSeaFreight?$t('报价'):$t('修改报价')}}</el-button> -->
</div>
<div v-else class="channel">
<span v-if="!scope.row.oneSeaFreight"
>{{ $t("运费") }}:{{ $t("未报价") }}</span
>
<span v-else
>{{ $t("运费") }}:{{ scope.row.oneSeaFreight }}
{{ currencyMap[scope.row.seaFreightCurrency] }} /
{{ unitMap[scope.row.seaFreightVolume] }}</span
>
<!-- <el-button v-if="orderExceptionData.orderExceptionStatus==0" type="primary" plain @click="routeToPrice(scope.row,1)">{{!scope.row.oneSeaFreight?$t('报价'):$t('修改报价')}}</el-button> -->
</div>
</template>
</el-table-column>
<el-table-column
:label="$t('清关费')"
prop="quantity"
align="center"
min-width="260"
v-if="
handlerParams.orderExceptionHandlerResult == 'change_channel'
"
>
<template slot-scope="scope">
<div class="channel">
<span v-if="!scope.row.oneClearanceFreight">{{
$t("未报价")
}}</span>
<span v-else
>{{ scope.row.oneClearanceFreight }}
{{ currencyMap[scope.row.clearanceFreightCurrency] }} /
{{ unitMap[scope.row.clearanceFreightVolume] }}</span
>
<!-- <el-button v-if="orderExceptionData.orderExceptionStatus==0" type="primary" plain @click="routeToPrice(scope.row,2)">{{!scope.row.oneClearanceFreight?$t('报价'):$t('修改报价')}}</el-button> -->
</div>
</template>
</el-table-column>
</el-table>
</div>
<!-- 渠道异常 -->
<div
v-if="
orderExceptionData.orderExceptionType == 'channel_exception' &&
handlerParams.orderExceptionHandlerResult == 'set_shipment_channel'
"
>
<div v-for="row in orderData.orderItemVOList" :key="row.orderItemId">
<div v-if="row.charging == 1">
<el-form-item
style="margin-left: 40px"
:label="$t('全包价成交单价') + ':'"
size="medium"
>
<span v-if="!row.oneSeaFreight">{{ $t("未报价") }}</span>
<span v-else
>{{ row.oneSeaFreight }}
{{ currencyMap[row.seaFreightCurrency] }} /
{{ unitMap[row.seaFreightVolume] }}</span
>
</el-form-item>
</div>
<div v-else class="feeList">
<el-form-item :label="$t('运费成交单价') + ':'" size="medium">
<span v-if="!row.oneSeaFreight">{{ $t("未报价") }}</span>
<span v-else
>{{ row.oneSeaFreight }}
{{ currencyMap[row.seaFreightCurrency] }} /
{{ unitMap[row.seaFreightVolume] }}</span
>
</el-form-item>
<el-form-item :label="$t('清关费成交单价') + ':'" size="medium">
<span v-if="!row.oneClearanceFreight">{{ $t("未报价") }}</span>
<span v-else
>{{ row.oneClearanceFreight }}
{{ currencyMap[row.clearanceFreightCurrency] }} /
{{ unitMap[row.clearanceFreightVolume] }}</span
>
</el-form-item>
</div>
</div>
</div>
<el-form-item
v-if="
orderExceptionData.orderExceptionType ==
'not_shipping_channel_exception' &&
handlerParams.orderExceptionHandlerResult == 'change_channel' &&
orderExceptionData.reason
"
:label="$t('审核驳回原因') + ':'"
size="medium"
>
<span>{{ orderExceptionData.orderExceptionNotes }}</span>
</el-form-item>
</el-form>
</el-card>
<!-- 只有不需要预付才需要审核 -->
<template
v-if="showWorkFlow && orderExceptionData.orderExceptionStatus != 2"
>
<div class="page-title">{{ $t("审批流程") }}</div>
<work-flow xmlkey="commission_config" v-model="handlerParams.ccIds" />
</template>
<div slot="footer" class="dialog-footer">
<!-- bpmStatus
异常流程状态,1处理中2通过3不通过4已取消
待审核可能没有bpmStatus字段
-->
<template
v-if="
orderExceptionData.bpmStatus == 1 ||
(orderExceptionData.bpmId && !orderExceptionData.bpmStatus)
"
>
<el-button
v-if="
[
'channel_packaging_overweight_exception',
'line_weight_exception',
'overweight_exception',
].indexOf(orderExceptionData.orderExceptionType) > -1
"
type="primary"
@click="
$router.push(
`/bpm/process-instance/detail?id=` + orderExceptionData.bpmId
)
"
>{{ $t("重量超限改价审核中") }}</el-button
>
<el-button
v-else
type="primary"
@click="
$router.push(
`/bpm/process-instance/detail?id=` + orderExceptionData.bpmId
)
"
>{{ $t("审核中") }}</el-button
>
<el-button
v-if="
[
'channel_packaging_overweight_exception',
'line_weight_exception',
'overweight_exception',
].indexOf(orderExceptionData.orderExceptionType) > -1
"
plain
type="primary"
@click="cancelAudit"
>{{ $t("取消重量超限改价审核") }}</el-button
>
<el-button v-else plain type="primary" @click="cancelAudit">{{
$t("取消审核")
}}</el-button>
<el-button
plain
type="primary"
@click="$store.dispatch('tagsView/delCurrentView')"
>{{ $t("返回") }}</el-button
>
</template>
<template v-else-if="orderExceptionData.orderExceptionStatus == 2">
<el-button
plain
type="primary"
@click="$store.dispatch('tagsView/delCurrentView')"
>{{ $t("返回") }}</el-button
>
</template>
<template v-else>
<el-button type="primary" @click="submitForm">{{
$t("提交")
}}</el-button>
<el-button
plain
type="primary"
@click="$store.dispatch('tagsView/delCurrentView')"
>{{ $t("取消") }}</el-button
>
</template>
</div>
<div class="preview" v-if="IsPreview">
<file-preview
:key="timers"
:TragetPic="TragetPic"
:FilePreAll="FilePreAll"
@Close="onClickClosePreview"
></file-preview>
</div>
</div>
</template>
<script>
import FileUpload from "@/components/FileUpload";
import { getDictData, getDictDatas } from "@/utils/dict";
import { getOrder } from "@/api/ecw/order";
import FilePreview from "@/components/FilePreview";
import { getCurrencyList } from "@/api/ecw/currency";
import {
getExceptionById,
handlerExceptionByExceptionId,
getOrderItemById,
getOrderFeeById,
getOrderExcptionResult,
getOrderExceptionChannelPriceList,
} from "@/api/ecw/orderException";
import { getFirstReceivableListByOrderId } from "@/api/ecw/financial";
import WorkFlow from "@/components/WorkFlow";
import { listByIds } from "@/api/ecw/region";
import { listServiceUser } from "@/api/system/user";
import { cancelProcessInstance } from "@/api/bpm/processInstance";
import { getCustomer } from "@/api/ecw/customer";
import ProductSelector from "@/components/ProductSelector";
import { getProductAttrList } from "@/api/ecw/productAttr";
import { getChannelList } from "@/api/ecw/channel";
import Selector from "@/components/Selector";
import { openedRouterList as getOpenedRouterList } from "@/api/ecw/warehouse";
import { getTradeCityList } from "@/api/ecw/region";
import { getUnitList } from "@/api/ecw/unit";
import { getProduct, calculationPrice } from "@/api/ecw/product";
import { getProductPriceGetPrice } from "@/api/ecw/productPrice";
import Inputor from "@/components/Inputor";
export default {
name: "EcwOrderPrepaydeal",
components: {
FileUpload,
WorkFlow,
FilePreview,
ProductSelector,
Selector,
Inputor,
},
data() {
return {
// 遮罩层
loading: false,
orderExceptionData: {},
types: "package,bag",
importance: 1,
orderData: {},
orderId: 0,
orderExceptionId: 0,
handlerParams: {
orderExceptionId: 0,
orderExceptionStatus: "1",
orderExceptionHandlerResult: "",
},
//发货/收货人信息
consigneeData: [],
routerList: [],
multipleSelection: [],
preException: [],
orderFee: [],
currencyList: [],
showWorkFlow: false, // 是否显示工作流
IsPreview: false, // 控制预览弹窗字段
timers: "", //时间戳
FilePreAll: [], // 预览数组
TragetPic: {},
region: "",
customerData: {}, //归属客户
customerServiceList: [], //客户经理
productId1: null,
productId2: null,
productAttrList: [], // 商品属性
channelName: "/",
channelList: [], // 出货取到
tradeCityList: [],
unitList: [],
selectLine: null,
calculating: false, // 是否正在计算费用,防止频繁重新请求,
loopOrderItem: [], //线路单询异常清关费,
// 単询异常是否可以更改单位
unitChangable: false
};
},
activated() {
this.handlerParams = {
orderExceptionId: 0,
orderExceptionStatus: "1",
orderExceptionHandlerResult: "",
};
if (this.$route.query.id) {
console.log(this.$route.query.id);
this.orderExceptionId = this.$route.query.id;
this.handlerParams.orderExceptionId = this.$route.query.id;
this.getList();
}
},
async created() {
getUnitList().then((res) => (this.unitList = res.data));
this.channelList = (await getChannelList()).data;
this.productAttrList = (await getProductAttrList()).data;
listServiceUser().then((r) => {
this.customerServiceList = r.data;
});
await getCurrencyList().then((res) => (this.currencyList = res.data));
this.tradeCityList = (await getTradeCityList()).data;
if (this.$route.query.id) {
this.orderExceptionId = this.$route.query.id;
this.handlerParams.orderExceptionId = this.$route.query.id;
this.getList();
}
},
watch: {
"handlerParams.orderExceptionHandlerResult"(val) {
console.log(val);
if (val == "no_pay" || val == "allow_over") {
this.showWorkFlow = true;
} else if (val == "continue_channel") {
this.showWorkFlow = true;
} else this.showWorkFlow = false;
// 如果是代收货款,则给默认单位
if (
val == "cod" &&
this.orderExceptionData.orderExceptionAmountCurrencyId
) {
this.$set(
this.handlerParams,
"currency",
this.orderExceptionData.orderExceptionAmountCurrencyId
);
}
if (
this.orderExceptionData.orderExceptionType ==
"not_shipping_channel_exception"
) {
//初始话渠道数据
this.calculationPrice();
}
},
"orderData.consigneeVO"(val) {
if (!val) return "-";
listByIds({ ids: [val.country, val.province, val.city].join(",") }).then(
(res) => {
console.log("listById", res);
let region = "";
res.data.forEach((item) => {
region +=
" " +
(this.$i18n.locale == "zh_CN" ? item.titleZh : item.titleEn);
});
this.region = region;
}
);
},
"orderData.channelId"() {
this.getChannel();
},
},
computed: {
currencyMap() {
let map = {};
this.currencyList.forEach((item) => {
map[item.id] = this.$l(item, "title");
});
return map;
},
unitMap() {
let map = {};
this.unitList.forEach((item) => {
map[item.id] = this.$l(item, "title");
});
return map;
},
// 是否已完成入仓
inWarehouse() {
return (
(!!this.orderData.inWarehouseState &&
this.orderData.inWarehouseState > 201) ||
this.orderData.shipmentState > 0
);
},
selectedRouter() {
console.log(this.handlerParams.lineId);
// otherService 1 集运服务 2 送货上门 3 非控货订单代收货款 4 海外仓 5 提货异常
if (!this.handlerParams.lineId) return null;
return this.routerList.find(
(item) => item.id == this.handlerParams.lineId
);
},
shopData() {
if (
this.orderExceptionData.orderItemId &&
this.orderData &&
this.orderData.orderItemVOList
) {
if (
this.orderExceptionData.orderExceptionType == "goods_add_exception" &&
!this.handlerParams.productId
) {
this.handlerParams.productId = this.orderData.orderItemVOList.find(
(item) => item.orderItemId == this.orderExceptionData.orderItemId
).prodId;
// this.productId1 = this.handlerParams.productId
// this.productId2 = this.handlerParams.productId
}
return this.orderData.orderItemVOList.find(
(item) => item.orderItemId == this.orderExceptionData.orderItemId
);
}
},
getDictData() {
return (type, value) => getDictData(type, value) || {};
},
exportCityList() {
return this.tradeCityList.filter(
(item) => item.type == 2 || item.type == 3
);
},
importCityList() {
return this.tradeCityList.filter(
(item) => item.type == 1 || item.type == 3
);
},
exportCityIds() {
let ids = [];
this.exportCityList.forEach((item) => {
ids.push(item.id);
});
return ids;
},
importCityIds() {
let ids = [];
this.importCityList.forEach((item) => {
ids.push(item.id);
});
return ids;
},
},
methods: {
changeLined(e) {
this.selectLine = this.routerList.find(
(item) => item.id == this.handlerParams.lineId
);
this.calculationPrice();
},
//getDictData,
onTableMounted(e) {
// console.warn('onTableMounted', e)
},
getProdAtrr(ids) {
if (!ids) return "";
let attr = [];
let attrIds = ids.split(",");
this.productAttrList.forEach((item) => {
if (
attrIds.indexOf(item.id) > -1 ||
attrIds.indexOf(item.id + "") > -1
) {
attr.push(this.$l(item, "attrName"));
}
});
return attr.join(",");
},
/** 查询列表 */
getCurrencyLabel(id) {
var label = this.currencyList.filter((item) => item.id == id);
if (label.length > 0)
return this.$i18n.locale == "zh_CN"
? label[0].titleZh
: label[0].titleEn;
return "";
},
getChannel() {
if (
!this.order ||
!this.order.channelId ||
this.order.transportId == 1 ||
this.order.transportId == 2
)
return;
getChannel(this.order.channelId).then((res) => {
this.channelName =
this.$i18n.locale == "zh_CN" ? res.data.nameZh : res.data.nameEn;
});
},
getList() {
let that = this;
that.loading = true;
getExceptionById(that.orderExceptionId).then((response) => {
that.orderExceptionData = response.data;
that.loading = false;
that.orderId = response.data.orderId;
that.getOrderData();
if (that.orderExceptionData.orderExceptionAttr) {
that.handlerParams.fileList =
that.orderExceptionData.orderExceptionAttr.split(",");
}
if (that.orderExceptionData.orderExceptionRemark) {
that.orderExceptionData.orderExceptionRemark = JSON.parse(
that.orderExceptionData.orderExceptionRemark
);
}
if (that.orderExceptionData.additionalJson) {
that.orderExceptionData.additionalJson = JSON.parse(
that.orderExceptionData.additionalJson
);
}
// if(response.data.hasOwnProperty('orderItemId')){
// that.getShopData(response.data.orderItemId)
// }
if (
that.orderExceptionData.orderExceptionType == "order_pay_exception"
) {
that.getOrderFeeByIdData();
that.getPreExceptionData();
}
if (that.orderExceptionData.orderExceptionStatus > 0) {
that.getOrderExcptionResult();
that.$set(
that.handlerParams,
"orderExceptionStatus",
that.orderExceptionData.orderExceptionStatus
);
}
});
},
// 获取路线
getOpenedRouterList() {
let params = {};
if (
this.orderData.departureVO &&
this.orderData.departureVO.departureId
) {
params.startCityId = this.orderData.departureVO.departureId;
}
if (
this.orderData.objectiveVO &&
this.orderData.objectiveVO.objectiveId
) {
params.destCityId = this.orderData.objectiveVO.objectiveId;
}
if (this.orderData.transportId) {
params.transportType = this.orderData.transportId;
}
// 始发,目的和运输方式都没有的时候不获取
if (!params.startCityId && !params.destCityId && !params.transportType)
return false;
getOpenedRouterList(params).then((res) => {
this.routerList = res.data.filter((item) => {
return (
this.exportCityIds.indexOf(item.startCityId) > -1 &&
this.importCityIds.indexOf(item.destCityId) > -1
);
});
if (
this.orderExceptionData.orderExceptionType == "channel_exception" ||
this.orderExceptionData.orderExceptionType ==
"not_shipping_channel_exception"
) {
//not_shipping_channel_exception 不可出渠道异常
this.selectLine = this.routerList.find(
(item) => item.id == this.handlerParams.lineId
);
}
});
},
changeExceptionStatus() {
this.$set(this.handlerParams, "orderExceptionHandlerResult", "");
},
//订单详情
getOrderData() {
//not_shipping_channel_exception 不可出渠道异常
getOrder(this.orderId).then((response) => {
this.orderData = response.data;
const orderItem = this.orderData.orderItemVOList.find(item => item.orderItemId === this.orderExceptionData.orderItemId)
console.log("uniChangable", this.orderExceptionData.orderExceptionStatus,
this.orderExceptionData.orderExceptionType,
orderItem?.oneSeaFreight, orderItem?.oneClearanceFreight)
// 待处理 且 単询异常 且 清关费和运费为0则可以修改单位
if(
this.orderExceptionData.orderExceptionStatus == 0 &&
this.orderExceptionData.orderExceptionType === "line_loop_exception" &&
orderItem && orderItem.oneSeaFreight === 0 && orderItem.oneClearanceFreight === 0
){
this.unitChangable = true
}else this.unitChangable = false
if (this.orderData.channelId != 0) {
this.channelList.map((v) => {
if (v.channelId == this.orderData.channelId) {
this.handlerParams.channelId = this.orderData.channelId;
}
});
}
this.handlerParams.lineId = this.orderData.lineId;
if (response.data.customerId) {
this.getCustomerData(response.data.customerId);
}
if (
[
"overweight_exception",
"line_weight_exception",
"not_shipping_channel_exception",
"channel_packaging_overweight_exception",
"channel_exception",
].indexOf(this.orderExceptionData.orderExceptionType) > -1
) {
// this.handlerParams.channelPriceList = []
this.getOpenedRouterList();
// if(this.orderExceptionData.orderExceptionStatus==0){
// this.orderData.orderItemVOList.map(v=>{
// if(!v.oneSeaFreight){
// v.seaFreightCurrency = this.currencyList[0]['id']
// v.seaFreightVolume = this.unitList[1]['id']
// }
// if(!v.oneClearanceFreight){
// v.clearanceFreightCurrency = this.currencyList[0]['id']
// v.clearanceFreightVolume = this.unitList[1]['id']
// }
// })
// }
}
if (
this.orderExceptionData.orderExceptionType == "line_loop_exception"
) {
this.getExceptionPriceList("line_loop_exception", 1);
}
if (
this.handlerParams.orderExceptionHandlerResult == "continue_channel"
) {
this.getExceptionPriceList("continue_channel", 1);
}
if (
[
"overweight_exception",
"line_weight_exception",
"channel_packaging_overweight_exception",
].indexOf(this.orderExceptionData.orderExceptionType) > -1
) {
if (
this.orderExceptionData.orderExceptionStatus != "0" &&
this.handlerParams.orderExceptionHandlerResult == "allow_over"
) {
this.getExceptionPriceList("continue_channel", 2);
} else {
this.getExceptionPriceList("line_loop_exception", 1);
}
}
});
},
getCustomerData(id) {
getCustomer(id).then((res) => {
this.customerData = res.data;
});
},
//获取异常结果
getOrderExcptionResult() {
getOrderExcptionResult({ orderExceptionId: this.orderExceptionId }).then(
(res) => {
this.handlerParams = Object.assign(
this.handlerParams,
res.data.list[0]
);
if (!this.orderExceptionData.handlerTime) {
this.orderExceptionData.handlerTime =
this.handlerParams.handlerTime;
}
if (this.handlerParams.handlerRemark) {
this.$set(
this.handlerParams,
"orderExceptionHandlerRemark",
this.handlerParams.handlerRemark
);
}
if (this.handlerParams.handlerResult) {
this.$set(
this.handlerParams,
"orderExceptionHandlerResult",
this.handlerParams.handlerResult
);
}
if (this.handlerParams.productId) {
this.productId2 = this.productId1 = this.handlerParams.productId;
}
if (this.orderExceptionData.orderExceptionStatus == 0) {
if (
(this.orderExceptionData.orderExceptionType ==
"overweight_exception" ||
this.orderExceptionData.orderException ==
"line_weight_exception") &&
this.orderExceptionData.additionalJson &&
this.orderExceptionData.additionalJson.weightSum
) {
this.$set(
this.handlerParams,
"weightLimit",
this.orderExceptionData.additionalJson.weightSum
);
}
if (
this.orderExceptionData.orderExceptionType ==
"channel_packaging_overweight_exception" &&
this.orderExceptionData.additionalJson &&
this.orderExceptionData.additionalJson.packagingWeightSum
) {
this.$set(
this.handlerParams,
"weightLimit",
this.orderExceptionData.additionalJson.packagingWeightSum
);
}
} else {
this.$set(
this.handlerParams,
"weightLimit",
this.handlerParams.weightLimit
);
}
}
);
},
getOrderFeeByIdData() {
getOrderFeeById({ id: this.orderId }).then((response) => {
this.orderFee = response.data;
this.handlerParams.orderExceptionHandlerResult =
this.orderFee.result[0];
// if(this.orderExceptionData.orderExceptionStatus==2){
// this.getOrderExcptionResult()
// }
});
},
getPreExceptionData() {
getFirstReceivableListByOrderId({ id: this.orderId }).then((response) => {
this.preException = response.data;
// this.preException.forEach(item=>{
// var curr = getDictData('shipping_price_unit', item.currencyId)
// if(curr.label == this.$t('美元')){
// item.doller = item.totalAmount
// }
// })
});
},
/* getShopData(id){
getOrderItemById(id).then(res=>{
this.shopData = res.data
})
}, */
handleSelectionChange(val) {
this.multipleSelection = val;
},
// 根据线路id显示线路名称
getRouterNameById() {
if (this.orderData.logisticsInfoDto) {
return (
this.$t("从") +
this.$t("【") +
this.orderData.logisticsInfoDto.startTitleZh +
this.$t("】") +
this.$t("发往") +
this.$t("【") +
this.orderData.logisticsInfoDto.destTitleZh +
this.$t("】")
);
}
return this.$t("无");
},
//新增异常处理结果切换
handlerResultChange() {
// if(this.orderExceptionData.orderExceptionType=='goods_add_exception'){
// this.productId1 = this.handlerParams.productId
// this.productId2 = this.handlerParams.productId
// }
if (
this.orderExceptionData.orderExceptionType ==
"not_shipping_channel_exception" ||
this.orderExceptionData.orderExceptionType == "channel_exception"
) {
this.getOpenedRouterList();
}
},
submitForm() {
if (!this.handlerParams.orderExceptionHandlerResult) {
this.$modal.msgError(this.$t("请选择处理结果"));
return;
}
if (
this.orderExceptionData.orderExceptionType == "order_doc_exception" &&
this.handlerParams.fileList &&
this.handlerParams.fileList.length > 0
) {
// if(!this.handlerParams.fileList||this.handlerParams.fileList.length==0){
// this.$modal.msgError(this.$t('请上传报关资料'));
// return
// }
this.handlerParams.files = Array.isArray(this.handlerParams.fileList)
? this.handlerParams.fileList.join(",")
: this.handlerParams.fileList;
}
if (
this.orderExceptionData.orderExceptionType == "goods_add_exception" &&
this.handlerParams.orderExceptionHandlerResult == "goods_absent"
) {
this.$redirect(
"/product/product-list?prodId=" + this.handlerParams.productId
);
return;
}
if (
this.orderExceptionData.orderExceptionType == "goods_add_exception" &&
this.handlerParams.orderExceptionHandlerResult == "goods_exists"
) {
if (this.productId1) {
this.handlerParams.productId = this.productId1;
} else {
this.$modal.msgError(this.$t("请选择产品"));
return;
}
}
if (
(this.orderExceptionData.orderExceptionType ==
"not_shipping_channel_exception" &&
this.handlerParams.orderExceptionHandlerResult == "change_channel") ||
(this.orderExceptionData.orderExceptionType == "channel_exception" &&
this.handlerParams.orderExceptionHandlerResult ==
"set_shipment_channel")
) {
if (
!this.handlerParams.channelId ||
this.handlerParams.channelId == 0
) {
this.$modal.msgError(this.$t("请选择出货渠道"));
return;
}
if (!this.handlerParams.lineId || this.handlerParams.lineId == 0) {
this.$modal.msgError(this.$t("请选择线路"));
return;
}
}
if (
([
"channel_packaging_overweight_exception",
"line_weight_exception",
"overweight_exception",
].indexOf(this.orderExceptionData.orderExceptionType) > -1 &&
this.handlerParams.orderExceptionHandlerResult ==
"update_weight_limit") ||
(["line_weight_exception"].indexOf(
this.orderExceptionData.orderExceptionType
) > -1 &&
this.handlerParams.orderExceptionHandlerResult ==
"change_line_weight")
) {
if (!this.handlerParams.weightLimit) {
if (
this.orderExceptionData.orderExceptionType ==
"line_weight_exception"
) {
this.$modal.msgError(this.$t("请输入路线重量上限"));
} else {
this.$modal.msgError(this.$t("请输入空运订单上限"));
}
return;
}
}
if (
[
"line_loop_exception",
"channel_packaging_overweight_exception",
"line_weight_exception",
"overweight_exception",
"not_shipping_channel_exception",
].indexOf(this.orderExceptionData.orderExceptionType) > -1
) {
if (
this.orderExceptionData.orderExceptionType == "line_loop_exception" ||
((this.orderExceptionData.orderExceptionType ==
"channel_packaging_overweight_exception" ||
this.orderExceptionData.orderExceptionType ==
"overweight_exception") &&
this.handlerParams.orderExceptionHandlerResult == "allow_over")
) {
this.handlerParams.orderItemVOList = this.loopOrderItem;
} else {
this.handlerParams.orderItemVOList = this.orderData.orderItemVOList;
}
this.handlerParams.channelPriceList = [];
let priceUnit = false;
this.handlerParams.orderItemVOList.map((v) => {
if (v.charging == 1) {
if (!v.seaFreightCurrency || !v.seaFreightVolume) {
priceUnit = true;
}
} else {
if (
!v.seaFreightCurrency ||
!v.seaFreightVolume ||
!v.clearanceFreightCurrency ||
!v.clearanceFreightVolume
) {
priceUnit = true;
}
}
var listItem = {
orderId: v.orderId,
orderItemId: v.orderItemId,
charging: v.charging,
freightFee: v.oneSeaFreight,
isPayAdvance: v.isPayAdvance || 0,
freightCurrencyId: v.seaFreightCurrency,
freightUnitId: v.seaFreightVolume,
clearanceFee: v.oneClearanceFreight,
clearanceCurrencyId: v.clearanceFreightCurrency,
clearanceUnitId: v.clearanceFreightVolume,
};
this.handlerParams.channelPriceList.push(listItem);
});
if (priceUnit) {
this.$modal.msgError(
this.$t("请先去设置运费或清关费本身的货币单位、计价单位")
);
return;
}
}
handlerExceptionByExceptionId(this.handlerParams).then((res) => {
this.$modal.msgSuccess(this.$t("提交成功"));
this.$redirect("/order/pending?id=" + this.orderData.orderId);
});
},
/** 跟进按钮操作 */
handleAdd() {
this.$router.push({
path: "/financial/creatCollection?receiptId=0",
query: {
orderId: this.orderId,
},
});
},
// 取消审核
cancelAudit() {
this.$prompt("请输入取消原因", {
inputPattern: /[\S]+/,
inputErrorMessage: this.$t("不能为空"),
})
.then(({ value }) => {
return cancelProcessInstance(this.orderExceptionData.bpmId, value);
})
.then((res) => {
this.getList();
});
},
getFileName(fileName) {
var fileArr = fileName.split("/");
return fileArr[fileArr.length - 1];
},
getFileFormat(fileName) {
var fileArr = this.getFileName(fileName).split(".");
return fileArr[fileArr.length - 1];
},
// 打开预览
onClickOpenPreview(val, index) {
this.TragetPic = {
// 当前点击的文件
FileName: this.getFileName(val), // 文件名称
name: this.getFileName(val), // 文件名称(可以不传)
format: this.getFileFormat(val), // 文件格式
url: val, // 预览地址
downUrl: "", // 下载地址
}; // 目标对象
var fileArr = this.handlerParams.fileList;
fileArr.forEach((item) => {
// 需要预览的文件数组(可以传空数组就是单张预览)
let obj = {
FileName: this.getFileName(item),
name: this.getFileName(item),
format: this.getFileFormat(item),
url: item,
downUrl: "",
};
this.FilePreAll.push(obj);
});
console.log(this.FilePreAll);
this.IsPreview = true; // 打开预览弹窗
this.timers = new Date().getTime(); // 刷新预览地址
},
// 关闭预览
onClickClosePreview(val) {
this.IsPreview = val; // 由组件内部传入的关闭数据赋值关闭
},
onProductChange(product) {
if (!product) {
this.productId1 = null;
this.productId2 = null;
return false;
}
this.productId1 = product.id;
this.productId2 = product.id;
},
//不可出渠道异常 ,未报价跳转
routeToPrice(row, index) {
if (index == 2) {
this.$router.push("/product/product-list?prodId=" + row.prodId);
return;
}
// 未报价异常lk ,
if (row.orderItemId) {
var productData = this.orderData.orderItemVOList.find(
(item) => item.orderItemId == row.orderItemId
);
if (productData) {
getProduct(productData.prodId).then((res) => {
let params = {
product_id: productData.prodId,
product_type: res.data.typeId,
transportId: this.orderData.transportId,
exportCity: this.orderData.logisticsInfoDto.startCityId,
importCity: this.orderData.logisticsInfoDto.destCityId,
startWarehouseId:
this.orderData.logisticsInfoDto.startWarehouseId,
destWarehouseId: this.orderData.logisticsInfoDto.destWarehouseId,
lineId: this.orderData.logisticsInfoDto.lineId,
channelId: this.orderData.logisticsInfoDto.channelId,
};
let queryParams = {
productId: productData.prodId,
lineId: this.orderData.logisticsInfoDto.lineId,
channelId: this.orderData.logisticsInfoDto.channelId,
};
let url = "";
if ([3, 4].indexOf(this.orderData.transportId) > -1) {
url =
"../../lineProject/product-price/edit-air?" +
new URLSearchParams(params).toString();
} else {
url =
"../../lineProject/product-price/edit-sea?" +
new URLSearchParams(params).toString();
}
getProductPriceGetPrice(queryParams).then((res) => {
console.log(res);
if (res.data) {
if ([3, 4].indexOf(+this.orderData.transportId) > -1) {
url =
"../../lineProject/product-price/edit-air?action=update&id=" +
res.data.id;
} else {
url =
"../../lineProject/product-price/edit-sea?action=update&id=" +
res.data.id;
}
}
return this.$router.push(url);
});
/* +productData.prodId
+'&product_type='+res.data.typeId
+'&transportId='+this.orderData.transportId
+'&exportCity='+this.orderData.logisticsInfoDto.startCityId+'&importCity='+this.orderData.logisticsInfoDto.destCityId */
});
}
} else {
return this.$confirm(
this.$t("数据缺少orderItemId参数,确定要跳转设置路线价格么?")
).then((res) => {
let url = "";
if ([3, 4].indexOf(this.orderData.transportId) > -1) {
url = "../../lineProject/product-price/edit-air?";
} else {
url = "../../lineProject/product-price/edit-sea?";
}
this.$router.push(url);
});
}
},
// 计算商品运费(根据货值计算保费)
calculationPrice() {
this.$forceUpdate();
let calcable = true;
if (!this.orderData.orderItemVOList.length) return false;
this.orderData.orderItemVOList.forEach((item) => {
if (!item.prodId) {
calcable = false;
}
//alert(item.oneClearanceFreight);
});
console.log("calculationPrice", this.handlerParams.channelId);
if (this.calculating || !calcable) return false;
this.calculating = true;
//console.log("calculating ---> ");
const params = {
lineId: this.handlerParams.lineId,
transportId: this.orderData.transportId,
channelId:
[3, 4].indexOf(this.orderData.transportId) > -1
? this.handlerParams.channelId
: undefined,
prodConditionParamList: this.getProductListWithDefaultValue(),
orderType: this.orderData.orderType,
};
// if(this.handlerParams.channelId){
// params.channelId = this.handlerParams.channelId
// }
this.$set(this.handlerParams, "channelId", this.handlerParams.channelId);
calculationPrice(params)
.then((res) => {
this.orderData.orderItemVOList.map((item, index) => {
//清关价问题关键点在这,后台获取的值的变量名称换了
item.oneClearanceFreight =
res.data.prodCostDtoList[index].oneClearanceFee;
//alert( item.oneClearanceFreight);
item.clearanceFreightCurrency =
res.data.prodCostDtoList[index].clearanceFeeCurrency;
item.clearanceFreightVolume =
res.data.prodCostDtoList[index].clearanceFeeVolume;
item.oneSeaFreight = res.data.prodCostDtoList[index].oneFreight;
item.seaFreightCurrency =
res.data.prodCostDtoList[index].freightCurrency;
item.seaFreightVolume =
res.data.prodCostDtoList[index].freightVolume;
});
})
.finally(() => {
this.calculating = false;
});
},
// 体积。件数,数量,重量为选填,但是接口确实必填,所以生成一个副本并赋予默认值
getProductListWithDefaultValue() {
let arr = [];
this.orderData.orderItemVOList.forEach((item) => {
let tmp = { ...item };
if (!tmp.volume) tmp.volume = 1;
if (!tmp.weight) tmp.weight = 1;
if (!tmp.quantity) tmp.quantity = 1;
if (!tmp.num) tmp.num = 1;
tmp.orderType = item.orderItemType;
//包装类型
tmp.packaging = item.unit;
arr.push(tmp);
});
return arr;
},
//获取提交的不可出渠道异常商品清关费
getExceptionPriceList(type, index) {
let that = this;
that.loopOrderItem = [];
if (type == "line_loop_exception") {
that.orderData.orderItemVOList.map((v, i) => {
if (
that.orderExceptionData.orderExceptionType ==
"channel_packaging_overweight_exception"
) {
if (
that.orderExceptionData.additionalJson &&
that.orderExceptionData.additionalJson.orderItemIdList.indexOf(
v.orderItemId
) > -1
) {
that.loopOrderItem.push(v);
}
} else {
if (v.orderItemId == that.orderExceptionData.orderItemId) {
that.loopOrderItem.push(v);
}
}
});
console.log(that.loopOrderItem);
} else {
getOrderExceptionChannelPriceList({
orderId: that.orderId,
exceptionId: parseInt(that.orderExceptionId),
exceptionResultId: that.handlerParams.id,
}).then((res) => {
if (res.code == 0) {
if (res.data.length > 0) {
that.orderData.orderItemVOList.map((v) => {
var item = res.data.find(
(vs) => vs.orderItemId == v.orderItemId
);
if (item) {
v.oneSeaFreight = item.freightFee;
v.seaFreightCurrency = item.freightCurrencyId;
v.seaFreightVolume = item.freightUnitId;
v.oneClearanceFreight = item.clearanceFee;
v.clearanceFreightCurrency = item.clearanceCurrencyId;
v.clearanceFreightVolume = item.clearanceUnitId;
}
if (item && index == 2) {
that.loopOrderItem.push(v);
}
});
}
}
});
}
},
},
};
</script>
<style scoped>
.link-text {
margin-top: 20px;
}
.link-text span {
font-size: 16px;
font-weight: 600;
margin-right: 20px;
}
.card-title {
font-size: 18px;
font-weight: bold;
margin-top: 10px;
}
.header {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.card {
margin: 20px 0;
}
.price_list {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.price_label {
width: 112px;
font-weight: 700;
text-align: right;
margin-right: 6px;
font-size: 14px;
color: #606266;
}
.channel {
width: 100%;
display: flex;
align-items: center;
justify-content: space-evenly;
}
.dialog-footer {
padding: 40px;
width: 60%;
align-items: center;
display: flex;
/* justify-content: space-between; */
}
.filelist {
display: flex;
flex-wrap: wrap;
align-items: center;
flex-direction: column;
}
.filelist span {
color: #1e98d7;
}
.red {
color: red;
}
.button {
margin-left: 40px;
}
.feeList {
display: flex;
flex-direction: column;
}
::v-deep .el-input--medium .el-input__inner {
padding: 0 4px;
}
::v-deep .el-table th.el-table__cell > .cell {
padding: 0 2px !important;
}
::v-deep .el-table td.el-table__cell div {
padding: 0 2px !important;
}
.w100 {
width: 100px;
}
.overweight_order {
display: flex;
align-items: center;
margin-top: 20px;
}
.overweight_order span {
font-size: 14px;
}
</style>