|
@@ -1,260 +1,91 @@
|
|
<template>
|
|
<template>
|
|
<div class="contrl">
|
|
<div class="contrl">
|
|
- <div style="width: 95%;">
|
|
|
|
- <div class="title-div">
|
|
|
|
- <span>1.上传估价结果一览表</span>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div v-if="upload.excelId">
|
|
|
|
+ <div class="title1-div">
|
|
|
|
+ <span style="font-weight: bold;">报告基本信息</span>
|
|
</div>
|
|
</div>
|
|
- <div class="download-btn">
|
|
|
|
- <img src="../../../assets/icons/form.png"
|
|
|
|
- style="width: 26px; height: 26px; float: left; margin-top: 27px;" />
|
|
|
|
- <el-tooltip content="点击下载" effect="light" placement="top">
|
|
|
|
- <span class="form-name" @click="downloadCollect1">估价结果一览表-模版.xlsx</span>
|
|
|
|
- </el-tooltip>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="target-windows">
|
|
|
|
- <SheetView :uploadUrl="'/api/file/house/guaranty/target'" @getExcelDate="excelDate"
|
|
|
|
- @getUploadReture="uploadReture" v-model:targetsHtml="process.targetsHtml"></SheetView>
|
|
|
|
- </div>
|
|
|
|
- <div class="title1-div">
|
|
|
|
- <span>2.完善基本信息</span>
|
|
|
|
- </div>
|
|
|
|
- <el-form ref="base" :model="baseInfo" label-width="180" label-position="right" :rules="rules"
|
|
|
|
- style="max-width: 100%; border: 1.5px #dae1eb solid; padding: 10px; border-radius: 5px;" :inline="true">
|
|
|
|
- <el-row :gutter="24">
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="委托人:" class="form-item" prop="consignor">
|
|
|
|
- <el-input v-model="baseInfo.consignor" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="报告号:" class="form-item" prop="docNo">
|
|
|
|
- <el-input v-model="baseInfo.docNo" />
|
|
|
|
|
|
+ <el-form ref="base" :model="baseInfo" label-width="180" label-position="right"
|
|
|
|
+ style="max-width: 100%; border: 1.5px #dae1eb solid; padding-top: 20px; padding-bottom: 5px; border-radius: 5px;" :inline="true">
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="24">
|
|
|
|
+ <el-form-item label="估价项目名称:" class="form-item" prop="docName">
|
|
|
|
+ <el-input :value="baseInfo.docName" disabled readonly style="width: 96.2%;" />
|
|
|
|
+ <!-- <div style="width: 100%; background-color: #dae1eb;">2</div> -->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="估价师1:" class="form-item" prop="appraiser1">
|
|
|
|
- <el-select v-model="baseInfo.appraiser1" clearable placeholder="请选择" @change="changeAppr1()">
|
|
|
|
- <el-option v-for="(a, id) in apprisers" :value="a.key">{{ a.key }}</el-option>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ <el-form-item label="报告业务类型:" class="form-item" prop="businessType">
|
|
|
|
+ <el-input :value="baseInfo.businessType=='GUARANTY'?'抵押类':'-'" disabled readonly />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="估价师2:" class="form-item" prop="appraiser2">
|
|
|
|
- <el-select v-model="baseInfo.appraiser2" clearable placeholder="请选择" @change="changeAppr2()">
|
|
|
|
- <el-option v-for="(a, id) in apprisers" :value="a.key">{{ a.key }}</el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="24">
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="出具报告日期:" class="form-item" prop="docDate">
|
|
|
|
- <el-date-picker v-model="baseInfo.docDate" type="date" placeholder="请选择" format="YYYY年MM月DD日"
|
|
|
|
- value-format="YYYY年MM月DD日" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="价值时点:" class="form-item" prop="valueTiming">
|
|
|
|
- <el-date-picker v-model="baseInfo.valueTiming" type="date" placeholder="请选择"
|
|
|
|
- format="YYYY年MM月DD日" value-format="YYYY年MM月DD日" />
|
|
|
|
|
|
+ <el-form-item label="报告号:" class="form-item" prop="docNo">
|
|
|
|
+ <el-input :value="baseInfo.docNo" disabled readonly />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="委托人类型:" class="form-item" prop="consignorType">
|
|
|
|
- <el-input v-model="baseInfo.consignorType" />
|
|
|
|
|
|
+ <el-form-item label="委托人:" class="form-item" prop="consignor">
|
|
|
|
+ <el-input :value="baseInfo.consignor" disabled readonly />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="委托人住所:" class="form-item" prop="consignorAddress">
|
|
|
|
- <el-input v-model="baseInfo.consignorAddress" />
|
|
|
|
|
|
+ <el-form-item label="不动产权利人:" class="form-item" prop="owner">
|
|
|
|
+ <el-input :value="baseInfo.owner" disabled readonly />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="法定代表人:" class="form-item" prop="consignorPerson">
|
|
|
|
- <el-input v-model="baseInfo.consignorPerson" />
|
|
|
|
|
|
+ <el-form-item label="估价师1:" class="form-item" prop="appraiser1">
|
|
|
|
+ <el-input :value="baseInfo.appraiser1" disabled readonly />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="注册资本:" class="form-item" prop="consignorMoney">
|
|
|
|
- <el-input v-model="baseInfo.consignorMoney" />
|
|
|
|
|
|
+ <el-form-item label="估价师2:" class="form-item" prop="appraiser2">
|
|
|
|
+ <el-input :value="baseInfo.appraiser2" disabled readonly />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="统一社会信用代码:" class="form-item" prop="creditCode">
|
|
|
|
- <el-input v-model="baseInfo.creditCode" />
|
|
|
|
|
|
+ <el-form-item label="估价师1注册号:" class="form-item" prop="appraNo1">
|
|
|
|
+ <el-input :value="baseInfo.appraNo1" disabled readonly />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="土地使用权类型:" class="form-item" prop="landUseType">
|
|
|
|
- <el-select v-model="baseInfo.landUseType">
|
|
|
|
- <el-option value="出让" label="出让">出让</el-option>
|
|
|
|
- <el-option value="划拨" label="划拨">划拨</el-option>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ <el-form-item label="估价师2注册号:" class="form-item" prop="appraNo2">
|
|
|
|
+ <el-input :value="baseInfo.appraNo2" disabled readonly />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="评估方法:" class="form-item" prop="methodList">
|
|
|
|
- <el-checkbox-group v-model="baseInfo.methodList">
|
|
|
|
- <el-checkbox label="成本法" value="成本法">
|
|
|
|
- </el-checkbox>
|
|
|
|
- <el-checkbox label="收益法" value="收益法">
|
|
|
|
- </el-checkbox>
|
|
|
|
- </el-checkbox-group>
|
|
|
|
|
|
+ <el-form-item label="出具报告日期:" class="form-item" prop="docDate">
|
|
|
|
+ <el-input :value="baseInfo.docDate" disabled readonly />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="是否提供技术报告:" class="form-item">
|
|
|
|
- <el-radio-group v-model="baseInfo.hasTechReport" clearable>
|
|
|
|
- <el-radio :value="true">是</el-radio>
|
|
|
|
- <el-radio :value="false">否</el-radio>
|
|
|
|
- </el-radio-group>
|
|
|
|
|
|
+ <el-form-item label="价值时点:" class="form-item" prop="valueTiming">
|
|
|
|
+ <el-input :value="baseInfo.valueTiming" disabled readonly />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="是否是农商银行项目:" class="form-item">
|
|
|
|
- <el-radio-group v-model="baseInfo.isNsBank" clearable>
|
|
|
|
- <el-radio :value="true">是</el-radio>
|
|
|
|
- <el-radio :value="false">否</el-radio>
|
|
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="是否审核权属原件:" class="form-item">
|
|
|
|
- <el-radio-group v-model="baseInfo.isCheckOriginCertificate" clearable>
|
|
|
|
- <el-radio :value="true">是</el-radio>
|
|
|
|
- <el-radio :value="false">否</el-radio>
|
|
|
|
- </el-radio-group>
|
|
|
|
|
|
+ <el-form-item label="评估方法:" class="form-item" prop="workMethod">
|
|
|
|
+ <el-input :value="baseInfo.workMethod" disabled readonly />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <div style="width: 100%; text-align: right;">
|
|
|
|
|
|
+ <!-- <div style="width: 100%; text-align: right;">
|
|
<el-button type="text" @click="saveBaseInfo()">
|
|
<el-button type="text" @click="saveBaseInfo()">
|
|
- 保存基本信息
|
|
|
|
|
|
+ 修改基本信息
|
|
</el-button>
|
|
</el-button>
|
|
- </div>
|
|
|
|
- </el-form>
|
|
|
|
- <div class="title1-div">
|
|
|
|
- <span>3.完善抵押权信息</span>
|
|
|
|
- </div>
|
|
|
|
- <el-form ref="pledge" :model="baseInfo" label-width="180" label-position="right" :rules="rules"
|
|
|
|
- style="max-width: 100%; border: 1.5px #dae1eb solid; padding: 10px; border-radius: 5px;" :inline="true">
|
|
|
|
- <el-row :gutter="24">
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="是否设置抵押权:" class="form-item">
|
|
|
|
- <el-radio-group v-model="baseInfo.hasPledge" clearable placeholder="请选择">
|
|
|
|
- <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="24" v-if="baseInfo.hasPledge">
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="抵押权人:" class="form-item" prop="pledgeUser">
|
|
|
|
- <el-input v-model="baseInfo.pledgeUser" clearable />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="抵押权类型:" class="form-item" prop="pledgeType">
|
|
|
|
- <el-select v-model="baseInfo.pledgeType" clearable placeholder="请选择">
|
|
|
|
- <el-option value="一般抵押权">一般抵押权</el-option>
|
|
|
|
- <el-option value="最高额抵押权">最高额抵押权</el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="24" v-if="baseInfo.hasPledge">
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="抵押权利价值:" class="form-item" prop="pledgeValue">
|
|
|
|
- <el-input v-model="baseInfo.pledgeValue" clearable>
|
|
|
|
- <template #append>
|
|
|
|
- <span>万元</span>
|
|
|
|
- </template>
|
|
|
|
- </el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="同一抵押权人续贷:" class="form-item">
|
|
|
|
- <el-radio-group v-model="baseInfo.samePledgeContinue" clearable placeholder="请选择">
|
|
|
|
- <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="24" v-if="baseInfo.hasPledge">
|
|
|
|
- <el-col :span="12" v-if="!baseInfo.samePledgeContinue" >
|
|
|
|
- <el-form-item label="新抵押权利人:" class="form-item" prop="newPledgeUser">
|
|
|
|
- <el-input v-model="baseInfo.newPledgeUser" clearable />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12" v-if="!baseInfo.samePledgeContinue">
|
|
|
|
- <el-form-item label="已设立最高额抵押权,抵押未到期:" class="form-item">
|
|
|
|
- <el-radio-group v-model="baseInfo.highPledgeNotExpire" clearable placeholder="请选择">
|
|
|
|
- <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="24" v-if="baseInfo.hasPledge">
|
|
|
|
- <el-col :span="12" v-if="baseInfo.samePledgeContinue">
|
|
|
|
- <el-form-item label="已设立抵押权,现拟设立最高额抵押权,同一抵押权人:" class="form-item">
|
|
|
|
- <el-radio-group v-model="baseInfo.samePledgeHigh" clearable placeholder="请选择">
|
|
|
|
- <el-radio :value="true">是</el-radio>
|
|
|
|
- <el-radio :value="false">否</el-radio>
|
|
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="其他法定优先受偿款:" class="form-item" prop="firstMoney">
|
|
|
|
- <el-input v-model="baseInfo.firstMoney" clearable>
|
|
|
|
- <template #append>
|
|
|
|
- <span>万元</span>
|
|
|
|
- </template>
|
|
|
|
- </el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="24" v-if="baseInfo.hasPledge">
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="拖欠工程款:" class="form-item" prop="debtMoney">
|
|
|
|
- <el-input v-model="baseInfo.debtMoney" clearable>
|
|
|
|
- <template #append>
|
|
|
|
- <span>万元</span>
|
|
|
|
- </template>
|
|
|
|
- </el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="扣除法定优先受偿款:" class="form-item" prop="isTakeOutFirstMoney">
|
|
|
|
- <el-radio-group v-model="baseInfo.isTakeOutFirstMoney" clearable placeholder="请选择">
|
|
|
|
- <el-radio :value="true">是</el-radio>
|
|
|
|
- <el-radio :value="false">否</el-radio>
|
|
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <div style="width: 100%; text-align: right;">
|
|
|
|
- <el-button type="text" @click="savePladge()">
|
|
|
|
- 保存抵押权信息
|
|
|
|
- </el-button>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
|
|
+ </div> -->
|
|
</el-form>
|
|
</el-form>
|
|
<div style="margin-top: 30px; width: 100%; text-align: right; ">
|
|
<div style="margin-top: 30px; width: 100%; text-align: right; ">
|
|
<el-button type="text" @click="genarate()">
|
|
<el-button type="text" @click="genarate()">
|
|
@@ -264,8 +95,27 @@
|
|
</el-icon>
|
|
</el-icon>
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="width: 95%;">
|
|
|
|
+ <div class="title-div">
|
|
|
|
+ <span style="font-weight: bold;">上传估价结果一览表</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="download-btn">
|
|
|
|
+ <img src="../../../assets/icons/form.png"
|
|
|
|
+ style="width: 26px; height: 26px; float: left; margin-top: 27px;" />
|
|
|
|
+ <el-tooltip content="点击下载" effect="light" placement="top">
|
|
|
|
+ <span class="form-name" @click="downloadCollect1">估价结果一览表-模版.xlsx</span>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="target-windows">
|
|
|
|
+ <SheetView :uploadUrl="'/api/file/house/guaranty/target'"
|
|
|
|
+ @getUploadReture="uploadReture" v-model:targetsHtml="process.targetsHtml"></SheetView>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <!-- <Steps :stepArray="stepArray" ref="steps" :stepsDialogVisible="stepDialog"></Steps> -->
|
|
|
|
|
|
+
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -273,7 +123,7 @@
|
|
import SheetView from '../../../components/SheetView/index.vue'
|
|
import SheetView from '../../../components/SheetView/index.vue'
|
|
import houseGuaranty from '@/api/houseGuaranty';
|
|
import houseGuaranty from '@/api/houseGuaranty';
|
|
import globalConfig from '@/api/globalConfig';
|
|
import globalConfig from '@/api/globalConfig';
|
|
-import houseGuarantyBase from '@/api/houseGuarantyBase';
|
|
|
|
|
|
+import houseExcelData from '@/api/houseExcelData';
|
|
import fileUtil from '@/utils/file'
|
|
import fileUtil from '@/utils/file'
|
|
import Steps from '../../../components/Steps/index.vue'
|
|
import Steps from '../../../components/Steps/index.vue'
|
|
|
|
|
|
@@ -285,27 +135,31 @@ export default {
|
|
|
|
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- rules: {
|
|
|
|
- consignor: [{ required: true, message: '委托人不能为空', trigger: 'blur' }],
|
|
|
|
- docNo: [{ required: true, message: '报告号不能为空', trigger: 'blur' }],
|
|
|
|
- appraiser1: [{ required: true, message: '估价师1不能为空', trigger: 'blur' }],
|
|
|
|
- appraiser2: [{ required: true, message: '估价师2不能为空', trigger: 'blur' }],
|
|
|
|
- docDate: [{ required: true, message: '出具报告日期不能为空', trigger: 'blur' }],
|
|
|
|
- valueTiming: [{ required: true, message: '价值时点不能为空', trigger: 'blur' }],
|
|
|
|
- methodList: [{ required: true, message: '评估方法不能为空', trigger: 'blur' }],
|
|
|
|
- consignorType: [{ required: true, message: '委托人类型不能为空', trigger: 'blur' }],
|
|
|
|
- consignorAddress: [{ required: true, message: '委托人住所不能为空', trigger: 'blur' }],
|
|
|
|
- consignorPerson: [{ required: true, message: '法定代表人不能为空', trigger: 'blur' }],
|
|
|
|
- consignorMoney: [{ required: true, message: '注册资本不能为空', trigger: 'blur' }],
|
|
|
|
- creditCode: [{ required: true, message: '统一社会信用代码不能为空', trigger: 'blur' }],
|
|
|
|
- pledgeUser: [{ required: true, message: '抵押权人不能为空', trigger: 'blur' }],
|
|
|
|
- pledgeType: [{ required: true, message: '抵押权类型不能为空', trigger: 'blur' }],
|
|
|
|
- pledgeValue: [{ required: true, message: '抵押权价值不能为空', trigger: 'blur' }],
|
|
|
|
- newPledgeUser: [{ required: true, message: '新抵押权人不能为空', trigger: 'blur' }],
|
|
|
|
- },
|
|
|
|
|
|
+ // rules: {
|
|
|
|
+ // consignor: [{ required: true, message: '委托人不能为空', trigger: 'blur' }],
|
|
|
|
+ // docNo: [{ required: true, message: '报告号不能为空', trigger: 'blur' }],
|
|
|
|
+ // appraiser1: [{ required: true, message: '估价师1不能为空', trigger: 'blur' }],
|
|
|
|
+ // appraiser2: [{ required: true, message: '估价师2不能为空', trigger: 'blur' }],
|
|
|
|
+ // docDate: [{ required: true, message: '出具报告日期不能为空', trigger: 'blur' }],
|
|
|
|
+ // valueTiming: [{ required: true, message: '价值时点不能为空', trigger: 'blur' }],
|
|
|
|
+ // methodList: [{ required: true, message: '评估方法不能为空', trigger: 'blur' }],
|
|
|
|
+ // consignorType: [{ required: true, message: '委托人类型不能为空', trigger: 'blur' }],
|
|
|
|
+ // consignorAddress: [{ required: true, message: '委托人住所不能为空', trigger: 'blur' }],
|
|
|
|
+ // consignorPerson: [{ required: true, message: '法定代表人不能为空', trigger: 'blur' }],
|
|
|
|
+ // consignorMoney: [{ required: true, message: '注册资本不能为空', trigger: 'blur' }],
|
|
|
|
+ // creditCode: [{ required: true, message: '统一社会信用代码不能为空', trigger: 'blur' }],
|
|
|
|
+ // pledgeUser: [{ required: true, message: '抵押权人不能为空', trigger: 'blur' }],
|
|
|
|
+ // pledgeType: [{ required: true, message: '抵押权类型不能为空', trigger: 'blur' }],
|
|
|
|
+ // pledgeValue: [{ required: true, message: '抵押权价值不能为空', trigger: 'blur' }],
|
|
|
|
+ // newPledgeUser: [{ required: true, message: '新抵押权人不能为空', trigger: 'blur' }],
|
|
|
|
+ // },
|
|
nextPath: '/home/houseWorkbench/certificate',
|
|
nextPath: '/home/houseWorkbench/certificate',
|
|
excelHtml: null,
|
|
excelHtml: null,
|
|
- upload: null,
|
|
|
|
|
|
+ upload: {
|
|
|
|
+ excelId:null,
|
|
|
|
+ fileName:null,
|
|
|
|
+ filePath:null
|
|
|
|
+ },
|
|
processId: null,
|
|
processId: null,
|
|
docId: null,
|
|
docId: null,
|
|
process: {
|
|
process: {
|
|
@@ -324,36 +178,18 @@ export default {
|
|
],
|
|
],
|
|
baseInfo: {
|
|
baseInfo: {
|
|
id: null,
|
|
id: null,
|
|
- docId: null,
|
|
|
|
- consignor: null,
|
|
|
|
|
|
+ businessType: null,
|
|
|
|
+ docName: null,
|
|
docNo: null,
|
|
docNo: null,
|
|
|
|
+ consignor: null,
|
|
|
|
+ owner: null,
|
|
appraiser1: null,
|
|
appraiser1: null,
|
|
appraiser2: null,
|
|
appraiser2: null,
|
|
appraNo1: null,
|
|
appraNo1: null,
|
|
appraNo2: null,
|
|
appraNo2: null,
|
|
docDate: null,
|
|
docDate: null,
|
|
valueTiming: null,
|
|
valueTiming: null,
|
|
- methodList: [],
|
|
|
|
- hasTechReport: false,
|
|
|
|
- isNsBank: false,
|
|
|
|
- isCheckOriginCertificate: false,
|
|
|
|
- consignorType: '有限责任公司',
|
|
|
|
- consignorAddress: null,
|
|
|
|
- consignorPerson: null,
|
|
|
|
- consignorMoney: null,
|
|
|
|
- creditCode: null,
|
|
|
|
- processId: null,
|
|
|
|
- hasPledge: false,
|
|
|
|
- pledgeUser: null,
|
|
|
|
- pledgeType: null,
|
|
|
|
- pledgeValue: null,
|
|
|
|
- samePledgeContinue: true,
|
|
|
|
- newPledgeUser: null,
|
|
|
|
- highPledgeNotExpire: false,
|
|
|
|
- samePledgeHigh: true,
|
|
|
|
- firstMoney: 0,
|
|
|
|
- debtMoney: 0,
|
|
|
|
- isTakeOutFirstMoney: false
|
|
|
|
|
|
+ workMethod: null,
|
|
},
|
|
},
|
|
apprisers: []
|
|
apprisers: []
|
|
}
|
|
}
|
|
@@ -361,11 +197,12 @@ export default {
|
|
|
|
|
|
created() {
|
|
created() {
|
|
this.docId = this.$route.query.id;
|
|
this.docId = this.$route.query.id;
|
|
- this.processId = this.$route.query.businessId;
|
|
|
|
|
|
+ this.upload.excelId = this.$route.query.businessId;
|
|
this.getProcess();
|
|
this.getProcess();
|
|
this.$emit('getDocumentId', this.docId);
|
|
this.$emit('getDocumentId', this.docId);
|
|
|
|
+ this.$emit('getBusinessId', this.upload.excelId);
|
|
this.getBaseInfo();
|
|
this.getBaseInfo();
|
|
- this.getApprisers();
|
|
|
|
|
|
+ // this.getApprisers();
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
@@ -384,13 +221,15 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
- excelDate(data) {
|
|
|
|
- this.excelHtml = data;
|
|
|
|
- },
|
|
|
|
|
|
|
|
uploadReture(data) {
|
|
uploadReture(data) {
|
|
this.upload = data;
|
|
this.upload = data;
|
|
- //this.genTargetTableWord(this.excelHtml,data.filePath);
|
|
|
|
|
|
+ this.docId = data.docId;
|
|
|
|
+ this.getBaseInfo();
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.generateTargetWord();
|
|
|
|
+ },1000)
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
genTargetTableWord(excelData, homePath) {
|
|
genTargetTableWord(excelData, homePath) {
|
|
@@ -415,55 +254,35 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
- async genarate() {
|
|
|
|
- let result = false;
|
|
|
|
- this.$refs.base.validate(valid=>{
|
|
|
|
- if (valid){
|
|
|
|
- result = true;
|
|
|
|
- }else {
|
|
|
|
- ElMessage({
|
|
|
|
- message: '请先完善基本信息',
|
|
|
|
- type: 'error',
|
|
|
|
- plain: true
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- if (this.excelHtml && this.upload) {
|
|
|
|
|
|
+ generateTargetWord(){
|
|
|
|
+ const targetTableHtml = document.getElementsByTagName('table')[0].outerHTML;
|
|
|
|
+ const certificateTableHtml = document.getElementsByTagName('table')[1].outerHTML;
|
|
|
|
+ if (targetTableHtml && this.upload) {
|
|
const param = new Object();
|
|
const param = new Object();
|
|
- param.html = this.excelHtml;
|
|
|
|
|
|
+ param.targetTableHtml = targetTableHtml;
|
|
|
|
+ param.certificateTableHtml = certificateTableHtml;
|
|
param.homePath = this.upload.filePath;
|
|
param.homePath = this.upload.filePath;
|
|
- param.baseId = this.baseInfo.id;
|
|
|
|
- await houseGuaranty.genTargetsTableWord(param).then(res => {
|
|
|
|
|
|
+ param.excelId = this.upload.excelId;
|
|
|
|
+ houseGuaranty.genTargetsTableWord(param).then(res => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.baseInfo.processId = res.data;
|
|
this.baseInfo.processId = res.data;
|
|
this.processId = res.data;
|
|
this.processId = res.data;
|
|
- } else {
|
|
|
|
- result = false;
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- if (result) {
|
|
|
|
- if (this.processId === null || typeof this.processId === 'undefined') {
|
|
|
|
- ElMessage({
|
|
|
|
- message: '请先上传估价对象一览表',
|
|
|
|
- type: 'error',
|
|
|
|
- plain: true
|
|
|
|
- })
|
|
|
|
- result = false;
|
|
|
|
- }
|
|
|
|
- if (this.processId && (typeof this.docId === 'undefined' || this.docId === null)) {
|
|
|
|
- await houseGuaranty.analysisCollect1(this.processId).then(res => {
|
|
|
|
- if (res.code != 200) {
|
|
|
|
- result = false;
|
|
|
|
- } else {
|
|
|
|
- this.docId = res.data;
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
+ genarate() {
|
|
|
|
+ if (this.processId === null || typeof this.processId === 'undefined') {
|
|
|
|
+ ElMessage({
|
|
|
|
+ message: '请先上传估价对象一览表',
|
|
|
|
+ type: 'error',
|
|
|
|
+ plain: true
|
|
|
|
+ })
|
|
}
|
|
}
|
|
- if (this.processId && this.docId) {
|
|
|
|
- await houseGuaranty.genConsignorLetter(this.processId, this.docId).then(res => {
|
|
|
|
|
|
+ if (this.upload.excelId && this.processId) {
|
|
|
|
+ const loading = this.$loading();
|
|
|
|
+ houseGuaranty.genConsignorLetter(this.upload.excelId,this.processId).then(res => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
ElMessage({
|
|
ElMessage({
|
|
message: '致委托人函已生成',
|
|
message: '致委托人函已生成',
|
|
@@ -471,9 +290,16 @@ export default {
|
|
plain: true
|
|
plain: true
|
|
})
|
|
})
|
|
this.$emit('getProcessParentId', this.processId);
|
|
this.$emit('getProcessParentId', this.processId);
|
|
- this.$emit('getDocumentId', this.docId)
|
|
|
|
- } else {
|
|
|
|
- result = false;
|
|
|
|
|
|
+ this.$emit('getDocumentId', this.docId);
|
|
|
|
+ this.$emit('getBusinessId', this.upload.excelId);
|
|
|
|
+ loading.close();
|
|
|
|
+ }else {
|
|
|
|
+ ElMessage({
|
|
|
|
+ message: '致委托人函生成失败,请检查Excel文件。',
|
|
|
|
+ type: 'error',
|
|
|
|
+ plain: true
|
|
|
|
+ })
|
|
|
|
+ loading.close();
|
|
}
|
|
}
|
|
|
|
|
|
})
|
|
})
|
|
@@ -514,11 +340,24 @@ export default {
|
|
this.baseInfo.appraNo2 = apprNo[0].value;
|
|
this.baseInfo.appraNo2 = apprNo[0].value;
|
|
},
|
|
},
|
|
getBaseInfo() {
|
|
getBaseInfo() {
|
|
- if (this.docId) {
|
|
|
|
- houseGuarantyBase.getByDocId(this.docId).then(res => {
|
|
|
|
|
|
+ if (this.upload.excelId) {
|
|
|
|
+ const loading = this.$loading();
|
|
|
|
+ houseExcelData.getBaseInfo(this.upload.excelId).then(res => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.baseInfo = res.data;
|
|
this.baseInfo = res.data;
|
|
- this.baseInfo.methodList = JSON.parse(res.data.methods)
|
|
|
|
|
|
+ ElMessage({
|
|
|
|
+ message: '数据获取成功',
|
|
|
|
+ type: 'success',
|
|
|
|
+ plain: true
|
|
|
|
+ })
|
|
|
|
+ loading.close();
|
|
|
|
+ }else{
|
|
|
|
+ ElMessage({
|
|
|
|
+ message: '数据获取出错',
|
|
|
|
+ type: 'error',
|
|
|
|
+ plain: true
|
|
|
|
+ })
|
|
|
|
+ loading.close();
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -710,4 +549,8 @@ export default {
|
|
:deep(.el-button--text) {
|
|
:deep(.el-button--text) {
|
|
color: #ff6154;
|
|
color: #ff6154;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+:deep(.el-input.is-disabled .el-input__inner){
|
|
|
|
+ -webkit-text-fill-color:black
|
|
|
|
+}
|
|
</style>
|
|
</style>
|