<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>签约申请详情</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="../../../css/cross.css"/>
		<link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
		<link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../css/sign_manage.css" />
		<link rel="stylesheet" href="../css/sign_handle.css" />
		<style>
			.btn-ddd, .btn-ddd:hover, .btn-ddd.active {
				background-color: #ddd;
				color: #ffffff;
			}
			.btn-12b7f5, .btn-12b7f5:hover, .btn-12b7f5.active {
				background-color: #12b7f5;
				color: #ffffff;
			}
		</style>
	</head>
	<body>
		<div id="app" v-cloak class="p20 mb10">
			<dl class="clearfix">
				<dt class="fl">
					<img class="fl w40 h40 b-r-50" :src="setPatImg(patientInfo.photo)" alt="居民头像" />
				</dt>
				<dd class="fl ml10 c-999">
					<p class="m0"><span class="c-333 c-f16">{{patientInfo.name}}</span><span class="ml10 c-f14">({{patientInfo.sex == 1 ? "男" : "女"}}&emsp;{{patientInfo.age && patientInfo.age > 0 ? patientInfo.age : "<1"}}岁{{handleExpensesStatus(patientInfo.expensesStatus)}})</span></p>
					<p class="c-f12 m0">
						<img class="mr5" v-if="!patientInfo.openid" height="18" src="../../../images/weixing_zihui_icon.png" alt="" />
						<img class="mr5" v-if="patientInfo.openid" height="18" src="../../../images/weixing_icon.png" alt="" />
						<img class="mr5" v-if="!patientInfo.deviceType || patientInfo.deviceType.indexOf('2') == -1" height="18" src="../../../images/icon_xueyaji_zhihui.png" alt="" />
						<img class="mr5" v-if="patientInfo.deviceType && patientInfo.deviceType.indexOf('2') > -1" height="18" src="../../../images/icon_xueyaji.png" alt="" />
						<img class="mr5" v-if="!patientInfo.deviceType || patientInfo.deviceType.indexOf('1') == -1" height="18" src="../../../images/icon_xuetangyi_zhihui.png" alt="" />
						<img class="mr5" v-if="patientInfo.deviceType && patientInfo.deviceType.indexOf('1') > -1" height="18" src="../../../images/icon_xuetangyi.png" alt="" />
					</p>
				</dd>
				<dd class="fr">
					<span class="c-fff btn" :class="isSaveBtn || isSaveBtn1 || isSaveBtn2 ? 'btn-12b7f5' : 'btn-ddd'" @click="saveChange()">保存改动</span>
				</dd>
			</dl>
			<h3>签约信息</h3>
			<ul class="m0 p0 mb20 lh40 c-border-t c-border-r c-border-l c-t-left c-333">
				<li class="c-border-b clearfix">
					<div class="fl w-50-1">
						<div class="m0 c-border-b clearfix">
							<span class="fl w-40 c-border-r pl20 c-999">签约类型</span>
							<span class="fl w-60-1 c-border-r pl20">家庭医生</span>
						</div>
						<p class="m0 c-border-b clearfix">
							<span class="fl w-40 c-border-r pl20 c-999">签约团队</span>
							<span class="fl w-60-1 c-border-r pl20">{{doctorTeam.teamName}}</span>
						</p>
						<div class="m0 c-border-b clearfix">
							<span class="fl w-40 c-border-r pl20 c-999">全科医生</span>
							<span v-if="!isLeader" class="fl w-60-1 c-border-r pl20">{{doctorTeam.doctorName}}</span>
							<div v-if="isLeader" class="c-position-r fl w-60-1 c-border-r">
								<p class="pl20 w-100 cur-pit set-bg" @click="selectStatus(1)">{{doctorTeam.doctorName || "请分配全科医生"}}</p>
								<ul class="pull-list m0 p0 c-border-l c-border-r c-border-b" v-if="isShowList1">
			                        <li class="cur-pit c-999" v-for="(dict, index) in doctorList" :key="index" @click="selectLi(1, dict)">{{dict.name}}</li>
			                    </ul>
							</div>
						</div>
						<div class="m0 clearfix">
							<span class="fl w-40 c-border-r pl20 c-999">健康管理师</span>
							<span v-if="!isLeader" class="fl w-60-1 c-border-r pl20">{{doctorTeam.healthDoctorName}}</span>
							<div v-if="isLeader" class="c-position-r fl w-60-1 c-border-r">
								<p class="pl20 w-100 cur-pit set-bg" @click="selectStatus(2)">{{doctorTeam.healthDoctorName || "请分配健管师"}}</p>
								<ul class="pull-list m0 p0 c-border-l c-border-r c-border-b" v-if="isShowList2">
			                        <li class="cur-pit c-999" v-for="(dict, index) in memberList" :key="index" @click="selectLi(2, dict)">{{dict.name}}</li>
			                    </ul>
							</div>
						</div>
					</div>
					<div class="fl w-50-1">
						<div class="m0 c-border-b clearfix">
							<span class="fl w-40 c-border-r pl20 c-999">缴费时间</span>
							<span class="fl w-60-1 pl20">{{patientInfo.jtSign.expensesTime}}</span>
						</div>
						<p class="m0 c-border-b clearfix">
							<span class="fl w-40 c-border-r pl20 c-999">签约有效期</span>
							<span class="fl w-60-1 pl20">{{patientInfo.jtSign.beginDate}}~{{patientInfo.jtSign.endDate}}</span>
						</p>
						<div class="m0 c-border-b clearfix">
							<span class="fl w-40 c-border-r pl20 c-999">政府补贴费</span>
							<div class="c-position-r fl w-60-1">
								<p class="pl20 w-100 cur-pit set-bg" @click="selectStatus(3)">{{showExpensesName(patientInfo.jtSign.expensesType)}}</p>
								<ul class="pull-list m0 p0 c-border-l c-border-r c-border-b" v-if="isShowList3">
			                        <li class="cur-pit c-999" v-for="(dict, index) in dictList" :key="index" @click="selectLi(3, dict)">{{dict.value}}</li>
			                    </ul>
							</div>
						</div>
						<p class="m0 clearfix">
							<!--<span class="fl w-40 c-border-r pl20 c-999">签约有效期</span>
							<span class="fl w-60-1 pl20">2</span>-->
						</p>
					</div>
				</li>
			</ul>
			<h3>居民信息</h3>
			<ul class="m0 p0 mb20 lh40 c-border-t c-border-r c-border-l c-t-left c-333">
				<li class="c-border-b clearfix">
					<span class="fl w-20-1 c-border-r pl20 c-999">身份证号</span>
					<span class="fl w-30-1 c-border-r pl20">{{patientInfo.idCard}}</span>
					<span class="fl w-20-1 c-border-r pl20 c-999">所属居委会</span>
					<span class="fl w-30-1 pl20">{{patientInfo.sickVillageName}}</span>
				</li>
				<li class="c-border-b clearfix">
					<span class="fl w-20-1 c-border-r pl20 c-999">医保卡号</span>
					<span class="fl w-30-1 c-border-r pl20">{{patientInfo.ssc || patientInfo.jtSign.ssc || ""}}</span>
					<span class="fl w-20-1 c-border-r pl20 c-999">服务类型</span>
					<span class="fl w-30-1 pl20">{{serverName}}</span>
				</li>
				<li class="c-border-b clearfix">
					<div class="fl w-50-1">
						<p class="m0 c-border-b clearfix">
							<span class="fl w-40-1 c-border-r pl20 c-999">医疗保险号</span>
							<span class="fl w-60 c-border-r pl20">{{patientInfo.medicareNumber || "暂无"}}</span>
						</p>
						<p class="m0 clearfix">
							<span class="fl w-40-1 c-border-r pl20 c-999">手机号</span>
							<span class="fl w-60 c-border-r pl20">{{patientInfo.mobile || "暂无"}}</span>
						</p>
					</div>
					<div class="fl lh80 w-50">
						<span class="fl w-40-2 c-border-r pl20 c-999">已上传凭证</span>
						<div class="fl w-60 ptb10 pl20">
							<div class="fl mtb5 cur-pit lh0 c-t-center c-12b7f5" v-for="(lis, index) in fileList" :key="index" @click="lookPhoto(lis)">
								<p class="m0 lh24">{{lis.serverTypeName}}</p>
								<span class="lh24" style="text-decoration: underline;">查看</span>
							</div>
						</div>
					</div>
				</li>
				<li class="c-border-b clearfix">
					<span class="fl w-20-1 c-border-r pl20 c-999">详细地址</span>
					<span class="fl w-80-1 pl20">{{patientInfo.address || ""}}</span>
				</li>
			</ul>
			<h3>签约协议</h3>
			<div class="c-f14 c-border-t pt10">
				<h4 style="text-indent: 2em">家庭医生签约协议</h4>
				<p class="pb10" style="text-indent: 2em">乙方自愿邀请甲方为其家庭健康服务医生。为提高本社区居民健康管理水平，推行社区卫生服务契约化，甲乙双方本着平等、尊重和自愿的原则，签订此协议，接受以下条款的约定：</p>
				<p class="pb10"><b>一、</b>甲方作为服务的提供者，主要提供基本医疗、基本公共卫生服务和<a href="javascript:;" class="c-12b7f5" @click="showProject()">个性化服务项目</a>。</p>
				<p class="pb10"><b>二、</b>乙方自愿接受服务项目，将自己的身体健康状况及变化情况及时告知甲方，积极配合甲方的服务。</p>
				<p class="pb10"><b>三、</b>甲方提供上述约定的免费服务项目不得另行收取其他费用。提供非约定的医疗卫生服务或向非签约居民提供医疗卫生服务，按规定收取费用。协议双方可通过协商，增加、细化个性化服务项目，如涉及收费项目，则按照有关文件标准执行。</p>
				<p class="pb10">本协议书一式两份，甲方、乙方各执一份，自双方签字之日起生效，有效期为1年。有效期内，乙方如因居住地变更等特殊原因需解除协议的，可由乙方提出书面申请，经双方签字确认解约。有效期满后，乙方可选择续约或解约。</p>
			</div>
		</div>
		<script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../js/jquery-2.2.4.js"></script>
        <script src="../../../plugins/layer/layer.min.js"></script>
        <script src="../../../js/bootstrap.min.js"></script>
        <script src="../../../plugins/toastr/toastr.min.js"></script>
        <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../api/http-request.js" type="text/javascript"></script>
		<script src="../../../api/sign_api.js" type="text/javascript"></script>
		<script src="../js/sign_detail.js" type="text/javascript"></script>
	</body>
</html>
