fangshi-detail-9.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>肺结核患者第一次入户随访记录表</title>
  6. <meta name="author" content="yihu.com" />
  7. <meta name="format-detection" content="telephone=no" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
  9. />
  10. <meta name="apple-mobile-web-app-capable" content="yes" />
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  12. <link rel="shortcut icon" href="../../../../favicon.ico">
  13. <link rel="stylesheet" type="text/css" href="../../../../css/element-ui.css" />
  14. <link rel="stylesheet" type="text/css" href="../../../../css/cross.css" />
  15. <link rel="stylesheet" type="text/css" href="../../../../css/bootstrap.min.css" />
  16. <link href="../../../../plugins/toastr/toastr.min.css" rel="stylesheet">
  17. <link href="../css/fangshi-detail.css" rel="stylesheet">
  18. </head>
  19. <style>
  20. .lh27 {
  21. line-height: 27px;
  22. }
  23. </style>
  24. <body>
  25. <div id="app">
  26. <table class="table table-bordered">
  27. <button class="button" @click="editBtn()">&nbsp;</button>
  28. <p class="c-f20 mb10" style="text-align: center;">肺结核患者第一次入户随访记录表</p>
  29. <div class="ui-grid p10">
  30. <div class="ui-col-1">
  31. <div class="ui-grid">
  32. <div class="ui-col-0 lh27">姓名:</div>
  33. <div class="ui-col-1">
  34. <el-input :readonly="!editable" v-model="data2.patient.name" placeholder="" clearable></el-input>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="ui-col-1">
  39. <div class="ui-grid">
  40. <div class="ui-col-0 lh27">编号:</div>
  41. <div class="ui-col-1">
  42. <el-input :readonly="!editable" v-model="data2.number" placeholder="" clearable></el-input>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <tr>
  48. <td class="col-w300 c-t-center">随访时间</td>
  49. <td colspan="3">
  50. <el-date-picker :readonly="!editable" v-model="data2.followup_date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date"
  51. placeholder="选择日期">
  52. </el-date-picker>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class="col-w300 c-t-center">随访方式</td>
  57. <td colspan="3">
  58. <el-radio-group :disabled="!editable" v-model="data2.way">
  59. <el-radio :disabled="!editable" v-model="radio" :label="1">门诊</el-radio>
  60. <el-radio :disabled="!editable" v-model="radio" :label="2">家庭</el-radio>
  61. </el-radio-group>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td class="col-w300 c-t-center">患者类型</td>
  66. <td colspan="3">
  67. <el-radio-group :disabled="!editable" v-model="data2.patient_type">
  68. <el-radio :disabled="!editable" v-model="radio" :label="1">初治</el-radio>
  69. <el-radio :disabled="!editable" v-model="radio" :label="2">复治</el-radio>
  70. </el-radio-group>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td class="col-w300 c-t-center">痰菌情况</td>
  75. <td colspan="3">
  76. <el-radio-group :disabled="!editable" v-model="data2.sputum_bacterium">
  77. <el-radio :disabled="!editable" v-model="radio" :label="1">阳性</el-radio>
  78. <el-radio :disabled="!editable" v-model="radio" :label="2">阴性</el-radio>
  79. <el-radio :disabled="!editable" v-model="radio" :label="3">未查痰</el-radio>
  80. </el-radio-group>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td class="col-w300 c-t-center">耐药情况</td>
  85. <td colspan="3">
  86. <el-radio-group :disabled="!editable" v-model="data2.drug_resistant">
  87. <el-radio :disabled="!editable" v-model="radio" :label="1">耐药</el-radio>
  88. <el-radio :disabled="!editable" v-model="radio" :label="2">非耐药</el-radio>
  89. <el-radio :disabled="!editable" v-model="radio" :label="3">未检测</el-radio>
  90. </el-radio-group>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td class="col-w300">症状及体征:
  95. <el-checkbox-group v-model="data2.symptom" :disabled="!editable">
  96. <el-checkbox label="0" style="margin-left:30px;">没有症状</el-checkbox>
  97. <el-checkbox label="1">咳嗽咳痰</el-checkbox>
  98. <el-checkbox label="2">低热盗汗</el-checkbox>
  99. <el-checkbox label="3">咳血或血痰</el-checkbox>
  100. <el-checkbox label="4">胸痛消瘦</el-checkbox>
  101. <el-checkbox label="5">恶心纳差</el-checkbox>
  102. <el-checkbox label="6">头痛失眠</el-checkbox>
  103. <el-checkbox label="7">视物模糊</el-checkbox>
  104. <el-checkbox label="8">皮肤瘙痒、皮疹</el-checkbox>
  105. <el-checkbox label="9">耳鸣、听力下降</el-checkbox>
  106. </el-checkbox-group>
  107. </td>
  108. <td colspan="3" style="vertical-align: initial;">
  109. 其他:
  110. <el-input type="textarea" :readonly="!editable" v-model="data2.symptom_other_desc" placeholder="" clearable></el-input>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td class="table2Td" colspan="3">
  115. <table class="table2">
  116. <tr>
  117. <td class="c-t-center" rowspan="3" style="border-bottom: 0;width: 100px;">用药</td>
  118. <td class="c-t-center" style="width: 200px;">
  119. 化疗方案
  120. </td>
  121. <td class="c-t-center">
  122. <el-input :readonly="!editable" v-model="data2.drug_use.chemotherapy" placeholder="" clearable></el-input>
  123. </td>
  124. </tr>
  125. <tr>
  126. <td class="c-t-center">用法</td>
  127. <td>
  128. <el-radio-group :disabled="!editable" v-model="data2.drug_use.method">
  129. <el-radio :disabled="!editable" v-model="radio" label="1">每日</el-radio>
  130. <el-radio :disabled="!editable" v-model="radio" label="2">间歇</el-radio>
  131. </el-radio-group>
  132. <!--<el-input :readonly="!editable" v-model="data2.drug_use.method" placeholder="" clearable></el-input>-->
  133. </td>
  134. </tr>
  135. <tr>
  136. <td class="c-t-center">药品剂型</td>
  137. <td>
  138. <el-radio-group :disabled="!editable" v-model="data2.drug_use.dosage_form">
  139. <el-radio :disabled="!editable" v-model="radio" label="1">固定剂量复合制剂</el-radio>
  140. <el-radio :disabled="!editable" v-model="radio" label="2">散装药</el-radio>
  141. <el-radio :disabled="!editable" v-model="radio" label="3">板式组合药</el-radio>
  142. <el-radio :disabled="!editable" v-model="radio" label="4">注射剂</el-radio>
  143. </el-radio-group>
  144. <!--<el-input :readonly="!editable" v-model="data2.drug_use.dosage_form" placeholder="" clearable></el-input>-->
  145. </td>
  146. </tr>
  147. </table>
  148. </td>
  149. </tr>
  150. <tr>
  151. <td class="col-w300 c-t-center">督导人员选择</td>
  152. <td colspan="2">
  153. <el-radio-group :disabled="!editable" v-model="data2.superviser.superviser_type">
  154. <el-radio :disabled="!editable" v-model="radio" :label="1">医生</el-radio>
  155. <el-radio :disabled="!editable" v-model="radio" :label="2">家属</el-radio>
  156. <el-radio :disabled="!editable" v-model="radio" :label="3">自服药</el-radio>
  157. <el-radio :disabled="!editable" v-model="radio" :label="4">其他</el-radio>
  158. </el-radio-group>
  159. </td>
  160. </tr>
  161. <tr>
  162. <td class="table2Td" colspan="3">
  163. <table class="table2">
  164. <tr>
  165. <td class="c-t-center" rowspan="2" style="border-bottom: 0;width: 100px;">家庭居住环境评估</td>
  166. <td class="c-t-center" style="width: 200px;">
  167. 单独的居室
  168. </td>
  169. <td>
  170. <el-radio-group :disabled="!editable" v-model="data2.home_environment.seperate_room">
  171. <el-radio :disabled="!editable" v-model="radio" :label="1">有</el-radio>
  172. <el-radio :disabled="!editable" v-model="radio" :label="2">无</el-radio>
  173. </el-radio-group>
  174. </td>
  175. </tr>
  176. <tr>
  177. <td class="c-t-center">通风情况</td>
  178. <td>
  179. <el-radio-group :disabled="!editable" v-model="data2.home_environment.air">
  180. <el-radio :disabled="!editable" v-model="radio" :label="1">良好</el-radio>
  181. <el-radio :disabled="!editable" v-model="radio" :label="2">一般</el-radio>
  182. <el-radio :disabled="!editable" v-model="radio" :label="3">差</el-radio>
  183. </el-radio-group>
  184. </td>
  185. </tr>
  186. <tr>
  187. <td class="c-t-center" rowspan="2" style="border-bottom: 0;width: 100px;">生活方式评估</td>
  188. <td class="c-t-center" style="width: 200px;">
  189. 吸烟
  190. </td>
  191. <td>
  192. <el-input :readonly="!editable" v-model="data2.life_style.smoke" placeholder="" clearable></el-input>支/天
  193. </td>
  194. </tr>
  195. <tr>
  196. <td class="c-t-center">喝酒</td>
  197. <td>
  198. <el-input :readonly="!editable" v-model="data2.life_style.drink" placeholder="" clearable></el-input>两/天
  199. </td>
  200. </tr>
  201. </table>
  202. </td>
  203. </tr>
  204. <tr>
  205. <td class="table2Td" colspan="3">
  206. <table class="table2">
  207. <tr>
  208. <td class="col-w300 c-t-center" rowspan="10" style="width:50px;">健康教育及培训</td>
  209. <td style="width:250px;">
  210. 取药地点、时间
  211. </td>
  212. <td>
  213. 地点:
  214. <el-input type="textarea" :readonly="!editable" v-model="data2.health_edu.get_drug_addr" placeholder="" clearable></el-input>
  215. <br> 时间:
  216. <el-date-picker :readonly="!editable" v-model="data2.health_edu.get_drug_time" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
  217. type="date" placeholder="选择日期">
  218. </el-date-picker>
  219. </td>
  220. </tr>
  221. <tr>
  222. <td>服药记录卡的填写</td>
  223. <td>
  224. <el-radio-group :disabled="!editable" v-model="data2.health_edu.drug_fill_record_card">
  225. <el-radio :disabled="!editable" v-model="radio" :label="1">掌握</el-radio>
  226. <el-radio :disabled="!editable" v-model="radio" :label="2">未掌握</el-radio>
  227. </el-radio-group>
  228. </td>
  229. </tr>
  230. <tr>
  231. <td>服药方法及药品存放</td>
  232. <td>
  233. <el-radio-group :disabled="!editable" v-model="data2.health_edu.drug_store">
  234. <el-radio :disabled="!editable" v-model="radio" :label="1">掌握</el-radio>
  235. <el-radio :disabled="!editable" v-model="radio" :label="2">未掌握</el-radio>
  236. </el-radio-group>
  237. </td>
  238. </tr>
  239. <tr>
  240. <td>肺结核治疗疗程</td>
  241. <td>
  242. <el-radio-group :disabled="!editable" v-model="data2.health_edu.phthisis_treatment">
  243. <el-radio :disabled="!editable" v-model="radio" :label="1">掌握</el-radio>
  244. <el-radio :disabled="!editable" v-model="radio" :label="2">未掌握</el-radio>
  245. </el-radio-group>
  246. </td>
  247. </tr>
  248. <tr>
  249. <td>不规律服药危害</td>
  250. <td>
  251. <el-radio-group :disabled="!editable" v-model="data2.health_edu.harm_of_irregular_take_drug">
  252. <el-radio :disabled="!editable" v-model="radio" :label="1">掌握</el-radio>
  253. <el-radio :disabled="!editable" v-model="radio" :label="2">未掌握</el-radio>
  254. </el-radio-group>
  255. </td>
  256. </tr>
  257. <tr>
  258. <td>服药后不良反应及处理</td>
  259. <td>
  260. <el-radio-group :disabled="!editable" v-model="data2.health_edu.drug_bad_reaction">
  261. <el-radio :disabled="!editable" v-model="radio" :label="1">掌握</el-radio>
  262. <el-radio :disabled="!editable" v-model="radio" :label="2">未掌握</el-radio>
  263. </el-radio-group>
  264. </td>
  265. </tr>
  266. <tr>
  267. <td>治疗期间复诊查痰</td>
  268. <td>
  269. <el-radio-group :disabled="!editable" v-model="data2.health_edu.check_sputum_again">
  270. <el-radio :disabled="!editable" v-model="radio" :label="1">掌握</el-radio>
  271. <el-radio :disabled="!editable" v-model="radio" :label="2">未掌握</el-radio>
  272. </el-radio-group>
  273. </td>
  274. </tr>
  275. <tr>
  276. <td>外出期间如何坚持服药</td>
  277. <td>
  278. <el-radio-group :disabled="!editable" v-model="data2.health_edu.insist_take_drug">
  279. <el-radio :disabled="!editable" v-model="radio" :label="1">掌握</el-radio>
  280. <el-radio :disabled="!editable" v-model="radio" :label="2">未掌握</el-radio>
  281. </el-radio-group>
  282. </td>
  283. </tr>
  284. <tr>
  285. <td>生活习惯及注意事项</td>
  286. <td>
  287. <el-radio-group :disabled="!editable" v-model="data2.health_edu.life_way">
  288. <el-radio :disabled="!editable" v-model="radio" :label="1">掌握</el-radio>
  289. <el-radio :disabled="!editable" v-model="radio" :label="2">未掌握</el-radio>
  290. </el-radio-group>
  291. </td>
  292. </tr>
  293. <tr>
  294. <td>密切接触者检查</td>
  295. <td>
  296. <el-radio-group :disabled="!editable" v-model="data2.health_edu.close_contact_patient">
  297. <el-radio :disabled="!editable" v-model="radio" :label="1">掌握</el-radio>
  298. <el-radio :disabled="!editable" v-model="radio" :label="2">未掌握</el-radio>
  299. </el-radio-group>
  300. </td>
  301. </tr>
  302. </table>
  303. </td>
  304. </tr>
  305. <tr>
  306. <td class="col-w300 c-t-center">下次随访时间</td>
  307. <td>
  308. <el-date-picker :readonly="!editable" v-model="data2.next_followup_date" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
  309. placeholder="选择日期">
  310. </el-date-picker>
  311. </td>
  312. </tr>
  313. <tr>
  314. <td class="col-w300 c-t-center">评估医生签名</td>
  315. <td>
  316. <el-input :readonly="!editable" v-model="data2.signature_doctor_name" placeholder="" clearable></el-input>
  317. </td>
  318. </tr>
  319. </table>
  320. <follow-bottom :followupId="followupId"></follow-bottom>
  321. </div>
  322. <script src="../../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
  323. <script src="../../../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
  324. <script src="../../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  325. <script src="../../../../plugins/toastr/toastr.min.js"></script>
  326. <script src="../../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  327. <script src="../../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
  328. <script src="../../../../js/element-ui.js" type="text/javascript" charset="utf-8"></script>
  329. <script src="../../../../component/followup/follow-bottom.js"></script>
  330. <script src="../../../../component/followup/finish-followup-btn.js"></script>
  331. <script src="../../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
  332. <script src="../../../../api/fangshi-api.js"></script>
  333. <script>
  334. var Request = GetRequest();
  335. new Vue({
  336. el: "#app",
  337. data: function () {
  338. return {
  339. finishedStatus: null, //随访完成状态
  340. editable: false,
  341. isEditBtn: true,
  342. data2: {
  343. symptom: [],
  344. patient: {},
  345. drug_use: {},
  346. superviser: {},
  347. home_environment: {},
  348. life_style: {},
  349. health_edu: {},
  350. followup_date:'',
  351. way:"", //默认家庭,
  352. signature_doctor_name:''
  353. },
  354. radio: "",
  355. input: '',
  356. check: [],
  357. followupId: Request['id'] || '1888113',
  358. version: Request['version'] || "v1",
  359. patientCode:'',
  360. followupClass:''
  361. }
  362. },
  363. mounted: function () {
  364. this.getData() //获取随访状态
  365. },
  366. methods: {
  367. getData: function () {
  368. var vm = this
  369. fangshiAPI.getPhthisisFirstCheckRecord({ followupId: this.followupId }).then(function (res) {
  370. if (res.status == 200) {
  371. var data = res.data
  372. var isEmpty = true
  373. for (var k in data) {
  374. if (k) {
  375. isEmpty = false
  376. break
  377. }
  378. }
  379. if (!isEmpty) {
  380. vm.data2 = data
  381. vm.dealData(data)
  382. vm.getStatus(false)
  383. }else{
  384. vm.getStatus(true)
  385. }
  386. } else {
  387. top.toastr.error(res.msg);
  388. }
  389. })
  390. },
  391. dealData: function (data) {
  392. if (!data.symptom) {
  393. data.symptom = []
  394. } else {
  395. data.symptom = data.symptom.split(",")
  396. }
  397. if (!data.patient) {
  398. data.patient = {}
  399. }
  400. if (!data.drug_use) {
  401. data.drug_use = {}
  402. }
  403. if (!data.superviser) {
  404. data.superviser = {}
  405. }
  406. if (!data.home_environment) {
  407. data.home_environment = {}
  408. }
  409. if (!data.life_style) {
  410. data.life_style = {}
  411. }
  412. if (!data.health_edu) {
  413. data.health_edu = {}
  414. }
  415. },
  416. // getLastData: function (obj) {
  417. // var vm = this
  418. // fangshiAPI.getLastVisitRecord({ followupClass: vm.followupClass, patientCode: vm.patientCode }).then(function (res) {
  419. // if (res.status == 200) {
  420. // var data = res.data.detail
  421. // // finishedStatus:true 随访完成,false 随访未完成
  422. // if (vm.finishedStatus) {
  423. // vm.getData()
  424. // } else {
  425. // // 默认信息
  426. // vm.data2.patient.name = obj.name
  427. // vm.data2.signature_doctor_name = obj.doctorName
  428. // // 居民存在上次历史记录,则代入默认信息
  429. // if (res.data.detail) {
  430. // vm.data2 = res.data.detail
  431. // vm.dealData(data)
  432. // }
  433. // }
  434. // }
  435. // })
  436. // },
  437. // 完成随访状态修改
  438. finish: function () {
  439. var vm = this
  440. fangshiAPI.updateFollowStatus({ followupId: this.followupId,isFlag:0 }).then(function (res) {
  441. if (res.status == 200) {
  442. vm.getStatus()
  443. top.toastr.info("完成随访成功")
  444. } else {
  445. top.toastr.error(res.msg);
  446. }
  447. })
  448. },
  449. editData: function () {
  450. var vm = this
  451. var data = {};
  452. data = $.extend(true, data, this.data2)
  453. data.version = this.version //版本号
  454. data.followup_id = this.followupId
  455. if (this.data2.symptom) {
  456. data.symptom = this.data2.symptom.join(",")
  457. } else {
  458. data.symptom = ""
  459. }
  460. fangshiAPI.savePhthisisFirstCheckRecord({ jsonData: JSON.stringify(data) }).then(function (res) {
  461. if (res.status == 200) {
  462. vm.finishedStatus ? '' : vm.finish()
  463. vm.finishedStatus ? top.toastr.info('保存成功') : ''
  464. } else {
  465. top.toastr.error(res.msg);
  466. }
  467. })
  468. },
  469. setEditBtn: function () {
  470. var btn = document.getElementsByClassName('button')[0]
  471. if (!this.finishedStatus) {
  472. btn.innerHTML = '完成随访'
  473. this.editable = true
  474. return
  475. }
  476. if (this.isEditBtn == true) {
  477. btn.innerHTML = '编辑'
  478. this.editable = false
  479. } else if (this.isEditBtn == false) {
  480. btn.innerHTML = '保存'
  481. this.editable = true
  482. }
  483. },
  484. editBtn: function () {
  485. if (this.finishedStatus) {
  486. this.isEditBtn = !this.isEditBtn
  487. }
  488. this.setEditBtn()
  489. this.isEditBtn || !this.finishedStatus?this.editData():''//保存数据
  490. },
  491. //获取当前随访状态信息 Request['id']||'1'
  492. getStatus: function (getLast) {
  493. var vm = this
  494. fangshiAPI.getFollowupInfo({ followupId: this.followupId || '1888107' }).then(function (res) {
  495. if (res.status == 200) {
  496. res.data.status != 1 ? vm.finishedStatus = false : vm.finishedStatus = true
  497. // vm.patientCode = res.data.patientCode
  498. // vm.followupClass = res.data.followupClass
  499. if (getLast) {
  500. //默认信息
  501. vm.data2.patient.name = res.data.patient.name
  502. vm.data2.signature_doctor_name = res.data.doctorName
  503. vm.data2.way = 2
  504. vm.data2.followup_date = new Date().format("yyyy-MM-dd")
  505. }
  506. // vm.getLastData()//获取patientCode,followupClass 获取上一次数据
  507. vm.setEditBtn()
  508. } else {
  509. top.toastr.error(res.msg);
  510. }
  511. })
  512. },
  513. getFinishfChild: function (msg) {
  514. this.finishedBtn = msg
  515. this.getStatus()
  516. },
  517. }
  518. })
  519. </script>
  520. </body>
  521. </html>