车辆接口更新

This commit is contained in:
wangshiming
2022-01-25 19:12:27 +08:00
parent f468d98cda
commit 35717ca650
3 changed files with 56 additions and 37 deletions

View File

@ -1,3 +1,13 @@
/*
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2022-01-25 16:03:45
* @LastEditors : Shiming
* @LastEditTime : 2022-01-25 19:12:23
* @FilePath : \\tms-obc-web\\src\\app\\core\\guards\\auth.guard.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
import { Inject, Injectable, Injector } from '@angular/core';
import {
ActivatedRouteSnapshot,
@ -43,7 +53,7 @@ export class AuthGuard implements CanActivate, CanActivateChild {
if (!route) {
return of(true);
}
return this.baseService.request('/api/mdc/cuc/functionButton/getPermissionsCodeoByLink', { link: route }).pipe(
return this.baseService.request('/api/mdc/cuc/functionButton/getUserFunctionButton', { link: route }).pipe(
switchMap(res => {
if (res) {
this.srv.setAbility(res.permissionsCodeList || []);

View File

@ -1,11 +1,14 @@
<!--
* @Author: your name
* @Date: 2021-12-24 15:38:08
* @LastEditTime: 2022-01-14 14:40:25
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \tms-obc-web\src\app\routes\sys-setting\components\crm-management\crm-management.component.html
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-24 15:54:08
* @LastEditors : Shiming
* @LastEditTime : 2022-01-25 17:43:07
* @FilePath : \\tms-obc-web\\src\\app\\routes\\sys-setting\\components\\network-freight\\network-freight.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<page-header-wrapper title="网络货运人"> </page-header-wrapper>
<nz-card>
@ -54,6 +57,9 @@
[loading]="service.http.loading"
(change)="stChange($event)"
>
<ng-template st-row="electronicInvoiceAccount" let-item let-index="index">
<a href="javascript:;" (click)="setMakeInvoice()">设置</a>
</ng-template>
</st>
</nz-card>

View File

@ -50,56 +50,56 @@ export class NetworkFreightComponent implements OnInit {
index: 'invoiceTaxRate' },
{
title: '电子发票账号',
title: '云开票',
width: '150px',
index: 'electronicInvoiceAccount' },
render: 'electronicInvoiceAccount'
},
{
title: 'ETC账号',
title: 'e签宝',
width: '150px',
index: 'etcAccount' },
render: 'etcAccount'
},
{
title: '电子合同账号',
title: '保险',
width: '150px',
index: 'electronicContractAccount' },
render: 'electronicContractAccount' },
{
title: '开户行',
title: '平安银行',
width: '150px',
index: 'bankName' },
render: 'bankName' },
{
title: '虚拟账户',
title: '浦发银行',
width: '150px',
index: 'virtualAccount' },
{
title: '附加费比例',
index: 'surchargeRate',
width: '150px',
format: (item: any) => {
return item.surchargeRate + '%';
}
},
render: 'virtualAccount'
},
{
title: '操作',
width: '80px',
width: '',
fixed: 'right',
className: 'text-left',
buttons: [
{
text: '财务设置',
text: '银行设置 ',
click: item => this.roleAction(item, 2)
},
{
text: '票务设置',
click: item => this.ticket(item)
},
{
text: '合同设置',
text: '系统配置 ',
click: item => this.roleAction(item, 2)
},
{
text: '基础设置',
text: '银行卡管理',
click: item => this.roleAction(item, 2)
},
// {
// text: '票务设置',
// click: item => this.ticket(item)
// },
// {
// text: '合同设置',
// click: item => this.roleAction(item, 2)
// },
{
text: '基础设置 ',
click: item => this.settingAction(item)
}
]
@ -401,7 +401,10 @@ export class NetworkFreightComponent implements OnInit {
}
});
}
// 云开票
setMakeInvoice() {
}
/*
* 根据地区code查询地区列表
*/