nursing_unit_vue/src/views/elder/elderinfo/ElderInfo.data.ts

196 lines
5.7 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: 'nuId',
},
{
title: '长者姓名',
align: 'center',
dataIndex: 'name',
},
{
title: '性别',
align: 'center',
dataIndex: 'sex',
},
{
title: '年龄',
align: 'center',
dataIndex: 'age',
},
{
title: '监护人姓名',
align: 'center',
dataIndex: 'guardianName',
},
{
title: '关系',
align: 'center',
dataIndex: 'relationship',
},
{
title: '监护人电话',
align: 'center',
dataIndex: 'guardianPhone',
},
];
export const elderColumns: BasicColumn[] = [
{
title: '护理单元',
align: 'center',
dataIndex: 'nuId',
},
{
title: '长者姓名',
align: 'center',
dataIndex: 'name',
},
{
title: '性别',
align: 'center',
dataIndex: 'sex',
},
{
title: '年龄',
align: 'center',
dataIndex: 'age',
},
// {
// title: '监护人姓名',
// align: 'center',
// dataIndex: 'guardianName',
// },
// {
// title: '关系',
// align: 'center',
// dataIndex: 'relationship',
// },
// {
// title: '监护人电话',
// align: 'center',
// dataIndex: 'guardianPhone',
// },
];
export const guaColumns: BasicColumn[] = [
// {
// title: '护理单元',
// align: 'center',
// dataIndex: 'nuId',
// },
// {
// title: '性别',
// align: 'center',
// dataIndex: 'sex',
// },
// {
// title: '年龄',
// align: 'center',
// dataIndex: 'age',
// },
{
title: '监护人姓名',
align: 'center',
dataIndex: 'guardianName',
},
{
title: '关系',
align: 'center',
dataIndex: 'relationship',
},
{
title: '监护人电话',
align: 'center',
dataIndex: 'guardianPhone',
},
{
title: '长者姓名',
align: 'center',
dataIndex: 'name',
},
];
// 高级查询数据
export const superQuerySchema = {
nuId: { title: '护理单元', order: 0, view: 'text', type: 'string' },
name: { title: '姓名', order: 1, view: 'text', type: 'string' },
sex: { title: '性别', order: 2, view: 'text', type: 'string' },
age: { title: '年龄', order: 3, view: 'text', type: 'string' },
idCard: { title: '身份证号码', order: 4, view: 'text', type: 'string' },
dateOfBirth: { title: '出生日期', order: 5, view: 'datetime', type: 'string' },
national: { title: '民族', order: 6, view: 'text', type: 'string' },
houseAddress: { title: '户籍所在地', order: 7, view: 'textarea', type: 'string' },
idCardPositive: { title: '身份证正面', order: 8, view: 'image', type: 'string' },
idCardNegative: { title: '身份证反面', order: 9, view: 'image', type: 'string' },
guardianName: { title: '监护人姓名', order: 10, view: 'text', type: 'string' },
relationship: { title: '关系', order: 11, view: 'text', type: 'string' },
guardianIdCard: { title: '监护人身份证号', order: 12, view: 'text', type: 'string' },
guardianPhone: { title: '联系电话', order: 13, view: 'text', type: 'string' },
guardianHomeAddress: { title: '监护人家庭住址', order: 14, view: 'text', type: 'string' },
guardianWorkUnit: { title: '监护人工作单位', order: 15, view: 'text', type: 'string' },
issuingAuthority: { title: '签发机关', order: 16, view: 'text', type: 'string' },
startTime: { title: '有效开始日期', order: 17, view: 'datetime', type: 'string' },
endTime: { title: '有效结束日期', order: 18, view: 'datetime', type: 'string' },
};
export const applyObj = {
id: 'id',
nuId: '护理单元',
name: '姓名',
sex: '性别',
age: '年龄',
idCard: '身份证号码',
dateOfBirth: '出生日期',
national: '民族',
houseAddress: '住址',
avatarPath: '头像',
medicalType: '医保类型',
reimbType: '报销类型',
medicalCard: '医保卡号',
educationLevel: '文化程度',
maritalStatus: '婚姻状况',
religiousBeliefs: '宗教信仰',
idCardPositive: '身份证正面',
idCardNegative: '身份证反面',
accountBookHimself: '户口本本人页',
frontMedical: '医保卡正面',
negaticeMedical: '医保卡反面',
content: '备注',
currentState: '当前状态 0咨询 1入住 2留床 3退住',
guardianOpenId: '监护人openId',
guardianName: '监护人姓名',
relationship: '监护人与老人关系',
guardianIdCard: '监护人身份证号',
guardianPhone: '监护人联系电话',
guardianDateOfBirth: '监护人出生日期',
guardianHomeAddress: '监护人家庭住址',
guardianWorkUnit: '监护人工作单位',
homeAddress: '住址',
delFlag: '是否删除 0未删除 1删除',
createBy: '创建人',
createTime: '创建日期',
updateBy: '更新人',
updateTime: '更新日期',
sysOrgCode: '所属部门',
issuingAuthority: '签发机关',
startTime: '有效开始日期',
endTime: '有效结束日期',
cardIssuing: '发卡日期',
bloodType: '血型',
militaryType: '兵役状况',
guardianModifyStatus: '监护人信息变更状态 1修改申请中 2通过 3驳回',
guardianModifyContent: '监护人信息变更驳回原因',
guardianModifyId: '监护人变更信息对应子表id nu_biz_elder_modify_info.id',
elderModifyStatus: '长者信息变更状态 1修改申请中 2通过 3驳回',
elderModifyContent: '长者信息变更驳回原因',
elderModifyId: '长者变更信息对应子表id nu_biz_elder_modify_info.id',
};