浏览代码

表单修改

zhangyanfang 6 年之前
父节点
当前提交
c95541100e

+ 27 - 0
app/followup/v1/html/fangshi-detail-5,6.html

@ -41,6 +41,7 @@
<body>
	<div id="app">
		<button class="button" @click="editBtn()">编辑</button>
		<finish-followup-btn :followupId="followupId" :finishedBtn="finishedBtn" v-on:getfinish="getFinishfChild($event)"></finish-followup-btn>
		<p class="c-f20 mb10" style="text-align: center;">产后访视记录表</p>
		<div class="ui-grid p10">
			<div class="ui-col-1">
@ -229,6 +230,7 @@
	<script src="../../../../js/element-ui.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../../component/followup/follow-bottom.js"></script>
	<script src="../../../../component/followup/fangshi-detail-6.js"></script>
	<script src="../../../../component/followup/finish-followup-btn.js"></script>
	<script src="../../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../../api/fangshi-api.js"></script>
	<script>
@ -237,6 +239,7 @@
			el: "#app",
			data: function () {
				return {
					finishedBtn: true,
					editable: false,
					other_guide: true,
					isEditBtn: true,
@ -258,6 +261,8 @@
			},
			mounted: function () {
				this.getData()
				//获取随访详情
				this.getStatus()
			},
			watch: {
				check: function (i) {
@ -332,12 +337,34 @@
					this.postpartumVisitDetails.version = this.version	//版本号
					fangshiAPI.savePostpartumVisitDetails({ followupId: this.followupId || '3', postpartumVisitDetails: JSON.stringify(this.postpartumVisitDetails) }).then(function (res) {
						if (res.status == 200) {
							//判断是否完成随访,未完成则将完成按钮显示出来
							if (vm.sfStatus != 1) {
								vm.finishedBtn = false
							} else {
								vm.finishedBtn = true
							}
							vm.getStatus()
							top.toastr.info('保存成功')
						} else {
							top.toastr.error(res.msg);
						}
					})
				},
				//获取当前随访状态信息  Request['id']||'1'
				getStatus: function () {
					var vm = this
					fangshiAPI.getFollowupInfo({ followupId: this.followupId || '1888107' }).then(function (res) {
						if (res.status == 200) {
							vm.sfStatus = res.data.status
						} else {
							top.toastr.error(res.msg);
						}
					})
				},
				getFinishfChild: function (msg) {
					this.finishedBtn = msg
					this.getStatus()
				},
				editBtn: function () {
					this.isEditBtn = !this.isEditBtn
					if (this.isEditBtn == true) {

+ 29 - 3
app/followup/v1/html/fangshi-detail-7.html

@ -33,6 +33,7 @@
<body>
    <div id="app">
        <button class="button" @click="editBtn()">编辑</button>
        <finish-followup-btn :followupId="followupId" :finishedBtn="finishedBtn" v-on:getfinish="getFinishfChild($event)"></finish-followup-btn>
        <p class="c-f20 mb10" style="text-align: center;">严重精神障碍患者随访服务记录表</p>
        <div class="ui-grid p10">
            <div class="ui-col-1">
@ -559,6 +560,7 @@
    <script src="../../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../../js/element-ui.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../../component/followup/follow-bottom.js"></script>
    <script src="../../../../component/followup/finish-followup-btn.js"></script>
    <script src="../../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../../api/fangshi-api.js"></script>
    <script>
@ -568,6 +570,7 @@
            data: function () {
                return {
                    editable: false,
                    finishedBtn: true,
                    isEditBtn: true,
                    death_reason_type_dis: true,
                    other_symptom: true,
@ -631,8 +634,8 @@
                    if (i == '1') {
                        var vmS = this.severeMentalDisorderData
                        for (var i = 1; i < 7; i++) {
                            var arr="dangerous_behavior_"+i
                            vmS[arr.split(',')]=''
                            var arr = "dangerous_behavior_" + i
                            vmS[arr.split(',')] = ''
                        }
                    }
                },
@ -700,6 +703,7 @@
            },
            mounted: function () {
                this.getData()
                this.getStatus()
            },
            methods: {
                getData: function () {
@ -831,6 +835,13 @@
                    this.severeMentalDisorderData.version = '1'
                    fangshiAPI.saveFollowupSevereMentalDisorder({ followupId: this.followupId || '1', severeMentalDisorderData: JSON.stringify(this.severeMentalDisorderData) }).then(function (res) {
                        if (res.status == 200) {
                            //判断是否完成随访,未完成则将完成按钮显示出来
                            if (vm.sfStatus != 1) {
                                vm.finishedBtn = false
                            } else {
                                vm.finishedBtn = true
                            }
                            vm.getStatus()
                            top.toastr.info('保存成功')
                        } else {
                            top.toastr.error(res.msg);
@ -849,7 +860,22 @@
                        btn.innerHTML = '保存'
                        this.editable = true
                    }
                }
                },
                //获取当前随访状态信息  Request['id']||'1'
                getStatus: function () {
                    var vm = this
                    fangshiAPI.getFollowupInfo({ followupId: this.followupId || '1888107' }).then(function (res) {
                        if (res.status == 200) {
                            vm.sfStatus = res.data.status
                        } else {
                            top.toastr.error(res.msg);
                        }
                    })
                },
                getFinishfChild: function (msg) {
                    this.finishedBtn = msg
                    this.getStatus()
                },
            }
        })
    </script>

+ 174 - 141
app/followup/v1/html/fangshi-detail-9.html

@ -18,36 +18,40 @@
    <link href="../css/fangshi-detail.css" rel="stylesheet">
</head>
<style>
    .lh27{line-height: 27px;}
    .lh27 {
        line-height: 27px;
    }
</style>
<body>
    <div id="app">
            <table class="table table-bordered">
                    <button class="button" @click="editBtn()">编辑</button>
                    <p class="c-f20 mb10" style="text-align: center;">肺结核患者第一次入户随访记录表</p>
                    <div class="ui-grid p10">
        <table class="table table-bordered">
            <button class="button" @click="editBtn()">编辑</button>
            <finish-followup-btn :followupId="followupId" :finishedBtn="finishedBtn" v-on:getfinish="getFinishfChild($event)"></finish-followup-btn>
            <p class="c-f20 mb10" style="text-align: center;">肺结核患者第一次入户随访记录表</p>
            <div class="ui-grid p10">
                <div class="ui-col-1">
                    <div class="ui-grid">
                        <div class="ui-col-0 lh27">姓名:</div>
                        <div class="ui-col-1">
                            <div class="ui-grid">
                                <div class="ui-col-0 lh27">姓名:</div>
                                <div class="ui-col-1">
                                    <el-input :readonly="!editable" v-model="data2.patient.name" placeholder="" clearable></el-input>
                                </div>
                            </div>
                            <el-input :readonly="!editable" v-model="data2.patient.name" placeholder="" clearable></el-input>
                        </div>
                    </div>
                </div>
                <div class="ui-col-1">
                    <div class="ui-grid">
                        <div class="ui-col-0 lh27">编号:</div>
                        <div class="ui-col-1">
                            <div class="ui-grid">
                                <div class="ui-col-0 lh27">编号:</div>
                                <div class="ui-col-1">
                                    <el-input :readonly="!editable" v-model="data2.number" placeholder="" clearable></el-input>
                                </div>
                            </div>
                            <el-input :readonly="!editable" v-model="data2.number" placeholder="" clearable></el-input>
                        </div>
            
                    </div>
                </div>
                <tr>
                    <td class="col-w300 c-t-center">随访时间</td>
                    <td colspan="3">
                        <el-date-picker :readonly="!editable" v-model="data2.followup_date"  format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="选择日期">
                        <el-date-picker :readonly="!editable" v-model="data2.followup_date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date"
                            placeholder="选择日期">
                        </el-date-picker>
                    </td>
                </tr>
@ -55,8 +59,8 @@
                    <td class="col-w300 c-t-center">随访方式</td>
                    <td colspan="3">
                        <el-radio-group :disabled="!editable" v-model="data2.way">
                        	<el-radio :disabled="!editable" v-model="radio" label="1">门诊</el-radio>
                        	<el-radio :disabled="!editable" v-model="radio" label="2">家庭</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="1">门诊</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="2">家庭</el-radio>
                        </el-radio-group>
                    </td>
                </tr>
@ -64,8 +68,8 @@
                    <td class="col-w300 c-t-center">患者类型</td>
                    <td colspan="3">
                        <el-radio-group :disabled="!editable" v-model="data2.patient_type">
                        	<el-radio :disabled="!editable" v-model="radio" label="1">初治</el-radio>
                        	<el-radio :disabled="!editable" v-model="radio" label="2">复治</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="1">初治</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="2">复治</el-radio>
                        </el-radio-group>
                    </td>
                </tr>
@ -73,9 +77,9 @@
                    <td class="col-w300 c-t-center">痰菌情况</td>
                    <td colspan="3">
                        <el-radio-group :disabled="!editable" v-model="data2.sputum_bacterium">
                        	<el-radio :disabled="!editable" v-model="radio" label="1">阳性</el-radio>
	                        <el-radio :disabled="!editable" v-model="radio" label="2">阴性</el-radio>
	                        <el-radio :disabled="!editable" v-model="radio" label="3">未查痰</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="1">阳性</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="2">阴性</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="3">未查痰</el-radio>
                        </el-radio-group>
                    </td>
                </tr>
@ -83,15 +87,15 @@
                    <td class="col-w300 c-t-center">耐药情况</td>
                    <td colspan="3">
                        <el-radio-group :disabled="!editable" v-model="data2.drug_resistant">
                        	<el-radio :disabled="!editable" v-model="radio" label="1">耐药</el-radio>
	                        <el-radio :disabled="!editable" v-model="radio" label="2">非耐药</el-radio>
	                        <el-radio :disabled="!editable" v-model="radio" label="3">未检测</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="1">耐药</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="2">非耐药</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="3">未检测</el-radio>
                        </el-radio-group>
                    </td>
                </tr>
                <tr>
                    <td class="col-w300">症状及体征:
                    	<el-checkbox-group v-model="data2.symptom" :disabled="!editable">
                        <el-checkbox-group v-model="data2.symptom" :disabled="!editable">
                            <el-checkbox label="0" style="margin-left:30px;">没有症状</el-checkbox>
                            <el-checkbox label="1">咳嗽咳痰</el-checkbox>
                            <el-checkbox label="2">低热盗汗</el-checkbox>
@ -124,22 +128,22 @@
                            <tr>
                                <td class="c-t-center">用法</td>
                                <td>
                                	<el-radio-group :disabled="!editable" v-model="data2.drug_use.method">
			                        	<el-radio :disabled="!editable" v-model="radio" label="1">每日</el-radio>
				                        <el-radio :disabled="!editable" v-model="radio" label="2">间歇</el-radio>
			                        </el-radio-group>
                                    <el-radio-group :disabled="!editable" v-model="data2.drug_use.method">
                                        <el-radio :disabled="!editable" v-model="radio" label="1">每日</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">间歇</el-radio>
                                    </el-radio-group>
                                    <!--<el-input :readonly="!editable" v-model="data2.drug_use.method" placeholder="" clearable></el-input>-->
                                </td>
                            </tr>
                            <tr>
                                <td class="c-t-center">药品剂型</td>
                                <td>
                                	<el-radio-group :disabled="!editable" v-model="data2.drug_use.dosage_form">
			                        	<el-radio :disabled="!editable" v-model="radio" label="1">固定剂量复合制剂</el-radio>
				                        <el-radio :disabled="!editable" v-model="radio" label="2">散装药</el-radio>
				                        <el-radio :disabled="!editable" v-model="radio" label="3">板式组合药</el-radio>
				                        <el-radio :disabled="!editable" v-model="radio" label="4">注射剂</el-radio>
			                        </el-radio-group>
                                    <el-radio-group :disabled="!editable" v-model="data2.drug_use.dosage_form">
                                        <el-radio :disabled="!editable" v-model="radio" label="1">固定剂量复合制剂</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">散装药</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="3">板式组合药</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="4">注射剂</el-radio>
                                    </el-radio-group>
                                    <!--<el-input :readonly="!editable" v-model="data2.drug_use.dosage_form" placeholder="" clearable></el-input>-->
                                </td>
                            </tr>
@ -149,11 +153,11 @@
                <tr>
                    <td class="col-w300 c-t-center">督导人员选择</td>
                    <td colspan="2">
                    	<el-radio-group :disabled="!editable" v-model="data2.superviser.superviser_type">
							<el-radio :disabled="!editable" v-model="radio" label="1">医生</el-radio>
	                        <el-radio :disabled="!editable" v-model="radio" label="2">家属</el-radio>
	                        <el-radio :disabled="!editable" v-model="radio" label="3">自服药</el-radio>
	                        <el-radio :disabled="!editable" v-model="radio" label="4">其他</el-radio>
                        <el-radio-group :disabled="!editable" v-model="data2.superviser.superviser_type">
                            <el-radio :disabled="!editable" v-model="radio" label="1">医生</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="2">家属</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="3">自服药</el-radio>
                            <el-radio :disabled="!editable" v-model="radio" label="4">其他</el-radio>
                        </el-radio-group>
                    </td>
                </tr>
@ -166,20 +170,20 @@
                                    单独的居室
                                </td>
                                <td>
                                	<el-radio-group :disabled="!editable" v-model="data2.home_environment.seperate_room">
	                                    <el-radio :disabled="!editable" v-model="radio" label="1">有</el-radio>
	                                    <el-radio :disabled="!editable" v-model="radio" label="2">无</el-radio>
                                   	</el-radio-group>
                                    <el-radio-group :disabled="!editable" v-model="data2.home_environment.seperate_room">
                                        <el-radio :disabled="!editable" v-model="radio" label="1">有</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">无</el-radio>
                                    </el-radio-group>
                                </td>
                            </tr>
                            <tr>
                                <td class="c-t-center">通风情况</td>
                                <td>
                                	<el-radio-group :disabled="!editable" v-model="data2.home_environment.air">
	                                    <el-radio :disabled="!editable" v-model="radio" label="1">良好</el-radio>
	                                    <el-radio :disabled="!editable" v-model="radio" label="2">一般</el-radio>
	                                    <el-radio :disabled="!editable" v-model="radio" label="3">差</el-radio>
                                   	</el-radio-group>
                                    <el-radio-group :disabled="!editable" v-model="data2.home_environment.air">
                                        <el-radio :disabled="!editable" v-model="radio" label="1">良好</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">一般</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="3">差</el-radio>
                                    </el-radio-group>
                                </td>
                            </tr>
                            <tr>
@ -188,7 +192,7 @@
                                    吸烟
                                </td>
                                <td>
                                	<el-input :readonly="!editable" v-model="data2.life_style.smoke" placeholder="" clearable></el-input>支/天
                                    <el-input :readonly="!editable" v-model="data2.life_style.smoke" placeholder="" clearable></el-input>支/天
                                </td>
                            </tr>
                            <tr>
@ -212,52 +216,53 @@
                                    地点:
                                    <el-input type="textarea" :readonly="!editable" v-model="data2.health_edu.get_drug_addr" placeholder="" clearable></el-input>
                                    <br> 时间:
                                    <el-date-picker :readonly="!editable" v-model="data2.health_edu.get_drug_time" format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="选择日期">
                                    <el-date-picker :readonly="!editable" v-model="data2.health_edu.get_drug_time" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
                                        type="date" placeholder="选择日期">
                                    </el-date-picker>
                                </td>
                            </tr>
                            <tr>
                                <td>服药记录卡的填写</td>
                                <td>
                                	<el-radio-group :disabled="!editable" v-model="data2.health_edu.drug_fill_record_card">
	                                    <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
	                                    <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                   	</el-radio-group>
                                    <el-radio-group :disabled="!editable" v-model="data2.health_edu.drug_fill_record_card">
                                        <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                    </el-radio-group>
                                </td>
                            </tr>
                            <tr>
                                <td>服药方法及药品存放</td>
                                <td>
                                	<el-radio-group :disabled="!editable" v-model="data2.health_edu.drug_store">
	                                    <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
	                                    <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
	                                </el-radio-group>
                                    <el-radio-group :disabled="!editable" v-model="data2.health_edu.drug_store">
                                        <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                    </el-radio-group>
                                </td>
                            </tr>
                            <tr>
                                <td>肺结核治疗疗程</td>
                                <td>
                                	<el-radio-group :disabled="!editable" v-model="data2.health_edu.phthisis_treatment">
	                                    <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
	                                    <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                   	</el-radio-group>
                                    <el-radio-group :disabled="!editable" v-model="data2.health_edu.phthisis_treatment">
                                        <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                    </el-radio-group>
                                </td>
                            </tr>
                            <tr>
                                <td>不规律服药危害</td>
                                <td>
                                	<el-radio-group :disabled="!editable" v-model="data2.health_edu.harm_of_irregular_take_drug">
	                                    <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
	                                    <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                   	</el-radio-group>
                                    <el-radio-group :disabled="!editable" v-model="data2.health_edu.harm_of_irregular_take_drug">
                                        <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                    </el-radio-group>
                                </td>
                            </tr>
                            <tr>
                                <td>服药后不良反应及处理</td>
                                <td>
                                    <el-radio-group :disabled="!editable" v-model="data2.health_edu.drug_bad_reaction">
                                    	<el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                    	<el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                    </el-radio-group>
                                </td>
                            </tr>
@ -265,8 +270,8 @@
                                <td>治疗期间复诊查痰</td>
                                <td>
                                    <el-radio-group :disabled="!editable" v-model="data2.health_edu.check_sputum_again">
                                    	<el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                    	<el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                    </el-radio-group>
                                </td>
                            </tr>
@ -274,8 +279,8 @@
                                <td>外出期间如何坚持服药</td>
                                <td>
                                    <el-radio-group :disabled="!editable" v-model="data2.health_edu.insist_take_drug">
                                    	<el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                    	<el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                    </el-radio-group>
                                </td>
                            </tr>
@ -283,8 +288,8 @@
                                <td>生活习惯及注意事项</td>
                                <td>
                                    <el-radio-group :disabled="!editable" v-model="data2.health_edu.life_way">
                                    	<el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                    	<el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                    </el-radio-group>
                                </td>
                            </tr>
@ -292,8 +297,8 @@
                                <td>密切接触者检查</td>
                                <td>
                                    <el-radio-group :disabled="!editable" v-model="data2.health_edu.close_contact_patient">
                                    	<el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                    	<el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="1">掌握</el-radio>
                                        <el-radio :disabled="!editable" v-model="radio" label="2">未掌握</el-radio>
                                    </el-radio-group>
                                </td>
                            </tr>
@ -303,7 +308,8 @@
                <tr>
                    <td class="col-w300 c-t-center">下次随访时间</td>
                    <td>
                        <el-date-picker :readonly="!editable" v-model="data2.next_followup_date" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择日期">
                        <el-date-picker :readonly="!editable" v-model="data2.next_followup_date" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
                            placeholder="选择日期">
                        </el-date-picker>
                    </td>
                </tr>
@ -313,8 +319,8 @@
                        <el-input :readonly="!editable" v-model="data2.life_style.signature_doctor_name" placeholder="" clearable></el-input>
                    </td>
                </tr>
            </table>
            <follow-bottom :followupId="followupId"></follow-bottom>
        </table>
        <follow-bottom :followupId="followupId"></follow-bottom>
        </div>
        <script src="../../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
@ -324,6 +330,7 @@
        <script src="../../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../../js/element-ui.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../../component/followup/follow-bottom.js"></script>
        <script src="../../../../component/followup/finish-followup-btn.js"></script>
        <script src="../../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../../api/fangshi-api.js"></script>
        <script>
@ -332,16 +339,17 @@
                el: "#app",
                data: function () {
                    return {
                        finishedBtn: true,
                        editable: false,
                        isEditBtn: true,
                        data2: {
                        	symptom: [],
                        	patient: {},
                        	drug_use: {},
                    		superviser: {},
                    		home_environment: {},
                    		life_style: {},
                    		health_edu: {}
                            symptom: [],
                            patient: {},
                            drug_use: {},
                            superviser: {},
                            home_environment: {},
                            life_style: {},
                            health_edu: {}
                        },
                        radio: "",
                        input: '',
@ -351,51 +359,52 @@
                    }
                },
                mounted: function () {
					this.getData()
				},
                    this.getData()
                    this.getStatus()
                },
                methods: {
                    getData: function () {
                        var vm = this
                        fangshiAPI.getPhthisisFirstCheckRecord({ followupId: this.followupId  }).then(function (res) {
                           	if (res.status == 200) {
								var data = res.data
                        fangshiAPI.getPhthisisFirstCheckRecord({ followupId: this.followupId }).then(function (res) {
                            if (res.status == 200) {
                                var data = res.data
                                var isEmpty = true
                            	for(var k in data){
                            		if(k){
                            			isEmpty = false
                            			break
                            		}
                            	}
                                if(!isEmpty){
                                	if(!data.symptom){
                                		data.symptom = []
                                	} else {
                                		data.symptom = data.symptom.split(",")
                                	}
                                	if(!data.patient){
                                		data.patient = {}
                                	}
                                	if(!data.drug_use){
                                		data.drug_use = {}
                                	}
                                	if(!data.superviser){
                                		data.superviser = {}
                                	}
                                	if(!data.home_environment){
                                		data.home_environment = {}
                                	}
                                	if(!data.life_style){
                                		data.life_style = {}
                                	}
                                	if(!data.health_edu){
                                		data.health_edu = {}
                                	}
                                	vm.data2 = data
                                for (var k in data) {
                                    if (k) {
                                        isEmpty = false
                                        break
                                    }
                                }
                                if (!isEmpty) {
                                    if (!data.symptom) {
                                        data.symptom = []
                                    } else {
                                        data.symptom = data.symptom.split(",")
                                    }
                                    if (!data.patient) {
                                        data.patient = {}
                                    }
                                    if (!data.drug_use) {
                                        data.drug_use = {}
                                    }
                                    if (!data.superviser) {
                                        data.superviser = {}
                                    }
                                    if (!data.home_environment) {
                                        data.home_environment = {}
                                    }
                                    if (!data.life_style) {
                                        data.life_style = {}
                                    }
                                    if (!data.health_edu) {
                                        data.health_edu = {}
                                    }
                                    vm.data2 = data
                                } else {
                                	var btn = document.getElementsByClassName('button')[0]
		                            btn.innerHTML = '保存'
		                            vm.isEditBtn = false
		                            vm.editable = true
                                    var btn = document.getElementsByClassName('button')[0]
                                    btn.innerHTML = '保存'
                                    vm.isEditBtn = false
                                    vm.editable = true
                                }
                            } else {
                                top.toastr.error(res.msg);
@ -403,19 +412,27 @@
                        })
                    },
                    editData: function () {
                        var vm = this
                        var data = {};
						data = $.extend(true, data, this.data2)
						data.version = this.version	//版本号
                        data = $.extend(true, data, this.data2)
                        data.version = this.version	//版本号
                        data.followup_id = this.followupId
                        if(this.data2.symptom ){
                        	data.symptom = this.data2.symptom.join(",")
                        if (this.data2.symptom) {
                            data.symptom = this.data2.symptom.join(",")
                        } else {
                        	data.symptom = ""
                            data.symptom = ""
                        }
                        
                        fangshiAPI.savePhthisisFirstCheckRecord({ jsonData: JSON.stringify(data) }).then(function (res) {
                        	if (res.status == 200) {
                            	top.toastr.info('保存成功')
                            if (res.status == 200) {
                                //判断是否完成随访,未完成则将完成按钮显示出来
                                if (vm.sfStatus != 1) {
                                    vm.finishedBtn = false
                                } else {
                                    vm.finishedBtn = true
                                }
                                vm.getStatus()
                                top.toastr.info('保存成功')
                            } else {
                                top.toastr.error(res.msg);
                            }
@ -433,7 +450,23 @@
                            btn.innerHTML = '保存'
                            this.editable = true
                        }
                    }
                    },
                    //获取当前随访状态信息  Request['id']||'1'
                    getStatus: function () {
                        var vm = this
                        fangshiAPI.getFollowupInfo({ followupId: this.followupId || '1888107' }).then(function (res) {
                            if (res.status == 200) {
                                vm.sfStatus = res.data.status
                            } else {
                                top.toastr.error(res.msg);
                            }
                        })
                    },
                    getFinishfChild: function (msg) {
                        this.finishedBtn = msg
                        this.getStatus()
                    },
                }