|
|
@@ -1002,6 +1002,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-if="reslistitem.namesimple == '国任财险' && reslistitem.checked && reslistitem.agreementId">
|
|
|
+ <el-button class="Driving-risk" type="text" @click="contributingGuoRen(reslistitem.agreementId)">选择特约</el-button>
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<h3>意外险信息</h3>
|
|
|
<el-form :inline="true" :model="guoRenaccidentForm" class="demo-form-inline" size="small">
|
|
|
@@ -2113,9 +2114,9 @@
|
|
|
<el-button size="small" type="primary" @click="renewalCodeconfirm">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="提交核保" :visible.sync="hbsubmitdialogVisible" width="1200px">
|
|
|
+ <el-dialog :title="contributingState?'选择特约':'提交核保'" :visible.sync="hbsubmitdialogVisible" width="1200px">
|
|
|
<div style="margin-bottom: 20px;font-weight: bold;">特约选择</div>
|
|
|
- <el-table size="small" :data="zijinengageListData" border v-loading="accidentLoading" @select="zijinengageChange"
|
|
|
+ <el-table size="small" :data="zijinengageListData" border v-loading="contributingLoading" @select="zijinengageChange"
|
|
|
ref="expandTable" highlight-current-row @cell-dblclick="zijincellDblclick" :cell-class-name="tableCellClassName"
|
|
|
:header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#ee7000' }">
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
@@ -2131,7 +2132,9 @@
|
|
|
</el-table>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="hbsubmitdialogVisible = false">取 消</el-button>
|
|
|
- <el-button size="small" type="warning" @click="hbsubmit">提交核保</el-button>
|
|
|
+ <el-button v-if="contributingState" size="small" type="warning" @click="hbsubmitdialogVisible=false">确定</el-button>
|
|
|
+ <el-button v-else size="small" type="warning" @click="hbsubmit">提交核保</el-button>
|
|
|
+
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
|
|
|
@@ -2243,6 +2246,7 @@ export default {
|
|
|
accidenttableData: [],
|
|
|
accidentLoading: false,
|
|
|
guoRenaccidentLoading: false,
|
|
|
+ contributingLoading:false,
|
|
|
guoRenaccidentPremium:'',
|
|
|
guoRenaccidentForm: {
|
|
|
quantity: "1",
|
|
|
@@ -2250,6 +2254,7 @@ export default {
|
|
|
}, //国任意外险内容
|
|
|
accidentPremium: "",
|
|
|
accidentPremiumGr:'',
|
|
|
+ contributingState:false, //是否为国任特约
|
|
|
pickerOptions: {
|
|
|
disabledDate(time) {
|
|
|
//若选择的日期小于当前日期(包含今天)
|
|
|
@@ -3505,7 +3510,6 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//--订单编辑回显--
|
|
|
this.paramsEdit = this.$route.query.data; //接收参数
|
|
|
if (this.paramsEdit) {
|
|
|
@@ -3515,7 +3519,6 @@ export default {
|
|
|
this.bbtbcarShow = false;
|
|
|
this.bbczcarShow = false;
|
|
|
const { carinfo, ownerinfo, applyinfo, insureinfo, quoteno, orderno } = _this.paramsEdit;
|
|
|
-
|
|
|
_this.carInfo = carinfo;
|
|
|
if( _this.carInfo.carnature=="8A"){
|
|
|
_this.carInfo.carnature='02'
|
|
|
@@ -4173,6 +4176,22 @@ export default {
|
|
|
ZADrivingRadio(row){
|
|
|
this.ZADrivingChange(row)
|
|
|
},
|
|
|
+ // 国任特约选择
|
|
|
+ contributingGuoRen(id){
|
|
|
+ this.zijinengageListData = [];
|
|
|
+ this.contributingLoading=true
|
|
|
+ this.contributingState=true
|
|
|
+ this.hbsubmitdialogVisible=true
|
|
|
+ this.$api.letter.guorenqueryClauseData
|
|
|
+ ({ agreementId: id }).then(res => {
|
|
|
+ this.contributingLoading=false
|
|
|
+ res.data.forEach(val=>{
|
|
|
+ val.clauseName=val.clauses
|
|
|
+ val.clauseContent=val.clausesContext
|
|
|
+ })
|
|
|
+ this.zijinengageListData = res.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
//紫金特约选择
|
|
|
zijinengageChange(select, row) {
|
|
|
this.zijinengageList = [];
|
|
|
@@ -4434,7 +4453,6 @@ export default {
|
|
|
this.$message({ message: "发证日期早于初登日期", type: "error" });
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
this.$refs["carInfo"].validate(valid => {
|
|
|
if (valid) {
|
|
|
var _this = this;
|
|
|
@@ -5173,6 +5191,16 @@ export default {
|
|
|
},
|
|
|
//国任报价
|
|
|
guoRen(num, id) {
|
|
|
+ let guoRenSpecialAgreementVo=[]
|
|
|
+ this.zijinengageList.forEach(val=>{
|
|
|
+ guoRenSpecialAgreementVo.push({
|
|
|
+ clauses:val.clauseName,
|
|
|
+ clausesContext:val.clauses,
|
|
|
+ clauseCode:val.clauseCode,
|
|
|
+ riskCode:val.riskCode,
|
|
|
+ riskName:val.riskName,
|
|
|
+ })
|
|
|
+ })
|
|
|
let accidentalDrivingVo = {};
|
|
|
if ( this.guoRenaccidentForm.goodsCode) {
|
|
|
accidentalDrivingVo = {
|
|
|
@@ -5188,9 +5216,9 @@ export default {
|
|
|
renewalCodeJq: this.renewalCodeJq,
|
|
|
renewalCodeSy: this.renewalCodeSy,
|
|
|
agreementId: this.totalCompanyList[num].agreementId,
|
|
|
+ guoRenSpecialAgreementVo
|
|
|
};
|
|
|
this.$api.letter.guorenquote(params).then(res => {
|
|
|
-
|
|
|
this.totalCompanyList[num].msg = res.msg;
|
|
|
if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
|
|
|
this.totalCompanyList[num].quoteCode = "4";
|
|
|
@@ -5560,6 +5588,7 @@ export default {
|
|
|
this.companyId = data.result.companyId;
|
|
|
this.apiType = data.apiType;
|
|
|
this.hbsubmitdialogVisible = true;
|
|
|
+ this.contributingState=false
|
|
|
if(data.namesimple=='紫金财险'){
|
|
|
this.$api.letter.zijinqueryClauseData
|
|
|
({ companyId: this.companyId }).then(res => {
|
|
|
@@ -5593,6 +5622,7 @@ export default {
|
|
|
},
|
|
|
hbsubmit() {
|
|
|
this.hbsubmitdialogVisible = false;
|
|
|
+ this.contributingState=false
|
|
|
this.$api.letter.getByCompanyId({ companyId: this.companyId }).then(async res => {
|
|
|
if (res.code == 200) {
|
|
|
var data = res.data;
|