|
@@ -319,7 +319,16 @@
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="container-title">卸货记录</div>
|
|
|
|
|
|
|
+ <div class="container-title df aic jcsb">
|
|
|
|
|
+ <div>卸货记录</div>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ @click="exportDischargeExcel"
|
|
|
|
|
+ style="width: 220px; margin-right: 20px"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :loading="isDischargeLoadingExcel"
|
|
|
|
|
+ >下载卸货信息</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
<div class="line-container-p24">
|
|
<div class="line-container-p24">
|
|
|
<el-card
|
|
<el-card
|
|
|
style="
|
|
style="
|
|
@@ -657,6 +666,7 @@ import router from "../../router";
|
|
|
import store from "../../store";
|
|
import store from "../../store";
|
|
|
import { ElNotification, ElMessageBox, ElMessage } from "element-plus";
|
|
import { ElNotification, ElMessageBox, ElMessage } from "element-plus";
|
|
|
import downloadBlobFile from "../../utils/downloadBlobFile";
|
|
import downloadBlobFile from "../../utils/downloadBlobFile";
|
|
|
|
|
+import url from "../../apis/config";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
setup() {
|
|
setup() {
|
|
@@ -1135,7 +1145,7 @@ export default {
|
|
|
async function downloadExcel() {
|
|
async function downloadExcel() {
|
|
|
isLoadingExcel.value = true;
|
|
isLoadingExcel.value = true;
|
|
|
let res = await downloadBlobFile(
|
|
let res = await downloadBlobFile(
|
|
|
- "https://interface.huihenduo.com.cn/hhd-pat/voyage/exportExcel",
|
|
|
|
|
|
|
+ `${url.baseurl}/voyage/exportExcel`,
|
|
|
{ voyageId: route.query.id },
|
|
{ voyageId: route.query.id },
|
|
|
"船舶跟踪表",
|
|
"船舶跟踪表",
|
|
|
"post"
|
|
"post"
|
|
@@ -1176,6 +1186,21 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
let certs = ref(null);
|
|
let certs = ref(null);
|
|
|
|
|
+
|
|
|
|
|
+ let isDischargeLoadingExcel = ref(false);
|
|
|
|
|
+ async function exportDischargeExcel() {
|
|
|
|
|
+ isDischargeLoadingExcel.value = true;
|
|
|
|
|
+ let res = await downloadBlobFile(
|
|
|
|
|
+ `${url.baseurl}/voyage/exportDischargeExcel`,
|
|
|
|
|
+ { voyageId: route.query.id },
|
|
|
|
|
+ "卸货记录表",
|
|
|
|
|
+ "post"
|
|
|
|
|
+ );
|
|
|
|
|
+ if (res) {
|
|
|
|
|
+ isDischargeLoadingExcel.value = false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
getVoyageDetail(1);
|
|
getVoyageDetail(1);
|
|
|
getDischargeList(1);
|
|
getDischargeList(1);
|
|
@@ -1184,6 +1209,7 @@ export default {
|
|
|
certs,
|
|
certs,
|
|
|
downloadExcel,
|
|
downloadExcel,
|
|
|
isLoadingExcel,
|
|
isLoadingExcel,
|
|
|
|
|
+ isDischargeLoadingExcel,
|
|
|
options,
|
|
options,
|
|
|
voyage,
|
|
voyage,
|
|
|
coordinates,
|
|
coordinates,
|
|
@@ -1238,6 +1264,7 @@ export default {
|
|
|
updatePoundParams,
|
|
updatePoundParams,
|
|
|
getupdatePoundBillList,
|
|
getupdatePoundBillList,
|
|
|
updatePoundBillList,
|
|
updatePoundBillList,
|
|
|
|
|
+ exportDischargeExcel,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|