|
|
@@ -2788,8 +2788,9 @@
|
|
|
</el-dialog>
|
|
|
<!-- 生成签章 -->
|
|
|
<el-dialog :visible.sync="signaturedialogVisible" title="生成签章" width="14%">
|
|
|
- <div style="padding:0 20px">
|
|
|
- <div id="signaturecode" ref="signaturecode"></div>
|
|
|
+ <div >
|
|
|
+ <img :src="resultMessageImg" alt style="width: 100%" />
|
|
|
+ <!-- <div id="signaturecode" ref="signaturecode"></div> -->
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 保单上传 -->
|
|
|
@@ -4259,6 +4260,7 @@ export default {
|
|
|
isLetter3Arr: [],
|
|
|
isLetter3agreementId: "",
|
|
|
editorInfo: {},
|
|
|
+ resultMessageImg:''
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -6305,23 +6307,39 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
signature(companyId){
|
|
|
- this.signaturedialogVisible = true;
|
|
|
-
|
|
|
this.$api.letter.pingAnsignEleApply({companyId}).then((res) => {
|
|
|
if (res.code == 200 && res.data) {
|
|
|
+ this.resultMessageImg=process.env.BASE_URL+res.data.resultMessage
|
|
|
+ this.signaturedialogVisible = true;
|
|
|
// 查找并删除旧的二维码DOM元素
|
|
|
- let element = document.getElementById("signaturecode");
|
|
|
- while (element.firstChild) {
|
|
|
- element.removeChild(element.firstChild);
|
|
|
- }
|
|
|
- this.signaturecode = new QRCode("signaturecode", {
|
|
|
- text: res.data.resultMessage,
|
|
|
- width: 180,
|
|
|
- height: 180,
|
|
|
- colorDark: "#000000",
|
|
|
- colorLight: "#ffffff",
|
|
|
- correctLevel: QRCode.CorrectLevel.H,
|
|
|
- });
|
|
|
+ // let element = document.getElementById("signaturecode");
|
|
|
+ // while (element.firstChild) {
|
|
|
+ // element.removeChild(element.firstChild);
|
|
|
+ // }
|
|
|
+ // this.signaturecode = new QRCode("signaturecode", {
|
|
|
+ // text: resultMessage,
|
|
|
+ // width: 180,
|
|
|
+ // height: 180,
|
|
|
+ // colorDark: "#000000",
|
|
|
+ // colorLight: "#ffffff",
|
|
|
+ // correctLevel: QRCode.CorrectLevel.H,
|
|
|
+ // });
|
|
|
+ // this.signaturedialogVisible = true;
|
|
|
+ // this.$api.letter.pingAnsignEleApply({companyId}).then((res) => {
|
|
|
+ // if (res.code == 200 && res.data) {
|
|
|
+ // // 查找并删除旧的二维码DOM元素
|
|
|
+ // let element = document.getElementById("signaturecode");
|
|
|
+ // while (element.firstChild) {
|
|
|
+ // element.removeChild(element.firstChild);
|
|
|
+ // }
|
|
|
+ // this.signaturecode = new QRCode("signaturecode", {
|
|
|
+ // text: res.data.resultMessage,
|
|
|
+ // width: 180,
|
|
|
+ // height: 180,
|
|
|
+ // colorDark: "#000000",
|
|
|
+ // colorLight: "#ffffff",
|
|
|
+ // correctLevel: QRCode.CorrectLevel.H,
|
|
|
+ // });
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg || "暂无数据!",
|