|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="contrl" style="overflow: auto;height: 85vh;">
|
|
|
+ <div class="contrl" style="overflow: auto;height: 85vh;" v-loading="loading" element-loading-text="生成机器设备报告中...">
|
|
|
<el-divider content-position="left"><span style="color:#ff6154;">生成报告</span></el-divider>
|
|
|
<h3 style="text-align: center;">{{ consignorCompanyNames }}拟进行{{ eqptBaseInfo.purpose
|
|
|
}}所涉及的{{ ownerCompanyNames }}持有的{{ eqptBaseInfo.assetsInfo.assetCount }}台/套机器设备{{ eqptBaseInfo.valueType }}</h3>
|
|
@@ -397,6 +397,7 @@ import { processDate, formatDate } from '@/utils/date'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ loading: false,
|
|
|
reportValidityDatePicker: 'daterange',
|
|
|
eqptBaseInfo: {
|
|
|
consignorInfos: [],
|
|
@@ -653,6 +654,7 @@ export default {
|
|
|
},
|
|
|
// 生成机器设备报告word文件
|
|
|
generateEquipmentReport() {
|
|
|
+ this.loading = true;
|
|
|
generateEquipmentReport(this.projectStore.reportProgress.id).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
ElMessage({
|
|
@@ -663,6 +665,7 @@ export default {
|
|
|
// 更新本地缓存的测算表进度
|
|
|
this.projectStore.reportProgress.progress = 'FINISHED'
|
|
|
}
|
|
|
+ this.loading = false;
|
|
|
})
|
|
|
}
|
|
|
}
|