edit
This commit is contained in:
		| @ -60,8 +60,8 @@ | |||||||
|                 </ng-template> |                 </ng-template> | ||||||
|             </st> |             </st> | ||||||
|         </nz-tab> |         </nz-tab> | ||||||
|         <!-- <nz-tab nzTitle="核销信息"> |         <nz-tab nzTitle="核销信息"> | ||||||
|             <div nz-row nzGutter="8"> |             <!-- <div nz-row nzGutter="8"> | ||||||
|                 <div nz-col [nzXl]="16" [nzLg]="18" [nzSm]="24" [nzXs]="24"> |                 <div nz-col [nzXl]="16" [nzLg]="18" [nzSm]="24" [nzXs]="24"> | ||||||
|                     <sf #sf [schema]="infoSearchSchema" |                     <sf #sf [schema]="infoSearchSchema" | ||||||
|                         [ui]="{ '*': { spanLabelFixed: 90,grid: { lg: 12, md: 12, sm: 12, xs: 24 } }}" [compact]="true" |                         [ui]="{ '*': { spanLabelFixed: 90,grid: { lg: 12, md: 12, sm: 12, xs: 24 } }}" [compact]="true" | ||||||
| @ -72,13 +72,15 @@ | |||||||
|                         (click)="infoST?.load(1)">查询</button> |                         (click)="infoST?.load(1)">查询</button> | ||||||
|                     <button nz-button (click)="resetInfoSF()">重置</button> |                     <button nz-button (click)="resetInfoSF()">重置</button> | ||||||
|                 </div> |                 </div> | ||||||
|             </div> |             </div> --> | ||||||
|             <st #infoST [scroll]="{ x: '2000px' }" [data]="[]" [columns]="columns.info" [req]="{ process: beforeReq }" |             <st #infoST [scroll]="{ x: '2000px' }" [data]="service.$api_get_advance_collection_hrxiao" | ||||||
|                 [loading]="service.http.loading" [scroll]="{ x: '1200px', y: '370px' }" class="mt-md"> |                 [columns]="columns.info" [page]="{ show: false }" [req]="{  process: beforeReq }" | ||||||
|  |                 [res]="{ reName: { list: 'data' } }" [loading]="service.http.loading" | ||||||
|  |                 [scroll]="{ x: '1200px', y: '370px' }" class="mt-md"> | ||||||
|                 <ng-template st-row="no" let-item let-index="index" let-column="column"> |                 <ng-template st-row="no" let-item let-index="index" let-column="column"> | ||||||
|                     {{index+1}} |                     {{index+1}} | ||||||
|                 </ng-template> |                 </ng-template> | ||||||
|             </st> |             </st> | ||||||
|         </nz-tab> --> |         </nz-tab> | ||||||
|     </nz-tabset> |     </nz-tabset> | ||||||
| </nz-card> | </nz-card> | ||||||
| @ -133,17 +133,17 @@ export class AdvanceCollectionDetailComponent implements OnInit { | |||||||
|       ], |       ], | ||||||
|       info: [ |       info: [ | ||||||
|         { title: '序号', render: 'no', width: 70, className: 'text-left' }, |         { title: '序号', render: 'no', width: 70, className: 'text-left' }, | ||||||
|         { title: '核销单号', index: 'cnoName', className: 'text-left', width: 200 }, |         { title: '核销单号', index: 'ahxcode', className: 'text-left', width: 200 }, | ||||||
|         { title: '核销日期', index: 'billHId', className: 'text-center', width: 150 }, |         { title: '核销日期', index: 'ahxdate', className: 'text-center', width: 150 }, | ||||||
|         { |         { | ||||||
|           title: '核销金额', |           title: '核销金额', | ||||||
|           index: 'yskmoney', |           index: 'ahxmoney', | ||||||
|           type: 'widget', |           type: 'widget', | ||||||
|           className: 'text-right', |           className: 'text-right', | ||||||
|           widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.yskmoney }) }, |           widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.ahxmoney }) }, | ||||||
|           width: 200 |           width: 200 | ||||||
|         }, |         }, | ||||||
|         { title: '核销备注', index: 'vatapptype', className: 'text-left', width: 200 } |         { title: '核销备注', index: 'remarks', className: 'text-left', width: 200 } | ||||||
|       ] |       ] | ||||||
|     }; |     }; | ||||||
|   } |   } | ||||||
|  | |||||||
| @ -214,11 +214,11 @@ export class TransactionFlowComponent implements OnInit { | |||||||
|   private initST(): STColumn[] { |   private initST(): STColumn[] { | ||||||
|     return [ |     return [ | ||||||
|       { title: '交易时间', index: 'createTime', width: 180 }, |       { title: '交易时间', index: 'createTime', width: 180 }, | ||||||
|       { title: '流水号', index: 'transactionNumber', width: 150 }, |       { title: '流水号', index: 'transactionNumber', width: 170 }, | ||||||
|       { title: '交易类型', index: 'tradeTypeLabel', width: 120 }, |       { title: '交易类型', index: 'tradeTypeLabel', width: 120 }, | ||||||
|       { title: '关联单号', index: 'businessNumber', width: 150 }, |       { title: '关联单号', index: 'businessNumber', width: 150 }, | ||||||
|       { title: '账户类型', index: 'accountTypeLabel', width: 130 }, |       { title: '账户类型', index: 'accountTypeLabel', width: 130 }, | ||||||
|       { title: '账户名称', index: 'roleName', width: 100 }, |       { title: '账户名称', index: 'roleName', width: 180 }, | ||||||
|       { title: '所属项目', index: 'projectName', width: 140 }, |       { title: '所属项目', index: 'projectName', width: 140 }, | ||||||
|       { title: '收支类型', index: 'incomeTypeLabel', width: 100, className: 'text-center' }, |       { title: '收支类型', index: 'incomeTypeLabel', width: 100, className: 'text-center' }, | ||||||
|       { |       { | ||||||
| @ -236,9 +236,9 @@ export class TransactionFlowComponent implements OnInit { | |||||||
|         className: 'text-right', |         className: 'text-right', | ||||||
|         widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.accountBalance }) } |         widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.accountBalance }) } | ||||||
|       }, |       }, | ||||||
|       { title: '网络货运人', index: 'ltdName', width: 140 }, |       { title: '网络货运人', index: 'ltdName', width: 180 }, | ||||||
|       { title: '银行类型', index: 'bankTypeLabel', width: 100 }, |       { title: '银行类型', index: 'bankTypeLabel', width: 100 }, | ||||||
|       { title: '银行流水号', index: 'channelPaySn', width: 120 }, |       { title: '银行流水号', index: 'channelPaySn', width: 170 }, | ||||||
|       { |       { | ||||||
|         title: '操作', |         title: '操作', | ||||||
|         fixed: 'right', |         fixed: 'right', | ||||||
|  | |||||||
| @ -123,6 +123,8 @@ export class FreightAccountService extends ShipperBaseService { | |||||||
|   $api_get_advance_collection_header = '/api/fcc/ficoBrmH/getByYskblaId'; |   $api_get_advance_collection_header = '/api/fcc/ficoBrmH/getByYskblaId'; | ||||||
|   // 根据预收款ID获取收款单明细 |   // 根据预收款ID获取收款单明细 | ||||||
|   $api_get_advance_collection_detail = '/api/fcc/ficoBrmYsk/getBrmYskByYskblaId'; |   $api_get_advance_collection_detail = '/api/fcc/ficoBrmYsk/getBrmYskByYskblaId'; | ||||||
|  |   // 根据预收款ID获取核销信息明细 | ||||||
|  |   $api_get_advance_collection_hrxiao = '/api/fcc/ficoAhxH/getAhxHByYskblaId'; | ||||||
|  |  | ||||||
|   constructor(public injector: Injector, public eaCacheSrv: EACacheService) { |   constructor(public injector: Injector, public eaCacheSrv: EACacheService) { | ||||||
|     super(injector, eaCacheSrv); |     super(injector, eaCacheSrv); | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { ActivatedRoute, Router } from '@angular/router'; | ||||||
| import { STChange, STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | import { STChange, STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||||
| import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; | import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | ||||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | import { NzModalService } from 'ng-zorro-antd/modal'; | ||||||
| import { UsermanageService } from '../../../services/usercenter.service'; | import { UsermanageService } from '../../../services/usercenter.service'; | ||||||
| import { AuditAdminComponent } from './audit-admin/audit-admin.component'; | import { AuditAdminComponent } from './audit-admin/audit-admin.component'; | ||||||
| @ -37,7 +37,11 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|   beforeReq = (requestOptions: STRequestOptions) => { |   beforeReq = (requestOptions: STRequestOptions) => { | ||||||
|     if (this.sf) { |     if (this.sf) { | ||||||
|       Object.assign(requestOptions.body, { |       Object.assign(requestOptions.body, { | ||||||
|         ...this.sf.value |         ...this.sf.value, | ||||||
|  |         createTime: { | ||||||
|  |           start: this.sf.value.createTime?.[0] || '', | ||||||
|  |           end: this.sf.value.createTime?.[1] || '' | ||||||
|  |         } | ||||||
|       }); |       }); | ||||||
|     } |     } | ||||||
|     Object.assign(requestOptions.body, { flag: this.tabType, listSource: 2 }); |     Object.assign(requestOptions.body, { flag: this.tabType, listSource: 2 }); | ||||||
| @ -151,10 +155,10 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|   initEnterST(): STColumn[] { |   initEnterST(): STColumn[] { | ||||||
|     return [ |     return [ | ||||||
|       { title: '企业名称', className: 'text-center', index: 'enterpriseName', width: 350 }, |       { title: '企业名称', className: 'text-center', index: 'enterpriseName', width: 350 }, | ||||||
|       { title: '企业税号', className: 'text-center', index: 'unifiedSocialCreditCode', width: 180 }, |       { title: '企业税号', className: 'text-center', index: 'unifiedSocialCreditCode', width: 190 }, | ||||||
|       { title: '管理员', className: 'text-center', index: 'contacter', width: 150 }, |       { title: '管理员', className: 'text-center', index: 'contacter', width: 150 }, | ||||||
|       { title: '手机号', className: 'text-center', index: 'mobile', width: 140 }, |       { title: '手机号', className: 'text-center', index: 'mobile', width: 140 }, | ||||||
|       { title: '申请时间', className: 'text-center', index: 'createTime', width: 160 }, |       { title: '注册时间', className: 'text-center', index: 'createTime', width: 170 }, | ||||||
|       { |       { | ||||||
|         title: '审核状态', |         title: '审核状态', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
| @ -287,6 +291,19 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|               expand: (value: boolean) => value |               expand: (value: boolean) => value | ||||||
|             } |             } | ||||||
|           } |           } | ||||||
|  |         }, | ||||||
|  |         createTime: { | ||||||
|  |           title: '注册时间', | ||||||
|  |           type: 'string', | ||||||
|  |           ui: { | ||||||
|  |             widget: 'sl-from-to-search', | ||||||
|  |             format: 'yyyy-MM-dd', | ||||||
|  |             placeholder: '请选择', | ||||||
|  |             nzShowTime: true, | ||||||
|  |             visibleIf: { | ||||||
|  |               expand: (value: boolean) => value | ||||||
|  |             } | ||||||
|  |           } as SFDateWidgetSchema | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|     }; |     }; | ||||||
|  | |||||||
| @ -354,6 +354,11 @@ | |||||||
|           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of ltdId"></nz-option> |           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of ltdId"></nz-option> | ||||||
|         </nz-select> |         </nz-select> | ||||||
|       </se> |       </se> | ||||||
|  |       <se [col]="1" label="企业角色" required> | ||||||
|  |         <nz-select nzPlaceHolder="请选择" [(ngModel)]="roleId"> | ||||||
|  |           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of roles"></nz-option> | ||||||
|  |         </nz-select> | ||||||
|  |       </se> | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
| </ng-template> | </ng-template> | ||||||
|  | |||||||
| @ -28,9 +28,11 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | |||||||
|   disabledUpload = false; |   disabledUpload = false; | ||||||
|   enterpriseAddressCode: any = []; |   enterpriseAddressCode: any = []; | ||||||
|   ltdId: any = []; |   ltdId: any = []; | ||||||
|  |   roles: any = []; | ||||||
|  |  | ||||||
|   approvalOpinion = ''; |   approvalOpinion = ''; | ||||||
|   networkTransporter = null; |   networkTransporter = null; | ||||||
|  |   roleId = null; | ||||||
|  |  | ||||||
|   esignCheckStatus: any = { |   esignCheckStatus: any = { | ||||||
|     0: '不通过', |     0: '不通过', | ||||||
| @ -55,6 +57,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | |||||||
|   ngOnInit() { |   ngOnInit() { | ||||||
|     this.initData(); |     this.initData(); | ||||||
|     this.loadltdId(); |     this.loadltdId(); | ||||||
|  |     this.loadRoles(); | ||||||
|     this.subscribeScoll = fromEvent(window, 'scroll').subscribe(event => { |     this.subscribeScoll = fromEvent(window, 'scroll').subscribe(event => { | ||||||
|       this.scrollTop = document.documentElement.scrollTop; |       this.scrollTop = document.documentElement.scrollTop; | ||||||
|     }); |     }); | ||||||
| @ -66,6 +69,13 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | |||||||
|       } |       } | ||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
|  |   loadRoles() { | ||||||
|  |     this.service.getRoles({ enterpriseId: 0, projectId: 0 }).subscribe(res => { | ||||||
|  |       if (res) { | ||||||
|  |         this.roles = res; | ||||||
|  |       } | ||||||
|  |     }); | ||||||
|  |   } | ||||||
|  |  | ||||||
|   initData() { |   initData() { | ||||||
|     this.service |     this.service | ||||||
| @ -149,11 +159,12 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | |||||||
|  |  | ||||||
|   auditPass() { |   auditPass() { | ||||||
|     this.networkTransporter = null; |     this.networkTransporter = null; | ||||||
|  |     this.roleId = null; | ||||||
|     this.nzModalService.create({ |     this.nzModalService.create({ | ||||||
|       nzTitle: '审核通过', |       nzTitle: '审核通过', | ||||||
|       nzContent: this.approvedModal, |       nzContent: this.approvedModal, | ||||||
|       nzOnOk: () => { |       nzOnOk: () => { | ||||||
|         if (!this.networkTransporter) { |         if (!this.networkTransporter || !this.roleId) { | ||||||
|           return false; |           return false; | ||||||
|         } |         } | ||||||
|         this.auditEnterprise(20); |         this.auditEnterprise(20); | ||||||
| @ -163,6 +174,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | |||||||
|   } |   } | ||||||
|   auditNo() { |   auditNo() { | ||||||
|     this.approvalOpinion = ''; |     this.approvalOpinion = ''; | ||||||
|  |     this.roleId = null; | ||||||
|     this.nzModalService.create({ |     this.nzModalService.create({ | ||||||
|       nzTitle: '审核驳回', |       nzTitle: '审核驳回', | ||||||
|       nzContent: this.redectModal, |       nzContent: this.redectModal, | ||||||
| @ -183,7 +195,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | |||||||
|         id: this.detailData.id, |         id: this.detailData.id, | ||||||
|         approvalOpinion: this.approvalOpinion, |         approvalOpinion: this.approvalOpinion, | ||||||
|         networkTransporter: this.networkTransporter, |         networkTransporter: this.networkTransporter, | ||||||
|         roleIds: [1] |         roleId: this.roleId || null | ||||||
|       }) |       }) | ||||||
|       .subscribe(res => { |       .subscribe(res => { | ||||||
|         if (res) { |         if (res) { | ||||||
|  | |||||||
| @ -47,7 +47,7 @@ | |||||||
|       </div> |       </div> | ||||||
|     </ng-template> |     </ng-template> | ||||||
|     <ng-template st-row="contacter" let-item let-index="index"> |     <ng-template st-row="contacter" let-item let-index="index"> | ||||||
|       {{ item.contacter }}/{{item.mobile}} |       {{ item.contacter }}<br>/{{item.mobile}} | ||||||
|     </ng-template> |     </ng-template> | ||||||
|     <ng-template st-row="promotersTelephone" let-item let-index="index"> |     <ng-template st-row="promotersTelephone" let-item let-index="index"> | ||||||
|       <a acl [acl-ability]="['USERCENTER-FREIGHT-LIST-salesman']" (click)="addPromoter(item)">{{ item.promotersTelephone |       <a acl [acl-ability]="['USERCENTER-FREIGHT-LIST-salesman']" (click)="addPromoter(item)">{{ item.promotersTelephone | ||||||
|  | |||||||
| @ -179,15 +179,28 @@ export class FreightComponentsListComponent implements OnInit { | |||||||
|   initST() { |   initST() { | ||||||
|     this.columns = [ |     this.columns = [ | ||||||
|       // { title: '', type: 'checkbox', className: 'text-center' }, |       // { title: '', type: 'checkbox', className: 'text-center' }, | ||||||
|       { title: '企业名称', className: 'text-center', index: 'enterpriseName' , width: 350}, |       { title: '企业名称', className: 'text-center', index: 'enterpriseName', width: 350 }, | ||||||
|       { title: '企业税号', className: 'text-center', index: 'unifiedSocialCreditCode', width: 180 }, |       { title: '企业税号', className: 'text-center', index: 'unifiedSocialCreditCode', width: 200 }, | ||||||
|       { title: '管理员', className: 'text-center', render: 'contacter' }, |       { title: '管理员', className: 'text-center', render: 'contacter', width: 150 }, | ||||||
|       { title: '审核人', className: 'text-center', index: 'approvalUserName' }, |       { title: '审核人', className: 'text-center', index: 'approvalUserName', width: 130 }, | ||||||
|  |       { title: '网络货运人', className: 'text-center', index: 'netTranName', width: 180 }, | ||||||
|       { title: '网络货运人', className: 'text-center', index: 'netTranName' }, |       { | ||||||
|       { title: '常用服务', className: 'text-center', index: 'oftenUsedServices', type: 'enum', enum: { 10: '整车发货', 20: '大宗发货' } }, |         title: '常用服务', | ||||||
|       { title: '推广业务员', className: 'text-center', render: 'promotersTelephone' }, |         className: 'text-center', | ||||||
|       { title: '注册渠道', className: 'text-center', index: 'source', type: 'enum', enum: { 1: '货主注册', 2: '平台添加', 3: '运营添加' } }, |         index: 'oftenUsedServices', | ||||||
|  |         type: 'enum', | ||||||
|  |         enum: { 10: '整车发货', 20: '大宗发货' }, | ||||||
|  |         width: 140 | ||||||
|  |       }, | ||||||
|  |       { title: '推广业务员', className: 'text-center', render: 'promotersTelephone', width: 150 }, | ||||||
|  |       { | ||||||
|  |         title: '注册渠道', | ||||||
|  |         className: 'text-center', | ||||||
|  |         index: 'source', | ||||||
|  |         type: 'enum', | ||||||
|  |         enum: { 1: '货主注册', 2: '平台添加', 3: '运营添加' }, | ||||||
|  |         width: 130 | ||||||
|  |       }, | ||||||
|       { |       { | ||||||
|         title: '企业状态', |         title: '企业状态', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
| @ -196,15 +209,17 @@ export class FreightComponentsListComponent implements OnInit { | |||||||
|         badge: { |         badge: { | ||||||
|           0: { text: '正常', color: 'success' }, |           0: { text: '正常', color: 'success' }, | ||||||
|           1: { text: '冻结', color: 'error' } |           1: { text: '冻结', color: 'error' } | ||||||
|         } |         }, | ||||||
|  |         width: 130 | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '操作', |         title: '操作', | ||||||
|         width: '110px', |         width: '110px', | ||||||
|         className: 'text-center', |         fixed: 'right', | ||||||
|         buttons: [ |         buttons: [ | ||||||
|  |           { type: 'divider' }, | ||||||
|           { |           { | ||||||
|             text: '查看<br/>', |             text: '查看<br>', | ||||||
|             acl: { ability: ['USERCENTER-FREIGHT-LIST-view'] }, |             acl: { ability: ['USERCENTER-FREIGHT-LIST-view'] }, | ||||||
|             click: item => { |             click: item => { | ||||||
|               this.router.navigate(['./detail', item.id], { relativeTo: this.ar }); |               this.router.navigate(['./detail', item.id], { relativeTo: this.ar }); | ||||||
|  | |||||||
| @ -598,18 +598,6 @@ export class FreightComponentsListNewComponent implements OnInit { | |||||||
|         }, |         }, | ||||||
|  |  | ||||||
|         title99: { title: '', type: 'string', ui: { widget: 'custom' } }, |         title99: { title: '', type: 'string', ui: { widget: 'custom' } }, | ||||||
|         adminMobile: { |  | ||||||
|           title: ' 企业管理员手机号', |  | ||||||
|           type: 'string', |  | ||||||
|           minLength: 1, |  | ||||||
|           format: 'mobile', |  | ||||||
|           maxLength: 11, |  | ||||||
|           ui: { |  | ||||||
|             grid: { xxl: 13, xl: 18, lg: 24, md: 24 }, |  | ||||||
|             placeholder: '请输入企业管理员手机号', |  | ||||||
|             errors: { required: '请输入企业管理员手机号', format: '手机号格式错误' } |  | ||||||
|           } |  | ||||||
|         }, |  | ||||||
|         tipsA: { |         tipsA: { | ||||||
|           title: '企业管理员证件照', |           title: '企业管理员证件照', | ||||||
|           type: 'string', |           type: 'string', | ||||||
| @ -663,6 +651,18 @@ export class FreightComponentsListNewComponent implements OnInit { | |||||||
|             placeholder: '请输入企业管理员姓名' |             placeholder: '请输入企业管理员姓名' | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|  |         adminMobile: { | ||||||
|  |           title: ' 企业管理员手机号', | ||||||
|  |           type: 'string', | ||||||
|  |           minLength: 1, | ||||||
|  |           format: 'mobile', | ||||||
|  |           maxLength: 11, | ||||||
|  |           ui: { | ||||||
|  |             grid: { xxl: 13, xl: 18, lg: 24, md: 24 }, | ||||||
|  |             placeholder: '请输入企业管理员手机号', | ||||||
|  |             errors: { required: '请输入企业管理员手机号', format: '手机号格式错误' } | ||||||
|  |           } | ||||||
|  |         }, | ||||||
|         certificateNumber: { |         certificateNumber: { | ||||||
|           title: '企业管理员身份证号', |           title: '企业管理员身份证号', | ||||||
|           type: 'string', |           type: 'string', | ||||||
|  | |||||||
| @ -15,6 +15,7 @@ export class ShipperBaseService extends BaseService { | |||||||
|   $api_get_settlement_customer_list = `/api/mdc/cuc/settlementCustomer/findAll`; // 查找所有结算客户信息(下拉) |   $api_get_settlement_customer_list = `/api/mdc/cuc/settlementCustomer/findAll`; // 查找所有结算客户信息(下拉) | ||||||
|   $api_get_crm_customer_list = `/api/mdc/cuc/crmCustomer/findAll`; // 查找所有Crm客户信息(下拉) |   $api_get_crm_customer_list = `/api/mdc/cuc/crmCustomer/findAll`; // 查找所有Crm客户信息(下拉) | ||||||
|   $api_get_network_freight_forwarder_one = `/api/mdc/cuc/networkTransporter/get`; // 获取网络货运人 |   $api_get_network_freight_forwarder_one = `/api/mdc/cuc/networkTransporter/get`; // 获取网络货运人 | ||||||
|  |   $api_get_roles = `/api/mdc/cuc/roleInfo/getRoleList`; // 获取角色列表 | ||||||
|   // 根据FullKey获取系统子配置(树) |   // 根据FullKey获取系统子配置(树) | ||||||
|   $api_getSysConfigTreeByParentFullKey = `/api/mdc/pbc/sysConfig/getSysConfigTreeByParentFullKey`; |   $api_getSysConfigTreeByParentFullKey = `/api/mdc/pbc/sysConfig/getSysConfigTreeByParentFullKey`; | ||||||
|   envCache: any; |   envCache: any; | ||||||
| @ -183,6 +184,31 @@ export class ShipperBaseService extends BaseService { | |||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |    /** | ||||||
|  |    * 获取角色列表 | ||||||
|  |    * @returns | ||||||
|  |    */ | ||||||
|  |     getRoles(params = {}, containerAll = false) { | ||||||
|  |       return this.request(this.$api_get_roles, params).pipe( | ||||||
|  |         map((res: any) => { | ||||||
|  |           if (!res) { | ||||||
|  |             return []; | ||||||
|  |           } | ||||||
|  |           const list = res.map((item: any) => { | ||||||
|  |             return { | ||||||
|  |               label: item.roleName, | ||||||
|  |               value: item.id | ||||||
|  |             }; | ||||||
|  |           }); | ||||||
|  |           const obj = []; | ||||||
|  |           if (containerAll) { | ||||||
|  |             obj.push({ label: '全部', value: '' }); | ||||||
|  |           } | ||||||
|  |           return [...obj, ...list]; | ||||||
|  |         }) | ||||||
|  |       ); | ||||||
|  |     } | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
|    * 根据ID获取网络货运人 |    * 根据ID获取网络货运人 | ||||||
|    * @returns |    * @returns | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user