123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>肺结核患者第一次入户随访记录表</title>
- <meta name="author" content="yihu.com" />
- <meta name="format-detection" content="telephone=no" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
- />
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <meta name="apple-mobile-web-app-status-bar-style" content="black" />
- <link rel="shortcut icon" href="../../../../favicon.ico">
- <link rel="stylesheet" type="text/css" href="../../../../css/element-ui.css" />
- <link rel="stylesheet" type="text/css" href="../../../../css/cross.css" />
- <link rel="stylesheet" type="text/css" href="../../../../css/bootstrap.min.css" />
- <link href="../../../../plugins/toastr/toastr.min.css" rel="stylesheet">
- <link href="../css/fangshi-detail.css" rel="stylesheet">
- </head>
- <style>
- .lh27{line-height: 27px;}
- </style>
- <body>
- <div id="app">
- <table class="table table-bordered">
- <button class="button" @click="editBtn()">编辑</button>
- <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">
- <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">
- <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>
- </td>
- </tr>
- <tr>
- <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-group>
- </td>
- </tr>
- <tr>
- <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-group>
- </td>
- </tr>
- <tr>
- <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-group>
- </td>
- </tr>
- <tr>
- <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-group>
- </td>
- </tr>
- <tr>
- <td class="col-w300">症状及体征:
- <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>
- <el-checkbox label="3">咳血或血痰</el-checkbox>
- <el-checkbox label="4">胸痛消瘦</el-checkbox>
- <el-checkbox label="5">恶心纳差</el-checkbox>
- <el-checkbox label="6">头痛失眠</el-checkbox>
- <el-checkbox label="7">视物模糊</el-checkbox>
- <el-checkbox label="8">皮肤瘙痒、皮疹</el-checkbox>
- <el-checkbox label="9">耳鸣、听力下降</el-checkbox>
- </el-checkbox-group>
- </td>
- <td colspan="3" style="vertical-align: initial;">
- 其他:
- <el-input type="textarea" :readonly="!editable" v-model="data2.symptom_other_desc" placeholder="" clearable></el-input>
- </td>
- </tr>
- <tr>
- <td class="table2Td" colspan="3">
- <table class="table2">
- <tr>
- <td class="c-t-center" rowspan="3" style="border-bottom: 0;width: 100px;">用药</td>
- <td class="c-t-center" style="width: 200px;">
- 化疗方案
- </td>
- <td class="c-t-center">
- <el-input :readonly="!editable" v-model="data2.drug_use.chemotherapy" placeholder="" clearable></el-input>
- </td>
- </tr>
- <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-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-input :readonly="!editable" v-model="data2.drug_use.dosage_form" placeholder="" clearable></el-input>-->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <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>
- </td>
- </tr>
- <tr>
- <td class="table2Td" colspan="3">
- <table class="table2">
- <tr>
- <td class="c-t-center" rowspan="2" style="border-bottom: 0;width: 100px;">家庭居住环境评估</td>
- <td class="c-t-center" style="width: 200px;">
- 单独的居室
- </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>
- </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>
- </td>
- </tr>
- <tr>
- <td class="c-t-center" rowspan="2" style="border-bottom: 0;width: 100px;">生活方式评估</td>
- <td class="c-t-center" style="width: 200px;">
- 吸烟
- </td>
- <td>
- <el-input :readonly="!editable" v-model="data2.life_style.smoke" placeholder="" clearable></el-input>支/天
- </td>
- </tr>
- <tr>
- <td class="c-t-center">喝酒</td>
- <td>
- <el-input :readonly="!editable" v-model="data2.life_style.drink" placeholder="" clearable></el-input>两/天
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td class="table2Td" colspan="3">
- <table class="table2">
- <tr>
- <td class="col-w300 c-t-center" rowspan="10" style="width:50px;">健康教育及培训</td>
- <td style="width:250px;">
- 取药地点、时间
- </td>
- <td>
- 地点:
- <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>
- </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>
- </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>
- </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>
- </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>
- </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-group>
- </td>
- </tr>
- <tr>
- <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-group>
- </td>
- </tr>
- <tr>
- <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-group>
- </td>
- </tr>
- <tr>
- <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-group>
- </td>
- </tr>
- <tr>
- <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-group>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <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>
- </td>
- </tr>
- <tr>
- <td class="col-w300 c-t-center">评估医生签名</td>
- <td>
- <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>
- </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>
- <script src="../../../../js/util.js" type="text/javascript" charset="utf-8"></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/element-ui.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../component/followup/follow-bottom.js"></script>
- <script src="../../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../api/fangshi-api.js"></script>
- <script>
- var Request = GetRequest();
- new Vue({
- el: "#app",
- data: function () {
- return {
- editable: false,
- isEditBtn: true,
- data2: {
- symptom: [],
- patient: {},
- drug_use: {},
- superviser: {},
- home_environment: {},
- life_style: {},
- health_edu: {}
- },
- radio: "",
- input: '',
- check: [],
- followupId: Request['id'] || '1888113',
- version: Request['version'] || "v1"
- }
- },
- mounted: function () {
- this.getData()
- },
- methods: {
- getData: function () {
- var vm = this
- fangshiAPI.getPhthisisFirstCheckRecord({ followupId: this.followupId }).then(function (res) {
- if (res.status == 200) {
- debugger
- var data = res.data
- var isEmpty = true
- for(var k in data){
- if(k){
- isEmpty = false
- break
- }
- }
- if(!isEmpty){
- vm.data2 = data
- } else {
- var btn = document.getElementsByClassName('button')[0]
- btn.innerHTML = '保存'
- vm.isEditBtn = false
- vm.editable = true
- }
- } else {
- top.toastr.error(res.msg);
- }
- })
- },
- editData: function () {
- this.data2.version = this.version //版本号
- this.data2.followup_id = this.followupId
- if(this.data2.symptom ){
- this.data2.symptom = this.data2.symptom.join(",")
- } else {
- this.data2.symptom = ""
- }
- // this.data2.followup_project = "1"
-
- var data = {
- "followup_id":"",
- "followup_project": "",
- "number": "",
- "followup_date":"",
- "way": "",
- "patient": {
- "name": "",
- "idcard": ""
- },
- "patient_type": "",
- "sputum_bacterium": "",
- "drug_resistant": "",
- "symptom":"",
- "symptom_other_desc": "",
- "superviser": {
- "superviser_type": "",
- "superviser_code": "",
- "superviser_name": ""
- },
- "drug_use": {
- "chemotherapy": "",
- "method":"",
- "dosage_form": ""
- },
- "home_environment": {
- "seperate_room": "",
- "air": ""
- },
- "life_style": {
- "smoke": "",
- "drink": ""
- },
- "health_edu": {
- "get_drug_addr": "",
- "get_drug_time": "",
- "drug_fill_record_card": "",
- "drug_store": "",
- "phthisis_treatment": "",
- "harm_of_irregular_take_drug": "",
- "drug_bad_reaction": "",
- "check_sputum_again": "",
- "insist_take_drug":"",
- "life_way": "",
- "close_contact_patient": ""
- },
- "next_followup_date": "",
- "signature_doctor": "",
- "signature_doctor_name": ""
- }
-
- data = $.extend(true, data , this.data2);
- fangshiAPI.savePhthisisFirstCheckRecord({ jsonData: JSON.stringify(this.data2) }).then(function (res) {
- if (res.status == 200) {
- top.toastr.info('保存成功')
- } else {
- top.toastr.error(res.msg);
- }
- })
- },
- editBtn: function () {
- this.isEditBtn = !this.isEditBtn
- if (this.isEditBtn == true) {
- var btn = document.getElementsByClassName('button')[0]
- btn.innerHTML = '编辑'
- this.editable = false
- this.editData()
- } else if (this.isEditBtn == false) {
- var btn = document.getElementsByClassName('button')[0]
- btn.innerHTML = '保存'
- this.editable = true
- }
- }
- }
- })
- </script>
- </body>
- </html>
|