|
@@ -0,0 +1,636 @@
|
|
|
+<template>
|
|
|
+ <div class="contrl" style="overflow: auto;height: 85vh;">
|
|
|
+ <el-divider content-position="left"><span style="color:#ff6154;">生成报告</span></el-divider>
|
|
|
+ <el-form ref="eqptBaseInfo" :model="eqptBaseInfo" label-width="auto" style="margin-top: 10px;"
|
|
|
+ :rules="eqptBaseInfoRules">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-row :gutter="10">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="评估报告名称:" label-width="180" class="form-item" prop="reportName">
|
|
|
+ <el-input v-model="eqptBaseInfo.reportName" 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="purpose">
|
|
|
+ <el-input v-model="eqptBaseInfo.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="scope">
|
|
|
+ <el-input v-model="eqptBaseInfo.scope" :rows="3" type="textarea" 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="valueType">
|
|
|
+ <el-input v-model="eqptBaseInfo.valueType" 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="preparationPhase">
|
|
|
+ <el-input v-model="eqptBaseInfo.preparationPhase" 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-input v-model="eqptBaseInfo.valuationBasisDate" 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="fieldInvestigationDay">
|
|
|
+ <el-input v-model="eqptBaseInfo.fieldInvestigationDay" 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="method">
|
|
|
+ <el-input v-model="eqptBaseInfo.method" 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="conclusion">
|
|
|
+ <el-input v-model="eqptBaseInfo.conclusion" :rows="3" type="textarea" 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="hasVAT">
|
|
|
+ <el-radio-group v-model="eqptBaseInfo.hasVAT">
|
|
|
+ <el-radio value="true">是</el-radio>
|
|
|
+ <el-radio value="false">否</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </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-input v-model="eqptBaseInfo.reportDate" 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-input v-model="eqptBaseInfo.reportValidity" clearable style="width: 100%;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-divider content-position="left"><span style="color:#ff6154;">资产实物情况</span></el-divider>
|
|
|
+ <el-row :gutter="10">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="资产项数:" label-width="180" class="form-item" prop="assetCount">
|
|
|
+ <el-input v-model="eqptBaseInfo.assetCount" type="number" 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="assetLocation">
|
|
|
+ <el-input v-model="eqptBaseInfo.assetLocation" 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="majorEquipmentAssets">
|
|
|
+ <el-input v-model="eqptBaseInfo.majorEquipmentAssets" :rows="1" type="textarea" 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="purchasePeriod">
|
|
|
+ <el-input v-model="eqptBaseInfo.purchasePeriod" 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="assetCondition">
|
|
|
+ <el-input v-model="eqptBaseInfo.assetCondition" :rows="1" type="textarea" 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="establishMortgage">
|
|
|
+ <el-radio-group v-model="eqptBaseInfo.establishMortgage">
|
|
|
+ <el-radio value="true">是</el-radio>
|
|
|
+ <el-radio value="false">否</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </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="underWarranty">
|
|
|
+ <el-radio-group v-model="eqptBaseInfo.underWarranty">
|
|
|
+ <el-radio value="true">是</el-radio>
|
|
|
+ <el-radio value="false">否</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="10" v-if="eqptBaseInfo.underWarranty && eqptBaseInfo.underWarranty === 'true'">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="基准日尚余未付设备款:" label-width="180" class="form-item" prop="eqptUnpaidAmount">
|
|
|
+ <el-input v-model="eqptBaseInfo.eqptUnpaidAmount" type="number" clearable
|
|
|
+ style="width: 100%;">
|
|
|
+ <template #append>万元</template>
|
|
|
+ </el-input>
|
|
|
+ </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="flaw">
|
|
|
+ <el-input v-model="eqptBaseInfo.flaw" :rows="1" type="textarea" 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-descriptions border v-for="item in eqptBaseInfo.consignorInfos" style="margin-bottom: 10px">
|
|
|
+ <el-descriptions-item label="公司名称">
|
|
|
+ {{ item.consignorCompanyName }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="统一社会信用代码">
|
|
|
+ {{ item.consignorUnifiedSocialCreditCode }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="注册地址">
|
|
|
+ {{ item.consignorRegisteredAddress }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="法定代表人/负责人">
|
|
|
+ {{ item.consignorLegalRepresentative }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="类型">
|
|
|
+ {{ item.consignorType }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="成立日期">
|
|
|
+ {{ item.consignorEstablishmentDate }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="经营范围">
|
|
|
+ {{ item.consignorBusinessScope }}
|
|
|
+ <el-button type="danger" size="small" style="float: right"
|
|
|
+ @click="eqptBaseInfo.consignorInfos.splice(index, 1)">
|
|
|
+ 移除
|
|
|
+ </el-button>
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ <el-button type="danger" style="float: right" @click="consignorInfosVisible = true">
|
|
|
+ 添加委托人
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="10">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-divider content-position="left"><span style="color:#ff6154;">产权持有人概况</span></el-divider>
|
|
|
+ <el-descriptions border v-for="(item, index) in eqptBaseInfo.propertyOwnerInfos"
|
|
|
+ style="margin-bottom: 10px">
|
|
|
+ <el-descriptions-item label="公司名称">
|
|
|
+ {{ item.ownerCompanyName }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="统一社会信用代码">
|
|
|
+ {{ item.ownerUnifiedSocialCreditCode }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="注册地址">
|
|
|
+ {{ item.ownerRegisteredAddress }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="法定代表人/负责人">
|
|
|
+ {{ item.ownerLegalRepresentative }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="类型">
|
|
|
+ {{ item.ownerType }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="成立日期">
|
|
|
+ {{ item.ownerEstablishmentDate }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="经营范围">
|
|
|
+ {{ item.ownerBusinessScope }}
|
|
|
+ <el-button type="danger" size="small" style="float: right"
|
|
|
+ @click="eqptBaseInfo.propertyOwnerInfos.splice(index, 1)">
|
|
|
+ 移除
|
|
|
+ </el-button>
|
|
|
+ </el-descriptions-item>
|
|
|
+
|
|
|
+ </el-descriptions>
|
|
|
+ <el-button type="danger" style="float: right" @click="propertyOwnerInfosVisible = true">
|
|
|
+ 添加产权持有人
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="10">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="委托人与产权持有人之间的关系:" label-width="180" class="form-item"
|
|
|
+ style="margin-top:10px" prop="ownerClient">
|
|
|
+ <el-input v-model="eqptBaseInfo.ownerClient" 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" @click="updateReportBaseInfo()" style="float: right;">
|
|
|
+ 保存报告信息
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <el-dialog v-model="consignorInfosVisible" title="添加委托人" width="700">
|
|
|
+ <el-form ref="consignorInfo" :model="consignorInfo" :rules="consignorInfoRules" label-width="auto"
|
|
|
+ style="margin-top: 10px;">
|
|
|
+ <el-row :gutter="10">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="公司名称:" class="form-item" prop="consignorCompanyName">
|
|
|
+ <el-input v-model="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="consignorUnifiedSocialCreditCode">
|
|
|
+ <el-input v-model="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="consignorRegisteredAddress">
|
|
|
+ <el-input v-model="consignorInfo.consignorRegisteredAddress" 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="consignorLegalRepresentative">
|
|
|
+ <el-input v-model="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="consignorType">
|
|
|
+ <el-input v-model="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="consignorEstablishmentDate">
|
|
|
+ <el-input v-model="consignorInfo.consignorEstablishmentDate" 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="consignorBusinessScope">
|
|
|
+ <el-input v-model="consignorInfo.consignorBusinessScope" :rows="1" type="textarea" clearable
|
|
|
+ style="width: 100%;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="10">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-button type="danger" style="float: right" @click="addConsignorInfo()">添加</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog v-model="propertyOwnerInfosVisible" title="添加产权持有人" width="700">
|
|
|
+ <el-form ref="propertyOwnerInfo" :model="propertyOwnerInfo" :rules="propertyOwnerInfoRules" label-width="auto"
|
|
|
+ style="margin-top: 10px;">
|
|
|
+ <el-row :gutter="10">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="公司名称:" class="form-item" prop="ownerCompanyName">
|
|
|
+ <el-input v-model="propertyOwnerInfo.ownerCompanyName" 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="ownerUnifiedSocialCreditCode">
|
|
|
+ <el-input v-model="propertyOwnerInfo.ownerUnifiedSocialCreditCode" 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="ownerRegisteredAddress">
|
|
|
+ <el-input v-model="propertyOwnerInfo.ownerRegisteredAddress" 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="ownerLegalRepresentative">
|
|
|
+ <el-input v-model="propertyOwnerInfo.ownerLegalRepresentative" 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="ownerType">
|
|
|
+ <el-input v-model="propertyOwnerInfo.ownerType" 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="ownerEstablishmentDate">
|
|
|
+ <el-input v-model="propertyOwnerInfo.ownerEstablishmentDate" 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="ownerBusinessScope">
|
|
|
+ <el-input v-model="propertyOwnerInfo.ownerBusinessScope" :rows="1" type="textarea" clearable
|
|
|
+ style="width: 100%;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="10">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-button type="danger" style="float: right" @click="addPropertyOwnerInfo()">添加</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { mapStores } from 'pinia'
|
|
|
+import { assetsProjectInfo } from '@/stores/assetsProjectStore';
|
|
|
+import { updateReportBaseInfo, getReportBaseInfo } from '@/api/assetsReport'
|
|
|
+
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ eqptBaseInfo: {
|
|
|
+ consignorInfos: [],
|
|
|
+ propertyOwnerInfos: []
|
|
|
+ },
|
|
|
+ eqptBaseInfoRules: {
|
|
|
+ reportName: [
|
|
|
+ { required: true, message: '请输入评估报告名称', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ purpose: [
|
|
|
+ { required: true, message: '请输入评估目的', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ scope: [
|
|
|
+ { required: true, message: '请输入评估范围', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ valueType: [
|
|
|
+ { required: true, message: '请输入价值类型', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ preparationPhase: [
|
|
|
+ { required: true, message: '请输入前期准备阶段', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ valuationBasisDate: [
|
|
|
+ { required: true, message: '请输入评估基准日', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ fieldInvestigationDay: [
|
|
|
+ { required: true, message: '请输入现场调查日', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ method: [
|
|
|
+ { required: true, message: '请输入评估方法', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ conclusion: [
|
|
|
+ { required: true, message: '请输入评估结论', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ hasVAT: [
|
|
|
+ { required: true, message: '请选择是否包含增值税', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ reportDate: [
|
|
|
+ { required: true, message: '请输入评估报告日', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ reportValidity: [
|
|
|
+ { required: true, message: '请输入报告有效期', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ ownerClient: [
|
|
|
+ { required: true, message: '请输入委托人与产权持有人之间的关系', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ assetCount: [
|
|
|
+ { required: true, message: '请输入资产项数', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ assetLocation: [
|
|
|
+ { required: true, message: '请输入资产位置', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ majorEquipmentAssets: [
|
|
|
+ { required: true, message: '请输入主要设备资产', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ purchasePeriod: [
|
|
|
+ { required: true, message: '请输入购置期间', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ assetCondition: [
|
|
|
+ { required: true, message: '请输入资产现状', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ establishMortgage: [
|
|
|
+ { required: true, message: '请选择是否设立抵押权', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ underWarranty: [
|
|
|
+ { required: true, message: '请选择是否尚在质保期', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ eqptUnpaidAmount: [
|
|
|
+ { required: true, message: '请输入基准日尚余未付设备款', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ flaw: [
|
|
|
+ { required: true, message: '请输入产权持有人权属等主要资料不完整或者存在瑕疵的情形', trigger: 'blur' }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ consignorInfosVisible: false,
|
|
|
+ consignorInfo: {},
|
|
|
+ consignorInfoRules: {
|
|
|
+ consignorCompanyName: [
|
|
|
+ { required: true, message: '请输入公司名称', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ consignorUnifiedSocialCreditCode: [
|
|
|
+ { required: true, message: '请输入统一社会信用代码', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ consignorRegisteredAddress: [
|
|
|
+ { required: true, message: '请输入注册地址', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ consignorLegalRepresentative: [
|
|
|
+ { required: true, message: '请输入法定代表人/负责人', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ consignorType: [
|
|
|
+ { required: true, message: '请输入类型', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ consignorEstablishmentDate: [
|
|
|
+ { required: true, message: '请输入成立日期', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ consignorBusinessScope: [
|
|
|
+ { required: true, message: '请输入经营范围', trigger: 'blur' }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ propertyOwnerInfosVisible: false,
|
|
|
+ propertyOwnerInfo: {},
|
|
|
+ propertyOwnerInfoRules: {
|
|
|
+ ownerCompanyName: [
|
|
|
+ { required: true, message: '请输入公司名称', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ ownerUnifiedSocialCreditCode: [
|
|
|
+ { required: true, message: '请输入统一社会信用代码', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ ownerRegisteredAddress: [
|
|
|
+ { required: true, message: '请输入注册地址', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ ownerLegalRepresentative: [
|
|
|
+ { required: true, message: '请输入法定代表人/负责人', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ ownerType: [
|
|
|
+ { required: true, message: '请输入类型', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ ownerEstablishmentDate: [
|
|
|
+ { required: true, message: '请输入成立日期', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ ownerBusinessScope: [
|
|
|
+ { required: true, message: '请输入经营范围', trigger: 'blur' }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ needUpdateStore: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ if(this.projectStore.reportProgress) {
|
|
|
+ this.getReportBaseInfo();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapStores(assetsProjectInfo),
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 添加委托人概况
|
|
|
+ addConsignorInfo() {
|
|
|
+ this.$refs.consignorInfo.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ let data = Object.assign({}, this.consignorInfo);
|
|
|
+ this.eqptBaseInfo.consignorInfos.push(data);
|
|
|
+ this.$refs.consignorInfo.resetFields();
|
|
|
+ this.consignorInfosVisible = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 添加产权持有人概况
|
|
|
+ addPropertyOwnerInfo() {
|
|
|
+ this.$refs.propertyOwnerInfo.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ let data = Object.assign({}, this.propertyOwnerInfo);
|
|
|
+ this.eqptBaseInfo.propertyOwnerInfos.push(data);
|
|
|
+ this.$refs.propertyOwnerInfo.resetFields();
|
|
|
+ this.propertyOwnerInfosVisible = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 更新报告基础信息
|
|
|
+ updateReportBaseInfo() {
|
|
|
+ this.$refs.eqptBaseInfo.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ let params = {};
|
|
|
+ params.reportId = this.projectStore.reportProgress.id;
|
|
|
+ params.baseInfo = JSON.stringify(this.eqptBaseInfo);
|
|
|
+ updateReportBaseInfo(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ ElMessage({
|
|
|
+ showClose: true,
|
|
|
+ message: res.message,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ // 更新本地缓存的测算表进度
|
|
|
+ if (this.needUpdateStore) {
|
|
|
+ this.projectStore.reportProgress.progress = 'GENERATE';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 根据报告id获取报告基础信息
|
|
|
+ getReportBaseInfo() {
|
|
|
+ getReportBaseInfo(this.projectStore.reportProgress.id).then(res => {
|
|
|
+ if (res.data) {
|
|
|
+ this.eqptBaseInfo = JSON.parse(res.data);
|
|
|
+ // 返回不为空说明该步骤以前已经完成了,不需要更新本地缓存
|
|
|
+ this.needUpdateStore = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</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>
|