This commit is contained in:
Taric Xin
2022-03-03 10:05:47 +08:00
parent 60dff3a432
commit c37bbdaf56
4 changed files with 36 additions and 3 deletions

View File

@ -72,6 +72,11 @@
<nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of roles"></nz-option>
</nz-select>
</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>
</ng-template>

View File

@ -39,10 +39,12 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
redectModal!: any;
ltdId: any = [];
roles: any = [];
customerServices: any = [];
detailData: any = null;
approvalOpinion = '';
networkTransporter = null;
roleId = null;
customerServiceId = null;
constructor(public service: UsermanageService, private router: Router, private modal: NzModalService) {}
beforeReq = (requestOptions: STRequestOptions) => {
@ -84,6 +86,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
ngOnInit() {
this.loadltdId();
this.loadRoles();
this.loadCustomerServices();
}
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: '审核通过',
nzContent: this.approvedModal,
nzOnOk: () => {
if (!this.networkTransporter || !this.roleId) {
if (!this.networkTransporter || !this.roleId || !this.customerServiceId) {
return false;
}
this.auditEnterprise(20);