车辆接口更新

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 { Inject, Injectable, Injector } from '@angular/core';
import { import {
ActivatedRouteSnapshot, ActivatedRouteSnapshot,
@ -43,7 +53,7 @@ export class AuthGuard implements CanActivate, CanActivateChild {
if (!route) { if (!route) {
return of(true); 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 => { switchMap(res => {
if (res) { if (res) {
this.srv.setAbility(res.permissionsCodeList || []); this.srv.setAbility(res.permissionsCodeList || []);

View File

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

View File

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