|
|
@@ -290,7 +290,7 @@
|
|
|
</div>
|
|
|
<div class="ORcode">
|
|
|
<div style="padding: 13px; position: relative">
|
|
|
- <div v-if="['大家财险', '华泰财险'].includes(inscompany)">
|
|
|
+ <div v-if="['大家财险', '中煤财险', '华泰财险'].includes(inscompany)">
|
|
|
<div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
|
|
|
<img v-else :src="paycodeimg" alt style="width: 100%" />
|
|
|
</div>
|
|
|
@@ -373,7 +373,7 @@
|
|
|
<div>商业险:{{ sypremium }}</div>
|
|
|
<div>驾意险:{{ jypremium }}</div>
|
|
|
</div>
|
|
|
- <div v-if="['大家财险', '华泰财险'].includes(inscompany)">
|
|
|
+ <div v-if="['大家财险', '中煤财险', '华泰财险'].includes(inscompany)">
|
|
|
<div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
|
|
|
<img v-else :src="paycodeimg" alt style="width: 100%" />
|
|
|
</div>
|
|
|
@@ -408,11 +408,12 @@
|
|
|
</div>
|
|
|
<div style="height: 300px; overflow-y: auto">
|
|
|
<el-steps direction="vertical" :active="trajectoryTable.length - 1">
|
|
|
- <el-step :title="item.orderStatus | cap" :key="item.id" v-for="item in trajectoryTable">
|
|
|
+ <el-step :title="item.orderStatus | caps" :key="item.id" v-for="item in trajectoryTable">
|
|
|
<template slot="description">
|
|
|
<span>保险公司:{{ item.insCompany }}</span>
|
|
|
<span>提交人:{{ item.operator }}</span>
|
|
|
<div>创建时间:{{ item.createTime }}</div>
|
|
|
+ <div v-if="item.remark">状态更新:{{ item.remark }}</div>
|
|
|
</template>
|
|
|
</el-step>
|
|
|
</el-steps>
|
|
|
@@ -815,6 +816,7 @@ export default {
|
|
|
logoImg: "", //报价单保险公司logo图
|
|
|
value2: "",
|
|
|
optionsStatus: [],
|
|
|
+ optionsStatusAll: [],
|
|
|
codedialogVisible: false,
|
|
|
codedialogVisiblePro: false,
|
|
|
loading: false,
|
|
|
@@ -964,6 +966,9 @@ export default {
|
|
|
this.companyList = res.data;
|
|
|
});
|
|
|
|
|
|
+ this.$api.insCompany.dicType("InsOrderStatusAll").then((res) => {
|
|
|
+ this.optionsStatusAll = res.data.ddList;
|
|
|
+ });
|
|
|
this.$api.insCompany.dicType("insOrderStatus").then((res) => {
|
|
|
this.optionsStatus = res.data.ddList;
|
|
|
});
|
|
|
@@ -1011,6 +1016,11 @@ export default {
|
|
|
return item.dictValue === ele;
|
|
|
}).dictTag;
|
|
|
},
|
|
|
+ caps(ele) {
|
|
|
+ return _self.optionsStatusAll.find((item) => {
|
|
|
+ return item.dictValue === ele;
|
|
|
+ }).dictTag;
|
|
|
+ },
|
|
|
},
|
|
|
unmounted() {
|
|
|
window.removeEventListener("resize", this.getDimensions);
|
|
|
@@ -1449,7 +1459,6 @@ export default {
|
|
|
refreshStatus(item) {
|
|
|
let inscompany = {
|
|
|
国任财险: "updateOrderInfoGuoren",
|
|
|
- 中煤财险: "orderStatuszhongmei",
|
|
|
太平财险: "auditStatusQuery",
|
|
|
泰康财险: "auditStatusQuery",
|
|
|
华农财险: "auditStatusQuery",
|
|
|
@@ -1546,6 +1555,28 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ // 中煤财险: "orderStatuszhongmei",
|
|
|
+ if (item.inscompany == "中煤财险") {
|
|
|
+ let ZMApiType =
|
|
|
+ item.apiType == 2 ? "auditStatusQuery" : "orderStatuszhongmei";
|
|
|
+ this.$api.letter[ZMApiType]({ companyId: item.id }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg ? res.msg : "已刷新状态",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.findPage();
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ showClose: true,
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: res.msg.replace(/\n/g, "<br><br>"),
|
|
|
+ type: "error",
|
|
|
+ duration: 7000,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
//华泰刷新核保状态
|
|
|
updateStatusHuatai(item) {
|
|
|
@@ -1576,7 +1607,6 @@ export default {
|
|
|
国任财险: "updateOrderInfoGuoren",
|
|
|
大家财险: "updateOrderInfoDajia",
|
|
|
紫金财险: "getOrderDetail",
|
|
|
- 中煤财险: "paymentEnquiry",
|
|
|
渤海财险: "getOrderDetailboHai",
|
|
|
平安财险: "getDocumentStatusList",
|
|
|
};
|
|
|
@@ -1660,6 +1690,30 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ if (item.inscompany == "中煤财险") {
|
|
|
+ // 中煤财险: "paymentEnquiry",
|
|
|
+ let ZMApiType =
|
|
|
+ item.apiType == 2 ? "pychonverifyPayment" : "paymentEnquiry";
|
|
|
+
|
|
|
+ this.$api.letter[ZMApiType]({
|
|
|
+ [item.apiType == 2 ? "subOrderNo" : "companyId"]: item.id,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg ? res.msg : "已刷新状态",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
|
|
|
+ this.findPage();
|
|
|
+ this.querystatusLoaing = false;
|
|
|
+ } else {
|
|
|
+ this.querystatusLoaing = false;
|
|
|
+ this.$message({ message: res.msg, type: "error" });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
if (
|
|
|
item.inscompany == "诚泰财险" ||
|
|
|
item.inscompany == "恒邦财险" ||
|
|
|
@@ -1761,6 +1815,19 @@ export default {
|
|
|
});
|
|
|
break;
|
|
|
}
|
|
|
+ } else if (item.inscompany == "中煤财险") {
|
|
|
+ switch (item.apiType) {
|
|
|
+ case 1:
|
|
|
+ this.creatQrCode(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);
|
|
|
}
|
|
|
@@ -2265,74 +2332,55 @@ export default {
|
|
|
|
|
|
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) => {
|
|
|
+ switch (item.apiType) {
|
|
|
+ case 1:
|
|
|
+ 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: "驾意险保单",
|
|
|
+ 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],
|
|
|
});
|
|
|
@@ -2340,8 +2388,82 @@ export default {
|
|
|
this.$message.error(res.msg);
|
|
|
}
|
|
|
});
|
|
|
- });
|
|
|
+ }
|
|
|
+ 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);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ 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);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
}
|
|
|
+
|
|
|
break;
|
|
|
case "永诚财险":
|
|
|
if (this.orderInfo.jqpolicyno) {
|