可开票订单联调

This commit is contained in:
weiyu
2022-04-26 20:38:37 +08:00
parent 3798c71bd6
commit 0b99448629
3 changed files with 36 additions and 36 deletions

View File

@ -13,7 +13,7 @@
class="text-right"> 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)">查询</button>
<button nz-button (click)="resetSF()">重置</button> <button nz-button (click)="resetSF()">重置</button>
<button nz-button (click)="exportList()"> 导出</button> <button nz-button (click)="export()"> 导出</button>
<button nz-button nzType="link" (click)="expandToggle()"> <button nz-button nzType="link" (click)="expandToggle()">
{{ !_$expand ? '展开' : '收起' }} {{ !_$expand ? '展开' : '收起' }}
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i> <i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
@ -25,7 +25,7 @@
<nz-card class="content-box" nzBordered> <nz-card class="content-box" nzBordered>
<st #st [data]="service.$api_invoicedBillInfo_page" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}" <st #st [data]="service.$api_invoicedBillInfo_page" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}"
[loading]="false" [scroll]="{ x:'1200px' }"> [loading]="false" [scroll]="{ x:'1200px' }">
<ng-template st-row="sts" let-item let-index="index" let-column="column"> <ng-template st-row="sts" let-item let-index="index">
<span *ngIf="item.sts === '1'">待受理</span> <span *ngIf="item.sts === '1'">待受理</span>
<span *ngIf="item.sts === '2'">处理中</span> <span *ngIf="item.sts === '2'">处理中</span>
<span *ngIf="item.sts === '3'">已完成</span> <span *ngIf="item.sts === '3'">已完成</span>

View File

