|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="body">
|
|
|
- <div class="Enclosure flex f-c back" v-if="isLetter=='1'">
|
|
|
+ <div class="Enclosure flex f-c back" v-if="isLetter == '1'">
|
|
|
<div class="home flex j-s a-c">
|
|
|
<div class="flex j-s a-c">
|
|
|
<img src="../../../../src/icon/归属信息.png" alt class="icon-img" />
|
|
|
@@ -36,7 +36,7 @@
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
- <div class="Enclosure flex f-c back" v-if="isLetter=='1'">
|
|
|
+ <div class="Enclosure flex f-c back" v-if="isLetter == '1'">
|
|
|
<div class="home flex j-s a-c">
|
|
|
<div class="flex j-s a-c">
|
|
|
<img src="../../../../src/icon/快速查询.png" alt class="icon-img" />
|
|
|
@@ -641,7 +641,7 @@
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="Enclosure flex f-c back">
|
|
|
<div class="home flex j-s a-c back">
|
|
|
<div class="flex j-s a-c" id="more">
|
|
|
@@ -694,85 +694,92 @@
|
|
|
</div>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="Enclosure flex f-c back" v-if="isLetter=='3'">
|
|
|
+ <div class="Enclosure flex f-c back" v-if="isLetter == '3'">
|
|
|
<div class="home flex j-s a-c">
|
|
|
<div class="flex j-s a-c color" id="Waibu">
|
|
|
<img src="../../../../src/icon/车船税.png" alt class="icon-img" />
|
|
|
<span style="margin-left:10px;">外部订单</span>
|
|
|
</div>
|
|
|
<div class="flex j-c a-c">
|
|
|
- <el-button v-show="policyNumberForm.jqpolicyno || policyNumberForm.sypolicyno" size="small" type="primary" @click="policyUpload()">
|
|
|
- <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
|
|
|
- 保单上传
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
+ <el-button v-show="policyNumberForm.jqpolicyno || policyNumberForm.sypolicyno" size="small" type="primary"
|
|
|
+ @click="policyUpload()">
|
|
|
+ <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
|
|
|
+ 保单上传
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <el-form class="demo-ruleForm" :model="policyNumberForm" ref="policyNumberForm" :rules="rules"
|
|
|
- label-width="160px" size="small" style="margin-top: 15px" label-position="top">
|
|
|
+ <el-form class="demo-ruleForm" :model="policyNumberForm" ref="policyNumberForm" :rules="rules" label-width="160px"
|
|
|
+ size="small" style="margin-top: 15px" label-position="top">
|
|
|
<el-row style="flex-wrap: wrap; display: flex;">
|
|
|
<el-col :span="5">
|
|
|
<el-form-item label="交强保单号" prop="jqpolicyno">
|
|
|
<el-input v-model="policyNumberForm.jqpolicyno" placeholder="请输入交强保单号" type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="5" :offset="1">
|
|
|
+ <el-col :span="5" :offset="1">
|
|
|
<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="5" :offset="1">
|
|
|
+ <el-col :span="5" :offset="1">
|
|
|
<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="5" :offset="1">
|
|
|
+ <el-col :span="5" :offset="1">
|
|
|
<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="5" >
|
|
|
+ <el-col :span="5">
|
|
|
<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="5" :offset="1">
|
|
|
+ <el-col :span="5" :offset="1">
|
|
|
<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="5" :offset="1">
|
|
|
+ <el-col :span="5" :offset="1">
|
|
|
<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="5" :offset="1">
|
|
|
+ <el-col :span="5" :offset="1">
|
|
|
<el-form-item label="交强险手续费比例" prop="jqSuperviseCostsProportion">
|
|
|
- <el-input v-model="policyNumberForm.jqSuperviseCostsProportion" placeholder="请输入交强险手续费比例" type="text"></el-input>
|
|
|
+ <el-input v-model="policyNumberForm.jqSuperviseCostsProportion" placeholder="请输入交强险手续费比例"
|
|
|
+ type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="5" >
|
|
|
+ <el-col :span="5">
|
|
|
<el-form-item label="商业险手续费比例" prop="sySuperviseCostsProportion">
|
|
|
- <el-input v-model="policyNumberForm.sySuperviseCostsProportion" placeholder="请输入商业险手续费比例" type="text"></el-input>
|
|
|
+ <el-input v-model="policyNumberForm.sySuperviseCostsProportion" placeholder="请输入商业险手续费比例"
|
|
|
+ type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="5" :offset="1">
|
|
|
+ <el-col :span="5" :offset="1">
|
|
|
<el-form-item label="非车手续费比例" prop="noSuperviseCostsProportion">
|
|
|
- <el-input v-model="policyNumberForm.noSuperviseCostsProportion" placeholder="请输入非车手续费比例" type="text"></el-input>
|
|
|
+ <el-input v-model="policyNumberForm.noSuperviseCostsProportion" placeholder="请输入非车手续费比例"
|
|
|
+ type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="5" :offset="1">
|
|
|
+ <el-col :span="5" :offset="1">
|
|
|
<el-form-item label="交强险其他费用比例" prop="jqOtherCostsProportion">
|
|
|
- <el-input v-model="policyNumberForm.jqOtherCostsProportion" placeholder="请输入交强险其他费用比例" type="text"></el-input>
|
|
|
+ <el-input v-model="policyNumberForm.jqOtherCostsProportion" placeholder="请输入交强险其他费用比例"
|
|
|
+ type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="5" :offset="1">
|
|
|
+ <el-col :span="5" :offset="1">
|
|
|
<el-form-item label="商业险其他费用比例" prop="syOtherCostsProportion">
|
|
|
- <el-input v-model="policyNumberForm.syOtherCostsProportion" placeholder="请输入商业险其他费用比例" type="text"></el-input>
|
|
|
+ <el-input v-model="policyNumberForm.syOtherCostsProportion" placeholder="请输入商业险其他费用比例"
|
|
|
+ type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="5" >
|
|
|
+ <el-col :span="5">
|
|
|
<el-form-item label="非车其他费用比例" prop="noOtherCostsProportion">
|
|
|
- <el-input v-model="policyNumberForm.noOtherCostsProportion" placeholder="请输入非车其他费用比例" type="text"></el-input>
|
|
|
+ <el-input v-model="policyNumberForm.noOtherCostsProportion" placeholder="请输入非车其他费用比例"
|
|
|
+ type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -811,7 +818,8 @@
|
|
|
<div class="companyhead">
|
|
|
<el-row>
|
|
|
<el-col :span="1">
|
|
|
- <el-checkbox v-if="isLetter!=='3'" style="margin:0 10px 0 10px" @change="handleCheckAllChange"></el-checkbox>
|
|
|
+ <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;">
|
|
|
@@ -841,7 +849,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>
|
|
|
@@ -1089,7 +1097,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">
|
|
|
<div class="dis a-c" style="margin:15px 0">
|
|
|
<span style="margin-right:15px;font-weight:bold">选择意外险</span>
|
|
|
@@ -1119,7 +1128,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">
|
|
|
@@ -1148,7 +1158,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>
|
|
|
@@ -1168,7 +1179,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>
|
|
|
@@ -1193,7 +1205,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"
|
|
|
@@ -1226,7 +1239,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>
|
|
|
@@ -1245,7 +1259,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"
|
|
|
@@ -1287,7 +1302,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">
|
|
|
@@ -1317,7 +1333,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;"
|
|
|
@@ -1358,7 +1375,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">
|
|
|
@@ -1399,7 +1417,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>
|
|
|
@@ -1419,7 +1438,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;">
|
|
|
@@ -1451,7 +1471,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="Enclosure flex f-c" v-if="isLetter=='1'">
|
|
|
+ <div class="Enclosure flex f-c" v-if="isLetter == '1'">
|
|
|
<div class="home flex j-s a-c back">
|
|
|
<div class="flex j-s a-c color">
|
|
|
<img src="../../../../src/icon/报价历史.png" alt class="icon-img" />
|
|
|
@@ -2120,20 +2140,20 @@
|
|
|
<el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <div v-if="isLetter=='1'" class="flex j-c a-c" :class="{
|
|
|
+ <div v-if="isLetter == '1'" class="flex j-c a-c" :class="{
|
|
|
'footer': true,
|
|
|
'shadow': !isBottom
|
|
|
}">
|
|
|
<el-button size="small" @click="add()">录下一单</el-button>
|
|
|
<el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
|
|
|
</div>
|
|
|
- <div v-if="isLetter=='2'" style="text-align: center">
|
|
|
+ <div v-if="isLetter == '2'" style="text-align: center">
|
|
|
<el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
|
|
|
</div>
|
|
|
- <div v-if="isLetter=='3'" style="text-align: center">
|
|
|
+ <div v-if="isLetter == '3'" style="text-align: center">
|
|
|
<el-button type="primary" size="small" @click="preserveQuote()" :loading="preserveQuoteLoading">保存</el-button>
|
|
|
</div>
|
|
|
- <div class="Anchor-link flex f-c j-s a-c" v-if="isLetter=='1'">
|
|
|
+ <div class="Anchor-link flex f-c j-s a-c" v-if="isLetter == '1'">
|
|
|
<div>
|
|
|
<img src="../../../../src/icon/车辆信息.png" alt class="icon-img" @click="handleScroll('Car')" />
|
|
|
</div>
|
|
|
@@ -2218,62 +2238,34 @@
|
|
|
<el-dialog :visible.sync="policyUploaddialogVisible" width="30%">
|
|
|
<div slot="title" class="dialog-title">
|
|
|
<span>保单上传</span>
|
|
|
- </div >
|
|
|
+ </div>
|
|
|
<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')"
|
|
|
- >
|
|
|
+ <el-upload class="upload-demo" ref="jqPolicyupload" action="#" :limit="1" :auto-upload="false"
|
|
|
+ :file-list="fileListjqPolicy" :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')"
|
|
|
- >
|
|
|
+ <el-upload class="upload-demo" ref="syPolicyupload" action="#" :limit="1" :auto-upload="false"
|
|
|
+ :file-list="fileListnoPolicy" :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')"
|
|
|
- >
|
|
|
+ <el-upload class="upload-demo" ref="noPolicyupload" action="#" :limit="1" :auto-upload="false"
|
|
|
+ :file-list="fileListnoPolicy" :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')"
|
|
|
- >
|
|
|
+ <el-upload class="upload-demo" ref="jqSignupload" action="#" :limit="1" :auto-upload="false"
|
|
|
+ :file-list="fileListjqSign" :on-change="file => policydrivingupload(file, 'jqSign')">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
-
|
|
|
+
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="policyUploaddialogVisible = false">取 消</el-button>
|
|
|
<el-button size="small" type="primary" @click="policyUploaddialogVisible = false">确 定</el-button>
|
|
|
@@ -2337,20 +2329,20 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
return {
|
|
|
- policyNumberForm:{
|
|
|
+ policyNumberForm: {
|
|
|
jqpolicyno: '',
|
|
|
- sypolicyno: '',
|
|
|
+ sypolicyno: '',
|
|
|
jypolicyno: '',
|
|
|
- jqpremium:'',
|
|
|
+ jqpremium: '',
|
|
|
sypremium: '',
|
|
|
- jypremium:'',
|
|
|
+ jypremium: '',
|
|
|
taxamount: '',
|
|
|
jqSuperviseCostsProportion: '',
|
|
|
sySuperviseCostsProportion: '',
|
|
|
noSuperviseCostsProportion: '',
|
|
|
jqOtherCostsProportion: '',
|
|
|
syOtherCostsProportion: '',
|
|
|
- noOtherCostsProportion:'',
|
|
|
+ noOtherCostsProportion: '',
|
|
|
},
|
|
|
watermarkedImage: '',
|
|
|
redictInfoMsg: [],
|
|
|
@@ -2437,7 +2429,7 @@ export default {
|
|
|
taipingaccidentalDrivingVo: {}, //太平驾意险
|
|
|
licenseplate: true,
|
|
|
calculateLoading: false, //保费计算按钮 节流
|
|
|
- preserveQuoteLoading:false,//保存按钮
|
|
|
+ preserveQuoteLoading: false,//保存按钮
|
|
|
accidentForm: {
|
|
|
quantity: "1",
|
|
|
sumPremium: 0
|
|
|
@@ -2541,7 +2533,7 @@ export default {
|
|
|
uploadcardialogVisible: false, //行驶证识别 显示/隐藏
|
|
|
uploaduserdialogVisible: false, //身份证识别 显示/隐藏
|
|
|
imageUploaddialogVisible: false, //影像上传 显示/隐藏
|
|
|
- policyUploaddialogVisible:false, //保单上传
|
|
|
+ policyUploaddialogVisible: false, //保单上传
|
|
|
underwritingdialogVisible: false, //核保信息 显示/隐藏
|
|
|
renewalCodedialogVisible: false, //转保确认码输入
|
|
|
hbsubmitdialogVisible: false, //核保弹框
|
|
|
@@ -3651,12 +3643,12 @@ export default {
|
|
|
insOrderStatusoptions: [],
|
|
|
lastCompanyId: "",
|
|
|
apiInterfaceName: 'generateOrder',
|
|
|
- isLetter3Arr:[],
|
|
|
- isLetter3agreementId:'',
|
|
|
- fileListnoPolicy:[],
|
|
|
- fileListnoPolicy:[],
|
|
|
- fileListjqSign:[],
|
|
|
- fileListjqPolicy:[],
|
|
|
+ isLetter3Arr: [],
|
|
|
+ isLetter3agreementId: '',
|
|
|
+ fileListnoPolicy: [],
|
|
|
+ fileListnoPolicy: [],
|
|
|
+ fileListjqSign: [],
|
|
|
+ fileListjqPolicy: [],
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -3759,7 +3751,7 @@ export default {
|
|
|
import("element-ui/packages/image/src/image-viewer")
|
|
|
},
|
|
|
created() {
|
|
|
- if (this.isLetter=='2') {
|
|
|
+ if (this.isLetter == '2') {
|
|
|
this.apiInterfaceName = 'ordergenerateOrder'
|
|
|
}
|
|
|
// this.commpanyList(); //获取保险公司
|
|
|
@@ -4539,13 +4531,13 @@ export default {
|
|
|
},
|
|
|
async obtainProtocol(data) {
|
|
|
let res = {}
|
|
|
- if (this.isLetter=='1') {
|
|
|
+ if (this.isLetter == '1') {
|
|
|
res = await this.$api.letter.getAllAgreement()
|
|
|
}
|
|
|
- if (this.isLetter=='2') {
|
|
|
+ if (this.isLetter == '2') {
|
|
|
res = await this.$api.letter.getAllAgreementByUserId({ userId: this.userId })
|
|
|
}
|
|
|
- if (this.isLetter=='3') {
|
|
|
+ if (this.isLetter == '3') {
|
|
|
res = await this.$api.letter.getExternalAgreement()
|
|
|
}
|
|
|
if (res.code == 200) {
|
|
|
@@ -4629,9 +4621,9 @@ export default {
|
|
|
//选择协议 val:协议id row:协议列表 index:下标 item:保险公司数据集合
|
|
|
agreementChange(val, row, index, item) {
|
|
|
this.kindListFun()
|
|
|
- if(this.isLetter=='3'){
|
|
|
- this.isLetter3agreementId=''
|
|
|
- this.isLetter3agreementId=item.agreementId
|
|
|
+ if (this.isLetter == '3') {
|
|
|
+ this.isLetter3agreementId = ''
|
|
|
+ this.isLetter3agreementId = item.agreementId
|
|
|
}
|
|
|
let obj = {};
|
|
|
obj = row.find(item => {
|
|
|
@@ -4920,22 +4912,22 @@ export default {
|
|
|
arr.splice(index, 1);
|
|
|
}
|
|
|
}
|
|
|
- if(arr.length==0){
|
|
|
- this.totalCompanyList.forEach(e=>{
|
|
|
- e.disabled=false
|
|
|
+ if (arr.length == 0) {
|
|
|
+ this.totalCompanyList.forEach(e => {
|
|
|
+ e.disabled = false
|
|
|
})
|
|
|
}
|
|
|
- else{
|
|
|
- this.totalCompanyList.forEach(e=>{
|
|
|
- e.disabled= e.id==arr[0]?false:true
|
|
|
+ else {
|
|
|
+ this.totalCompanyList.forEach(e => {
|
|
|
+ e.disabled = e.id == arr[0] ? false : true
|
|
|
})
|
|
|
}
|
|
|
|
|
|
},
|
|
|
//勾选保险公司
|
|
|
initchange(e, code, name, index) {
|
|
|
- if(this.isLetter=='3'){
|
|
|
- this.updateArray(this.isLetter3Arr,code,e)
|
|
|
+ if (this.isLetter == '3') {
|
|
|
+ this.updateArray(this.isLetter3Arr, code, e)
|
|
|
}
|
|
|
if (e) {
|
|
|
this.kindListFun()
|
|
|
@@ -5244,20 +5236,22 @@ export default {
|
|
|
window.open(fileURL);
|
|
|
}
|
|
|
},
|
|
|
- creatQrCode(text) {
|
|
|
- if (this.qrcode) {
|
|
|
- this.qrcode.clear();
|
|
|
- this.qrcode.makeCode(text);
|
|
|
- } else {
|
|
|
- this.qrcode = new QRCode("qrcode", {
|
|
|
- text: text,
|
|
|
- width: this.qrcodeWidth,
|
|
|
- height: this.qrcodeHeight,
|
|
|
- colorDark: "#000000",
|
|
|
- colorLight: "#ffffff",
|
|
|
- correctLevel: QRCode.CorrectLevel.H
|
|
|
- });
|
|
|
- }
|
|
|
+ //二维码生成插件
|
|
|
+ creatQrCode(text) {
|
|
|
+ // 查找并删除旧的二维码DOM元素
|
|
|
+ let element = document.getElementById("qrcode");
|
|
|
+ while (element.firstChild) {
|
|
|
+ element.removeChild(element.firstChild);
|
|
|
+ }
|
|
|
+ // 创建新的QRCode实例
|
|
|
+ this.qrcode = new QRCode("qrcode", {
|
|
|
+ text: text,
|
|
|
+ width: this.qrcodeWidth,
|
|
|
+ height: this.qrcodeHeight,
|
|
|
+ colorDark: "#000000",
|
|
|
+ colorLight: "#ffffff",
|
|
|
+ correctLevel: QRCode.CorrectLevel.H
|
|
|
+ });
|
|
|
},
|
|
|
//人工核保
|
|
|
underwriting(id) {
|
|
|
@@ -5291,7 +5285,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 保存
|
|
|
- preserveQuote(){
|
|
|
+ preserveQuote() {
|
|
|
let starttime = new Date(this.carInfo.registerDate);
|
|
|
let endtime = new Date(this.carInfo.issueDate);
|
|
|
if (endtime < starttime) {
|
|
|
@@ -5303,8 +5297,8 @@ export default {
|
|
|
var _this = this;
|
|
|
_this.$refs["ownerInfo"].validate(valid1 => {
|
|
|
if (valid1) {
|
|
|
- // _this.$refs["policyNumberForm"].validate(valid2 => {
|
|
|
- // if (valid2) {
|
|
|
+ // _this.$refs["policyNumberForm"].validate(valid2 => {
|
|
|
+ // if (valid2) {
|
|
|
if (_this.tbczcarShow == true) {
|
|
|
_this.policyHolderInfo = JSON.parse(
|
|
|
JSON.stringify(_this.ownerInfo)
|
|
|
@@ -5407,12 +5401,12 @@ export default {
|
|
|
}
|
|
|
this.preserveOrderStageProcessing();
|
|
|
}
|
|
|
- // }
|
|
|
- // else {
|
|
|
- // document.getElementById("Waibu").scrollIntoView();
|
|
|
- // _this.$message({ message: "请检查外部订单信息", type: "warning" });
|
|
|
- // }
|
|
|
- // })
|
|
|
+ // }
|
|
|
+ // else {
|
|
|
+ // document.getElementById("Waibu").scrollIntoView();
|
|
|
+ // _this.$message({ message: "请检查外部订单信息", type: "warning" });
|
|
|
+ // }
|
|
|
+ // })
|
|
|
} else {
|
|
|
document.getElementById("CheZhu").scrollIntoView();
|
|
|
_this.$message({ message: "请检查人员信息", type: "warning" });
|
|
|
@@ -5425,9 +5419,9 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- //订单生成后保存接口
|
|
|
- preserveOrderStageProcessing() {
|
|
|
- this.preserveQuoteLoading=true
|
|
|
+ //订单生成后保存接口
|
|
|
+ preserveOrderStageProcessing() {
|
|
|
+ this.preserveQuoteLoading = true
|
|
|
if (this.tbczcarShow && this.imageList2.length > 0) {
|
|
|
//投保人同车主
|
|
|
this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
|
|
|
@@ -5451,7 +5445,7 @@ export default {
|
|
|
e.imageType = e.imageType.includes('C0') ? "C04" : 'D04'
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
if (this.bbtbcarShow && this.imageList3.length > 0) {
|
|
|
//被保人同投保人
|
|
|
@@ -5510,13 +5504,13 @@ export default {
|
|
|
policyHolderInfo: this.policyHolderInfo,
|
|
|
kindList: this.kindList,
|
|
|
riskList: this.riskList,
|
|
|
- isExternal:'1',
|
|
|
+ isExternal: '1',
|
|
|
vehicleAndVesselTax: this.vehicleAndVesselTaxForm
|
|
|
};
|
|
|
this.$api.letter.generateOrder(param).then(res => {
|
|
|
if (res.code == "200") {
|
|
|
- //上传图片
|
|
|
- const mergedArray = [
|
|
|
+ //上传图片
|
|
|
+ const mergedArray = [
|
|
|
...this.imageList1,
|
|
|
...this.imageList2,
|
|
|
...this.imageList3,
|
|
|
@@ -5532,27 +5526,27 @@ export default {
|
|
|
this.imageEcho(res.data.quoteno); // 获取图片
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
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
|
|
|
+ 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);
|
|
|
+ }
|
|
|
})
|
|
|
} else {
|
|
|
- this.preserveQuoteLoading=false
|
|
|
- this.$message.error( res.msg);
|
|
|
+ this.preserveQuoteLoading = false
|
|
|
+ this.$message.error(res.msg);
|
|
|
|
|
|
}
|
|
|
});
|
|
|
@@ -8005,8 +7999,8 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- policydrivingupload(file,val){
|
|
|
- this['fileList'+val]=[]
|
|
|
+ policydrivingupload(file, val) {
|
|
|
+ this['fileList' + val] = []
|
|
|
this.$refs.jqPolicyupload.clearFiles()
|
|
|
var file = file.raw;
|
|
|
const params = new FormData(); // 声明formData数据类型
|
|
|
@@ -8014,9 +8008,9 @@ export default {
|
|
|
params.append("type", "file");
|
|
|
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
|
|
|
+ res.data.name = res.data.fileName
|
|
|
+ this['fileList' + val].push(res.data)
|
|
|
+ this.policyNumberForm[val] = res.data.url
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -8464,7 +8458,7 @@ export default {
|
|
|
default:
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 关闭查看器
|
|
|
closeViewer() {
|
|
|
this.showViewer = false;
|
|
|
@@ -8775,7 +8769,7 @@ export default {
|
|
|
},
|
|
|
add() {
|
|
|
this.obtainProtocol();
|
|
|
- if (this.isLetter=='1') {
|
|
|
+ if (this.isLetter == '1') {
|
|
|
this.$router.push({ path: "/letter/letter" });
|
|
|
}
|
|
|
for (let key in this.ownerInfo) {
|
|
|
@@ -9349,49 +9343,50 @@ export default {
|
|
|
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
|
|
|
}
|
|
|
|
|
|
-.aaa{
|
|
|
+.aaa {
|
|
|
/deep/ {
|
|
|
- margin-bottom: 20px;
|
|
|
- margin-right: 50px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ margin-right: 50px;
|
|
|
|
|
|
- span {
|
|
|
- display: inline-block;
|
|
|
- margin-bottom: 10px;
|
|
|
- }
|
|
|
+ span {
|
|
|
+ display: inline-block;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ }
|
|
|
|
|
|
- .el-upload .el-upload-dragger {
|
|
|
- width: 180px;
|
|
|
- height: 120px;
|
|
|
- border: 1px dashed #c0ccda;
|
|
|
- padding: 0;
|
|
|
- }
|
|
|
+ .el-upload .el-upload-dragger {
|
|
|
+ width: 180px;
|
|
|
+ height: 120px;
|
|
|
+ border: 1px dashed #c0ccda;
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
|
|
|
- .el-upload-list--picture-card .el-upload-list__item {
|
|
|
- width: 180px;
|
|
|
- height: 120px;
|
|
|
- }
|
|
|
+ .el-upload-list--picture-card .el-upload-list__item {
|
|
|
+ width: 180px;
|
|
|
+ height: 120px;
|
|
|
+ }
|
|
|
|
|
|
- .el-upload-list__item:first-child {
|
|
|
- margin-top: 0;
|
|
|
- }
|
|
|
- .el-upload--picture-card {
|
|
|
- width: 180px;
|
|
|
- height: 120px;
|
|
|
- }
|
|
|
+ .el-upload-list__item:first-child {
|
|
|
+ margin-top: 0;
|
|
|
+ }
|
|
|
|
|
|
- .el-upload-list__item {
|
|
|
- width: 180px;
|
|
|
- height: 120px;
|
|
|
- margin: 0 !important;
|
|
|
- display: block !important;
|
|
|
- }
|
|
|
+ .el-upload--picture-card {
|
|
|
+ width: 180px;
|
|
|
+ height: 120px;
|
|
|
+ }
|
|
|
|
|
|
- .el-upload-list--picture-card .el-upload-list__item-thumbnail {
|
|
|
- width: 180px;
|
|
|
- height: 120px;
|
|
|
+ .el-upload-list__item {
|
|
|
+ width: 180px;
|
|
|
+ height: 120px;
|
|
|
+ margin: 0 !important;
|
|
|
+ display: block !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-upload-list--picture-card .el-upload-list__item-thumbnail {
|
|
|
+ width: 180px;
|
|
|
+ height: 120px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
|
|
|
.jyxStyle>span {
|
|
|
display: inline-block;
|
|
|
@@ -9471,7 +9466,7 @@ export default {
|
|
|
border: 1px dashed #ced4da;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
// .el-button--warning {
|
|
|
// color: #fff;
|