Переглянути джерело

1.新增资产债权生成报告相关页面

GouGengquan 4 місяців тому
батько
коміт
b4e6a4fc6b

+ 7 - 2
src/api/assetsCalculate.js

@@ -46,6 +46,11 @@ export function getDropDownBoxData(params) {
 }
 
 // 根据测算表id获取生成机器设备融资项目报告引用的测算表信息
-export function getReferencesInfoById(params) {
-    return request.get(`/assetsCalculate/getReferencesInfoById/${params}`)
+export function getEqptReferencesInfoById(params) {
+    return request.get(`/assetsCalculate/eqpt/getReferencesInfoById/${params}`)
+}
+
+// 根据测算表id获取债权分析报告引用的测算表信息
+export function getCRReferencesInfoById(params) {
+    return request.get(`/assetsCalculate/cr/getReferencesInfoById/${params}`)
 }

+ 29 - 0
src/router/index.js

@@ -31,6 +31,9 @@ import AssetsEqptReportEqptBaseInfo from '@/views/assets/workbench/eqpt/report/e
 import AssetsCRCalculateWorkbench from '@/views/assets/workbench/cr/calculate/index.vue'
 import AssetsCRCalculateBaseInfo from '@/views/assets/workbench/cr/calculate/baseInfo.vue'
 import AssetsCRCalculateUploadCalculate from '@/views/assets/workbench/cr/calculate/uploadCalculate.vue'
+import AssetsCRReportWorkbench from '@/views/assets/workbench/cr/report/index.vue'
+import AssetsCRReportBaseInfo from '@/views/assets/workbench/cr/report/baseInfo.vue'
+import AssetsCRReportCRBaseInfo from '@/views/assets/workbench/cr/report/crBaseInfo.vue'
 
 const routes = [
   {
@@ -299,6 +302,32 @@ const routes = [
                 },
               }
             ]
+          },
+          {
+            path: 'workbench/cr/report',
+            component: AssetsCRReportWorkbench,
+            name: 'assetsCRReportWorkbench',
+            meta: {
+              title: '文件夹'
+            },
+            children: [
+              {
+                path: 'baseInfo',
+                component: AssetsCRReportBaseInfo,
+                name: 'assetsCRReportBaseInfo',
+                meta: {
+                  title: '报告基本信息'
+                },
+              },
+              {
+                path: 'crBaseInfo',
+                component: AssetsCRReportCRBaseInfo,
+                name: 'assetsCRReportCRBaseInfo',
+                meta: {
+                  title: '生成报告'
+                },
+              }
+            ]
           }
         ],
       }

+ 15 - 5
src/views/assets/folder/child.vue

@@ -111,7 +111,7 @@ export default {
       if (this.projectStore.projectInfo.projectTypeName === '机器设备') {
         this.$router.push({ path: '/home/assets/workbench/eqpt/report/baseInfo', query: { projectId: this.projectInfo.projectId } })
       } else if (this.projectStore.projectInfo.projectTypeName === '债权') {
-        console.log('跳转债权')
+        this.$router.push({ path: '/home/assets/workbench/cr/report/baseInfo', query: { projectId: this.projectInfo.projectId } })
       }
     },
     nextFolder() {},
