|
|
@@ -761,21 +761,21 @@ export default {
|
|
|
},
|
|
|
//二维码生成插件
|
|
|
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
|
|
|
- });
|
|
|
+ // 查找并删除旧的二维码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
|
|
|
+ });
|
|
|
},
|
|
|
-
|
|
|
//查询缴费状态
|
|
|
refreshStatus(item) {
|
|
|
let inscompany = {
|
|
|
@@ -994,7 +994,6 @@ export default {
|
|
|
},
|
|
|
//二维码
|
|
|
carcode(item) {
|
|
|
- console.log(item)
|
|
|
this.$api.letter.getQrCode(item.id).then(res => {
|
|
|
if (res.code == "200") {
|
|
|
this.inscompany = res.data.inscompany; //保险公司
|
|
|
@@ -1284,11 +1283,11 @@ export default {
|
|
|
let businessList = [];
|
|
|
let accidentList = [];
|
|
|
if (res.data.orderstatus == "3") {
|
|
|
- if(res.data.isExternal==1){
|
|
|
+ if (res.data.isExternal == 1) {
|
|
|
this.$api.letter
|
|
|
- .getPolicyPrintexternalOrder(res.data.id).then(res1=>{
|
|
|
- if(res1.code==200){
|
|
|
- if (res1.data.jqPolicy) {
|
|
|
+ .getPolicyPrintexternalOrder(res.data.id).then(res1 => {
|
|
|
+ if (res1.code == 200) {
|
|
|
+ if (res1.data.jqPolicy) {
|
|
|
this.oldfileList.push({
|
|
|
fileTitle: "交强电子保单",
|
|
|
filename: this.orderInfo.jqpolicyno,
|
|
|
@@ -1301,7 +1300,7 @@ export default {
|
|
|
filename: this.orderInfo.jqpolicyno,
|
|
|
fileurl: res1.data.jqSign
|
|
|
});
|
|
|
- }
|
|
|
+ }
|
|
|
if (res1.data.jqSign) {
|
|
|
accidentList.push({
|
|
|
fileTitle: "商业电子保单",
|
|
|
@@ -1317,670 +1316,670 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- else{
|
|
|
- this.$message.error(res1.msg)
|
|
|
- }
|
|
|
- })
|
|
|
+ else {
|
|
|
+ this.$message.error(res1.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
- else{
|
|
|
- switch (res.data.inscompany) {
|
|
|
- case "永安财险":
|
|
|
- if (this.orderInfo.jqpolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .getPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- policytype: "jq"
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- //交强保单
|
|
|
- if (res.data) {
|
|
|
- let result = res.data.replace(/[\r\n]/g, "");
|
|
|
- let pdfBase64 = `data:application/pdf;base64,${result}`;
|
|
|
- base64ToPath(pdfBase64).then(path => {
|
|
|
- if (path) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子保单",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: path
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- this.$api.letter
|
|
|
- .getPolicyPrint2({
|
|
|
- companyId: item.id,
|
|
|
- policytype: "jq"
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- //交强保单
|
|
|
- if (res.data) {
|
|
|
- let result = res.data.replace(/[\r\n]/g, "");
|
|
|
- let pdfBase64 = `data:application/pdf;base64,${result}`;
|
|
|
- base64ToPath(pdfBase64).then(path => {
|
|
|
- if (path) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子标志",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: path
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.orderInfo.sypolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .getPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- policytype: "sy"
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- //商业保单
|
|
|
- if (res.data) {
|
|
|
- let result = res.data.replace(/[\r\n]/g, "");
|
|
|
- let pdfBase64 = `data:application/pdf;base64,${result}`;
|
|
|
- base64ToPath(pdfBase64).then(path => {
|
|
|
- if (path) {
|
|
|
- businessList.push({
|
|
|
- fileTitle: "商业电子保单",
|
|
|
- filename: this.orderInfo.sypolicyno,
|
|
|
- fileurl: path
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
- case "华泰财险":
|
|
|
- switch (item.apiType) {
|
|
|
- case 1:
|
|
|
- if (this.orderInfo.jqpolicyno) {
|
|
|
- this.$api.letter.HuataigetPolicyPrint({
|
|
|
+ else {
|
|
|
+ switch (res.data.inscompany) {
|
|
|
+ case "永安财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .getPolicyPrint({
|
|
|
companyId: item.id,
|
|
|
- riskCode: "0507",
|
|
|
- type: "2" //2:保单
|
|
|
+ policytype: "jq"
|
|
|
})
|
|
|
- .then(res => {
|
|
|
- if (res.data) {
|
|
|
- if (res.data.jqxPolicyUrl) {
|
|
|
+ .then(res => {
|
|
|
+ //交强保单
|
|
|
+ if (res.data) {
|
|
|
+ let result = res.data.replace(/[\r\n]/g, "");
|
|
|
+ let pdfBase64 = `data:application/pdf;base64,${result}`;
|
|
|
+ base64ToPath(pdfBase64).then(path => {
|
|
|
+ if (path) {
|
|
|
this.oldfileList.push({
|
|
|
fileTitle: "交强电子保单",
|
|
|
filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data.jqxPolicyUrl
|
|
|
+ fileurl: path
|
|
|
});
|
|
|
}
|
|
|
- if (res.data.jqxFlagUrl) {
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$api.letter
|
|
|
+ .getPolicyPrint2({
|
|
|
+ companyId: item.id,
|
|
|
+ policytype: "jq"
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ //交强保单
|
|
|
+ if (res.data) {
|
|
|
+ let result = res.data.replace(/[\r\n]/g, "");
|
|
|
+ let pdfBase64 = `data:application/pdf;base64,${result}`;
|
|
|
+ base64ToPath(pdfBase64).then(path => {
|
|
|
+ if (path) {
|
|
|
this.oldfileList.push({
|
|
|
fileTitle: "交强电子标志",
|
|
|
filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data.jqxFlagUrl
|
|
|
+ fileurl: path
|
|
|
});
|
|
|
}
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.orderInfo.sypolicyno) {
|
|
|
- this.$api.letter.HuataigetPolicyPrint({
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .getPolicyPrint({
|
|
|
companyId: item.id,
|
|
|
- riskCode: "0510",
|
|
|
- type: "2" //2:保单
|
|
|
+ policytype: "sy"
|
|
|
})
|
|
|
- .then(res => {
|
|
|
- if (res.data && res.data.syxPolicyUrl) {
|
|
|
- businessList.push({
|
|
|
- fileTitle: "商业电子保单",
|
|
|
- filename: this.orderInfo.sypolicyno,
|
|
|
- fileurl: res.data.syxPolicyUrl
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .pythongetPolicyPrint({
|
|
|
- subOrderNo: item.id
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.code == 200 && res.data) {
|
|
|
- if (res.data.jqxPolicyUrl) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子保单",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data.jqxPolicyUrl
|
|
|
+ .then(res => {
|
|
|
+ //商业保单
|
|
|
+ if (res.data) {
|
|
|
+ let result = res.data.replace(/[\r\n]/g, "");
|
|
|
+ let pdfBase64 = `data:application/pdf;base64,${result}`;
|
|
|
+ base64ToPath(pdfBase64).then(path => {
|
|
|
+ if (path) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: path
|
|
|
});
|
|
|
}
|
|
|
- if (res.data.jqxFlagUrl) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子标志",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data.jqxFlagUrl
|
|
|
- });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "华泰财险":
|
|
|
+ switch (item.apiType) {
|
|
|
+ case 1:
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter.HuataigetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "2" //2:保单
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data) {
|
|
|
+ if (res.data.jqxPolicyUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxPolicyUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.jqxFlagUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxFlagUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- if (res.data.syxPolicyUrl) {
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter.HuataigetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0510",
|
|
|
+ type: "2" //2:保单
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data && res.data.syxPolicyUrl) {
|
|
|
businessList.push({
|
|
|
fileTitle: "商业电子保单",
|
|
|
filename: this.orderInfo.sypolicyno,
|
|
|
fileurl: res.data.syxPolicyUrl
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- if (
|
|
|
- res.data.jyxInfoList &&
|
|
|
- res.data.jyxInfoList.length > 0
|
|
|
- ) {
|
|
|
- res.data.jyxInfoList.forEach(val => {
|
|
|
- accidentList.push({
|
|
|
- fileTitle: "驾意险保单",
|
|
|
- filename: "驾意险保单",
|
|
|
- fileurl: val.jyx_policy_url
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .pythongetPolicyPrint({
|
|
|
+ subOrderNo: item.id
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ if (res.data.jqxPolicyUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxPolicyUrl
|
|
|
});
|
|
|
- });
|
|
|
+ }
|
|
|
+ if (res.data.jqxFlagUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxFlagUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.syxPolicyUrl) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data.syxPolicyUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ res.data.jyxInfoList &&
|
|
|
+ res.data.jyxInfoList.length > 0
|
|
|
+ ) {
|
|
|
+ res.data.jyxInfoList.forEach(val => {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: "驾意险保单",
|
|
|
+ fileurl: val.jyx_policy_url
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- break;
|
|
|
- case "中煤财险":
|
|
|
- if (this.orderInfo.jqpolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .ZhongmeigetPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0507",
|
|
|
- type: "2" //2:保单
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data && res.data[0]) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子保单",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data[0]
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- this.$api.letter
|
|
|
- .ZhongmeigetPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0507",
|
|
|
- type: "1" // 1:标志
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data && res.data[0]) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子标志",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data[0]
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.orderInfo.sypolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .ZhongmeigetPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0510",
|
|
|
- type: "2" //2:保单
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data && res.data[0]) {
|
|
|
- businessList.push({
|
|
|
- fileTitle: "商业电子保单",
|
|
|
- filename: this.orderInfo.sypolicyno,
|
|
|
- fileurl: res.data[0]
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
+ });
|
|
|
}
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
- this.orderInfo.crossInsurance.map(ele => {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ break;
|
|
|
+ case "中煤财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
this.$api.letter
|
|
|
.ZhongmeigetPolicyPrint({
|
|
|
- ridePolicyNo: ele.ridePolicyNo,
|
|
|
companyId: item.id,
|
|
|
- riskCode: "0513",
|
|
|
+ riskCode: "0507",
|
|
|
type: "2" //2:保单
|
|
|
})
|
|
|
.then(res => {
|
|
|
- if (res.code == 200 && res.data) {
|
|
|
- accidentList.push({
|
|
|
- fileTitle: "驾意险保单",
|
|
|
- filename: this.orderInfo.sypolicyno,
|
|
|
+ if (res.data && res.data[0]) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
fileurl: res.data[0]
|
|
|
});
|
|
|
} else {
|
|
|
this.$message.error(res.msg);
|
|
|
}
|
|
|
});
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
- case "永诚财险":
|
|
|
- if (this.orderInfo.jqpolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .yongchenggetPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0507",
|
|
|
- type: "2" //2:保单
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.code == 200 && res.data) {
|
|
|
- if (res.data.jqUrl) {
|
|
|
+ this.$api.letter
|
|
|
+ .ZhongmeigetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "1" // 1:标志
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data && res.data[0]) {
|
|
|
this.oldfileList.push({
|
|
|
- fileTitle: "交强电子保单",
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data.jqUrl
|
|
|
+ fileurl: res.data[0]
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- if (res.data.jqFlagUrl) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子标志",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data.jqFlagUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .ZhongmeigetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0510",
|
|
|
+ type: "2" //2:保单
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data && res.data[0]) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data[0]
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.orderInfo.sypolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .yongchenggetPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0510",
|
|
|
- type: "2" //2:保单
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data && res.data.syUrl) {
|
|
|
- businessList.push({
|
|
|
- fileTitle: "商业电子保单",
|
|
|
- filename: this.orderInfo.sypolicyno,
|
|
|
- fileurl: res.data.syUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
+ this.orderInfo.crossInsurance.map(ele => {
|
|
|
+ this.$api.letter
|
|
|
+ .ZhongmeigetPolicyPrint({
|
|
|
+ ridePolicyNo: ele.ridePolicyNo,
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0513",
|
|
|
+ type: "2" //2:保单
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data[0]
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
});
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
});
|
|
|
- }
|
|
|
- if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
- this.orderInfo.crossInsurance.map(ele => {
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "永诚财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
this.$api.letter
|
|
|
.yongchenggetPolicyPrint({
|
|
|
companyId: item.id,
|
|
|
- policyNumber: ele.policyNumber,
|
|
|
- riskCode: "0513",
|
|
|
+ riskCode: "0507",
|
|
|
type: "2" //2:保单
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.code == 200 && res.data) {
|
|
|
- accidentList.push({
|
|
|
- fileTitle: "驾意险保单",
|
|
|
- filename: ele.policyNumber,
|
|
|
- fileurl: res.data.jyUrl
|
|
|
- });
|
|
|
+ if (res.data.jqUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.jqFlagUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqFlagUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message.error(res.msg);
|
|
|
}
|
|
|
});
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
- case "国任财险":
|
|
|
- if (this.orderInfo.jqpolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .guoRengetPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0507",
|
|
|
- type: "2" //2:保单
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子保单",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- this.$api.letter
|
|
|
- .guoRengetPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0507",
|
|
|
- type: "1" //1:标志
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子标志",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.orderInfo.sypolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .guoRengetPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0510",
|
|
|
- type: "2" //2:保单
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data) {
|
|
|
- businessList.push({
|
|
|
- fileTitle: "商业电子保单",
|
|
|
- filename: this.orderInfo.sypolicyno,
|
|
|
- fileurl: res.data
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
- this.orderInfo.crossInsurance.map(ele => {
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
this.$api.letter
|
|
|
- .guoRengetPolicyPrint({
|
|
|
+ .yongchenggetPolicyPrint({
|
|
|
companyId: item.id,
|
|
|
- policyNumber: ele.policyNumber,
|
|
|
-
|
|
|
- riskCode: "0513",
|
|
|
+ riskCode: "0510",
|
|
|
type: "2" //2:保单
|
|
|
})
|
|
|
.then(res => {
|
|
|
- if (res.data) {
|
|
|
- accidentList.push({
|
|
|
- fileTitle: "驾意险保单",
|
|
|
- filename: ele.policyNumber,
|
|
|
- fileurl: res.data
|
|
|
+ if (res.data && res.data.syUrl) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data.syUrl
|
|
|
});
|
|
|
} else {
|
|
|
this.$message.error(res.msg);
|
|
|
}
|
|
|
});
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
-
|
|
|
- case "紫金财险":
|
|
|
- if (this.orderInfo.jqpolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .zijingetPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0507",
|
|
|
- type: "2" //2:保单
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子保单",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- this.$api.letter
|
|
|
- .zijingetPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0507",
|
|
|
- type: "1" //1:标志
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子标志",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.orderInfo.sypolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .zijingetPolicyPrint({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0510",
|
|
|
- type: "2" //2:保单
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data) {
|
|
|
- businessList.push({
|
|
|
- fileTitle: "商业电子保单",
|
|
|
- filename: this.orderInfo.sypolicyno,
|
|
|
- fileurl: res.data
|
|
|
+ }
|
|
|
+ if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
+ this.orderInfo.crossInsurance.map(ele => {
|
|
|
+ this.$api.letter
|
|
|
+ .yongchenggetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ policyNumber: ele.policyNumber,
|
|
|
+ riskCode: "0513",
|
|
|
+ type: "2" //2:保单
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: ele.policyNumber,
|
|
|
+ fileurl: res.data.jyUrl
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
});
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
});
|
|
|
- }
|
|
|
- if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
- this.orderInfo.crossInsurance.map(ele => {
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "国任财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
this.$api.letter
|
|
|
- .zijingetPolicyPrint({
|
|
|
+ .guoRengetPolicyPrint({
|
|
|
companyId: item.id,
|
|
|
- policyNumber: ele.policyNumber,
|
|
|
- riskCode: "0513",
|
|
|
+ riskCode: "0507",
|
|
|
type: "2" //2:保单
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.data) {
|
|
|
- accidentList.push({
|
|
|
- fileTitle: "驾意险保单",
|
|
|
- filename: ele.policyNumber,
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
fileurl: res.data
|
|
|
});
|
|
|
} else {
|
|
|
this.$message.error(res.msg);
|
|
|
}
|
|
|
});
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
- case "渤海财险":
|
|
|
- if (this.orderInfo.jqpolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .getPolicyPrintboHai({
|
|
|
- companyId: item.id
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.code == 200 && res.data) {
|
|
|
- if (res.data.jqxPolicyUrl) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子保单",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data.jqxPolicyUrl
|
|
|
- });
|
|
|
- }
|
|
|
- if (res.data.jqxFlagUrl) {
|
|
|
+ this.$api.letter
|
|
|
+ .guoRengetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "1" //1:标志
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data) {
|
|
|
this.oldfileList.push({
|
|
|
fileTitle: "交强电子标志",
|
|
|
filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data.jqxFlagUrl
|
|
|
+ fileurl: res.data
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- if (res.data.syxPolicyUrl) {
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .guoRengetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0510",
|
|
|
+ type: "2" //2:保单
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data) {
|
|
|
businessList.push({
|
|
|
fileTitle: "商业电子保单",
|
|
|
filename: this.orderInfo.sypolicyno,
|
|
|
- fileurl: res.data.syxPolicyUrl
|
|
|
+ fileurl: res.data
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- if (
|
|
|
- res.data.jyxInfoList &&
|
|
|
- res.data.jyxInfoList.length > 0
|
|
|
- ) {
|
|
|
- res.data.jyxInfoList.forEach(val => {
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
+ this.orderInfo.crossInsurance.map(ele => {
|
|
|
+ this.$api.letter
|
|
|
+ .guoRengetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ policyNumber: ele.policyNumber,
|
|
|
+
|
|
|
+ riskCode: "0513",
|
|
|
+ type: "2" //2:保单
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data) {
|
|
|
accidentList.push({
|
|
|
fileTitle: "驾意险保单",
|
|
|
- filename: "驾意险保单",
|
|
|
- fileurl: val.jyx_policy_url
|
|
|
+ filename: ele.policyNumber,
|
|
|
+ fileurl: res.data
|
|
|
});
|
|
|
- });
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
- }
|
|
|
- break;
|
|
|
- case "恒邦财险":
|
|
|
- case "安盛天平":
|
|
|
- case "中国人寿":
|
|
|
- case "太平财险":
|
|
|
- case "华农财险":
|
|
|
- case "众安财险":
|
|
|
- if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .pythongetPolicyPrint({
|
|
|
- subOrderNo: item.id
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.code == 200 && res.data) {
|
|
|
- if (res.data.jqxPolicyUrl) {
|
|
|
+ }
|
|
|
+ break;
|
|
|
+
|
|
|
+ case "紫金财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .zijingetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "2" //2:保单
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data) {
|
|
|
this.oldfileList.push({
|
|
|
fileTitle: "交强电子保单",
|
|
|
filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data.jqxPolicyUrl
|
|
|
+ fileurl: res.data
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- if (res.data.jqxFlagUrl) {
|
|
|
+ });
|
|
|
+ this.$api.letter
|
|
|
+ .zijingetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "1" //1:标志
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data) {
|
|
|
this.oldfileList.push({
|
|
|
fileTitle: "交强电子标志",
|
|
|
filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data.jqxFlagUrl
|
|
|
+ fileurl: res.data
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- if (res.data.syxPolicyUrl) {
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .zijingetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0510",
|
|
|
+ type: "2" //2:保单
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data) {
|
|
|
businessList.push({
|
|
|
fileTitle: "商业电子保单",
|
|
|
filename: this.orderInfo.sypolicyno,
|
|
|
- fileurl: res.data.syxPolicyUrl
|
|
|
+ fileurl: res.data
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- if (
|
|
|
- res.data.jyxInfoList &&
|
|
|
- res.data.jyxInfoList.length > 0
|
|
|
- ) {
|
|
|
- res.data.jyxInfoList.forEach(val => {
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
+ this.orderInfo.crossInsurance.map(ele => {
|
|
|
+ this.$api.letter
|
|
|
+ .zijingetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ policyNumber: ele.policyNumber,
|
|
|
+ riskCode: "0513",
|
|
|
+ type: "2" //2:保单
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data) {
|
|
|
accidentList.push({
|
|
|
fileTitle: "驾意险保单",
|
|
|
- filename: "驾意险保单",
|
|
|
- fileurl: val.jyx_policy_url
|
|
|
+ filename: ele.policyNumber,
|
|
|
+ fileurl: res.data
|
|
|
});
|
|
|
- });
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
- case "大家财险":
|
|
|
- if (this.orderInfo.jqpolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .obtainWarranty({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0507",
|
|
|
- type: "2" //2:保单
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子保单",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- this.$api.letter
|
|
|
- .obtainWarranty({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0507",
|
|
|
- type: "1" //1:标志
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data) {
|
|
|
- this.oldfileList.push({
|
|
|
- fileTitle: "交强电子标志",
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
- fileurl: res.data
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.orderInfo.sypolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .obtainWarranty({
|
|
|
- companyId: item.id,
|
|
|
- riskCode: "0510",
|
|
|
- type: "2" //2:保单
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.data) {
|
|
|
- businessList.push({
|
|
|
- fileTitle: "商业电子保单",
|
|
|
- filename: this.orderInfo.sypolicyno,
|
|
|
- fileurl: res.data
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
});
|
|
|
- }
|
|
|
});
|
|
|
- }
|
|
|
- if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
- this.orderInfo.crossInsurance.map(ele => {
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "渤海财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
this.$api.letter
|
|
|
- .zijingetPolicyPrint({
|
|
|
+ .getPolicyPrintboHai({
|
|
|
+ companyId: item.id
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ if (res.data.jqxPolicyUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxPolicyUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.jqxFlagUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxFlagUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.syxPolicyUrl) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data.syxPolicyUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ res.data.jyxInfoList &&
|
|
|
+ res.data.jyxInfoList.length > 0
|
|
|
+ ) {
|
|
|
+ res.data.jyxInfoList.forEach(val => {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: "驾意险保单",
|
|
|
+ fileurl: val.jyx_policy_url
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "恒邦财险":
|
|
|
+ case "安盛天平":
|
|
|
+ case "中国人寿":
|
|
|
+ case "太平财险":
|
|
|
+ case "华农财险":
|
|
|
+ case "众安财险":
|
|
|
+ if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .pythongetPolicyPrint({
|
|
|
+ subOrderNo: item.id
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ if (res.data.jqxPolicyUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxPolicyUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.jqxFlagUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxFlagUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.syxPolicyUrl) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data.syxPolicyUrl
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ res.data.jyxInfoList &&
|
|
|
+ res.data.jyxInfoList.length > 0
|
|
|
+ ) {
|
|
|
+ res.data.jyxInfoList.forEach(val => {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: "驾意险保单",
|
|
|
+ fileurl: val.jyx_policy_url
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "大家财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .obtainWarranty({
|
|
|
companyId: item.id,
|
|
|
- policyNumber: ele.policyNumber,
|
|
|
- riskCode: "0513",
|
|
|
+ riskCode: "0507",
|
|
|
type: "2" //2:保单
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.data) {
|
|
|
- accidentList.push({
|
|
|
- fileTitle: "驾意险保单",
|
|
|
- filename: ele.policyNumber,
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
fileurl: res.data
|
|
|
});
|
|
|
} else {
|
|
|
this.$message.error(res.msg);
|
|
|
}
|
|
|
});
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
- default:
|
|
|
+ this.$api.letter
|
|
|
+ .obtainWarranty({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "1" //1:标志
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .obtainWarranty({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0510",
|
|
|
+ type: "2" //2:保单
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
+ this.orderInfo.crossInsurance.map(ele => {
|
|
|
+ this.$api.letter
|
|
|
+ .zijingetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ policyNumber: ele.policyNumber,
|
|
|
+ riskCode: "0513",
|
|
|
+ type: "2" //2:保单
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data) {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: ele.policyNumber,
|
|
|
+ fileurl: res.data
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
let obj = {
|
|
|
oldfileList: this.oldfileList,
|