|
|
@@ -24,7 +24,7 @@
|
|
|
<span>{{ scope.row.insCompany ? scope.row.insCompany : '--' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="isExternal" label="外部订单" align="center">
|
|
|
+ <el-table-column prop="isExternal" label="外部订单" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.isExternal == '1' ? '是' : '否' }}</span>
|
|
|
</template>
|
|
|
@@ -255,11 +255,11 @@ export default {
|
|
|
optionsValue: "value",
|
|
|
options: [
|
|
|
{
|
|
|
- label:'是',
|
|
|
- value:'1'
|
|
|
- },{
|
|
|
- label:'否',
|
|
|
- value:'0'
|
|
|
+ label: '是',
|
|
|
+ value: '1'
|
|
|
+ }, {
|
|
|
+ label: '否',
|
|
|
+ value: '0'
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -271,11 +271,11 @@ export default {
|
|
|
optionsValue: "value",
|
|
|
options: [
|
|
|
{
|
|
|
- label:'是',
|
|
|
- value:'1'
|
|
|
- },{
|
|
|
- label:'否',
|
|
|
- value:'0'
|
|
|
+ label: '是',
|
|
|
+ value: '1'
|
|
|
+ }, {
|
|
|
+ label: '否',
|
|
|
+ value: '0'
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -311,14 +311,14 @@ export default {
|
|
|
Retained: true,
|
|
|
type: 'select',
|
|
|
options: [
|
|
|
- {
|
|
|
- label: '否',
|
|
|
- value: '0'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '是',
|
|
|
- value: '1'
|
|
|
- },
|
|
|
+ {
|
|
|
+ label: '否',
|
|
|
+ value: '0'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '是',
|
|
|
+ value: '1'
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
],
|
|
|
@@ -783,11 +783,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,
|
|
|
@@ -800,7 +800,7 @@ export default {
|
|
|
filename: this.orderInfo.jqpolicyno,
|
|
|
fileurl: res1.data.jqSign
|
|
|
});
|
|
|
- }
|
|
|
+ }
|
|
|
if (res1.data.jqSign) {
|
|
|
accidentList.push({
|
|
|
fileTitle: "商业电子保单",
|
|
|
@@ -816,200 +816,230 @@ 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: res.data.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,
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ else {
|
|
|
+ switch (res.data.inscompany) {
|
|
|
+ case "永安财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .getPolicyPrint({
|
|
|
+ companyId: res.data.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: res.data.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: res.data.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 (res.data.apiType) {
|
|
|
+ case 1:
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .HuataigetPolicyPrint({
|
|
|
+ companyId: res.data.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);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
- });
|
|
|
- this.$api.letter
|
|
|
- .getPolicyPrint2({
|
|
|
- companyId: res.data.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
|
|
|
+ .HuataigetPolicyPrint({
|
|
|
+ companyId: res.data.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 (this.orderInfo.sypolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .getPolicyPrint({
|
|
|
- companyId: res.data.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 2:
|
|
|
+ if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .pythongetPolicyPrint({
|
|
|
+ subOrderNo: res.data.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
|
|
|
- .HuataigetPolicyPrint({
|
|
|
- companyId: res.data.id,
|
|
|
- riskCode: "0507",
|
|
|
- type: "2", //2:保单
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- if (res.data) {
|
|
|
- if (res.data.jqxPolicyUrl) {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "中煤财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .ZhongmeigetPolicyPrint({
|
|
|
+ companyId: res.data.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.jqxPolicyUrl,
|
|
|
+ fileurl: res.data[0],
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- if (res.data.jqxFlagUrl) {
|
|
|
+ });
|
|
|
+ this.$api.letter
|
|
|
+ .ZhongmeigetPolicyPrint({
|
|
|
+ companyId: res.data.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.jqxFlagUrl,
|
|
|
+ fileurl: res.data[0],
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.orderInfo.sypolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .HuataigetPolicyPrint({
|
|
|
- companyId: res.data.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);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
- case "中煤财险":
|
|
|
- if (this.orderInfo.jqpolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .ZhongmeigetPolicyPrint({
|
|
|
- companyId: res.data.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: res.data.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: res.data.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) => {
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
this.$api.letter
|
|
|
.ZhongmeigetPolicyPrint({
|
|
|
- ridePolicyNo: ele.ridePolicyNo,
|
|
|
companyId: res.data.id,
|
|
|
- riskCode: "0513",
|
|
|
+ riskCode: "0510",
|
|
|
type: "2", //2:保单
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- if (res.code == 200 && res.data) {
|
|
|
- accidentList.push({
|
|
|
- fileTitle: "驾意险保单",
|
|
|
+ if (res.data && res.data[0]) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
filename: this.orderInfo.sypolicyno,
|
|
|
fileurl: res.data[0],
|
|
|
});
|
|
|
@@ -1017,419 +1047,440 @@ export default {
|
|
|
this.$message.error(res.msg);
|
|
|
}
|
|
|
});
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
- case "永诚财险":
|
|
|
- if (this.orderInfo.jqpolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .yongchenggetPolicyPrint({
|
|
|
- companyId: res.data.id,
|
|
|
- riskCode: "0507",
|
|
|
- type: "2", //2:保单
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- if (res.code == 200 && res.data) {
|
|
|
- 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);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.orderInfo.sypolicyno) {
|
|
|
- this.$api.letter
|
|
|
- .yongchenggetPolicyPrint({
|
|
|
- companyId: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.id,
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- if (res.code == 200 && res.data) {
|
|
|
- if (res.data.jqxPolicyUrl) {
|
|
|
+ }
|
|
|
+ break;
|
|
|
+
|
|
|
+ case "紫金财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .zijingetPolicyPrint({
|
|
|
+ companyId: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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: res.data.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,
|
|
|
businessList,
|