|
@@ -16,13 +16,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="example-list report-div">
|
|
|
- <el-card class="report-item no-border" shadow="never" v-for="item in calculateList">
|
|
|
+ <el-card class="report-item no-border" shadow="never" v-for="item in calculateList" @click="doCalculateBench(item)">
|
|
|
<div class="report-icon">
|
|
|
- <img src="../../../assets/icons/word.png" style="width: 52px; height: 52px;" />
|
|
|
+ <img src="../../../assets/icons/excel.png" style="width: 52px; height: 52px;" />
|
|
|
</div>
|
|
|
<div class="report-text">
|
|
|
- <!-- <span class="report-text-type">{{ item. }}</span>
|
|
|
- <span> 一 </span> -->
|
|
|
+ <span class="report-text-type">{{ item.projectTypeName }}</span>
|
|
|
+ <span> 一 </span>
|
|
|
<span class="report-text-name">{{ item.calculateName }}
|
|
|
</span>
|
|
|
<div style="margin-top: 5px;">
|
|
@@ -31,51 +31,17 @@
|
|
|
<Avatar />
|
|
|
</el-icon>
|
|
|
{{ item.principal }}</span>
|
|
|
- <span>
|
|
|
+ <!-- <span>
|
|
|
<el-tag style="margin-left: 5px;">
|
|
|
{{ item.projectTypeName }}
|
|
|
</el-tag>
|
|
|
- </span>
|
|
|
+ </span> -->
|
|
|
<span style="float: right; color:darkgrey">
|
|
|
{{ item.createTime }}
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="report-button">
|
|
|
- <el-icon>
|
|
|
- <Download />
|
|
|
- </el-icon>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
- <el-card class="report-item no-border" shadow="never">
|
|
|
- <div class="report-icon">
|
|
|
- <img src="../../../assets/icons/excel.png" style="width: 52px; height: 52px;" />
|
|
|
- </div>
|
|
|
- <div class="report-text">
|
|
|
- <span class="report-text-type">资产债权类测算表</span>
|
|
|
- <span> 一 </span>
|
|
|
- <span class="report-text-name">遂宁市船山区五彩缤纷路132号134号 136号等船山区慈音路2号南瑞弗莱明戈 10栋2层1商业债权评估明细表
|
|
|
- </span>
|
|
|
- <div style="margin-top: 5px;">
|
|
|
- <span>
|
|
|
- <el-icon>
|
|
|
- <Avatar />
|
|
|
- </el-icon>
|
|
|
- 恒丰银行成都分行</span>
|
|
|
- <span>
|
|
|
- <el-tag style="margin-left: 5px;">
|
|
|
- 债权
|
|
|
- </el-tag>
|
|
|
- <el-tag style="margin-left: 5px;" type="danger">
|
|
|
- 评估
|
|
|
- </el-tag>
|
|
|
- </span>
|
|
|
- <span style="float: right; color:darkgrey">
|
|
|
- 2024-10-16 12:10:09
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="report-button">
|
|
|
+ <div class="report-button" @click.stop="downloadFile(item.docUrl, item.docName)">
|
|
|
<el-icon>
|
|
|
<Download />
|
|
|
</el-icon>
|
|
@@ -89,6 +55,7 @@
|
|
|
import { mapStores } from 'pinia'
|
|
|
import { assetsProjectInfo } from '@/stores/assetsProjectStore';
|
|
|
import { getUnFinishedCalculateProgress, listAllByProjectId } from '@/api/assetsCalculate';
|
|
|
+import fileUtil from '@/utils/file'
|
|
|
|
|
|
export default {
|
|
|
name: 'assetsChild',
|
|
@@ -119,12 +86,10 @@ export default {
|
|
|
getUnFinishedCalculateProgress(this.projectStore.projectInfo.id).then(res => {
|
|
|
if (res.data) {
|
|
|
// 根据不同进度跳转到不同步骤页面
|
|
|
- if (res.data.progress === 'GENERATE') {
|
|
|
+ if (res.data.progress === 'IMPORT' || res.data.progress === 'GENERATE' || res.data.progress === 'FINISHED') {
|
|
|
this.$router.push('/home/assets/workbench/calculate/importInfo')
|
|
|
} else if (res.data.progress === 'BASE') {
|
|
|
- this.$router.push('/home/assets/workbench/calculate/qptBaseInfo')
|
|
|
- } else if (res.data.progress === 'FINISHED') {
|
|
|
-
|
|
|
+ this.$router.push('/home/assets/workbench/calculate/eqptBaseInfo')
|
|
|
}
|
|
|
this.projectStore.setCalculateProgress(res.data);
|
|
|
} else {
|
|
@@ -134,13 +99,36 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 前往测算表详情
|
|
|
+ doCalculateBench(item) {
|
|
|
+ this.projectStore.setCalculateProgress(item);
|
|
|
+ // 根据不同进度跳转到不同步骤页面
|
|
|
+ if (item.progress === 'IMPORT' || item.progress === 'GENERATE' || item.progress === 'FINISHED') {
|
|
|
+ this.$router.push('/home/assets/workbench/calculate/importInfo')
|
|
|
+ } else if (item.progress === 'BASE') {
|
|
|
+ this.$router.push('/home/assets/workbench/calculate/eqptBaseInfo')
|
|
|
+ }
|
|
|
+ },
|
|
|
// 获取测算表list
|
|
|
getCalculateList() {
|
|
|
listAllByProjectId(this.projectStore.projectInfo.id).then(res => {
|
|
|
- if(res.data) {
|
|
|
+ if (res.data) {
|
|
|
this.calculateList = res.data;
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ // 下载文件
|
|
|
+ downloadFile(docUrl, docName) {
|
|
|
+ if (docUrl && docName) {
|
|
|
+ let downloadUrl = '/file/download?fileDiskPath=' + docUrl + '&fileName=' + docName
|
|
|
+ fileUtil.download(downloadUrl);
|
|
|
+ } else {
|
|
|
+ ElMessage({
|
|
|
+ showClose: true,
|
|
|
+ message: '文档还未生成,请完成生成步骤!',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
}
|