diff --git a/src/app/routes/usercenter/components/freight/enterprise-audit/enterprise-audit.component.html b/src/app/routes/usercenter/components/freight/enterprise-audit/enterprise-audit.component.html
index 4ecdb743..dbfd0aaf 100644
--- a/src/app/routes/usercenter/components/freight/enterprise-audit/enterprise-audit.component.html
+++ b/src/app/routes/usercenter/components/freight/enterprise-audit/enterprise-audit.component.html
@@ -72,6 +72,11 @@
+
+
+
+
+
diff --git a/src/app/routes/usercenter/components/freight/enterprise-audit/enterprise-audit.component.ts b/src/app/routes/usercenter/components/freight/enterprise-audit/enterprise-audit.component.ts
index 60c47bd0..60c688e3 100644
--- a/src/app/routes/usercenter/components/freight/enterprise-audit/enterprise-audit.component.ts
+++ b/src/app/routes/usercenter/components/freight/enterprise-audit/enterprise-audit.component.ts
@@ -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);
diff --git a/src/app/routes/usercenter/components/freight/list/detail/detail.component.html b/src/app/routes/usercenter/components/freight/list/detail/detail.component.html
index eb3fa28f..2792f59d 100644
--- a/src/app/routes/usercenter/components/freight/list/detail/detail.component.html
+++ b/src/app/routes/usercenter/components/freight/list/detail/detail.component.html
@@ -265,7 +265,7 @@
法人信息
@@ -384,6 +384,11 @@
+
+
+
+
+
diff --git a/src/app/routes/usercenter/components/freight/list/detail/detail.component.ts b/src/app/routes/usercenter/components/freight/list/detail/detail.component.ts
index de63985a..685c46ab 100644
--- a/src/app/routes/usercenter/components/freight/list/detail/detail.component.ts
+++ b/src/app/routes/usercenter/components/freight/list/detail/detail.component.ts
@@ -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 => {