edit
This commit is contained in:
@ -23,7 +23,6 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
detailData: any;
|
||||
userDetail: any;
|
||||
contencarModel: any;
|
||||
changeSub = new Subject<string>();
|
||||
facetext: any;
|
||||
faceStatus: any = 0;
|
||||
userIdentityDetail: any = {};
|
||||
@ -76,7 +75,6 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.initData();
|
||||
this.initDetailByCode();
|
||||
this.changeEndKmAction();
|
||||
}
|
||||
initData() {
|
||||
// 获取司机头部信息
|
||||
@ -210,25 +208,22 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
|
||||
/** 审核通过驾驶员信息 */
|
||||
approveDriver() {
|
||||
|
||||
this.nzModalService.confirm({
|
||||
nzTitle: '审核通过',
|
||||
nzContent: `<p>驾驶证号:${this.driverDetail?.licenseNo}</p><p>从业资格证号:${this.licenseDetail?.licenseNo}</p><p>是否确认通过审核`,
|
||||
nzOnOk: () => {
|
||||
this.changeEndKmAction();
|
||||
this.adjuctDriverLicense(
|
||||
{
|
||||
approvalStatus: 20,
|
||||
appUserId: this.userDetail?.appUserId
|
||||
},
|
||||
'审核成功'
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
changeEndKmAction() {
|
||||
this.changeSub.pipe(debounceTime(500)).subscribe((res: string) => {
|
||||
this.adjuctDriverLicense(
|
||||
{
|
||||
approvalStatus: 20,
|
||||
appUserId: this.userDetail?.appUserId
|
||||
},
|
||||
'审核成功'
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
/** 驳回驾驶员信息 */
|
||||
rejectedDriver() {
|
||||
this.approvalOpinion = '';
|
||||
|
||||
Reference in New Issue
Block a user