Bladeren bron

随访详情可编辑 修改

huhongkun 5 jaren geleden
bovenliggende
commit
a8dece1c38

+ 5 - 0
app/followup/css/follow-up.css

@ -15,9 +15,11 @@
.pagination{margin: 20px 0px 15px;}
/*通用*/
.ib{display: inline-block;}
.mt50{margin-top: 50px;}
.verti-top{vertical-align: top;}
.mr20{margin-right: 20px;}
.mr10{margin-right: 10px;}
.mt20{margin-top: 20px;}
em{font-style: normal;}
*{box-sizing: border-box;padding: 0;margin: 0;}
.disabled-input input{pointer-events: none;}
@ -68,6 +70,9 @@ input[type='radio']:checked+span:before{background: url(../image/dianxuan_pre.pn
.row-inline-item{display: inline-block;margin-left: 20px;margin-top: 20px;}
.row-inline-item span{font-size: 14px;}
.form-control{display: inline-block;margin: 0 5px;width: 64px;border-radius: 0;padding: 2px 6px;line-height: 20px;height: 28px;}
.el-date-editor.el-input, .el-date-editor.el-input__inner{width: 228px;}
.el-input__icon{line-height: 29px;}
.el-input__inner{margin: 0 5px;width: 64px;border-radius: 0;padding: 2px 6px;line-height: 20px;height: 28px;}
.input-groups{margin-top: 20px;}
.input-groups textarea{width: 100%;padding: 6px 8px;margin: 0;width: 100%;overflow: hidden;}
.input-group-addons{margin-bottom: 10px;}

+ 11 - 2
app/followup/html/followup_education.html

@ -10,6 +10,8 @@
		<link rel="stylesheet" href="../../../css/bootstrap.min.css" />
		<link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../css/follow-up.css" />
		<link rel="stylesheet" type="text/css" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
		<script type="text/javascript" src="../../../js/esModule.js" ></script>
	</head>
	<body>
		<div id="app">
@ -17,7 +19,9 @@
			<div class="inline-container" :class="{'disabled-input':readonly}">
				<div class="row-inline-item ml0 mr5">
					<span>日期</span>
					<input v-model="ARCHIVE_TIME" type="text" class="form-control w-100"/>
					<!--<input v-model="ARCHIVE_TIME" type="text" class="form-control w-100"/>-->
					<el-date-picker v-model="ARCHIVE_TIME" type="date" placeholder="选择日期时间" value-format="yyyy-MM-dd"> </el-date-picker>
					
				</div>
				<div class="row-inline-item ml0 mr5">
					<span>记录者</span>
@ -37,9 +41,13 @@
				</div>
				<div class="input-groups">
					<div class="input-group-addons">教育内容</div>
					<textarea id="textarea" :readonly="{'readonly':readonly}" v-model="EDUCATE_CONTENT" class="form-control"></textarea>
					<textarea id="textarea"  v-model="EDUCATE_CONTENT" class="form-control"></textarea>
				</div>
			</div>
			<!--保存-->
			<div class="mt50 text-center">
				<el-button type="primary" @click="saveButton">保存</el-button>
			</div>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
@ -47,6 +55,7 @@
		<script src="../../../plugins/toastr/toastr.min.js"></script>
		<script src="../../../plugins/slimscroll/jquery.slimscroll.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../js/util.js"></script>
		<script src="https://unpkg.com/element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script type="text/javascript" src="../js/education.js" ></script>

+ 10 - 3
app/followup/html/followup_evaluate.html

@ -10,9 +10,11 @@
		<link rel="stylesheet" href="../../../css/bootstrap.min.css" />
		<link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="../css/follow-up.css"/>
		<link rel="stylesheet" type="text/css" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
		<script type="text/javascript" src="../../../js/esModule.js" ></script>
	</head>
	<body>
		<div id="app">
		<div id="app" class="pt20">
			<p class="page_title">5、评价</p>
			<div class="inline-container" :class="{'disabled-input':readonly}">
				<div class="row-inline-item" v-if="type.indexOf('1')>-1">
@ -28,7 +30,7 @@
				</div>
				<div v-if="type.indexOf('1')>-1" class="row-line-item mt20 ml20" style="width: 100%">
					<span class="ib verti-top mr10">详情</span>
					<textarea v-model="HYP_COMPLICATION_DETAIL" :readonly="{'readonly':readonly}" style="width:450px" class="form-control ib" rows="3"></textarea>
					<textarea v-model="HYP_COMPLICATION_DETAIL" style="width:450px" class="form-control ib" rows="3"></textarea>
				</div>
				<div v-if="type.indexOf('2')>-1" class="row-inline-item">
			 		<span><em class="red">*</em>糖尿病随访分类</span>
@ -43,15 +45,20 @@
				</div>
				<div v-if="type.indexOf('2')>-1" class="row-line-item mt20 ml20" style="width: 100%">
					<span class="ib verti-top mr10">详情</span>
					<textarea v-model="DIA_COMPLICATION_DETAIL" :readonly="{'readonly':readonly}" style="width:450px" class="form-control ib" rows="3"></textarea>
					<textarea v-model="DIA_COMPLICATION_DETAIL" style="width:450px" class="form-control ib" rows="3"></textarea>
				</div>
			</div>
			<!--保存-->
			<div class="mt50 text-center">
				<el-button type="primary" @click="saveButton">保存</el-button>
			</div>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../plugins/toastr/toastr.min.js"></script>
		<script src="../../../js/util.js"></script>
		<script src="https://unpkg.com/element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script type="text/javascript" src="../js/evaluate.js" ></script>

+ 12 - 5
app/followup/html/followup_guidance.html

@ -10,33 +10,40 @@
		<link rel="stylesheet" href="../../../css/bootstrap.min.css" />
		<link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../css/follow-up.css" />
		<link rel="stylesheet" type="text/css" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
		<script type="text/javascript" src="../../../js/esModule.js" ></script>
	</head>
	<body>
		<div id="app">
		<div id="app" class="pt20">
			<p class="page_title">4、生活方式指导</p>
			<div class="inline-container disabled-input">
			<div class="inline-container">
				<div class="row-inline-item" v-for="list in guidances">
					<div v-if="list.type == 1">
				 		<span v-text="list.name"></span>
				 		<input v-model="list.value" type="text" class="form-control"/>
				 		<input v-model="list.value" type="text" :name="list.key" class="form-control"/>
				 		<span v-text="list.unit"></span>
				    </div>
				    <div v-else>
				    	<span v-text="list.name"></span>
				 		<select v-model="list.value" class="form-control w-100" :class="{'w-210':(list.key.indexOf('EXERCISE_FREQ_CODE')>-1)}">
				 		<select v-model="list.value" class="form-control w-100" :name="list.key" :class="{'w-210':(list.key.indexOf('EXERCISE_FREQ_CODE')>-1)}">
		 					<option value=""></option>
		 					<option v-for="item in list.options" v-text="item.value" :value="item.key"></option>
		 					<option v-for="item in list.options" v-text="item.value"  :name="list.key" :value="item.key"></option>
		 				</select>
				 		<span v-text="list.unit"></span>
					</div>
				</div>
			</div>
			<!--保存-->
			<div class="mt50 text-center">
				<el-button type="primary" @click="saveButton">保存</el-button>
			</div>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../plugins/toastr/toastr.min.js"></script>
		<script src="../../../js/util.js"></script>
		<script src="https://unpkg.com/element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script type="text/javascript" src="../js/guidance.js" ></script>

+ 11 - 3
app/followup/html/followup_inspect.html

@ -10,24 +10,32 @@
		<link rel="stylesheet" href="../../../css/bootstrap.min.css" />
		<link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../css/follow-up.css" />
		<link rel="stylesheet" type="text/css" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
		<script type="text/javascript" src="../../../js/esModule.js" ></script>
	</head>
	<body>
		<div id="app">
		<div id="app" class="pt20">
			<p class="page_title">3、实验室检查</p>
			<div class="inline-container disabled-input">
			<div class="inline-container">
				<div class="row-inline-item" v-for="list in inspects">
					<span v-text="list.name"></span>
					<input v-model="list.value" name="list.key" type="text" class="form-control" :class="{'w-114':list.key=='EXAM_DATE'}"/>
					<el-date-picker v-model="list.value" :name="list.key" v-show="list.code==1" type="date" placeholder="选择日期时间" value-format="yyyy-MM-dd"> </el-date-picker>
					<input v-model="list.value" v-show="list.code !=1" :name="list.key" type="text" class="form-control" :class="{'w-114':list.key=='EXAM_DATE'}"/>
					<span v-text="list.unit"></span>
				</div>
				<div class="notice"><span>*</span>空腹、餐后或随机血糖至少需要填写一项</div>
			</div>
			<!--保存-->
			<div class="mt50 text-center">
				<el-button type="primary" @click="saveButton">保存</el-button>
			</div>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../plugins/toastr/toastr.min.js"></script>
		<script src="../../../js/util.js"></script>
		<script src="https://unpkg.com/element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script type="text/javascript" src="../js/inspect.js" ></script>

+ 12 - 5
app/followup/html/followup_medication.html

@ -10,11 +10,13 @@
		<link rel="stylesheet" href="../../../css/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="../../../plugins/toastr/toastr.min.css"/>
		<link rel="stylesheet" href="../css/follow-up.css" />
		<link rel="stylesheet" type="text/css" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
		<script type="text/javascript" src="../../../js/esModule.js" ></script>
	</head>
	<body>
		<div id="app">
		<div id="app" class="pt20">
			<p class="page_title">6、用药情况</p>
			<div class="inline-container medication disabled-input">
			<div class="inline-container medication">
				<div class="row-inline-item ml0">
	 				<span class="mr10">服药依从性</span>
	 				<select v-model="DRUG_COMPLIANCE_CODE" class="form-control w-110">
@ -31,10 +33,10 @@
						<div class="row-inline-item w-110 ml0 c-t-center">单位</div>
						<div class="row-inline-item w-110 ml0 c-t-center">频次</div>
					</div>
					<div v-for="item in noInsulin" class="row-inline-item ml0">
					<div v-for="item in noInsulin" class="row-inline-item ml0 inline-container-p" :name="item.drugsName" :code="item.drugsCode" :group="item.drugsGroup" :value1="item.unit" :value2="item.frequency" :dose="item.dose">
		 				<input v-model="item.drugsName" type="text" class="form-control w-290 ml0"/>
		 				<input v-model="item.dose" type="text" class="form-control w-70"/>
		 				<select v-model="item.unit" class="form-control w-110">
		 				<select v-model="item.unit" class="form-control w-110":value="item.unit">
		 					<option value="">请选择</option>
		 					<option v-for="item in unit_dict" :value="item.key" v-text="item.name"></option>
		 				</select>
@ -51,7 +53,7 @@
						<div class="row-inline-item w-110 ml0 c-t-center">单位</div>
						<div class="row-inline-item w-110 ml0 c-t-center">频次</div>
					</div>
					<div v-for="item in hasInsulin" class="row-inline-item ml0">
					<div v-for="item in hasInsulin" class="row-inline-item ml0 inline-container-y" :name="item.drugsName" :code="item.drugsCode" :group="item.drugsGroup" :value1="item.unit" :value2="item.frequency" :dose="item.dose">
		 				<input v-model="item.drugsName" type="text" class="form-control w-290 ml0"/>
		 				<input v-model="item.dose" type="text" class="form-control w-70"/>
		 				<select v-model="item.unit" class="form-control w-110">
@ -66,12 +68,17 @@
				</div>
				<div v-if="hasInsulin.length==0 && noInsulin.length==0">暂无药品</div>
			</div>
			<!--保存-->
			<div class="mt50 text-center" v-if="hasInsulin.length>0 || noInsulin.length>0">
				<el-button type="primary" @click="saveButton">保存</el-button>
			</div>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../plugins/toastr/toastr.min.js"></script>
		<script src="../../../js/util.js"></script>
		<script src="https://unpkg.com/element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script src="../js/recipe_frequency_dict.js"></script>

+ 11 - 4
app/followup/html/followup_referral.html

@ -10,6 +10,8 @@
		<link rel="stylesheet" href="../../../css/bootstrap.min.css" />
		<link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../css/follow-up.css" />
		<link rel="stylesheet" type="text/css" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
		<script type="text/javascript" src="../../../js/esModule.js" ></script>
	</head>
	<body>
		<div id="app">
@ -27,7 +29,7 @@
							<span>有</span>
						</label>
					</div>
					<textarea :readonly="{'readonly':readonly}" v-model="ADR_REMARK" class="form-control fr-text c-hide" :class="{'ib':DRUG_ADVERSE_MARK == 1}" placeholder="请填写药物不良反应" rows="4"></textarea>
					<textarea v-model="ADR_REMARK" class="form-control fr-text c-hide" :class="{'ib':DRUG_ADVERSE_MARK == 1}" placeholder="请填写药物不良反应" rows="4"></textarea>
				</div>
				<div class="mt15">
					<div>
@ -41,27 +43,32 @@
							<span>是</span>
						</label>
					</div>
					<textarea :readonly="{'readonly':readonly}" v-model="REFUSE_REFERRAL_WHY" placeholder="请填写患者拒绝转诊原因" class="form-control fr-text c-hide" :class="{'ib':REFUSE_REFERRAL == 1}" rows="4"></textarea>
					<textarea v-model="REFUSE_REFERRAL_WHY" placeholder="请填写患者拒绝转诊原因" class="form-control fr-text c-hide" :class="{'ib':REFUSE_REFERRAL == 1}" rows="4"></textarea>
				</div>
				<div class="mt15">
					<div class="row-line-item c-100">
						<span class="verti-top mr5 pt3"><em class="red verti-top">*</em>转诊原因</span>
						<textarea v-model="TRANSFER_RESON" class="form-control fr-reason" readonly="readonly" name="" rows="4"></textarea>
						<textarea v-model="TRANSFER_RESON" class="form-control fr-reason"  name="" rows="4"></textarea>
					</div>
				</div>
				<div class="mt15">
					<div class="row-line-item c-100">
						<span class="verti-top mr5 pt3"><em class="red verti-top">*</em>转诊科室</span>
						<textarea v-model="TRANSFER_ORG_DEPT" class="form-control fr-reason" :readonly="{'readonly':readonly}" rows="3"></textarea>
						<textarea v-model="TRANSFER_ORG_DEPT" class="form-control fr-reason" rows="3"></textarea>
					</div>
				</div>
			</div>
			<!--保存-->
			<div class="mt20 text-center">
				<el-button type="primary" @click="saveButton">保存</el-button>
			</div>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../plugins/toastr/toastr.min.js"></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../js/util.js"></script>
		<script src="https://unpkg.com/element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script type="text/javascript" src="../js/referral.js" ></script>

+ 32 - 7
app/followup/html/followup_register.html

@ -9,36 +9,61 @@
		<title>随访登记</title>
		<link rel="stylesheet" href="../../../css/bootstrap.min.css" />
		<link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
		<link rel="stylesheet" href="../css/follow-up.css" />
		<script src="../../../js/esModule.js" type="text/javascript"></script>
	</head>
	<body>
		<div id="app" class="pt20 disabled-input text-center">
			<div class="row-item">
		<div id="app" class="pt20 text-center">
			<div class="row-item disabled-input">
				<span>随访日期:</span>
				<input v-model="queryData.followupDate" type="text" class="form-control"/>
					<!--<span class="demonstration">默认</span>-->
				<!--<el-date-picker v-model="queryData.followupDate" type="date" placeholder="选择日期时间" value-format="yyyy-MM-dd"> </el-date-picker>-->
			</div>
			<div class="row-item">
			<div class="row-item disabled-input">
				<span>随访方式:</span>
				<input v-model="queryData.followupTypeName" type="text" class="form-control"/>
				<!--<el-select v-model="queryData.followupTypeName" placeholder="请选择">
					<el-option v-for="item in options_type" :key="item.way_key" :label="item.value_type" :value="item.value_type">
					</el-option>
				</el-select>-->
			</div>
			<div class="row-item">
			<div class="row-item disabled-input">
				<span>随访类型:</span>
				<input v-model="queryData.followupClassName" type="text" class="form-control"/>
				<!--<el-select v-model="queryData.followupClassName" placeholder="请选择">
					<el-option v-for="item in options_class" :key="item.way_class" :label="item.value_class" :value="item.value_class">
					</el-option>
				</el-select>-->
			</div>
			<div class="row-item">
			<div class="row-item disabled-input">
				<span>随访状态:</span>
				<input v-model="queryData.followupManagerStatusName" type="text" class="form-control"/>
				<!--<el-select v-model="queryData.followupManagerStatusName" placeholder="请选择">
					<el-option v-for="item in options_statue" :key="item.code" :label="item.value" :value="item.value">
					</el-option>
				</el-select>-->
			</div>
			<div class="row-item">
			<div class="row-item disabled-input">
				<span>随访医生:</span>
				<input v-model="queryData.doctorName" type="text" class="form-control"/>
				<!--<el-select v-model="queryData.doctorName" placeholder="请选择">
					<el-option v-for="item in options" :key="item.index" :label="item.name" :value="item.name">
					</el-option>
				</el-select>-->
			</div>
			<!--保存-->
			<!--<div class="mt50">
				<el-button type="primary" @click="saveButton">保存</el-button>
			</div>-->
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../plugins/toastr/toastr.min.js"></script>
		<script src="../../../js/util.js"></script>
		<script src="https://unpkg.com/element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script src="../js/register.js"></script>

+ 9 - 2
app/followup/html/followup_sign.html

@ -10,9 +10,11 @@
		<link rel="stylesheet" href="../../../css/bootstrap.min.css" />
		<link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../css/follow-up.css" />
		<link rel="stylesheet" type="text/css" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
		<script type="text/javascript" src="../../../js/esModule.js" ></script>
	</head>
	<body>
		<div id="app">
		<div id="app" class="pt20">
			<p class="page_title">2、体征</p>
			<div class="inline-container" :class="{'disabled-input':readonly}">
				<div class="row-inline-item" >
@ -54,15 +56,20 @@
				</div>
				<div class="row-line-item" style="width: 100%;padding: 0px 20px;margin-top: 20px;">
					<span class="ib verti-top mr10">其他</span>
					<textarea v-model="OTHER_POSITIVE_SIGNS" :readonly="{'readonly':readonly}" style="width:450px;border-radius: 3px;" class="form-control ib" name="SYMPTOM_OTHER" rows="3"></textarea>
					<textarea v-model="OTHER_POSITIVE_SIGNS"  style="width:450px;border-radius: 3px;" class="form-control ib" name="SYMPTOM_OTHER" rows="3"></textarea>
				</div>
			</div>
			<!--保存-->
			<div class="mt50 text-center">
				<el-button type="primary" @click="saveButton">保存</el-button>
			</div>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../plugins/toastr/toastr.min.js"></script>
		<script src="../../../js/util.js"></script>
		<script src="https://unpkg.com/element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script src="../js/sign.js"></script>

+ 10 - 3
app/followup/html/followup_symptom.html

@ -10,14 +10,16 @@
		<link rel="stylesheet" href="../../../css/bootstrap.min.css" />
		<link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../css/follow-up.css" />
		<link rel="stylesheet" type="text/css" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
		<script type="text/javascript" src="../../../js/esModule.js" ></script>
	</head>
	<body>
		<div id="app">
		<div id="app" class="pt20 text-center">
			<p class="page_title">1、症状</p>
			<div class="inline-container-l" :class="{'disabled-input':readonly}">
				<div class="row-line-item w-138" v-for="item in symptoms">
					<label class="checkbox-inline">
						<input v-model="item.value" :name="item.key" type="checkbox"/>
						<input v-model="item.value" :name="item.key" :code="item.code" type="checkbox"/>
						<span v-text="item.name"></span>
					</label>
				</div>
@ -38,15 +40,20 @@
				</div>
				<div class="row-line-item" style="width: 100%">
					<span class="ib verti-top mr10">其他</span>
					<textarea v-model="remark" style="width:450px" :readonly="{'readonly':readonly}" class="form-control ib" name="SYMPTOM_OTHER" rows="3"></textarea>
					<textarea v-model="remark" style="width:450px" class="form-control ib" name="SYMPTOM_OTHER" rows="3"></textarea>
				</div>
			</div>
			<!--保存-->
			<div class="mt50">
				<el-button type="primary" @click="saveButton">保存</el-button>
			</div>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../plugins/toastr/toastr.min.js"></script>
		<script src="../../../js/util.js"></script>
		<script src="https://unpkg.com/element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script type="text/javascript" src="../js/symptom.js" ></script>

+ 11 - 3
app/followup/html/followup_target.html

@ -10,14 +10,17 @@
		<link rel="stylesheet" href="../../../css/bootstrap.min.css" />
		<link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../css/follow-up.css" />
		<link rel="stylesheet" type="text/css" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
		<script type="text/javascript" src="../../../js/esModule.js" ></script>
	</head>
	<body>
		<div id="app">
		<div id="app" class="pt20">
			<p class="page_title">7、控制目标</p>
			<div class="inline-container disabled-input">
			<div class="inline-container">
				<div class="row-inline-item">
					<span>控制日期</span>
					<input v-model="CONTROL_DATE" type="text" class="form-control w-120" />
					<!--<input v-model="CONTROL_DATE" type="text" class="form-control w-120" />-->
					<el-date-picker v-model="CONTROL_DATE" type="date" placeholder="选择日期时间" value-format="yyyy-MM-dd"> </el-date-picker>
				</div>
				<div class="row-inline-item" >
					<span>制定者</span>
@ -73,12 +76,17 @@
					<input v-model="CONTROL_EXERCISE_DURATION_MINS" type="text" class="form-control" /><span>次/分钟</span>
				</div>
			</div>
			<!--保存-->
			<div class="mt50 text-center">
				<el-button type="primary" @click="saveButton">保存</el-button>
			</div>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../plugins/toastr/toastr.min.js"></script>
		<script src="../../../js/util.js"></script>
		<script src="https://unpkg.com/element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script src="../js/target.js"></script>

+ 27 - 3
app/followup/js/education.js

@ -5,7 +5,8 @@ new Vue({
  	ARCHIVE_OPERATOR_NAME:'',
  	HEALTH_EDUCATE:'',
  	EDUCATE_CONTENT:'',
  	readonly:true
  	readonly:false,
  	objData:''
  },
  mounted: function() {
  	var vm = this
@ -13,12 +14,35 @@ new Vue({
  	recordAPI.getFollowupProjectData({id:Request["id"],followupProject:8}).then(function(res){
			if(res.status==200){
				var data = res.data;
				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				 vm.objData = res.data;
//				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				for(var key in data){
					vm[key] = data[key]
				}
			}
		})
  	$("#textarea").slimScroll({width:'100%',height: '385px',color: '#666'});
  	$("#textarea").slimScroll({width:'100%',height: '285px',color: '#666'});
  },
  methods:{
  	saveButton:function(){
  		var vm = this;
      params = {id: vm.objData.followup_id, followupProject:vm.objData.followup_project}
      var checkID = {};
      checkID['ARCHIVE_TIME'] =vm.ARCHIVE_TIME
      checkID['ARCHIVE_OPERATOR_NAME'] =vm.ARCHIVE_OPERATOR_NAME
      checkID['HEALTH_EDUCATE'] =vm.HEALTH_EDUCATE
      checkID['EDUCATE_CONTENT'] =vm.EDUCATE_CONTENT
      console.log(checkID)
        params.followupProjectData = JSON.stringify(checkID);
        console.log(params.followupProjectData)
        console.log(params)
				recordAPI.ModifyFollowupResult(params).then(function(res){
				if(res.status==200){
					toastr.error("保存成功")
				}else{
					toastr.error(res.msg)
				}
			})
  	}
  }
})

+ 26 - 2
app/followup/js/evaluate.js

@ -6,7 +6,8 @@ new Vue({
  	DIA_COMPLICATION_DETAIL:'',
  	HYP_FOLLOWUP_TYPE_CODE:'',
  	DIA_FOLLOWUP_TYPE_CODE:'',
  	readonly:true
  	readonly:false,
  	objData:''
  },
  mounted: function() {
  	var vm = this
@ -16,11 +17,34 @@ new Vue({
  	recordAPI.getFollowupProjectData({id:Request["id"],followupProject:5}).then(function(res){
			if(res.status==200){
				var data = res.data;
				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				vm.objData  = res.data
//				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				for(var key in data){
					vm[key] = data[key]
				}
			}
		})
  },
  methods:{
  	saveButton:function(){
  			var vm = this;
      params = {id: vm.objData.followup_id, followupProject:vm.objData.followup_project}
      var checkID = {};
      checkID['HYP_COMPLICATION_DETAIL'] =vm.HYP_COMPLICATION_DETAIL
      checkID['DIA_COMPLICATION_DETAIL'] =vm.DIA_COMPLICATION_DETAIL
      checkID['HYP_FOLLOWUP_TYPE_CODE'] =vm.HYP_FOLLOWUP_TYPE_CODE
      checkID['DIA_FOLLOWUP_TYPE_CODE'] =vm.DIA_FOLLOWUP_TYPE_CODE
      console.log(checkID)
        params.followupProjectData = JSON.stringify(checkID);
        console.log(params.followupProjectData)
        console.log(params)
				recordAPI.ModifyFollowupResult(params).then(function(res){
				if(res.status==200){
					toastr.error("保存成功")
				}else{
					toastr.error(res.msg)
				}
			})
  	}
  }
})

+ 26 - 2
app/followup/js/guidance.js

@ -27,7 +27,8 @@ new Vue({
   			options:[{key: "1",value:"每周 <= 三次"},{key: "2",value: "每周 > 三次"},{key: "3",value: "极少运动"},{key: "4",value: "残疾、关节等原因不能运动"},{key: "99",value: "不详"}]
   		},
   		{name:'运动时长期望',type:1,value:"",unit:'分钟/次',key:"EXERCISE_DURATION_MINS_EXP"},
   	]
   	],
   	objData:''
  },
  mounted: function() {
  	var vm = this
@ -35,7 +36,8 @@ new Vue({
  	recordAPI.getFollowupProjectData({id:Request["id"],followupProject:4}).then(function(res){
			if(res.status==200){
				var data = res.data;
				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				vm.objData = res.data
//				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				var allData = vm.guidances;
				for(var key in data){
					for(var j=0;j<allData.length;j++){
@ -47,5 +49,27 @@ new Vue({
				}
			}
		})
  },
  methods:{
  	saveButton:function(){
  				var vm = this;
	      params = {id: vm.objData.followup_id, followupProject:vm.objData.followup_project}
	      var checkID = {}
	      $(".inline-container input").each(function(i,v){//把所有被选中的复选框的值存入数组
	           checkID[$(this).attr('name')] = $(this).val()
	        });
	         $(".inline-container select").each(function(i,v){//把所有被选中的复选框的值存入数组
	           checkID[$(this).attr('name')] = $(this).val()
	        });
	        console.log(checkID)
	        params.followupProjectData = JSON.stringify(checkID);
					recordAPI.ModifyFollowupResult(params).then(function(res){
					if(res.status==200){
						toastr.error("保存成功")
					}else{
						toastr.error(res.msg)
					}
				})
  	}
  }
})

+ 34 - 13
app/followup/js/inspect.js

@ -2,18 +2,19 @@ new Vue({
  el: '#app',
  data: {
   	inspects:[
   		{key:"EXAM_DATE",name:'检查时间',value:"",unit:''},
   		{key:"BS_FPG",name:'空腹血糖',value:"",unit:'mmol/L'},
   		{key:"NO_BS_FPG",name:'餐后血糖',value:"",unit:'mmol/L'},
   		{key:"RANDOM_BLOOD_SUGAR",name:'随机血糖',value:"",unit:'mmol/L'},
   		{key:"BLOOD_FAT_TRIGLYCERIDE",name:'甘油三酯',value:"",unit:'mmol/L'},
   		{key:"BLOOD_FAT_TC",name:'总胆固醇',value:"",unit:'mmol/L'},
   		{key:"RENAL_FUNCTION_CREATININE",name:'血清肌酐',value:"",unit:'umol/L'},
   		{key:"RENAL_FUNCTION_BUN",name:'血尿素氮',value:"",unit:'mmol/L'},
   		{key:"GHB",name:'糖化血红蛋白',value:"",unit:'%'},
   		{key:"BLOOD_FAT_LDLC",name:'低密度脂蛋白',value:"",unit:'mmol/L'},
   		{key:"MICROALBUMINURIA",name:'尿微量白蛋白',value:"",unit:'μg/min'}
   	]
   		{key:"EXAM_DATE",name:'检查时间',value:"",unit:'',code:'1'},
   		{key:"BS_FPG",name:'空腹血糖',value:"",unit:'mmol/L',code:'2'},
   		{key:"NO_BS_FPG",name:'餐后血糖',value:"",unit:'mmol/L',code:'3'},
   		{key:"RANDOM_BLOOD_SUGAR",name:'随机血糖',value:"",unit:'mmol/L',code:'4'},
   		{key:"BLOOD_FAT_TRIGLYCERIDE",name:'甘油三酯',value:"",unit:'mmol/L',code:'5'},
   		{key:"BLOOD_FAT_TC",name:'总胆固醇',value:"",unit:'mmol/L',code:'6'},
   		{key:"RENAL_FUNCTION_CREATININE",name:'血清肌酐',value:"",unit:'umol/L',code:'7'},
   		{key:"RENAL_FUNCTION_BUN",name:'血尿素氮',value:"",unit:'mmol/L',code:'28'},
   		{key:"GHB",name:'糖化血红蛋白',value:"",unit:'%',code:'9'},
   		{key:"BLOOD_FAT_LDLC",name:'低密度脂蛋白',value:"",unit:'mmol/L',code:'10'},
   		{key:"MICROALBUMINURIA",name:'尿微量白蛋白',value:"",unit:'μg/min',code:'11'}
   	],
   	objData:''
  },
  mounted: function() {
  	var vm = this
@ -21,7 +22,8 @@ new Vue({
  	recordAPI.getFollowupProjectData({id:Request["id"],followupProject:3}).then(function(res){
			if(res.status==200){
				var data = res.data;
				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				vm.objData = res.data
//				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				var allData = vm.inspects;
				for(var key in data){
					for(var j=0;j<allData.length;j++){
@ -33,5 +35,24 @@ new Vue({
				}
			}
		})
  },
  methods:{
		saveButton:function(){
				var vm = this;
	      params = {id: vm.objData.followup_id, followupProject:vm.objData.followup_project}
	      var checkID = {}
	      $(".row-inline-item input").each(function(i,v){//把所有被选中的复选框的值存入数组
	           checkID[$(this).attr('name')] = $(this).val()
	        });
	        console.log(checkID)
	        params.followupProjectData = JSON.stringify(checkID);
					recordAPI.ModifyFollowupResult(params).then(function(res){
					if(res.status==200){
						toastr.error("保存成功")
					}else{
						toastr.error(res.msg)
					}
				})
		}
  }
})

+ 54 - 1
app/followup/js/medication.js

@ -5,14 +5,17 @@ new Vue({
  	unit_dict:measure_unit_dict,
  	DRUG_COMPLIANCE_CODE:'',
  	hasInsulin:[],//胰岛素药
		noInsulin:[]//其他药
		noInsulin:[],//其他药
		objData:''
  },
  mounted: function() {
  	var vm = this
  	console.log(measure_unit_dict)
  	var Request = GetRequest();
  	recordAPI.getFollowupProjectData({id:Request["id"],followupProject:6}).then(function(res){
			if(res.status==200){
				var data = res.data;
				vm.objData = res.data
				vm.DRUG_COMPLIANCE_CODE = data.DRUG_COMPLIANCE_CODE;
			}
		})
@ -32,5 +35,55 @@ new Vue({
				toastr.error('获取数据失败')
			}
		})
  },
  methods:{
		saveButton:function(){
			var vm = this;
     	if(!vm.DRUG_COMPLIANCE_CODE){
     		toastr.error('请选择服药依从性')
     		return
     	}
     	 params = {id: vm.objData.followup_id}
			 var arr = [];
      $(".inline-container-p").each(function(i,v){//把所有被选中的复选框的值存入数组
      			var checkID = {};
	      		checkID['drugsName'] = $(this).attr('name')
	      		checkID['drugsCode'] = $(this).attr('code')
	      		checkID['drugsGroup'] = $(this).attr('group')
	      		checkID['dose'] = $(this).attr('dose')
	      		checkID['unit'] = $(this).attr('value1')
	      		checkID['frequency'] = $(this).attr('value2')
	      		arr.push(checkID)
      });
      $(".inline-container-y").each(function(i,v){//把所有被选中的复选框的值存入数组
      			var checkID1 = {};
	      		checkID1['drugsName'] = $(this).attr('name')
	      		checkID1['drugsCode'] = $(this).attr('code')
	      		checkID1['drugsGroup'] = $(this).attr('group')
	      		checkID1['dose'] = $(this).attr('dose')
	      		checkID1['unit'] = $(this).attr('value1')
	      		checkID1['frequency'] = $(this).attr('value2')
	      		arr.push(checkID1)
      });
        params.drugsData = JSON.stringify(arr)
				recordAPI.saveDrugs(params).then(function(res){
				if(res.status==200){
//					toastr.error("保存成功")
						var params = {};
	            	params.id = vm.objData.followup_id;
	            	params.followupProject = vm.objData.followup_project;
	              params.followupProjectData = JSON.stringify({'DRUG_COMPLIANCE_CODE':vm.DRUG_COMPLIANCE_CODE})
	              recordAPI.saveDrugsLaw(params).then(function(res){
								if(res.status==200){
									toastr.error("保存成功")
								}else{
									toastr.error(res.msg)
								}
							})
				}else{
					toastr.error(res.msg)
				}
			})
		}
  }
})

+ 28 - 2
app/followup/js/referral.js

@ -7,7 +7,8 @@ new Vue({
		REFUSE_REFERRAL_WHY:"",
		TRANSFER_RESON:"",
		TRANSFER_ORG_DEPT:"",
		readonly:true
		readonly:false,
		objData:''
  },
  mounted: function() {
  	var vm = this
@ -15,11 +16,36 @@ new Vue({
  	recordAPI.getFollowupProjectData({id:Request["id"],followupProject:9}).then(function(res){
			if(res.status==200){
				var data = res.data;
				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				vm.objData = res.data;
//				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				for(var key in data){
					vm[key] = data[key]
				}
			}
		})
  },
  methods:{
		saveButton:function(){
  			var vm = this;
      params = {id: vm.objData.followup_id, followupProject:vm.objData.followup_project}
      var checkID = {};
      checkID['DRUG_ADVERSE_MARK'] =vm.DRUG_ADVERSE_MARK
      checkID['ADR_REMARK'] =vm.ADR_REMARK
      checkID['REFUSE_REFERRAL'] =vm.REFUSE_REFERRAL
      checkID['REFUSE_REFERRAL_WHY'] =vm.REFUSE_REFERRAL_WHY
      checkID['TRANSFER_RESON'] =vm.TRANSFER_RESON
      checkID['TRANSFER_ORG_DEPT'] =vm.TRANSFER_ORG_DEPT
      console.log(checkID)
        params.followupProjectData = JSON.stringify(checkID);
        console.log(params.followupProjectData)
        console.log(params)
				recordAPI.ModifyFollowupResult(params).then(function(res){
				if(res.status==200){
					toastr.error("保存成功")
				}else{
					toastr.error(res.msg)
				}
			})
  		}  	
  }
})

+ 30 - 3
app/followup/js/register.js

@ -1,24 +1,51 @@
new Vue({
  	el: '#app',
	data:{
	  	queryData:""
	  	queryData:{},
//	  	options: [],
//	  	options_type:[{way_key:'1',value_type:'门诊'},{way_key:'22',value_type:'家庭(全科)'},{way_key:'3',value_type:'电话'}],
//	  	options_class:[{way_class:'1',value_class:'高血压'},{way_key:'2',value_class:'糖尿病'},{way_key:'1,2',value_class:'高血压、糖尿病'}],
//	  	options_statue:[]
	},
  	methods:{
  		
  		saveButton:function(){
  			
  		}
  	},
	mounted(){
	mounted: function(){
		var vm = this
	  	var Request = GetRequest();
	  	recordAPI.getFollowup({id:Request["id"]}).then(function(res){
			if(res.status==200){
				var data = res.data
				console.log(data)
				data.followupDate = data.followupDate?data.followupDate.substr(0,16):''
				vm.queryData = data
				console.log(vm.queryData.followupDate)
				window.localStorage.setItem('serveFollowupDate',JSON.stringify(data));//储存数据,后续页面需要调用
				
//			  	recordAPI.getFollowUpDoc({
//			  		patient: data.patientCode
//			  	}).then(function(res) {
//			  		if(res.status == 200) {
//			  			var data = res.data
//			  			vm.options = data.list
//			  		} else {
//			  			//				toastr.error(res.msg)
//			  		}
//			  	})
			}else{
//				toastr.error(res.msg)
			}	
		})
	  	//随访状态
//	  	recordAPI.getFollowUpStatue({ name: 'FOLLOWUP_MANAGER_STATUS' }).then(function(res) {
//	  		if(res.status == 200) {
//	  			vm.options_statue = res.list
//	  		} else {
//	  			//toastr.error(res.msg)
//	  		}
//	  	})
	}
})

+ 32 - 2
app/followup/js/sign.js

@ -11,7 +11,8 @@ new Vue({
   	HEART_RATE:'',
   	POFDA_MARK:'',
   	OTHER_POSITIVE_SIGNS:'',
   	readonly:true
   	objData:'',
   	readonly:false
  },
  mounted: function() {
  	var vm = this
@ -19,11 +20,40 @@ new Vue({
  	recordAPI.getFollowupProjectData({id:Request["id"],followupProject:2}).then(function(res){
			if(res.status==200){
				var data = res.data;
				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				vm.objData = res.data
//				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				for(var key in data){
					vm[key] = data[key]
				}
			}
		})
  },
  methods:{
  	saveButton:function(){
  		var vm = this;
      params = {id: vm.objData.followup_id, followupProject:vm.objData.followup_project}
      var checkID = {};
      checkID['BP_D'] =vm.BP_D
      checkID['BP_U'] =vm.BP_U
      checkID['HEIGHT'] =vm.HEIGHT
      checkID['WEIGHT'] =vm.WEIGHT
      checkID['BMI'] =vm.BMI
      checkID['WEIGHT_EXP'] =vm.WEIGHT_EXP
      checkID['BMI_EXP'] =vm.BMI_EXP
      checkID['HEART_RATE'] =vm.HEART_RATE
      checkID['POFDA_MARK'] =vm.POFDA_MARK
      checkID['OTHER_POSITIVE_SIGNS'] =vm.OTHER_POSITIVE_SIGNS
      console.log(checkID)
        params.followupProjectData = JSON.stringify(checkID);
        console.log(params.followupProjectData)
        console.log(params)
				recordAPI.ModifyFollowupResult(params).then(function(res){
				if(res.status==200){
					toastr.error("保存成功")
				}else{
					toastr.error(res.msg)
				}
			})
  	}
  }
})

+ 44 - 18
app/followup/js/symptom.js

@ -2,26 +2,27 @@ new Vue({
  el: '#app',
  data: {
   	symptoms:[
   		{key:"NO_SYMPTOM",name:'无症状',value:''},
   		{key:"HEADACHE",name:'头痛头晕',value:''},
   		{key:"NAUSEA",name:'恶心呕吐',value:''},
   		{key:"VERTIGO_TINNITUS",name:'眼花耳鸣',value:''},
   		{key:"DIFFICULTY_BREATHING",name:'呼吸困难',value:''},
   		{key:"PALPITATIONS",name:'心悸胸闷',value:''},
   		{key:"EPISTAXIS_BLEEDING",name:'鼻衄出血不止',value:''},
   		{key:"LIMBS_NUMB",name:'四肢发麻',value:''},
   		{key:"EXTREMITY_EDEMA",name:'下肢水肿',value:''},
   		{key:"POLYDIPSIA",name:'多饮',value:''},
   		{key:"MORE_FOOD",name:'多食',value:''},
   		{key:"MORE_URINE",name:'多尿',value:''},
   		{key:"BLURRED_VISION",name:'视力模糊',value:''},
   		{key:"INFECTION",name:'感染',value:''},
			{key:"NUMB_HANDS",name:'四肢麻痹',value:''},
			{key:"WEIGHT_LOSS",name:'体重下降',value:''}
   		{key:"NO_SYMPTOM",name:'无症状',value:'',code:'0'},
   		{key:"HEADACHE",name:'头痛头晕',value:'',code:'1'},
   		{key:"NAUSEA",name:'恶心呕吐',value:'',code:'1'},
   		{key:"VERTIGO_TINNITUS",name:'眼花耳鸣',value:'',code:'1'},
   		{key:"DIFFICULTY_BREATHING",name:'呼吸困难',value:'',code:'1'},
   		{key:"PALPITATIONS",name:'心悸胸闷',value:'',code:'1'},
   		{key:"EPISTAXIS_BLEEDING",name:'鼻衄出血不止',value:'',code:'1'},
   		{key:"LIMBS_NUMB",name:'四肢发麻',value:'',code:'1'},
   		{key:"EXTREMITY_EDEMA",name:'下肢水肿',value:'',code:'1'},
   		{key:"POLYDIPSIA",name:'多饮',value:'',code:'1'},
   		{key:"MORE_FOOD",name:'多食',value:'',code:'1'},
   		{key:"MORE_URINE",name:'多尿',value:'',code:'1'},
   		{key:"BLURRED_VISION",name:'视力模糊',value:'',code:'1'},
   		{key:"INFECTION",name:'感染',value:'',code:'1'},
			{key:"NUMB_HANDS",name:'四肢麻痹',value:'',code:'1'},
			{key:"WEIGHT_LOSS",name:'体重下降',value:'',code:'1'}
   	],//症状
    hypoglycemia:"",//低血糖反应
    remark: "",//其他
    readonly:true
    readonly:false,
    objData:''
  },
  mounted: function() {
  	var vm = this
@ -29,7 +30,8 @@ new Vue({
  	recordAPI.getFollowupProjectData({id:Request["id"],followupProject:1}).then(function(res){
			if(res.status==200){
				var data = res.data;
				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				vm.objData = res.data
//				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				var allData = vm.symptoms;
				for(var key in data){
					if(key == "HYPOG_REACT_CODE"){
@ -47,5 +49,29 @@ new Vue({
				}
			}
		})
  },
  methods:{
  	//修改症状
  	saveButton:function(){
  		var vm = this;
      params = {id: vm.objData.followup_id, followupProject:vm.objData.followup_project}
      var checkID = {}
      $(".inline-container-l input:checked").each(function(i,v){//把所有被选中的复选框的值存入数组
           checkID[$(this).attr('name')] = $(this).attr('code')
        });
        $(".row-line-item-2 input:checked").each(function(i,v){//把所有被选中的复选框的值存入数组
           checkID[$(this).attr('name')] = $(this).val()
        });
        checkID['SYMPTOM_OTHER'] = $("textarea").val()
        console.log(checkID)
        params.followupProjectData = JSON.stringify(checkID);
				recordAPI.ModifyFollowupResult(params).then(function(res){
				if(res.status==200){
					toastr.error("保存成功")
				}else{
					toastr.error(res.msg)
				}
			})
  	}
  }
})

+ 34 - 2
app/followup/js/target.js

@ -13,7 +13,8 @@ new Vue({
  	CONTROL_TOTAL_CHOLESTEROL:'',
  	CONTROL_LDL:'',
  	CONTROL_EXERCISE_FREQ_CODE:'',
  	CONTROL_EXERCISE_DURATION_MINS:''
  	CONTROL_EXERCISE_DURATION_MINS:'',
  	objData:''
  },
  mounted: function() {
  	var vm = this
@ -21,11 +22,42 @@ new Vue({
  	recordAPI.getFollowupProjectData({id:Request["id"],followupProject:7}).then(function(res){
			if(res.status==200){
				var data = res.data;
				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				vm.objData = res.data
//				delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
				for(var key in data){
					vm[key] = data[key]
				}
			}
		})
  },
  methods:{
  	saveButton:function(){
  		var vm = this;
      params = {id: vm.objData.followup_id, followupProject:vm.objData.followup_project}
      var checkID = {};
      checkID['CONTROL_DATE'] =vm.CONTROL_DATE
      checkID['CONTROL_CONSTITUTOR'] =vm.CONTROL_CONSTITUTOR
      checkID['CONTROL_BP_D'] =vm.CONTROL_BP_D
      checkID['CONTROL_BP_U'] =vm.CONTROL_BP_U
      checkID['CONTROL_BS_FPG'] =vm.CONTROL_BS_FPG
      checkID['CONTROL_NO_BS_FPG'] =vm.CONTROL_NO_BS_FPG
      checkID['CONTROL_WEIGHT'] =vm.CONTROL_WEIGHT
      checkID['CONTROL_GHB'] =vm.CONTROL_GHB
      checkID['CONTROL_TOTAL_CHOLESTEROL'] =vm.CONTROL_TOTAL_CHOLESTEROL
      checkID['CONTROL_LDL'] =vm.CONTROL_LDL
      checkID['CONTROL_EXERCISE_FREQ_CODE'] =vm.CONTROL_EXERCISE_FREQ_CODE
      checkID['CONTROL_EXERCISE_DURATION_MINS'] =vm.CONTROL_EXERCISE_DURATION_MINS
      console.log(checkID)
        params.followupProjectData = JSON.stringify(checkID);
        console.log(params.followupProjectData)
        console.log(params)
				recordAPI.ModifyFollowupResult(params).then(function(res){
				if(res.status==200){
					toastr.error("保存成功")
				}else{
					toastr.error(res.msg)
				}
			})
  	}
  }
})