<!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" />
	</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"}}岁)</span></p>
					<p v-if="!renewFlag || renewFlag == 'undefined'" class="c-f12 m0">申请时间： {{handleStr(patientInfo.jtSign.applyDate) || handleStr(patientInfo.applyDate)}}</p>
					<p v-if="renewFlag && renewFlag != 'undefined'" class="c-f12 m0">申请时间： {{applyDate}}</p>
				</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">
					<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.mobile}}</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.jtSign.ssc}}</span>
					<span class="fl w-20-1 c-border-r pl20 c-999">医疗保险号</span>
					<span class="fl w-30-1 pl20">{{patientInfo.medicareNumber}}</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-80-1 pl20">{{patientInfo.countryName}}</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-80-1 pl20">{{patientInfo.address ? patientInfo.address : ""}}</span>
				</li>
			</ul>
			<!--<h3>签约信息<span v-if="renewFlag != 2" class="c-f12 c-red ml20" style="font-weight: 400;">{{warnMsg}}</span></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>
							<div class="c-position-r fl w-60-1 c-border-r">
								<p class="pl20 w-100 set-bg" @click="selectStatus(1)">{{signInfo.adminTeamCode ? showTeamName(signInfo.adminTeamCode) : "请选择签约团队"}}</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="(team, index) in teamList" :key="index" @click="selectLi(1, team)">{{team.name}}(已签约{{team.signCount}}人)</li>
			                    </ul>
							</div>
						</div>
						<div class="m0 c-border-b clearfix">
							<span class="fl w-40 c-border-r pl20 c-999">全科医生</span>
							<span v-if="doctorType == 2" class="fl w-60-1 c-border-r pl20">{{signInfo.doctorName}}</span>
							<div v-if="doctorType == 3" class="c-position-r fl w-60-1 c-border-r">
								<p class="pl20 w-100 set-bg" @click="selectStatus(4)">{{signInfo.doctorName ? signInfo.doctorName : "请选择全科医生"}}</p>
								<ul class="pull-list m0 p0 c-border-l c-border-r c-border-b" v-if="isShowList4">
			                        <li class="cur-pit c-999" v-for="(member, index) in doctorList" :key="index" @click="selectLi(4, member)">{{member.name}}</li>
			                    </ul>
							</div>
						</div>
						<div class="m0 c-border-b clearfix">
							<span class="fl w-40 c-border-r pl20 c-999">健康管理师</span>
							<span v-if="doctorType == 3" class="fl w-60-1 c-border-r pl20">{{signInfo.healthDoctorName}}</span>
							<div v-if="doctorType == 2" class="c-position-r fl w-60-1 c-border-r">
								<p class="pl20 w-100 set-bg" @click="selectStatus(2)">{{signInfo.healthDoctorName ? signInfo.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="(member, index) in memberList" :key="index" @click="selectLi(2, member)">{{member.name}}</li>
			                    </ul>
							</div>
						</div>
						<div class="m0 clearfix">
							<span class="fl w-40 c-border-r pl20 c-999">政府补贴</span>
							<div class="c-position-r fl w-60-1 c-border-r">
								<p class="pl20 w-100 set-bg" @click="selectStatus(3)">{{signInfo.expenses ? showExpensesName(signInfo.expenses) : "请选择补贴类型"}}</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>
					</div>
					<div class="fl w-50-1">
						<div class="clearfix c-border-b">
							<div class="fl w-40 c-border-r c-999">
								<p class="m0 pl20 c-border-b">服务类型</p>
								<p class="m0 pl20">居民标签</p>
							</div>
							<div class="fl w-60-1 right-arrow" @click="selectServer">
								<p class="m0 plr20 ellipsis">{{serverName ? serverName : "请选择服务类型"}}</p>
								<p class="m0 plr20 ellipsis">{{labelName? labelName : "请选择居民标签"}}</p>
							</div>
						</div>
						<div class="lh80 clearfix">
							<span class="fl w-40 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" style="text-decoration: underline;" v-for="(lis, index) in fileList" :key="index" @click="lookPhoto(lis)">
									<p class="m0 lh24">{{lis.serverTypeName}}</p>
									<span class="lh24">查看附件</span>
								</div>
							</div>
						</div>
					</div>
				</li>
				<li class="c-border-b clearfix bgc-f5f5fa" v-if="renewFlag == 2">
					<span class="fl w-20-1 pl20 c-999">历史签约团队</span>
					<span class="fl w-80-1 c-border-l pl20">{{patientInfo.jtSign.hospitalName}},{{hisTeamName}},{{patientInfo.jtSign.doctorName}},{{patientInfo.jtSign.doctorHealthName}}</span>
				</li>
				<li class="c-border-b clearfix bgc-f5f5fa" v-if="renewFlag == 1 || renewFlag == 2">
					<span class="fl w-20-1 pl20 c-999">历史居民记录</span>
					<p class="fl w-80-1 c-border-l pl20">
						服务类型：<span v-for="(service, ind) in patientInfo.signFamilyServer" :key="ind"><span v-if="ind != 0">、</span>{{service.serverTypeName}}</span>，
						居民标签：<span v-for="(label, i) in patLabel" :key="i"><span v-if="i != 0">、</span>{{label.labelName}}</span></p>
				</li>
			</ul>
			<div class="c-t-center pt20">
				<span class="btn btn-red plr20" @click="refuse()">拒绝签约</span>
				<span class="btn btn-blue plr20 ml30" @click="sign(1)">同意签约</span>
			</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="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../plugins/toastr/toastr.min.js"></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_handle.js" type="text/javascript"></script>
	</body>
</html>
