|
|
@@ -1552,7 +1552,7 @@
|
|
|
<div>非车险:{{ jypremium }}</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width:200px;height: 200px;" />
|
|
|
+ <img v-if="['太平财险', '华泰财险'].includes(inscompany)" :src="paycodeimg" alt style="width:200px;height: 200px;" />
|
|
|
<div v-else id="qrcode" ref="qrcode"></div>
|
|
|
</div>
|
|
|
<div class="scan-code">
|
|
|
@@ -4227,7 +4227,6 @@ export default {
|
|
|
if (!index) {
|
|
|
return;
|
|
|
}
|
|
|
- console.log(this.yongchengaccidentDataList, index, 88888888888);
|
|
|
|
|
|
this.yongchengtemplateSelection = index
|
|
|
this.accidentForm = Object.assign(
|
|
|
@@ -4434,7 +4433,6 @@ export default {
|
|
|
// });
|
|
|
// },
|
|
|
Payment(id, item) {
|
|
|
- console.log(id, item)
|
|
|
this.carcode(id, item);
|
|
|
},
|
|
|
//选择协议 val:协议id row:协议列表 index:下标 item:保险公司数据集合
|
|
|
@@ -4453,62 +4451,62 @@ export default {
|
|
|
? selectRow.underwritingDescription
|
|
|
: ""; //重新赋值修改选中协议承保描述
|
|
|
|
|
|
- this.$api.letter
|
|
|
- .getDrivingInsuranceRule({
|
|
|
- companyCode: item.id,
|
|
|
- agreementId: item.agreementId,
|
|
|
- seatNum:item.namesimple=='永诚财险' ||item.namesimple=='中煤财险'? Number(this.carInfo.seatCount):'',
|
|
|
- ruleUseNature:this.carInfo.carnature,
|
|
|
- ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
- risk: this.riskList,
|
|
|
- kind: this.kindList,
|
|
|
- ruleThirdPartyInsurance: this.insureList[1].amount
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.nonVehicle(res.data,item.cnName)
|
|
|
- switch(item.namesimple) {
|
|
|
- case "永诚财险":
|
|
|
- this.yongchengaccidentDataList = res.data;
|
|
|
- break;
|
|
|
- case "国任财险":
|
|
|
- this.guoRenaccidentDataList = res.data;
|
|
|
- break;
|
|
|
- case "渤海财险":
|
|
|
- this.boHaiaccidentDataList = res.data;
|
|
|
- break;
|
|
|
- case "中煤财险":
|
|
|
- this[item.cnName + + "InsuranceData"] =res.data;
|
|
|
- break;
|
|
|
- case "紫金财险":
|
|
|
- let data = res.data;
|
|
|
- data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- });
|
|
|
- this.ziJinInsuranceData = data;
|
|
|
- break;
|
|
|
- case "大家财险":
|
|
|
- this.dajiaInsuranceData = res.data;
|
|
|
- break;
|
|
|
- case "中国人寿":
|
|
|
- case "恒邦财险":
|
|
|
- case "太平财险":
|
|
|
- case "安盛天平":
|
|
|
- case "华农财险":
|
|
|
- case "众安财险":
|
|
|
- res.data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- });
|
|
|
- this[item.cnName + "InsuranceData"] = res.data;
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- else{
|
|
|
- this.$message.error(res.msg)
|
|
|
- }
|
|
|
- });
|
|
|
+ this.$api.letter
|
|
|
+ .getDrivingInsuranceRule({
|
|
|
+ companyCode: item.id,
|
|
|
+ agreementId: item.agreementId,
|
|
|
+ seatNum: item.namesimple == '永诚财险' || item.namesimple == '中煤财险' ? Number(this.carInfo.seatCount) : '',
|
|
|
+ ruleUseNature: this.carInfo.carnature,
|
|
|
+ ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ risk: this.riskList,
|
|
|
+ kind: this.kindList,
|
|
|
+ ruleThirdPartyInsurance: this.insureList[1].amount
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.nonVehicle(res.data, item.cnName)
|
|
|
+ switch (item.namesimple) {
|
|
|
+ case "永诚财险":
|
|
|
+ this.yongchengaccidentDataList = res.data;
|
|
|
+ break;
|
|
|
+ case "国任财险":
|
|
|
+ this.guoRenaccidentDataList = res.data;
|
|
|
+ break;
|
|
|
+ case "渤海财险":
|
|
|
+ this.boHaiaccidentDataList = res.data;
|
|
|
+ break;
|
|
|
+ case "中煤财险":
|
|
|
+ this[item.cnName + + "InsuranceData"] = res.data;
|
|
|
+ break;
|
|
|
+ case "紫金财险":
|
|
|
+ let data = res.data;
|
|
|
+ data.map(ele => {
|
|
|
+ ele.quantity = 1;
|
|
|
+ return ele;
|
|
|
+ });
|
|
|
+ this.ziJinInsuranceData = data;
|
|
|
+ break;
|
|
|
+ case "大家财险":
|
|
|
+ this.dajiaInsuranceData = res.data;
|
|
|
+ break;
|
|
|
+ case "中国人寿":
|
|
|
+ case "恒邦财险":
|
|
|
+ case "太平财险":
|
|
|
+ case "安盛天平":
|
|
|
+ case "华农财险":
|
|
|
+ case "众安财险":
|
|
|
+ res.data.map(ele => {
|
|
|
+ ele.quantity = 1;
|
|
|
+ return ele;
|
|
|
+ });
|
|
|
+ this[item.cnName + "InsuranceData"] = res.data;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
// switch (item.namesimple) {
|
|
|
// case "永诚财险":
|
|
|
// this.accidentForm.agreementId = item.agreementId;
|
|
|
@@ -4731,20 +4729,20 @@ export default {
|
|
|
index
|
|
|
].agreement[0].underwritingDescription;
|
|
|
this.$api.letter
|
|
|
- .getDrivingInsuranceRule({
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- seatNum:ins=='永诚财险' || ins=='中煤财险'? Number(this.carInfo.seatCount):'',
|
|
|
- ruleUseNature:this.carInfo.carnature,
|
|
|
- ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
- risk: this.riskList,
|
|
|
- kind: this.kindList,
|
|
|
- ruleThirdPartyInsurance: this.insureList[1].amount
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- switch(ins) {
|
|
|
- case "永诚财险":
|
|
|
- this.yongchengaccidentDataList = res.data;
|
|
|
+ .getDrivingInsuranceRule({
|
|
|
+ agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
+ seatNum: ins == '永诚财险' || ins == '中煤财险' ? Number(this.carInfo.seatCount) : '',
|
|
|
+ ruleUseNature: this.carInfo.carnature,
|
|
|
+ ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ risk: this.riskList,
|
|
|
+ kind: this.kindList,
|
|
|
+ ruleThirdPartyInsurance: this.insureList[1].amount
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ switch (ins) {
|
|
|
+ case "永诚财险":
|
|
|
+ this.yongchengaccidentDataList = res.data;
|
|
|
break;
|
|
|
case "国任财险":
|
|
|
this.guoRenaccidentDataList = res.data;
|
|
|
@@ -5210,89 +5208,89 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- kindListFun(){
|
|
|
+ kindListFun() {
|
|
|
var _this = this;
|
|
|
_this.riskList = []; //险种大类
|
|
|
_this.kindList = []; //商业险险别
|
|
|
if (
|
|
|
- (!_this.jqstartDate || !_this.jqendDate) &&
|
|
|
- (!_this.systartDate || !_this.syendDate)
|
|
|
- ) {
|
|
|
- this.$message({ message: "投保日期不能为空", type: "warning" });
|
|
|
+ (!_this.jqstartDate || !_this.jqendDate) &&
|
|
|
+ (!_this.systartDate || !_this.syendDate)
|
|
|
+ ) {
|
|
|
+ this.$message({ message: "投保日期不能为空", type: "warning" });
|
|
|
+ } else {
|
|
|
+ if (_this.jqchecked) {
|
|
|
+ //交强
|
|
|
+ _this.jqstartDate = this.transformTime(_this.jqstartDate);
|
|
|
+ _this.jqendDate = this.transformTime(_this.jqendDate);
|
|
|
+ _this.riskList.push({
|
|
|
+ amount: "200000",
|
|
|
+ premium: "0",
|
|
|
+ riskCode: "0507",
|
|
|
+ endDate: _this.jqendDate,
|
|
|
+ startDate: _this.jqstartDate,
|
|
|
+ instantFlag: "0"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (_this.sychecked) {
|
|
|
+ _this.systartDate = this.transformTime(_this.systartDate);
|
|
|
+ _this.syendDate = this.transformTime(_this.syendDate);
|
|
|
+ //商业
|
|
|
+ _this.riskList.push({
|
|
|
+ premium: "0",
|
|
|
+ riskCode: "0510",
|
|
|
+ quotePreceptCode: "",
|
|
|
+ quotePreceptName: "",
|
|
|
+ endDate: _this.syendDate,
|
|
|
+ startDate: _this.systartDate,
|
|
|
+ instantFlag: "0"
|
|
|
+ });
|
|
|
+ _this.insureList.map((ele, index) => {
|
|
|
+ if (
|
|
|
+ ele.amount != "0" &&
|
|
|
+ (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
|
|
|
+ ) {
|
|
|
+ _this.kindList.push({
|
|
|
+ unitAmount: _this.insureList[index].amount,
|
|
|
+ kindCode: _this.insureList[index].kindCode,
|
|
|
+ kindName: _this.insureList[index].kindName
|
|
|
+ });
|
|
|
+ } else if (
|
|
|
+ ele.amount != "0" &&
|
|
|
+ (ele.kindCode == "MJ1" ||
|
|
|
+ ele.kindCode == "MJ2" ||
|
|
|
+ ele.kindCode == "MJ3" ||
|
|
|
+ ele.kindCode == "MJ4")
|
|
|
+ ) {
|
|
|
+ _this.kindList.push({
|
|
|
+ deductibleRate: _this.insureList[index].amount,
|
|
|
+ kindCode: _this.insureList[index].kindCode,
|
|
|
+ kindName: _this.insureList[index].kindName
|
|
|
+ });
|
|
|
+ } else if (
|
|
|
+ ele.amount != "0" &&
|
|
|
+ (ele.kindCode == "TY1" ||
|
|
|
+ ele.kindCode == "TY2" ||
|
|
|
+ ele.kindCode == "TY3" ||
|
|
|
+ ele.kindCode == "TY4")
|
|
|
+ ) {
|
|
|
+ _this.kindList.push({
|
|
|
+ serviceTimes: _this.insureList[index].amount,
|
|
|
+ kindCode: _this.insureList[index].kindCode,
|
|
|
+ kindName: _this.insureList[index].kindName
|
|
|
+ });
|
|
|
+ } else if (ele.amount != "0") {
|
|
|
+ _this.kindList.push({
|
|
|
+ amount: _this.insureList[index].amount,
|
|
|
+ kindCode: _this.insureList[index].kindCode,
|
|
|
+ kindName: _this.insureList[index].kindName
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return ele;
|
|
|
+ });
|
|
|
} else {
|
|
|
- if (_this.jqchecked) {
|
|
|
- //交强
|
|
|
- _this.jqstartDate = this.transformTime(_this.jqstartDate);
|
|
|
- _this.jqendDate = this.transformTime(_this.jqendDate);
|
|
|
- _this.riskList.push({
|
|
|
- amount: "200000",
|
|
|
- premium: "0",
|
|
|
- riskCode: "0507",
|
|
|
- endDate: _this.jqendDate,
|
|
|
- startDate: _this.jqstartDate,
|
|
|
- instantFlag: "0"
|
|
|
- });
|
|
|
- }
|
|
|
- if (_this.sychecked) {
|
|
|
- _this.systartDate = this.transformTime(_this.systartDate);
|
|
|
- _this.syendDate = this.transformTime(_this.syendDate);
|
|
|
- //商业
|
|
|
- _this.riskList.push({
|
|
|
- premium: "0",
|
|
|
- riskCode: "0510",
|
|
|
- quotePreceptCode: "",
|
|
|
- quotePreceptName: "",
|
|
|
- endDate: _this.syendDate,
|
|
|
- startDate: _this.systartDate,
|
|
|
- instantFlag: "0"
|
|
|
- });
|
|
|
- _this.insureList.map((ele, index) => {
|
|
|
- if (
|
|
|
- ele.amount != "0" &&
|
|
|
- (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
|
|
|
- ) {
|
|
|
- _this.kindList.push({
|
|
|
- unitAmount: _this.insureList[index].amount,
|
|
|
- kindCode: _this.insureList[index].kindCode,
|
|
|
- kindName: _this.insureList[index].kindName
|
|
|
- });
|
|
|
- } else if (
|
|
|
- ele.amount != "0" &&
|
|
|
- (ele.kindCode == "MJ1" ||
|
|
|
- ele.kindCode == "MJ2" ||
|
|
|
- ele.kindCode == "MJ3" ||
|
|
|
- ele.kindCode == "MJ4")
|
|
|
- ) {
|
|
|
- _this.kindList.push({
|
|
|
- deductibleRate: _this.insureList[index].amount,
|
|
|
- kindCode: _this.insureList[index].kindCode,
|
|
|
- kindName: _this.insureList[index].kindName
|
|
|
- });
|
|
|
- } else if (
|
|
|
- ele.amount != "0" &&
|
|
|
- (ele.kindCode == "TY1" ||
|
|
|
- ele.kindCode == "TY2" ||
|
|
|
- ele.kindCode == "TY3" ||
|
|
|
- ele.kindCode == "TY4")
|
|
|
- ) {
|
|
|
- _this.kindList.push({
|
|
|
- serviceTimes: _this.insureList[index].amount,
|
|
|
- kindCode: _this.insureList[index].kindCode,
|
|
|
- kindName: _this.insureList[index].kindName
|
|
|
- });
|
|
|
- } else if (ele.amount != "0") {
|
|
|
- _this.kindList.push({
|
|
|
- amount: _this.insureList[index].amount,
|
|
|
- kindCode: _this.insureList[index].kindCode,
|
|
|
- kindName: _this.insureList[index].kindName
|
|
|
- });
|
|
|
- }
|
|
|
- return ele;
|
|
|
- });
|
|
|
- } else {
|
|
|
- _this.kindList = [];
|
|
|
- }
|
|
|
+ _this.kindList = [];
|
|
|
}
|
|
|
+ }
|
|
|
},
|
|
|
//动态函数
|
|
|
ToolClickFun(MethodName, Parameter, companyId, companyName) {
|
|
|
@@ -7867,7 +7865,6 @@ export default {
|
|
|
this.$message({ message: "请正确选择驾驶证", type: "warning" });
|
|
|
}
|
|
|
var carInfo = res.data.carInfo;
|
|
|
- console.log(carInfo);
|
|
|
if (carInfo.issueDate) {
|
|
|
carInfo.issueDate =
|
|
|
carInfo.issueDate.substring(0, 4) +
|
|
|
@@ -8186,8 +8183,7 @@ export default {
|
|
|
},
|
|
|
//返回上一步
|
|
|
Back() { },
|
|
|
- carcode(id,item) {
|
|
|
- console.log(id,item)
|
|
|
+ carcode(id, item) {
|
|
|
this.$api.letter.getQrCode(id).then(res => {
|
|
|
if (res.code == "200") {
|
|
|
this.inscompany = res.data.inscompany; //保险公司
|
|
|
@@ -8202,7 +8198,6 @@ export default {
|
|
|
this.systartdate = res.data.syStartDate; //商业起保日期
|
|
|
// this.mobile = res.data.applyinfo.mobile;//投保人手机号
|
|
|
let qrCodeUrl = res.data.qrCodeUrl;
|
|
|
-
|
|
|
this.$api.letter.getThemeByUserId().then(res => {
|
|
|
if (res.code == 200) {
|
|
|
if (res.data[0] == 'GD') {
|
|
|
@@ -8214,30 +8209,32 @@ export default {
|
|
|
this.codedialogVisible = true;
|
|
|
}
|
|
|
this.$nextTick(function () {
|
|
|
- if (item.inscompany == "太平财险") {
|
|
|
- let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
|
|
|
- let animgBase64 = `data:image/png;base64,${anresult}`;
|
|
|
- base64ToPath(animgBase64).then(path => {
|
|
|
- this.paycodeimg = path;
|
|
|
- });
|
|
|
- } else if (item.inscompany == "华泰财险") {
|
|
|
- switch (item.apiType) {
|
|
|
- case 1:
|
|
|
- this.paycodeimg = qrCodeUrl;
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
|
|
|
- let animgBase64 = `data:image/png;base64,${anresult}`;
|
|
|
- base64ToPath(animgBase64).then(path => {
|
|
|
- this.paycodeimg = path;
|
|
|
- });
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- else {
|
|
|
- this.creatQrCode(qrCodeUrl);
|
|
|
+ var _that = this;
|
|
|
+ switch (_that.inscompany) {
|
|
|
+ case '太平财险':
|
|
|
+ let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
|
|
|
+ let animgBase64 = `data:image/png;base64,${anresult}`;
|
|
|
+ base64ToPath(animgBase64).then(path => {
|
|
|
+ this.paycodeimg = path;
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case '华泰财险':
|
|
|
+ switch (item.apiType) {
|
|
|
+ case 1:
|
|
|
+ this.paycodeimg = qrCodeUrl;
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
|
|
|
+ let animgBase64 = `data:image/png;base64,${anresult}`;
|
|
|
+ base64ToPath(animgBase64).then(path => {
|
|
|
+ this.paycodeimg = path;
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ this.creatQrCode(qrCodeUrl);
|
|
|
}
|
|
|
- console.log(this.paycodeimg)
|
|
|
});
|
|
|
}
|
|
|
})
|