|
|
@ -534,7 +534,10 @@ |
|
|
|
mapState.mapData.sendOrderName = hospitalMap.label; |
|
|
|
mapState.mapData.sendOrderName = hospitalMap.label; |
|
|
|
mapState.mapData.sendOrderLng = hospitalMap.mapLng; |
|
|
|
mapState.mapData.sendOrderLng = hospitalMap.mapLng; |
|
|
|
mapState.mapData.sendOrderLat = hospitalMap.mapLat; |
|
|
|
mapState.mapData.sendOrderLat = hospitalMap.mapLat; |
|
|
|
} else console.warn('查找不到发单点数据,请检查发单点!'); |
|
|
|
} else notification.warn({ |
|
|
|
|
|
|
|
message: '查找不到发单点数据,请检查发单点!', |
|
|
|
|
|
|
|
duration: 2 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -545,7 +548,10 @@ |
|
|
|
mapState.mapData.courierUserName = courierUserMap.label; |
|
|
|
mapState.mapData.courierUserName = courierUserMap.label; |
|
|
|
mapState.mapData.courierLng = courierUserMap.mapLng; |
|
|
|
mapState.mapData.courierLng = courierUserMap.mapLng; |
|
|
|
mapState.mapData.courierLat = courierUserMap.mapLat; |
|
|
|
mapState.mapData.courierLat = courierUserMap.mapLat; |
|
|
|
} else console.warn('查找不到起点数据,请检查起点!'); |
|
|
|
} else notification.warn({ |
|
|
|
|
|
|
|
message: '查找不到起点数据,请检查起点!', |
|
|
|
|
|
|
|
duration: 2 |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 处理打开任务配置 */ |
|
|
|
/** 处理打开任务配置 */ |
|
|
@ -577,7 +583,10 @@ |
|
|
|
try { |
|
|
|
try { |
|
|
|
options = eval('(' + options + ')'); |
|
|
|
options = eval('(' + options + ')'); |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
console.error('非法配置'); |
|
|
|
notification.error({ |
|
|
|
|
|
|
|
message: '非法配置', |
|
|
|
|
|
|
|
duration: 2 |
|
|
|
|
|
|
|
}); |
|
|
|
options = {}; |
|
|
|
options = {}; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -603,11 +612,10 @@ |
|
|
|
destination && driving.search(new AMap.LngLat(mapState.mapData.courierLng, mapState.mapData.courierLat), destination, { |
|
|
|
destination && driving.search(new AMap.LngLat(mapState.mapData.courierLng, mapState.mapData.courierLat), destination, { |
|
|
|
waypoints: lngLats |
|
|
|
waypoints: lngLats |
|
|
|
}, function(status, result) { |
|
|
|
}, function(status, result) { |
|
|
|
if (status === 'complete') { |
|
|
|
notification.success({ |
|
|
|
console.log('绘制地图路线完成'); |
|
|
|
message: status === 'complete' ? '绘制地图路线完成!' : `获取地图数据失败:${result}`, |
|
|
|
} else { |
|
|
|
duration: 2 |
|
|
|
console.error('获取地图数据失败:' + result); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|