fangshi-detail-9.html 25 KB

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