|
|
@@ -1681,6 +1681,17 @@ async function calExpectedArrivalTime() {
|
|
|
}
|
|
|
let isLoadingExcel = ref(false);
|
|
|
async function downloadExcel() {
|
|
|
+ if (
|
|
|
+ !voyage.value.arrivalLoadPortTime ||
|
|
|
+ !voyage.value.loadStartTime ||
|
|
|
+ !voyage.value.loadEndTime
|
|
|
+ ) {
|
|
|
+ ElMessage({
|
|
|
+ message: "航次尚未开航,无船舶跟踪信息",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
isLoadingExcel.value = true;
|
|
|
let res = await downloadBlobFile(
|
|
|
`${url.baseurl}/voyage/exportExcel`,
|