|
|
@@ -1124,6 +1124,8 @@
|
|
|
@click="Payment(scope.row.id)">付款码</el-button>
|
|
|
<el-button size="mini" type="text" v-if="scope.row.orderstatus == '2' && ['紫金财险'].includes(scope.row.inscompany)"
|
|
|
@click="cancelorder(scope.row)" style="color:#f56c6c">撤单</el-button>
|
|
|
+ <el-button type="text" size="mini" v-if="scope.row.orderstatus == '2'" @click="revokeCode(scope.row.id)">撤销二维码</el-button>
|
|
|
+
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -1588,10 +1590,11 @@
|
|
|
<div style="padding:0 20px">
|
|
|
<div class="ORcode">
|
|
|
<div style="padding:5px;position: relative;">
|
|
|
- <div v-show="['永安财险', '人保财险', '永诚财险', '中煤财险','华泰财险', '众安财险', '紫金财险','中国人寿'].includes(inscompany)" id="qrcode"
|
|
|
+ <!-- <div v-show="['永安财险', '人保财险', '永诚财险', '中煤财险','华泰财险', '众安财险', '紫金财险','中国人寿'].includes(inscompany)" id="qrcode"
|
|
|
ref="qrcode">
|
|
|
</div>
|
|
|
- <img v-show="['恒邦财险','安盛天平','国任财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
|
|
|
+ <img v-show="['恒邦财险','安盛天平','国任财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" /> -->
|
|
|
+ <div id="qrcode" ref="qrcode"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -5980,6 +5983,19 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ },
|
|
|
+ // 撤销二维码
|
|
|
+ revokeCode(id){
|
|
|
+ this.$api.letter.getRevokeQrCode(id).then(res => {
|
|
|
+ if(res.code==200){
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ this.QuotationHistory()
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
//品牌型号查询
|
|
|
toChooseVehicleType(cartype) {
|
|
|
@@ -6669,72 +6685,93 @@ export default {
|
|
|
let params = {
|
|
|
companyId: id
|
|
|
};
|
|
|
- this.$api.letter.getByCompanyId(params).then(res => {
|
|
|
- if (res.code == "200") {
|
|
|
- const { inscompany, sumpremium, carinfo, insuredname, jqpremium, sypremium, taxamount, jqstartdate, systartdate, applyinfo,jypremium } = res.data;
|
|
|
- this.inscompany = inscompany; // 保险公司
|
|
|
- this.sumpremium = sumpremium; // 总价
|
|
|
- this.licenseNo = carinfo.licenseNo; // 车牌号
|
|
|
- this.applyName = insuredname; // 车主
|
|
|
- this.jqpremium = jqpremium; // 交强
|
|
|
- this.sypremium = sypremium; // 商业
|
|
|
- this.jypremium = jypremium; // 商业
|
|
|
- this.taxamount = taxamount; // 车船税
|
|
|
- this.jqstartdate = jqstartdate; // 交强起保日期
|
|
|
- this.systartdate = systartdate; // 商业起保日期
|
|
|
- this.mobile = applyinfo.mobile; // 投保人手机号
|
|
|
- switch (this.inscompany) {
|
|
|
- case "永安财险":
|
|
|
- let url =
|
|
|
- this.global.h5BaseUrl +
|
|
|
- "/#/pages/carInsure1/yonganCode?companyId=" +
|
|
|
- this.companyId +
|
|
|
- "&mobile=" +
|
|
|
- this.mobile;
|
|
|
- this.$nextTick(() => {
|
|
|
- this.creatQrCode(url);
|
|
|
- });
|
|
|
- break;
|
|
|
- case "人保财险":
|
|
|
- case "中煤财险":
|
|
|
- case "华泰财险":
|
|
|
- case "永诚财险":
|
|
|
- case "众安财险":
|
|
|
- case "紫金财险":
|
|
|
- this.$nextTick(() => {
|
|
|
- this.creatQrCode(res.data.paymentLink);
|
|
|
- });
|
|
|
- break;
|
|
|
- case "国任财险":
|
|
|
- this.paycodeimg = res.data.paymentLink;
|
|
|
- break;
|
|
|
- case "中国人寿":
|
|
|
- this.$nextTick(() => {
|
|
|
- this.creatQrCode(res.data.paymentLink);
|
|
|
+ this.$api.letter.getQrCode(id).then(res => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ this.inscompany = res.data.inscompany;//保险公司
|
|
|
+ this.sumpremium = res.data.sumpremium;//总价
|
|
|
+ this.licenseNo = res.data.cPlateNo;//车牌号
|
|
|
+ this.applyName = res.data.cInsuredNme;//车主
|
|
|
+ this.jqpremium = res.data.jqpremium;//交强
|
|
|
+ this.sypremium = res.data.sypremium;//商业
|
|
|
+ this.taxamount = res.data.taxamount;//车船税
|
|
|
+ this.jypremium = res.data.jypremium;//驾意险
|
|
|
+ this.jqstartdate = res.data.jqstartdate;//交强起保日期
|
|
|
+ this.systartdate = res.data.systartdate;//商业起保日期
|
|
|
+ // this.mobile = res.data.applyinfo.mobile;//投保人手机号
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.creatQrCode(res.data.qrCodeUrl);
|
|
|
});
|
|
|
- break;
|
|
|
- case "恒邦财险":
|
|
|
- this.paycodeimg = res.data.paymentLink;
|
|
|
- break;
|
|
|
- case "安盛天平":
|
|
|
- let anresult = res.data.paymentLink.replace(/[\r\n]/g, "");
|
|
|
- let animgBase64 = `data:image/png;base64,${anresult}`;
|
|
|
- base64ToPath(animgBase64)
|
|
|
- .then(path => {
|
|
|
- this.paycodeimg = path;
|
|
|
- })
|
|
|
- break;
|
|
|
- default:
|
|
|
- this.$message({
|
|
|
- message: "识别不到保险公司,请检查",
|
|
|
- type: "warning"
|
|
|
- });
|
|
|
- }
|
|
|
this.codedialogVisible = true;
|
|
|
- } else {
|
|
|
- this.$message({ message: res.msg, type: "warning" });
|
|
|
+ } else {
|
|
|
+ this.$message({ message: res.msg, type: "warning" })
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
+ // this.$api.letter.getByCompanyId(params).then(res => {
|
|
|
+ // if (res.code == "200") {
|
|
|
+ // const { inscompany, sumpremium, carinfo, insuredname, jqpremium, sypremium, taxamount, jqstartdate, systartdate, applyinfo,jypremium } = res.data;
|
|
|
+ // this.inscompany = inscompany; // 保险公司
|
|
|
+ // this.sumpremium = sumpremium; // 总价
|
|
|
+ // this.licenseNo = carinfo.licenseNo; // 车牌号
|
|
|
+ // this.applyName = insuredname; // 车主
|
|
|
+ // this.jqpremium = jqpremium; // 交强
|
|
|
+ // this.sypremium = sypremium; // 商业
|
|
|
+ // this.jypremium = jypremium; // 商业
|
|
|
+ // this.taxamount = taxamount; // 车船税
|
|
|
+ // this.jqstartdate = jqstartdate; // 交强起保日期
|
|
|
+ // this.systartdate = systartdate; // 商业起保日期
|
|
|
+ // this.mobile = applyinfo.mobile; // 投保人手机号
|
|
|
+ // switch (this.inscompany) {
|
|
|
+ // case "永安财险":
|
|
|
+ // let url =
|
|
|
+ // this.global.h5BaseUrl +
|
|
|
+ // "/#/pages/carInsure1/yonganCode?companyId=" +
|
|
|
+ // this.companyId +
|
|
|
+ // "&mobile=" +
|
|
|
+ // this.mobile;
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // this.creatQrCode(url);
|
|
|
+ // });
|
|
|
+ // break;
|
|
|
+ // case "人保财险":
|
|
|
+ // case "中煤财险":
|
|
|
+ // case "华泰财险":
|
|
|
+ // case "永诚财险":
|
|
|
+ // case "众安财险":
|
|
|
+ // case "紫金财险":
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // this.creatQrCode(res.data.paymentLink);
|
|
|
+ // });
|
|
|
+ // break;
|
|
|
+ // case "国任财险":
|
|
|
+ // this.paycodeimg = res.data.paymentLink;
|
|
|
+ // break;
|
|
|
+ // case "中国人寿":
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // this.creatQrCode(res.data.paymentLink);
|
|
|
+ // });
|
|
|
+ // break;
|
|
|
+ // case "恒邦财险":
|
|
|
+ // this.paycodeimg = res.data.paymentLink;
|
|
|
+ // break;
|
|
|
+ // case "安盛天平":
|
|
|
+ // let anresult = res.data.paymentLink.replace(/[\r\n]/g, "");
|
|
|
+ // let animgBase64 = `data:image/png;base64,${anresult}`;
|
|
|
+ // base64ToPath(animgBase64)
|
|
|
+ // .then(path => {
|
|
|
+ // this.paycodeimg = path;
|
|
|
+ // })
|
|
|
+ // break;
|
|
|
+ // default:
|
|
|
+ // this.$message({
|
|
|
+ // message: "识别不到保险公司,请检查",
|
|
|
+ // type: "warning"
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // this.codedialogVisible = true;
|
|
|
+ // } else {
|
|
|
+ // this.$message({ message: res.msg, type: "warning" });
|
|
|
+ // }
|
|
|
+ // });
|
|
|
},
|
|
|
//同步
|
|
|
synchronization() {
|