|
|
@@ -311,7 +311,7 @@
|
|
|
</div>
|
|
|
<div class="Enclosure flex f-c back">
|
|
|
<div class="home flex j-s a-c">
|
|
|
- <div class="flex j-s a-c">
|
|
|
+ <div class="flex j-s a-c" id="toubaor">
|
|
|
<img src="../../../../src/icon/投保人信息.png" alt class="icon-img" />
|
|
|
<span style="margin-left:10px;">投保人信息</span>
|
|
|
</div>
|
|
|
@@ -708,29 +708,25 @@
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-form class="demo-ruleForm" :model="policyNumberForm" ref="policyNumberForm" :rules="rules"
|
|
|
- label-width="160px" size="small" style="margin-top: 15px">
|
|
|
+ <el-form class="demo-ruleForm" :model="policyNumberForm" ref="policyNumberForm" :rules="rules" label-width="160px"
|
|
|
+ size="small" style="margin-top: 15px">
|
|
|
<el-row style="flex-wrap: wrap; display: flex;">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="评分" prop="jqpolicyno">
|
|
|
- <el-input v-model="policyNumberForm.score" placeholder="请输入评分" ></el-input>
|
|
|
+ <el-form-item label="评分" prop="score">
|
|
|
+ <el-input v-model="policyNumberForm.score" placeholder="请输入评分"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="交强续保" prop="jqpolicyno">
|
|
|
+ <el-form-item label="交强续保" prop="jqRenewal">
|
|
|
<el-select v-model="policyNumberForm.jqRenewal" placeholder="请选择交强续保">
|
|
|
- <el-option
|
|
|
- v-for="item in [
|
|
|
+ <el-option v-for="item in [
|
|
|
{
|
|
|
- label:'是',
|
|
|
- value:'1'
|
|
|
- },{
|
|
|
- label:'否',
|
|
|
- value:'0'
|
|
|
- }]"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
+ label: '是',
|
|
|
+ value: '1'
|
|
|
+ }, {
|
|
|
+ label: '否',
|
|
|
+ value: '0'
|
|
|
+ }]" :key="item.value" :label="item.label" :value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
@@ -738,65 +734,61 @@
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="商业续保" prop="syRenewal">
|
|
|
<el-select v-model="policyNumberForm.syRenewal" placeholder="请选择商业续保">
|
|
|
- <el-option
|
|
|
- v-for="item in [
|
|
|
+ <el-option v-for="item in [
|
|
|
{
|
|
|
- label:'是',
|
|
|
- value:'1'
|
|
|
- },{
|
|
|
- label:'否',
|
|
|
- value:'0'
|
|
|
- }]"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
+ label: '是',
|
|
|
+ value: '1'
|
|
|
+ }, {
|
|
|
+ label: '否',
|
|
|
+ value: '0'
|
|
|
+ }]" :key="item.value" :label="item.label" :value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="交强保单号" prop="jqpolicyno">
|
|
|
- <el-input v-model="policyNumberForm.jqpolicyno" placeholder="请输入交强保单号" ></el-input>
|
|
|
+ <el-input v-model="policyNumberForm.jqpolicyno" placeholder="请输入交强保单号"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" >
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="交强险保费" prop="jqpremium">
|
|
|
<el-input v-model="policyNumberForm.jqpremium" placeholder="请输入交强险保费" type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" >
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="交强险总比例(%)" prop="jqCostsProportion">
|
|
|
<el-input v-model="policyNumberForm.jqCostsProportion" placeholder="请输入交强险其他费用比例" type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" >
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="商业保单号" prop="sypolicyno">
|
|
|
<el-input v-model="policyNumberForm.sypolicyno" placeholder="请输入商业保单号" type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="8" >
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="商业险保费" prop="sypremium">
|
|
|
<el-input v-model="policyNumberForm.sypremium" placeholder="请输入商业险保费" type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" >
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="商业险总比例(%)" prop="syCostsProportion">
|
|
|
<el-input v-model="policyNumberForm.syCostsProportion" placeholder="请输入商业险其他费用比例" type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" >
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="驾意保单号" prop="jypolicyno">
|
|
|
<el-input v-model="policyNumberForm.jypolicyno" placeholder="请输入驾意保单号" type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="8" >
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="驾意险保费" prop="jypremium">
|
|
|
<el-input v-model="policyNumberForm.jypremium" placeholder="请输入驾意险保费" type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" >
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="非车险总比例(%)" prop="noCostsProportion">
|
|
|
<el-input v-model="policyNumberForm.noCostsProportion" placeholder="请输入非车其他费用比例" type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -820,17 +812,14 @@
|
|
|
</el-form-item>
|
|
|
</el-col> -->
|
|
|
|
|
|
- <el-col :span="8" >
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="车船税" prop="taxamount">
|
|
|
<el-input v-model="policyNumberForm.taxamount" placeholder="请输入车船税" type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" >
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="签单日期" prop="signDate">
|
|
|
- <el-date-picker
|
|
|
- v-model="policyNumberForm.signDate"
|
|
|
- type="datetime"
|
|
|
- value-format="yyyy-MM-dd hh:mm:ss"
|
|
|
+ <el-date-picker v-model="policyNumberForm.signDate" type="datetime" value-format="yyyy-MM-dd hh:mm:ss"
|
|
|
placeholder="选择日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
@@ -870,18 +859,18 @@
|
|
|
<div>
|
|
|
<div class="companyhead">
|
|
|
<el-row>
|
|
|
- <el-col :span="1" >
|
|
|
+ <el-col :span="1">
|
|
|
<!-- <el-checkbox v-if="isLetter !== '3'" style="margin:0 10px 0 10px"
|
|
|
@change="handleCheckAllChange"></el-checkbox>-->
|
|
|
<span style="font-size:14px; ">选择</span>
|
|
|
</el-col>
|
|
|
<el-col :span="2" style="margin: 0 42px 0 35px;">
|
|
|
- <span >保险公司</span>
|
|
|
+ <span>保险公司</span>
|
|
|
</el-col>
|
|
|
<el-col :span="5">
|
|
|
<span>报价协议</span>
|
|
|
</el-col>
|
|
|
- <el-col :span="3" v-if="isLetter!=='3'">
|
|
|
+ <el-col :span="3" v-if="isLetter !== '3'">
|
|
|
<span>报价结果</span>
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
@@ -898,11 +887,11 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
- <div class="coll" v-if="isLetter=='3'">
|
|
|
+ <div class="coll" v-if="isLetter == '3'">
|
|
|
<div v-loading.fullscreen.lock="loading" class="hovers" v-for="(reslistitem, reslistindex) in totalCompanyList"
|
|
|
:key="reslistindex">
|
|
|
<el-row>
|
|
|
- <el-col :span="1" style="margin-left: 20px;">
|
|
|
+ <el-col :span="1" style="margin-left: 20px;">
|
|
|
<el-checkbox v-model="reslistitem.checked" :disabled="reslistitem.disabled"
|
|
|
@change="event => initchange(event, reslistitem.id, reslistitem.cnName, reslistindex)"></el-checkbox>
|
|
|
</el-col>
|
|
|
@@ -926,27 +915,27 @@
|
|
|
</div>
|
|
|
</el-select>
|
|
|
</el-col>
|
|
|
- <el-col :span="3" v-if='policyNumberFormPro.jqpremium'>
|
|
|
+ <el-col :span="3">
|
|
|
<span style="color:#D42426;font-weight:bold;">
|
|
|
- ¥{{ policyNumberFormPro.jqpremium }}
|
|
|
+ ¥{{ reslistitem.result.jqpremium }}
|
|
|
</span>
|
|
|
</el-col>
|
|
|
- <el-col :span="3" v-if="policyNumberFormPro.taxamount" >
|
|
|
+ <el-col :span="3">
|
|
|
<span style="color:#D42426;font-weight:bold;">
|
|
|
¥{{
|
|
|
- policyNumberFormPro.taxamount }}
|
|
|
+ reslistitem.result.taxamount }}
|
|
|
</span>
|
|
|
</el-col>
|
|
|
- <el-col :span="3" v-if="policyNumberFormPro.sypremium">
|
|
|
+ <el-col :span="3">
|
|
|
<span style="color:#D42426;font-weight:bold;">
|
|
|
¥{{
|
|
|
- policyNumberFormPro.sypremium }}
|
|
|
+ reslistitem.result.sypremium }}
|
|
|
</span>
|
|
|
</el-col>
|
|
|
- <el-col :span="2" v-if="policyNumberFormPro.jypremium">
|
|
|
+ <el-col :span="2">
|
|
|
<span style="color:#D42426;font-weight:bold;">
|
|
|
¥{{
|
|
|
- policyNumberFormPro.jypremium }}
|
|
|
+ reslistitem.result.jypremium }}
|
|
|
</span>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -956,7 +945,8 @@
|
|
|
style="margin:20px 20px 0 100px;display: inline-block">{{ reslistitem.underwritingDescription }}</span>
|
|
|
<!-- </div> -->
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '泰康财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '泰康财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<el-form :inline="true" :model="accidentFormTk" class="demo-form-inline" size="small"
|
|
|
style="font-weight:bold;margin-top:15px">
|
|
|
@@ -986,7 +976,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '恒邦财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '恒邦财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<div class="dis a-c" style="margin:15px 0">
|
|
|
<span style="margin-right:15px;font-weight:bold">选择意外险</span>
|
|
|
@@ -1006,7 +997,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '华农财险' && reslistitem.checked && reslistitem.agreementId &&isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '华农财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<el-form :inline="true" :model="accidentFormHN" class="demo-form-inline"
|
|
|
style="font-weight:bold;margin-top:15px" size="small">
|
|
|
@@ -1034,7 +1026,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '太平财险' && reslistitem.checked && reslistitem.agreementId &&isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '太平财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<div class="dis a-c" style="margin:15px 0">
|
|
|
<span style="margin-right:15px;font-weight:bold">选择意外险</span>
|
|
|
@@ -1054,7 +1047,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '安盛天平' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '安盛天平' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<div class="dis a-c" style="margin-top:15px">
|
|
|
<span style="margin-right:15px;font-weight:bold;">意外险类型</span>
|
|
|
@@ -1079,7 +1073,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '中国人寿' && reslistitem.checked && reslistitem.agreementId&& isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '中国人寿' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div style="margin:15px 0 15px 100px">
|
|
|
<span>商业险折扣:</span>
|
|
|
<el-input style="width:220px" :disabled="!lastCompanyId" size="small" v-model="reslistitem.discount"
|
|
|
@@ -1112,7 +1107,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '众安财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '众安财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<div class="dis a-c" style="margin:15px 0">
|
|
|
<span style="margin-right:15px;font-weight:bold">选择意外险</span>
|
|
|
@@ -1131,7 +1127,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '紫金财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '紫金财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div style="margin:15px 0 15px 100px">
|
|
|
<span>自主定价系数:</span>
|
|
|
<el-input style="width:220px" size="small" v-model="reslistitem.coefficient"
|
|
|
@@ -1173,7 +1170,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '永诚财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '永诚财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<el-form :inline="true" :model="accidentForm" class="demo-form-inline" size="small"
|
|
|
style="font-weight:bold;margin-top:15px">
|
|
|
@@ -1203,7 +1201,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '国任财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '国任财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<!-- <div style="margin:10px 0 0 100px;">
|
|
|
<span style="margin-right:20px"> {{reslistitem.underwritingDescription}}</span>-->
|
|
|
<el-button type="text" style="margin:10px 0 0 100px;"
|
|
|
@@ -1244,7 +1243,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '中煤财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '中煤财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div class="flex f-c Driving-risk accident-style zmDriving">
|
|
|
<el-form :inline="true" :model="accidentFormZM" class="demo-form-inline" size="small"
|
|
|
style="font-weight:bold;margin-top:15px">
|
|
|
@@ -1285,7 +1285,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '大家财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '大家财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<div class="dis a-c" style="margin-top:15px">
|
|
|
<span style="margin-right:15px;font-weight:bold">选择意外险</span>
|
|
|
@@ -1305,7 +1306,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '渤海财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '渤海财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div class="flex f-c Driving-risk" style="margin-top:15px">
|
|
|
<el-form :inline="true" :model="boHaiaccidentForm" class="demo-form-inline" size="small">
|
|
|
<el-form-item label="意外险类型" style="margin-right:30px;">
|
|
|
@@ -1339,7 +1341,7 @@
|
|
|
<div v-loading.fullscreen.lock="loading" class="hovers" v-for="(reslistitem, reslistindex) in totalCompanyList"
|
|
|
:key="reslistindex">
|
|
|
<el-row>
|
|
|
- <el-col :span="1" style="margin-left: 20px;">
|
|
|
+ <el-col :span="1" style="margin-left: 20px;">
|
|
|
<el-checkbox v-model="reslistitem.checked" :disabled="reslistitem.disabled"
|
|
|
@change="event => initchange(event, reslistitem.id, reslistitem.cnName, reslistindex)"></el-checkbox>
|
|
|
</el-col>
|
|
|
@@ -1587,7 +1589,8 @@
|
|
|
style="margin:20px 20px 0 100px;display: inline-block">{{ reslistitem.underwritingDescription }}</span>
|
|
|
<!-- </div> -->
|
|
|
</template>
|
|
|
- <template v-if="reslistitem.namesimple == '泰康财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
|
|
|
+ <template
|
|
|
+ v-if="reslistitem.namesimple == '泰康财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<el-form :inline="true" :model="accidentFormTk" class="demo-form-inline" size="small"
|
|
|
style="font-weight:bold;margin-top:15px">
|
|
|
@@ -2763,25 +2766,25 @@
|
|
|
<el-form :model="policyNumberForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
|
|
<el-form-item label="交强保单:" prop="jqPolicy">
|
|
|
<el-upload class="upload-demo" ref="jqPolicyupload" action="#" :limit="1" :auto-upload="false"
|
|
|
- :file-list="fileListjqPolicy" :on-change="file => policydrivingupload(file, 'jqPolicy')">
|
|
|
+ :file-list="policyNumberForm.jqPolicyList" :on-change="file => policydrivingupload(file, 'jqPolicy')">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="商业保单:" prop="syPolicy">
|
|
|
<el-upload class="upload-demo" ref="syPolicyupload" action="#" :limit="1" :auto-upload="false"
|
|
|
- :file-list="fileListnoPolicy" :on-change="file => policydrivingupload(file, 'syPolicy')">
|
|
|
+ :file-list="policyNumberForm.syPolicyList" :on-change="file => policydrivingupload(file, 'syPolicy')">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="非车保单:" prop="noPolicy">
|
|
|
<el-upload class="upload-demo" ref="noPolicyupload" action="#" :limit="1" :auto-upload="false"
|
|
|
- :file-list="fileListnoPolicy" :on-change="file => policydrivingupload(file, 'noPolicy')">
|
|
|
+ :file-list="policyNumberForm.noPolicyList" :on-change="file => policydrivingupload(file, 'noPolicy')">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="交强电子标志:" prop="jqSign">
|
|
|
<el-upload class="upload-demo" ref="jqSignupload" action="#" :limit="1" :auto-upload="false"
|
|
|
- :file-list="fileListjqSign" :on-change="file => policydrivingupload(file, 'jqSign')">
|
|
|
+ :file-list="policyNumberForm.jqSignList" :on-change="file => policydrivingupload(file, 'jqSign')">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
@@ -2878,8 +2881,11 @@ export default {
|
|
|
jqReceivableProportion: '',
|
|
|
syReceivableProportion: '',
|
|
|
noReceivableProportion: '',
|
|
|
+ jqPolicyList: [],
|
|
|
+ syPolicyList: [],
|
|
|
+ jqSignList: [],
|
|
|
+ noPolicyList: [],
|
|
|
},
|
|
|
- policyNumberFormPro:{},
|
|
|
watermarkedImage: '',
|
|
|
redictInfoMsg: [],
|
|
|
redictInfodialogVisible: false,
|
|
|
@@ -4181,10 +4187,7 @@ export default {
|
|
|
apiInterfaceName: 'generateOrder',
|
|
|
isLetter3Arr: [],
|
|
|
isLetter3agreementId: '',
|
|
|
- fileListnoPolicy: [],
|
|
|
- fileListnoPolicy: [],
|
|
|
- fileListjqSign: [],
|
|
|
- fileListjqPolicy: [],
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -4312,25 +4315,32 @@ export default {
|
|
|
localStorage.setItem("carInfo", JSON.stringify(this.carInfo));
|
|
|
localStorage.setItem("insureList", JSON.stringify(this.insureList));
|
|
|
//--归属信息获取--
|
|
|
- var userId = Cookies.get("user");
|
|
|
- if (userId == "admin") {
|
|
|
- this.userId = "admin";
|
|
|
- } else {
|
|
|
- // this.userId = userId;
|
|
|
- this.$api.user.getLoginUser().then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.userId = res.data.id;
|
|
|
- this.userform = res.data;
|
|
|
- this.$api.dept.getDeptById(res.data.deptId).then(res => {
|
|
|
- this.deptName = res.data.name;
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ if (!this.isLetter == 3) {
|
|
|
+
|
|
|
+ var userId = Cookies.get("user");
|
|
|
+ if (userId == "admin") {
|
|
|
+ this.userId = "admin";
|
|
|
+ } else {
|
|
|
+ // this.userId = userId;
|
|
|
+ this.$api.user.getLoginUser().then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.userform = res.data;
|
|
|
+ this.$api.dept.getDeptById(res.data.deptId).then(res => {
|
|
|
+ this.deptName = res.data.name;
|
|
|
+ });
|
|
|
+ this.userId = res.data.id;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
//--订单编辑回显--
|
|
|
// this.paramsEdit = this.$route.query.data; //接收参数
|
|
|
this.obtainProtocol(this.$route.query.data);
|
|
|
this.editingWay(this.$route.query.data)
|
|
|
+
|
|
|
},
|
|
|
mounted() {
|
|
|
this.onScroll();
|
|
|
@@ -5097,8 +5107,24 @@ export default {
|
|
|
res = await this.$api.letter.getAllAgreementByUserId({ userId: this.userId })
|
|
|
}
|
|
|
if (this.isLetter == '3') {
|
|
|
+ this.userId = data.userid
|
|
|
+ // this.fileListjqPolicy=[{
|
|
|
+ // name:data.externalPolicy.jqPolicy,
|
|
|
+ // url:process.env.BASE_URL+data.externalPolicy.jqPolicy
|
|
|
+ // }]
|
|
|
+ // this.fileListnoPolicy.push({
|
|
|
+ // url:data.externalPolicy.noPolicy
|
|
|
+ // })
|
|
|
+ // this.fileListjqSign.push({
|
|
|
+ // url:data.externalPolicy.jqSign
|
|
|
+ // })
|
|
|
+ // this.fileListsyPolicy.push({
|
|
|
+ // url:data.externalPolicy.syPolicy
|
|
|
+ // })
|
|
|
+ // console.log(this.fileListjqPolicy,222222);
|
|
|
res = await this.$api.letter.getExternalAgreement()
|
|
|
}
|
|
|
+
|
|
|
if (res.code == 200) {
|
|
|
res.data.map(ele => {
|
|
|
ele["result"] = {};
|
|
|
@@ -5490,11 +5516,11 @@ export default {
|
|
|
},
|
|
|
//勾选保险公司
|
|
|
initchange(e, code, name, index) {
|
|
|
- if(e &&this.isLetter == '3'){
|
|
|
- this.policyNumberFormPro=JSON.parse(JSON.stringify(this.policyNumberForm))
|
|
|
+ if (e && this.isLetter == '3') {
|
|
|
+ this.totalCompanyList[index].result = JSON.parse(JSON.stringify(this.policyNumberForm))
|
|
|
}
|
|
|
- else{
|
|
|
- this.policyNumberFormPro={}
|
|
|
+ else {
|
|
|
+ this.totalCompanyList[index].result = []
|
|
|
}
|
|
|
if (this.isLetter == '3') {
|
|
|
this.updateArray(this.isLetter3Arr, code, e)
|
|
|
@@ -5814,8 +5840,8 @@ export default {
|
|
|
window.open(fileURL);
|
|
|
}
|
|
|
},
|
|
|
- //二维码生成插件
|
|
|
- creatQrCode(text) {
|
|
|
+ //二维码生成插件
|
|
|
+ creatQrCode(text) {
|
|
|
// 查找并删除旧的二维码DOM元素
|
|
|
let element = document.getElementById("qrcode");
|
|
|
while (element.firstChild) {
|
|
|
@@ -5882,6 +5908,7 @@ export default {
|
|
|
JSON.stringify(_this.ownerInfo)
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
if (_this.bbczcarShow == true) {
|
|
|
_this.insuredPersonInfo = JSON.parse(
|
|
|
JSON.stringify(_this.ownerInfo)
|
|
|
@@ -6072,65 +6099,129 @@ export default {
|
|
|
if (typeof this.policyHolderInfo.provinceData == "string") {
|
|
|
this.policyHolderInfo.provinceData = [];
|
|
|
}
|
|
|
- let param = {
|
|
|
- userId: this.userId,
|
|
|
- quoteno: this.quoteno,
|
|
|
- orderNo: this.orderno,
|
|
|
- carInfo: this.carInfo,
|
|
|
- insuredPersonInfo: this.insuredPersonInfo,
|
|
|
- ownerInfo: this.ownerInfo,
|
|
|
- policyHolderInfo: this.policyHolderInfo,
|
|
|
- kindList: this.kindList,
|
|
|
- riskList: this.riskList,
|
|
|
- isExternal: '1',
|
|
|
- vehicleAndVesselTax: this.vehicleAndVesselTaxForm
|
|
|
- };
|
|
|
- this.$api.letter.generateOrder(param).then(res => {
|
|
|
- if (res.code == "200") {
|
|
|
- //上传图片
|
|
|
- const mergedArray = [
|
|
|
- ...this.imageList1,
|
|
|
- ...this.imageList2,
|
|
|
- ...this.imageList3,
|
|
|
- ...this.imageList4,
|
|
|
- ...this.imageList5
|
|
|
- ];
|
|
|
- if (mergedArray.length > 0) {
|
|
|
- let imageparam = {
|
|
|
- imageList: mergedArray,
|
|
|
- quoteNo: res.data.quoteno
|
|
|
- };
|
|
|
- this.$api.letter.uploadImages(imageparam).then(responses => {
|
|
|
- this.imageEcho(res.data.quoteno); // 获取图片
|
|
|
+ if (this.$route.query.data) {
|
|
|
+ const mergedArray = [
|
|
|
+ ...this.imageList1,
|
|
|
+ ...this.imageList2,
|
|
|
+ ...this.imageList3,
|
|
|
+ ...this.imageList4,
|
|
|
+ ...this.imageList5
|
|
|
+ ];
|
|
|
+ if (mergedArray.length > 0) {
|
|
|
+ let imageparam = {
|
|
|
+ imageList: mergedArray,
|
|
|
+ quoteNo: this.$route.query.data.quoteno
|
|
|
+ };
|
|
|
+ this.$api.letter.uploadImages(imageparam).then(responses => {
|
|
|
+ this.imageEcho(this.$route.query.data.quoteno); // 获取图片
|
|
|
+ });
|
|
|
+ }
|
|
|
+ let params = {
|
|
|
+ orderNo: this.$route.query.data.orderno,
|
|
|
+ ...this.policyNumberForm,
|
|
|
+ agreementId: this.isLetter3agreementId
|
|
|
+ };
|
|
|
+ this.$api.letter.updateExternalOrder(params).then(res => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ this.preserveQuoteLoading = false
|
|
|
+ this.$message({
|
|
|
+ message: res.msg || '编辑成功',
|
|
|
+ type: 'success'
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.preserveQuoteLoading = false
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
-
|
|
|
- let params = {
|
|
|
- orderNo: res.data.orderno,
|
|
|
- ...this.policyNumberForm,
|
|
|
- agreementId: this.isLetter3agreementId
|
|
|
- };
|
|
|
- this.$api.letter.saveSubOrder(params).then(res => {
|
|
|
- if (res.code == "200") {
|
|
|
- this.preserveQuoteLoading = false
|
|
|
- this.$message({
|
|
|
- message: res.msg ||'录入成功',
|
|
|
- type: 'success'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ let param = {
|
|
|
+ userId: this.userId,
|
|
|
+ quoteno: this.quoteno,
|
|
|
+ orderNo: this.orderno,
|
|
|
+ carInfo: this.carInfo,
|
|
|
+ insuredPersonInfo: this.insuredPersonInfo,
|
|
|
+ ownerInfo: this.ownerInfo,
|
|
|
+ policyHolderInfo: this.policyHolderInfo,
|
|
|
+ kindList: this.kindList,
|
|
|
+ riskList: this.riskList,
|
|
|
+ isExternal: '1',
|
|
|
+ vehicleAndVesselTax: this.vehicleAndVesselTaxForm
|
|
|
+ };
|
|
|
+ this.$api.letter.generateOrder(param).then(res => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ //上传图片
|
|
|
+ const mergedArray = [
|
|
|
+ ...this.imageList1,
|
|
|
+ ...this.imageList2,
|
|
|
+ ...this.imageList3,
|
|
|
+ ...this.imageList4,
|
|
|
+ ...this.imageList5
|
|
|
+ ];
|
|
|
+ if (mergedArray.length > 0) {
|
|
|
+ let imageparam = {
|
|
|
+ imageList: mergedArray,
|
|
|
+ quoteNo: res.data.quoteno
|
|
|
+ };
|
|
|
+ this.$api.letter.uploadImages(imageparam).then(responses => {
|
|
|
+ this.imageEcho(res.data.quoteno); // 获取图片
|
|
|
});
|
|
|
- } else {
|
|
|
- this.preserveQuoteLoading = false
|
|
|
- this.$message.error(res.msg);
|
|
|
}
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.preserveQuoteLoading = false
|
|
|
- this.$message.error(res.msg);
|
|
|
|
|
|
- }
|
|
|
- });
|
|
|
+ let params1 = {
|
|
|
+ orderNo: res.data.orderno,
|
|
|
+ ...this.policyNumberForm,
|
|
|
+ agreementId: this.isLetter3agreementId
|
|
|
+ };
|
|
|
+ this.$api.letter.saveSubOrder(params1).then(res => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ this.preserveQuoteLoading = false
|
|
|
+ this.$message({
|
|
|
+ message: res.msg || '录入成功',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.preserveQuoteLoading = false
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.preserveQuoteLoading = false
|
|
|
+ this.$message.error(res.msg);
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
document.getElementById("company").scrollIntoView();
|
|
|
this.imageUploadShow = true;
|
|
|
},
|
|
|
+ policyHolderInfovalidate() {
|
|
|
+ let isvalidat = false
|
|
|
+ let _this = this
|
|
|
+ if (_this.tbczcarShow == true) {
|
|
|
+ _this.policyHolderInfo = JSON.parse(
|
|
|
+ JSON.stringify(_this.ownerInfo)
|
|
|
+ );
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ _this.$refs["policyHolderInfo"].validate(valid2 => {
|
|
|
+ if (valid2) {
|
|
|
+ isvalidat = false
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ document.getElementById("toubaor").scrollIntoView();
|
|
|
+ _this.$message({ message: "请检查投保人信息", type: "warning" });
|
|
|
+ isvalidat = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (isvalidat) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
//报价
|
|
|
quote() {
|
|
|
let starttime = new Date(this.carInfo.registerDate);
|
|
|
@@ -6139,16 +6230,19 @@ export default {
|
|
|
this.$message({ message: "发证日期早于初登日期", type: "error" });
|
|
|
return;
|
|
|
}
|
|
|
+ this.policyHolderInfovalidate()
|
|
|
+
|
|
|
this.$refs["carInfo"].validate(valid => {
|
|
|
if (valid) {
|
|
|
var _this = this;
|
|
|
+ // this.policyHolderInfovalidate()
|
|
|
+ if (_this.tbczcarShow == true) {
|
|
|
+ _this.policyHolderInfo = JSON.parse(
|
|
|
+ JSON.stringify(_this.ownerInfo)
|
|
|
+ );
|
|
|
+ }
|
|
|
_this.$refs["ownerInfo"].validate(valid1 => {
|
|
|
if (valid1) {
|
|
|
- if (_this.tbczcarShow == true) {
|
|
|
- _this.policyHolderInfo = JSON.parse(
|
|
|
- JSON.stringify(_this.ownerInfo)
|
|
|
- );
|
|
|
- }
|
|
|
if (_this.bbczcarShow == true) {
|
|
|
_this.insuredPersonInfo = JSON.parse(
|
|
|
JSON.stringify(_this.ownerInfo)
|
|
|
@@ -7300,7 +7394,7 @@ export default {
|
|
|
|
|
|
// 爬虫对接
|
|
|
quoteInsurance(num, id, namesimple, apiType) {
|
|
|
- let api = apiType == 2 ? "pythonquote" : "anshengquote";
|
|
|
+ let api = apiType == 2 ? "pythonquote" : " ";
|
|
|
let ccidenttype = this.totalCompanyList[num].cnName;
|
|
|
let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
|
|
|
@@ -8088,7 +8182,7 @@ export default {
|
|
|
this.apiType == 2
|
|
|
? "pythonsubmitImage"
|
|
|
: "anshengsubmitImage";
|
|
|
- console.log(hengbangapi, 'hengbangapi')
|
|
|
+ console.log(hengbangapi, 'hengbangapi')
|
|
|
await this.$api.letter[hengbangapi]({
|
|
|
subOrderNo: this.companyId
|
|
|
}).then(res => {
|
|
|
@@ -8097,7 +8191,7 @@ export default {
|
|
|
let hengbangapi1 = "";
|
|
|
hengbangapi1 =
|
|
|
this.apiType == 2 ? "pythonaudit" : "anshengaudit";
|
|
|
- console.log(hengbangapi1, 'hengbangapi1')
|
|
|
+ console.log(hengbangapi1, 'hengbangapi1')
|
|
|
_this.$api.letter[hengbangapi1]({
|
|
|
subOrderNo: this.companyId
|
|
|
}).then(res => {
|
|
|
@@ -8591,7 +8685,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
policydrivingupload(file, val) {
|
|
|
- this['fileList' + val] = []
|
|
|
+ this.policyNumberForm[val + 'List'] = []
|
|
|
this.$refs.jqPolicyupload.clearFiles()
|
|
|
var file = file.raw;
|
|
|
const params = new FormData(); // 声明formData数据类型
|
|
|
@@ -8600,8 +8694,7 @@ export default {
|
|
|
this.$api.letter.uploadFile(params).then(res => {
|
|
|
if (res.code == "200") {
|
|
|
res.data.name = res.data.fileName
|
|
|
- this['fileList' + val].push(res.data)
|
|
|
- this.policyNumberForm[val] = res.data.url
|
|
|
+ this.policyNumberForm[val + 'List'].push(res.data)
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -9051,8 +9144,8 @@ export default {
|
|
|
default:
|
|
|
}
|
|
|
},
|
|
|
- //预览图片
|
|
|
- handlePictureCardPreview(img) {
|
|
|
+ //预览图片
|
|
|
+ handlePictureCardPreview(img) {
|
|
|
this.ProViewImg = img;
|
|
|
this.showViewer = true;
|
|
|
},
|