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);

View File

@ -265,7 +265,7 @@
<sv-container col="3" class="mt16">
<sv-title>法人信息
<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>
</sv-title>
<sv label="法定代表人">
@ -384,6 +384,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

@ -29,10 +29,12 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
enterpriseAddressCode: any = [];
ltdId: any = [];
roles: any = [];
customerServices: any = [];
approvalOpinion = '';
networkTransporter = null;
roleId = null;
customerServiceId = null;
esignCheckStatus: any = {
0: '不通过',
@ -60,6 +62,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
this.initData();
this.loadltdId();
this.loadRoles();
this.loadCustomerServices();
});
this.subscribeScoll = fromEvent(window, 'scroll').subscribe(event => {
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() {
this.service
@ -163,11 +173,12 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
auditPass(isSave: boolean) {
this.networkTransporter = null;
this.roleId = null;
this.customerServiceId = null;
this.nzModalService.create({
nzTitle: '审核通过',
nzContent: this.approvedModal,
nzOnOk: () => {
if (!this.networkTransporter || !this.roleId) {
if (!this.networkTransporter || !this.roleId || !this.customerServiceId) {
return false;
}
if (isSave) {
@ -206,6 +217,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
id: this.detailData.id,
approvalOpinion: this.approvalOpinion,
networkTransporter: this.networkTransporter,
customerServiceId: this.customerServiceId,
roleId: this.roleId || null
})
.subscribe(res => {