<template>
	<view class="fwnr-item-box">
		<view class="title-row-box">
			<text>照顾老人：</text>
			<view class="title-del-btn">
				<icon class="del-icon"></icon>
			</view>
		</view>
		<view class="fwnr-label-input">
			<view class="fwnr-form-label"><text class="form-label-require"></text>老人身体情况</view>
			
			<radio-group @change="radioChange">
				<label class="uni-list-cell uni-list-cell-pd" v-for="item in items" :key="item.value">
					<view>
						<radio :value="item.value" :checked="item.value === data.shentizhuangkuang" />
					</view>
					<view>{{item.text}}</view>
				</label>
			</radio-group>
		</view>
		<laorenNianling @change="onChange"></laorenNianling>
	</view>
</template>

<script setup>
	import {
		useHetong
	} from "../useHetong.js"
	import laorenNianling from "./laorenNianling.vue"
	import {ref} from "vue"
	const {
		injectHetong
	} = useHetong();

	const data = injectHetong()
	
	const emits = defineEmits(['change'])
	
	const items = [
		{
			value: 1,
			text: '能自理'
		},{
			value: 2,
			text: '半自理'
		},{
			value: 3,
			text: '不能自理'
		},
	]	
	
	function onChange() {
		emits('change')
	}
	
	function radioChange() {}
</script>


<style>
</style>