This commit is contained in:
Taric Xin
2022-03-29 10:19:35 +08:00
parent b87e2f6898
commit dd60f6c1f3
3 changed files with 11 additions and 7 deletions

View File

@ -154,13 +154,13 @@ export class InvoiceDetailComponent implements OnInit {
{ title: '卸货地', index: 'loadingto', width: 220 }, { title: '卸货地', index: 'loadingto', width: 220 },
{ title: '货物信息', index: 'goodsinfo', width: 140 }, { title: '货物信息', index: 'goodsinfo', width: 140 },
{ title: '承运司机', index: 'driverinfo', width: 280 }, { title: '承运司机', index: 'driverinfo', width: 280 },
{ // {
title: '税额', // title: '税额',
index: 'billvatrate', // index: 'billvatrate',
width: 120, // width: 120,
className: 'text-right', // className: 'text-right',
format: item => `${item.billvatrate ? ((item.billvatrate as number) * 100).toFixed(2) : 0}%` // format: item => `${item.billvatrate ? ((item.billvatrate as number) * 100).toFixed(2) : 0}%`
}, // },
{ {
title: '申请金额', title: '申请金额',
index: 'billkpnotax', index: 'billkpnotax',

View File

@ -55,6 +55,8 @@ export class InvoiceRequestedComponent {
}; };
afterRes = (data: any[], rawData?: any) => { afterRes = (data: any[], rawData?: any) => {
this.totalCallNo = 0;
this.selectedRows = [];
return data.map(item => ({ return data.map(item => ({
...item, ...item,
disabled: item.expressHSts disabled: item.expressHSts

View File

@ -47,6 +47,8 @@ export class RequestedInvoiceModalComponent {
if (res) { if (res) {
this.service.msgSrv.success('移除成功'); this.service.msgSrv.success('移除成功');
this.modal.destroy(true); this.modal.destroy(true);
} else {
this.service.msgSrv.warning('移除失败');
} }
}); });
} }