This commit is contained in:
Taric Xin
2022-02-28 19:12:43 +08:00
parent 6e15440832
commit a0827b825a
7 changed files with 37 additions and 32 deletions

View File

@ -204,7 +204,7 @@ export class CancellationInvoiceComponent implements OnInit {
const modal = this.nzModalService.create({
nzTitle: '推送开票',
nzContent: PushInvoiceComponent,
nzComponentParams: { id: item.id },
nzComponentParams: { id: item.vatappHId },
nzWidth: 1200,
nzOnOk: () => {
this.service.request(this.service.$api_push_invoic, { id: item.id }).subscribe(res => {
@ -314,22 +314,22 @@ export class CancellationInvoiceComponent implements OnInit {
private initST(): STColumn[] {
return [
{ title: '', index: 'key', type: 'checkbox', fixed: 'left', width: 50, className: 'text-center' },
{ title: '分票编号', render: 'vatinvcode', width: 160 },
{ title: '分票编号', render: 'vatinvcode', width: 200 },
{
title: '申请编号',
index: 'vatappHCode',
width: 120,
width: 150,
type: 'link',
click: item => this.router.navigate(['/ticket/invoice-requested/detail/' + item?.vatappHId])
},
{ title: '申请时间', index: 'createTime', type: 'date', width: 150 },
{ title: '网络货运人', index: 'ltdName', width: 120 },
{ title: '购买人', index: 'artoname', width: 90 },
{ title: '网络货运人', index: 'ltdName', width: 160 },
{ title: '购买人', index: 'artoname', width: 160 },
{ title: '订单数', index: 'ordlines', width: 90, className: 'text-right' },
{
title: '价税合计',
index: 'vatmoney',
width: 120,
width: 140,
type: 'widget',
className: 'text-right font-weight-bold',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatmoney }) }
@ -337,7 +337,7 @@ export class CancellationInvoiceComponent implements OnInit {
{
title: '金额',
index: 'vatnotax',
width: 100,
width: 140,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatnotax }) }
@ -345,27 +345,28 @@ export class CancellationInvoiceComponent implements OnInit {
{
title: '税率',
index: 'billvatrate',
width: 90,
width: 120,
className: 'text-right',
format: item => `${item.billvatrate ? ((item.billvatrate as number) * 100).toFixed(2) : 0}%`
},
{
title: '税额',
index: 'vattax',
width: 90,
width: 140,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vattax }) }
},
{ title: '服务名称', index: 'vatname', width: 100 },
{ title: '销货清单', index: 'isdetail', width: 90, type: 'enum', enum: { 1: '是', 0: '否' }, className: 'text-center' },
{ title: '服务名称', index: 'vatname', width: 120 },
{ title: '销货清单', index: 'isdetail', width: 120, type: 'enum', enum: { 1: '是', 0: '否' }, className: 'text-center' },
{ title: '票面备注', index: 'remarks', width: 250 },
{ title: '其他要求', index: 'otherremarks', width: 100 },
{
title: '操作',
width: '100px',
width: '120px',
fixed: 'right',
buttons: [
{ type: 'divider' },
{
text: '查看明细',
click: item =>