|
@@ -1366,8 +1366,12 @@
|
|
|
@click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
|
|
@click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
|
|
|
<el-button type="text" size="small" style="font-size: 14px"
|
|
<el-button type="text" size="small" style="font-size: 14px"
|
|
|
@click="Payment(reslistitem.result.companyId, reslistitem)" v-show="reslistitem.orderstatus == '2' &&
|
|
@click="Payment(reslistitem.result.companyId, reslistitem)" v-show="reslistitem.orderstatus == '2' &&
|
|
|
- !('editStatus' in reslistitem.result)
|
|
|
|
|
|
|
+ !('editStatus' in reslistitem.result) && reslistitem.namesimple !== '平安财险'
|
|
|
">付款码</el-button>
|
|
">付款码</el-button>
|
|
|
|
|
+ <el-button type="text" size="small" style="font-size: 14px"
|
|
|
|
|
+ @click="signature(reslistitem.result.companyId)" v-show="reslistitem.orderstatus == '2' &&
|
|
|
|
|
+ !('editStatus' in reslistitem.result) && reslistitem.namesimple == '平安财险'
|
|
|
|
|
+ ">生成签章</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -1376,8 +1380,7 @@
|
|
|
<span v-if="reslistitem.checked &&
|
|
<span v-if="reslistitem.checked &&
|
|
|
reslistitem.agreementId &&
|
|
reslistitem.agreementId &&
|
|
|
reslistitem.underwritingDescription
|
|
reslistitem.underwritingDescription
|
|
|
- " style="margin: 20px 20px 0 100px; display: inline-block">{{ reslistitem.underwritingDescription
|
|
|
|
|
- }}</span>
|
|
|
|
|
|
|
+ " style="margin: 20px 20px 0 100px; display: inline-block">{{ reslistitem.underwritingDescription}}</span>
|
|
|
<!-- </div> -->
|
|
<!-- </div> -->
|
|
|
</template>
|
|
</template>
|
|
|
<template v-if="reslistitem.namesimple == '平安财险' &&
|
|
<template v-if="reslistitem.namesimple == '平安财险' &&
|
|
@@ -1385,41 +1388,61 @@
|
|
|
reslistitem.agreementId
|
|
reslistitem.agreementId
|
|
|
">
|
|
">
|
|
|
<div class="flex f-c Driving-risk">
|
|
<div class="flex f-c Driving-risk">
|
|
|
- <el-form :inline="true" :model="accidentFormPA" class="demo-form-inline" size="small"
|
|
|
|
|
- style="font-weight: bold; margin-top: 15px">
|
|
|
|
|
|
|
+ <div v-for="(val, index) in pinganInsuranceData" :key="index" >
|
|
|
|
|
+ <el-form :inline="true" :model="accidentFormPA[index-1]" class="demo-form-inline" size="small"
|
|
|
|
|
+ style="font-weight: bold;margin-top:15px ">
|
|
|
<el-form-item label="意外险类型" style="margin-right: 30px">
|
|
<el-form-item label="意外险类型" style="margin-right: 30px">
|
|
|
- <el-select clearable v-model="pingantemplateSelection" placeholder="未选择" @clear="clearAccidentFormPA"
|
|
|
|
|
- @change="pinganInsuranceChange">
|
|
|
|
|
- <el-option v-for="(item, index) in pinganInsuranceData" :key="index" :label="item.projectName"
|
|
|
|
|
|
|
+ <el-select clearable v-model="accidentFormPA[index-1].pingantemplateSelection" placeholder="未选择" @clear="clearAccidentFormPA(index-1,)"
|
|
|
|
|
+ @change="pinganInsuranceChange($event,index-1,val)">
|
|
|
|
|
+ <el-option v-for="(item, index1) in val" :key="index1" :label="item.projectName"
|
|
|
:value="item.projectName"></el-option>
|
|
:value="item.projectName"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="选择份数" style="margin-right: 50px">
|
|
|
|
|
- <el-input-number v-model="accidentFormPA.quantity" @change="numberCopieschangePA" :min="1" :max="accidentFormPA.sellListSize"
|
|
|
|
|
|
|
+ <el-form-item label="选择份数" style="margin-right: 50px" v-if="index ==1||index ==2">
|
|
|
|
|
+ <el-input-number v-model="accidentFormPA[index-1].quantity" :disabled="!accidentFormPA[index-1].pinganInsurancetype" @change="numberCopieschangePA($event,index-1)" :min="1" :max="accidentFormPA[index-1].sellListSize"
|
|
|
controls-position="right"></el-input-number>
|
|
controls-position="right"></el-input-number>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="保费:">
|
|
|
|
|
- <span>{{ accidentFormPA.premium || 0 }} 元</span>
|
|
|
|
|
|
|
+ <el-form-item label="保费:" v-if="index ==1||index ==2">
|
|
|
|
|
+ <span>{{ accidentFormPA[index-1].premium || 0 }} 元</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
- <el-table style="margin-top: 20px" size="small" :data="pinganInsuranceDataTable" border
|
|
|
|
|
- v-if="pingantemplateSelection" ref="RsTable" highlight-current-row :header-cell-style="{
|
|
|
|
|
|
|
+ <el-table class="pinganTable" style="margin-top: 20px" size="small" :data="accidentFormPA[index-1].pinganInsuranceDataTable" border
|
|
|
|
|
+ v-if="accidentFormPA[index-1].pingantemplateSelection" highlight-current-row :header-cell-style="{
|
|
|
background: '#F7F7F9 ',
|
|
background: '#F7F7F9 ',
|
|
|
fontWeight: '700',
|
|
fontWeight: '700',
|
|
|
color: '#333333',
|
|
color: '#333333',
|
|
|
- }">
|
|
|
|
|
- <el-table-column align="center" width="55" label="选择">
|
|
|
|
|
|
|
+ }" ref="RsTable" @select="(selections,row)=>{PADrivingCheckbox(selections,row,reslistitem.agreementId,index-1)}">
|
|
|
|
|
+ <el-table-column align="center" width="55" label="选择" v-if="index ==1||index ==2">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-radio class="radio" v-model="pinganInsurancetype" :label="scope.row.code"
|
|
|
|
|
- @click.native.stop.prevent="PADrivingRadio(scope.row)"> </el-radio>
|
|
|
|
|
|
|
+ <el-radio class="radio" v-model="accidentFormPA[index-1].pinganInsurancetype" :label="scope.row.code"
|
|
|
|
|
+ @click.native.stop.prevent="PADrivingRadio(scope.row,reslistitem.agreementId,index-1)"> </el-radio>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ type="selection"
|
|
|
|
|
+ v-else
|
|
|
|
|
+ width="55">
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="name" label="方案名称" align="center"></el-table-column>
|
|
<el-table-column prop="name" label="方案名称" align="center"></el-table-column>
|
|
|
<el-table-column prop="code" label="方案代码" align="center"></el-table-column>
|
|
<el-table-column prop="code" label="方案代码" align="center"></el-table-column>
|
|
|
<el-table-column prop="premium" label="保费 (元)/每份" align="center">
|
|
<el-table-column prop="premium" label="保费 (元)/每份" align="center">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column prop="quantity" label="份数" align="center" v-if="index ==3">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-input-number size='small' v-model="scope.row.quantity" :min="1" :max="Number(scope.row.sellListSize)"
|
|
|
|
|
+ controls-position="right"></el-input-number>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="操作"
|
|
|
|
|
+ width="100">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button type="text" size="small" @click="pinganDetail(scope.row,reslistitem.agreementId)">查看</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-if="reslistitem.namesimple == '泰康财险' &&
|
|
<template v-if="reslistitem.namesimple == '泰康财险' &&
|
|
|
reslistitem.checked &&
|
|
reslistitem.checked &&
|
|
@@ -1986,14 +2009,16 @@
|
|
|
<el-button type="text" style="color: #2d4d89" size="small"
|
|
<el-button type="text" style="color: #2d4d89" size="small"
|
|
|
@click="qoutedetail(scope.row.id)">查看详情</el-button>
|
|
@click="qoutedetail(scope.row.id)">查看详情</el-button>
|
|
|
<el-button size="small" type="text" @click="bjdpreview(scope.row.id)">报价单</el-button>
|
|
<el-button size="small" type="text" @click="bjdpreview(scope.row.id)">报价单</el-button>
|
|
|
- <el-button size="small" v-show="scope.row.orderstatus == '2'" type="text"
|
|
|
|
|
|
|
+ <el-button size="small" v-show="scope.row.orderstatus == '2' && scope.row.inscompany!=='平安财险'" type="text"
|
|
|
@click="Payment(scope.row.id, scope.row)">付款码</el-button>
|
|
@click="Payment(scope.row.id, scope.row)">付款码</el-button>
|
|
|
|
|
+ <el-button size="small" v-show="scope.row.orderstatus == '2' && scope.row.inscompany=='平安财险'" type="text"
|
|
|
|
|
+ @click="signature(scope.row.id)">生成签章</el-button>
|
|
|
<el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
|
|
<el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
|
|
|
scope.row.orderstatus == '2' ||
|
|
scope.row.orderstatus == '2' ||
|
|
|
scope.row.orderstatus == '4') &&
|
|
scope.row.orderstatus == '4') &&
|
|
|
['紫金财险'].includes(scope.row.inscompany)
|
|
['紫金财险'].includes(scope.row.inscompany)
|
|
|
" @click="cancelorder(scope.row)">撤单</el-button>
|
|
" @click="cancelorder(scope.row)">撤单</el-button>
|
|
|
- <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2'"
|
|
|
|
|
|
|
+ <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2' && scope.row.inscompany!=='平安财险'"
|
|
|
@click="revokeCode(scope.row.id)">撤销二维码</el-button>
|
|
@click="revokeCode(scope.row.id)">撤销二维码</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -2638,6 +2663,21 @@
|
|
|
<el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
|
|
<el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <el-dialog :visible.sync="pinganDataDetailVisible" width="40%" title="责任明细">
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ :data="pinganDataDetail"
|
|
|
|
|
+ border
|
|
|
|
|
+ style="width: 100%">
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="insuranceCoverage"
|
|
|
|
|
+ label="责任名称">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="unitInsuredAmount"
|
|
|
|
|
+ label="每份保额">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </el-dialog>
|
|
|
<div v-if="isLetter == '1'" class="flex j-c a-c footer" :class="$store.state.app.collapse ? 'position-collapse-left' : 'position-left'
|
|
<div v-if="isLetter == '1'" class="flex j-c a-c footer" :class="$store.state.app.collapse ? 'position-collapse-left' : 'position-left'
|
|
|
">
|
|
">
|
|
|
<el-button size="small" @click="add()">录下一单</el-button>
|
|
<el-button size="small" @click="add()">录下一单</el-button>
|
|
@@ -2678,9 +2718,11 @@
|
|
|
订单状态:已核保待缴费
|
|
订单状态:已核保待缴费
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <span slot="footer" class="dialog-footer" v-if="orderstatus == '2'">
|
|
|
|
|
- <el-button style="width: 100px" type="primary" size="small"
|
|
|
|
|
|
|
+ <span slot="footer" class="dialog-footer" >
|
|
|
|
|
+ <el-button style="width: 100px" type="primary" size="small" v-if="orderstatus == '2' && queryOrders.inscompany!=='平安财险'"
|
|
|
@click="Payment(companyId, queryOrders)">缴费二维码</el-button>
|
|
@click="Payment(companyId, queryOrders)">缴费二维码</el-button>
|
|
|
|
|
+ <el-button style="width: 100px" type="primary" size="small" v-if="orderstatus == '2' && queryOrders.inscompany=='平安财险'"
|
|
|
|
|
+ @click="signature(companyId)">生成签章</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<el-dialog title="转保确认码" :visible.sync="renewalCodedialogVisible" width="400px" style="font-weight: bold">
|
|
<el-dialog title="转保确认码" :visible.sync="renewalCodedialogVisible" width="400px" style="font-weight: bold">
|
|
@@ -2744,6 +2786,12 @@
|
|
|
<el-table-column prop="opinion" label="备注"></el-table-column>
|
|
<el-table-column prop="opinion" label="备注"></el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <!-- 生成签章 -->
|
|
|
|
|
+ <el-dialog :visible.sync="signaturedialogVisible" title="生成签章" width="14%">
|
|
|
|
|
+ <div style="padding:0 20px">
|
|
|
|
|
+ <div id="signaturecode" ref="signaturecode"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
<!-- 保单上传 -->
|
|
<!-- 保单上传 -->
|
|
|
<el-dialog :visible.sync="policyUploaddialogVisible" width="30%">
|
|
<el-dialog :visible.sync="policyUploaddialogVisible" width="30%">
|
|
|
<div slot="title" class="dialog-title">
|
|
<div slot="title" class="dialog-title">
|
|
@@ -2860,11 +2908,35 @@ export default {
|
|
|
quantity: "1",
|
|
quantity: "1",
|
|
|
sumPremium: 0,
|
|
sumPremium: 0,
|
|
|
},
|
|
},
|
|
|
- accidentFormPA: {
|
|
|
|
|
|
|
+ pinganDataDetail:[],
|
|
|
|
|
+ pinganDataDetailVisible:false,
|
|
|
|
|
+ accidentFormPA: [{
|
|
|
|
|
+ quantity: "1",
|
|
|
|
|
+ premium: 0,
|
|
|
|
|
+ pingantemplateSelection:'',
|
|
|
|
|
+ pinganInsuranceDataTable:[],
|
|
|
|
|
+ pinganInsurancetype:'',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
quantity: "1",
|
|
quantity: "1",
|
|
|
premium: 0,
|
|
premium: 0,
|
|
|
|
|
+ pingantemplateSelection:'',
|
|
|
|
|
+ pinganInsuranceDataTable:[],
|
|
|
|
|
+ pinganInsurancetype:'',
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ quantity: "1",
|
|
|
|
|
+ premium: 0,
|
|
|
|
|
+ pingantemplateSelection:'',
|
|
|
|
|
+ pinganInsuranceDataTable:[],
|
|
|
|
|
+ pinganInsurancetype:'',
|
|
|
|
|
+ }],
|
|
|
taikangaccidentalDrivingVo: {},
|
|
taikangaccidentalDrivingVo: {},
|
|
|
|
|
+ pinganaccidentalDrivingVo: {
|
|
|
|
|
+ 0:{},
|
|
|
|
|
+ 1:{},
|
|
|
|
|
+ 2:[],
|
|
|
|
|
+ },
|
|
|
nowCostsId: undefined, // 现询
|
|
nowCostsId: undefined, // 现询
|
|
|
policyNumberForm: {
|
|
policyNumberForm: {
|
|
|
jqpolicyno: "",
|
|
jqpolicyno: "",
|
|
@@ -2930,9 +3002,6 @@ export default {
|
|
|
zhongmeiInsuranceDataTable: [], //中煤驾意险产品明细方案数据
|
|
zhongmeiInsuranceDataTable: [], //中煤驾意险产品明细方案数据
|
|
|
zhongmeiaccidentalDrivingVo: {}, //中煤驾意险最终选中字段
|
|
zhongmeiaccidentalDrivingVo: {}, //中煤驾意险最终选中字段
|
|
|
pinganInsuranceData: [], //平安驾意险产品列表数据
|
|
pinganInsuranceData: [], //平安驾意险产品列表数据
|
|
|
- pingantemplateSelection:'',
|
|
|
|
|
- pinganInsuranceDataTable:[],
|
|
|
|
|
- pinganInsurancetype:'',
|
|
|
|
|
currentCell: null,
|
|
currentCell: null,
|
|
|
feeDetailInfo: [], //费用明细信息
|
|
feeDetailInfo: [], //费用明细信息
|
|
|
immediatelyValue: false,
|
|
immediatelyValue: false,
|
|
@@ -3093,6 +3162,8 @@ export default {
|
|
|
underwritingdialogVisible: false, //核保信息 显示/隐藏
|
|
underwritingdialogVisible: false, //核保信息 显示/隐藏
|
|
|
renewalCodedialogVisible: false, //转保确认码输入
|
|
renewalCodedialogVisible: false, //转保确认码输入
|
|
|
hbsubmitdialogVisible: false, //核保弹框
|
|
hbsubmitdialogVisible: false, //核保弹框
|
|
|
|
|
+ signaturedialogVisible:false, //生成签章
|
|
|
|
|
+ signaturecode:null,
|
|
|
Carinsurance: {
|
|
Carinsurance: {
|
|
|
jqinsurance: "1", //交强险
|
|
jqinsurance: "1", //交强险
|
|
|
syinsurance: "1", //商业险
|
|
syinsurance: "1", //商业险
|
|
@@ -4822,29 +4893,34 @@ export default {
|
|
|
this.isBottom = false;
|
|
this.isBottom = false;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- pinganInsuranceChange(index) {
|
|
|
|
|
|
|
+ pinganInsuranceChange(index,index1,val) {
|
|
|
if (!index) {
|
|
if (!index) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- this.pingantemplateSelection = index;
|
|
|
|
|
- // this.accidentFormPA = Object.assign(
|
|
|
|
|
- // this.accidentFormPA,
|
|
|
|
|
- // this.pinganInsuranceData.find((val) => val.projectCode == index)
|
|
|
|
|
- // );
|
|
|
|
|
- // this.pinganInsuranceData
|
|
|
|
|
- // .find((val) => val.projectCode == index)
|
|
|
|
|
- // .son.forEach((item) => {
|
|
|
|
|
- // item.sumAmount =
|
|
|
|
|
- // Number(item.amount) * Number(this.accidentFormPA.seatNum);
|
|
|
|
|
- // });
|
|
|
|
|
- this.accidentFormPA.projectName=index
|
|
|
|
|
- this.accidentFormPA.projectCode=this.pinganInsuranceData.find(
|
|
|
|
|
- (val) => val.projectName == index
|
|
|
|
|
- ).projectCode
|
|
|
|
|
- this.pinganInsuranceDataTable = this.pinganInsuranceData.find(
|
|
|
|
|
- (val) => val.projectName == index
|
|
|
|
|
- ).son;
|
|
|
|
|
- console.log( this.accidentFormPA,2222222222);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ this.accidentFormPA[index1].pingantemplateSelection = index;
|
|
|
|
|
+
|
|
|
|
|
+ this.accidentFormPA[index1].projectName=index
|
|
|
|
|
+ val.map(val1=>{
|
|
|
|
|
+ if(val1.projectName == index){
|
|
|
|
|
+ val1.son.forEach(val3=>{
|
|
|
|
|
+ val3.quantity='1'
|
|
|
|
|
+ })
|
|
|
|
|
+ this.accidentFormPA[index1].pinganInsuranceDataTable= val1.son
|
|
|
|
|
+ this.accidentFormPA[index1].projectCode= val1.projectCode
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ console.log(this.accidentFormPA[index1],index,4444444444);
|
|
|
|
|
+
|
|
|
|
|
+ // this.accidentFormPA[index1].projectCode=this.pinganInsuranceData.find(val1=>{
|
|
|
|
|
+ // // val1.map(
|
|
|
|
|
+ // // (val) => val.projectName == index
|
|
|
|
|
+ // // ).projectCode
|
|
|
|
|
+ // }
|
|
|
|
|
+ // )
|
|
|
|
|
+ // this.accidentFormPA[index1].pinganInsuranceDataTable = this.pinganInsuranceData.find(
|
|
|
|
|
+ // (val) => val.projectName == index
|
|
|
|
|
+ // ).son;
|
|
|
},
|
|
},
|
|
|
taikangInsuranceChange(index) {
|
|
taikangInsuranceChange(index) {
|
|
|
if (index) {
|
|
if (index) {
|
|
@@ -5138,8 +5214,8 @@ export default {
|
|
|
numberCopieschangeTk(index) {
|
|
numberCopieschangeTk(index) {
|
|
|
this.accidentFormTk.sumPremium = Number(this.accidentPremiumTk) * index;
|
|
this.accidentFormTk.sumPremium = Number(this.accidentPremiumTk) * index;
|
|
|
},
|
|
},
|
|
|
- numberCopieschangePA(index) {
|
|
|
|
|
- this.accidentFormPA.premium = Number(this.accidentPremiumPA) * index;
|
|
|
|
|
|
|
+ numberCopieschangePA(index,index1) {
|
|
|
|
|
+ this.accidentFormPA.premium = Number(this.accidentFormPA[index1].accidentPremiumPA ) * index;
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
numberCopieschangeZM(index) {
|
|
numberCopieschangeZM(index) {
|
|
@@ -5418,34 +5494,35 @@ export default {
|
|
|
? selectRow.underwritingDescription
|
|
? selectRow.underwritingDescription
|
|
|
: ""; //重新赋值修改选中协议承保描述
|
|
: ""; //重新赋值修改选中协议承保描述
|
|
|
if (this.$route.path != "/task/external/externalOrders")
|
|
if (this.$route.path != "/task/external/externalOrders")
|
|
|
- this.$api.letter
|
|
|
|
|
|
|
+ if(item.namesimple == "平安财险" ){
|
|
|
|
|
+ this.$api.letter.getPingAnDrivingInsuranceRule({
|
|
|
|
|
+ cimodelclass: this.carInfo.cimodelclass,
|
|
|
|
|
+ isUseCombine:'Y',
|
|
|
|
|
+ tonNumber:this.carInfo.limitLoad,
|
|
|
|
|
+ ownAttribute:'03',
|
|
|
|
|
+ useAttribute: this.carInfo.carnature,
|
|
|
|
|
+ ruleSeatNum:Number(this.carInfo.seatCount),
|
|
|
|
|
+ agreementId: item.agreementId,
|
|
|
|
|
+ }).then(res=>{
|
|
|
|
|
+ this.pinganInsuranceData= res.data;
|
|
|
|
|
+ console.log( res.data,5555555555555);
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$api.letter
|
|
|
.getDrivingInsuranceRule({
|
|
.getDrivingInsuranceRule({
|
|
|
companyCode: item.id,
|
|
companyCode: item.id,
|
|
|
agreementId: item.agreementId,
|
|
agreementId: item.agreementId,
|
|
|
seatNum:
|
|
seatNum:
|
|
|
item.namesimple == "永诚财险" || item.namesimple == "中煤财险"
|
|
item.namesimple == "永诚财险" || item.namesimple == "中煤财险"
|
|
|
- ? Number(this.carInfo.seatCount)
|
|
|
|
|
|
|
+ ? Number(this.carInfo.seatCount)
|
|
|
: "",
|
|
: "",
|
|
|
ruleUseNature: this.carInfo.carnature,
|
|
ruleUseNature: this.carInfo.carnature,
|
|
|
ruleSeatNum: Number(this.carInfo.seatCount),
|
|
ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
risk: this.riskList,
|
|
risk: this.riskList,
|
|
|
kind: this.kindList,
|
|
kind: this.kindList,
|
|
|
ruleThirdPartyInsurance: this.insureList[1].amount,
|
|
ruleThirdPartyInsurance: this.insureList[1].amount,
|
|
|
- cimodelclass: item.namesimple == "平安财险"
|
|
|
|
|
- ? this.carInfo.cimodelclass
|
|
|
|
|
- : "",
|
|
|
|
|
- isUseCombine:item.namesimple == "平安财险"
|
|
|
|
|
- ? 'Y'
|
|
|
|
|
- : "",
|
|
|
|
|
- tonNumber:item.namesimple == "平安财险"
|
|
|
|
|
- ? this.carInfo.limitLoad
|
|
|
|
|
- : "",
|
|
|
|
|
- ownAttribute:item.namesimple == "平安财险"
|
|
|
|
|
- ? '03'
|
|
|
|
|
- : "",
|
|
|
|
|
- useAttribute: item.namesimple == "平安财险"
|
|
|
|
|
- ? this.carInfo.carnature
|
|
|
|
|
- : "",
|
|
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
@@ -5461,7 +5538,6 @@ export default {
|
|
|
this.boHaiaccidentDataList = res.data;
|
|
this.boHaiaccidentDataList = res.data;
|
|
|
break;
|
|
break;
|
|
|
case "中煤财险":
|
|
case "中煤财险":
|
|
|
- case "平安财险":
|
|
|
|
|
this[item.cnName + +"InsuranceData"] = res.data;
|
|
this[item.cnName + +"InsuranceData"] = res.data;
|
|
|
break;
|
|
break;
|
|
|
case "紫金财险":
|
|
case "紫金财险":
|
|
@@ -5653,6 +5729,7 @@ export default {
|
|
|
RSDrivingRadio(row) {
|
|
RSDrivingRadio(row) {
|
|
|
this.RSDrivingChange(row);
|
|
this.RSDrivingChange(row);
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
//安盛驾意险选择
|
|
//安盛驾意险选择
|
|
|
ASDrivingRadio(row) {
|
|
ASDrivingRadio(row) {
|
|
|
this.anshengInsurancetype = row.projectCode;
|
|
this.anshengInsurancetype = row.projectCode;
|
|
@@ -5663,18 +5740,104 @@ export default {
|
|
|
// this.anshengaccidentalDrivingVo.projectCode = row.projectCode;
|
|
// this.anshengaccidentalDrivingVo.projectCode = row.projectCode;
|
|
|
// this.anshengaccidentalDrivingVo.projectName = row.projectName;
|
|
// this.anshengaccidentalDrivingVo.projectName = row.projectName;
|
|
|
},
|
|
},
|
|
|
- //平安驾意险选择
|
|
|
|
|
- PADrivingRadio(row) {
|
|
|
|
|
- this.accidentPremiumPA = row.premium;
|
|
|
|
|
- this.accidentFormPA.quantity = '1';
|
|
|
|
|
- this.accidentFormPA.sellListSize =Number(row.sellListSize) ;
|
|
|
|
|
- this.accidentFormPA.premium = row.premium
|
|
|
|
|
- this.pinganInsurancetype = row.code;
|
|
|
|
|
- this.pinganaccidentalDrivingVo = Object.assign({
|
|
|
|
|
- ...this.pinganaccidentalDrivingVo,
|
|
|
|
|
- ...row,
|
|
|
|
|
- ...this.accidentFormPA,
|
|
|
|
|
|
|
+ pinganDetail(row,agreementId) {
|
|
|
|
|
+ this.pinganDataDetailVisible=false
|
|
|
|
|
+ this.$api.letter
|
|
|
|
|
+ .productDetailsQuery({ agreementId,
|
|
|
|
|
+ packageCode:row.code,
|
|
|
|
|
+ productCode:row.productCode,
|
|
|
|
|
+ version:row.version,
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ if(res.code==200){
|
|
|
|
|
+ this.pinganDataDetailVisible=true
|
|
|
|
|
+ this.pinganDataDetail=res.data
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+ this.$message.err(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ sameItem(array1,array2) {
|
|
|
|
|
+ return array2.find(item => {
|
|
|
|
|
+ array1.some(innerItem => innerItem.code === item.code)
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
|
|
+ },
|
|
|
|
|
+ PADrivingCheckbox(event,row,agreementId,index) {
|
|
|
|
|
+ // const checkedVal = this.accidentFormPA[index].pinganInsuranceDataTable.find(x => x.cameraId === item.cameraId)
|
|
|
|
|
+ const isSelected = event.some(selectedRow => selectedRow.code == row.code);
|
|
|
|
|
+ let isIndex =null
|
|
|
|
|
+ let amount =null
|
|
|
|
|
+ event.find((selectedRow,selectedIndex) => {
|
|
|
|
|
+ if(selectedRow.code == row.code){
|
|
|
|
|
+ isIndex= selectedIndex
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
|
|
+ if(event.length>0 && isSelected){
|
|
|
|
|
+ this.$api.letter
|
|
|
|
|
+ .productDetailsQuery({ agreementId,
|
|
|
|
|
+ packageCode:row.code,
|
|
|
|
|
+ productCode:row.productCode,
|
|
|
|
|
+ version:row.version,
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ if(res.code==200){
|
|
|
|
|
+ res.data.forEach(ele=>{
|
|
|
|
|
+ amount+=Number(ele.unitInsuredAmount)?Number(ele.unitInsuredAmount):0
|
|
|
|
|
+ })
|
|
|
|
|
+ event[isIndex].amount=amount
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+ this.$message.err(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ event.forEach((res,indexOf)=>{
|
|
|
|
|
+ res.projectName=this.accidentFormPA[index].projectName
|
|
|
|
|
+ res.projectCode=this.accidentFormPA[index].projectCode
|
|
|
|
|
+ res.combineProductType=this.accidentFormPA[index].combineProductType
|
|
|
|
|
+ })
|
|
|
|
|
+ this.pinganaccidentalDrivingVo[index]=event
|
|
|
|
|
+ },
|
|
|
|
|
+ //平安驾意险选择
|
|
|
|
|
+ PADrivingRadio(row,agreementId,index) {
|
|
|
|
|
+
|
|
|
|
|
+ // this.accidentPremiumPA = row.premium;
|
|
|
|
|
+ this.accidentFormPA[index].quantity = '1';
|
|
|
|
|
+ this.accidentFormPA[index].sellListSize =Number(row.sellListSize) ;
|
|
|
|
|
+ this.accidentFormPA[index].premium = row.premium
|
|
|
|
|
+ this.accidentFormPA[index].combineProductType = row.combineProductType
|
|
|
|
|
+ this.accidentFormPA[index].accidentPremiumPA = row.premium
|
|
|
|
|
+ this.accidentFormPA[index].pinganInsurancetype = row.code;
|
|
|
|
|
+
|
|
|
|
|
+ this.$api.letter
|
|
|
|
|
+ .productDetailsQuery({ agreementId,
|
|
|
|
|
+ packageCode:row.code,
|
|
|
|
|
+ productCode:row.productCode,
|
|
|
|
|
+ version:row.version,
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ if(res.code==200){
|
|
|
|
|
+ this.accidentFormPA[index].amount=0
|
|
|
|
|
+ res.data.forEach(e=>{
|
|
|
|
|
+ this.accidentFormPA[index].amount+=Number(e.unitInsuredAmount)?Number(e.unitInsuredAmount):0
|
|
|
|
|
+ })
|
|
|
|
|
+ this.pinganaccidentalDrivingVo[index]={
|
|
|
|
|
+ ...row,
|
|
|
|
|
+ ...this.accidentFormPA[index],
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+ this.$message.err(res.msg)
|
|
|
|
|
+ this.pinganaccidentalDrivingVo[index]={
|
|
|
|
|
+ ...row,
|
|
|
|
|
+ ...this.accidentFormPA[index],
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
ZADrivingRadio(row) {
|
|
ZADrivingRadio(row) {
|
|
|
this.ZADrivingChange(row);
|
|
this.ZADrivingChange(row);
|
|
@@ -5988,12 +6151,17 @@ export default {
|
|
|
this.accidentForm.fen = 1;
|
|
this.accidentForm.fen = 1;
|
|
|
this.accidentForm.premium = 0;
|
|
this.accidentForm.premium = 0;
|
|
|
},
|
|
},
|
|
|
- clearAccidentFormPA() {
|
|
|
|
|
- this.accidentFormPA = {};
|
|
|
|
|
- this.accidentFormPA.quantity = 1;
|
|
|
|
|
- this.accidentFormPA.premium = 0;
|
|
|
|
|
- this.pinganaccidentalDrivingVo = {};
|
|
|
|
|
- this.pinganInsuranceDataTable = [];
|
|
|
|
|
|
|
+ clearAccidentFormPA(index) {
|
|
|
|
|
+ // this.accidentFormPA[index]={
|
|
|
|
|
+ // quantity: 1,
|
|
|
|
|
+ // premium: 0,
|
|
|
|
|
+ // pingantemplateSelection:'',
|
|
|
|
|
+ // pinganInsuranceDataTable:[],
|
|
|
|
|
+ // pinganInsurancetype:'',
|
|
|
|
|
+ // }
|
|
|
|
|
+ this.pinganaccidentalDrivingVo[index] = {};
|
|
|
|
|
+ console.log(this.accidentFormPA[index],9999999999);
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
clearAccidentFormTk() {
|
|
clearAccidentFormTk() {
|
|
|
this.taikangaccidentalDrivingVo = {};
|
|
this.taikangaccidentalDrivingVo = {};
|
|
@@ -6137,6 +6305,32 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ signature(companyId){
|
|
|
|
|
+ this.signaturedialogVisible = true;
|
|
|
|
|
+
|
|
|
|
|
+ this.$api.letter.pingAnsignEleApply({companyId}).then((res) => {
|
|
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
|
|
+ // 查找并删除旧的二维码DOM元素
|
|
|
|
|
+ let element = document.getElementById("signaturecode");
|
|
|
|
|
+ while (element.firstChild) {
|
|
|
|
|
+ element.removeChild(element.firstChild);
|
|
|
|
|
+ }
|
|
|
|
|
+ this.signaturecode = new QRCode("signaturecode", {
|
|
|
|
|
+ text: res.data.resultMessage,
|
|
|
|
|
+ width: 180,
|
|
|
|
|
+ height: 180,
|
|
|
|
|
+ colorDark: "#000000",
|
|
|
|
|
+ colorLight: "#ffffff",
|
|
|
|
|
+ correctLevel: QRCode.CorrectLevel.H,
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ message: res.msg || "暂无数据!",
|
|
|
|
|
+ type: "warning",
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
jqcheckedChange(e) {
|
|
jqcheckedChange(e) {
|
|
|
if (e) {
|
|
if (e) {
|
|
|
this.jqstartDate = this.transformTime1();
|
|
this.jqstartDate = this.transformTime1();
|
|
@@ -7060,12 +7254,13 @@ export default {
|
|
|
// 平安报价
|
|
// 平安报价
|
|
|
pingan(num, id) {
|
|
pingan(num, id) {
|
|
|
let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
- let accidentalDrivingVo={}
|
|
|
|
|
- if(this.pinganaccidentalDrivingVo &&this.pinganaccidentalDrivingVo.projectCode){
|
|
|
|
|
- accidentalDrivingVo = Object.assign({
|
|
|
|
|
- ...this.pinganaccidentalDrivingVo,
|
|
|
|
|
- ...this.accidentFormPA,
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ let accidentalDrivingVo=[]
|
|
|
|
|
+ if(this.pinganaccidentalDrivingVo){
|
|
|
|
|
+ accidentalDrivingVo=this.pinganaccidentalDrivingVo
|
|
|
|
|
+ // accidentalDrivingVo = Object.assign({
|
|
|
|
|
+ // ...this.pinganaccidentalDrivingVo,
|
|
|
|
|
+ // ...this.accidentFormPA,
|
|
|
|
|
+ // });
|
|
|
}
|
|
}
|
|
|
let params = {
|
|
let params = {
|
|
|
accidentalDrivingVo,
|
|
accidentalDrivingVo,
|
|
@@ -8823,9 +9018,10 @@ export default {
|
|
|
customClass: "customNotifyClass",
|
|
customClass: "customNotifyClass",
|
|
|
type: "error",
|
|
type: "error",
|
|
|
duration: 0,
|
|
duration: 0,
|
|
|
- });
|
|
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
} else {
|
|
} else {
|
|
|
loading.close();
|
|
loading.close();
|
|
|
this.$message({
|
|
this.$message({
|
|
@@ -10919,5 +11115,8 @@ export default {
|
|
|
.el-input-group__append {
|
|
.el-input-group__append {
|
|
|
vertical-align: baseline;
|
|
vertical-align: baseline;
|
|
|
}
|
|
}
|
|
|
|
|
+ .pinganTable .el-table__header-wrapper .el-checkbox {
|
|
|
|
|
+ display: none;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|