<template>
	<view class="m-3 mb-5">
		<view class="centerY mt-3">
			<view class="bule_line" style=""></view>
			<text class="font-bold text-dark ml-2 fs-16 line-height1">检测结果一栏</text>
		</view>
		<view class="mt-3 bg-white p-3">
			<view class="">
				<view class="mtable-title centerY bg-primary text-white fs-12">
					<view class="text-center w-25">
						检查项
					</view>
					<view class=" text-center w-25">
						标准值
					</view>
					<view class="text-center  w-30">
						当前结果
					</view>
					<view class="text-center w-20">
						单位
					</view>
				</view>
				<view class="mtable-body-item centerY fs-12" v-for="(item,index) in datatable1" style="color: #868687;">
					<view class="text-center w-25 text-dark">
						{{item.title}}
					</view>
					<view class="text-center w-25 text-green2" v-if="propData.patient.sex==1">
						{{item.standard1}}
					</view>
					<view class="text-center w-25 text-green2" v-if="propData.patient.sex==2">
						{{item.standard2}}
					</view>
					<view class="text-center w-30">
						<span v-if="item.type==1">{{item.value}}</span>
						<span v-if="item.type==0" class="text-error">{{item.value }}
						</span>
					</view>
					<view class="text-center w-20">
						{{item.unit}}
					</view>
				</view>
			</view>
		</view>
		<view class="centerY mt-3">
			<view class="bule_line" style=""></view>
			<text class="font-bold text-dark ml-2 fs-16 line-height1">尿常规</text>
		</view>
		<view class="mt-3 bg-white p-3">
			<view class="">
				<view class="mtable-title centerY bg-primary text-white fs-12">
					<view class="text-center w-25">
						检查项
					</view>
					<view class=" text-center w-25">
						标准值
					</view>
					<view class="text-center  w-30">
						当前结果
					</view>
					<view class="text-center w-20">
						单位
					</view>
				</view>
				<view class="mtable-body-item centerY fs-12" v-for="(item,index) in datatable2" style="color: #868687;">
					<view class="text-center w-25 text-dark">
						{{item.title}}
					</view>
					<view class="text-center w-25 text-green2" v-if="propData.patient.sex==1">
						{{item.standard1}}
					</view>
					<view class="text-center w-25 text-green2" v-if="propData.patient.sex==2">
						{{item.standard2}}
					</view>
					<view class="text-center w-30">
						<span v-if="item.type==1">{{item.value}}</span>
						<span v-if="item.type==0" class="text-error">{{item.value }}
						</span>
					</view>
					<view class="text-center w-20">
						{{item.unit}}
					</view>
				</view>
			</view>
			<view class="fs-14 border-top mt-3">
				<view class="mt-3">
					报告时间： <span>{{'2022-05-19 10:03:30'}}</span>
				</view>
				<view class="mt-2">
					报告医生： <span>{{'边建丞'}}</span>
				</view>
			</view>
		</view>
		<view class="centerY mt-3">
			<view class="bule_line" style=""></view>
			<text class="font-bold text-dark ml-2 fs-16 line-height1">血常规</text>
		</view>
		<view class="mt-3 bg-white p-3">
			<view class="">
				<view class="mtable-title centerY bg-primary text-white fs-12">
					<view class="text-center w-30">
						检查项
					</view>
					<view class=" text-center w-25">
						标准值
					</view>
					<view class="text-center  w-25">
						当前结果
					</view>
					<view class="text-center w-20">
						单位
					</view>
				</view>
				<view class="mtable-body-item centerY fs-12" v-for="(item,index) in datatable3" style="color: #868687;">
					<view class="text-center w-30 text-dark">
						{{item.title}}
					</view>
					<view class="text-center w-25 text-green2" v-if="propData.patient.sex==1">
						{{item.standard1}}
					</view>
					<view class="text-center w-25 text-green2" v-if="propData.patient.sex==2">
						{{item.standard2}}
					</view>
					<view class="text-center w-25">
						<span v-if="item.type==1">{{item.value}}</span>
						<span v-if="item.type==0" class="text-error">{{item.value }}
						</span>
					</view>
					<view class="text-center w-20">
						{{item.unit}}
					</view>
				</view>
			</view>
			<view class="fs-14 border-top mt-3">
				<view class="mt-3">
					报告时间： <span>{{'2022-05-19 10:03:30'}}</span>
				</view>
				<view class="mt-2">
					报告医生： <span>{{'边建丞'}}</span>
				</view>
			</view>
		</view>
		<view class="centerY mt-3">
			<view class="bule_line" style=""></view>
			<text class="font-bold text-dark ml-2 fs-16 line-height1">B超</text>
		</view>
		<view class="mt-3 bg-white p-3">
			<view class="">
				<view class="mtable-title centerY bg-primary text-white fs-12">
					<view class="text-center w-30">
						检查项
					</view>
					<view class="w-70">
						当前结果
					</view>

				</view>
				<view class="mtable-body-item centerY fs-12" v-for="(item,index) in datatable4"
					style="color: #868687;align-items: flex-start;">
					<view class="text-center w-30 text-dark">
						{{item.title}}
					</view>
					<view class="w-70">
						<span v-if="item.type==1">{{item.value}}</span>
						<!-- <span v-if="item.type==0" class="text-error">{{item.value }} -->
						</span>
					</view>
				</view>
			</view>
			<view class="fs-14 border-top mt-3">
				<view class="mt-3">
					报告时间： <span>{{'2022-05-19 10:03:30'}}</span>
				</view>
				<view class="mt-2">
					报告医生： <span>{{'边建丞'}}</span>
				</view>
			</view>
		</view>
		<view class="centerY mt-3">
			<view class="bule_line" style=""></view>
			<text class="font-bold text-dark ml-2 fs-16 line-height1">大便常规</text>
		</view>
		<view class="mt-3 bg-white p-3">
			<view class="">
				<view class="mtable-title centerY bg-primary text-white fs-12">
					<view class="text-center w-30">
						检查项
					</view>
					<view class=" text-center w-25">
						标准值
					</view>
					<view class="text-center  w-25">
						当前结果
					</view>
					<view class="text-center w-20">
						单位
					</view>
				</view>
				<view class="mtable-body-item centerY fs-12" v-for="(item,index) in datatable5" style="color: #868687;">
					<view class="text-center w-30 text-dark">
						{{item.title}}
					</view>
					<view class="text-center w-25 text-green2" v-if="propData.patient.sex==1">
						{{item.standard1}}
					</view>
					<view class="text-center w-25 text-green2" v-if="propData.patient.sex==2">
						{{item.standard2}}
					</view>
					<view class="text-center w-25">
						<span v-if="item.type==1">{{item.value}}</span>
						<span v-if="item.type==0" class="text-error">{{item.value }}
						</span>
					</view>
					<view class="text-center w-20">
						{{item.unit}}
					</view>
				</view>
			</view>
			<view class="fs-14 border-top mt-3">
				<view class="mt-3">
					报告时间： <span>{{'2022-05-19 10:03:30'}}</span>
				</view>
				<view class="mt-2">
					报告医生： <span>{{'边建丞'}}</span>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	import {
		config
	} from '@/static/js/defult_value.js';
	// 尿常规 数据
	const datatable2 = [{
			title: '葡萄糖(GLU)',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: 'key',
			key1: 'key1',
			unit: 'mmol/L',
		},
		{
			title: '胆红素(BIL)',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: 'key',
			key1: 'key1',
			unit: 'umol/L',
		},
		{
			title: '酮体(KET)',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: 'key',
			key1: 'key1',
			unit: 'mmol/L',
		},
		{
			title: '比重(SG)',
			value: '',
			standard1: '1.015-1.025',
			standard2: '1.015-1.025',
			type: 1,
			key: 'key',
			key1: 'key1',
			unit: '',
		},
		{
			title: '潜血(BLD)',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: 'key',
			key1: 'key1',
			unit: 'mg/L',
		},
		{
			title: '酸碱度(PH)',
			value: '',
			standard1: '5.5-6.5',
			standard2: '5.5-6.5',
			type: 1,
			key: '',
			key1: '',
			unit: '',
		},
		{
			title: '蛋白(PRO)',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: '',
			key1: '',
			unit: 'g/L',
		},
		{
			title: '尿胆原(URO)',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: '',
			key1: '',
			unit: 'mmol/L',
		},
		{
			title: '亚硝酸盐(NIT)',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: '',
			key1: '',
			unit: '',
		},
		{
			title: '白细胞(LEU)',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: '',
			key1: '',
			unit: '',
		},
		{
			title: '颜色(Color)',
			value: '',
			standard1: '',
			standard2: '',
			type: 1,
			key: '',
			key1: '',
			unit: '',
		},
		{
			title: '浊度(TURB)',
			value: '',
			standard1: '',
			standard2: '',
			type: 1,
			key: '',
			key1: '',
			unit: '',
		},
		{
			title: '红细胞(RBC)',
			value: '',
			standard1: '0-13.1',
			standard2: '0-13.1',
			type: 1,
			key: '',
			key1: '',
			unit: '/ul',
		},
		{
			title: '白细胞(WBC)',
			value: '',
			standard1: '0.0-13.2',
			standard2: '0.0-13.2',
			type: 1,
			key: '',
			key1: '',
			unit: '/ul',
		},
		{
			title: '上皮细胞 (EC)',
			value: '',
			standard1: '0.0-5.2',
			standard2: '0.0-5.2',
			type: 1,
			key: '',
			key1: '',
			unit: '/ul',
		},
		{
			title: '管型(CAST)',
			value: '',
			standard1: '0.0-2.4',
			standard2: '0.0-2.4',
			type: 1,
			key: '',
			key1: '',
			unit: '/ul',
		},
		{
			title: '结晶(XTAL)',
			value: '',
			standard1: '0.0-0.3',
			standard2: '0.0-0.3',
			type: 1,
			key: '',
			key1: '',
			unit: '/ul',
		},
		{
			title: '酵母菌(YLC)',
			value: '',
			standard1: '0.0',
			standard2: '0.0',
			type: 1,
			key: '',
			key1: '',
			unit: '/ul',
		},
		{
			title: '粘液丝(MUCUS)',
			value: '',
			standard1: '0.0-7.0',
			standard2: '0.0-7.0',
			type: 1,
			key: '',
			key1: '',
			unit: '/ul',
		},
		{
			title: '电导率(COND)',
			value: '',
			standard1: '3.0-39.0',
			standard2: '3.0-39.0',
			type: 1,
			key: '',
			key1: '',
			unit: 'mS/cm',
		},
	];

	//血常规 数据
	const datatable3 = [{
			title: 'HR白细胞绝对值',
			value: '',
			standard1: '4.3-11.3',
			standard2: '4.3-11.3',
			type: 1,
			key: '',
			key1: '',
			unit: '10^9/L',
		},
		{
			title: '中性粒细胞绝对值',
			value: '',
			standard1: '1.6-7.8',
			standard2: '1.6-7.8',
			type: 1,
			key: '',
			key1: '',
			unit: '10^9/L',
		},
		{
			title: '中性粒细胞百分比',
			value: '',
			standard1: '31-70',
			standard2: '31-70',
			type: 1,
			key: '',
			key1: '',
			unit: '%',
		},
		{
			title: '淋巴细胞绝对值',
			value: '',
			standard1: '1.5-4.6',
			standard2: '1.5-4.6',
			type: 1,
			key: '',
			key1: '',
			unit: '',
		},
		{
			title: '淋巴细胞百分比',
			value: '',
			standard1: '23-59',
			standard2: '23-59',
			type: 1,
			key: '',
			key1: '',
			unit: '%',
		},
		{
			title: '单核细胞绝对值',
			value: '',
			standard1: '0.13-0.76',
			standard2: '0.13-0.76',
			type: 1,
			key: '',
			key1: '',
			unit: '10^9/L',
		},
		{
			title: '单核细胞百分比',
			value: '',
			standard1: '2-11',
			standard2: '2-11',
			type: 1,
			key: '',
			key1: '',
			unit: '%',
		},
		{
			title: '嗜酸性粒细胞绝对值',
			value: '',
			standard1: '0.00-0.68',
			standard2: '0.00-0.68',
			type: 1,
			key: '',
			key1: '',
			unit: '10^9/L',
		},
		{
			title: '嗜酸性粒细胞百分比',
			value: '',
			standard1: '0-9',
			standard2: '0-9',
			type: 1,
			key: '',
			key1: '',
			unit: '%',
		},
		{
			title: '嗜碱性粒细胞绝对值',
			value: '',
			standard1: '0.00-0.07',
			standard2: '0.00-0.07',
			type: 1,
			key: '',
			key1: '',
			unit: '10^9/L',
		},
		{
			title: '嗜碱性粒细胞百分比',
			value: '',
			standard1: '0-1',
			standard2: '0-1',
			type: 1,
			key: '',
			key1: '',
			unit: '%',
		},
		{
			title: 'HR红细胞绝对值',
			value: '',
			standard1: '4.2-5.7',
			standard2: '4.2-5.7',
			type: 1,
			key: '',
			key1: '',
			unit: '10^12/L',
		},
		{
			title: 'HR血红蛋白',
			value: '',
			standard1: '118-156',
			standard2: '118-156',
			type: 1,
			key: '',
			key1: '',
			unit: 'g/L',
		},
		{
			title: 'HR红细胞压积',
			value: '',
			standard1: '0.36-0.460',
			standard2: '0.36-0.46',
			type: 1,
			key: '',
			key1: '',
			unit: 'L/L',
		},
		{
			title: '红细胞平均体积',
			value: '',
			standard1: '77-92',
			standard2: '77-92',
			type: 1,
			key: '',
			key1: '',
			unit: 'fL',
		}, {
			title: '平均血红蛋白含量',
			value: '',
			standard1: '25-34',
			standard2: '25-34',
			type: 1,
			key: '',
			key1: '',
			unit: 'pg',
		}, {
			title: '平均血红蛋白浓度',
			value: '',
			standard1: '310-355',
			standard2: '310-355',
			type: 1,
			key: '',
			key1: '',
			unit: 'g/L',
		}, {
			title: '红细胞分布宽度',
			value: '',
			standard1: '11.00-14.50',
			standard2: '11.00-14.50',
			type: 1,
			key: '',
			key1: '',
			unit: '%',
		}, {
			title: 'HR血小板绝对值',
			value: '',
			standard1: '167-453',
			standard2: '167-453',
			type: 1,
			key: '',
			key1: '',
			unit: '10^9/L',
		}, {
			title: '平均血小板体积',
			value: '',
			standard1: '6.5-13.0',
			standard2: '6.5-13.0',
			type: 1,
			key: '',
			key1: '',
			unit: 'fL',
		}, {
			title: '血小板压积',
			value: '',
			standard1: '0.09-0.31',
			standard2: '0.09-0.31',
			type: 1,
			key: '',
			key1: '',
			unit: '%',
		}, {
			title: '血小板分布宽度',
			value: '',
			standard1: '15.50-17.10',
			standard2: '15.50-17.10',
			type: 1,
			key: '',
			key1: '',
			unit: '%',
		}, {
			title: 'HR超敏C反应蛋白',
			value: '',
			standard1: '0.00-8.00',
			standard2: '0.00-8.00',
			type: 1,
			key: '',
			key1: '',
			unit: 'mg/L',
		},
	];