@@ -147,9 +147,16 @@ export default {
     getReportProgress() {
       getUnFinishedReportProgress(this.projectStore.projectInfo.id).then((res) => {
         if (res.data) {
-          // 根据不同进度跳转到不同步骤页面
-          if (res.data.progress === 'BASE' || res.data.progress === 'GENERATE') {
-            this.$router.push('/home/assets/workbench/eqpt/report/eqptBaseInfo')
+          if (this.projectStore.projectInfo.projectTypeName === '机器设备') {
+            // 根据不同进度跳转到不同步骤页面
+            if (res.data.progress === 'BASE' || res.data.progress === 'GENERATE') {
+              this.$router.push('/home/assets/workbench/eqpt/report/eqptBaseInfo')
+            }
+          } else if (this.projectStore.projectInfo.projectTypeName === '债权') {
+            // 根据不同进度跳转到不同步骤页面
+            if (res.data.progress === 'BASE' || res.data.progress === 'GENERATE') {
+              this.$router.push('/home/assets/workbench/cr/report/crBaseInfo')
+            }
           }
           this.projectStore.setReportProgress(res.data)
         } else {
@@ -188,7 +195,10 @@ export default {
           this.$router.push('/home/assets/workbench/eqpt/report/eqptBaseInfo')
         }
       } else if (this.projectStore.projectInfo.projectTypeName === '债权') {
-        console.log('跳转债权')
+        // 根据不同进度跳转到不同步骤页面
+        if (item.progress === 'BASE' || item.progress === 'GENERATE' || item.progress === 'FINISHED') {
+          this.$router.push('/home/assets/workbench/cr/report/crBaseInfo')
+        }
       }
     },
     // 获取测算表list

+ 142 - 0
src/views/assets/workbench/cr/report/baseInfo.vue

@@ -0,0 +1,142 @@
+<template>
+    <div class="contrl">
+        <el-form ref="baseInfo" :model="baseInfo" label-width="auto" style="margin-top: 10px;" :rules="baseInfoRules">
+            <el-divider content-position="left"><span style="color:#ff6154;">基本信息</span></el-divider>
+            <el-row :gutter="10">
+                <el-col :span="12">
+                    <el-form-item label="报告名:" class="form-item" prop="reportName">
+                        <el-input v-model="baseInfo.reportName" clearable style="width: 100%;" />
+                    </el-form-item>
+                </el-col>
+            </el-row>
+            <el-row :gutter="10">
+                <el-col :span="12">
+                    <el-form-item label="报告号(产品号):" class="form-item" prop="productionNo">
+                        <el-input v-model="baseInfo.productionNo" clearable style="width: 100%;" />
+                    </el-form-item>
+                </el-col>
+            </el-row>
+            <el-row :gutter="10">
+                <el-col :span="12">
+                    <el-form-item label="关联的测算表:" class="form-item" prop="calculateId">
+                        <el-select v-model="baseInfo.calculateId" placeholder="选择关联的测算表">
+                            <el-option v-for="item in dropDownBoxData" :key="item.id" :label="item.name" :value="item.id" />
+                        </el-select>
+                    </el-form-item>
+                </el-col>
+            </el-row>
+            <el-button plain type="danger" style="float: right;" @click="createReport()">
+                下一步
+                <el-icon style="vertical-align: -20%;">
+                    <ArrowRightBold />
+                </el-icon>
+            </el-button>
+        </el-form>
+    </div>
+</template>
+
+<script>
+import { mapStores } from 'pinia'
+import { assetsProjectInfo } from '@/stores/assetsProjectStore';
+import { getDropDownBoxData } from '@/api/assetsCalculate';
+import { createAssetsReport, getUnFinishedReportProgress } from '@/api/assetsReport';
+export default {
+    data() {
+        return {
+            baseInfo: {
+
+            },
+            dropDownBoxData: [],
+            baseInfoRules: {
+                reportName: [
+                    { required: true, message: '请输入报告名', trigger: 'blur' }
+                ],
+                calculateId: [
+                    { required: true, message: '请选择关联的测算表', trigger: 'blur' }
+                ]
+            }
+        }
+    },
+    computed: {
+        ...mapStores(assetsProjectInfo),
+    },
+    created() {
+        this.getDropDownBoxData();
+        if(this.projectStore.reportProgress) {
+            this.baseInfo.id = this.projectStore.reportProgress.id;
+            this.baseInfo.projectId = this.projectStore.projectInfo.id;
+            this.baseInfo.reportName = this.projectStore.reportProgress.reportName;
+            this.baseInfo.calculateId = this.projectStore.reportProgress.calculateId;
+            this.baseInfo.productionNo = this.projectStore.reportProgress.productionNo;
+        }
+    },
+    methods: {
+        // 获取测算表信息下拉框数据
+        getDropDownBoxData() {
+            getDropDownBoxData(this.projectStore.projectInfo.id).then(res => {
+                if (res.data) {
+                    this.dropDownBoxData = res.data
+                }
+            })
+        },
+        // 创建报告,填写测算表基础信息
+        createReport() {
+            this.$refs.baseInfo.validate((valid) => {
+                if (valid) {
+                    if (!this.baseInfo.id) {
+                        this.baseInfo.progress = 'BASE';
+                    }
+                    this.baseInfo.projectId = this.projectStore.projectInfo.id;
+                    createAssetsReport(this.baseInfo).then(res => {
+                        if (res.code == 200) {
+                            ElMessage({
+                                showClose: true,
+                                message: res.message,
+                                type: 'success'
+                            })
+                            this.getReportProgress(true);
+                        }
+                    })
+                }
+            })
+        },
+        // 获取未完成报告的进度信息并保存到缓存
+        getReportProgress(goNext) {
+            getUnFinishedReportProgress(this.projectStore.projectInfo.id).then(res => {
+                if (res.data) {
+                    this.projectStore.setReportProgress(res.data);
+                    if(goNext) {
+                        this.$router.push('/home/assets/workbench/cr/report/crBaseInfo');
+                    }
+                } else {
+                    if(goNext) {
+                        this.$router.push('/home/assets/workbench/cr/report/crBaseInfo');
+                    }
+                }
+            })
+        }
+    }
+}
+</script>
+
+<style scoped>
+.contrl {
+    font-size: 20px;
+    width: 75%;
+    border-right: 1.5px #dae1eb solid;
+    padding: 20px 20px 20px 0px;
+    float: left;
+
+}
+
+:deep(*) {
+    color-scheme: light;
+    --el-color-primary: #ff6154;
+    --el-color-primary-light-3: #ff7154;
+    --el-color-primary-light-5: #ff8154;
+    --el-color-primary-light-7: #ff9154;
+    --el-color-primary-light-8: #ffa999;
+    --el-color-primary-light-9: #ffa854;
+    --el-color-primary-dark-2: #ff8154;
+}
+</style>

+ 2 - 2
src/views/assets/workbench/cr/report/components/timeline.vue

@@ -5,7 +5,7 @@
         :timestamp="projectStore.reportProgress && (projectStore.reportProgress.progress === 'BASE' || projectStore.reportProgress.progress === 'GENERATE' || projectStore.reportProgress.progress === 'FINISHED') ? '已完成' : '未完成'"
         placement="top"
         :color="projectStore.reportProgress && (projectStore.reportProgress.progress === 'BASE' || projectStore.reportProgress.progress === 'GENERATE' || projectStore.reportProgress.progress === 'FINISHED') ? '#ff6154' : '#dae1eb'"
-        @click="goBench('/home/assets/workbench/report/baseInfo', ['BASE', 'GENERATE', 'FINISHED'])">
+        @click="goBench('/home/assets/workbench/cr/report/baseInfo', ['BASE', 'GENERATE', 'FINISHED'])">
         <el-card shadow="never" class="timeline-card report-item">
           <h4>创建报告</h4>
         </el-card>
@@ -14,7 +14,7 @@
         :timestamp="projectStore.reportProgress && (projectStore.reportProgress.progress === 'GENERATE' || projectStore.reportProgress.progress === 'FINISHED') ? '已完成' : '未完成'"
         placement="top"
         :color="projectStore.reportProgress && (projectStore.reportProgress.progress === 'GENERATE' || projectStore.reportProgress.progress === 'FINISHED') ? '#ff6154' : '#dae1eb'"
-        @click="goBench('/home/assets/workbench/report/eqptBaseInfo', ['BASE', 'GENERATE', 'FINISHED'])">
+        @click="goBench('/home/assets/workbench/cr/report/crBaseInfo', ['BASE', 'GENERATE', 'FINISHED'])">
         <el-card shadow="never" class="timeline-card report-item">
           <h4>填写基本信息</h4>
         </el-card>

+ 267 - 0
src/views/assets/workbench/cr/report/crBaseInfo.vue

@@ -0,0 +1,267 @@
+<template>
+    <div class="contrl" style="overflow: auto;height: 85vh;">
+        <el-divider content-position="left">
+            <span style="color:#ff6154;">生成报告</span>
+        </el-divider>
+        <h3 style="text-align: center;">{{ crBaseInfo.consignorInfo.consignorCompanyName }}拟{{ crBaseInfo.purpose }}所涉及的{{ crBaseInfo.debtor }}债权</h3>
+        <el-form ref="crBaseInfo" :model="crBaseInfo" :rules="crBaseInfoRules" label-width="auto" style="margin-top: 10px;">
+            <el-row :gutter="20">
+                <el-col :span="12">
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-divider content-position="left">
+                                <span style="color:#ff6154;">基础信息</span>
+                            </el-divider>
+                        </el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-form-item label="评估目的:" label-width="180" class="form-item" prop="purpose">
+                                <el-input v-model="crBaseInfo.purpose" clearable style="width: 100%;" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-form-item label="评估基准日:" label-width="180" class="form-item" prop="valuationBasisDate">
+                                <el-date-picker v-model="crBaseInfo.valuationBasisDate" value-format="YYYY年M月D日" type="date" clearable style="width: 100%;" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-form-item label="评估报告日:" label-width="180" class="form-item" prop="reportDate">
+                                <el-date-picker v-model="crBaseInfo.reportDate" value-format="YYYY年M月D日" type="date" clearable style="width: 100%;" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-form-item label="报告有效期:" label-width="180" class="form-item" prop="reportValidity">
+                                <el-date-picker v-model="crBaseInfo.reportValidity" value-format="YYYY年M月D日" :type="reportValidityDatePicker" range-separator="至" clearable style="width: 100%;" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-form-item label="债务人:" label-width="180" class="form-item" prop="debtor">
+                                <el-input v-model="crBaseInfo.debtor" clearable style="width: 100%;" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                </el-col>
+                <el-col :span="12">
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-divider content-position="left">
+                                <span style="color:#ff6154;">委托人概况</span>
+                            </el-divider>
+                        </el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-form-item label="公司名称:" class="form-item" prop="consignorInfo.consignorCompanyName">
+                                <el-input v-model="crBaseInfo.consignorInfo.consignorCompanyName" clearable style="width: 100%;" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-form-item label="营业场所:" class="form-item" prop="consignorInfo.businessLocation">
+                                <el-input v-model="crBaseInfo.consignorInfo.businessLocation" clearable style="width: 100%;" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-form-item label="统一社会信用代码:" class="form-item" prop="consignorInfo.consignorUnifiedSocialCreditCode">
+                                <el-input v-model="crBaseInfo.consignorInfo.consignorUnifiedSocialCreditCode" clearable style="width: 100%;" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-form-item label="类型:" class="form-item" prop="consignorInfo.consignorType">
+                                <el-input v-model="crBaseInfo.consignorInfo.consignorType" clearable style="width: 100%;" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-form-item label="负责人:" class="form-item" prop="consignorInfo.consignorLegalRepresentative">
+                                <el-input v-model="crBaseInfo.consignorInfo.consignorLegalRepresentative" clearable style="width: 100%;" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-form-item label="成立日期:" class="form-item" prop="consignorInfo.consignorEstablishmentDate">
+                                <el-date-picker v-model="crBaseInfo.consignorInfo.consignorEstablishmentDate" value-format="YYYY年M月D日" type="date" clearable style="width: 100%;" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                        <el-col :span="24">
+                            <el-form-item label="经营范围:" class="form-item" prop="consignorInfo.consignorBusinessScope">
+                                <el-input v-model="crBaseInfo.consignorInfo.consignorBusinessScope" :rows="5" type="textarea" clearable style="width: 100%;" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <div>
+                        <el-button type="danger" style="float: right;">生成报告</el-button>
+                    </div>
+                    <div style="margin-right:120px">
+                        <el-button type="danger" style="float: right;" @click="updateReportBaseInfo()">保存报告信息</el-button>
+                    </div>
+                </el-col>
+            </el-row>
+        </el-form>
+    </div>
+</template>
+
+<script>
+import { mapStores } from 'pinia';
+import { assetsProjectInfo } from '@/stores/assetsProjectStore';
+import { processDate, formatDate } from '@/utils/date';
+import { updateReportBaseInfo, getReportBaseInfo, generateEquipmentReport } from '@/api/assetsReport';
+import { getCRReferencesInfoById } from '@/api/assetsCalculate';
+
+export default {
+    data() {
+        return {
+            reportValidityDatePicker: 'daterange',
+            crBaseInfo: {
+                consignorInfo: {},
+            },
+            crBaseInfoRules: {
+                purpose: [{ required: true, message: '请输入评估目的', trigger: 'blur' }],
+                valuationBasisDate: [{ required: true, message: '请输入评估基准日', trigger: 'blur' }],
+                reportDate: [{ required: true, message: '请输入评估报告日', trigger: 'blur' }],
+                reportValidity: [{ required: true, message: '请输入报告有效期', trigger: 'blur' }],
+                debtor: [{ required: true, message: '请输入债务人', trigger: 'blur' }],
+                'consignorInfo.consignorCompanyName': [{ required: true, message: '请输入公司名称', trigger: 'blur' }],
+                'consignorInfo.consignorUnifiedSocialCreditCode': [{ required: true, message: '请输入统一社会信用代码', trigger: 'blur' }],
+                'consignorInfo.businessLocation': [{ required: true, message: '请输入营业场所', trigger: 'blur' }],
+                'consignorInfo.consignorLegalRepresentative': [{ required: true, message: '请输入负责人', trigger: 'blur' }],
+                'consignorInfo.consignorType': [{ required: true, message: '请输入类型', trigger: 'blur' }],
+                'consignorInfo.consignorEstablishmentDate': [{ required: true, message: '请输入成立日期', trigger: 'blur' }],
+                'consignorInfo.consignorBusinessScope': [{ required: true, message: '请输入经营范围', trigger: 'blur' }],
+            },
+        };
+    },
+    created() {
+        if (this.projectStore.reportProgress) {
+            this.getReportBaseInfo();
+        }
+        this.getCRReferencesInfoById();
+    },
+    computed: {
+        ...mapStores(assetsProjectInfo),
+    },
+    methods: {
+        // 更新报告基础信息
+        updateReportBaseInfo() {
+            this.$refs.crBaseInfo.validate((valid) => {
+                if (valid) {
+                    // 提交信息前将reportValidity的从数组改为字符串,并将对应的日期选择器类型改为date,不然日期选择器组件接收的数组会报错
+                    this.reportValidityDatePicker = 'date';
+                    this.crBaseInfo.reportValidity = this.crBaseInfo.reportValidity.join('起至');
+                    let params = {};
+                    params.reportId = this.projectStore.reportProgress.id;
+                    params.baseInfo = JSON.stringify(this.crBaseInfo);
+                    updateReportBaseInfo(params).then((res) => {
+                        if (res.code == 200) {
+                            ElMessage({
+                                showClose: true,
+                                message: res.message,
+                                type: 'success',
+                            });
+                            // 更新本地缓存的测算表进度
+                            if (this.needUpdateStore) {
+                                this.projectStore.reportProgress.progress = 'GENERATE';
+                            }
+                        }
+                        // 提交信息之后再改回来
+                        const parts = this.crBaseInfo.reportValidity.split('起至');
+                        this.crBaseInfo.reportValidity = parts.map((part) => part.trim());
+                        this.reportValidityDatePicker = 'daterange';
+                    });
+                }
+            });
+        },
+        // 根据报告id获取报告基础信息
+        getReportBaseInfo() {
+            getReportBaseInfo(this.projectStore.reportProgress.id).then((res) => {
+                if (res.data) {
+                    this.crBaseInfo = JSON.parse(res.data);
+                    if (this.crBaseInfo.reportValidity) {
+                        const parts = this.crBaseInfo.reportValidity.split('起至');
+                        this.crBaseInfo.reportValidity = parts.map((part) => part.trim());
+                    }
+                    // 返回不为空说明该步骤以前已经完成了,不需要更新本地缓存
+                    this.needUpdateStore = false;
+                }
+            });
+        },
+        // 根据测算表id获取债权分析报告引用的测算表信息
+        getCRReferencesInfoById() {
+            getCRReferencesInfoById(this.projectStore.reportProgress.calculateId).then((res) => {
+                if (res.data) {
+                    if (!this.crBaseInfo.valuationBasisDate) {
+                        const date = new Date(res.data.valuationBasisDate);
+                        this.crBaseInfo.valuationBasisDate = formatDate(date);
+                    }
+                    if (!this.crBaseInfo.reportValidity) {
+                        this.crBaseInfo.reportValidity = [];
+                        this.crBaseInfo.reportValidity.push(this.crBaseInfo.valuationBasisDate);
+                        this.crBaseInfo.reportValidity.push(formatDate(processDate(this.crBaseInfo.valuationBasisDate)));
+                    }
+                }
+            });
+        },
+    },
+};
+</script>
+
+<style scoped>
+.contrl {
+    font-size: 20px;
+    width: 75%;
+    border-right: 1.5px #dae1eb solid;
+    padding: 0px 20px 20px 0px;
+    float: left;
+}
+
+:deep(.el-input__wrapper.is-focus) {
+    --el-input-focus-border: #ff6154;
+    --el-input-focus-border-color: #ff6154;
+}
+
+.target-windows {
+    margin-top: 80px;
+    overflow-y: scroll;
+    padding: 5px;
+    border: 1.5px #dae1eb solid;
+    border-radius: 0.3em;
+}
+
+.title-div {
+    height: 80px;
+    line-height: 80px;
+    width: 300px;
+    float: left;
+    font-size: 20px;
+    font-weight: 900;
+}
+
+:deep(*) {
+    color-scheme: light;
+    --el-color-primary: #ff6154;
+    --el-color-primary-light-3: #ff7154;
+    --el-color-primary-light-5: #ff8154;
+    --el-color-primary-light-7: #ff9154;
+    --el-color-primary-light-8: #ffa999;
+    --el-color-primary-light-9: #ffa854;
+    --el-color-primary-dark-2: #ff8154;
+}
+</style>

+ 4 - 4
src/views/assets/workbench/eqpt/report/eqptBaseInfo.vue

@@ -381,7 +381,7 @@
 import { mapStores } from 'pinia'
 import { assetsProjectInfo } from '@/stores/assetsProjectStore';
 import { updateReportBaseInfo, getReportBaseInfo, generateEquipmentReport } from '@/api/assetsReport';
-import { getReferencesInfoById } from '@/api/assetsCalculate';
+import { getEqptReferencesInfoById } from '@/api/assetsCalculate';
 import { processDate, formatDate } from '@/utils/date'
 
 export default {
@@ -520,7 +520,7 @@ export default {
         if (this.projectStore.reportProgress) {
             this.getReportBaseInfo();
         }
-        this.getReferencesInfoById();
+        this.getEqptReferencesInfoById();
     },
     computed: {
         ...mapStores(assetsProjectInfo),
@@ -611,8 +611,8 @@ export default {
             })
         },
         // 根据测算表id获取生成机器设备融资项目报告引用的测算表信息
-        getReferencesInfoById() {
-            getReferencesInfoById(this.projectStore.reportProgress.calculateId).then(res => {
+        getEqptReferencesInfoById() {
+            getEqptReferencesInfoById(this.projectStore.reportProgress.calculateId).then(res => {
                 if (res.data) {
                     if (!this.eqptBaseInfo.assetsInfo.purchasePeriod) {
                         this.eqptBaseInfo.assetsInfo.purchasePeriod = res.data.purchasePeriod;