hldy_vue/src/views/services/directivebk/DirectiveBkItem.data.ts

77 lines
2.5 KiB
TypeScript

import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { rules } from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '分类标签',
align: 'center',
dataIndex: 'instructionName',
},
{
title: '服务类别',
align: 'center',
dataIndex: 'categoryName',
},
{
title: '服务类型',
align: 'center',
dataIndex: 'typeName',
},
// {
// title: '周期类型',
// align: 'center',
// dataIndex: 'cycleTypeName',
// },
{
title: '服务指令',
align: 'center',
dataIndex: 'directiveName',
},
{
title: '收费价格(元)',
align: 'center',
dataIndex: 'tollPrice',
},
{
title: '提成价格(元)',
align: 'center',
dataIndex: 'comPrice',
},
{
title: '服务说明',
align: 'center',
dataIndex: 'serviceContent',
},
{
title: '服务时长(分钟)',
align: 'center',
dataIndex: 'serviceDuration',
},
{
title: '超时时长(分钟)',
align: 'center',
dataIndex: 'timeoutDuration',
},
];
// 高级查询数据
export const superQuerySchema = {
directiveName: { title: '服务指令名称', order: 0, view: 'text', type: 'string' },
tollPrice: { title: '收费价格', order: 1, view: 'number', type: 'number' },
comPrice: { title: '提成价格', order: 2, view: 'number', type: 'number' },
serviceContent: { title: '服务说明', order: 3, view: 'text', type: 'string' },
serviceDuration: { title: '服务时长(分钟)', order: 4, view: 'text', type: 'string' },
izEnabled: { title: '是否启用 0启用 1未启用', order: 5, view: 'text', type: 'string' },
mp3File: { title: '语音文件', order: 6, view: 'text', type: 'string' },
mp4File: { title: '视频文件', order: 7, view: 'text', type: 'string' },
previewFile: { title: '预览图片', order: 8, view: 'text', type: 'string' },
immediateFile: { title: '即时指令图片', order: 9, view: 'text', type: 'string' },
instructionName: { title: '分类标签中文名称', order: 10, view: 'text', type: 'string' },
categoryName: { title: '服务类别中文名称', order: 11, view: 'text', type: 'string' },
typeName: { title: '服务类型中文名称', order: 12, view: 'text', type: 'string' },
cycleTypeName: { title: '周期类型中文名称', order: 13, view: 'text', type: 'string' },
};