fix bug
This commit is contained in:
@ -392,6 +392,7 @@ export class CancellationInvoiceComponent implements OnInit {
|
||||
{ type: 'divider' },
|
||||
{
|
||||
text: '查看明细<br>',
|
||||
acl: { ability: ['TICKET-CANCELLATION-view'] },
|
||||
click: item =>
|
||||
this.router.navigate(['ticket/cancellation-invoice/detail/' + item.id], {
|
||||
queryParams: { type: 1, expressno: item.expressno, ltdId: item.shipperId }
|
||||
@ -399,11 +400,13 @@ export class CancellationInvoiceComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
text: '销货清单<br>',
|
||||
acl: { ability: ['TICKET-CANCELLATION-downLoadDetail'] },
|
||||
iif: item => item.isdetail,
|
||||
click: item => this.downLoadDetail(item)
|
||||
},
|
||||
{
|
||||
text: '手工开票<br>',
|
||||
acl: { ability: ['TICKET-CANCELLATION-apply'] },
|
||||
iif: item => item.sts != '3' && item.sts != '4' ,
|
||||
click: item => this.requestedAction(item)
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-06 10:57:56
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-09 17:07:02
|
||||
* @LastEditTime : 2022-04-29 14:34:09
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\etc-blacklist\\etc-blacklist.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
@ -28,17 +28,17 @@
|
||||
></sf>
|
||||
</div>
|
||||
<div nz-col [nzXl]="6" [nzLg]="24" [nzMd]="24" [nzSm]="24" [nzXs]="24" class="text-right">
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)" acl [acl-ability]="[tabType === 1 ?'TICKET-ETC-BLACK_LIST-freightList' : 'TICKET-ETC-BLACK_LIST-cartList']">查询</button>
|
||||
<button nz-button (click)="resetSF()">重置</button>
|
||||
<button nz-button (click)="exprot()"> 导出</button>
|
||||
<button nz-button (click)="exprot()" acl [acl-ability]="[tabType === 1 ?'TICKET-ETC-BLACK_LIST-exportFreight' : 'TICKET-ETC-BLACK_LIST-exportCart']"> 导出</button>
|
||||
</div>
|
||||
</div>
|
||||
</nz-card>
|
||||
|
||||
<nz-card>
|
||||
<div class="d-flex align-items-center mb-md">
|
||||
<button nz-button (click)="configAction()">添加</button>
|
||||
<button nz-button (click)="deleteAction()">删除</button>
|
||||
<button nz-button (click)="configAction()" acl [acl-ability]="[tabType === 1 ? 'TICKET-ETC-BLACK_LIST-addFreight' : 'TICKET-ETC-BLACK_LIST-addCart']">添加</button>
|
||||
<button nz-button (click)="deleteAction()" acl [acl-ability]="[tabType === 1 ? 'TICKET-ETC-BLACK_LIST-deleteFreight' : 'TICKET-ETC-BLACK_LIST-deleteCart']">删除</button>
|
||||
<div class="ml-md">
|
||||
已选择
|
||||
<strong class="text-primary">{{ selectedRows.length }}</strong> 条数据
|
||||
|
||||
@ -1,3 +1,13 @@
|
||||
<!--
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-28 20:27:08
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-29 14:19:10
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\etc-invoiced-list\\etc-invoiced-list.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
<page-header-wrapper [title]="'运单开票记录'">
|
||||
</page-header-wrapper>
|
||||
|
||||
@ -11,7 +21,7 @@
|
||||
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right">
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||
<button nz-button (click)="resetSF()">重置</button>
|
||||
<button nz-button (click)="exprot()"> 导出</button>
|
||||
<button nz-button (click)="exprot()" acl [acl-ability]="['TICKET-ETC-INVOICE-LIST-export']"> 导出</button>
|
||||
<button nz-button nzType="link" (click)="expandToggle()">
|
||||
{{ !_$expand ? '展开' : '收起' }}
|
||||
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||||
|
||||
@ -182,10 +182,12 @@ export class ETCInvoicedListComponent implements OnInit {
|
||||
{
|
||||
title: '操作',
|
||||
className: 'text-center',
|
||||
fixed: 'right',
|
||||
width: 120,
|
||||
buttons: [
|
||||
{
|
||||
text: '交易明细',
|
||||
acl: { ability: ['TICKET-ETC-INVOICE-LIST-transaction'] },
|
||||
click: item => this.showDetail(item)
|
||||
}
|
||||
]
|
||||
|
||||
@ -1,3 +1,13 @@
|
||||
<!--
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-28 20:27:08
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-29 14:21:05
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\etc-invoiced-logs\\etc-invoiced-logs.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
<page-header-wrapper [title]="'已开发票'">
|
||||
</page-header-wrapper>
|
||||
|
||||
@ -13,7 +23,7 @@
|
||||
class="text-right">
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||
<button nz-button (click)="resetSF()">重置</button>
|
||||
<button nz-button (click)="exportList()"> 导出</button>
|
||||
<button nz-button (click)="exportList()" acl [acl-ability]="['TICKET-ETC-INVOICE-LOGS-export']"> 导出</button>
|
||||
<button nz-button nzType="link" (click)="expandToggle()">
|
||||
{{ !_$expand ? '展开' : '收起' }}
|
||||
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
class="text-right">
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||
<button nz-button (click)="resetSF()">重置</button>
|
||||
<button nz-button (click)="exprot()"> 导出</button>
|
||||
<button nz-button (click)="exprot()" acl [acl-ability]="['TICKET-ETC-INVOICE-REQUESTED-export']"> 导出</button>
|
||||
<button nz-button nzType="link" (click)="expandToggle()">
|
||||
{{ !_$expand ? '展开' : '收起' }}
|
||||
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||||
@ -33,7 +33,7 @@
|
||||
<nz-card class="content-box" nzBordered>
|
||||
|
||||
<div class="d-flex align-items-center mb-md mt-md">
|
||||
<button nz-button (click)="this.auditAction()">申请开票</button>
|
||||
<button nz-button (click)="this.auditAction()" acl [acl-ability]="['TICKET-ETC-INVOICE-REQUESTED-apply']">申请开票</button>
|
||||
<div class="ml-md">
|
||||
已选择
|
||||
<strong class="text-primary">{{ selectedRows.length }}</strong> 条运单
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<nz-card class="content-box">
|
||||
|
||||
<div class="mt-md mb-sm">
|
||||
<button nz-button nzType="primary" (click)="printOrder()">打印面单</button>
|
||||
<button nz-button nzType="primary" (click)="printOrder()" acl [acl-ability]="['TICKET-EXPRESS-INFO-print']">打印面单</button>
|
||||
</div>
|
||||
<st #st [data]="url" [columns]="columns" [req]="{ process:beforeReq }" [loading]="false" [page]="{}" [scroll]="{x:'1200px'}"
|
||||
(change)="stChange($event)"></st>
|
||||
|
||||
@ -1,3 +1,13 @@
|
||||
/*
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-28 20:27:22
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-29 14:14:59
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\express-info\\express-info.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st';
|
||||
import { SFComponent, SFDateWidgetSchema, SFSchema } from '@delon/form';
|
||||
@ -49,6 +59,7 @@ export class ExpressInfoComponent implements OnInit {
|
||||
width: 120,
|
||||
type: 'link',
|
||||
click: (record: any) => this.showDetail(record.expressCode),
|
||||
acl: { ability: ['TICKET-EXPRESS-INFO-expressInvoices'] },
|
||||
className: 'text-right'
|
||||
},
|
||||
{ title: '寄件人姓名', index: 'sname', width: 150 },
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
[class.expend-options]="_$expand">
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||
<button nz-button (click)="resetSF()">重置</button>
|
||||
<button nz-button> 导出</button>
|
||||
<button nz-button acl [acl-ability]="['VEHICLE-LIST-search']"> 导出</button>
|
||||
<button nz-button nzType="link" (click)="expandToggle()">
|
||||
{{ !_$expand ? '展开' : '收起' }}
|
||||
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||||
@ -24,7 +24,7 @@
|
||||
<nz-card class="content-box" nzBordered>
|
||||
|
||||
<div class="d-flex align-items-center mb-md mt-md">
|
||||
<button nz-button (click)="this.addInvoice()" nzType="primary">添加发票</button>
|
||||
<button nz-button (click)="this.addInvoice()" nzType="primary" acl [acl-ability]="['TICKET-INPUT-INVOICE-addInvoice']">添加发票</button>
|
||||
<div class="ml-md">
|
||||
已选择
|
||||
<strong class="text-primary">{{ selectedRows.length }}</strong> 张发票
|
||||
|
||||
@ -256,10 +256,12 @@ export class InputInvoiceComponent implements OnInit {
|
||||
buttons: [
|
||||
{
|
||||
text: '浏览',
|
||||
acl: { ability: ['TICKET-INPUT-INVOICE-view'] },
|
||||
click: item => this.router.navigate(['/ticket/input-invoice/detail/' + item.id])
|
||||
},
|
||||
{
|
||||
text: '修改',
|
||||
acl: { ability: ['TICKET-INPUT-INVOICE-edit'] },
|
||||
click: item => this.router.navigate(['/ticket/input-invoice/edit/1'])
|
||||
}
|
||||
]
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-21 15:39:30
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-01-26 09:36:07
|
||||
* @LastEditTime : 2022-04-29 13:55:16
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\invoice-requested\\invoice-requested.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
@ -20,7 +20,7 @@
|
||||
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right">
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||
<button nz-button (click)="resetSF()">重置</button>
|
||||
<button nz-button (click)="exprot()"> 导出</button>
|
||||
<button nz-button (click)="exprot()" acl [acl-ability]="['TICKET-INVOICE-REQUESTED-export']"> 导出</button>
|
||||
<button nz-button nzType="link" (click)="expandToggle()">
|
||||
{{ !_$expand ? '展开' : '收起' }}
|
||||
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||||
@ -47,12 +47,12 @@
|
||||
<strong class="text-red">{{ totalCallNo }}</strong>
|
||||
<a *ngIf="totalCallNo > 0" (click)="st.clearCheck();totalCallNo=0" class="ml-lg">清空</a>
|
||||
</div>
|
||||
<button nz-button *ngIf="resourceStatus==='1' || !resourceStatus" (click)="this.batchRequested()">批量受理</button>
|
||||
<button nz-button *ngIf="resourceStatus==='1' || !resourceStatus" (click)="this.batchRequested()" acl [acl-ability]="['TICKET-INVOICE-REQUESTED-userApply']">批量受理</button>
|
||||
<button nz-button *ngIf="resourceStatus==='1' || !resourceStatus"
|
||||
(click)="this.rejectAction(selectedRows)">驳回</button>
|
||||
(click)="this.rejectAction(selectedRows)" acl [acl-ability]="['TICKET-INVOICE-REQUESTED-reject']">驳回</button>
|
||||
<button nz-button *ngIf="resourceStatus !=='4' && resourceStatus !=='5'"
|
||||
(click)="changeAddress(selectedRows)">修改地址</button>
|
||||
<button nz-button *ngIf="resourceStatus==='3' || !resourceStatus" (click)="printOrder(selectedRows)">快递下单</button>
|
||||
(click)="changeAddress(selectedRows)" acl [acl-ability]="['VEHICLE-LIST-search']">修改地址</button>
|
||||
<button nz-button *ngIf="resourceStatus==='3' || !resourceStatus" (click)="printOrder(selectedRows)" acl [acl-ability]="['VEHICLE-LIST-search']">快递下单</button>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
|
||||
@ -513,25 +513,30 @@ export class InvoiceRequestedComponent {
|
||||
{
|
||||
text: '开票受理<br/>',
|
||||
click: item => this.requestedInvoiceAction(item),
|
||||
acl: { ability: ['TICKET-INVOICE-REQUESTED-requestedInvoiceAction'] },
|
||||
iif: item => item.sts === '1'
|
||||
},
|
||||
{
|
||||
text: '驳回申请<br/>',
|
||||
click: item => this.rejectAction([item]),
|
||||
acl: { ability: ['TICKET-INVOICE-REQUESTED-rejectAction'] },
|
||||
iif: item => item.sts === '1'
|
||||
},
|
||||
{
|
||||
text: '订单明细<br/>',
|
||||
acl: { ability: ['TICKET-INVOICE-REQUESTED-detail'] },
|
||||
click: item => this.router.navigate([`/ticket/invoice-requested/detail/${item?.id}`], { queryParams: { sts: item.sts } })
|
||||
},
|
||||
{
|
||||
text: '查看原因<br/>',
|
||||
click: item => this.showReason(item),
|
||||
acl: { ability: ['TICKET-INVOICE-REQUESTED-viewResult'] },
|
||||
iif: item => item.sts === '4'
|
||||
},
|
||||
{
|
||||
text: '下载对账单',
|
||||
iif: item => item.sts === '3',
|
||||
acl: { ability: ['TICKET-INVOICE-REQUESTED-downloadPDF'] },
|
||||
click: item => this.downloadPdf(item)
|
||||
}
|
||||
]
|
||||
|
||||
@ -347,6 +347,7 @@ export class InvoicedListComponent implements OnInit {
|
||||
{ type: 'divider' },
|
||||
{
|
||||
text: '查看明细<br>',
|
||||
acl: { ability: ['TICKET-INVOICE-LIST-view'] },
|
||||
click: item =>
|
||||
this.router.navigate(['/ticket/invoice-list/detail/' + item.id], {
|
||||
queryParams: { expressno: item.expressno, type: 2, ltdId: item.shipperId }
|
||||
@ -354,26 +355,31 @@ export class InvoicedListComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
text: '取消开票<br>',
|
||||
acl: { ability: ['TICKET-INVOICE-LIST-canceInvoice'] },
|
||||
click: item => this.canceInvoice(item),
|
||||
iif: item => item.sts === '1'
|
||||
},
|
||||
{
|
||||
text: '发票作废<br>',
|
||||
acl: { ability: ['TICKET-INVOICE-LIST-deletedInvoice'] },
|
||||
click: item => this.deletedInvoice(item),
|
||||
iif: item => item.sts === '3'
|
||||
},
|
||||
{
|
||||
text: '查看物流<br>',
|
||||
acl: { ability: ['TICKET-INVOICE-LIST-showExpress'] },
|
||||
click: item => this.showlogosticsLogs(item),
|
||||
iif: item => item.expresscompany
|
||||
},
|
||||
{
|
||||
text: '填写物流<br>',
|
||||
acl: { ability: ['TICKET-INVOICE-LIST-writeExpress'] },
|
||||
click: item => this.requestedAction(item),
|
||||
iif: item => !item.expresscompany
|
||||
},
|
||||
{
|
||||
text: '修改物流<br>',
|
||||
acl: { ability: ['TICKET-INVOICE-LIST-updateExpress'] },
|
||||
click: item => this.requestedAction(item),
|
||||
iif: item => item.expresscompany
|
||||
}
|
||||
|
||||
@ -1,3 +1,13 @@
|
||||
/*
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-28 20:27:08
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-29 14:40:29
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\ticket-management-routing.module.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { BillingOrderComponent } from './components/billing-order/billing-order.component';
|
||||
@ -16,21 +26,21 @@ import { InvoiceRequestedComponent } from './components/invoice-requested/invoic
|
||||
import { InvoicedListComponent } from './components/invoiced-list/invoiced-list.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: 'invoice-requested', component: InvoiceRequestedComponent },
|
||||
{ path: 'invoice-requested', component: InvoiceRequestedComponent, data: { guard: { ability: ['TICKET-INVOICE-REQUESTED-list'] } } },
|
||||
{ path: 'invoice-requested/detail/:id', component: InvoiceRequestedDetailComponent },
|
||||
{ path: 'invoice-list', component: InvoicedListComponent },
|
||||
{ path: 'invoice-list', component: InvoicedListComponent , data: { guard: { ability: ['TICKET-INVOICE-LIST-list'] } }},
|
||||
{ path: 'invoice-list/detail/:id', component: InvoiceDetailComponent },
|
||||
{ path: 'cancellation-invoice', component: CancellationInvoiceComponent },
|
||||
{ path: 'cancellation-invoice', component: CancellationInvoiceComponent , data: { guard: { ability: ['TICKET-CANCELLATION-list'] } }},
|
||||
{ path: 'cancellation-invoice/detail/:id', component: InvoiceDetailComponent },
|
||||
{ path: 'etc-invoice-requested', component: ETCInvoicedRequestedComponent },
|
||||
{ path: 'etc-invoice-list', component: ETCInvoicedListComponent },
|
||||
{ path: 'etc-invoiced-logs', component: ETCInvoicedLogsComponent },
|
||||
{ path: 'etc-blacklist', component: ETCBlacklistComponent },
|
||||
{ path: 'input-invoice', component: InputInvoiceComponent },
|
||||
{ path: 'etc-invoice-requested', component: ETCInvoicedRequestedComponent , data: { guard: { ability: ['TICKET-ETC-INVOICE-REQUESTED-list'] } } },
|
||||
{ path: 'etc-invoice-list', component: ETCInvoicedListComponent, data: { guard: { ability: ['TICKET-ETC-INVOICE-LIST-list'] } } },
|
||||
{ path: 'etc-invoiced-logs', component: ETCInvoicedLogsComponent , data: { guard: { ability: ['TICKET-ETC-INVOICE-LOGS-list'] } }},
|
||||
{ path: 'etc-blacklist', component: ETCBlacklistComponent , data: { guard: { ability: ['TICKET-ETC-BLACK_LIST-freightList'] } }},
|
||||
{ path: 'input-invoice', component: InputInvoiceComponent , data: { guard: { ability: ['TICKET-INPUT-INVOICE-list'] } }},
|
||||
{ path: 'input-invoice/detail/:id', component: InputInvoiceDetailComponent },
|
||||
{ path: 'input-invoice/edit/:id', component: EditCollectionInvoiceComponent },
|
||||
{ path: 'express-info', component: ExpressInfoComponent },
|
||||
{ path: 'billing-order', component: BillingOrderComponent }
|
||||
{ path: 'express-info', component: ExpressInfoComponent , data: { guard: { ability: ['TICKET-EXPRESS-INFO-list'] } }},
|
||||
{ path: 'billing-order', component: BillingOrderComponent, data: { guard: { ability: ['TICKET-BILLING-ORDER-search'] } } }
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
||||
Reference in New Issue
Block a user