edit
This commit is contained in:
@ -10,22 +10,22 @@
|
||||
<nz-skeleton [nzLoading]="service.http.loading">
|
||||
<div class="user-info" nz-row>
|
||||
<div nz-col nzSpan="24" class="d-flex">
|
||||
<img [src]="detailData?.enterpriseLogo" />
|
||||
<img [src]="userDetail?.avatar" />
|
||||
<div style="flex: 1;">
|
||||
<div nz-row>
|
||||
<div nz-col [nzLg]="12" [nzSm]="24" [nzXs]="24">
|
||||
<p style="margin-bottom: 0;">{{ detailData?.enterpriseName }}
|
||||
<nz-badge nzStatus="success" nzText="正常" *ngIf="detailData?.stateLocked" class="ml-sm"></nz-badge>
|
||||
<nz-badge nzStatus="error" nzText="冻结" *ngIf="!detailData?.stateLocked" class="ml-sm"></nz-badge>
|
||||
<p style="margin-bottom: 0;">{{ userDetail?.name }}
|
||||
<nz-badge nzStatus="success" nzText="正常" *ngIf="!userDetail?.stateLocked" class="ml-sm"></nz-badge>
|
||||
<nz-badge nzStatus="error" nzText="冻结" *ngIf="userDetail?.stateLocked" class="ml-sm"></nz-badge>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div nz-row>
|
||||
<div nz-col [nzLg]="8" [nzSm]="24" [nzXs]="24">
|
||||
<p>手机号:{{ detailData?.phone }}</p>
|
||||
<p>手机号:{{ userDetail?.phone }}</p>
|
||||
</div>
|
||||
<div nz-col [nzLg]="8" [nzSm]="24" [nzXs]="24">
|
||||
申请时间:{{detailData?.createTime}}
|
||||
申请时间:{{userDetail?.createTime}}
|
||||
</div>
|
||||
<div nz-col [nzXl]="8" [nzLg]="8" [nzSm]="24" [nzXs]="24" class="d-flex"
|
||||
style="justify-content: flex-end;">
|
||||
@ -47,6 +47,12 @@
|
||||
<nz-card [nzLoading]="service.http.loading">
|
||||
<sv-container col="2">
|
||||
<sv-title>个人信息
|
||||
<label *ngIf="userIdentityDetail?.certificationStatus===1" style="color: #52c41a;"><i nz-icon
|
||||
nzType="check-circle" nzTheme="fill" class="mr-xs"></i>审核通过
|
||||
</label>
|
||||
<label *ngIf="userIdentityDetail?.certificationStatus===2" style="color: #ff4d4f;"><i nz-icon
|
||||
nzType="close-circle" nzTheme="fill" class="mr-xs"></i>驳回
|
||||
</label>
|
||||
<div style="float: right;">
|
||||
<button nz-button nzType="default" nzDanger (click)="auditPass()">审核通过</button>
|
||||
<button nz-button nzType="default" nzDanger (click)="auditNo()">驳回审核</button>
|
||||
@ -54,14 +60,14 @@
|
||||
</div>
|
||||
</sv-title>
|
||||
<sv label="姓名">
|
||||
{{ detailData?.contactsName }}
|
||||
{{ userIdentityDetail?.name }}
|
||||
</sv>
|
||||
<sv label="身份证号码">
|
||||
{{ detailData?.contactsPhone }}
|
||||
{{ userIdentityDetail?.certificateNumber }}
|
||||
</sv>
|
||||
<sv label="身份证照">
|
||||
<app-imagelist
|
||||
[imgList]="[detailData?.legalPersonIdentityVO?.certificatePhotoFrontWatermark,detailData?.legalPersonIdentityVO?.certificatePhotoBackWatermark]">
|
||||
[imgList]="[userIdentityDetail?.certificatePhotoFrontWatermark,userIdentityDetail?.certificatePhotoBackWatermark]">
|
||||
</app-imagelist>
|
||||
</sv>
|
||||
</sv-container>
|
||||
@ -80,7 +86,7 @@
|
||||
<div nz-row nzGutter="8">
|
||||
<div nz-col nzSpan="24" se-container [labelWidth]="120">
|
||||
<se [col]="1" label="姓名">
|
||||
{{ detailData?.enterpriseName }}
|
||||
{{ userIdentityDetail?.enterpriseName }}
|
||||
</se>
|
||||
<se [col]="1" label="备注" required>
|
||||
<textarea nz-input rows="3" style="width: 325px;margin-left: 14px;"
|
||||
|
||||
@ -16,7 +16,8 @@ export class FreightComponentsUserDetailComponent implements OnInit {
|
||||
@ViewChild('redectModal', { static: false })
|
||||
redectModal!: any;
|
||||
|
||||
detailData: any = {};
|
||||
userDetail: any = {};
|
||||
userIdentityDetail: any = {};
|
||||
@ViewChild('st', { static: false }) st!: STComponent;
|
||||
columns: STColumn[] = [
|
||||
{ title: '企业名称', index: 'perPrice', width: 300, className: 'text-center' },
|
||||
@ -42,6 +43,27 @@ export class FreightComponentsUserDetailComponent implements OnInit {
|
||||
id: this.route.snapshot.params.id
|
||||
// tenantId: this.route.snapshot.queryParams.tenantId,
|
||||
};
|
||||
|
||||
// 获取司机头部信息
|
||||
this.service
|
||||
.request(this.service.$api_get_user_detail, {
|
||||
appUserId: this.route.snapshot.params.id
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.userDetail = res;
|
||||
}
|
||||
});
|
||||
// 获取用户个人信息
|
||||
this.service
|
||||
.request(this.service.$api_get_user_identity, {
|
||||
id: this.route.snapshot.params.id
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.userIdentityDetail = res;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
userAction(status: number) {
|
||||
|
||||
@ -78,7 +78,7 @@ export class FreightComponentsUserComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
userAction(status: number) {
|
||||
userAction(status: number, appUserId: Array<number>) {
|
||||
this.modal.warning({
|
||||
nzTitle: status === 1 ? '确定启用该用户吗?' : '确定冻结该用户吗?',
|
||||
nzContent:
|
||||
@ -86,8 +86,17 @@ export class FreightComponentsUserComponent implements OnInit {
|
||||
? '停用后,该用户将被限制使用,不限于访问受限、无法发布货源等,请谨慎操作'
|
||||
: '启用后,该用户将恢复正常使用功能,请再次确认',
|
||||
nzOnOk: () => {
|
||||
// this.service.request(this.service.$api_lock_user)
|
||||
this.st.reload();
|
||||
this.service
|
||||
.request(this.service.$api_lock_app_user, {
|
||||
appUserId,
|
||||
freezeOrResume: !!!status
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success(status === 1 ? '启用成功' : '冻结成功');
|
||||
this.st.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -213,18 +222,18 @@ export class FreightComponentsUserComponent implements OnInit {
|
||||
{
|
||||
text: '查看',
|
||||
click: (item: any) => {
|
||||
this.router.navigate(['./view', item.id], { relativeTo: this.ar });
|
||||
this.router.navigate(['./view', item.appUserId], { relativeTo: this.ar });
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '冻结',
|
||||
iif: item => item.stateLocked === 0,
|
||||
click: (item: any) => this.userAction(0)
|
||||
click: (item: any) => this.userAction(0, [Number(item.appUserId)])
|
||||
},
|
||||
{
|
||||
text: '启用',
|
||||
iif: item => item.stateLocked === 1,
|
||||
click: (item: any) => this.userAction(1)
|
||||
click: (item: any) => this.userAction(1, [Number(item.appUserId)])
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user