// b超
	const datatable4 = [{
			title: '检查部位',
			value: '肝胆脾胰',
			type: 1,
		}, {
			title: '影像表现',
			value: '肝胆脾胰未见明显异常',
			type: 1,
		}, {
			title: '影像诊断',
			value: '肝脏大小形态正常，包膜光滑，实质回声均匀，肝内血管纹理清晰门静脉主千内径正常，血流通畅胆囊大小形态正常，壁薄光滑，内透声好。胆总管不扩张，显示段未见明显强光团。 脾脏大小正常，包膜光滑，实质回声均匀胰腺显示部分大小形态正常，实质回声均匀，胰管无扩张.',
			type: 1,
		},
	];
//大便常规
	const datatable5 =[{
			title: '颜色',
			value: '',
			standard1: '',
			standard2: '',
			type: 1,
			key: '',
			key1: '',
			unit: '',
		},
		{
			title: '性状',
			value: '',
			standard1: '',
			standard2: '',
			type: 1,
			key: '',
			key1: '',
			unit: '',
		},
		{
			title: '镜检白细胞(WBC)',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: '',
			key1: '',
			unit: '/HP',
		},
		{
			title: '镜检红细胞(RBC)',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: '',
			key1: '',
			unit: '/HP',
		},
		{
			title: '寄生虫卵',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: '',
			key1: '',
			unit: '/LP',
		},
		{
			title: 'HR隐血试验',
			value: '',
			standard1: '阴性 (-)6',
			standard2: '阴性 (-)',
			type: 1,
			key: '',
			key1: '',
			unit: '',
		},
		{
			title: '痴疾阿米巴',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: '',
			key1: '',
			unit: '',
		},
		{
			title: '粪便找霉菌',
			value: '',
			standard1: '阴性 (-)',
			standard2: '阴性 (-)',
			type: 1,
			key: '',
			key1: '',
			unit: '', 
		},
	];

	export default {
		name: 'DetectionResult',
		data() {
			return {
				datatable2,
				datatable3,
				datatable4,
				datatable5,
				datatable1: [{
						title: 'BMI',
						value: '',
						standard1: '18.5~24',
						standard2: '18.5~24',
						type: 1,
						key: 'visit',
						key1: 'bmi',
						unit: 'kg/m²',
					},
					{
						title: '腰围',
						value: '',
						standard1: '<90',
						standard2: '<85',
						type: 1,
						key: 'visit',
						key1: 'waist',
						unit: 'cm',
					},
					{
						title: '收缩压',
						value: '',
						standard1: '<140',
						standard2: '<140',
						type: 1,
						key: 'visit',
						key1: 'shrink',
						unit: 'mmHg',
					},
					{
						title: '舒张压',
						value: '',
						standard1: '<90',
						standard2: '<90',
						type: 1,
						key: 'visit',
						key1: 'diastole',
						unit: 'mmHg',
					},
					{
						title: '心率',
						value: '',
						standard1: '60~90',
						standard2: '60~90',
						type: 1,
						key: '',
						key1: 'pulse',
						unit: '次/分钟',
					},
					{
						title: '吸烟',
						value: '',
						standard1: '戒烟',
						standard2: '戒烟',
						type: 1,
						key: '',
						key1: 'rxyl',
						unit: '根 ',
					},
					{
						title: '喝酒',
						value: '',
						standard1: '戒酒',
						standard2: '戒酒',
						type: 1,
						key: '',
						key1: 'ryjl',
						unit: 'ml',
					},
					{
						title: '血糖',
						value: '',
						standard1: '3.9~6.9',
						standard2: '3.9~6.9',
						type: 1,
						key: 'checkList',
						key1: 'bloodGlucose',
						unit: 'mmol/L',
					},
					{
						title: '血氧',
						value: '',
						standard1: '>=90',
						standard2: '>=90',
						type: 1,
						key: 'checkList',
						key1: 'spo2',
						unit: '%',
					},
					{
						title: '糖化血红蛋白',
						value: '',
						standard1: '<6.5',
						standard2: '<6.5',
						type: 1,
						key: '',
						key1: 'thxhdb',
						unit: '%',
					},
					{
						title: '总胆固醇',
						value: '',
						standard1: '2.85~5.69',
						standard2: '2.85~5.69',
						type: 1,
						key: 'checkList',
						key1: 'chol',
						unit: 'mmol/L',
					},
					{
						title: '甘油三酯',
						value: '',
						standard1: '0.45~1.7',
						standard2: '0.45~1.7',
						type: 1,
						key: 'checkList',
						key1: 'bloodFat1',
						unit: 'mmol/L',
					},
					{
						title: '低密度脂蛋白',
						value: '',
						standard1: '0~3.4',
						standard2: '0~3.4',
						type: 1,
						key: 'checkList',
						key1: 'bloodFat3',
						unit: 'mmol/L',
					},
					{
						title: '高密度脂蛋白',
						value: '',
						standard1: '1.16~1.55',
						standard2: '1.16~1.55',
						type: 1,
						key: 'checkList',
						key1: 'bloodFat4',
						unit: 'mmol/L',
					},
					{
						title: '肌酐',
						value: '',
						standard1: '53~106',
						standard2: '44~97',
						type: 1,
						key: 'checkList',
						key1: 'urine1',
						unit: 'μmol/L',
					},
					{
						title: '微量白蛋白',
						value: '',
						standard1: '0~30',
						standard2: '0~30',
						type: 1,
						key: 'checkList',
						key1: 'urine2',
						unit: 'mg/L',
					},
					{
						title: '尿酸',
						value: '',
						standard1: '149~416',
						standard2: '89~357',
						type: 1,
						key: 'checkList',
						key1: 'ua',
						unit: 'μmol/L',
					},
				],
			}
		},
		props: {
			propData: {
				type: Object,
				default () {
					return {
						patient: {},
						checkResult: {}
					}
				},
			},
		},
		watch: {
			propData: {
				handler(val) {
					if (val.patient.id) {
						this.setlist(val.checkResult)
					}
				},
			},
		},
		created() {

		},
		methods: {
			setlist(checkResult) {
				if (checkResult.bmi) {
					let checkList = data1.checkList[0] || {}
					this.datatable1.map((item, index) => {
						if (item.key == 'checkList') {
							this.datatable1[index].value = this.filterA(
								checkList[item.key1],
								item.key1
							).value
							this.datatable1[index].type = this.filterA(
								checkList[item.key1],
								item.key1
							).type
						} else {
							this.datatable1[index].value = this.filterA(
								data1.visit[item.key1],
								item.key1
							).value
							this.datatable1[index].type = this.filterA(
								data1.visit[item.key1],
								item.key1
							).type
						}
					})
				} else {
					this.datatable1.map((item, index) => {
						this.datatable1[index].value = '未测量'
						this.datatable1[index].type = 1
					})
				}
				this.datatable2.map((item, index) => {
					this.datatable2[index].value = '未测量'
					this.datatable2[index].type = 1
				})
				this.datatable3.map((item, index) => {
					this.datatable3[index].value = '未测量'
					this.datatable3[index].type = 1
				})
				this.datatable5.map((item, index) => {
					this.datatable5[index].value = '未测量'
					this.datatable5[index].type = 1
				})
			},
			filterA(val, key) {
				// console.log(key, val)
				if ((val != 0 && this.$mf.isEmpty(val)) || String(val) == '') {
					// console.log(key, val, val != 0, '0' == '')
					return {
						value: '未测量',
						type: 1
					}
				}
				return {
					value: val,
					type: this.check({
							type: key,
							value: val,
							age: this.propData.patient.age,
							sex: this.propData.patient.sex,
						}) ?
						0 : 1,
				}
			},
			check({
				type,
				value,
				age,
				sex
			}) {
				let msg = this.propData.patient
				let arr = config

				if (!arr[type]) {
					return false
				}
				if (type == 'shrink' && age) {
					if (msg.age > 65) {
						if (value > arr['shrinktop'][1]) {
							return true
						}
						if (value < arr['shrinktop'][0]) {
							return true
						}
					} else {
						if (value > arr['shrinklow'][1]) {
							return true
						}
						if (value < arr['shrinklow'][0]) {
							return true
						}
					}
				}

				if (sex) {
					if (msg.sex == 1) {
						if (value > arr[type][0][1]) {
							return true
						}
						if (value < arr[type][0][0]) {
							return true
						}
					} else {
						if (value > arr[type][1][1]) {
							return true
						}
						if (value < arr[type][1][0]) {
							return true
						}
					}
				}

				if (value > arr[type][1]) {
					return true
				}
				if (value < arr[type][0]) {
					return true
				}
				return false
			},


		}
	}
