42 lines
1.5 KiB
TypeScript
42 lines
1.5 KiB
TypeScript
import { BasicColumn, FormSchema } from '/@/components/Table';
|
|
|
|
export const columns: BasicColumn[] = [
|
|
{ title: '工单号', dataIndex: 'workOrderNo', width: 150 },
|
|
{ title: '销售', dataIndex: 'salesName', width: 100 },
|
|
{ title: '需求', dataIndex: 'demandTitle', width: 220 },
|
|
{ title: '业务类型', dataIndex: 'bizTypeLabel', width: 90 },
|
|
{ title: '状态', dataIndex: 'status', width: 90 },
|
|
{ title: '成本价', dataIndex: 'costPrice', width: 110 },
|
|
{ title: '售价', dataIndex: 'salePrice', width: 110 },
|
|
{ title: '毛利率', dataIndex: 'profitRate', width: 80 },
|
|
{ title: '事件异常', dataIndex: 'eventException', width: 120 },
|
|
{ title: '系统异常', dataIndex: 'systemException', width: 120 },
|
|
{ title: '创建时间', dataIndex: 'createTime', width: 170 },
|
|
];
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
{ field: 'keyword', label: '关键字', component: 'Input', colProps: { span: 6 } },
|
|
{
|
|
field: 'status',
|
|
label: '状态',
|
|
component: 'Select',
|
|
colProps: { span: 5 },
|
|
componentProps: {
|
|
options: ['询价中', '已报价', '协商中', '转人工', '已成交', '未成交', '已关闭'].map((v) => ({ label: v, value: v })),
|
|
},
|
|
},
|
|
{
|
|
field: 'bizType',
|
|
label: '业务类型',
|
|
component: 'Select',
|
|
colProps: { span: 5 },
|
|
componentProps: {
|
|
options: [
|
|
{ label: '空运', value: '空运' },
|
|
{ label: '海运', value: '海运' },
|
|
{ label: '陆运', value: '陆运' },
|
|
],
|
|
},
|
|
},
|
|
];
|