fix bug
This commit is contained in:
@ -113,7 +113,7 @@
|
||||
<nz-tab nzTitle="发票明细">
|
||||
<st #invoiceST [data]="service.$api_get_invoice_details" [columns]="invoiceColumns" size="small" bordered="true"
|
||||
[page]="{}" [req]="{ process: beforeReq }" [loading]="false" [scroll]="{ x: '1200px', y: '250px' }">
|
||||
<ng-template st-row="vatname" let-item let-index="index">
|
||||
<ng-template st-row="vatnameLabel" let-item let-index="index">
|
||||
<nz-select *ngIf="isEdit" [ngModel]="item.vatname"
|
||||
(ngModelChange)="invoiceST.setRow(index, { vatname: $event })" style="width: 100%">
|
||||
<nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of services"></nz-option>
|
||||
|
||||
@ -278,17 +278,17 @@ export class InvoiceDetailComponent implements OnInit {
|
||||
|
||||
private initInvoiceST(): STColumn[] {
|
||||
return [
|
||||
{ title: '服务名称', render: 'vatname', width: 350 },
|
||||
{ title: '服务名称', render: 'vatnameLabel', width: 350 },
|
||||
{ title: '规格型号', render: 'vatmodel' },
|
||||
{ title: '单位', render: 'vatunit', width: 100 },
|
||||
{ title: '数量', render: 'vatqty', width: 140, className: 'text-right' },
|
||||
{
|
||||
title: '金额',
|
||||
index: 'vatnotax',
|
||||
index: 'vattax',
|
||||
width: 140,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatnotax }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vattax }) }
|
||||
},
|
||||
{
|
||||
title: '税率',
|
||||
@ -299,11 +299,11 @@ export class InvoiceDetailComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
title: '税额',
|
||||
index: 'vattax',
|
||||
index: 'vatnotax',
|
||||
width: 140,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vattax }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatnotax }) }
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user