</script>

<style lang="scss">
	page {
		background: #F5F9FF;
	}

	.mtable {
		&-title {
			border-radius: 50rpx;
			padding: 20rpx 0 20rpx 20rpx;
			box-shadow: 0px 2px 7px 1px rgba(45, 142, 255, 0.5);
		}

		&-body {
			&-item {
				margin-top: 20rpx;
				border-radius: 50rpx;
				padding: 14rpx 0 14rpx 20rpx;
				background-color: #F6F9FE;
				color: #868687;
			}
		}
	}
</style>

let data1 = {
checkList: [],
visit: {
"id": 1336,
"isSend": 0,
"sendTime": null,
"idCard": "123456200001011212",
"opUserId": 35,
"type": "gxy",
"sfys": "王医生",
"sffs": "门诊",
"zg": "继续随访",
"zdsf": 1,
"mqzz": "[\"无症状\"]",
"xltz": "良好",
"zyxw": "良好",
"fyqk": "规律",
"ywfy": "无",
"rxyl": 0,
"rxylzd": 0,
"ryjl": 0,
"ryjlzd": 0,
"ydcs": 2,
"ydcszd": 6,
"ydsj": 30,
"ydsjzd": 30,
"sycd": "中",
"sycdzd": "轻",
"zs": null,
"zszd": null,
"tzzd": 29,
"bmizd": 23.8,
"ywzd": 89,
"sffl": "控制满意",
"gljb": "三级管理",
"xcyy": "2022-10-06",
"zz": 0,
"zzyy": "",
"zzjg": "",
"jkcf": "1. 定期检查血脂，控制高脂肪饮食，不吃动物的内脏及其制品，可常食用黑木耳、山楂等。肥胖者需控制体重。\n2. 建议接种流感疫苗和肺炎疫苗。\n3. 饮食宜用低盐饮食，食盐每天不超过5～10克(1～2钱)。\n4.
从卧位到立位时不能太快，以防止发生直立性低血压。\n5. 保持大便畅通。",
"zdmbd": "触及正常",
"yds": "无",
"ydsyl": "",
"dxtfy": "无",
"xtlx": "空腹血糖",
"xtz": 0,
"thxhdb": "",
"jcrq": "2022-09-06",
"bqgss": "",
"zzqt": "无",
"tzqt": "无",
"height": 112,
"weight": 50,
"bmi": 39.9,
"waist": 1231,
"shrink": 123,
"diastole": 11,
"pulse": 31,
"temperature": 312,
"bloodGlucose1": null,
"bloodGlucose2": null,
"medicinalList":
"[{\"id\":773,\"idCard\":\"123456200001011212\",\"opUserId\":1,\"name\":\"拉西地平片\",\"type\":\"Gxy\",\"medicinalUnit\":\"mg\",\"unit\":\"4\",\"medicinalUse\":\"口服\",\"medicinalInterval\":\"1天/1次\",\"untowardReaction\":\"无\",\"medicinalId\":null,\"medicineUnitId\":null,\"usageId\":null,\"wayId\":null,\"createTime\":\"2022-08-05\"}]",
"visitSendId": null,
"doctorId": null,
"jkdaGljb": "",
"bloodFat1": null,
"bloodFat2": null,
"bloodFat3": null,
"bloodFat4": null,
"createTime": "2022-09-06T10:30:09",
"updateTime": "2022-09-06T10:30:09",
"isDelete": 0,
"otherDisease": "无",
"lgmjzsj": null,
"fymjzsj": null,
"qttz1": "无",
"lgymjzyy": "0",
"ymgz": "0",
"fyymjzyy": "0",
"outVisterDoctor": null,
"brjy": null,
"outVisterSign": null,
"BackVisitorDate": null
}
}
