import { BasicColumn } from '@/components/Table'; import { FormSchema } from '/@/components/Form'; import { listDictModel } from '@/api/common'; export const BasicTab = [ { key: '0', label: '全部', value: 128, hasValue: true, hasBracket: true, }, { key: '1', label: '新患者', value: 12, hasValue: true, prefixColor: '#1BC1B3', // valueColor: 'red', hasBracket: true, }, { key: '2', label: '无处方', value: 18, hasValue: true, prefixColor: '#D3D8DD', hasBracket: true, }, { key: '3', label: '阳性', value: 18, hasValue: true, prefixColor: '#F7B500', hasBracket: true, }, ]; export const BasicTabActive = BasicTab[0].key; // 抽屉搜索条件 export const siftFormSchema: FormSchema[] = [ { label: '性别', field: 'gender', component: 'ApiRadioGroup', componentProps: { api: listDictModel, params: { dictCode: 'pb_sex', }, }, }, { label: '年龄', field: 'code', component: 'Slider', componentProps: { placeholder: '请输入年龄', max: 99, min: 0, range: true, tooltipPlacement: 'bottom', tooltipVisible: true, tipFormatter: (value: number) => { return `${value}岁`; }, marks: { 0: '0岁', 99: '99岁', }, }, }, { label: '首次透析日期', field: 'firstDialysisTime', component: 'RangePicker', componentProps: { format: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD', getPopupContainer: () => document.body, }, }, { label: '手术史', field: 'operationTime', component: 'RangePicker', componentProps: { format: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD', getPopupContainer: () => document.body, }, }, { label: '传染病开始日期范围', field: 'contagiousStartTime', component: 'RangePicker', componentProps: { format: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD', getPopupContainer: () => document.body, }, }, { label: '传染病结束日期范围', field: 'contagiousEndTime', component: 'RangePicker', componentProps: { format: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD', getPopupContainer: () => document.body, }, }, ]; export const columns: BasicColumn[] = [ { title: '编号', dataIndex: 'uniqueNo', align: 'left', }, { title: '姓名', dataIndex: 'name', align: 'left', }, { title: '性别', dataIndex: 'gender', align: 'left', }, { title: '出生日期', dataIndex: 'birthday', align: 'left', sorter: true, }, { title: '年龄', dataIndex: 'age', align: 'left', }, { title: '身高(cm)', dataIndex: 'height', align: 'left', }, { title: '建档时间', dataIndex: 'createTime', align: 'left', width: 180, sorter: true, }, { title: '类型', dataIndex: 'type', align: 'left', }, { title: '首次透析日期', dataIndex: 'firstDialysisTime', align: 'left', }, { title: '首次透析方式', dataIndex: 'firstDialysisType', align: 'left', }, { title: '当前血管通路', dataIndex: 'vascularAccess', align: 'left', }, { title: '传染标识', dataIndex: 'infectiousDiseases', align: 'left', }, { title: '转归', dataIndex: 'patientReturn', align: 'left', }, ];