This commit is contained in:
Taric Xin
2022-03-30 15:54:00 +08:00
parent 180abc2fe2
commit 9b2af9bafd

View File

@ -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 = '';