fangshi-detail-9.html 26 KB

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