|
|
@@ -1036,22 +1036,24 @@
|
|
|
<div class="flex-1">产品名称</div>
|
|
|
<div class="w-60">保额(元)</div>
|
|
|
</div>
|
|
|
- <div class="table-list-content" v-for="(kinds, kindIndex) in reslistitem.programme.kinds.main" :key="kindIndex + 'main'">
|
|
|
- <div class="flex-1">
|
|
|
- <img src="@/icon/icon-chengse.png">
|
|
|
- <!-- <span>{{ kinds.alias || kinds.kindName }}</span> -->
|
|
|
- <span>{{ kinds.kindName }}</span>
|
|
|
+ <div v-for="(kinds, kindIndex) in reslistitem.programme.kinds.main" :key="kindIndex + 'main'">
|
|
|
+ <div class="table-list-content" v-if="kinds.amount != 0">
|
|
|
+ <div class="flex-1">
|
|
|
+ <img src="@/icon/icon-chengse.png">
|
|
|
+ <span>{{ kinds.kindName }}</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="kinds.kindCode != 'A'" class="w-60"> {{ toWan(kinds.amount) }}</div>
|
|
|
+ <div v-else class="w-60">{{ toWan(kinds.amount) }}</div>
|
|
|
</div>
|
|
|
- <div v-if="kinds.kindCode != 'A'" class="w-60"> {{ toWan(kinds.amount) }}</div>
|
|
|
- <div v-else class="w-60"> </div>
|
|
|
</div>
|
|
|
- <div class="table-list-content" v-for="(kinds, kindIndex) in reslistitem.programme.kinds.additional" :key="kindIndex">
|
|
|
- <div class="flex-1">
|
|
|
- <img src="@/icon/icon-chengse.png">
|
|
|
- <!-- <span>{{ kinds.alias || kinds.kindName }}</span> -->
|
|
|
- <span>{{ kinds.kindName }}</span>
|
|
|
+ <div v-for="(kinds, kindIndex) in reslistitem.programme.kinds.additional" :key="kindIndex">
|
|
|
+ <div class="table-list-content" v-if="kinds.amount != 0">
|
|
|
+ <div class="flex-1">
|
|
|
+ <img src="@/icon/icon-chengse.png">
|
|
|
+ <span>{{ kinds.kindName }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="w-60"> {{ toWan(kinds.amount) }}</div>
|
|
|
</div>
|
|
|
- <div class="w-60"> {{ toWan(kinds.amount) }}</div>
|
|
|
</div>
|
|
|
<div class="table-list-content" v-if="reslistitem.programme && reslistitem.programme.kinds && !reslistitem.programme.kinds.main.length && !reslistitem.programme.kinds.additional.length">暂无</div>
|
|
|
</div>
|
|
|
@@ -2452,7 +2454,7 @@
|
|
|
<el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
|
|
|
scope.row.orderstatus == '2' ||
|
|
|
scope.row.orderstatus == '4') &&
|
|
|
- ['紫金财险'].includes(scope.row.inscompany)
|
|
|
+ ['紫金财险', '诚泰财险'].includes(scope.row.inscompany)
|
|
|
" @click="cancelorder(scope.row)">撤单</el-button>
|
|
|
<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>
|
|
|
@@ -2910,10 +2912,11 @@
|
|
|
}">
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
<el-table-column prop="clauseCode" :width="80" label="特约代码" align="center"></el-table-column>
|
|
|
- <el-table-column v-if="contributingState" :width="100" prop="riskName" label="特约险种"
|
|
|
+ <el-table-column v-if="contributingState" :width="100" prop="riskCode" label="特约险种"
|
|
|
align="center"></el-table-column>
|
|
|
<el-table-column prop="clauseName" label="特约名称" align="center"></el-table-column>
|
|
|
- <el-table-column prop="clauseContent" label="特约内容">
|
|
|
+ <el-table-column prop="replaceContent" label="特约内容" align="center"></el-table-column>
|
|
|
+ <!-- <el-table-column prop="clauseContent" label="特约内容">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input @blur="hideInput" size="small" type="textarea" :ref="scope.row.index + ',' + scope.column.index"
|
|
|
v-model="scope.row.clauseContent" v-if="scope.row.index + ',' + scope.column.index == currentCell &&
|
|
|
@@ -2921,7 +2924,7 @@
|
|
|
"></el-input>
|
|
|
<span v-else>{{ scope.row.clauseContent }}</span>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="hbsubmitdialogVisible = false">取 消</el-button>
|
|
|
@@ -4286,7 +4289,11 @@ export default {
|
|
|
hengbangtemplateSelection: "", //恒邦
|
|
|
hengbangInsuranceData: [], //恒邦驾意险
|
|
|
hengbangInsuranceDataTable: [],
|
|
|
- hengbangaccidentalDrivingVo: {}, //恒邦驾意险
|
|
|
+ hengbangaccidentalDrivingVo: {}, //太平洋驾意险
|
|
|
+ taipingyangtemplateSelection: "", //太平洋
|
|
|
+ taipingyangInsuranceData: [], //太平洋驾意险
|
|
|
+ taipingyangInsuranceDataTable: [],
|
|
|
+ taipingyangaccidentalDrivingVo: {}, //太平洋驾意险
|
|
|
insuranceHN: "", //华农
|
|
|
huanongInsuranceData: [], //华农驾意险
|
|
|
huanongInsuranceDataTable: [],
|
|
|
@@ -4386,11 +4393,13 @@ export default {
|
|
|
renbaochecked: false, //人保驾意险
|
|
|
zhongmeichecked: false, //中煤驾意险
|
|
|
hengbangchecked: false, //恒邦驾意险
|
|
|
+ taipingyangchecked: false, //太平洋驾意险
|
|
|
yongchengchecked: false, //永诚驾意险
|
|
|
yonganDrivinglist: [],
|
|
|
renbaoDrivinglist: [],
|
|
|
zhongmeiDrivinglist: [],
|
|
|
hengbangDrivinglist: [],
|
|
|
+ taipingyangDrivinglist: [],
|
|
|
yongchengDrivinglist: [],
|
|
|
tbczcarShow: true, //投保人同车主
|
|
|
bbczcarShow: false, //被保人同车主
|
|
|
@@ -5810,6 +5819,8 @@ export default {
|
|
|
} else {
|
|
|
return (num / 10000).toFixed(4) + '万'
|
|
|
}
|
|
|
+ } else if (num == 1) {
|
|
|
+ return '投保'
|
|
|
} else {
|
|
|
return num
|
|
|
}
|
|
|
@@ -6849,6 +6860,17 @@ export default {
|
|
|
);
|
|
|
}
|
|
|
},
|
|
|
+ taipingyangInsuranceChange(index) {
|
|
|
+ this.taipingyangInsuranceDataTable = this.taipingyangInsuranceData.find(
|
|
|
+ (val) => val.projectCode == index
|
|
|
+ ).son;
|
|
|
+ this.taipingyangtemplateSelection = index;
|
|
|
+ if (this.taipingyangInsuranceDataTable.length) {
|
|
|
+ this.taipingyangaccidentalDrivingVo = this.taipingyangInsuranceData.find(
|
|
|
+ (val) => val.projectCode == index
|
|
|
+ );
|
|
|
+ }
|
|
|
+ },
|
|
|
huanongInsuranceChange(index) {
|
|
|
this.huanongInsuranceDataTable = this.huanongInsuranceData.find(
|
|
|
(val) => val.projectCode == index
|
|
|
@@ -7373,6 +7395,7 @@ export default {
|
|
|
case "安盛天平":
|
|
|
case "华农财险":
|
|
|
case "众安财险":
|
|
|
+ case "太平洋财险":
|
|
|
res.data.map((ele) => {
|
|
|
ele.quantity = 1;
|
|
|
return ele;
|
|
|
@@ -7655,6 +7678,46 @@ export default {
|
|
|
ZADrivingRadio(row) {
|
|
|
this.ZADrivingChange(row);
|
|
|
},
|
|
|
+ // 获取特约
|
|
|
+ getClauseData(id, index) {
|
|
|
+ this.ownerInfo.owner = this.tbczcarShow;
|
|
|
+ this.insuredPersonInfo.owner = this.bbczcarShow;
|
|
|
+ this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
|
|
|
+ let data = {
|
|
|
+ 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,
|
|
|
+ };
|
|
|
+ console.log(data,this.productId, this.totalCompanyList[index].id, '1111111111111111111111')
|
|
|
+ console.log(id, index)
|
|
|
+ // this.typeDialogIndex = index
|
|
|
+ // this.zijinengageListData = [];
|
|
|
+ // this.contributingLoading = true;
|
|
|
+ // this.contributingState = true;
|
|
|
+ // this.hbsubmitdialogVisible = true;
|
|
|
+ this.$api.letter.getClauseByCompanyId({
|
|
|
+ productCode: this.productId,
|
|
|
+ companyId: this.totalCompanyList[index].id,
|
|
|
+ quoteInfoVo: data
|
|
|
+ }).then((res) => {
|
|
|
+ this.contributingLoading = false;
|
|
|
+ if (res.data) {
|
|
|
+ // res.data.forEach((val) => {
|
|
|
+ // val.clauseName = val.clauses;
|
|
|
+ // val.clauseContent = val.clausesContext;
|
|
|
+ // });
|
|
|
+ this.zijinengageListData = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 国任特约选择
|
|
|
contributingGuoRen(id, index) {
|
|
|
this.typeDialogIndex = index
|
|
|
@@ -7662,6 +7725,8 @@ export default {
|
|
|
this.contributingLoading = true;
|
|
|
this.contributingState = true;
|
|
|
this.hbsubmitdialogVisible = true;
|
|
|
+ this.getClauseData(id, index)
|
|
|
+ return
|
|
|
this.$api.letter
|
|
|
.guorenqueryClauseData({ agreementId: id })
|
|
|
.then((res) => {
|
|
|
@@ -7699,7 +7764,7 @@ export default {
|
|
|
this.zijinengageList.push({
|
|
|
clauseCode: val.clauseCode,
|
|
|
clauseName: val.clauseName,
|
|
|
- clauses: val.clauseContent,
|
|
|
+ clauses: val.replaceContent,
|
|
|
riskCode: val.riskCode,
|
|
|
});
|
|
|
this.totalCompanyList[this.typeDialogIndex].zxProgramme.teyue = this.zijinengageList
|
|
|
@@ -7825,6 +7890,7 @@ export default {
|
|
|
case "华农财险":
|
|
|
case "安盛天平":
|
|
|
case "众安财险":
|
|
|
+ case "太平洋财险":
|
|
|
res.data.map((ele) => {
|
|
|
ele.quantity = 1;
|
|
|
return ele;
|
|
|
@@ -9992,6 +10058,7 @@ export default {
|
|
|
case "恒邦财险":
|
|
|
case "华农财险":
|
|
|
case "太平财险":
|
|
|
+ case "太平洋财险":
|
|
|
if (!!res.data) {
|
|
|
if (
|
|
|
res.data.warnMessageList &&
|
|
|
@@ -10101,6 +10168,15 @@ export default {
|
|
|
this.totalCompanyList[num].apiType
|
|
|
);
|
|
|
},
|
|
|
+ //太平洋
|
|
|
+ taipingyang(num, id, namesimple) {
|
|
|
+ this.quoteInsurance(
|
|
|
+ num,
|
|
|
+ id,
|
|
|
+ namesimple,
|
|
|
+ this.totalCompanyList[num].apiType
|
|
|
+ );
|
|
|
+ },
|
|
|
//诚泰
|
|
|
chengtai(num, id, namesimple) {
|
|
|
this.quoteInsurance(
|
|
|
@@ -10496,7 +10572,8 @@ export default {
|
|
|
this.policyUploaddialogVisible = true;
|
|
|
},
|
|
|
cancelorder(item) {
|
|
|
- this.$api.letter.zijincancelorder({ companyId: item.id }).then((res) => {
|
|
|
+ if (item.inscompany == '紫金财险') {
|
|
|
+ this.$api.letter.zijincancelorder({ companyId: item.id }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message({
|
|
|
message: res.msg,
|
|
|
@@ -10505,6 +10582,17 @@ export default {
|
|
|
this.QuotationHistory();
|
|
|
}
|
|
|
});
|
|
|
+ } else if (item.inscompany == '诚泰财险') {
|
|
|
+ this.$api.letter.chengtaicancelorder({ companyId: item.id }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.findPage();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
hbsubmitdialog(data, index) {
|
|
|
@@ -10518,33 +10606,35 @@ export default {
|
|
|
this.hbsubmitdialogVisible = true;
|
|
|
this.contributingState = false;
|
|
|
if (data.namesimple == "紫金财险") {
|
|
|
- this.$api.letter
|
|
|
- .zijinqueryClauseData({ companyId: this.companyId })
|
|
|
- .then((res) => {
|
|
|
- this.zijinengageListData = res.data;
|
|
|
- });
|
|
|
+ this.getClauseData(this.companyId, index)
|
|
|
+ // this.$api.letter
|
|
|
+ // .zijinqueryClauseData({ companyId: this.companyId })
|
|
|
+ // .then((res) => {
|
|
|
+ // this.zijinengageListData = res.data;
|
|
|
+ // });
|
|
|
}
|
|
|
if (data.namesimple == "华泰财险") {
|
|
|
this.zijinengageList = [];
|
|
|
- this.$api.letter
|
|
|
- .huataiqueryClauseData({ companyId: this.companyId })
|
|
|
- .then((res) => {
|
|
|
- res.data.forEach((val) => {
|
|
|
- val.clauseCode = val.engageCode;
|
|
|
- val.clauseName = val.engageTitle;
|
|
|
- val.clauseContent = val.engageDetail;
|
|
|
- val.clauses = val.engageDetail;
|
|
|
- });
|
|
|
- this.zijinengageListData = res.data;
|
|
|
- this.zijinengageListData.forEach((val) => {
|
|
|
- this.$nextTick(() => {
|
|
|
- if (val.optType == "2") {
|
|
|
- this.zijinengageList.push(val);
|
|
|
- this.$refs.expandTablePro.toggleRowSelection(val, true);
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
- });
|
|
|
+ this.getClauseData(this.companyId, index)
|
|
|
+ // this.$api.letter
|
|
|
+ // .huataiqueryClauseData({ companyId: this.companyId })
|
|
|
+ // .then((res) => {
|
|
|
+ // res.data.forEach((val) => {
|
|
|
+ // val.clauseCode = val.engageCode;
|
|
|
+ // val.clauseName = val.engageTitle;
|
|
|
+ // val.clauseContent = val.engageDetail;
|
|
|
+ // val.clauses = val.engageDetail;
|
|
|
+ // });
|
|
|
+ // this.zijinengageListData = res.data;
|
|
|
+ // this.zijinengageListData.forEach((val) => {
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // if (val.optType == "2") {
|
|
|
+ // this.zijinengageList.push(val);
|
|
|
+ // this.$refs.expandTablePro.toggleRowSelection(val, true);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // });
|
|
|
} else {
|
|
|
this.zijinengageListData = [];
|
|
|
}
|
|
|
@@ -10714,6 +10804,82 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
+ case "诚泰财险":
|
|
|
+ let CtApiImage = "";
|
|
|
+ CtApiImage =
|
|
|
+ this.apiType == 2
|
|
|
+ ? "pythonsubmitImage"
|
|
|
+ : "chengtaisubmitImage";
|
|
|
+ await this.$api.letter[CtApiImage]({
|
|
|
+ [this.apiType == 2 ? "subOrderNo" : "companyId"]:
|
|
|
+ this.companyId,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ var _this = this;
|
|
|
+ let CtApiaudit = "";
|
|
|
+ CtApiaudit =
|
|
|
+ this.apiType == 2 ? "pythonaudit" : "chengtaiaudit";
|
|
|
+ let engageList = [];
|
|
|
+ this.zijinengageList.forEach((val) => {
|
|
|
+ engageList.push({
|
|
|
+ engageCode: val.clauseCode,
|
|
|
+ engageDetail: val.clauses,
|
|
|
+ engageTitle: val.clauseName,
|
|
|
+ riskCode: val.riskCode,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ _this.$api.letter[CtApiaudit]({
|
|
|
+ [this.apiType == 2 ? "subOrderNo" : "companyId"]:
|
|
|
+ this.companyId,
|
|
|
+ engageList,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ loading.close();
|
|
|
+ _this.$message({
|
|
|
+ message: "核保成功",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.QuotationHistory();
|
|
|
+ _this.$api.letter
|
|
|
+ .getByCompanyId({ companyId: this.companyId })
|
|
|
+ .then((res) => {
|
|
|
+ _this.orderstatus = res.data.orderstatus; //订单状态
|
|
|
+ _this.underwritingdialogVisible = true;
|
|
|
+ let indexid = this.totalCompanyList.findIndex(
|
|
|
+ (item) =>
|
|
|
+ item.namesimple == this.queryOrders.inscompany
|
|
|
+ );
|
|
|
+ this.totalCompanyList[indexid].orderstatus =
|
|
|
+ res.data.orderstatus;
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ loading.close();
|
|
|
+ _this.$message({
|
|
|
+ showClose: true,
|
|
|
+ message:
|
|
|
+ this.queryOrders.inscompany + "提核--:" + res.msg,
|
|
|
+ type: "error",
|
|
|
+ duration: 0,
|
|
|
+ });
|
|
|
+ _this.$api.letter
|
|
|
+ .getByCompanyId({ companyId: this.companyId })
|
|
|
+ .then((res) => {
|
|
|
+ _this.orderstatus = res.data.orderstatus; //订单状态
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message:
|
|
|
+ this.queryOrders.inscompany + "影像--:" + res.msg,
|
|
|
+ type: "error",
|
|
|
+ duration: 7000,
|
|
|
+ });
|
|
|
+ loading.close();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ break;
|
|
|
+
|
|
|
case "华泰财险":
|
|
|
let HtApiImage = "";
|
|
|
HtApiImage =
|
|
|
@@ -10974,7 +11140,8 @@ export default {
|
|
|
case "安盛天平":
|
|
|
case "众安财险":
|
|
|
case "中国人寿":
|
|
|
- case "诚泰财险":
|
|
|
+ case "太平洋财险":
|
|
|
+ // case "诚泰财险":
|
|
|
case "泰康财险":
|
|
|
let hengbangapi = "";
|
|
|
hengbangapi =
|
|
|
@@ -12435,6 +12602,7 @@ export default {
|
|
|
this.zijintemplateSelection = "";
|
|
|
this.zhongantemplateSelection = "";
|
|
|
this.hengbangtemplateSelection = "";
|
|
|
+ this.taipingyangtemplateSelection = "";
|
|
|
this.taipingtemplateSelection = "";
|
|
|
this.insuranceHN = "";
|
|
|
this.renshoutemplateSelection = "";
|
|
|
@@ -12449,6 +12617,7 @@ export default {
|
|
|
};
|
|
|
this.productId = ''
|
|
|
this.hengbangaccidentalDrivingVo = {};
|
|
|
+ this.taipingyangaccidentalDrivingVo = {};
|
|
|
this.huanongaccidentalDrivingVo = {};
|
|
|
this.taipingaccidentalDrivingVo = {};
|
|
|
this.zhongmeiaccidentalDrivingVo = {};
|