about1.vue
80.6 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
<template>
<div>
<div class="title">
<van-row type="flex" justify="space-between">
<van-col span="8" class="header-text">业务员:{{ curentData.name }}</van-col>
<van-col span="8">
<div class="header-text" style="display: flex">
出发时间:
<!-- <van-field v-model="curentData.startTime" size="small" placeholder="请输入时间" /> -->
{{ curentData.startTime | formatDate('hh:mm:ss') }}
</div>
</van-col>
<van-col span="8" class="header-text">车牌号:{{ curentData.plate }}</van-col>
<!-- <van-col span="8" class="header-text">批次:{{ curentData.batch }}</van-col> -->
</van-row>
<van-row type="flex" style="margin-top: 15px">
<van-col span="8">
<div class="header-text">出发地:{{ curentData.arrival }}</div>
</van-col>
<van-col span="8">
<!-- dataList[dataList.length - 1].hospital -->
<div class="header-text">目的地:{{ curentData.departure }}</div>
</van-col>
<van-col span="8">
<div class="header-text" style="display: flex">
回程时间:
<!-- <van-field v-model="curentData.startTime" size="small" placeholder="请输入时间" /> -->
{{ curentData.lastArrivalTime | formatDate('hh:mm:ss') }}
</div>
</van-col>
</van-row>
<van-row type="flex" style="margin-top: 15px">
<van-col span="8">
<!-- dataList[dataList.length - 1].hospital -->
<div class="header-text">总里程:{{ curentData.totalDistance }}</div>
</van-col>
<van-col span="8">
<div class="header-text" style="display: flex">
总耗时:
<!-- <van-field v-model="curentData.startTime" size="small" placeholder="请输入时间" /> -->
{{ curentData.totalTimes }}
</div>
</van-col>
<!-- <van-col span="8">
<div class="header-text" style="display: flex">
到达时间:
{{ curentData.startTime | formatDate('hh:mm:ss') }}
</div>
</van-col> -->
</van-row>
</div>
<div>
<Table-vant :option="option1" :tableData="filterTable" v-if="filterTable.length > 0"></Table-vant>
<div style="width: 100%; overflow-x: auto">
<Table-vant
:option="option"
:tableData="dataList"
width="790px"
vuedraggable=".list-tr"
:rowClick="true"
></Table-vant>
</div>
<div style="font-size: 16px; font-weight: bold; margin-top: 20px" v-if="deleteData.length > 0">
从原安排中移除的任务
</div>
<Table-vant :option="option2" :tableData="deleteData" v-if="deleteData.length > 0"></Table-vant>
</div>
<div class="fixed-bottom-right">
<div style="display: flex; justify-content: space-between; margin-top: 10px">
<van-button round plain type="primary" @click="simulatedSampling">模拟取样</van-button>
<van-button round plain type="info" @click="insertOrder">模拟插单1</van-button>
<van-button round plain type="primary" @click="insertOrder1">模拟插单2</van-button>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 10px">
<van-button round plain type="info" @click="replanning">重新规划</van-button>
<van-button round plain type="info" @click="replanning2">调整后规划</van-button>
<van-button round plain type="info" @click="EnableNavigation">开启导航</van-button>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 10px">
<van-button round plain type="info" @click="adjustTime()">调整时间</van-button>
</div>
<!-- <div style="display: flex; justify-content: space-between; margin-top: 10px">
<van-button round plain type="info" @click="nextOrder()">下一条</van-button>
<van-button round plain type="info" @click="lastOrder()">上一条</van-button>
</div> -->
</div>
<van-dialog
v-model="show"
v-if="show"
title="插单"
show-cancel-button
:before-close="handleInsertOrder"
@opened="openDialog"
>
城市:
<select name="pets" id="pet-select" v-model="city" class="city" @change="cityChage($event)">
<option v-for="item in cityOptions" :key="item.value" :value="item.value">{{ item.label }}</option>
</select>
<div style="width: 100%; overflow: auto; margin-bottom: 50px; height: 500px">
<Table-vant :option="option3" :tableData="insertData" width="470px" :showCheck="true">
<template v-slot:timeInterval="{ item }">
<input type="text" v-model="item.timeInterval" style="width: 80%; height: 25px" />
</template>
<template v-slot:vehicleType="{ item }">
<div>{{ item.vehicleType == 1 ? '电动汽车' : '电动车' }}</div>
</template>
</Table-vant>
</div>
</van-dialog>
<van-dialog
v-model="TimeShow"
v-if="TimeShow"
title="调整时间"
confirmButtonText="调整规划"
show-cancel-button
:before-close="handleChangeTime"
>
<div>
<van-cell-group>
<van-field v-model="rowData.hospital" readonly label="医院" placeholder="" />
</van-cell-group>
<div>
<van-cell-group style="display: flex">
<div
style="
color: #646566;
text-align: left;
word-wrap: break-word;
font-size: 3.733333vw;
line-height: 40px;
width: -webkit-fill-available;
"
>
取样时间段:
</div>
<van-field v-model="date1" label="" placeholder="" span="12" />
<span style="line-height: 40px">——</span>
<van-field v-model="date2" label="" placeholder="" span="12" />
</van-cell-group>
</div>
</div>
</van-dialog>
</div>
</template>
<script>
// 请求接口
import { getPlan, getSession, getPlan2 } from '@/api/user.js'
import TableVant from '@/components/Table.vue'
import { Toast } from 'vant'
import _ from 'lodash'
export default {
components: { TableVant },
data() {
return {
sortTable: [],
dataList: [],
date1: '',
date2: '',
insertType: 1,
TimeShow: false,
index: 0,
curentData: {},
rowData: {},
cityIndex: 0,
targetData: [],
city: '',
departureData: [],
allReturnData: [],
flag: 1,
date: '',
show: false,
start: '',
firstObj: {},
filterTable: [],
deleteData: [],
accessToken: '',
originData: [],
checkeData: [],
orginInsertData: [
{
name: '',
plate: '',
departure: '',
arrival: '',
departureDate: '06:30',
customerData: [
{
rowNo: '2',
batch: '1',
hospital: '济南西站对接点',
address: '济南市槐荫区齐鲁大道6号',
dateTime: '07:50',
stopTime: 20,
pkgs: 0,
coordinate: '116.89177900,36.66887900',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '3',
batch: '1',
hospital: '济南和合医学检验有限公司',
address: '槐荫区美里湖555号路海那城总部42号楼',
dateTime: '08:55',
stopTime: 15,
pkgs: 0,
coordinate: '116.91937000,36.72000800',
isOrigin: 'N',
vehicleType: '1',
timeInterval: '09:00,10:00'
},
{
rowNo: '4',
batch: '1',
hospital: '山东第一医科大学附属皮肤病医院',
address: '济南市经十路27397号',
dateTime: '09:30',
stopTime: 10,
pkgs: 100,
coordinate: '116.92826100,36.65210900',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '5',
batch: '1',
hospital: '山东禾力升医学检验实验室有限公司',
address: '济南市市中区南辛庄西路丰润 怡邻居西门',
dateTime: '10:00',
stopTime: 10,
pkgs: 100,
coordinate: '116.96255900,36.63623600',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '6',
batch: '1',
hospital: '市中慢病第四人民医院青龙山分院',
address: '山东省济南市市中区南辛庄西路272号',
dateTime: '10:20',
stopTime: 40,
pkgs: 100,
coordinate: '116.95988200,36.62819100',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '7',
batch: '1',
hospital: '山东省医学科学院放射医学研究所',
address: '济南经十路89号9956',
dateTime: '11:15',
stopTime: 15,
pkgs: 100,
coordinate: '117.01788200,36.64911300',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '8',
batch: '1',
hospital: '山东省分析测试中心',
address: '山东省济南市历下区科院路19号详情',
dateTime: '11:40',
stopTime: 10,
pkgs: 100,
coordinate: '117.04783900,36.64556100',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '9',
batch: '1',
hospital: '济南汇安健康管理有限公司历下门诊部',
address: '济南市历下区文化西路15号',
dateTime: '12:05',
stopTime: 120,
pkgs: 100,
coordinate: '117.03081400,36.65417800',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '10',
batch: '1',
hospital: '武警山东总队医院',
address: '山东省济南市历下区浆水泉路12--8号',
dateTime: '14:45',
stopTime: 15,
pkgs: 100,
coordinate: '117.08718600,36.65631700',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '11',
batch: '1',
hospital: '济南样本室对接点',
address: '济南市历下区颖秀路2755号',
dateTime: '15:20',
stopTime: 30,
pkgs: 100,
coordinate: '117.13394400,36.67904500',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '2',
batch: '1',
hospital: '山东大学齐鲁医院',
address: '济南市文化西路107号',
dateTime: '08:50',
stopTime: 190,
pkgs: 100,
coordinate: '117.01839000,36.65659000',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '3',
batch: '1',
hospital: '山东省中医院(西院)',
address: '山东省济南市文化西路42号',
dateTime: '11:25',
stopTime: 30,
pkgs: 100,
coordinate: '117.02325300,36.65510600',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市中医医院1',
address: '山东省济南市槐荫区美里路555号海那城总部24号楼101单元401',
dateTime: '12:05',
stopTime: 30,
pkgs: 100,
coordinate: '116.91984000,36.72078200',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '5',
batch: '1',
hospital: '济南丽合医疗美容医院有限公司',
address: '山东省济南市历下区黑虎泉北路61号',
dateTime: '13:15',
stopTime: 10,
pkgs: 100,
coordinate: '117.03587900,36.67266400',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '6',
batch: '1',
hospital: '山东省千佛山医院',
address: '经十路山师东路',
dateTime: '13:40',
stopTime: 20,
pkgs: 100,
coordinate: '117.04485100,36.64754900',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '7',
batch: '1',
hospital: '山东第一医科大学第一附属医院',
address: '山东省济南市历下区经十路16766号',
dateTime: '14:05',
stopTime: 20,
pkgs: 100,
coordinate: '117.04244800,36.64765800',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '8',
batch: '1',
hospital: '济南长途汽车总站对接点',
address: '济南市天桥区济洛路131号',
dateTime: '17:25',
stopTime: 15,
pkgs: 0,
coordinate: '116.99360600,36.68543900',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '2',
batch: '1',
hospital: '山东省省立医院东院',
address: '山东省济南市历下区经十路9677号',
dateTime: '09:05',
stopTime: 90,
pkgs: 100,
coordinate: '117.12129000,36.66338600',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '3',
batch: '1',
hospital: '山东省省立医院东院(特检)',
address: '山东省济南市历下区经十路9667号',
dateTime: '10:40',
stopTime: 30,
pkgs: 100,
coordinate: '117.03401900,36.64879400',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '新华卓越门诊部(济南)有限公司',
address: '济南市历下区龙奥北路8-4号玉兰广场2号楼3层',
dateTime: '11:20',
stopTime: 10,
pkgs: 100,
coordinate: '117.12426800,36.65054700',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市历下区姚家办事处仁合社区卫生服务站',
address: '济南市历下区荆山路438-62号',
dateTime: '11:55',
stopTime: 15,
pkgs: 100,
coordinate: '117.07670700,36.64310600',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南迪安中心办事处',
address: '济南市高新区颖秀路2755号',
dateTime: '12:40',
stopTime: 30,
pkgs: 100,
coordinate: '117.13394400,36.67904500',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南云康达安医学检验实验室有限公司',
address: '济南市高新区颖秀路2766号迪亚产业园东楼二楼',
dateTime: '13:40',
stopTime: 10,
pkgs: 100,
coordinate: '117.13506400,36.67946300',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南爱新卓尔医学检验有限公司',
address: '济南市历下区天辰路1318',
dateTime: '13:55',
stopTime: 10,
pkgs: 100,
coordinate: '117.13495300,36.68222100',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南高新区雅居园社区卫生服务站',
address: '济南高新区雅居园小区北门商 用房1期2区1号楼1单元 2201.202.203室',
dateTime: '14:15',
stopTime: 10,
pkgs: 100,
coordinate: '117.12526800,36.67245200',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东省立医院',
address: '济南市经五纬七路324号',
dateTime: '08:25',
stopTime: 210,
pkgs: 100,
coordinate: '116.98415700,36.65685700',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市槐荫区西市场办事处纬十路社区卫生服务站',
address: '济南市槐荫区经三纬十一路330号',
dateTime: '12:05',
stopTime: 10,
pkgs: 100,
coordinate: '116.97392000,36.65924000',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市天桥区纬北经纬嘉园社区卫生服务站',
address: '经一路经纬嘉园住宅小区141-31号',
dateTime: '16:30',
stopTime: 20,
pkgs: 100,
coordinate: '120.08842500,30.87737500',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市槐荫区五里沟公祥街社区卫生服务站',
address: '槐荫区纬五路39-7',
dateTime: '16:55',
stopTime: 15,
pkgs: 100,
coordinate: '116.98715800,36.66398400',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东光正眼科医院有限公司',
address: '济南市市中区经二路223号',
dateTime: '17:15',
stopTime: 50,
pkgs: 100,
coordinate: '116.99099400,36.66410100',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东光正眼科医院有限公司',
address: '济南市市中区经二路223号',
dateTime: '17:15',
stopTime: 50,
pkgs: 100,
coordinate: '116.99099400,36.66410100',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东省康复医院',
address: '历城区唐冶新区围子山路3126号',
dateTime: '10:40',
stopTime: 50,
pkgs: 100,
coordinate: '117.24190100,36.68823600',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东水发生命科学研究有限公司',
address: '山东省济南市高新区大正路1777号生命科学城13号楼一层',
dateTime: '11:50',
stopTime: 15,
pkgs: 100,
coordinate: '117.32744800,36.70332300',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '章丘慢性病防治所对接点',
address: '济南市章丘区唐王山路1099号',
dateTime: '12:40',
stopTime: 15,
pkgs: 0,
coordinate: '117.53489000,36.69297100',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南万泉生物技术有限公司',
address: '济南市高新区港兴三路北段一号济南药谷研发平台区1号楼A座1305',
dateTime: '14:05',
stopTime: 15,
pkgs: 100,
coordinate: '117.22268400,36.66921200',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '健颐生物(药谷)',
address: '济南市历城区港兴三路济南药谷1号楼A座25楼',
dateTime: '14:25',
stopTime: 15,
pkgs: 100,
coordinate: '117.22278300,36.66978200',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东惠然生物科技有限公司',
address: '高新区港兴三路北段1号济南市药谷研发平台区2号楼1801房间',
dateTime: '14:45',
stopTime: 15,
pkgs: 100,
coordinate: '117.22239900,36.66859400',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东富优生命科学有限公司',
address: '山东富优生命科学有限公司',
dateTime: '15:05',
stopTime: 15,
pkgs: 100,
coordinate: '117.22283000,36.67004000',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东省齐鲁细胞治疗工程技术有限公司',
address: '山东省济南市高新区港兴三路1109号',
dateTime: '16:05',
stopTime: 10,
pkgs: 100,
coordinate: '117.22257900,36.65528700',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南高新开发区景琪综合门诊有限公司',
address: '高新区舜华路街道街道华奥路77号东鲁凤凰上都6-104',
dateTime: '16:35',
stopTime: 15,
pkgs: 100,
coordinate: '117.15647200,36.65323700',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市历下区龙洞办事处社区卫生服务中心',
address: '历下区龙洞办事处锦屏家园龙锦生活广场10号楼02号铺',
dateTime: '17:05',
stopTime: 10,
pkgs: 100,
coordinate: '117.12264500,36.62768600',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南佰年颐堂中医医院有限公司',
address: '山东省济南市历城区工业北路180号院内办公楼2号楼1层',
dateTime: '14:55',
stopTime: 10,
pkgs: 100,
coordinate: '117.26118400,36.63685400',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东元辰生物医药科技集团有限公司',
address: '华山街道丑父路135号华山片区安置区二区S3号楼商业区四层',
dateTime: '15:20',
stopTime: 10,
pkgs: 100,
coordinate: '117.06162300,36.68773700',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东大学第二医院(检验科)',
address: '山东大学第二医院(检验科)',
dateTime: '15:50',
stopTime: 30,
pkgs: 100,
coordinate: '117.04054100,36.69042100',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东省立第三医院',
address: '山东省济南市无影山中路12号',
dateTime: '16:40',
stopTime: 60,
pkgs: 100,
coordinate: '116.98967800,36.68406100',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '艾迪康',
address: '济南市天桥区田家庄东路4号',
dateTime: '20:45',
stopTime: 5,
pkgs: 100,
coordinate: '116.97534100,36.69010900',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '历城奇鲁诊所',
address: '七里堡东路84号4号',
dateTime: '10:55',
stopTime: 10,
pkgs: 100,
coordinate: '117.07034900,36.69118200',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东省立第三医院(新城社区卫生服务中心)',
address: '济南市天桥区新黄路2567号',
dateTime: '11:25',
stopTime: 5,
pkgs: 100,
coordinate: '117.01213500,36.70852500',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东省立第三医院(药山站点)',
address: '山东省济南市天桥区药山西路南端',
dateTime: '11:50',
stopTime: 5,
pkgs: 100,
coordinate: '116.96048900,36.71312700',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东省立第三医院(济南市天桥人民医院)',
address: '济南市天桥区天桥街25号',
dateTime: '12:40',
stopTime: 15,
pkgs: 100,
coordinate: '116.96048900,36.71312700',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市市中区七里山街道泉景天沅社区卫生服务站',
address: '济南市市中区郎茂山路4号101号',
dateTime: '13:15',
stopTime: 15,
pkgs: 100,
coordinate: '116.98310000,36.62614400',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东省南山医院有限责任公司',
address: '济南市市中区英雄山路134号',
dateTime: '13:40',
stopTime: 50,
pkgs: 100,
coordinate: '116.98310000,36.62614400',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '山东省南山医院有限责任公司(艾迪康站点)',
address: '济南市市中区英雄山路134号',
dateTime: '12:30',
stopTime: 5,
pkgs: 100,
coordinate: '117.00314900,36.62241000',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市历下区第二人民医院',
address: '济南市历下区东关大街57号',
dateTime: '14:55',
stopTime: 15,
pkgs: 100,
coordinate: '117.04394500,36.67837900',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南三株酵本草医院有限公司',
address: '济南市历城区山大北路77-6号',
dateTime: '15:20',
stopTime: 10,
pkgs: 100,
coordinate: '117.06090000,36.67966900',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市历城区妇幼保健计划生育服务中心(两癌)',
address: '济南市历城区洪楼西路45号',
dateTime: '15:35',
stopTime: 15,
pkgs: 100,
coordinate: '117.06136300,36.68004900',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '历城中医院',
address: '济南市历城区洪家楼南路26号',
dateTime: '15:55',
stopTime: 40,
pkgs: 100,
coordinate: '117.06652000,36.68147900',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南远大中医脑康医院有限公司',
address: '济南市历城区二环东路3889号',
dateTime: '16:40',
stopTime: 15,
pkgs: 100,
coordinate: '117.07276600,36.67283300',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南伊美尔整形美容医院有限公司',
address: '济南市解放路30-1号',
dateTime: '17:05',
stopTime: 10,
pkgs: 100,
coordinate: '117.06004900,36.66592800',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市中心医院(精准中心)',
address: '山东省济南市历城区解放路105号',
dateTime: '17:25',
stopTime: 10,
pkgs: 100,
coordinate: '117.06652000,36.68147900',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市中心医院(特检)',
address: '济南市历下区解放路105号',
dateTime: '17:40',
stopTime: 20,
pkgs: 100,
coordinate: '117.04767000,36.66776700',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市济阳区人民医院',
address: '济阳县纬六路9号',
dateTime: '09:10',
stopTime: 80,
pkgs: 100,
coordinate: '116.98330600,36.66371900',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市济阳区中医医院(病理)',
address: '山东省济南市济阳区纬二路112号',
dateTime: '10:40',
stopTime: 30,
pkgs: 100,
coordinate: '117.19134000,36.97515700',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市济阳区中医医院',
address: '山东省济南市济阳区纬二路112号',
dateTime: '11:15',
stopTime: 120,
pkgs: 100,
coordinate: '117.19134000,36.97515700',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市济阳区妇幼保健计划生育服务中心',
address: '山东省济南市济阳区老城街16号',
dateTime: '13:45',
stopTime: 30,
pkgs: 100,
coordinate: '117.21862800,36.97423500',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济南市济阳区妇幼保健院计划生育服务中心(站点)',
address: '济阳区济北街道开元大街166号',
dateTime: '14:30',
stopTime: 10,
pkgs: 100,
coordinate: '117.17039900,36.97523800',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济阳妇幼对接点',
address: '济阳区济北街道开元大街166号',
dateTime: '14:40',
stopTime: 5,
pkgs: 100,
coordinate: '117.17039900,36.97523800',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '济阳妇儿医院',
address: '济南市济 阳区德阳路与兴河街交叉口',
dateTime: '15:20',
stopTime: 10,
pkgs: 100,
coordinate: '117.12511900,36.93419300',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
}
]
},
{
name: '',
plate: '',
departure: '',
arrival: '',
departureDate: '08:00',
customerData: [
{
rowNo: '1',
batch: '1',
hospital: '德州交通医院',
address: '德城区东风中路389号',
dateTime: '09:15',
stopTime: 20,
pkgs: 2,
coordinate: '116.31887300,37.44295900',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '2',
batch: '1',
hospital: '德州市人民医院',
address: '德州市新湖大街1751号',
dateTime: '09:47',
stopTime: 100,
pkgs: 41,
coordinate: '116.30555600,37.45116400',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '3',
batch: '1',
hospital: '德州市人民医院(特检)',
address: '德州市新湖大街1751号',
dateTime: '11:32',
stopTime: 15,
pkgs: 1,
coordinate: '116.30555600,37.45116400',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '德州市立医院对接点',
address: '德州市德城区三八中路1766号',
dateTime: '11:55',
stopTime: 20,
pkgs: 100,
coordinate: '116.29370300,37.45320200',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '5',
batch: '1',
hospital: '德州市立医院',
address: '山东省德州市德城区三八路1766号',
dateTime: '12:55',
stopTime: 90,
pkgs: 2,
coordinate: '116.29370300,37.45320200',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '6',
batch: '1',
hospital: '德棉医院',
address: '德州市运河开发区纺织大街522号',
dateTime: '14:37',
stopTime: 20,
pkgs: 100,
coordinate: '116.27572300,37.45761700',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '7',
batch: '1',
hospital: '德州汽车站对接点',
address: '德州市德城区东风路1667号',
dateTime: '15:12',
stopTime: 15,
pkgs: 100,
coordinate: '116.29082500,37.44405800',
isOrigin: 'N',
vehicleType: '2',
timeInterval: ''
},
{
rowNo: '8',
batch: '1',
hospital: '武城县妇幼保健计划生育服务中心(两癌)',
address: '山东省德州市武城县振华西街1536号',
dateTime: '09:50',
stopTime: 10,
pkgs: 100,
coordinate: '116.06056800,37.21353300',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '9',
batch: '1',
hospital: '武城县老城镇仓上村卫生室',
address: '武城县老城镇仓上村',
dateTime: '10:30',
stopTime: 10,
pkgs: 100,
coordinate: '115.94163900,37.11129600',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '10',
batch: '1',
hospital: '武城县老城镇新运社区卫生室',
address: '武城县老城镇',
dateTime: '10:45',
stopTime: 10,
pkgs: 100,
coordinate: '115.89356900,37.14593200',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '11',
batch: '1',
hospital: '夏津县中医院',
address: '夏津县经开区北外环路',
dateTime: '11:30',
stopTime: 15,
pkgs: 100,
coordinate: '116.39217300,37.49376100',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '12',
batch: '1',
hospital: '夏津三鹤血液透析有限公司',
address: '山东省德州市夏津县银城街道西关街142号',
dateTime: '12:25',
stopTime: 15,
pkgs: 100,
coordinate: '116.01219400,36.95977800',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '13',
batch: '1',
hospital: '夏津慎安血液透析中心有限公司',
address: '山东省德州市夏津县银城街道西关南街132号',
dateTime: '12:45',
stopTime: 10,
pkgs: 100,
coordinate: '115.99462000,36.95193800',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '14',
batch: '1',
hospital: '临清市老赵庄镇卫生院',
address: '老赵庄镇老赵庄村199号',
dateTime: '13:25',
stopTime: 10,
pkgs: 100,
coordinate: '115.86014600,36.83849000',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '15',
batch: '1',
hospital: '李娅诊所',
address: '临清市黑庄民族小区',
dateTime: '13:55',
stopTime: 15,
pkgs: 100,
coordinate: '115.73074700,36.84652300',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '16',
batch: '1',
hospital: '临西县第二人民医院',
address: '河北省邢台市临西县河西镇顺河街7号',
dateTime: '14:25',
stopTime: 10,
pkgs: 100,
coordinate: '115.68843100,36.85466500',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '17',
batch: '1',
hospital: '聊城市第二人民医院(特检)',
address: '聊城市临清市先锋街道办事处健康街306号',
dateTime: '14:45',
stopTime: 10,
pkgs: 100,
coordinate: '115.70215500,36.85302700',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '18',
batch: '1',
hospital: '百康诊所',
address: '临清市观澜国际B3西4户',
dateTime: '15:09',
stopTime: 10,
pkgs: 100,
coordinate: '115.71547000,36.81913800',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '19',
batch: '1',
hospital: '聊城市第二人民医院(新院)',
address: '临清市315省道和新华路交汇处',
dateTime: '15:32',
stopTime: 10,
pkgs: 100,
coordinate: '115.59475300,36.75968600',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '20',
batch: '1',
hospital: '夏津联络处对接点',
address: '德州市夏津县泉林小区',
dateTime: '15:52',
stopTime: 15,
pkgs: 100,
coordinate: '115.99405300,36.97021100',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
}
]
},
{
name: '',
plate: '',
departure: '',
arrival: '',
departureDate: '08:00',
customerData: [
{
rowNo: '1',
batch: '1',
hospital: '聊城市东昌府区侯营镇卫生院',
address: '山东省聊城市东昌府区侯营镇侯营村',
dateTime: '08:35',
stopTime: 10,
pkgs: 100,
coordinate: '115.88725200,36.39946400',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '2',
batch: '1',
hospital: '聊城市东昌府区和光诊所',
address: '山东省聊城市东昌府区柳园街道陈口路金柱大学城A区30幢s30-113号商铺',
dateTime: '09:12',
stopTime: 10,
pkgs: 100,
coordinate: '116.01666300,36.44393800',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '3',
batch: '1',
hospital: '聊城市东昌府区韩集镇卫生院',
address: '山东省聊城市东昌府区韩集镇政府',
dateTime: '09:55',
stopTime: 10,
pkgs: 100,
coordinate: '116.18228000,36.40897800',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '4',
batch: '1',
hospital: '茌平万里行中医诊所',
address: '聊城市茌平县建设路1416号',
dateTime: '10:40',
stopTime: 10,
pkgs: 100,
coordinate: '116.21077700,36.56289800',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '5',
batch: '1',
hospital: '聊城市茌平区人民医院',
address: '聊城市茌平县文化路99号',
dateTime: '11:00',
stopTime: 15,
pkgs: 100,
coordinate: '116.24962100,36.57960700',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '6',
batch: '1',
hospital: '聊城市茌平区中医医院',
address: '聊城市茌平区新政西路1163号',
dateTime: '11:22',
stopTime: 30,
pkgs: 100,
coordinate: '116.24271400,36.58568300',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '7',
batch: '1',
hospital: '茌平县和睦家妇科诊所',
address: '茌平县三产院内',
dateTime: '12:22',
stopTime: 5,
pkgs: 100,
coordinate: '116.23697900,36.58427100',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '8',
batch: '1',
hospital: '聊城市茌平区温陈街道社区卫生服务中心',
address: '聊城市茌平区温陈街道',
dateTime: '12:47',
stopTime: 5,
pkgs: 100,
coordinate: '116.24984700,36.59027400',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '9',
batch: '1',
hospital: '聊城市茌平区胡屯镇卫生院',
address: '聊城市茌平区新政西路1163号',
dateTime: '13:12',
stopTime: 10,
pkgs: 100,
coordinate: '116.24271400,36.58568300',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '10',
batch: '1',
hospital: '高唐县中医院',
address: '高唐县东兴路16号',
dateTime: '13:52',
stopTime: 10,
pkgs: 100,
coordinate: '116.25357800,36.85772200',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '11',
batch: '1',
hospital: '高唐县人民医院',
address: '山东省高唐县金城西路99号',
dateTime: '14:17',
stopTime: 15,
pkgs: 100,
coordinate: '116.22798600,36.86687600',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '12',
batch: '1',
hospital: '聊城市茌平区第二人民医院',
address: '茌平县博平镇政府街',
dateTime: '15:04',
stopTime: 15,
pkgs: 100,
coordinate: '116.11760000,36.58789400',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '13',
batch: '1',
hospital: '聊城市茌平区洪官屯镇卫生院',
address: '聊城市茌平区洪官屯镇政府驻地',
dateTime: '15:47',
stopTime: 15,
pkgs: 100,
coordinate: '116.06041900,36.39670700',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '14',
batch: '1',
hospital: '聊城汽车总站对接点',
address: '聊城市东昌府区建设路与柳园北路交汇处西北角',
dateTime: '16:22',
stopTime: 8,
pkgs: 100,
coordinate: '115.98847500,36.47286500',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '15',
batch: '1',
hospital: '聊城市东昌府区妇幼保健院(两癌)',
address: '山东省聊城市东昌府区振兴西路129号',
dateTime: '16:40',
stopTime: 50,
pkgs: 100,
coordinate: '115.95710000,36.46834600',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '16',
batch: '1',
hospital: '聊城联络处(回)',
address: '山东省聊城市东昌府区',
dateTime: '17:43',
stopTime: 30,
pkgs: 100,
coordinate: '115.98849100,36.43464500',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
},
{
rowNo: '17',
batch: '1',
hospital: '聊城联络处对接点',
address: '山东省聊城市东昌府区',
dateTime: '18:18',
stopTime: 20,
pkgs: 100,
coordinate: '115.98849100,36.43464500',
isOrigin: 'N',
vehicleType: '1',
timeInterval: ''
}
]
}
],
insertData: [],
cityOptions: [
{ label: '济南', value: '济南' },
{ label: '德州', value: '德州' },
{ label: '聊城', value: '聊城' }
],
option: {
column: [
{
label: '序号',
tableDataprop: 'rowNo',
width: '50px'
},
{
label: '途经',
tableDataprop: 'hospital',
width: '230px'
},
{
label: '取样数',
tableDataprop: 'pkgs',
width: '50px',
align: 'right'
},
{
label: '里程(km)',
tableDataprop: 'distance',
width: '80px',
align: 'right'
},
{
label: '路程耗时(分钟)',
tableDataprop: 'duration',
width: '90px',
align: 'right'
},
{
label: '停留时长(分钟)',
tableDataprop: 'stopTime',
width: '90px',
align: 'right'
},
{
label: '预计到达时间',
tableDataprop: 'reachDate',
width: '90px',
align: 'right'
},
{
label: '预计离开时间',
tableDataprop: 'leaveDate',
width: '90px',
align: 'right'
},
{
label: '状态',
tableDataprop: 'status',
width: '50px'
}
]
},
option1: {
column: [
{
label: '序号',
tableDataprop: 'rowNo',
width: '50px'
},
{
label: '途经',
tableDataprop: 'hospital',
width: '230px'
},
// {
// label: '取样时间',
// tableDataprop: 'dateTime',
// width: '50px'
// },
{
label: '取样数',
tableDataprop: 'pkgs',
width: '50px',
align: 'right'
},
{
label: '状态',
tableDataprop: 'status',
width: '50px'
}
]
},
option2: {
column: [
{
label: '序号',
tableDataprop: 'rowNo',
width: '50px'
},
{
label: '途经',
tableDataprop: 'hospital',
width: '230px'
},
{
label: '取样数',
tableDataprop: 'pkgs',
width: '50px',
align: 'right'
},
{
label: '状态',
tableDataprop: 'status',
width: '50px'
}
]
},
option3: {
column: [
{
label: '序号',
tableDataprop: 'rowNo',
width: '50px'
},
{
label: '目标点',
tableDataprop: 'hospital',
width: '200px'
},
{
label: '取样数',
tableDataprop: 'pkgs',
width: '50px',
align: 'right'
},
{
label: '取样时间段',
tableDataprop: 'timeInterval',
width: '80px'
},
{
label: '使用工具',
tableDataprop: 'vehicleType',
width: '50px'
}
]
}
}
},
computed: {
// ...mapGetters(['order'])
},
watch: {
show: {
handler: function () {
if (!this.show) {
this.checkeData = []
}
},
deep: true,
immediate: true
},
city: {
handler: function (val) {
switch (val) {
case '济南':
this.insertData = this.findDifferentElements(this.orginInsertData[0]?.customerData, this.targetData)
console.log('123333333333', this.insertData)
break
case '德州':
this.insertData = this.findDifferentElements(this.orginInsertData[1]?.customerData, this.targetData)
break
case '聊城':
this.insertData = this.findDifferentElements(this.orginInsertData[2]?.customerData, this.targetData)
break
}
},
deep: true,
immediate: true
}
},
mounted() {
this.$nextTick(() => {
this.city = this.$store.state.app.city
this.targetData = this.$store.getters.getTarget
this.departureData = this.$store.getters.getdepart
// this.curentData = this.$store.getters.getCurentData
this.curentData = JSON.parse(this.$route.query.data)
console.log('curentData', this.curentData)
this.$bus.$on('sortTableData', e => (this.dataList = e))
this.$bus.$on('selecte', e => (this.checkeData = e))
this.$bus.$on('rowData', e => (this.rowData = e))
this.cityIndex = this.cityOptions.findIndex(item => item.label == this.city)
this.index = this.curentData.rowNo - 1
console.log('cityIndex', this.cityIndex)
this.dataList = this.curentData.data
this.dataList.forEach(item => {
item.timeInterval = ''
})
let arr = [...this.filterTable, ...this.dataList]
arr.forEach((item, index) => {
item.rowNo = index + 1
})
})
},
destroyed() {
// this.$bus.$off('selecte')
this.$bus.$off('sortTableData')
},
created() {
this.getSessionId()
this.getDate()
this.$forceUpdate()
},
methods: {
getDate() {
this.date = new Date()
},
adjustTime() {
console.log(this.rowData)
if (!Object.keys(this.rowData).length) {
Toast('请至少选择一条数据')
return
}
this.TimeShow = true
},
async handleChangeTime(action, done) {
if (action === 'confirm') {
// 点击确定走这里
this.rowData.timeInterval = `${this.date1},${this.date2}`
this.orginInsertData[this.cityIndex].customerData.forEach(item => {
if (item.coordinate == this.rowData.coordinate) {
item.timeInterval = this.rowData.timeInterval
}
})
console.log('12131', this.dataList)
done(true)
this.replanning()
} else {
// 点击取消走这里
done(true) // 关闭弹窗, true可以省略
}
},
findDifferentElements(arr1, arr2) {
const diff1 = arr1.filter(obj1 => !arr2.some(obj2 => this.isEqual(obj1, obj2)))
const diff2 = arr2.filter(obj2 => !arr1.some(obj1 => this.isEqual(obj2, obj1)))
return [...diff1, ...diff2]
},
isEqual(obj1, obj2) {
return obj1.hospital === obj2.hospital && obj1.dateTime === obj2.dateTime
},
isnavigation(val) {
let that = this
let myLocation = JSON.parse(sessionStorage.getItem('ownChooseLocation'))
if (this.cabinData.longitude && this.cabinData.latitude) {
let Url = ''
switch (val) {
case 'amap':
Url = `https://uri.amap.com/navigation?from=${myLocation.lng},${myLocation.lat},${myLocation.formattedAddress}&to=${that.cabinData.longitude},${that.cabinData.latitude},${that.cabinData.name}&callnative=1`
break
case 'bmap':
Url = `http://api.map.baidu.com/direction?origin=latlng:${myLocation.lat},${myLocation.lng}|name:${myLocation.formattedAddress}&destination=latlng:${that.cabinData.latitude},${that.cabinData.longitude}|name:${that.cabinData.name}&mode=driving&origin_region=${myLocation.city}&destination_region=${that.cabinData.cityName}&output=html&src=webapp.baidu.openAPIdemo`
break
}
location.href = Url
} else {
// this.$message({
// message: '请先确认您的起点和终点位置',
// type: 'warning',
// })
}
},
// 请求数据案例
initData(list) {
Toast.loading({
duration: 0
})
// let destinations = arr.map(item => item.coordinate).join(';')
// 请求接口数据,仅作为展示,需要配置src->config下环境文件
console.log('123', list)
// return
let arr = _.cloneDeep(list)
const data = {
region: this.city,
plate: '',
departure: '',
arrival: '',
departureDate: '06:30',
customerData: arr
}
const params = {
method: 'GetRouteMatrix_test',
format: 'json',
sessionId: this.accessToken,
sign: '203EF639BA15A6E001B59DB78AB81470B7893CAF',
appKey: 'dd48c515fcde43bea0b5bd0b8f77e119',
v: '1.0'
}
getPlan(data, params)
.then(res => {
Toast.clear()
let newArr = JSON.parse(res).returnModel
console.log('返回的数据', newArr)
newArr.forEach(item => {
item.data.forEach((e, index) => {
e.distance = e.distance.toFixed(2)
e.hospital = e.returnName
e.status = '未去'
e.coordinate = e.destination
e.isOrigin = 'N'
if (index == item.data.length - 1) {
e.pkgs = 0
} else {
e.pkgs = 100
}
// e.distance.toFixed(2)
})
item.data.pop()
})
this.dataList = newArr[0]?.data
console.log('aaaaa', this.dataList)
let arrs = [...this.filterTable, ...this.dataList]
arrs.forEach((item, index) => {
item.rowNo = index + 1
// this.filterTable[index].rowNo = index
// this.dataList[index].rowNo = index
})
})
.catch(() => {})
},
initData2(list) {
Toast.loading({
duration: 0
})
// let destinations = arr.map(item => item.coordinate).join(';')
// 请求接口数据,仅作为展示,需要配置src->config下环境文件
console.log('123', list)
// return
let arr = _.cloneDeep(list)
arr.forEach((item, index) => {
// if (item.dateTime1) {
// item.dateTime = item.dateTime1
// }
item.rowNo = index + 1
return item
})
const data = {
region: this.city,
plate: '',
departure: '',
arrival: '',
departureDate: this.departureData[this.index].dateTime,
customerData: arr
}
const params = {
method: 'GetRoutePlan_test1',
format: 'json',
sessionId: this.accessToken,
sign: '203EF639BA15A6E001B59DB78AB81470B7893CAF',
appKey: 'dd48c515fcde43bea0b5bd0b8f77e119',
v: '1.0'
}
getPlan2(data, params)
.then(res => {
Toast.clear()
let newArr = JSON.parse(res).data
console.log('返回的数据', newArr)
// if (!this.filterTable.length) {
// newArr.shift()
// }
newArr.shift()
console.log(arr)
let sortedArray = newArr.map(item1 =>
arr.find(item2 => {
if (item2.hospital + item2.dateTime == item1.returnName) {
item2.distance = item1.distance.toFixed(2)
item2.duration = item1.duration
item2.stopTime = item1.stopTime
item2.reachDate = item1.reachDate
item2.leaveDate = item1.leaveDate
item2.status = '未去'
// item2.dateTime1 = _.cloneDeep(item2.dateTime)
// item2.dateTime = item1.timeSlot.replace('-', '<br/>')
return item2
}
})
)
this.dataList = sortedArray
console.log('aaaaa', this.dataList)
let arrs = [...this.filterTable, ...this.dataList]
arrs.forEach((item, index) => {
item.rowNo = index + 1
// this.filterTable[index].rowNo = index
// this.dataList[index].rowNo = index
})
})
.catch(() => {})
},
getSessionId() {
let params = {
client_id: 'dd48c515fcde43bea0b5bd0b8f77e119',
grant_type: 'client_credentials',
client_secret: 'c6602114c9ba488b877d0d84b0e5e700',
scope: 'read'
}
getSession(params, {}).then(res => {
this.accessToken = res.access_token
// this.initData(this.curentData.customerData)
// TODO 调试暂时注释
// this.initData([...this.departureData, ...this.targetData])
})
},
getRadom(arr) {
if (arr.length === 0) {
return
}
return Math.round(Math.random() * (arr.length - 1))
},
// 模拟取样
simulatedSampling() {
// this.getRadom(this.curentData.customerData)
// console.log(this.getRadom(this.dataList))
// this.dataList.forEach(item => (item.status = '未去'))
let newArr = [...this.filterTable, ...this.dataList]
this.filterTable = []
for (let i = 0; i <= newArr.length - 1; i++) {
this.$set(newArr[i], `status`, '未去')
}
var num = this.getRadom(newArr) || 1
console.log(num)
// this.curentData.customerData[this.getRadom(this.curentData.customerData)].status = '已去'
for (let i = 0; i < num; i++) {
this.$set(newArr[i], `status`, '已去')
}
this.filterTable = newArr.filter(item => item.status == '已去')
this.dataList = newArr.filter(item => item.status == '未去')
let arr = [...this.filterTable, ...this.dataList]
arr.forEach((item, index) => {
item.rowNo = index + 1
// this.filterTable[index].rowNo = index
// this.dataList[index].rowNo = index
})
console.log(this.filterTable)
console.log(this.dataList)
},
// 重新规划
replanning() {
let data = []
let departobj = {}
if (this.filterTable.length) {
data = [...this.dataList].map(item1 =>
this.orginInsertData[this.cityIndex].customerData.find(item2 => {
if (item2.coordinate == item1.destination && item2.hospital == item1.hospital) {
return item2
} else if (item2.coordinate == item1.coordinate && item2.hospital == item1.hospital) {
return item2
}
})
)
departobj = _.cloneDeep(this.departureData[this.index])
departobj.hospital = this.filterTable[this.filterTable.length - 1].hospital
departobj.address = this.filterTable[this.filterTable.length - 1].returnName
departobj.dateTime = this.filterTable[this.filterTable.length - 1].leaveDate
departobj.coordinate = this.filterTable[this.filterTable.length - 1].coordinate
} else {
data = [...this.dataList].map(item1 =>
this.orginInsertData[this.cityIndex].customerData.find(item2 => {
if (item2.coordinate == item1.destination && `${item2.hospital}${item2.dateTime}` == item1.returnName) {
return item2
} else if (item2.coordinate == item1.coordinate && item2.hospital == item1.hospital) {
return item2
}
})
)
console.log('数据', this.dataList)
departobj = _.cloneDeep(this.departureData[this.index])
}
this.initData([departobj, ...data])
},
// 调整后规划
replanning2() {
let data = []
let departobj = {}
if (this.filterTable.length) {
data = [...this.dataList].map(item1 =>
this.orginInsertData[this.cityIndex].customerData.find(item2 => {
if (item2.coordinate == item1.destination && `${item2.hospital}${item2.dateTime}` == item1.returnName) {
return item2
} else if (item2.coordinate == item1.coordinate && item2.hospital == item1.hospital) {
return item2
}
})
)
departobj = _.cloneDeep(this.departureData[this.index])
departobj.hospital = this.filterTable[this.filterTable.length - 1].hospital
departobj.address = this.filterTable[this.filterTable.length - 1].returnName
departobj.dateTime = this.filterTable[this.filterTable.length - 1].leaveDate
departobj.coordinate = this.filterTable[this.filterTable.length - 1].destination
} else {
data = [...this.dataList].map(item1 =>
this.orginInsertData[this.cityIndex].customerData.find(item2 => {
if (item2.coordinate == item1.destination && `${item2.hospital}${item2.dateTime}` == item1.returnName) {
return item2
} else if (item2.coordinate == item1.coordinate && item2.hospital == item1.hospital) {
return item2
}
})
)
departobj = _.cloneDeep(this.departureData[this.index])
}
this.initData2([departobj, ...data])
},
// 调整顺序
sequence() {},
insertOrder() {
this.show = true
this.insertType = 0
},
insertOrder1() {
this.show = true
this.insertType = 1
},
openDialog() {
this.checkeData = []
},
async handleInsertOrder(action, done) {
if (action === 'confirm') {
// 点击确定走这里
console.log(this.checkeData)
if (!this.checkeData.length) {
Toast('请至少选择一条数据')
return done(false)
}
this.checkeData.forEach(item => {
item.type = 'new'
item.status = '未去'
if (!this.insertType) {
this.dataList.splice(this.getRadom(this.dataList), 0, item)
} else {
let num = this.getRadom(this.dataList)
this.deleteData = [this.dataList[num]]
this.dataList.splice(num, 1)
this.dataList.splice(this.getRadom(this.dataList), 0, item)
}
})
this.dataList.forEach((item, index) => {
item.rowNo = index + 1
})
done(true)
} else {
// 点击取消走这里
done(true) // 关闭弹窗, true可以省略
}
},
// 模拟插单1
insertSheet1() {
this.judgePerson(1)
let arr = [...this.filterTable, ...this.dataList]
arr.forEach((item, index) => {
item.rowNo = index + 1
})
},
// 模拟插单2
insertSheet2() {
let num = this.getRadom(this.dataList)
this.deleteData = [this.dataList[num]]
this.dataList.splice(num, 1)
this.judgePerson(2)
let arr = [...this.filterTable, ...this.dataList]
arr.forEach((item, index) => {
item.rowNo = index + 1
// this.filterTable[index].rowNo = index
// this.dataList[index].rowNo = index
})
},
judgePerson(type) {
// this.dataList.splice(this.getRadom(this.dataList), 0,)
// array.splice(array.length,0,6,8,9);//第二个参数为0的时候,是可以添加参数的,1的时候是删除
if (this.curentData.name == '田耀中') {
if (type == 1) {
this.dataList.splice(this.getRadom(this.dataList), 0, {
rowNo: [...this.dataList, ...this.filterTable].length + 1,
hospital: '聊城市东昌府区妇幼保健院(两癌)',
address: '山东省聊城市东昌府区振兴西路129号',
dateTime: '16:40',
stopTime: 50,
adcode: '340100',
batch: '1',
pkgs: 100,
type: 'new',
coordinate: '115.95710000,36.46834600',
status: '未去'
})
} else {
this.dataList.splice(this.getRadom(this.dataList), 0, {
rowNo: [...this.dataList, ...this.filterTable].length + 1,
hospital: '聊城市茌平区洪官屯镇卫生院',
address: '聊城市茌平区洪官屯镇政府驻地',
dateTime: '15:47',
stopTime: 15,
adcode: '340100',
batch: '1',
pkgs: 100,
type: 'new',
coordinate: '116.06041900,36.39670700',
status: '未去'
})
}
} else if (this.curentData.name == '路飞') {
if (type == 1) {
this.dataList.splice(this.getRadom(this.dataList), 0, {
rowNo: [...this.dataList, ...this.filterTable].length + 1,
hospital: '德州市立医院',
address: '山东省德州市德城区三八路1766号',
dateTime: '12:55',
adcode: '340100',
stopTime: 90,
pkgs: 2,
batch: '1',
type: 'new',
coordinate: '116.29370300,37.45320200',
status: '未去'
})
} else {
this.dataList.splice(this.getRadom(this.dataList), 0, {
rowNo: [...this.dataList, ...this.filterTable].length + 1,
hospital: '德棉医院',
address: '德州市运河开发区纺织大街522号',
dateTime: '14:37',
stopTime: 20,
adcode: '340100',
batch: '1',
pkgs: 0,
type: 'new',
coordinate: '116.27572300,37.45761700',
status: '未去'
})
}
} else if (this.curentData.name == '王东') {
if (type == 1) {
this.dataList.splice(this.getRadom(this.dataList), 0, {
rowNo: [...this.dataList, ...this.filterTable].length + 1,
hospital: '武警山东总队医院',
address: '山东省济南市历下区浆水泉路12--8号',
dateTime: '14:45',
adcode: '340100',
batch: '1',
stopTime: 15,
pkgs: 100,
type: 'new',
coordinate: '117.08718600,36.65631700',
status: '未去'
})
} else {
this.dataList.splice(this.getRadom(this.dataList), 0, {
rowNo: [...this.dataList, ...this.filterTable].length + 1,
hospital: '济南汇安健康管理有限公司历下门诊部',
address: '济南市历下区文化西路15号',
dateTime: '12:05',
batch: '1',
stopTime: 120,
adcode: '340100',
pkgs: 100,
type: 'new',
coordinate: '117.03081400,36.65417800',
status: '未去'
})
}
} else if (this.curentData.name == '尹逊武') {
if (type == 1) {
this.dataList.splice(this.getRadom(this.dataList), 0, {
rowNo: [...this.dataList, ...this.filterTable].length + 1,
batch: '1',
hospital: '山东省中医院(西院)',
address: '山东省济南市文化西路42号',
dateTime: '09:00,12:00',
stopTime: 30,
pkgs: 100,
coordinate: '117.02325300,36.65510600',
type: 'new',
status: '未去'
})
} else {
this.dataList.splice(this.getRadom(this.dataList), 0, {
rowNo: [...this.dataList, ...this.filterTable].length + 1,
batch: '1',
hospital: '山东省千佛山医院',
address: '经十路山师东路',
dateTime: '13:40',
stopTime: 20,
pkgs: 100,
coordinate: '117.04485100,36.64754900',
type: 'new',
status: '未去'
})
}
} else {
if (this.curentData.batch == '第一批') {
this.dataList.splice(this.getRadom(this.dataList), 0, {
rowNo: [...this.dataList, ...this.filterTable].length + 1,
batch: '1',
hospital: '济南样本室对接点',
address: '济南市历下区颖秀路2755号',
dateTime: '19:45',
stopTime: 10,
pkgs: '-',
coordinate: '117.13394400,36.67904500',
type: 'new',
status: '未去'
})
} else {
this.dataList.splice(this.getRadom(this.dataList), 0, {
rowNo: [...this.dataList, ...this.filterTable].length + 1,
batch: '2',
hospital: '济南长途汽车总站对接点',
address: '济南市天桥区济洛路131号',
dateTime: '21:45',
stopTime: 15,
pkgs: '-',
coordinate: '116.99360600,36.68543900',
type: 'new',
status: '未去'
})
}
}
},
nextOrder() {
if (this.index == this.allReturnData.length - 1) {
Toast.fail('已经是最后一条')
return
}
this.index++
this.filterTable = []
this.deleteData = []
this.dataList = this.allReturnData[this.index]?.data
this.replaceRowNo()
},
lastOrder() {
if (this.index == 0) {
Toast.fail('已经是第一条')
return
}
this.index--
this.filterTable = []
this.deleteData = []
this.dataList = this.allReturnData[this.index]?.data
this.replaceRowNo()
},
replaceRowNo() {
this.dataList.forEach((item, index) => {
item.rowNo = index + 1
})
},
// 开启导航
EnableNavigation() {
console.log(this.dataList)
// this.dataList.map(item => item.coordinate).join(';')
this.dataList.map(item => item.coordinate)
let arr = []
if (!this.filterTable.length) {
arr = [this.departureData[this.index], ...this.dataList.filter(item => item.status == '未去')]
} else {
arr = [this.filterTable[this.filterTable.length - 1], ...this.dataList.filter(item => item.status != '已去')]
}
let obj = {
// 起点
startingPoint: arr[0].coordinate,
startingName: arr[0].hospital,
// 终点
terminus: this.curentData.coordinate,
terminusName: this.curentData.arrival
// 途经点
// 116.402796,39.936915
// pointOfPassage: `${this.dataList.map(item => item.coordinate).join('|')},midwaypoint`
}
// console.log(obj)
let url = ''
arr.forEach((item, index) => {
if (index > 0 && index < arr.length) {
url +=
`&via[${index - 1}][adcode]=${item.adcode}` +
`&via[${index - 1}][id]` +
`&via[${index - 1}][lnglat]=${item.coordinate}` +
`&via[${index - 1}][modxy]=${item.coordinate}` +
`&via[${index - 1}][name]=${item.hospital}` +
`&via[${index - 1}][poitype]`
}
})
let aurl = arr.forEach((item, index) => {
if (index > 0 && index < arr.length - 1) {
url += `&via[${index - 1}]=${item.coordinate},${item.hospital}`
}
})
console.log('123', url)
this.mapUrl = `https://ditu.amap.com/dir?dateTime=now&from[adcode]=&from[id]=&from[poitype]=&to[adcode]=&to[id]=&to[poitype]=&type=car&policy=2&from[lnglat]=${obj.startingPoint}&from[modxy]=${obj.startingPoint}&from[name]=${obj.startingName}&to[lnglat]=${obj.terminus}&to[modxy]=${obj.terminus}&to[name]=${obj.terminusName}${url}`
console.log(this.mapUrl)
window.open(this.mapUrl)
// location.assign(this.mapUrl)
let a = `https://uri.amap.com/navigation?from=${this.dataList[0].coordinate},${this.dataList[0].hospital}
&to=${this.curentData.coordinate},${this.curentData.departure}
&via=${aurl}
&mode=car
&callnative=1
&src=mypage
&policy=1
&coordinate=gaode
&callnative`
console.log(a)
// window.open(a)
// location.href = `https://uri.amap.com/navigation?
// from=${this.dataList[0].coordinate}
// &to=${this.dataList[0].coordinate}
// &via=${this.dataList.map(item => item.coordinate).join(';')}
// &mode=car&policy=1&coordinate=gaode&callnative=1`
}
}
}
</script>
<style lang="scss" scoped>
.title {
padding: 10px;
}
.header-text {
font-size: 24px;
font-weight: 800;
}
.table-box {
margin: 12px 0px;
.th-row {
height: 56px;
line-height: 56px;
background: #ebf1f7;
padding: 0px 12px;
font-size: 36px;
}
.tb-row {
font-size: 48px;
height: 56px;
line-height: 56px;
padding: 0px 12px;
}
}
.fixed-bottom-right {
// position: fixed;
margin-top: 80px;
bottom: 20px;
right: 0px;
width: 100%;
}
</style>