fix bug
This commit is contained in:
@ -26,23 +26,33 @@ export class DatatableOwnerComponent implements OnInit {
|
||||
schema: SFSchema = {};
|
||||
|
||||
columns: STColumn[] = [
|
||||
{ title: '货主名称', index: 'networkTransporterName', className: 'text-center' },
|
||||
{ title: '注册时间', index: 'zsl', className: 'text-center' },
|
||||
{ title: '客户类型', index: 'yingsje', className: 'text-center' },
|
||||
{ title: '业务员', index: 'cys', className: 'text-center' },
|
||||
{ title: '合伙人', index: 'yingfyf', className: 'text-center' },
|
||||
{ title: '客户状态', index: 'yl', className: 'text-center' },
|
||||
{ title: '订单数', index: 'djd', className: 'text-center' },
|
||||
{ title: '订单金额', index: 'ysz', className: 'text-center' },
|
||||
{ title: '应收订单数', index: 'yswc', className: 'text-center' },
|
||||
{ title: '应收金额', index: 'yisje', className: 'text-center' },
|
||||
{ title: '货主名称', index: 'enterpriseName', className: 'text-center' },
|
||||
{ title: '注册时间', index: 'registerTime', className: 'text-center' },
|
||||
{ title: '客户类型', index: 'customerType', className: 'text-center', type: 'enum', enum: {
|
||||
1: '平台客户',
|
||||
2: '直客',
|
||||
3: '渠道客户'
|
||||
}
|
||||
},
|
||||
{ title: '业务员', index: 'salesmanName', className: 'text-center' },
|
||||
{ title: '合伙人', index: 'partnerName', className: 'text-center' },
|
||||
{ title: '客户状态', index: 'customerStatus', className: 'text-center', type: 'enum', enum: {
|
||||
1: '未激活',
|
||||
2: '沉默',
|
||||
3: '流失',
|
||||
4: '活跃'
|
||||
} },
|
||||
{ title: '订单数', index: 'zsl', className: 'text-center' },
|
||||
{ title: '订单金额', index: 'ddje', className: 'text-center' },
|
||||
{ title: '应收订单数', index: 'ysdds', className: 'text-center' },
|
||||
{ title: '应收金额', index: 'yingsje', className: 'text-center' },
|
||||
{ title: '待开票订单数', index: 'yifyf', className: 'text-center' },
|
||||
{ title: '待开票金额', index: 'yifyf', className: 'text-center' },
|
||||
{ title: '已收金额', render: 'yifyf', className: 'text-center' },
|
||||
{ title: '附加费金额', index: 'yifyf', className: 'text-center' },
|
||||
{ title: '已收附加费', index: 'yifyf', className: 'text-center' },
|
||||
{ title: '附加费率', index: 'yifyf', className: 'text-center' },
|
||||
{ title: '已开票金额', index: 'yifyf', className: 'text-center' }
|
||||
{ title: '待开票金额', index: 'dkpdds', className: 'text-center' },
|
||||
{ title: '已收金额', render: 'yisje', className: 'text-center' },
|
||||
{ title: '应收附加费', index: 'yingsfjf', className: 'text-center' },
|
||||
{ title: '已收附加费', index: 'yisfjf', className: 'text-center' },
|
||||
{ title: '附加费率', index: 'fjfl', className: 'text-center' },
|
||||
{ title: '已开票金额', index: 'ykpje', className: 'text-center' }
|
||||
];
|
||||
/**
|
||||
* 查询参数
|
||||
@ -59,7 +69,8 @@ export class DatatableOwnerComponent implements OnInit {
|
||||
}
|
||||
let params: any = {
|
||||
time: this.time,
|
||||
type: this.type
|
||||
type: this.type,
|
||||
...this.sf?.value
|
||||
};
|
||||
|
||||
delete params._$expand;
|
||||
@ -76,28 +87,41 @@ export class DatatableOwnerComponent implements OnInit {
|
||||
this.schema = {
|
||||
properties: {
|
||||
_$expand: { type: 'boolean', ui: { hidden: true } },
|
||||
billCode: {
|
||||
enterpriseName: {
|
||||
type: 'string',
|
||||
title: '货主名称',
|
||||
ui: {
|
||||
placeholder: '请输入',
|
||||
}
|
||||
},
|
||||
resourceCode: {
|
||||
customerType: {
|
||||
type: 'string',
|
||||
title: '客户类型',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
}
|
||||
},
|
||||
enum: [
|
||||
{label: '直客', value: 2},
|
||||
{label: '渠道客户', value: 3},
|
||||
{label: '平台客户', value: 1},
|
||||
]
|
||||
},
|
||||
loadingPlace: {
|
||||
customerStatus: {
|
||||
type: 'string',
|
||||
title: '客户状态',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
}
|
||||
},
|
||||
enum: [
|
||||
{label: '未激活', value: 1},
|
||||
{label: '沉默', value: 2},
|
||||
{label: '流失', value: 3},
|
||||
{label: '活跃', value: 4},
|
||||
]
|
||||
},
|
||||
createTime: {
|
||||
registerTime: {
|
||||
title: '注册时间',
|
||||
type: 'string',
|
||||
ui: {
|
||||
|
||||
Reference in New Issue
Block a user