|
@@ -290,7 +290,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="ORcode">
|
|
<div class="ORcode">
|
|
|
<div style="padding: 13px; position: relative">
|
|
<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>
|
|
<div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
|
|
|
<img v-else :src="paycodeimg" alt style="width: 100%" />
|
|
<img v-else :src="paycodeimg" alt style="width: 100%" />
|
|
|
</div>
|
|
</div>
|
|
@@ -373,7 +373,7 @@
|
|
|
<div>商业险:{{ sypremium }}</div>
|
|
<div>商业险:{{ sypremium }}</div>
|
|
|
<div>驾意险:{{ jypremium }}</div>
|
|
<div>驾意险:{{ jypremium }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if="['大家财险', '华泰财险'].includes(inscompany)">
|
|
|
|
|
|
|
+ <div v-if="['大家财险', '中煤财险', '华泰财险'].includes(inscompany)">
|
|
|
<div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
|
|
<div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
|
|
|
<img v-else :src="paycodeimg" alt style="width: 100%" />
|
|
<img v-else :src="paycodeimg" alt style="width: 100%" />
|
|
|
</div>
|
|
</div>
|
|
@@ -966,9 +966,11 @@ export default {
|
|
|
this.companyList = res.data;
|
|
this.companyList = res.data;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- this.$api.insCompany.dicType("insOrderStatus").then((res) => {
|
|
|
|
|
|
|
+ this.$api.insCompany.dicType("InsOrderStatusAll").then((res) => {
|
|
|
this.optionsStatusAll = res.data.ddList;
|
|
this.optionsStatusAll = res.data.ddList;
|
|
|
- this.optionsStatus = res.data.ddList.filter(item => item.dictValue !="状态更新");
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ this.$api.insCompany.dicType("insOrderStatus").then((res) => {
|
|
|
|
|
+ this.optionsStatus = res.data.ddList;
|
|
|
});
|
|
});
|
|
|
this.peopleid = Cookies.get("user");
|
|
this.peopleid = Cookies.get("user");
|
|
|
this.$api.dept.findDeptTree().then((res) => {
|
|
this.$api.dept.findDeptTree().then((res) => {
|
|
@@ -1457,7 +1459,6 @@ export default {
|
|
|
refreshStatus(item) {
|
|
refreshStatus(item) {
|
|
|
let inscompany = {
|
|
let inscompany = {
|
|
|
国任财险: "updateOrderInfoGuoren",
|
|
国任财险: "updateOrderInfoGuoren",
|
|
|
- 中煤财险: "orderStatuszhongmei",
|
|
|
|
|
太平财险: "auditStatusQuery",
|
|
太平财险: "auditStatusQuery",
|
|
|
泰康财险: "auditStatusQuery",
|
|
泰康财险: "auditStatusQuery",
|
|
|
华农财险: "auditStatusQuery",
|
|
华农财险: "auditStatusQuery",
|
|
@@ -1554,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) {
|
|
updateStatusHuatai(item) {
|
|
@@ -1584,7 +1607,6 @@ export default {
|
|
|
国任财险: "updateOrderInfoGuoren",
|
|
国任财险: "updateOrderInfoGuoren",
|
|
|
大家财险: "updateOrderInfoDajia",
|
|
大家财险: "updateOrderInfoDajia",
|
|
|
紫金财险: "getOrderDetail",
|
|
紫金财险: "getOrderDetail",
|
|
|
- 中煤财险: "paymentEnquiry",
|
|
|
|
|
渤海财险: "getOrderDetailboHai",
|
|
渤海财险: "getOrderDetailboHai",
|
|
|
平安财险: "getDocumentStatusList",
|
|
平安财险: "getDocumentStatusList",
|
|
|
};
|
|
};
|
|
@@ -1668,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 (
|
|
if (
|
|
|
item.inscompany == "诚泰财险" ||
|
|
item.inscompany == "诚泰财险" ||
|
|
|
item.inscompany == "恒邦财险" ||
|
|
item.inscompany == "恒邦财险" ||
|
|
@@ -1769,6 +1815,19 @@ export default {
|
|
|
});
|
|
});
|
|
|
break;
|
|
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 {
|
|
} else {
|
|
|
this.creatQrCode(qrCodeUrl);
|
|
this.creatQrCode(qrCodeUrl);
|
|
|
}
|
|
}
|
|
@@ -2273,74 +2332,55 @@ export default {
|
|
|
|
|
|
|
|
break;
|
|
break;
|
|
|
case "中煤财险":
|
|
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
|
|
this.$api.letter
|
|
|
.ZhongmeigetPolicyPrint({
|
|
.ZhongmeigetPolicyPrint({
|
|
|
- ridePolicyNo: ele.ridePolicyNo,
|
|
|
|
|
companyId: item.id,
|
|
companyId: item.id,
|
|
|
- riskCode: "0513",
|
|
|
|
|
|
|
+ riskCode: "0507",
|
|
|
type: "2", //2:保单
|
|
type: "2", //2:保单
|
|
|
})
|
|
})
|
|
|
.then((res) => {
|
|
.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,
|
|
filename: this.orderInfo.sypolicyno,
|
|
|
fileurl: res.data[0],
|
|
fileurl: res.data[0],
|
|
|
});
|
|
});
|
|
@@ -2348,8 +2388,82 @@ export default {
|
|
|
this.$message.error(res.msg);
|
|
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;
|
|
break;
|
|
|
case "永诚财险":
|
|
case "永诚财险":
|
|
|
if (this.orderInfo.jqpolicyno) {
|
|
if (this.orderInfo.jqpolicyno) {
|