fangshi-detail-10.html 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306
  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"
  9. content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
  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. <style>
  19. .setinput .el-input__inner,
  20. .innerInput {
  21. padding: 0;
  22. border-bottom: 1px solid #e1e1e1;
  23. text-align: center;
  24. }
  25. .innerInput {
  26. width: 100px;
  27. padding: 0 5px !important;
  28. }
  29. .dudaorenyuan el-radio {
  30. width: 50%;
  31. }
  32. .button{
  33. margin-right: 0px;
  34. }
  35. .button:nth-child(2){
  36. background:#FFC66F;
  37. }
  38. .finish{
  39. background:#e1e1e1 !important;
  40. }
  41. </style>
  42. </head>
  43. <body>
  44. <div id="app">
  45. <button class="button" @click="editBtn()">&nbsp;</button>
  46. <p class="c-f20 mb10" style="text-align: center;">肺结核患者随访服务记录表</p>
  47. <div class="ui-grid p10">
  48. <div class="ui-col-1">
  49. <div class="ui-grid">
  50. <div class="ui-col-0">姓名:</div>
  51. <div class="ui-col-1">
  52. <el-input :readonly="!editable" v-model="parient.patient.name"
  53. placeholder="" clearable></el-input>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="ui-col-1">
  58. <div class="ui-grid">
  59. <div class="ui-col-0">编号:</div>
  60. <div class="ui-col-1">
  61. <el-input :readonly="!editable" v-model="parient.number"
  62. placeholder="" clearable>
  63. </el-input>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <table class="table table-bordered">
  69. <tr>
  70. <td class="col-w200 c-t-center">随访时间</td>
  71. <td>
  72. <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
  73. v-model="parient.data[0].followup_date" type="date"
  74. placeholder="选择日期">
  75. </el-date-picker>
  76. </td>
  77. <td>
  78. <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
  79. v-model="parient.data[1].followup_date" type="date"
  80. placeholder="选择日期">
  81. </el-date-picker>
  82. </td>
  83. <td>
  84. <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
  85. v-model="parient.data[2].followup_date" type="date"
  86. placeholder="选择日期">
  87. </el-date-picker>
  88. </td>
  89. <td>
  90. <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
  91. v-model="parient.data[3].followup_date" type="date"
  92. placeholder="选择日期">
  93. </el-date-picker>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td class="col-w200 c-t-center">治疗月序</td>
  98. <td class="setinput">
  99. <el-input style="width: 70px;" type="number" :readonly="!editable"
  100. v-model="parient.data[0].treate_month">
  101. </el-input> 月
  102. </td>
  103. <td class="setinput">
  104. <el-input style="width: 70px;" type="number" :readonly="!editable"
  105. v-model="parient.data[1].treate_month">
  106. </el-input> 月
  107. </td>
  108. <td class="setinput">
  109. <el-input style="width: 70px;" type="number" :readonly="!editable"
  110. v-model="parient.data[2].treate_month">
  111. </el-input> 月
  112. </td>
  113. <td class="setinput">
  114. <el-input style="width: 70px;" type="number" :readonly="!editable"
  115. v-model="parient.data[3].treate_month">
  116. </el-input> 月
  117. </td>
  118. </tr>
  119. <tr>
  120. <td class="col-w200 c-t-center">督导人员</td>
  121. <td>
  122. <div>
  123. <!-- 1-医生,2-家属,3-自服药,4-其他 -->
  124. <el-radio-group :disabled="!editable"
  125. v-model="parient.data[0].superviser.superviser_type"
  126. class="dudaorenyuan">
  127. <el-row>
  128. <el-col :span="24">
  129. <el-radio :disabled="!editable" label="1">医生</el-radio>
  130. <el-radio :disabled="!editable" label="2">家属</el-radio>
  131. </el-col>
  132. <el-col :span="24">
  133. <el-radio :disabled="!editable" label="3">自服药</el-radio>
  134. <el-radio :disabled="!editable" label="4">其他</el-radio>
  135. </el-col>
  136. </el-row>
  137. </el-radio-group>
  138. </div>
  139. </td>
  140. <td>
  141. <div>
  142. <el-radio-group :disabled="!editable"
  143. v-model="parient.data[1].superviser.superviser_type"
  144. class="dudaorenyuan">
  145. <el-row>
  146. <el-col :span="24">
  147. <el-radio :disabled="!editable" label="1">医生</el-radio>
  148. <el-radio :disabled="!editable" label="2">家属</el-radio>
  149. </el-col>
  150. <el-col :span="24">
  151. <el-radio :disabled="!editable" label="3">自服药</el-radio>
  152. <el-radio :disabled="!editable" label="4">其他</el-radio>
  153. </el-col>
  154. </el-row>
  155. </el-radio-group>
  156. </div>
  157. </td>
  158. <td>
  159. <div>
  160. <el-radio-group :disabled="!editable"
  161. v-model="parient.data[2].superviser.superviser_type">
  162. <el-row>
  163. <el-col :span="24">
  164. <el-radio :disabled="!editable" label="1">医生</el-radio>
  165. <el-radio :disabled="!editable" label="2">家属</el-radio>
  166. </el-col>
  167. <el-col :span="24">
  168. <el-radio :disabled="!editable" label="3">自服药</el-radio>
  169. <el-radio :disabled="!editable" label="4">其他</el-radio>
  170. </el-col>
  171. </el-row>
  172. </el-radio-group>
  173. </div>
  174. </td>
  175. <td>
  176. <div>
  177. <el-radio-group :disabled="!editable"
  178. v-model="parient.data[3].superviser.superviser_type">
  179. <el-row>
  180. <el-col :span="24">
  181. <el-radio :disabled="!editable" label="1">医生</el-radio>
  182. <el-radio :disabled="!editable" label="2">家属</el-radio>
  183. </el-col>
  184. <el-col :span="24">
  185. <el-radio :disabled="!editable" label="3">自服药</el-radio>
  186. <el-radio :disabled="!editable" label="4">其他</el-radio>
  187. </el-col>
  188. </el-row>
  189. </el-radio-group>
  190. </div>
  191. </td>
  192. </tr>
  193. <tr>
  194. <td class="col-w200 c-t-center">随访方式</td>
  195. <td>
  196. <div>
  197. <el-radio-group :disabled="!editable"
  198. v-model="parient.data[0].way">
  199. <el-row>
  200. <!-- 1-门诊,2-家庭 3-电话-->
  201. <el-col :span="24">
  202. <el-radio :disabled="!editable" label="1">门诊</el-radio>
  203. <el-radio :disabled="!editable" label="2">家庭</el-radio>
  204. </el-col>
  205. <el-col :span="24">
  206. <el-radio :disabled="!editable" label="3">电话</el-radio>
  207. </el-col>
  208. </el-row>
  209. </el-radio-group>
  210. </div>
  211. </td>
  212. <td>
  213. <div>
  214. <el-radio-group :disabled="!editable"
  215. v-model="parient.data[1].way">
  216. <el-row>
  217. <el-col :span="24">
  218. <el-radio :disabled="!editable" label="1">门诊</el-radio>
  219. <el-radio :disabled="!editable" label="2">家庭</el-radio>
  220. </el-col>
  221. <el-col :span="24">
  222. <el-radio :disabled="!editable" label="3">电话</el-radio>
  223. </el-col>
  224. </el-row>
  225. </el-radio-group>
  226. </div>
  227. </td>
  228. <td>
  229. <div>
  230. <el-radio-group :disabled="!editable"
  231. v-model="parient.data[2].way">
  232. <el-row>
  233. <el-col :span="24">
  234. <el-radio :disabled="!editable" label="1">门诊</el-radio>
  235. <el-radio :disabled="!editable" label="2">家庭</el-radio>
  236. </el-col>
  237. <el-col :span="24">
  238. <el-radio :disabled="!editable" label="3">电话</el-radio>
  239. </el-col>
  240. </el-row>
  241. </el-radio-group>
  242. </div>
  243. </td>
  244. <td>
  245. <div>
  246. <el-radio-group :disabled="!editable"
  247. v-model="parient.data[3].way">
  248. <el-row>
  249. <el-col :span="24">
  250. <el-radio :disabled="!editable" label="1">门诊</el-radio>
  251. <el-radio :disabled="!editable" label="2">家庭</el-radio>
  252. </el-col>
  253. <el-col :span="24">
  254. <el-radio :disabled="!editable" label="3">电话</el-radio>
  255. </el-col>
  256. </el-row>
  257. </el-radio-group>
  258. </div>
  259. </td>
  260. </tr>
  261. <tr>
  262. <td class="col-w200">症状及体征:
  263. <!-- 0-没有症状,1-咳嗽咳痰,2-低热盗汗,3-咯血或血痰,4-胸痛消瘦,5-恶心纳差,6-头痛失眠,7-视物模糊,8-皮肤瘙痒、皮疹,9-耳鸣、听力下降 -->
  264. <el-checkbox-group v-model="tizheng" :disabled="!editable">
  265. <el-checkbox label="0" style="margin-left:30px;">没有症状</el-checkbox>
  266. <el-checkbox label="1">咳嗽咳痰</el-checkbox>
  267. <el-checkbox label="2">低热盗汗</el-checkbox>
  268. <el-checkbox label="3">咳血或血痰</el-checkbox>
  269. <el-checkbox label="4">胸痛消瘦</el-checkbox>
  270. <el-checkbox label="5">恶心纳差</el-checkbox>
  271. <el-checkbox label="6">头痛失眠</el-checkbox>
  272. <el-checkbox label="7">视物模糊</el-checkbox>
  273. <el-checkbox label="8">皮肤瘙痒、皮疹</el-checkbox>
  274. <el-checkbox label="9">耳鸣、听力下降</el-checkbox>
  275. </el-checkbox-group>
  276. </td>
  277. <td style="vertical-align: initial;">
  278. 其他:
  279. <el-input type="textarea" :readonly="!editable" :rows="12"
  280. v-model="parient.data[0].symptom_other_desc" placeholder=""
  281. clearable></el-input>
  282. </td>
  283. <td style="vertical-align: initial;">
  284. 其他:
  285. <el-input type="textarea" :readonly="!editable" :rows="12"
  286. v-model="parient.data[1].symptom_other_desc" placeholder=""
  287. clearable></el-input>
  288. </td>
  289. <td style="vertical-align: initial;">
  290. 其他:
  291. <el-input type="textarea" :readonly="!editable" :rows="12"
  292. v-model="parient.data[2].symptom_other_desc" placeholder=""
  293. clearable></el-input>
  294. </td>
  295. <td style="vertical-align: initial;">
  296. 其他:
  297. <el-input type="textarea" :readonly="!editable" :rows="12"
  298. v-model="parient.data[3].symptom_other_desc" placeholder=""
  299. clearable></el-input>
  300. </td>
  301. </tr>
  302. <tr>
  303. <td class="table2Td" colspan="5">
  304. <table class="table2">
  305. <tr>
  306. <td class="c-t-center" rowspan="2" style="border-bottom: 0;width: 50px;">生活方式指导</td>
  307. <td class="c-t-center" style="width: 100px;">
  308. 吸烟
  309. </td>
  310. <td class="setinput">
  311. <el-input style="width: 70px;" type="number" :readonly="!editable"
  312. v-model="parient.data[0].life_style.smoke">
  313. </el-input> 支
  314. <el-input style="width: 70px;" type="number" :readonly="!editable"
  315. v-model="parient.data[0].life_style.smoke_day">
  316. </el-input>天
  317. </td>
  318. <td class="setinput">
  319. <el-input style="width: 70px;" type="number" :readonly="!editable"
  320. v-model="parient.data[1].life_style.smoke">
  321. </el-input> 支
  322. <el-input style="width: 70px;" type="number" :readonly="!editable"
  323. v-model="parient.data[1].life_style.smoke_day">
  324. </el-input>天
  325. </td>
  326. <td class="setinput">
  327. <el-input style="width: 70px;" type="number" :readonly="!editable"
  328. v-model="parient.data[2].life_style.smoke">
  329. </el-input> 支
  330. <el-input style="width: 70px;" type="number" :readonly="!editable"
  331. v-model="parient.data[2].life_style.smoke_day">
  332. </el-input>天
  333. </td>
  334. <td class="setinput">
  335. <el-input style="width: 70px;" type="number" :readonly="!editable"
  336. v-model="parient.data[3].life_style.smoke">
  337. </el-input> 支
  338. <el-input style="width: 70px;" type="number" :readonly="!editable"
  339. v-model="parient.data[3].life_style.smoke_day">
  340. </el-input>天
  341. </td>
  342. </tr>
  343. <tr>
  344. <td class="c-t-center" style="width: 150px;">饮酒</td>
  345. <td class="setinput">
  346. <el-input style="width: 70px;" type="number" :readonly="!editable"
  347. v-model="parient.data[0].life_style.drink">
  348. </el-input> 两
  349. <el-input style="width: 70px;" type="number" :readonly="!editable"
  350. v-model="parient.data[0].life_style.drink_day">
  351. </el-input>天
  352. </td>
  353. <td class="setinput">
  354. <el-input style="width: 70px;" type="number" :readonly="!editable"
  355. v-model="parient.data[1].life_style.drink">
  356. </el-input>两
  357. <el-input style="width: 70px;" type="number" :readonly="!editable"
  358. v-model="parient.data[1].life_style.drink_day">
  359. </el-input>天
  360. </td>
  361. <td class="setinput">
  362. <el-input style="width: 70px;" type="number" :readonly="!editable"
  363. v-model="parient.data[2].life_style.drink">
  364. </el-input> 两
  365. <el-input style="width: 70px;" type="number" :readonly="!editable"
  366. v-model="parient.data[2].life_style.drink_day">
  367. </el-input>天
  368. </td>
  369. <td class="setinput">
  370. <el-input style="width: 70px;" type="number" :readonly="!editable"
  371. v-model="parient.data[3].life_style.drink">
  372. </el-input> 两
  373. <el-input style="width: 70px;" type="number" :readonly="!editable"
  374. v-model="parient.data[3].life_style.drink_day">
  375. </el-input>天
  376. </td>
  377. </tr>
  378. <tr>
  379. <td class="c-t-center" rowspan="4" style="border-bottom: 0;width: 50px;">用药</td>
  380. <td class="c-t-center">
  381. 化疗方案
  382. </td>
  383. <td class="c-t-center">
  384. <el-input :readonly="!editable"
  385. v-model="parient.data[0].drug_use.chemotherapy"
  386. placeholder="" clearable></el-input>
  387. </td>
  388. <td class="c-t-center">
  389. <el-input :readonly="!editable"
  390. v-model="parient.data[1].drug_use.chemotherapy"
  391. placeholder="" clearable></el-input>
  392. </td>
  393. <td class="c-t-center">
  394. <el-input :readonly="!editable"
  395. v-model="parient.data[2].drug_use.chemotherapy"
  396. placeholder="" clearable></el-input>
  397. </td>
  398. <td class="c-t-center">
  399. <el-input :readonly="!editable"
  400. v-model="parient.data[3].drug_use.chemotherapy"
  401. placeholder="" clearable></el-input>
  402. </td>
  403. </tr>
  404. <tr>
  405. <td class="c-t-center">用法</td>
  406. <td>
  407. <!-- 1-每日,2-间歇 -->
  408. <el-radio-group :disabled="!editable"
  409. v-model="parient.data[0].drug_use.method">
  410. <el-radio :disabled="!editable" label="1">每日</el-radio>
  411. <el-radio :disabled="!editable" label="2">间歇</el-radio>
  412. </el-radio-group>
  413. </td>
  414. <td>
  415. <el-radio-group :disabled="!editable"
  416. v-model="parient.data[1].drug_use.method">
  417. <el-radio :disabled="!editable" label="1">每日</el-radio>
  418. <el-radio :disabled="!editable" label="2">间歇</el-radio>
  419. </el-radio-group>
  420. </td>
  421. <td>
  422. <el-radio-group :disabled="!editable"
  423. v-model="parient.data[2].drug_use.method">
  424. <el-radio :disabled="!editable" label="1">每日</el-radio>
  425. <el-radio :disabled="!editable" label="2">间歇</el-radio>
  426. </el-radio-group>
  427. </td>
  428. <td>
  429. <el-radio-group :disabled="!editable"
  430. v-model="parient.data[3].drug_use.method">
  431. <el-radio :disabled="!editable" label="1">每日</el-radio>
  432. <el-radio :disabled="!editable" label="2">间歇</el-radio>
  433. </el-radio-group>
  434. </td>
  435. </tr>
  436. <tr>
  437. <td class="c-t-center" style="width: 150px;">药品剂型</td>
  438. <td>
  439. <!-- 1、固定剂量复合制剂,2-散装药,3-板式组合药,4-注射剂 -->
  440. <el-checkbox-group v-model="yongyao1" :disabled="!editable">
  441. <el-checkbox label="1" style="margin-left:30px;">固定剂量复合制剂</el-checkbox>
  442. <el-checkbox label="2">散装药</el-checkbox>
  443. <el-checkbox label="3">板式组合药</el-checkbox>
  444. <el-checkbox label="4">注射剂</el-checkbox>
  445. </el-checkbox-group>
  446. </td>
  447. <td>
  448. <el-checkbox-group v-model="yongyao2" :disabled="!editable">
  449. <el-checkbox label="1" style="margin-left:30px;">固定剂量复合制剂</el-checkbox>
  450. <el-checkbox label="2">散装药</el-checkbox>
  451. <el-checkbox label="3">板式组合药</el-checkbox>
  452. <el-checkbox label="4">注射剂</el-checkbox>
  453. </el-checkbox-group>
  454. </td>
  455. <td>
  456. <el-checkbox-group v-model="yongyao3" :disabled="!editable">
  457. <el-checkbox label="1" style="margin-left:30px;">固定剂量复合制剂</el-checkbox>
  458. <el-checkbox label="2">散装药</el-checkbox>
  459. <el-checkbox label="3">板式组合药</el-checkbox>
  460. <el-checkbox label="4">注射剂</el-checkbox>
  461. </el-checkbox-group>
  462. </td>
  463. <td>
  464. <el-checkbox-group v-model="yongyao4" :disabled="!editable">
  465. <el-checkbox label="1" style="margin-left:30px;">固定剂量复合制剂</el-checkbox>
  466. <el-checkbox label="2">散装药</el-checkbox>
  467. <el-checkbox label="3">板式组合药</el-checkbox>
  468. <el-checkbox label="4">注射剂</el-checkbox>
  469. </el-checkbox-group>
  470. </td>
  471. </tr>
  472. <tr>
  473. <td class="c-t-center">
  474. 漏服药次数
  475. </td>
  476. <td class="setinput">
  477. <el-input style="width: 70px;" type="number" :readonly="!editable"
  478. v-model="parient.data[0].drug_use.forgot_take_drug_times">
  479. </el-input> 次
  480. </td>
  481. <td class="setinput">
  482. <el-input style="width: 70px;" type="number" :readonly="!editable"
  483. v-model="parient.data[1].drug_use.forgot_take_drug_times">
  484. </el-input> 次
  485. </td>
  486. <td class="setinput">
  487. <el-input style="width: 70px;" type="number" :readonly="!editable"
  488. v-model="parient.data[2].drug_use.forgot_take_drug_times">
  489. </el-input> 次
  490. </td>
  491. <td class="setinput">
  492. <el-input style="width: 70px;" type="number" :readonly="!editable"
  493. v-model="parient.data[3].drug_use.forgot_take_drug_times">
  494. </el-input> 次
  495. </td>
  496. </tr>
  497. </table>
  498. </td>
  499. </tr>
  500. <tr>
  501. <td class="col-w200 c-t-center">药物不良反应</td>
  502. <td>
  503. <!-- // 药物不良反应 1-无,2-有 -->
  504. <el-radio-group :disabled="!editable"
  505. v-model="parient.data[0].drug_bad_reaction">
  506. <el-radio :disabled="!editable" label="1">无</el-radio>
  507. <el-radio :disabled="!editable" label="2">有</el-radio>
  508. <el-input class="innerInput" style="padding:0 !important;"
  509. v-if="parient.data[0].drug_bad_reaction==2"
  510. style="width: 70px;" type="text" :readonly="!editable"
  511. v-model="parient.data[0].drug_bad_reaction_detail">
  512. </el-input>
  513. </el-radio-group>
  514. </td>
  515. <td>
  516. <el-radio-group :disabled="!editable"
  517. v-model="parient.data[1].drug_bad_reaction">
  518. <el-radio :disabled="!editable" label="1">无</el-radio>
  519. <el-radio :disabled="!editable" label="2">有</el-radio>
  520. <el-input class="innerInput" style="padding:0 !important;"
  521. v-if="parient.data[1].drug_bad_reaction==2"
  522. style="width: 70px;" type="text" :readonly="!editable"
  523. v-model="parient.data[1].drug_bad_reaction_detail">
  524. </el-input>
  525. </el-radio-group>
  526. </td>
  527. <td>
  528. <el-radio-group :disabled="!editable"
  529. v-model="parient.data[2].drug_bad_reaction">
  530. <el-radio :disabled="!editable" label="1">无</el-radio>
  531. <el-radio :disabled="!editable" label="2">有</el-radio>
  532. <el-input class="innerInput" style="padding:0 !important;"
  533. v-if="parient.data[2].drug_bad_reaction==2"
  534. style="width: 70px;" type="text" :readonly="!editable"
  535. v-model="parient.data[2].drug_bad_reaction_detail">
  536. </el-input>
  537. </el-radio-group>
  538. </td>
  539. <td>
  540. <el-radio-group :disabled="!editable"
  541. v-model="parient.data[3].drug_bad_reaction">
  542. <el-radio :disabled="!editable" label="1">无</el-radio>
  543. <el-radio :disabled="!editable" label="2">有</el-radio>
  544. <el-input class="innerInput" style="padding:0 !important;"
  545. v-if="parient.data[3].drug_bad_reaction==2"
  546. style="width: 70px;" type="text" :readonly="!editable"
  547. v-model="parient.data[3].drug_bad_reaction_detail">
  548. </el-input>
  549. </el-radio-group>
  550. </td>
  551. </tr>
  552. <tr>
  553. <td class="col-w200 c-t-center">并发症或合并症</td>
  554. <td>
  555. <!-- // 并发症 1-无,2-有 -->
  556. <el-radio-group :disabled="!editable"
  557. v-model="parient.data[0].complication">
  558. <el-radio :disabled="!editable" label="1">无</el-radio>
  559. <el-radio :disabled="!editable" label="2">有</el-radio>
  560. <el-input class="innerInput" style="padding:0 !important;"
  561. v-if="parient.data[0].complication==2" style="width: 70px;"
  562. type="text" :readonly="!editable"
  563. v-model="parient.data[0].complication_detail">
  564. </el-input>
  565. </el-radio-group>
  566. </td>
  567. <td>
  568. <el-radio-group :disabled="!editable"
  569. v-model="parient.data[1].complication">
  570. <el-radio :disabled="!editable" label="1">无</el-radio>
  571. <el-radio :disabled="!editable" label="2">有</el-radio>
  572. <el-input class="innerInput" style="padding:0 !important;"
  573. v-if="parient.data[1].complication==2" style="width: 70px;"
  574. type="text" :readonly="!editable"
  575. v-model="parient.data[1].complication_detail">
  576. </el-input>
  577. </el-radio-group>
  578. </td>
  579. <td>
  580. <el-radio-group :disabled="!editable"
  581. v-model="parient.data[2].complication">
  582. <el-radio :disabled="!editable" label="1">无</el-radio>
  583. <el-radio :disabled="!editable" label="2">有</el-radio>
  584. <el-input class="innerInput" style="padding:0 !important;"
  585. v-if="parient.data[2].complication==2" style="width: 70px;"
  586. type="text" :readonly="!editable"
  587. v-model="parient.data[2].complication_detail">
  588. </el-input>
  589. </el-radio-group>
  590. </td>
  591. <td>
  592. <el-radio-group :disabled="!editable"
  593. v-model="parient.data[3].complication">
  594. <el-radio :disabled="!editable" label="1">无</el-radio>
  595. <el-radio :disabled="!editable" label="2">有</el-radio>
  596. <el-input class="innerInput" style="padding:0 !important;"
  597. v-if="parient.data[3].complication==2" style="width: 70px;"
  598. type="text" :readonly="!editable"
  599. v-model="parient.data[3].complication_detail">
  600. </el-input>
  601. </el-radio-group>
  602. </td>
  603. </tr>
  604. <tr>
  605. <td class="table2Td" colspan="5">
  606. <table class="table2">
  607. <tr>
  608. <td rowspan="3" class="c-t-center" style="border-bottom: 0; width:50px;">转诊</td>
  609. <td class="c-t-center" style="width: 150px;">
  610. 科别
  611. </td>
  612. <td>
  613. <el-input :readonly="!editable" style=""
  614. v-model="parient.data[0].trans_org.dept_name"
  615. placeholder="" clearable></el-input>
  616. </td>
  617. <td>
  618. <el-input :readonly="!editable"
  619. v-model="parient.data[1].trans_org.dept_name"
  620. placeholder="" clearable></el-input>
  621. </td>
  622. <td>
  623. <el-input :readonly="!editable"
  624. v-model="parient.data[2].trans_org.dept_name"
  625. placeholder="" clearable></el-input>
  626. </td>
  627. <td>
  628. <el-input :readonly="!editable"
  629. v-model="parient.data[3].trans_org.dept_name"
  630. placeholder="" clearable></el-input>
  631. </td>
  632. </tr>
  633. <tr>
  634. <td class="c-t-center">
  635. 原因
  636. </td>
  637. <td>
  638. <el-input :readonly="!editable"
  639. v-model="parient.data[0].trans_org.reason"
  640. placeholder="" clearable></el-input>
  641. </td>
  642. <td>
  643. <el-input :readonly="!editable"
  644. v-model="parient.data[1].trans_org.reason"
  645. placeholder="" clearable></el-input>
  646. </td>
  647. <td>
  648. <el-input :readonly="!editable"
  649. v-model="parient.data[2].trans_org.reason"
  650. placeholder="" clearable></el-input>
  651. </td>
  652. <td>
  653. <el-input :readonly="!editable"
  654. v-model="parient.data[3].trans_org.reason"
  655. placeholder="" clearable></el-input>
  656. </td>
  657. </tr>
  658. <tr>
  659. <td class="c-t-center">
  660. 2周内随访,随访结果
  661. </td>
  662. <td>
  663. <el-input :readonly="!editable"
  664. v-model="parient.data[0].trans_org.result_of_2_weeks"
  665. placeholder="" clearable></el-input>
  666. </td>
  667. <td>
  668. <el-input :readonly="!editable"
  669. v-model="parient.data[1].trans_org.result_of_2_weeks"
  670. placeholder="" clearable></el-input>
  671. </td>
  672. <td>
  673. <el-input :readonly="!editable"
  674. v-model="parient.data[2].trans_org.result_of_2_weeks"
  675. placeholder="" clearable></el-input>
  676. </td>
  677. <td>
  678. <el-input :readonly="!editable"
  679. v-model="parient.data[3].trans_org.result_of_2_weeks"
  680. placeholder="" clearable></el-input>
  681. </td>
  682. </tr>
  683. </table>
  684. </td>
  685. </tr>
  686. <tr>
  687. <td class="col-w200 c-t-center">处理意见</td>
  688. <td>
  689. <el-input :readonly="!editable"
  690. v-model="parient.data[0].process_opinion" placeholder=""
  691. clearable></el-input>
  692. </td>
  693. <td>
  694. <el-input :readonly="!editable"
  695. v-model="parient.data[1].process_opinion" placeholder=""
  696. clearable></el-input>
  697. </td>
  698. <td>
  699. <el-input :readonly="!editable"
  700. v-model="parient.data[2].process_opinion" placeholder=""
  701. clearable></el-input>
  702. </td>
  703. <td>
  704. <el-input :readonly="!editable"
  705. v-model="parient.data[3].process_opinion" placeholder=""
  706. clearable></el-input>
  707. </td>
  708. </tr>
  709. <tr>
  710. <td class="col-w200 c-t-center">下次随访时间</td>
  711. <td>
  712. <!-- <el-input :readonly="!editable" v-model="input" placeholder="" clearable></el-input> -->
  713. <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
  714. v-model="parient.data[0].next_followup_date" type="date"
  715. placeholder="选择日期">
  716. </el-date-picker>
  717. </td>
  718. <td>
  719. <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
  720. v-model="parient.data[1].next_followup_date" type="date"
  721. placeholder="选择日期">
  722. </el-date-picker>
  723. <!-- <el-input :readonly="!editable" v-model="input" placeholder="" clearable></el-input> -->
  724. </td>
  725. <td>
  726. <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
  727. v-model="parient.data[2].next_followup_date" type="date"
  728. placeholder="选择日期">
  729. </el-date-picker>
  730. <!-- <el-input :readonly="!editable" v-model="input" placeholder="" clearable></el-input> -->
  731. </td>
  732. <td>
  733. <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
  734. v-model="parient.data[3].next_followup_date" type="date"
  735. placeholder="选择日期">
  736. </el-date-picker>
  737. <!-- <el-input :readonly="!editable" v-model="input" placeholder="" clearable></el-input> -->
  738. </td>
  739. </tr>
  740. <tr>
  741. <td class="col-w200 c-t-center">随访医生签名</td>
  742. <td>
  743. <el-input :readonly="!editable"
  744. v-model="parient.data[0].followup_doctor_name" placeholder=""
  745. clearable></el-input>
  746. </td>
  747. <td>
  748. <el-input :readonly="!editable"
  749. v-model="parient.data[1].followup_doctor_name" placeholder=""
  750. clearable></el-input>
  751. </td>
  752. <td>
  753. <el-input :readonly="!editable"
  754. v-model="parient.data[2].followup_doctor_name" placeholder=""
  755. clearable></el-input>
  756. </td>
  757. <td>
  758. <el-input :readonly="!editable"
  759. v-model="parient.data[3].followup_doctor_name" placeholder=""
  760. clearable></el-input>
  761. </td>
  762. </tr>
  763. <tr>
  764. <td class="col-w200 c-t-center">停止治疗及原因</td>
  765. <td colspan="4">
  766. 1.出现停止治疗时间年月日:
  767. <el-date-picker :readonly="!editable" value-format="yyyy-MM-dd"
  768. v-model="parient.stop_treate.date" type="date"
  769. placeholder="选择日期">
  770. </el-date-picker>
  771. 2.停止治疗原因:
  772. <el-radio-group :disabled="!editable"
  773. v-model="parient.stop_treate.reason">
  774. <el-radio :disabled="!editable" v-model="radio" label="1">完成疗程</el-radio>
  775. <el-radio :disabled="!editable" v-model="radio" label="2">死亡</el-radio>
  776. <el-radio :disabled="!editable" v-model="radio" label="3">丢失</el-radio>
  777. <el-radio :disabled="!editable" v-model="radio" label="4">转入耐多药治疗</el-radio>
  778. </el-radio-group>
  779. </td>
  780. </tr>
  781. <tr>
  782. <td rowspan="2" class="col-w200 c-t-center">全程管理情况</td>
  783. <td colspan="4">
  784. <div class="setinput">
  785. 应访视患者<el-input style="width:70px;" type="text" :readonly="!editable"
  786. v-model="parient.management.plan_followup_times"
  787. placeholder="" clearable></el-input>次,
  788. 实际访视<el-input style="width:70px;" type="text" :readonly="!editable"
  789. v-model="parient.management.real_followup_times"
  790. placeholder="" clearable></el-input>次
  791. </div>
  792. <div class="setinput">
  793. 患者在疗程中,应服药<el-input style="width:70px;" type="text" :readonly="!editable"
  794. v-model="parient.management.plan_take_drug_times"
  795. placeholder="" clearable></el-input>次,
  796. 实际服药<el-input style="width:70px;" type="text" :readonly="!editable"
  797. v-model="parient.management.real_take_drug_times"
  798. placeholder="" clearable></el-input>次,
  799. 服药率<el-input style="width:70px;" type="text" :readonly="!editable"
  800. v-model="percent"
  801. placeholder="" clearable></el-input>%
  802. </div>
  803. </td>
  804. </tr>
  805. <tr>
  806. <td colspan="4" class="setinput">
  807. 评估医生签名:
  808. <el-input style="width:120px;" type="text" :readonly="!editable"
  809. v-model="parient.management.signature_doctor_name" placeholder=""
  810. clearable></el-input>
  811. </td>
  812. </tr>
  813. </table>
  814. <follow-bottom :followupId="followupId"></follow-bottom>
  815. </div>
  816. <script src="../../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
  817. <script src="../../../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
  818. <script src="../../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  819. <script src="../../../../plugins/toastr/toastr.min.js"></script>
  820. <script src="../../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  821. <script src="../../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
  822. <script src="../../../../js/element-ui.js" type="text/javascript" charset="utf-8"></script>
  823. <script src="../../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
  824. <script src="../../../../component/followup/follow-bottom.js"></script>
  825. <script src="../../../../api/fangshi-api.js"></script>
  826. <script>
  827. var Request = GetRequest();
  828. new Vue({
  829. el: "#app",
  830. data: function () {
  831. return {
  832. finishedStatus: null, //随访完成状态
  833. editable: false,
  834. isEditBtn: true,
  835. data2: "",
  836. radio: "",
  837. input: '',
  838. check: '',
  839. tizheng: [], //体征
  840. yongyao1: [], //用药
  841. yongyao2: [], //用药
  842. yongyao3: [], //用药
  843. yongyao4: [], //用药
  844. followupId: Request['id'],
  845. finishedBtn:true, //是否已经完成随访
  846. sfStatus:'', //当前的随访状态
  847. showFinish:true, //是否显示完成随访按钮,
  848. followupClass:'',
  849. patientCode:'',
  850. parient: {
  851. "version": Request['version']||'1',
  852. "followup_id": Request['id']||'1', //随访id
  853. "followup_project": '',//随访项目
  854. "number": '', //随访编号
  855. "patient": {
  856. "name": '',//患者姓名
  857. "code": ''//身份证置空
  858. },
  859. "data": [
  860. // 1
  861. {
  862. "create_user": '',
  863. "create_user_name": '',
  864. "followup_date": '',
  865. "way": '',//随访方式:1-门诊,2-家庭 3-电话 //整数
  866. "treate_month": '',//治疗月序
  867. "superviser": {
  868. "superviser_type": '',//督导人员类型:1-医生,2-家属,3-自服药,4-其他
  869. "superviser_code": '',//督导人员code
  870. "superviser_name": ''//督导人员name
  871. },
  872. "symptom": '',// string 症状及体征:0-没有症状,1-咳嗽咳痰,2-低热盗汗,3-咯血或血痰,4-胸痛消瘦,5-恶心纳差,6-头痛失眠,7-视物模糊,8-皮肤瘙痒、皮疹,9-耳鸣、听力下降
  873. "symptom_other_desc": '',//症状及体征其他描述
  874. "life_style": {
  875. "smoke": '', //生活方式-吸烟量
  876. "smoke_day":'',
  877. "drink": '', //生活方式-饮酒量
  878. "drink_day":''
  879. },
  880. "drug_use": {
  881. "chemotherapy": '',//用药情况-化疗方案,
  882. "method": '', //用药情况-用法:1-每日,2-间歇
  883. "dosage_form": '',// string 用药情况-药品剂型:1、固定剂量复合制剂,2-散装药,3-板式组合药,4-注射剂,
  884. "forgot_take_drug_times": '',//漏服药次数
  885. },
  886. "drug_bad_reaction": '', // 药物不良反应 1-无,2-有
  887. "drug_bad_reaction_detail": '', //药物不良反应描述
  888. "complication": '', // 并发症 1-无,2-有
  889. "complication_detail": '', //并發症描述
  890. "trans_org": { //转诊
  891. "dept_code": '', //科别code
  892. "dept_name": '', //科别
  893. "reason": '', //原因
  894. "result_of_2_weeks": '' //2周内随访,随访结果
  895. },
  896. "process_opinion": '', //处理意见,
  897. "next_followup_date": null, //下次随访时间
  898. "followup_doctor": '', // 随访医生code
  899. "followup_doctor_name": '',// 随访医生name
  900. },
  901. // 2
  902. {
  903. "create_user": '',
  904. "create_user_name": '',
  905. "followup_date": null,//随访日期,
  906. "way": '',//随访方式:1-门诊,2-家庭 //整数
  907. "treate_month": '',//治疗月序
  908. "superviser": {
  909. "superviser_type": '',//督导人员类型:1-医生,2-家属,3-自服药,4-其他
  910. "superviser_code": '',//督导人员code
  911. "superviser_name": ''//督导人员name
  912. },
  913. "symptom": '',// string 症状及体征:0-没有症状,1-咳嗽咳痰,2-低热盗汗,3-咯血或血痰,4-胸痛消瘦,5-恶心纳差,6-头痛失眠,7-视物模糊,8-皮肤瘙痒、皮疹,9-耳鸣、听力下降
  914. "symptom_other_desc": '',//症状及体征其他描述
  915. "life_style": {
  916. "smoke": '', //生活方式-吸烟量
  917. "smoke_day":'',
  918. "drink": '', //生活方式-饮酒量
  919. "drink_day":''
  920. },
  921. "drug_use": {
  922. "chemotherapy": '',//用药情况-化疗方案,
  923. "method": '', //用药情况-用法:1-每日,2-间歇
  924. "dosage_form": '',// string 用药情况-药品剂型:1、固定剂量复合制剂,2-散装药,3-板式组合药,4-注射剂,
  925. "forgot_take_drug_times": '',//漏服药次数
  926. },
  927. "drug_bad_reaction": '', // 药物不良反应 1-无,2-有
  928. "drug_bad_reaction_detail": '', //药物不良反应描述
  929. "complication": '', // 并发症 1-无,2-有
  930. "complication_detail": '', //并發症描述,
  931. "trans_org": { //转诊
  932. "dept_code": '', //科别code
  933. "dept_name": '', //科别
  934. "reason": '', //原因
  935. "result_of_2_weeks": '' //2周内随访,随访结果
  936. },
  937. "process_opinion": '', //处理意见,
  938. "next_followup_date": null, //下次随访时间
  939. "followup_doctor": '', // 随访医生code
  940. "followup_doctor_name": '',// 随访医生name
  941. },
  942. // 3
  943. {
  944. "create_user": '',
  945. "create_user_name": '',
  946. "followup_date": null, //随访日期
  947. "way": '',//随访方式:1-门诊,2-家庭 //整数
  948. "treate_month": '',//治疗月序
  949. "superviser": {
  950. "superviser_type": '',//督导人员类型:1-医生,2-家属,3-自服药,4-其他
  951. "superviser_code": '',//督导人员code
  952. "superviser_name": ''//督导人员name
  953. },
  954. "symptom": '',// string 症状及体征:0-没有症状,1-咳嗽咳痰,2-低热盗汗,3-咯血或血痰,4-胸痛消瘦,5-恶心纳差,6-头痛失眠,7-视物模糊,8-皮肤瘙痒、皮疹,9-耳鸣、听力下降
  955. "symptom_other_desc": '',//症状及体征其他描述
  956. "life_style": {
  957. "smoke": '', //生活方式-吸烟量
  958. "smoke_day":'',
  959. "drink": '', //生活方式-饮酒量
  960. "drink_day":''
  961. },
  962. "drug_use": {
  963. "chemotherapy": '',//用药情况-化疗方案,
  964. "method": '', //用药情况-用法:1-每日,2-间歇
  965. "dosage_form": '',// string 用药情况-药品剂型:1、固定剂量复合制剂,2-散装药,3-板式组合药,4-注射剂,
  966. "forgot_take_drug_times": '',//漏服药次数
  967. },
  968. "drug_bad_reaction": '', // 药物不良反应 1-无,2-有
  969. "drug_bad_reaction_detail": '', //药物不良反应描述
  970. "complication": '', // 并发症 1-无,2-有
  971. "complication_detail": '', //并發症描述,
  972. "trans_org": { //转诊
  973. "dept_code": '', //科别code
  974. "dept_name": '', //科别
  975. "reason": '', //原因
  976. "result_of_2_weeks": '' //2周内随访,随访结果
  977. },
  978. "process_opinion": '', //处理意见,
  979. "next_followup_date": null, //下次随访时间
  980. "followup_doctor": '', // 随访医生code
  981. "followup_doctor_name": '',// 随访医生name
  982. },
  983. //4
  984. {
  985. "create_user": '',
  986. "create_user_name": '',
  987. "followup_date": null, //随访日期
  988. "way": '',//随访方式:1-门诊,2-家庭 //整数
  989. "treate_month": '',//治疗月序
  990. "superviser": {
  991. "superviser_type": '',//督导人员类型:1-医生,2-家属,3-自服药,4-其他
  992. "superviser_code": '',//督导人员code
  993. "superviser_name": ''//督导人员name
  994. },
  995. "symptom": '',// string 症状及体征:0-没有症状,1-咳嗽咳痰,2-低热盗汗,3-咯血或血痰,4-胸痛消瘦,5-恶心纳差,6-头痛失眠,7-视物模糊,8-皮肤瘙痒、皮疹,9-耳鸣、听力下降
  996. "symptom_other_desc": '',//症状及体征其他描述
  997. "life_style": {
  998. "smoke": '', //生活方式-吸烟量
  999. "smoke_day":'',
  1000. "drink": '', //生活方式-饮酒量
  1001. "drink_day":''
  1002. },
  1003. "drug_use": {
  1004. "chemotherapy": '',//用药情况-化疗方案,
  1005. "method": '', //用药情况-用法:1-每日,2-间歇
  1006. "dosage_form": '',// string 用药情况-药品剂型:1、固定剂量复合制剂,2-散装药,3-板式组合药,4-注射剂,
  1007. "forgot_take_drug_times": '',//漏服药次数
  1008. },
  1009. "drug_bad_reaction": '', // 药物不良反应 1-无,2-有
  1010. "drug_bad_reaction_detail": '', //药物不良反应描述
  1011. "complication": '', // 并发症 1-无,2-有
  1012. "complication_detail": '', //并發症描述,
  1013. "trans_org": { //转诊
  1014. "dept_code": '', //科别code
  1015. "dept_name": '', //科别
  1016. "reason": '', //原因
  1017. "result_of_2_weeks": '' //2周内随访,随访结果
  1018. },
  1019. "process_opinion": '', //处理意见,
  1020. "next_followup_date": null, //下次随访时间
  1021. "followup_doctor": '', // 随访医生code
  1022. "followup_doctor_name": '',// 随访医生name
  1023. }
  1024. ],
  1025. "management": {
  1026. "plan_followup_times": '', // 应访视患者次数,
  1027. "real_followup_times": '', // 实际访视次数
  1028. "plan_take_drug_times": '', // 患者应服药次数
  1029. "real_take_drug_times": '', // 实际服药次数
  1030. "take_drug_percent": '', // 患者服药率
  1031. "signature_doctor": '', // 评估医生code
  1032. "signature_doctor_name": '' // 评估医生签名
  1033. },
  1034. "stop_treate": { //停止治疗及原因
  1035. "date": null, // 停止日期
  1036. "reason": ''//停止原因
  1037. }
  1038. }
  1039. }
  1040. },
  1041. mounted: function () {
  1042. var docInfo = JSON.parse(window.localStorage.getItem("wlyyAgent"));
  1043. console.log(docInfo.uid)
  1044. console.log(docInfo.name)
  1045. this.getData()
  1046. },
  1047. computed:{
  1048. percent: function (){
  1049. var vm = this
  1050. if(vm.parient.management.real_take_drug_times && vm.parient.management.plan_take_drug_times){
  1051. return ((vm.parient.management.real_take_drug_times / vm.parient.management.plan_take_drug_times) * 100).toFixed(2)
  1052. }else{
  1053. return 0
  1054. }
  1055. }
  1056. },
  1057. methods: {
  1058. getData: function () {
  1059. var vm = this
  1060. // var vmP = this.postpartumVisitDetails Request['id']||'1'
  1061. fangshiAPI.getPhthisis({ followupId: Request['id']||'1' }).then(function (res) {
  1062. if(res.status==200 && !res.data[0]){
  1063. vm.getStatus(true)
  1064. }
  1065. if (res.status == 200 && res.data[0]) {
  1066. console.log("获取肺结核信息")
  1067. console.log(res)
  1068. vm.parient = res.data[0]
  1069. vm.dealData()
  1070. // vm.parient.data = vm.parient.data.map(function(ele){
  1071. // var item = ele
  1072. // item.superviser.superviser_type = superviser.superviser_type.toString()
  1073. // console.log(item.superviser.superviser_type)
  1074. // return item
  1075. // })
  1076. vm.getStatus(false)
  1077. } else {
  1078. // top.toastr.info(res.msg);
  1079. }
  1080. })
  1081. },
  1082. dealData: function () {
  1083. //转换用药数据
  1084. var vm=this
  1085. vm.yongyao1 = vm.parient.data[0].drug_use.dosage_form ? vm.parient.data[0].drug_use.dosage_form.split(',') : []
  1086. vm.yongyao2 = vm.parient.data[1].drug_use.dosage_form ? vm.parient.data[1].drug_use.dosage_form.split(',') : []
  1087. vm.yongyao3 = vm.parient.data[2].drug_use.dosage_form ? vm.parient.data[2].drug_use.dosage_form.split(',') : []
  1088. vm.yongyao4 = vm.parient.data[3].drug_use.dosage_form ? vm.parient.data[3].drug_use.dosage_form.split(',') : []
  1089. //转换体征信息
  1090. vm.tizheng = vm.parient.data[0].symptom ? vm.parient.data[0].symptom.split(',') : []
  1091. console.log(vm.parient)
  1092. for (var i = 0; i < 4; i++) {
  1093. vm.parient.data[i].superviser.superviser_type = vm.parient.data[i].superviser.superviser_type.toString()
  1094. vm.parient.data[i].way = vm.parient.data[i].way ? vm.parient.data[i].way.toString() : vm.parient.data[i].way
  1095. vm.parient.data[i].drug_use.method = vm.parient.data[i].drug_use ? vm.parient.data[i].drug_use.method.toString() : vm.parient.data[i].drug_use
  1096. vm.parient.data[i].drug_bad_reaction = vm.parient.data[i].drug_bad_reaction ? vm.parient.data[i].drug_bad_reaction.toString() : vm.parient.data[i].drug_bad_reaction
  1097. vm.parient.data[i].complication = vm.parient.data[i].complication ? vm.parient.data[i].complication.toString() : vm.parient.data[i].complication
  1098. vm.parient.stop_treate.reason = vm.parient.stop_treate.reason ? vm.parient.stop_treate.reason.toString() : vm.parient.stop_treate.reason
  1099. vm.$forceUpdate()
  1100. }
  1101. console.log("!!!!!!")
  1102. console.log(vm.parient)
  1103. },
  1104. getLastData: function (obj) {
  1105. var vm = this
  1106. fangshiAPI.getLastVisitRecord({ followupClass: vm.followupClass, patientCode: vm.patientCode }).then(function (res) {
  1107. if (res.status == 200) {
  1108. // 默认信息
  1109. vm.parient.patient.name = obj.name
  1110. vm.parient.management.signature_doctor_name = obj.doctorName
  1111. for (var i = 0; i < 4; i++) {
  1112. vm.parient.data[i].followup_doctor_name = obj.doctorName
  1113. }
  1114. // 居民存在上次历史记录,则代入默认信息
  1115. if (res.data.detail) {
  1116. if (res.data.detail[0]) {
  1117. vm.parient = res.data.detail[0]
  1118. vm.dealData()
  1119. }
  1120. }
  1121. //默认日期(不被历史记录覆盖)
  1122. for (var i=0; i<4 ;i++){
  1123. vm.parient.data[i].followup_date=new Date().format("yyyy-MM-dd")
  1124. }
  1125. for (var i=0; i<4 ;i++){
  1126. vm.parient.data[0].next_followup_date=null
  1127. }
  1128. }
  1129. })
  1130. },
  1131. // 完成随访状态修改
  1132. finish: function () {
  1133. var vm = this
  1134. fangshiAPI.updateFollowStatus({ followupId: this.followupId,isFlag:1 }).then(function (res) {
  1135. if (res.status == 200) {
  1136. vm.finishedStatus=true
  1137. vm.setEditBtn()
  1138. top.toastr.info("完成随访成功")
  1139. } else {
  1140. top.toastr.error(res.msg);
  1141. }
  1142. })
  1143. },
  1144. editData: function () {
  1145. var vm = this
  1146. var docInfo = JSON.parse(window.localStorage.getItem("wlyyAgent"));
  1147. console.log("保存")
  1148. for (var i = 0; i < 4; i++) {
  1149. vm.parient.data[i].create_user = docInfo.uid
  1150. vm.parient.data[i].create_user_name = docInfo.name
  1151. vm.parient.data[i].symptom = vm.tizheng ? vm.tizheng.join(',') : ''
  1152. // 并发症 1-无,2-有
  1153. vm.parient.data[i].drug_bad_reaction_detail = vm.parient.data[i].drug_bad_reaction==2?vm.parient.data[i].drug_bad_reaction_detail:''
  1154. vm.parient.data[i].complication_detail = vm.parient.data[i].complication==2?vm.parient.data[i].complication_detail:''
  1155. }
  1156. vm.parient.data[0].drug_use.dosage_form = vm.yongyao1 ? vm.yongyao1.join(',') : ''
  1157. vm.parient.data[1].drug_use.dosage_form = vm.yongyao2 ? vm.yongyao2.join(',') : ''
  1158. vm.parient.data[2].drug_use.dosage_form = vm.yongyao3 ? vm.yongyao3.join(',') : ''
  1159. vm.parient.data[3].drug_use.dosage_form = vm.yongyao4 ? vm.yongyao4.join(',') : ''
  1160. vm.parient.management.take_drug_percent = vm.percent
  1161. // if (!vm.parient.patient.name) {
  1162. // top.toastr.info("请输入患者姓名")
  1163. // return false
  1164. // }
  1165. // if (!vm.parient.number) {
  1166. // top.toastr.info("请输入编号")
  1167. // return false
  1168. // }
  1169. vm.parient.followup_id=Request['id']
  1170. fangshiAPI.savePhthisis({ jsonData: JSON.stringify(vm.parient) }).then(function (res) {
  1171. if (res.status == 200) {
  1172. vm.finishedStatus ? '' : vm.finish()
  1173. vm.finishedStatus ? top.toastr.info('保存成功') : ''
  1174. } else {
  1175. top.toastr.error(res.msg);
  1176. }
  1177. })
  1178. },
  1179. setEditBtn: function () {
  1180. var btn = document.getElementsByClassName('button')[0]
  1181. if (!this.finishedStatus) {
  1182. btn.innerHTML = '完成随访'
  1183. this.editable = true
  1184. return
  1185. }
  1186. if (this.isEditBtn == true) {
  1187. btn.innerHTML = '编辑'
  1188. this.editable = false
  1189. } else if (this.isEditBtn == false) {
  1190. btn.innerHTML = '保存'
  1191. this.editable = true
  1192. }
  1193. },
  1194. editBtn: function () {
  1195. if (this.finishedStatus) {
  1196. this.isEditBtn = !this.isEditBtn
  1197. }
  1198. this.setEditBtn()
  1199. this.isEditBtn || !this.finishedStatus?this.editData():''//保存数据
  1200. },
  1201. //获取当前随访状态信息 Request['id']||'1'
  1202. getStatus:function(getLast){
  1203. var vm = this
  1204. fangshiAPI.getFollowupInfo({ followupId: Request['id']||'1'}).then(function (res) {
  1205. if (res.status == 200) {
  1206. res.data.status != 1 ? vm.finishedStatus = false : vm.finishedStatus = true
  1207. vm.patientCode = res.data.patientCode
  1208. vm.followupClass = res.data.followupClass
  1209. var obj = {}
  1210. obj.name = res.data.patient.name
  1211. obj.doctorName = res.data.doctorName
  1212. // finishedStatus:true 随访完成,false 随访未完成
  1213. if(getLast){
  1214. vm.getLastData(obj)
  1215. }
  1216. vm.setEditBtn()
  1217. } else {
  1218. top.toastr.error(res.msg);
  1219. }
  1220. })
  1221. }
  1222. }
  1223. })
  1224. </script>
  1225. </body>
  1226. </html>