Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
		| @ -20,7 +20,7 @@ module.exports = { | |||||||
|   // } |   // } | ||||||
|   '//api': { |   '//api': { | ||||||
|     target: { |     target: { | ||||||
|       host: 'tms-api-test.eascs.com', |       host: 'tms-api-dev.eascs.com', | ||||||
|       protocol: 'https:', |       protocol: 'https:', | ||||||
|       port: 443 |       port: 443 | ||||||
|     }, |     }, | ||||||
|  | |||||||
| @ -59,25 +59,25 @@ export class AuthGuard extends ACLGuard { | |||||||
|  |  | ||||||
|   private handle(route: ActivatedRouteSnapshot, state: RouterStateSnapshot, type: 1 | 2, router?: string): Observable<boolean> { |   private handle(route: ActivatedRouteSnapshot, state: RouterStateSnapshot, type: 1 | 2, router?: string): Observable<boolean> { | ||||||
|     if (!router) { |     if (!router) { | ||||||
|       if (type === 1) { |       return type === 1 ? super.canActivate(route, state) : super.canActivateChild(route, state); | ||||||
|         return super.canActivate(route, state); |  | ||||||
|       } else { |  | ||||||
|         return super.canActivateChild(route, state); |  | ||||||
|     } |     } | ||||||
|     } |     return this.baseService.request('/api/mdc/cuc/enterpriseProject/getUserDefaultEnterpriseProject').pipe( | ||||||
|     // console.log(route, state, type, router); |  | ||||||
|  |  | ||||||
|     return this.baseService.request('/api/mdc/cuc/functionButton/getUserFunctionButton', { link: router }).pipe( |  | ||||||
|       switchMap(res => { |       switchMap(res => { | ||||||
|         if (res) { |         if (res.enterpriseIdentity) { | ||||||
|  |           // 超级管理员赋值全量权限 | ||||||
|  |           this.srv1.setFull(true); | ||||||
|  |           return of(true); | ||||||
|  |         } else { | ||||||
|  |           // 如果不是超级管理员 获取权限 | ||||||
|  |           return this.baseService.request('/api/mdc/cuc/functionButton/getUserFunctionButton', { link: router }); | ||||||
|  |         } | ||||||
|  |       }), | ||||||
|  |       switchMap(res => { | ||||||
|  |         if (res?.abilities) { | ||||||
|           this.srv1.setAbility(res.abilities || []); |           this.srv1.setAbility(res.abilities || []); | ||||||
|           this.menuService.resume(); |           this.menuService.resume(); | ||||||
|         } |         } | ||||||
|         if (type === 1) { |         return type === 1 ? super.canActivate(route, state) : super.canActivateChild(route, state); | ||||||
|           return super.canActivate(route, state); |  | ||||||
|         } else { |  | ||||||
|           return super.canActivateChild(route, state); |  | ||||||
|         } |  | ||||||
|       }) |       }) | ||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
|  | |||||||
| @ -63,7 +63,6 @@ export class InvoiceDetailComponent implements OnInit { | |||||||
|  |  | ||||||
|   loadInvoiceHeader(id: string) { |   loadInvoiceHeader(id: string) { | ||||||
|     this.service.request(this.service.$api_get_invoice_header_detail, { id }).subscribe(res => { |     this.service.request(this.service.$api_get_invoice_header_detail, { id }).subscribe(res => { | ||||||
|       console.log(res); |  | ||||||
|       if (res) { |       if (res) { | ||||||
|         this.headerInfo = res; |         this.headerInfo = res; | ||||||
|       } |       } | ||||||
| @ -71,7 +70,6 @@ export class InvoiceDetailComponent implements OnInit { | |||||||
|   } |   } | ||||||
|   loadRoutes(expressno: string) { |   loadRoutes(expressno: string) { | ||||||
|     this.service.request(this.service.$api_get_express_routes, expressno).subscribe(res => { |     this.service.request(this.service.$api_get_express_routes, expressno).subscribe(res => { | ||||||
|       console.log(res); |  | ||||||
|       if (res) { |       if (res) { | ||||||
|         res.routes = res.routes.map((route: any) => ({ time: route.acceptTime, value: route.remark + route.acceptAddress, color: 'gray' })); |         res.routes = res.routes.map((route: any) => ({ time: route.acceptTime, value: route.remark + route.acceptAddress, color: 'gray' })); | ||||||
|         this.routesInfo = res; |         this.routesInfo = res; | ||||||
| @ -83,8 +81,6 @@ export class InvoiceDetailComponent implements OnInit { | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   saveInvoices() { |   saveInvoices() { | ||||||
|     console.log(this.invoiceST._data); |  | ||||||
|  |  | ||||||
|     this.isEdit = false; |     this.isEdit = false; | ||||||
|   } |   } | ||||||
|  |  | ||||||
| @ -215,7 +211,7 @@ export class InvoiceDetailComponent implements OnInit { | |||||||
|       { title: '费用号', index: 'feeHId' }, |       { title: '费用号', index: 'feeHId' }, | ||||||
|       { title: '订单号', index: 'billHId' }, |       { title: '订单号', index: 'billHId' }, | ||||||
|       { title: '订单日期', index: 'createTime', type: 'date' }, |       { title: '订单日期', index: 'createTime', type: 'date' }, | ||||||
|       { title: '计费日期', index: 'callNo', type: 'date' }, |       { title: '计费日期', index: 'feeDate', type: 'date' }, | ||||||
|       { title: '税率', index: 'vatrate' }, |       { title: '税率', index: 'vatrate' }, | ||||||
|       { |       { | ||||||
|         title: '申请金额', |         title: '申请金额', | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user