edit
This commit is contained in:
@ -18,6 +18,6 @@
|
|||||||
<nz-card>
|
<nz-card>
|
||||||
<!-- 数据列表 -->
|
<!-- 数据列表 -->
|
||||||
<st #st [columns]="columns" [data]='service.$api_freight_config_page' [req]="{ process: beforeReq }"
|
<st #st [columns]="columns" [data]='service.$api_freight_config_page' [req]="{ process: beforeReq }"
|
||||||
[loading]="service.http.loading">
|
[scroll]="{ x: '1200px' }" [loading]="service.http.loading">
|
||||||
</st>
|
</st>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
@ -118,26 +118,26 @@ export class FreightConfigComponent implements OnInit {
|
|||||||
|
|
||||||
initST(): STColumn[] {
|
initST(): STColumn[] {
|
||||||
return [
|
return [
|
||||||
{ title: '企业名称', className: 'text-center', index: 'enterpriseName', width: 160 },
|
{ title: '企业名称', className: 'text-center', index: 'enterpriseName', width: 350 },
|
||||||
{ title: '网络货运人', className: 'text-center', index: 'netTranName', width: 160 },
|
{ title: '网络货运人', className: 'text-center', index: 'netTranName', width: 160 },
|
||||||
{
|
{
|
||||||
title: '合同单费率',
|
title: '合同单费率',
|
||||||
className: 'text-right',
|
className: 'text-right',
|
||||||
index: 'contractSurchargeRatio',
|
index: 'contractSurchargeRatio',
|
||||||
width: 140,
|
width: 130,
|
||||||
format: item => `${item.contractSurchargeRatio}%`
|
format: item => `${item.contractSurchargeRatio}%`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '货源单费率',
|
title: '货源单费率',
|
||||||
className: 'text-right',
|
className: 'text-right',
|
||||||
index: 'goodsSurchargeRatio',
|
index: 'goodsSurchargeRatio',
|
||||||
width: 140,
|
width: 130,
|
||||||
format: item => `${item.goodsSurchargeRatio}%`
|
format: item => `${item.goodsSurchargeRatio}%`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '合同单业务量(元)',
|
title: '合同单业务量(元)',
|
||||||
index: 'contractQuota',
|
index: 'contractQuota',
|
||||||
width: 100,
|
width: 140,
|
||||||
type: 'widget',
|
type: 'widget',
|
||||||
className: 'text-right',
|
className: 'text-right',
|
||||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.contractQuota }) }
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.contractQuota }) }
|
||||||
@ -145,14 +145,15 @@ export class FreightConfigComponent implements OnInit {
|
|||||||
{
|
{
|
||||||
title: '货源单业务量(元)',
|
title: '货源单业务量(元)',
|
||||||
index: 'goodsQuota',
|
index: 'goodsQuota',
|
||||||
width: 100,
|
width: 140,
|
||||||
type: 'widget',
|
type: 'widget',
|
||||||
className: 'text-right',
|
className: 'text-right',
|
||||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.goodsQuota }) }
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.goodsQuota }) }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
width: '110px',
|
width: '90px',
|
||||||
|
fixed: 'right',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -38,14 +38,6 @@
|
|||||||
|
|
||||||
<st #st [columns]="columns" [data]='service.$api_get_freight_list' [req]="{ process: beforeReq }"
|
<st #st [columns]="columns" [data]='service.$api_get_freight_list' [req]="{ process: beforeReq }"
|
||||||
[res]="{ process: dataProcess }" [scroll]="{ x: '1200px' }" [loading]="loadingList">
|
[res]="{ process: dataProcess }" [scroll]="{ x: '1200px' }" [loading]="loadingList">
|
||||||
<ng-template st-row="enterpriseName" let-item let-index="index">
|
|
||||||
<div nz-tooltip [nzTooltipTitle]="item.enterpriseName">
|
|
||||||
<div
|
|
||||||
style="display: inline-block; max-width: 280px; margin: 0 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis">
|
|
||||||
{{ item.enterpriseName }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ng-template>
|
|
||||||
<ng-template st-row="contacter" let-item let-index="index">
|
<ng-template st-row="contacter" let-item let-index="index">
|
||||||
{{ item.contacter }}<br>/{{item.mobile}}
|
{{ item.contacter }}<br>/{{item.mobile}}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|||||||
Reference in New Issue
Block a user