Commit e9cb8ae7 by Sweet Zhang

经纪人页面客户告知书问题解决

parent cf3e9024
import { Component, OnInit,ViewChild,ElementRef, OnDestroy } from '@angular/core'; import { Component, OnInit,ViewChild,ElementRef, OnDestroy, AfterViewInit } from '@angular/core';
import { MyService } from '../../my.service'; import { MyService } from '../../my.service';
import { ActivatedRoute,Router } from "@angular/router"; import { ActivatedRoute,Router } from "@angular/router";
import { LifeCommonService } from "../../../common/life-common.service"; import { LifeCommonService } from "../../../common/life-common.service";
...@@ -9,14 +9,14 @@ declare var rrweb:any; ...@@ -9,14 +9,14 @@ declare var rrweb:any;
templateUrl: './signature.component.html', templateUrl: './signature.component.html',
styleUrls: ['./signature.component.scss'] styleUrls: ['./signature.component.scss']
}) })
export class SignatureComponent implements OnInit,OnDestroy { export class SignatureComponent implements OnInit,OnDestroy,AfterViewInit {
hiringBasicInfoId:any; hiringBasicInfoId:any;
signatureImage:string; signatureImage:string;
signaturePadOptions:any; signaturePadOptions:any;
imgStr:any; imgStr:any;
isNeedAlert: boolean; isNeedAlert: boolean;
dialogInfo: any; dialogInfo: any;
isSignatureShow:boolean; isSignatureShow:boolean=false;
viewApprovalInfo:any; viewApprovalInfo:any;
approveStatus:any; approveStatus:any;
// 获取页面适用类型 // 获取页面适用类型
...@@ -36,6 +36,14 @@ export class SignatureComponent implements OnInit,OnDestroy { ...@@ -36,6 +36,14 @@ export class SignatureComponent implements OnInit,OnDestroy {
} }
ngAfterViewInit(): void {
setTimeout(()=>{this.creatRecord()},500);
this.timerId = setInterval(()=>{
if(this.events.length > 100){
this.saveRecord()
}
},10 * 1000);
}
ngOnDestroy(): void { ngOnDestroy(): void {
clearInterval(this.timerId) clearInterval(this.timerId)
} }
...@@ -75,12 +83,6 @@ export class SignatureComponent implements OnInit,OnDestroy { ...@@ -75,12 +83,6 @@ export class SignatureComponent implements OnInit,OnDestroy {
this.queryWholeInfo(this.hiringBasicInfoId) this.queryWholeInfo(this.hiringBasicInfoId)
this.viewApprovalInfo = sessionStorage.getItem('viewApprovalInfo'); this.viewApprovalInfo = sessionStorage.getItem('viewApprovalInfo');
} }
this.creatRecord();
this.timerId = setInterval(()=>{
if(this.events.length > 50){
this.saveRecord()
}
},10 * 1000);
} }
next(){ next(){
...@@ -114,7 +116,6 @@ export class SignatureComponent implements OnInit,OnDestroy { ...@@ -114,7 +116,6 @@ export class SignatureComponent implements OnInit,OnDestroy {
this.myService.signInformedSheet({'id':sessionStorage.getItem('eNoticeId'),imgStr:this.imgStr}).subscribe(res=>{ this.myService.signInformedSheet({'id':sessionStorage.getItem('eNoticeId'),imgStr:this.imgStr}).subscribe(res=>{
if(res['success']){ if(res['success']){
// 确认提交 // 确认提交
this.saveRecord();
this.router.navigate(['/eNotice_submit']); this.router.navigate(['/eNotice_submit']);
}else{ }else{
this.openPopInfo(res['message']); this.openPopInfo(res['message']);
...@@ -134,7 +135,6 @@ export class SignatureComponent implements OnInit,OnDestroy { ...@@ -134,7 +135,6 @@ export class SignatureComponent implements OnInit,OnDestroy {
this.myService.signCommitment(param).subscribe((res)=>{ this.myService.signCommitment(param).subscribe((res)=>{
if(res['success']){ if(res['success']){
// 确认提交 // 确认提交
this.saveRecord();
this.router.navigate(['/eNotice_submit']); this.router.navigate(['/eNotice_submit']);
}else{ }else{
this.openPopInfo(res['message']); this.openPopInfo(res['message']);
......
<div class="csNoticeContent" *ngIf="pageType==1"> <div class="csNoticeContent" *ngIf="pageType!=2">
<h3 style="padding-top:15px;border-top:1px solid #dcdcdc">上海银盾保险经纪有限公司客户告知书</h3> <h3 style="padding-top:15px;border-top:1px solid #dcdcdc">上海银盾保险经纪有限公司客户告知书</h3>
<p style="margin-bottom: 10px;">尊敬的客户:</p> <p style="margin-bottom: 10px;">尊敬的客户:</p>
<p style="text-indent: 32px;">感谢您委托上海银盾保险经纪有限公司代为办理保险业务,本公司是基于投保人的利益,为投保人与保险公司订立保险合同提供中介服务的保险专业中介机构。为了保护您的合法权益,按照《保险经纪人监管规定》的要求,本公司履行客户告知义务,将有关事项告知如下,请仔细阅读:</p> <p style="text-indent: 32px;">感谢您委托上海银盾保险经纪有限公司代为办理保险业务,本公司是基于投保人的利益,为投保人与保险公司订立保险合同提供中介服务的保险专业中介机构。为了保护您的合法权益,按照《保险经纪人监管规定》的要求,本公司履行客户告知义务,将有关事项告知如下,请仔细阅读:</p>
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<div class="signInput"><span class="noBorder">投保人:</span></div> <div class="signInput"><span class="noBorder">投保人:</span></div>
<div class="signInput"><span class="noBorder">投保人亲签:</span></div> <div class="signInput"><span class="noBorder">投保人亲签:</span></div>
<div class="signInput"><span class="noBorder">日 期:</span></div> <div class="signInput"><span class="noBorder">日 期:</span></div>
<div class="send"> <div class="send" *ngIf="agreeFlag">
<div class="signBtn" (click)="agree(1)">同意,并签署</div> <div class="signBtn" (click)="agree(1)">同意,并签署</div>
</div> </div>
</div> </div>
......
import { Component, OnDestroy, OnInit } from '@angular/core'; import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute } from "@angular/router"; import { ActivatedRoute } from "@angular/router";
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { MyService } from '../my.service'; import { MyService } from '../my.service';
...@@ -10,6 +10,7 @@ declare var rrweb:any; ...@@ -10,6 +10,7 @@ declare var rrweb:any;
styleUrls: ['./e-notice.component.scss'] styleUrls: ['./e-notice.component.scss']
}) })
export class ENoticeComponent implements OnInit,OnDestroy { export class ENoticeComponent implements OnInit,OnDestroy {
@Input() agreeFlag:boolean = true;
pageType:any; pageType:any;
timerId:any; timerId:any;
events:Array<any>; events:Array<any>;
......
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
</div> </div>
<!-- 客户告知书 --> <!-- 客户告知书 -->
<div class="content" *ngIf="selectedId===5"> <div class="content" *ngIf="selectedId===5">
<ydlife-e-notice></ydlife-e-notice> <ydlife-e-notice [agreeFlag]="false"></ydlife-e-notice>
<div class="send"> <div class="send">
<div (click)="eNoticeState=true;">发送给客户签署</div> <div (click)="eNoticeState=true;">发送给客户签署</div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment