From c37bbdaf56233a6fc54a968de0513d5f6449cd1a Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Thu, 3 Mar 2022 10:05:47 +0800 Subject: [PATCH 1/4] edit --- .../enterprise-audit.component.html | 5 +++++ .../enterprise-audit/enterprise-audit.component.ts | 13 ++++++++++++- .../freight/list/detail/detail.component.html | 7 ++++++- .../freight/list/detail/detail.component.ts | 14 +++++++++++++- 4 files changed, 36 insertions(+), 3 deletions(-) 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 => { From 581303f7941765ed4d837a9d08c2f60fc1934961 Mon Sep 17 00:00:00 2001 From: Lingzi Date: Thu, 3 Mar 2022 10:39:36 +0800 Subject: [PATCH 2/4] fix bug --- .../components/index/index.component.html | 1 + .../components/index/index.component.ts | 13 +++- .../menusort/menusort.component.html | 18 +++++ .../menusort/menusort.component.spec.ts | 24 ++++++ .../components/menusort/menusort.component.ts | 77 +++++++++++++++++++ .../menu-manager/menu-manager.module.ts | 3 +- .../services/menu-manager.service.ts | 2 + 7 files changed, 135 insertions(+), 3 deletions(-) create mode 100644 src/app/routes/menu-manager/components/menusort/menusort.component.html create mode 100644 src/app/routes/menu-manager/components/menusort/menusort.component.spec.ts create mode 100644 src/app/routes/menu-manager/components/menusort/menusort.component.ts diff --git a/src/app/routes/menu-manager/components/index/index.component.html b/src/app/routes/menu-manager/components/index/index.component.html index cff3db51..88cb31ad 100644 --- a/src/app/routes/menu-manager/components/index/index.component.html +++ b/src/app/routes/menu-manager/components/index/index.component.html @@ -30,6 +30,7 @@
+