edit
This commit is contained in:
		| @ -72,6 +72,11 @@ | |||||||
|           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of roles"></nz-option> |           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of roles"></nz-option> | ||||||
|         </nz-select> |         </nz-select> | ||||||
|       </se> |       </se> | ||||||
|  |       <se [col]="1" label="客服人员" required> | ||||||
|  |         <nz-select nzPlaceHolder="请选择" [(ngModel)]="customerServiceId"> | ||||||
|  |           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of customerServices"></nz-option> | ||||||
|  |         </nz-select> | ||||||
|  |       </se> | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
| </ng-template> | </ng-template> | ||||||
|  | |||||||
| @ -39,10 +39,12 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|   redectModal!: any; |   redectModal!: any; | ||||||
|   ltdId: any = []; |   ltdId: any = []; | ||||||
|   roles: any = []; |   roles: any = []; | ||||||
|  |   customerServices: any = []; | ||||||
|   detailData: any = null; |   detailData: any = null; | ||||||
|   approvalOpinion = ''; |   approvalOpinion = ''; | ||||||
|   networkTransporter = null; |   networkTransporter = null; | ||||||
|   roleId = null; |   roleId = null; | ||||||
|  |   customerServiceId = null; | ||||||
|   constructor(public service: UsermanageService, private router: Router, private modal: NzModalService) {} |   constructor(public service: UsermanageService, private router: Router, private modal: NzModalService) {} | ||||||
|  |  | ||||||
|   beforeReq = (requestOptions: STRequestOptions) => { |   beforeReq = (requestOptions: STRequestOptions) => { | ||||||
| @ -84,6 +86,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|   ngOnInit() { |   ngOnInit() { | ||||||
|     this.loadltdId(); |     this.loadltdId(); | ||||||
|     this.loadRoles(); |     this.loadRoles(); | ||||||
|  |     this.loadCustomerServices(); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   loadltdId() { |   loadltdId() { | ||||||
| @ -101,6 +104,14 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   loadCustomerServices() { | ||||||
|  |     this.service.getStaffList({}, false).subscribe(res => { | ||||||
|  |       if (res) { | ||||||
|  |         this.customerServices = res; | ||||||
|  |       } | ||||||
|  |     }); | ||||||
|  |   } | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
|    * 查看详情 |    * 查看详情 | ||||||
|    */ |    */ | ||||||
| @ -160,7 +171,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|       nzTitle: '审核通过', |       nzTitle: '审核通过', | ||||||
|       nzContent: this.approvedModal, |       nzContent: this.approvedModal, | ||||||
|       nzOnOk: () => { |       nzOnOk: () => { | ||||||
|         if (!this.networkTransporter || !this.roleId) { |         if (!this.networkTransporter || !this.roleId || !this.customerServiceId) { | ||||||
|           return false; |           return false; | ||||||
|         } |         } | ||||||
|         this.auditEnterprise(20); |         this.auditEnterprise(20); | ||||||
|  | |||||||
| @ -265,7 +265,7 @@ | |||||||
|   <sv-container col="3" class="mt16"> |   <sv-container col="3" class="mt16"> | ||||||
|     <sv-title>法人信息 |     <sv-title>法人信息 | ||||||
|       <label *ngIf="detailData?.legalPersonIdentityVO?.isExpired" style="color: #fa8c16;"> |       <label *ngIf="detailData?.legalPersonIdentityVO?.isExpired" style="color: #fa8c16;"> | ||||||
|         <i nz-icon nzType="info-circle" nzTheme="fill" class="ml-md mr-xs"></i>企业营业期限已过期 |         <i nz-icon nzType="info-circle" nzTheme="fill" class="ml-md mr-xs"></i>法人身份证期限已过期 | ||||||
|       </label> |       </label> | ||||||
|     </sv-title> |     </sv-title> | ||||||
|     <sv label="法定代表人"> |     <sv label="法定代表人"> | ||||||
| @ -384,6 +384,11 @@ | |||||||
|           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of roles"></nz-option> |           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of roles"></nz-option> | ||||||
|         </nz-select> |         </nz-select> | ||||||
|       </se> |       </se> | ||||||
|  |       <se [col]="1" label="客服人员" required> | ||||||
|  |         <nz-select nzPlaceHolder="请选择" [(ngModel)]="customerServiceId"> | ||||||
|  |           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of customerServices"></nz-option> | ||||||
|  |         </nz-select> | ||||||
|  |       </se> | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
| </ng-template> | </ng-template> | ||||||
|  | |||||||
| @ -29,10 +29,12 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | |||||||
|   enterpriseAddressCode: any = []; |   enterpriseAddressCode: any = []; | ||||||
|   ltdId: any = []; |   ltdId: any = []; | ||||||
|   roles: any = []; |   roles: any = []; | ||||||
|  |   customerServices: any = []; | ||||||
|  |  | ||||||
|   approvalOpinion = ''; |   approvalOpinion = ''; | ||||||
|   networkTransporter = null; |   networkTransporter = null; | ||||||
|   roleId = null; |   roleId = null; | ||||||
|  |   customerServiceId = null; | ||||||
|  |  | ||||||
|   esignCheckStatus: any = { |   esignCheckStatus: any = { | ||||||
|     0: '不通过', |     0: '不通过', | ||||||
| @ -60,6 +62,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | |||||||
|       this.initData(); |       this.initData(); | ||||||
|       this.loadltdId(); |       this.loadltdId(); | ||||||
|       this.loadRoles(); |       this.loadRoles(); | ||||||
|  |       this.loadCustomerServices(); | ||||||
|     }); |     }); | ||||||
|     this.subscribeScoll = fromEvent(window, 'scroll').subscribe(event => { |     this.subscribeScoll = fromEvent(window, 'scroll').subscribe(event => { | ||||||
|       this.scrollTop = document.documentElement.scrollTop; |       this.scrollTop = document.documentElement.scrollTop; | ||||||
| @ -79,6 +82,13 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | |||||||
|       } |       } | ||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
|  |   loadCustomerServices() { | ||||||
|  |     this.service.getStaffList({}, false).subscribe(res => { | ||||||
|  |       if (res) { | ||||||
|  |         this.customerServices = res; | ||||||
|  |       } | ||||||
|  |     }); | ||||||
|  |   } | ||||||
|  |  | ||||||
|   initData() { |   initData() { | ||||||
|     this.service |     this.service | ||||||
| @ -163,11 +173,12 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | |||||||
|   auditPass(isSave: boolean) { |   auditPass(isSave: boolean) { | ||||||
|     this.networkTransporter = null; |     this.networkTransporter = null; | ||||||
|     this.roleId = null; |     this.roleId = null; | ||||||
|  |     this.customerServiceId = null; | ||||||
|     this.nzModalService.create({ |     this.nzModalService.create({ | ||||||
|       nzTitle: '审核通过', |       nzTitle: '审核通过', | ||||||
|       nzContent: this.approvedModal, |       nzContent: this.approvedModal, | ||||||
|       nzOnOk: () => { |       nzOnOk: () => { | ||||||
|         if (!this.networkTransporter || !this.roleId) { |         if (!this.networkTransporter || !this.roleId || !this.customerServiceId) { | ||||||
|           return false; |           return false; | ||||||
|         } |         } | ||||||
|         if (isSave) { |         if (isSave) { | ||||||
| @ -206,6 +217,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | |||||||
|         id: this.detailData.id, |         id: this.detailData.id, | ||||||
|         approvalOpinion: this.approvalOpinion, |         approvalOpinion: this.approvalOpinion, | ||||||
|         networkTransporter: this.networkTransporter, |         networkTransporter: this.networkTransporter, | ||||||
|  |         customerServiceId: this.customerServiceId, | ||||||
|         roleId: this.roleId || null |         roleId: this.roleId || null | ||||||
|       }) |       }) | ||||||
|       .subscribe(res => { |       .subscribe(res => { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user