123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530 |
- <!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>
- <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">
- <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>
- </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.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="../../../../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>
- var Request = GetRequest();
- new Vue({
- el: "#app",
- data: function () {
- return {
- finishedStatus: null, //随访完成状态
- editable: false,
- isEditBtn: true,
- data2: {
- symptom: [],
- patient: {},
- drug_use: {},
- superviser: {},
- home_environment: {},
- life_style: {},
- health_edu: {},
- followup_date:'',
- way:"", //默认家庭,
- signature_doctor_name:''
- },
- radio: "",
- input: '',
- check: [],
- followupId: Request['id'] || '1888113',
- version: Request['version'] || "v1",
- patientCode:'',
- followupClass:''
- }
- },
- mounted: function () {
- this.getData() //获取随访状态
- },
- methods: {
- getData: function () {
- var vm = this
- 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) {
- vm.data2 = data
- vm.dealData(data)
- vm.getStatus(false)
- }else{
- vm.getStatus(true)
- }
- } else {
- top.toastr.error(res.msg);
- }
- })
- },
- dealData: function (data) {
- 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 = {}
- }
- },
- // getLastData: function (obj) {
- // var vm = this
- // fangshiAPI.getLastVisitRecord({ followupClass: vm.followupClass, patientCode: vm.patientCode }).then(function (res) {
- // if (res.status == 200) {
- // var data = res.data.detail
- // // finishedStatus:true 随访完成,false 随访未完成
- // if (vm.finishedStatus) {
- // vm.getData()
- // } else {
- // // 默认信息
- // vm.data2.patient.name = obj.name
- // vm.data2.signature_doctor_name = obj.doctorName
- // // 居民存在上次历史记录,则代入默认信息
- // if (res.data.detail) {
- // vm.data2 = res.data.detail
- // vm.dealData(data)
- // }
- // }
- // }
- // })
- // },
- // 完成随访状态修改
- finish: function () {
- var vm = this
- fangshiAPI.updateFollowStatus({ followupId: this.followupId,isFlag:0 }).then(function (res) {
- if (res.status == 200) {
- vm.getStatus()
- top.toastr.info("完成随访成功")
- } else {
- top.toastr.error(res.msg);
- }
- })
- },
- editData: function () {
- var vm = this
- var data = {};
- 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(",")
- } else {
- data.symptom = ""
- }
- fangshiAPI.savePhthisisFirstCheckRecord({ jsonData: JSON.stringify(data) }).then(function (res) {
- if (res.status == 200) {
- vm.finishedStatus ? '' : vm.finish()
- vm.finishedStatus ? top.toastr.info('保存成功') : ''
- } else {
- top.toastr.error(res.msg);
- }
- })
- },
- setEditBtn: function () {
- var btn = document.getElementsByClassName('button')[0]
- if (!this.finishedStatus) {
- btn.innerHTML = '完成随访'
- this.editable = true
- return
- }
- if (this.isEditBtn == true) {
- btn.innerHTML = '编辑'
- this.editable = false
- } else if (this.isEditBtn == false) {
- btn.innerHTML = '保存'
- this.editable = true
- }
- },
- editBtn: function () {
- if (this.finishedStatus) {
- this.isEditBtn = !this.isEditBtn
- }
- this.setEditBtn()
- this.isEditBtn || !this.finishedStatus?this.editData():''//保存数据
- },
- //获取当前随访状态信息 Request['id']||'1'
- getStatus: function (getLast) {
- var vm = this
- fangshiAPI.getFollowupInfo({ followupId: this.followupId || '1888107' }).then(function (res) {
- if (res.status == 200) {
- res.data.status != 1 ? vm.finishedStatus = false : vm.finishedStatus = true
- // vm.patientCode = res.data.patientCode
- // vm.followupClass = res.data.followupClass
- if (getLast) {
- //默认信息
- vm.data2.patient.name = res.data.patient.name
- vm.data2.signature_doctor_name = res.data.doctorName
- vm.data2.way = 2
- vm.data2.followup_date = new Date().format("yyyy-MM-dd")
- }
- // vm.getLastData()//获取patientCode,followupClass 获取上一次数据
- vm.setEditBtn()
- } else {
- top.toastr.error(res.msg);
- }
- })
- },
- getFinishfChild: function (msg) {
- this.finishedBtn = msg
- this.getStatus()
- },
- }
- })
- </script>
- </body>
- </html>
|