@ -1,5 +1,5 @@
import { Component, OnInit, ViewChild } from '@angular/core'; import { Component, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router'; import { ActivatedRoute, Router } from '@angular/router';
import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st';
import { SFComponent, SFSchema, SFDateWidgetSchema, SFSelectWidgetSchema } from '@delon/form'; import { SFComponent, SFSchema, SFDateWidgetSchema, SFSelectWidgetSchema } from '@delon/form';
import { NzModalService } from 'ng-zorro-antd/modal'; import { NzModalService } from 'ng-zorro-antd/modal';
@ -20,7 +20,7 @@ export class BillingOrderComponent implements OnInit {
_$expand = false; _$expand = false;
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) { } constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router, private ar: ActivatedRoute) { }
ngOnInit(): void { } ngOnInit(): void { }
@ -34,8 +34,8 @@ export class BillingOrderComponent implements OnInit {
}; };
routeTo(item: any) { routeTo(item: any) {
return; // return;
this.router.navigate(['/ticket/invoice-requested-detail/1']); this.router.navigateByUrl(`/order-management/vehicle/vehicle-detail/${item.billId}`);
} }
/** /**
@ -54,14 +54,8 @@ export class BillingOrderComponent implements OnInit {
this.sf?.setValue('/expand', this._$expand); this.sf?.setValue('/expand', this._$expand);
} }
exportList() { export() {
const params = { listSource: 1, pageSize: -1 }; this.service.exportStart({ ...this.sf.value, pageSize: -1 }, this.service.$api_export_InvoicedBillInfoPage);
if (this.sf) {
Object.assign(params, {
...this.sf.value
});
}
this.service.downloadFile(this.service.$api_export_invoice_logs_page, params);
} }
private initSF(): SFSchema { private initSF(): SFSchema {
@ -125,7 +119,7 @@ export class BillingOrderComponent implements OnInit {
ui: { ui: {
widget: 'sl-from-to', widget: 'sl-from-to',
type: 'date', type: 'date',
format: 'yyyy-MM-dd', format: 'yyyy-MM-dd HH:mm:ss',
visibleIf: { visibleIf: {
expand: (value: boolean) => value expand: (value: boolean) => value
} }
@ -185,9 +179,9 @@ export class BillingOrderComponent implements OnInit {
private initST(): STColumn[] { private initST(): STColumn[] {
return [ return [
{ title: '订单号', index: 'billCode', className: 'text-center', width: 180 }, { title: '订单号', index: 'billCode', type:'link', className: 'text-center', width: 180, click: _record => this.routeTo(_record) },
{ title: '运单号', index: 'wayBillCode', width: 180, className: 'text-center' }, { title: '运单号', index: 'wayBillCode', width: 180, className: 'text-center' },
{ title: '银行类型', index: 'bankType', width: 100,className: 'text-center' }, { title: '银行类型', index: 'bankTypeLabel', render: 'bankType', width: 100, className: 'text-center' },
{ title: '网络货运人', index: 'enterpriseInfoName', width: 220, className: 'text-center' }, { title: '网络货运人', index: 'enterpriseInfoName', width: 220, className: 'text-center' },
{ {
title: '开票金额', // TODO title: '开票金额', // TODO
@ -195,7 +189,7 @@ export class BillingOrderComponent implements OnInit {
width: 120, width: 120,
type: 'widget', type: 'widget',
className: 'text-center', className: 'text-center',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invoiceAmount }) } widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatmoney }) }
}, },
{ {
title: '总费用', title: '总费用',
@ -211,7 +205,7 @@ export class BillingOrderComponent implements OnInit {
width: 120, width: 120,
type: 'widget', type: 'widget',
className: 'text-center', className: 'text-center',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.shippingFee }) } widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.price }) }
}, },
{ {
title: '技术服务费', title: '技术服务费',
@ -219,7 +213,7 @@ export class BillingOrderComponent implements OnInit {
width: 120, width: 120,
type: 'widget', type: 'widget',
className: 'text-center', className: 'text-center',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invoiceAmount }) } widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.insurancePremium }) }
}, },
{ {
title: '附加费', title: '附加费',
@ -227,7 +221,7 @@ export class BillingOrderComponent implements OnInit {
width: 120, width: 120,
type: 'widget', type: 'widget',
className: 'text-center', className: 'text-center',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.aliasFee }) } widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.surcharge }) }
}, },
{ {
title: '附加费率', title: '附加费率',
@ -240,7 +234,7 @@ export class BillingOrderComponent implements OnInit {
{ title: '所属项目', index: 'enterpriseProjectName', width: '180px', className: 'text-center', }, { title: '所属项目', index: 'enterpriseProjectName', width: '180px', className: 'text-center', },
{ {
title: '服务类型', title: '服务类型',
index: 'serviceType', index: 'serviceTypeLabel',
width: '180px', width: '180px',
className: 'text-center' className: 'text-center'
}, },
@ -250,6 +244,7 @@ export class BillingOrderComponent implements OnInit {
{ title: '车牌号', index: 'carNo', className: 'text-center', width: '180px' }, { title: '车牌号', index: 'carNo', className: 'text-center', width: '180px' },
{ {
title: '承运司机', title: '承运司机',
index:'driverName',
className: 'text-center', className: 'text-center',
width: '180px', width: '180px',
}, },
@ -269,11 +264,14 @@ export class BillingOrderComponent implements OnInit {
{ title: '申请开票时间', index: 'vatappdate', type: 'date', className: 'text-center', width: 180 }, { title: '申请开票时间', index: 'vatappdate', type: 'date', className: 'text-center', width: 180 },
{ title: '申请开票编号', index: 'vatappcode', className: 'text-center', width: 180 }, { title: '申请开票编号', index: 'vatappcode', className: 'text-center', width: 180 },
{ title: '分票编号', index: 'vatinvcode', width: '180px', className: 'text-center', }, { title: '分票编号', index: 'vatinvcode', width: '180px', className: 'text-center', },
{ title: '发票号码', index: 'invoiceno', width: 100, className: 'text-center', }, { title: '发票号码', index: 'invoiceno', width: 130, className: 'text-center', },
{ title: '发票代码', index: 'invoiceno2', width: 130, className: 'text-center' }, { title: '发票代码', index: 'invoiceno2', width: 130, className: 'text-center' },
{ title: '开票日期', index: 'invoicedate', type: 'date', width: 150, className: 'text-center' }, { title: '开票日期', index: 'invoicedate', type: 'date', width: 150, className: 'text-center' },
// { title: '作废日期', index: 'invalidTime', type: 'date', width: 150 }, // TODO // { title: '作废日期', index: 'invalidTime', type: 'date', width: 150 }, // TODO
{ title: 'ETC开票金额', render: 'vatmoney', className: 'text-center', width: 200 } {
title: 'ETC开票金额', render: 'vatmoney', className: 'text-center', width: 200, type: 'widget',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.surcharge }) }
}
]; ];
} }
} }

View File

@ -147,7 +147,9 @@ export class TicketService extends ShipperBaseService {
$api_get_ficoCarWhiteList_asyncExport = '/api/fcc/ficoEtcInvoiceL/asyncExportCarWhiteList'; $api_get_ficoCarWhiteList_asyncExport = '/api/fcc/ficoEtcInvoiceL/asyncExportCarWhiteList';
// 可开票订单list查询 // 可开票订单list查询
$api_invoicedBillInfo_page = '/api/fcc/invoicedBillInfo/findInvoicedBillInfoPage'; $api_invoicedBillInfo_page = '/api/fcc/invoicedBillInfo/getInvoicedBillInfoPage';
// 可开票订单导出
$api_export_InvoicedBillInfoPage = '/api/fcc/invoicedBillInfo/exportInvoicedBillInfoPage'
constructor(public injector: Injector) { constructor(public injector: Injector) {
super(injector); super(injector);