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