// //#region 性别 // export enum SexType { // Male = 1, // FeMale = 2 // } // export function getSexTypeLable(value: any): string { // const type = value as SexType; // switch (type) { // case SexType.Male: // return '男'; // case SexType.FeMale: // return '女'; // } // return '未知'; // } // export function getSexTypeLabel(value: any): string { // const type = value as SexType; // switch (type) { // case SexType.Male: // return '男'; // case SexType.FeMale: // return '女'; // } // return '未知'; // } // export function getSexTypeOptions(): any[] { // return [ // { label: '男', value: SexType.Male }, // { label: '女', value: SexType.FeMale }, // ]; // } // //#endregion 性别 // //#region 民族 // /** // * 民族 // */ // export enum NationType { // /** // * 汉族 // */ // Nation01 = 1, // /** // * 满族 // */ // Nation02 = Nation01 + 1, // /** // * 蒙古族 // */ // Nation03 = Nation02 + 1, // /** // * 回族 // */ // Nation04 = Nation03 + 1, // /** // * 藏族 // */ // Nation05 = Nation04 + 1, // /** // * 维吾尔族 // */ // Nation06 = Nation05 + 1, // /** // * 苗族 // */ // Nation07 = Nation06 + 1, // /** // * 彝族 // */ // Nation08 = Nation07 + 1, // /** // * 壮族 // */ // Nation09 = Nation08 + 1, // /** // * 布依族 // */ // Nation10 = Nation09 + 1, // /** // * 侗族 // */ // Nation11 = Nation10 + 1, // /** // * 瑶族 // */ // Nation12 = Nation11 + 1, // /** // * 白族 // */ // Nation13 = Nation12 + 1, // /** // * 土家族 // */ // Nation14 = Nation13 + 1, // /** // * 哈尼族 // */ // Nation15 = Nation14 + 1, // /** // * 哈萨克族 // */ // Nation16 = Nation15 + 1, // /** // * 傣族 // */ // Nation17 = Nation16 + 1, // /** // * 黎族 // */ // Nation18 = Nation17 + 1, // /** // * 傈僳族 // */ // Nation19 = Nation18 + 1, // /** // * 佤族 // */ // Nation20 = Nation19 + 1, // /** // * 畲族 // */ // Nation21 = Nation20 + 1, // /** // * 高山族 // */ // Nation22 = Nation21 + 1, // /** // * 拉祜族 // */ // Nation23 = Nation22 + 1, // /** // * 水族 // */ // Nation24 = Nation23 + 1, // /** // * 东乡族 // */ // Nation25 = Nation24 + 1, // /** // * 纳西族 // */ // Nation26 = Nation25 + 1, // /** // * 景颇族 // */ // Nation27 = Nation26 + 1, // /** // * 柯尔克孜族 // */ // Nation28 = Nation27 + 1, // /** // * 土族 // */ // Nation29 = Nation28 + 1, // /** // * 达斡尔族 // */ // Nation30 = Nation29 + 1, // /** // * 仫佬族 // */ // Nation31 = Nation30 + 1, // /** // * 羌族 // */ // Nation32 = Nation31 + 1, // /** // * 布朗族 // */ // Nation33 = Nation32 + 1, // /** // * 撒拉族 // */ // Nation34 = Nation33 + 1, // /** // * 毛南族 // */ // Nation35 = Nation34 + 1, // /** // * 仡佬族 // */ // Nation36 = Nation35 + 1, // /** // * 锡伯族 // */ // Nation37 = Nation36 + 1, // /** // * 阿昌族 // */ // Nation38 = Nation37 + 1, // /** // * 普米族 // */ // Nation39 = Nation38 + 1, // /** // * 塔吉克族 // */ // Nation40 = Nation39 + 1, // /** // * 怒族 // */ // Nation41 = Nation40 + 1, // /** // * 乌孜别克族 // */ // Nation42 = Nation41 + 1, // /** // * 俄罗斯族 // */ // Nation43 = Nation42 + 1, // /** // * 鄂温克族 // */ // Nation44 = Nation43 + 1, // /** // * 德昂族 // */ // Nation45 = Nation44 + 1, // /** // * 保安族 // */ // Nation46 = Nation45 + 1, // /** // * 裕固族 // */ // Nation47 = Nation46 + 1, // /** // * 京族 // */ // Nation48 = Nation47 + 1, // /** // * 塔塔尔族 // */ // Nation49 = Nation48 + 1, // /** // * 独龙族 // */ // Nation50 = Nation49 + 1, // /** // * 鄂伦春族 // */ // Nation51 = Nation50 + 1, // /** // * 赫哲族 // */ // Nation52 = Nation51 + 1, // /** // * 门巴族 // */ // Nation53 = Nation52 + 1, // /** // * 珞巴族 // */ // Nation54 = Nation53 + 1, // /** // * 基诺族 // */ // Nation55 = Nation54 + 1, // /** // * 朝鲜族 // */ // Nation56 = Nation55 + 1, // } // const NationMap = new Map() as Map // function initNationMap() { // NationMap.set(NationType.Nation01, "汉族"); // NationMap.set(NationType.Nation02, "满族"); // NationMap.set(NationType.Nation03, "蒙古族"); // NationMap.set(NationType.Nation04, "回族"); // NationMap.set(NationType.Nation05, "藏族"); // NationMap.set(NationType.Nation06, "维吾尔族"); // NationMap.set(NationType.Nation07, "苗族"); // NationMap.set(NationType.Nation08, "彝族"); // NationMap.set(NationType.Nation09, "壮族"); // NationMap.set(NationType.Nation10, "布依族"); // NationMap.set(NationType.Nation11, "侗族"); // NationMap.set(NationType.Nation12, "瑶族"); // NationMap.set(NationType.Nation13, "白族"); // NationMap.set(NationType.Nation14, "土家族"); // NationMap.set(NationType.Nation15, "哈尼族"); // NationMap.set(NationType.Nation16, "哈萨克族"); // NationMap.set(NationType.Nation17, "傣族"); // NationMap.set(NationType.Nation18, "黎族"); // NationMap.set(NationType.Nation19, "傈僳族"); // NationMap.set(NationType.Nation20, "佤族"); // NationMap.set(NationType.Nation21, "畲族"); // NationMap.set(NationType.Nation22, "高山族"); // NationMap.set(NationType.Nation23, "拉祜族"); // NationMap.set(NationType.Nation24, "水族"); // NationMap.set(NationType.Nation25, "东乡族"); // NationMap.set(NationType.Nation26, "纳西族"); // NationMap.set(NationType.Nation27, "景颇族"); // NationMap.set(NationType.Nation28, "柯尔克孜族"); // NationMap.set(NationType.Nation29, "土族"); // NationMap.set(NationType.Nation30, "达斡尔族"); // NationMap.set(NationType.Nation31, "仫佬族"); // NationMap.set(NationType.Nation32, "羌族"); // NationMap.set(NationType.Nation33, "布朗族"); // NationMap.set(NationType.Nation34, "撒拉族"); // NationMap.set(NationType.Nation35, "毛南族"); // NationMap.set(NationType.Nation36, "仡佬族"); // NationMap.set(NationType.Nation37, "锡伯族"); // NationMap.set(NationType.Nation38, "阿昌族"); // NationMap.set(NationType.Nation39, "普米族"); // NationMap.set(NationType.Nation40, "塔吉克族"); // NationMap.set(NationType.Nation41, "怒族"); // NationMap.set(NationType.Nation42, "乌孜别克族"); // NationMap.set(NationType.Nation43, "俄罗斯族"); // NationMap.set(NationType.Nation44, "鄂温克族"); // NationMap.set(NationType.Nation45, "德昂族"); // NationMap.set(NationType.Nation46, "保安族"); // NationMap.set(NationType.Nation47, "裕固族"); // NationMap.set(NationType.Nation48, "京族"); // NationMap.set(NationType.Nation49, "塔塔尔族"); // NationMap.set(NationType.Nation50, "独龙族"); // NationMap.set(NationType.Nation51, "鄂伦春族"); // NationMap.set(NationType.Nation52, "赫哲族"); // NationMap.set(NationType.Nation53, "门巴族"); // NationMap.set(NationType.Nation54, "珞巴族"); // NationMap.set(NationType.Nation55, "基诺族"); // NationMap.set(NationType.Nation56, "朝鲜族"); // } // initNationMap(); // export function getNationTypeOptions(): any[] { // const list = []; // for (const item of NationMap) { // list.push({ label: item[1], value: item[0] }) // } // return list; // } // export function getNationTypeLable(value: any): string { // const type = value as NationType; // const item = NationMap.get(type); // if (item) { // return item; // } // return '未知'; // } // export function getNationTypeLabel(value: any): string { // const type = value as NationType; // const item = NationMap.get(type); // if (item) { // return item; // } // return '未知'; // } // //#endregion 民族 // //#region 政治面貌 // /*** 政治面貌*/ // export enum PoliticalType { // /**未知 */ // None = 0, // /**群众 */ // Mass = None + 1, // /** 党员*/ // PartyMembers = Mass + 1, // /**团员 */ // LeagueMembers = PartyMembers + 1, // /**民主党派 */ // Democratic = LeagueMembers + 1, // } // export function getPoliticalTypeOptions(): any[] { // return [ // { label: '未知', value: PoliticalType.None }, // { label: '群众', value: PoliticalType.Mass }, // { label: '党员', value: PoliticalType.PartyMembers }, // { label: '团员', value: PoliticalType.LeagueMembers }, // { label: '民主党派', value: PoliticalType.Democratic }, // ]; // } // export function getPoliticalTypeLable(value: any): string { // const type = value as PoliticalType; // switch (type) { // case PoliticalType.None: // return '未知'; // case PoliticalType.Mass: // return '群众'; // case PoliticalType.PartyMembers: // return '党员'; // case PoliticalType.LeagueMembers: // return '团员'; // case PoliticalType.Democratic: // return '民主党派'; // } // return '未知'; // } // export function getPoliticalTypeLabel(value: any): string { // const type = value as PoliticalType; // switch (type) { // case PoliticalType.None: // return '未知'; // case PoliticalType.Mass: // return '群众'; // case PoliticalType.PartyMembers: // return '党员'; // case PoliticalType.LeagueMembers: // return '团员'; // case PoliticalType.Democratic: // return '民主党派'; // } // return '未知'; // } // //#endregion 政治面貌 // //#region 宗教信仰 // /**宗教信仰 */ // export enum ReligionType { // /** 无*/ // None = 0, // /** 基督教*/ // Religion1 = None + 1, // /** 天主教*/ // Religion2 = Religion1 + 1, // /** 伊斯兰教*/ // Religion3 = Religion2 + 1, // /** 佛教*/ // Religion4 = Religion3 + 1, // /** 道教*/ // Religion5 = Religion4 + 1, // } // export function getReligionTypeOptions(): any[] { // return [ // { label: '无', value: ReligionType.None }, // { label: '基督教', value: ReligionType.Religion1 }, // { label: '天主教', value: ReligionType.Religion2 }, // { label: '伊斯兰教', value: ReligionType.Religion3 }, // { label: '佛教', value: ReligionType.Religion4 }, // { label: '道教', value: ReligionType.Religion5 }, // ]; // } // export function getReligionTypeLable(value: any): string { // const type = value as ReligionType; // switch (type) { // case ReligionType.None: // return '无'; // case ReligionType.Religion1: // return '基督教'; // case ReligionType.Religion2: // return '天主教'; // case ReligionType.Religion3: // return '伊斯兰教'; // case ReligionType.Religion4: // return '佛教'; // case ReligionType.Religion5: // return '道教'; // } // return '未知'; // } // export function getReligionTypeLabel(value: any): string { // const type = value as ReligionType; // switch (type) { // case ReligionType.None: // return '无'; // case ReligionType.Religion1: // return '基督教'; // case ReligionType.Religion2: // return '天主教'; // case ReligionType.Religion3: // return '伊斯兰教'; // case ReligionType.Religion4: // return '佛教'; // case ReligionType.Religion5: // return '道教'; // } // return '未知'; // } // //#endregion 宗教信仰 // //#region 教育水平 // export enum EducationType { // /** 不详*/ // None = 0, // /** 文盲*/ // Education1 = None + 1, // /** 小学 */ // Education2 = Education1 + 1, // /** 初中*/ // Education3 = Education2 + 1, // /** 高中/技校/中专*/ // Education4 = Education3 + 1, // /** 大学专科及以上*/ // Education5 = Education4 + 1, // } // export function getEducationTypeOptions(): any[] { // return [ // { label: '不详', value: EducationType.None }, // { label: '文盲', value: EducationType.Education1 }, // { label: '小学', value: EducationType.Education2 }, // { label: '初中', value: EducationType.Education3 }, // { label: '高中/技校/中专', value: EducationType.Education4 }, // { label: '大学专科及以上', value: EducationType.Education5 }, // ]; // } // export function getEducationTypeLable(value: any): string { // const type = value as EducationType; // switch (type) { // case EducationType.None: // return '不详'; // case EducationType.Education1: // return '文盲'; // case EducationType.Education2: // return '小学'; // case EducationType.Education3: // return '初中'; // case EducationType.Education4: // return '高中/技校/中专'; // case EducationType.Education5: // return '大学专科及以上'; // } // return '不详'; // } // export function getEducationTypeLabel(value: any): string { // const type = value as EducationType; // switch (type) { // case EducationType.None: // return '不详'; // case EducationType.Education1: // return '文盲'; // case EducationType.Education2: // return '小学'; // case EducationType.Education3: // return '初中'; // case EducationType.Education4: // return '高中/技校/中专'; // case EducationType.Education5: // return '大学专科及以上'; // } // return '不详'; // } // //#endregion 教育水平 // //#region 居住情况 // export enum InhabitationType { // /** 不详*/ // None = 0, // /** 独居*/ // Inhabitation1 = None + 1, // /** 与配偶居住*/ // Inhabitation2 = Inhabitation1 + 1, // /** 与子女居住*/ // Inhabitation3 = Inhabitation2 + 1, // /** 与父母居住*/ // Inhabitation4 = Inhabitation3 + 1, // /** 与兄弟姐妹居住*/ // Inhabitation5 = Inhabitation4 + 1, // /** 与其他亲属居住*/ // Inhabitation6 = Inhabitation5 + 1, // /** 与非亲属关系的人居住*/ // Inhabitation7 = Inhabitation6 + 1, // /** 养老机构*/ // Inhabitation8 = Inhabitation7 + 1, // } // export function getInhabitationTypeOptions(): any[] { // return [ // { label: '不详', value: InhabitationType.None }, // { label: '独居', value: InhabitationType.Inhabitation1 }, // { label: '与配偶居住', value: InhabitationType.Inhabitation2 }, // { label: '与子女居住', value: InhabitationType.Inhabitation3 }, // { label: '与父母居住', value: InhabitationType.Inhabitation4 }, // { label: '与兄弟姐妹居住', value: InhabitationType.Inhabitation5 }, // { label: '与其他亲属居住', value: InhabitationType.Inhabitation6 }, // { label: '与非亲属关系的人居住', value: InhabitationType.Inhabitation7 }, // { label: '养老机构', value: InhabitationType.Inhabitation8 }, // ]; // } // export function getInhabitationTypeLable(value: any): string { // const type = value as InhabitationType; // switch (type) { // case InhabitationType.None: // return '不详'; // case InhabitationType.Inhabitation1: // return '独居'; // case InhabitationType.Inhabitation2: // return '与配偶居住'; // case InhabitationType.Inhabitation3: // return '与子女居住'; // case InhabitationType.Inhabitation4: // return '与父母居住'; // case InhabitationType.Inhabitation5: // return '与兄弟姐妹居住'; // case InhabitationType.Inhabitation6: // return '与其他亲属居住'; // case InhabitationType.Inhabitation7: // return '与非亲属关系的人居住'; // case InhabitationType.Inhabitation8: // return '养老机构'; // } // return '不详'; // } // export function getInhabitationTypeLabel(value: any): string { // const type = value as InhabitationType; // switch (type) { // case InhabitationType.None: // return '不详'; // case InhabitationType.Inhabitation1: // return '独居'; // case InhabitationType.Inhabitation2: // return '与配偶居住'; // case InhabitationType.Inhabitation3: // return '与子女居住'; // case InhabitationType.Inhabitation4: // return '与父母居住'; // case InhabitationType.Inhabitation5: // return '与兄弟姐妹居住'; // case InhabitationType.Inhabitation6: // return '与其他亲属居住'; // case InhabitationType.Inhabitation7: // return '与非亲属关系的人居住'; // case InhabitationType.Inhabitation8: // return '养老机构'; // } // return '不详'; // } // //#endregion 居住情况 // //#region 婚姻情况 // export enum MaritalStatus { // /** 不详*/ // None = 0, // /** 未婚*/ // Marital1 = None + 1, // /** 已婚*/ // Marital2 = Marital1 + 1, // /** 丧偶*/ // Marital3 = Marital2 + 1, // /** 离婚*/ // Marital4 = Marital3 + 1, // } // export function getMaritalStatusOptions(): any[] { // return [ // { label: '不详', value: MaritalStatus.None }, // { label: '未婚', value: MaritalStatus.Marital1 }, // { label: '已婚', value: MaritalStatus.Marital2 }, // { label: '丧偶', value: MaritalStatus.Marital3 }, // { label: '离婚', value: MaritalStatus.Marital4 }, // ]; // } // export function getMaritalStatusLable(value: any): string { // const type = value as MaritalStatus; // switch (type) { // case MaritalStatus.None: // return '不详'; // case MaritalStatus.Marital1: // return '未婚'; // case MaritalStatus.Marital2: // return '已婚'; // case MaritalStatus.Marital3: // return '丧偶'; // case MaritalStatus.Marital4: // return '离婚'; // } // return '不详'; // } // export function getMaritalStatusLabel(value: any): string { // const type = value as MaritalStatus; // switch (type) { // case MaritalStatus.None: // return '不详'; // case MaritalStatus.Marital1: // return '未婚'; // case MaritalStatus.Marital2: // return '已婚'; // case MaritalStatus.Marital3: // return '丧偶'; // case MaritalStatus.Marital4: // return '离婚'; // } // return '不详'; // } // //#endregion 婚姻情况 // //#region 医疗支付 // export enum MedicalPayment { // /** 不详*/ // None = 0, // /** 城镇职工基本医疗保险*/ // MedicalPayment1 = None + 1, // /** 城乡居民基本医疗保险*/ // MedicalPayment2 = MedicalPayment1 + 1, // /** 自费*/ // MedicalPayment3 = MedicalPayment2 + 1, // /** 公务员补助*/ // MedicalPayment4 = MedicalPayment3 + 1, // /** 企业补充保险*/ // MedicalPayment5 = MedicalPayment4 + 1, // /** 公费医疗及医疗照顾对象*/ // MedicalPayment6 = MedicalPayment5 + 1, // /** 医疗救助*/ // MedicalPayment7 = MedicalPayment6 + 1, // /** 大病保险*/ // MedicalPayment8 = MedicalPayment7 + 1, // } // export function getMedicalPaymentOptions(): any[] { // return [ // { label: '不详', value: MedicalPayment.None }, // { label: '城镇职工基本医疗保险', value: MedicalPayment.MedicalPayment1 }, // { label: '城乡居民基本医疗保险', value: MedicalPayment.MedicalPayment2 }, // { label: '自费', value: MedicalPayment.MedicalPayment3 }, // { label: '公务员补助', value: MedicalPayment.MedicalPayment4 }, // { label: '企业补充保险', value: MedicalPayment.MedicalPayment5 }, // { label: '公费医疗及医疗照顾对象', value: MedicalPayment.MedicalPayment6 }, // { label: '医疗救助', value: MedicalPayment.MedicalPayment7 }, // { label: '大病保险', value: MedicalPayment.MedicalPayment8 }, // ]; // } // export function getMedicalPaymentLable(value: any): string { // const type = value as MedicalPayment; // switch (type) { // case MedicalPayment.None: // return '不详'; // case MedicalPayment.MedicalPayment1: // return '城镇职工基本医疗保险'; // case MedicalPayment.MedicalPayment2: // return '城乡居民基本医疗保险'; // case MedicalPayment.MedicalPayment3: // return '自费'; // case MedicalPayment.MedicalPayment4: // return '公务员补助'; // case MedicalPayment.MedicalPayment5: // return '企业补充保险'; // case MedicalPayment.MedicalPayment6: // return '公费医疗及医疗照顾对象'; // case MedicalPayment.MedicalPayment7: // return '医疗救助'; // case MedicalPayment.MedicalPayment8: // return '大病保险'; // } // return '不详'; // } // export function getMedicalPaymentLabel(value: any): string { // const type = value as MedicalPayment; // switch (type) { // case MedicalPayment.None: // return '不详'; // case MedicalPayment.MedicalPayment1: // return '城镇职工基本医疗保险'; // case MedicalPayment.MedicalPayment2: // return '城乡居民基本医疗保险'; // case MedicalPayment.MedicalPayment3: // return '自费'; // case MedicalPayment.MedicalPayment4: // return '公务员补助'; // case MedicalPayment.MedicalPayment5: // return '企业补充保险'; // case MedicalPayment.MedicalPayment6: // return '公费医疗及医疗照顾对象'; // case MedicalPayment.MedicalPayment7: // return '医疗救助'; // case MedicalPayment.MedicalPayment8: // return '大病保险'; // } // return '不详'; // } // //#endregion 医疗支付 // //#region 经济来源 // export enum Financial { // /** 不详*/ // None = 0, // /** 退休金/养老金 */ // Financial1 = None + 1, // /** 子女补贴*/ // Financial2 = Financial1 + 1, // /** 亲友资助*/ // Financial3 = Financial2 + 1, // /** 国家普惠性补贴*/ // Financial4 = Financial3 + 1, // /** 个人储蓄*/ // Financial5 = Financial4 + 1, // /** 其他补贴*/ // Financial6 = Financial5 + 1, // } // export function getFinancialOptions(): any[] { // return [ // { label: '不详', value: Financial.None }, // { label: '退休金/养老金', value: Financial.Financial1 }, // { label: '子女补贴', value: Financial.Financial2 }, // { label: '亲友资助', value: Financial.Financial3 }, // { label: '国家普惠性补贴', value: Financial.Financial4 }, // { label: '个人储蓄', value: Financial.Financial5 }, // { label: '其他补贴', value: Financial.Financial6 }, // ]; // } // export function getFinancialLable(value: any): string { // const type = value as Financial; // switch (type) { // case Financial.None: // return '不详'; // case Financial.Financial1: // return '退休金/养老金'; // case Financial.Financial2: // return '子女补贴'; // case Financial.Financial3: // return '亲友资助'; // case Financial.Financial4: // return '国家普惠性补贴'; // case Financial.Financial5: // return '个人储蓄'; // case Financial.Financial6: // return '其他补贴'; // } // return '不详'; // } // export function getFinancialLabel(value: any): string { // const type = value as Financial; // switch (type) { // case Financial.None: // return '不详'; // case Financial.Financial1: // return '退休金/养老金'; // case Financial.Financial2: // return '子女补贴'; // case Financial.Financial3: // return '亲友资助'; // case Financial.Financial4: // return '国家普惠性补贴'; // case Financial.Financial5: // return '个人储蓄'; // case Financial.Financial6: // return '其他补贴'; // } // return '不详'; // } // //#endregion 经济来源 // //#region 危险情况 // export enum RiskEvents { // /** 无*/ // None = 0, // /** 发生过1次*/ // RiskEvents1 = None + 1, // /** 发生过2次*/ // RiskEvents2 = RiskEvents1 + 1, // /** 发生过3次及以上 */ // RiskEvents3 = RiskEvents2 + 1, // } // export function getRiskEventsOptions(): any[] { // return [ // { label: '无', value: RiskEvents.None }, // { label: '发生过1次', value: RiskEvents.RiskEvents1 }, // { label: '发生过2次', value: RiskEvents.RiskEvents2 }, // { label: '发生过3次及以上', value: RiskEvents.RiskEvents3 }, // ]; // } // export function getRiskEventsLable(value: any): string { // const type = value as RiskEvents; // switch (type) { // case RiskEvents.None: // return '无'; // case RiskEvents.RiskEvents1: // return '发生过1次'; // case RiskEvents.RiskEvents2: // return '发生过2次'; // case RiskEvents.RiskEvents3: // return '发生过3次及以上'; // } // return '无'; // } // export function getRiskEventsLabel(value: any): string { // const type = value as RiskEvents; // switch (type) { // case RiskEvents.None: // return '无'; // case RiskEvents.RiskEvents1: // return '发生过1次'; // case RiskEvents.RiskEvents2: // return '发生过2次'; // case RiskEvents.RiskEvents3: // return '发生过3次及以上'; // } // return '无'; // } // //#endregion 危险情况 // //#region 关系 // export enum Relationship { // /** 不详*/ // None = 0, // /** 本人*/ // Relationship1 = None + 1, // /** 配偶*/ // Relationship2 = Relationship1 + 1, // /** 子女*/ // Relationship3 = Relationship2 + 1, // /** 其他亲属*/ // Relationship4 = Relationship3 + 1, // /** 雇佣照顾者*/ // Relationship5 = Relationship4 + 1, // /** 村(居)民委员会工作人员*/ // Relationship6 = Relationship5 + 1, // /** 其他*/ // Relationship7 = Relationship6 + 1, // } // export function getRelationshipOptions(): any[] { // return [ // { label: '不详', value: Relationship.None }, // { label: '本人', value: Relationship.Relationship1 }, // { label: '配偶', value: Relationship.Relationship2 }, // { label: '子女', value: Relationship.Relationship3 }, // { label: '其他亲属', value: Relationship.Relationship4 }, // { label: '雇佣照顾者', value: Relationship.Relationship5 }, // { label: '村(居)民委员会工作人员', value: Relationship.Relationship6 }, // { label: '其他', value: Relationship.Relationship7 }, // ]; // } // export function getRelationshipLable(value: any): string { // const type = value as Relationship; // switch (type) { // case Relationship.None: // return '不详'; // case Relationship.Relationship1: // return '本人'; // case Relationship.Relationship2: // return '配偶'; // case Relationship.Relationship3: // return '子女'; // case Relationship.Relationship4: // return '其他亲属'; // case Relationship.Relationship5: // return '雇佣照顾者'; // case Relationship.Relationship6: // return '村(居)民委员会工作人员'; // case Relationship.Relationship7: // return '其他'; // } // return '不详'; // } // export function getRelationshipLabel(value: any): string { // const type = value as Relationship; // switch (type) { // case Relationship.None: // return '不详'; // case Relationship.Relationship1: // return '本人'; // case Relationship.Relationship2: // return '配偶'; // case Relationship.Relationship3: // return '子女'; // case Relationship.Relationship4: // return '其他亲属'; // case Relationship.Relationship5: // return '雇佣照顾者'; // case Relationship.Relationship6: // return '村(居)民委员会工作人员'; // case Relationship.Relationship7: // return '其他'; // } // return '不详'; // } // //#endregion 关系 // //#region 生肖 // export enum Zodiac { // /** 鼠*/ // Mouse = 1, // /** 牛*/ // Ox = 2, // /** 虎*/ // Tiger = 3, // /** 兔*/ // Rabbit = 4, // /** 龙*/ // Dragon = 5, // /** 蛇*/ // Snake = 6, // /** 马*/ // Horse = 7, // /** 羊*/ // Sheep = 8, // /** 猴*/ // Monkey = 9, // /** 鸡*/ // Chicken = 10, // /** 狗*/ // Dog = 11, // /** 猪*/ // Pig = 12, // } // export function getZodiacOptions(): any[] { // return [ // { label: '鼠', value: Zodiac.Mouse }, // { label: '牛', value: Zodiac.Ox }, // { label: '虎', value: Zodiac.Tiger }, // { label: '兔', value: Zodiac.Rabbit }, // { label: '龙', value: Zodiac.Dragon }, // { label: '蛇', value: Zodiac.Snake }, // { label: '马', value: Zodiac.Horse }, // { label: '羊', value: Zodiac.Sheep }, // { label: '猴', value: Zodiac.Monkey }, // { label: '鸡', value: Zodiac.Chicken }, // { label: '狗', value: Zodiac.Dog }, // { label: '猪', value: Zodiac.Pig }, // ]; // } // export function getZodiacLable(value: any): string { // const type = value as Zodiac; // switch (type) { // case Zodiac.Mouse: // return '鼠'; // case Zodiac.Ox: // return '牛'; // case Zodiac.Tiger: // return '虎'; // case Zodiac.Rabbit: // return '兔'; // case Zodiac.Dragon: // return '龙'; // case Zodiac.Snake: // return '蛇'; // case Zodiac.Horse: // return '马'; // case Zodiac.Sheep: // return '羊'; // case Zodiac.Monkey: // return '猴'; // case Zodiac.Chicken: // return '鸡'; // case Zodiac.Dog: // return '狗'; // case Zodiac.Pig: // return '猪'; // } // return ''; // } // export function getZodiacLabel(value: any): string { // const type = value as Zodiac; // switch (type) { // case Zodiac.Mouse: // return '鼠'; // case Zodiac.Ox: // return '牛'; // case Zodiac.Tiger: // return '虎'; // case Zodiac.Rabbit: // return '兔'; // case Zodiac.Dragon: // return '龙'; // case Zodiac.Snake: // return '蛇'; // case Zodiac.Horse: // return '马'; // case Zodiac.Sheep: // return '羊'; // case Zodiac.Monkey: // return '猴'; // case Zodiac.Chicken: // return '鸡'; // case Zodiac.Dog: // return '狗'; // case Zodiac.Pig: // return '猪'; // } // return ''; // } // //#endregion 生肖 // //#region 残疾类别 // /** 残疾类别*/ // export enum DiseaseType { // /** 肢体残疾*/ // T1 = 1, // /** 智力残疾*/ // T2 = T1 + 1, // /** 精神残疾*/ // T3 = T2 + 1, // /** 视力残疾*/ // T4 = T3 + 1, // /** 听力残疾*/ // T5 = T4 + 1, // /** 言语残疾*/ // T6 = T5 + 1, // /** 多重残疾*/ // T7 = T6 + 1, // } // export function getDiseaseTypeLable(value: any): string { // const type = value as DiseaseType; // switch (type) { // case DiseaseType.T1: return '肢体残疾'; // case DiseaseType.T2: return '智力残疾'; // case DiseaseType.T3: return '精神残疾'; // case DiseaseType.T4: return '视力残疾'; // case DiseaseType.T5: return '听力残疾'; // case DiseaseType.T6: return '言语残疾'; // case DiseaseType.T7: return '多重残疾'; // } // return '未知'; // } // export function getDiseaseTypeLabel(value: any): string { // const type = value as DiseaseType; // switch (type) { // case DiseaseType.T1: return '肢体残疾'; // case DiseaseType.T2: return '智力残疾'; // case DiseaseType.T3: return '精神残疾'; // case DiseaseType.T4: return '视力残疾'; // case DiseaseType.T5: return '听力残疾'; // case DiseaseType.T6: return '言语残疾'; // case DiseaseType.T7: return '多重残疾'; // } // return '未知'; // } // export function getDiseaseTypeOptions(): any[] { // return [ // { value: DiseaseType.T1, label: '肢体残疾' }, // { value: DiseaseType.T2, label: '智力残疾' }, // { value: DiseaseType.T3, label: '精神残疾' }, // { value: DiseaseType.T4, label: '视力残疾' }, // { value: DiseaseType.T5, label: '听力残疾' }, // { value: DiseaseType.T6, label: '言语残疾' }, // { value: DiseaseType.T7, label: '多重残疾' }, // ]; // } // //#endregion 收入情况 // //#region 户籍类型 // /** 户籍类型*/ // export enum DomicileType { // /** 城市*/ // City = 1, // /** 农村*/ // Village = City + 1, // } // export function getDomicileTypeLable(value: any): string { // const type = value as DomicileType; // switch (type) { // case DomicileType.City: return '城市'; // case DomicileType.Village: return '农村'; // } // return '未知'; // } // export function getDomicileTypeLabel(value: any): string { // const type = value as DomicileType; // switch (type) { // case DomicileType.City: return '城市'; // case DomicileType.Village: return '农村'; // } // return '未知'; // } // export function getDomicileTypeOptions(): any[] { // return [ // { value: DomicileType.City, label: '城市' }, // { value: DomicileType.Village, label: '农村' }, // ]; // } // //#endregion 户籍类型 // //#region 证件类型 // /** 证件类型 // * 身份证 // * 护照 // * 驾驶证 // */ // export enum IDType { // /** 身份证*/ // IDCard = 1, // /** 护照*/ // Passport = IDCard + 1, // /** 驾驶证*/ // DriverLicense = Passport + 1, // } // export function getIDTypeLable(value: any): string { // const type = value as IDType; // switch (type) { // case IDType.IDCard: return '身份证'; // case IDType.Passport: return '护照'; // case IDType.DriverLicense: return '驾驶证'; // } // return '未知'; // } // export function getIDTypeLabel(value: any): string { // const type = value as IDType; // switch (type) { // case IDType.IDCard: return '身份证'; // case IDType.Passport: return '护照'; // case IDType.DriverLicense: return '驾驶证'; // } // return '未知'; // } // export function getIDTypeOptions(): any[] { // return [ // { value: IDType.IDCard, label: '身份证' }, // { value: IDType.Passport, label: '护照' }, // { value: IDType.DriverLicense, label: '驾驶证' } // ]; // } // //#endregion 证件类型 // //#region 血型 // /** 血型*/ // export enum BloodType { // /** A型*/ // Type1 = 1, // /** B型*/ // Type2 = Type1 + 1, // /** AB型*/ // Type3 = Type2 + 1, // /** O型*/ // Type4 = Type3 + 1, // /** 其它*/ // Type5 = Type4 + 1, // } // const BloodTypeMap = new Map() as Map // function initBloodTypeMap() { // BloodTypeMap.set(BloodType.Type1, "A型"); // BloodTypeMap.set(BloodType.Type2, "B型"); // BloodTypeMap.set(BloodType.Type3, "AB型"); // BloodTypeMap.set(BloodType.Type4, "O型"); // BloodTypeMap.set(BloodType.Type5, "其它"); // } // initBloodTypeMap(); // export function getBloodTypeLable(value: any): string { // const type = value as BloodType; // const item = BloodTypeMap.get(type); // if (item) { // return item; // } // return '未知'; // } // export function getBloodTypeLabel(value: any): string { // const type = value as BloodType; // const item = BloodTypeMap.get(type); // if (item) { // return item; // } // return '未知'; // } // export function getBloodTypeOptions(): any[] { // const list = []; // for (const item of BloodTypeMap) { // list.push({ label: item[1], value: item[0] }) // } // return list; // } // //#endregion 血型