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: 'categoryId_dictText', customCell: (record, index, column) => { if (record.categoryRowSpan != null) { return { rowSpan: record.categoryRowSpan }; } }, }, { title: '服务类型', align: 'center', dataIndex: 'typeId_dictText', customCell: (record, index, column) => { if (record.typeRowSpan != null) { return { rowSpan: record.typeRowSpan }; } }, }, { title: '分类标签', align: 'center', dataIndex: 'instructionTagId_dictText', width: 100, customCell: (record, index, column) => { if (record.instructionRowSpan != null) { return { rowSpan: record.instructionRowSpan }; } }, }, { title: '服务指令名称', align: 'center', dataIndex: 'directiveName', }, { title: '指令标签', align: 'center', dataIndex: 'tagList', width: 150, ellipsis: false, format(text, record, index) { if (!!text) { return text.map((item) => item.tagName).join('、'); } else { return '-'; } }, }, { title: '收费价格', align: 'center', dataIndex: 'tollPrice', width: 100, }, { title: '提成价格', align: 'center', dataIndex: 'comPrice', }, { title: '医保报销', align: 'center', dataIndex: 'izReimbursement_dictText', width: 100, }, { title: '机构优惠', align: 'center', dataIndex: 'izPreferential_dictText', width: 100, }, { title: '收费频次', align: 'center', dataIndex: 'chargingFrequency_dictText', }, { title: '周期类型', align: 'center', dataIndex: 'cycleType_dictText', }, // { // title: '排序', // align: "center", // sorter: true, // dataIndex: 'sort' // }, // { // title: '服务说明', // align: "center", // dataIndex: 'serviceContent' // }, { title: '服务时长(分钟)', align: 'center', dataIndex: 'serviceDuration', width: 135, }, { title: '是否启用', align: 'center', dataIndex: 'izEnabled_dictText', width: 100, }, { title: '语音文件', align: 'center', dataIndex: 'mp3File', }, { title: '视频文件', align: 'center', dataIndex: 'mp4File', }, // { // title: '创建人', // align: "center", // dataIndex: 'createBy' // }, // { // title: '创建日期', // align: "center", // sorter: true, // dataIndex: 'createTime' // }, // { // title: '更新人', // align: "center", // dataIndex: 'updateBy' // }, // { // title: '更新日期', // align: "center", // sorter: true, // dataIndex: 'updateTime' // }, { title: '预览图片', align: 'center', dataIndex: 'previewFile', customRender: render.renderImage, }, { title: '即时指令图片', align: 'center', dataIndex: 'immediateFile', customRender: render.renderImage, }, ]; // 高级查询数据 export const superQuerySchema = { categoryId: { title: '服务类别', order: 0, view: 'list', type: 'string', dictCode: '' }, typeId: { title: '服务类型', order: 1, view: 'list', type: 'string', dictCode: '' }, instructionTagId: { title: '分类标签', order: 2, view: 'list', type: 'string', dictCode: 'instruction_tag' }, directiveName: { title: '服务指令名称', order: 3, view: 'text', type: 'string' }, tollPrice: { title: '收费价格', order: 4, view: 'number', type: 'number' }, comPrice: { title: '提成价格', order: 5, view: 'number', type: 'number' }, izReimbursement: { title: '医保报销', order: 6, view: 'radio', type: 'string', dictCode: '' }, izPreferential: { title: '机构优惠', order: 7, view: 'radio', type: 'string', dictCode: '' }, chargingFrequency: { title: '收费频次', order: 8, view: 'list', type: 'string', dictCode: '' }, cycleType: { title: '周期类型', order: 9, view: 'list', type: 'string', dictCode: '' }, sort: { title: '排序', order: 10, view: 'number', type: 'number' }, serviceContent: { title: '服务说明', order: 11, view: 'textarea', type: 'string' }, serviceDuration: { title: '服务时长(分钟)', order: 12, view: 'text', type: 'string' }, izEnabled: { title: '是否启用', order: 13, view: 'radio', type: 'string', dictCode: '' }, createBy: { title: '创建人', order: 14, view: 'text', type: 'string' }, createTime: { title: '创建日期', order: 15, view: 'datetime', type: 'string' }, updateBy: { title: '更新人', order: 16, view: 'text', type: 'string' }, updateTime: { title: '更新日期', order: 17, view: 'datetime', type: 'string' }, mp3File: { title: '语音文件', order: 18, view: 'file', type: 'string' }, mp4File: { title: '视频文件', order: 19, view: 'file', type: 'string' }, };