This commit is contained in:
Taric Xin
2022-01-19 11:37:10 +08:00
parent 4ccb9db42a
commit 54565374c0
14 changed files with 240 additions and 138 deletions

View File

@ -21,6 +21,10 @@
}
}
}
.text-truncate {
white-space: normal;
}
}
.expend-options {

View File

@ -144,18 +144,46 @@ export class InvoiceDetailComponent implements OnInit {
private initOrderST(): STColumn[] {
return [
{ title: '订单号', index: 'billHId' },
{ title: '订单完成日期', index: 'billTime', type: 'date' },
{ title: '所属项目', index: 'projectId' },
{ title: '订单类型', index: 'billType' },
{ title: '装货地', index: 'loadingfrom' },
{ title: '卸货地', index: 'loadingto' },
{ title: '货物信息', index: 'goodsinfo' },
{ title: '承运司机', index: 'driverinfo' },
{ title: '申请金额', index: 'billkpnotax' },
{ title: '运输费', index: 'fjfmoney2' },
{ title: '附加费', index: 'fjfmoney' },
{ title: '开票金额', index: 'billkpmoney' }
{ title: '订单号', index: 'billHId', width: 140 },
{ title: '订单完成日期', index: 'billTime', type: 'date', width: 150 },
{ title: '所属项目', index: 'projectId', width: 140 },
{ title: '订单类型', index: 'billType', width: 120 },
{ title: '装货地', index: 'loadingfrom', width: 200 },
{ title: '卸货地', index: 'loadingto', width: 200 },
{ title: '货物信息', index: 'goodsinfo', width: 140 },
{ title: '承运司机', index: 'driverinfo', width: 140 },
{
title: '申请金额',
index: 'billkpnotax',
width: 120,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.billkpnotax }) }
},
{
title: '运输费',
index: 'fjfmoney2',
width: 120,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.fjfmoney2 }) }
},
{
title: '附加费',
index: 'fjfmoney',
width: 120,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.fjfmoney }) }
},
{
title: '开票金额',
index: 'billkpmoney',
width: 120,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.billkpmoney }) }
}
];
}
@ -187,20 +215,46 @@ export class InvoiceDetailComponent implements OnInit {
{ title: '订单日期', index: 'createTime', type: 'date' },
{ title: '计费日期', index: 'callNo', type: 'date' },
{ title: '税率', index: 'vatrate' },
{ title: '申请金额', index: 'vatmoney' },
{ title: '开票金额', index: 'vatnotax' }
{
title: '申请金额',
index: 'vatmoney',
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatmoney }) }
},
{
title: '开票金额',
index: 'vatnotax',
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatnotax }) }
}
];
}
private initInvoiceST(): STColumn[] {
return [
{ title: '服务名称', render: 'vatname' },
{ title: '服务名称', render: 'vatname', width: 350 },
{ title: '规格型号', render: 'vatmodel' },
{ title: '单位', render: 'vatunit' },
{ title: '数量', render: 'vatqty' },
{ title: '金额', index: 'vatnotax' },
{ title: '税率', index: 'vatrate' },
{ title: '税额', index: 'vattax' }
{ title: '单位', render: 'vatunit', width: 100 },
{ title: '数量', render: 'vatqty', width: 140, className: 'text-right' },
{
title: '金额',
index: 'vatnotax',
width: 140,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatnotax }) }
},
{ title: '税率', index: 'vatrate', width: 140, className: 'text-right' },
{
title: '税额',
index: 'vattax',
width: 140,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vattax }) }
}
];
}
}