血透系统pad前端

ThorougDialog.vue 53KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396
  1. <template>
  2. <div>
  3. <div v-if="isShowDialog" class="Dialog">
  4. <div class="DialogTit">
  5. <span @click="close()" class="iconfont">&#xe6e9;</span>
  6. <h1 class="name">透后评估</h1>
  7. <span @click="commitInfo" class="success">完成</span>
  8. </div>
  9. <div class="DialogContent" id="dialogTop">
  10. <div @click="openPicker" class="item" v-if="isShow('实际治疗时长')">
  11. <h2 class="name">实际治疗时长</h2>
  12. <div class="content">
  13. <span class="text" style="width: 100px">{{timeValue}}</span>
  14. <span class="iconfont">&#xe6f9;</span>
  15. </div>
  16. </div>
  17. <div class="item" v-if="isShow('实际超滤量')">
  18. <label v-if="template_id == 6" class="name" for="sjcll">实际超滤量(ml)</label>
  19. <label v-else class="name" for="sjcll">实际超滤量(L)</label>
  20. <div class="content">
  21. <input type="tel" @focus="inputFocus" id="sjcll" v-model="formValue.actual_ultrafiltration"/>
  22. </div>
  23. </div>
  24. <div class="item" v-if="isShow('透后体重')">
  25. <label class="name" for="sjcll">透后体重(kg)</label>
  26. <div class="content">
  27. <input type="tel" @focus="inputFocus" id="sjcll" v-model="formValue.weight_after"/>
  28. </div>
  29. </div>
  30. <!--<div class=item" v-if="isShow('透后体重')">-->
  31. <!--<label class="name" for="thtz">透后体重(kg)</label>-->
  32. <!--<div class="content">-->
  33. <!--<input type="tel" @focus="inputFocus" id="thtz" v-model="formValue.weight_after"/>-->
  34. <!--</div>-->
  35. <!--</div>-->
  36. <div @click="showSubMenu('cruor')" class="item" ref="cruor" v-if="isShow('透析器凝血')">
  37. <label class="name" for="nx">透析器凝血</label>
  38. <div class="content">
  39. <span class="text" id="nx" style="width: 100px">{{formValue.cruor}}</span>
  40. <span class="iconfont">&#xe6f9;</span>
  41. </div>
  42. </div>
  43. <div class="item" v-if="isShow('拔针后穿刺点渗血')" @click="showSubMenu('puncture_point_oozing_blood')">
  44. <h2 class="name">拔针后穿刺点渗血</h2>
  45. <div class="content">
  46. <!--<span class="text" style="width: 50px;"><div style="padding-top: 0.08rem; height: 0.8rem;">-->
  47. <!--<van-switch v-model="puncture_point_oozing_blood_state" @change="puncturePointOozingBlood"/></div></span>-->
  48. <div class="content">
  49. <span v-if="formValue.puncture_point_oozing_blood == 0" class="text" style="width: 50px"></span>
  50. <span v-if="formValue.puncture_point_oozing_blood == 1" class="text" style="width: 50px">有</span>
  51. <span v-if="formValue.puncture_point_oozing_blood == 2" class="text" style="width: 50px">无</span>
  52. <span class="iconfont">&#xe6f9;</span>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="item" v-if="isShow('穿刺处血肿')" @click="showSubMenu('puncture_point_haematoma')">
  57. <h2 class="name">穿刺处血肿</h2>
  58. <div class="content">
  59. <span v-if="formValue.puncture_point_haematoma == 0" class="text" style="width: 50px"></span>
  60. <span v-if="formValue.puncture_point_haematoma == 1" class="text" style="width: 50px">有</span>
  61. <span v-if="formValue.puncture_point_haematoma == 2" class="text" style="width: 50px">无</span>
  62. <span class="iconfont">&#xe6f9;</span>
  63. </div>
  64. </div>
  65. <div @click="showSubMenu('internal_fistula_tremor_ac')" class="item" ref="internal_fistula_tremor_ac"
  66. v-if="isShow('压迫后内瘘震颤')">
  67. <label class="name" for="internal_fistula_tremor_ac">压迫后内瘘震颤</label>
  68. <div class="content">
  69. <span class="text" id="internal_fistula_tremor_ac" style="width: 50px">{{GetIFTAValue(formValue.internal_fistula_tremor_ac)}}</span>
  70. <span class="iconfont">&#xe6f9;</span>
  71. </div>
  72. </div>
  73. <div @click="showSubMenu('complication')" class="item" ref="complication" v-if="isShow('并发症')">
  74. <label class="name" for="bfz">并发症</label>
  75. <div class="content">
  76. <span class="text" id="bfz" style="width: 50px">{{formValue.complication}}</span>
  77. <span class="iconfont">&#xe6f9;</span>
  78. </div>
  79. </div>
  80. <div @click="showSubMenu('patient_gose')" class="item" ref="patient_gose" v-if="isShow('患者去向')">
  81. <label class="name" for="patient_gose">患者去向</label>
  82. <div class="content">
  83. <span class="text" id="patient_gose" style="width: 50px">{{GetPatientGoes(formValue.patient_gose)}}</span>
  84. <span class="iconfont">&#xe6f9;</span>
  85. </div>
  86. </div>
  87. <div class="item" v-if="formValue.patient_gose==3&&isShow('科室')">
  88. <label class="name" for="inpatient_department">科室</label>
  89. <div class="content">
  90. <input type="text" @focus="inputFocus" id="inpatient_department" v-model="formValue.inpatient_department"/>
  91. </div>
  92. </div>
  93. <div @click="showSubMenu('observation_content')" class="item" ref="observation_content"
  94. v-if="formValue.patient_gose==3&&isShow('交待病房护士/患者/陪人观察内容')">
  95. <label class="name" for="observation_content">交待病房护士/患者/陪人观察内容</label>
  96. <div class="content">
  97. <span class="text" id="observation_content" style="width: 50px">{{formValue.observation_content}}</span>
  98. <span class="iconfont">&#xe6f9;</span>
  99. </div>
  100. </div>
  101. <div class="item" v-if="formValue.patient_gose==3&&isShow('其他观察内容')">
  102. <label class="name" for="observation_content_other">其他观察内容</label>
  103. <div class="content">
  104. <input type="text" @focus="inputFocus" id="observation_content_other"
  105. v-model="formValue.observation_content_other"/>
  106. </div>
  107. </div>
  108. <div class="line"></div>
  109. <!--<div class="item">-->
  110. <!--<label class="name" for="sjzhl">实际置换量(L)</label>-->
  111. <!--<div class="content">-->
  112. <!--<input type="tel" @focus="inputFocus" id="sjzhl" v-model="formValue.actual_displacement"/>-->
  113. <!--&lt;!&ndash;<span class="text">HD</span>&ndash;&gt;-->
  114. <!--&lt;!&ndash;<span class="iconfont">&#xe6f9;</span>&ndash;&gt;-->
  115. <!--</div>-->
  116. <!--</div>-->
  117. <div class="item" v-if="isShow('体重减少')">
  118. <label class="name" for="tzjs">体重减少(kg)</label>
  119. <div class="content">
  120. <input type="tel" @focus="inputFocus" id="tzjs" v-model="formValue.weight_loss"/>
  121. <!--<span class="text">1</span>-->
  122. <!--<span class="iconfont">&#xe6f9;</span>-->
  123. </div>
  124. </div>
  125. <div class="item" v-if="isShow('体温')">
  126. <label class="name" for="tw">体温(℃)</label>
  127. <div class="content">
  128. <input type="tel" @focus="inputFocus" id="tw" v-model="formValue.temperature"/>
  129. <!--<span class="text">HD</span>-->
  130. <!--<span class="iconfont">&#xe6f9;</span>-->
  131. </div>
  132. </div>
  133. <div class="item" v-if="isShow('收缩压')">
  134. <label class="name" for="ssy">收缩压(mmHg)</label>
  135. <div class="content">
  136. <input type="tel" @focus="inputFocus" id="ssy" v-model="formValue.systolic_blood_pressure"/>
  137. <!--<span class="text">HD</span>-->
  138. <!--<span class="iconfont">&#xe6f9;</span>-->
  139. </div>
  140. </div>
  141. <div class="item" v-if="isShow('舒张压')">
  142. <label class="name" for="szy">舒张压(mmHg)</label>
  143. <div class="content">
  144. <input type="tel" @focus="inputFocus" id="szy" v-model="formValue.diastolic_blood_pressure"/>
  145. <!--<span class="text">HD</span>-->
  146. <!--<span class="iconfont">&#xe6f9;</span>-->
  147. </div>
  148. </div>
  149. <div class="item" v-if="isShow('呼吸频率')">
  150. <label class="name" for="ml">呼吸频率(次/min)</label>
  151. <div class="content">
  152. <input type="tel" @focus="inputFocus" id="ml" v-model="formValue.breathing_rate"/>
  153. <!--<span class="text">HD</span>-->
  154. <!--<span class="iconfont">&#xe6f9;</span>-->
  155. </div>
  156. </div>
  157. <div class="item" v-if="isShow('脉搏')">
  158. <label class="name" for="ml">脉搏(次/分)</label>
  159. <div class="content">
  160. <input type="tel" @focus="inputFocus" id="ml" v-model="formValue.pulse_frequency"/>
  161. <!--<span class="text">HD</span>-->
  162. <!--<span class="iconfont">&#xe6f9;</span>-->
  163. </div>
  164. </div>
  165. <div @click="showSubMenu('symptom_after_dialysis')" class="item" ref="symptom_after_dialysis"
  166. v-if="isShow('透后症状')">
  167. <label class="name" for="thzz">透后症状</label>
  168. <div class="content">
  169. <span class="text" id="thzz" style="width: 100px">{{formValue.symptom_after_dialysis}}</span>
  170. <span class="iconfont">&#xe6f9;</span>
  171. </div>
  172. </div>
  173. <div class="item" ref="dialysis_intakes" v-if="isShow('透析中入量')">
  174. <label class="name" for="txz">透析中入量</label>
  175. <div class="content">
  176. <input type="tel" @focus="inputFocus" id="txz" v-model="formValue.dialysis_intakes"/>
  177. <!--<span class="text" style="width: 100px">{{formValue.dialysis_intakes}}</span>-->
  178. <!--<span class="iconfont">&#xe6f9;</span>-->
  179. </div>
  180. </div>
  181. <div @click="showSubMenu('dialysis_intakes_unit')" class="item" ref="dialysis_intakes_unit"
  182. v-if="isShow('透析中入量单位')">
  183. <label class="name" for="txz">透析中入量单位</label>
  184. <div class="content">
  185. <span class="text" id="dg">{{getUnit(formValue.dialysis_intakes_unit)}}</span>
  186. <span class="iconfont">&#xe6f9;</span>
  187. </div>
  188. </div>
  189. <div @click="showSubMenu('internal_fistula')" class="item" ref="internal_fistula" v-if="isShow('内瘘')">
  190. <label class="name" for="dg">内瘘</label>
  191. <div class="content">
  192. <span class="text" id="dg">{{formValue.internal_fistula}}</span>
  193. <span class="iconfont">&#xe6f9;</span>
  194. </div>
  195. </div>
  196. <div class="line"></div>
  197. <div @click="showSubMenu('blood_access_part')" class="item" ref="blood_access_part" v-if="isShow('血管通路部位')">
  198. <label class="name" for="xgtl">血管通路部位</label>
  199. <div class="content">
  200. <span class="text" id="xgtl">{{QueryPartById(formValue.blood_access_part_id)}}</span>
  201. <span class="iconfont">&#xe6f9;</span>
  202. </div>
  203. </div>
  204. <div @click="showSubMenu('blood_access_opera')" class="item" ref="blood_access_opera" v-if="isShow('血管通路操作')">
  205. <label class="name" for="xgtlcz">血管通路操作</label>
  206. <div class="content">
  207. <span class="text" id="xgtlcz">{{QueryOperaById(formValue.blood_access_part_opera_id)}}</span>
  208. <span class="iconfont">&#xe6f9;</span>
  209. </div>
  210. </div>
  211. <div class="line"></div>
  212. <div @click="showSubMenu('catheter')" class="item" ref="catheter" v-if="isShow('导管')">
  213. <label class="name" for="dg">导管</label>
  214. <div class="content">
  215. <span class="text" id="dg">{{formValue.catheter}}</span>
  216. <span class="iconfont">&#xe6f9;</span>
  217. </div>
  218. </div>
  219. <div class="line"></div>
  220. <div @click="showSubMenu('dialysis_process')" class="item" ref="dialysis_process" v-if="isShow('透析过程')">
  221. <label class="name" for="dg">透析过程</label>
  222. <div class="content">
  223. <span class="text" id="dg">{{getDialysisProcess(formValue.dialysis_process)}}</span>
  224. <span class="iconfont">&#xe6f9;</span>
  225. </div>
  226. </div>
  227. <div class="item" ref="in_advance_minute" v-if="formValue.dialysis_process == 2 && isShow('透析过程提前时间') ">
  228. <label class="name" for="dg">透析过程提前时间(min)</label>
  229. <div class="content">
  230. <input type="tel" @focus="inputFocus" id="txz" v-model="formValue.in_advance_minute"/>
  231. </div>
  232. </div>
  233. <div @click="showSubMenu('in_advance_reason')" class="item" ref="in_advance_reason"
  234. v-if="formValue.dialysis_process == 2 && isShow('透析过程提前原因')">
  235. <label class="name" for="dg">透析过程提前原因</label>
  236. <div class="content">
  237. <span class="text" id="dg">{{formValue.in_advance_reason}}</span>
  238. <span class="iconfont">&#xe6f9;</span>
  239. </div>
  240. </div>
  241. <div class="item" ref="in_advance_reason_other" v-if="formValue.dialysis_process == 2 && isShow('透析过程提前其他原因')">
  242. <label class="name" for="dg">透析过程提前其他原因</label>
  243. <div class="content">
  244. <input type="tel" @focus="inputFocus" id="txz" v-model="formValue.in_advance_reason_other"/>
  245. </div>
  246. </div>
  247. <div class="item" ref="hemostasis_minute" v-if="isShow('内瘘管拔针后压迫止血时间')">
  248. <label class="name" for="dg">内瘘管拔针后压迫止血时间(min)</label>
  249. <div class="content">
  250. <input type="tel" @focus="inputFocus" id="txz" v-model="formValue.hemostasis_minute"/>
  251. </div>
  252. </div>
  253. <div @click="showSubMenu('hemostasis_opera')" class="item" ref="hemostasis_opera" v-if="isShow('内瘘管拔针后压迫止血操作')">
  254. <label class="name" for="dg">内瘘管拔针后压迫止血操作</label>
  255. <div class="content">
  256. <span class="text" id="dg">{{getOpera(formValue.hemostasis_opera)}}</span>
  257. <span class="iconfont">&#xe6f9;</span>
  258. </div>
  259. </div>
  260. <div @click="showSubMenu('tremor_noise')" class="item" ref="tremor_noise" v-if="isShow('内瘘震颤和血管杂音')">
  261. <label class="name" for="dg">内瘘震颤和血管杂音</label>
  262. <div class="content">
  263. <span class="text" id="dg">{{getTremorNoise(formValue.tremor_noise)}}</span>
  264. <span class="iconfont">&#xe6f9;</span>
  265. </div>
  266. </div>
  267. <div @click="showSubMenu('disequilibrium_syndrome')" class="item" ref="disequilibrium_syndrome"
  268. v-if="isShow('失衡综合症')">
  269. <label class="name" for="dg">失衡综合症</label>
  270. <div class="content">
  271. <span class="text" id="dg">{{getDisequilibriumSyndrome(formValue.disequilibrium_syndrome)}}</span>
  272. <span class="iconfont">&#xe6f9;</span>
  273. </div>
  274. </div>
  275. <div @click="showSubMenu('disequilibrium_syndrome_option')" class="item" ref="disequilibrium_syndrome_option"
  276. v-if="formValue.disequilibrium_syndrome == 2 && isShow('失衡综合症症状')">
  277. <label class="name" for="dg">失衡综合症症状</label>
  278. <div class="content">
  279. <span class="text" id="dg">{{formValue.disequilibrium_syndrome_option}}</span>
  280. <span class="iconfont">&#xe6f9;</span>
  281. </div>
  282. </div>
  283. <div @click="showSubMenu('arterial_tube')" class="item" ref="arterial_tube" v-if="isShow('动脉管道')">
  284. <label class="name" for="dg">动脉管道</label>
  285. <div class="content">
  286. <span class="text" id="dg">{{getArterialTubeName(formValue.arterial_tube)}}</span>
  287. <span class="iconfont">&#xe6f9;</span>
  288. </div>
  289. </div>
  290. <div @click="showSubMenu('intravenous_tube')" class="item" ref="intravenous_tube" v-if="isShow('静脉管道')">
  291. <label class="name" for="dg">静脉管道</label>
  292. <div class="content">
  293. <span class="text" id="dg">{{getIntravenousTubeName(formValue.intravenous_tube)}}</span>
  294. <span class="iconfont">&#xe6f9;</span>
  295. </div>
  296. </div>
  297. <div @click="showSubMenu('dialyzer')" class="item" ref="dialyzer" v-if="isShow('透析器')">
  298. <label class="name" for="dg">透析器</label>
  299. <div class="content">
  300. <span class="text" id="dg">{{getDialyzer(formValue.dialyzer)}}</span>
  301. <span class="iconfont">&#xe6f9;</span>
  302. </div>
  303. </div>
  304. <div class="item" v-if="isShow('透析期间进食')" @click="showSubMenu('is_eat')" ref="is_eat">
  305. <h2 class="name">透析期间进食</h2>
  306. <div class="content">
  307. <span v-if="formValue.is_eat == 0" class="text" style="width: 50px"></span>
  308. <span v-if="formValue.is_eat == 1" class="text" style="width: 50px">有</span>
  309. <span v-if="formValue.is_eat == 2" class="text" style="width: 50px">无</span>
  310. <span class="iconfont">&#xe6f9;</span>
  311. </div>
  312. </div>
  313. <!-- <div class="line"></div> -->
  314. <div>
  315. <div class="item">
  316. <label class="name" for="bz">备注</label>
  317. <div class="content">
  318. <span class="text"></span>
  319. </div>
  320. </div>
  321. <textarea @focus="lastInputFocus" @blur="lastInputBlur" class="textarea" id="bz" placeholder="请输入内容"
  322. v-model="formValue.remark"></textarea>
  323. </div>
  324. </div>
  325. </div>
  326. <!--<two-menu title="二级菜单" v-show="true" ></two-menu>-->
  327. <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm"
  328. v-on:menu-empty="menuEmpty"
  329. :propsForm="propForm"></check-box-sub-menu>
  330. <mt-datetime-picker
  331. ref="picker"
  332. type="time"
  333. hourFormat="{value}小时"
  334. minuteFormat="{value}分钟"
  335. @confirm="handleTimeConfirm"
  336. v-model="time">
  337. </mt-datetime-picker>
  338. </div>
  339. </template>
  340. <script>
  341. // import TwoMenu from "./TwoMenu";
  342. import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
  343. import {commitAssessmentAfterDislysis} from '@/api/dialysis'
  344. import {Toast} from 'vant'
  345. import {getDataConfig} from '@/utils/data'
  346. export default {
  347. name: 'PrescriptionDialog',
  348. props: {
  349. record: {
  350. type: Object,
  351. },
  352. last_record: {
  353. type: Object,
  354. },
  355. patient_prop: {
  356. type: Object,
  357. }
  358. },
  359. data () {
  360. return {
  361. puncture_point_oozing_blood_state: false,
  362. puncture_point_haematoma_state: false,
  363. eat_state: false,
  364. template_id: 0,
  365. isShowDialog: true,
  366. time: '00:00',
  367. puncture_point_oozing_bloods: [
  368. {id: 1, name: '有'},
  369. {id: 2, name: '无'},
  370. ],
  371. puncture_point_haematomas: [
  372. {id: 1, name: '有'},
  373. {id: 2, name: '无'},
  374. ],
  375. eat: [
  376. {id: 1, name: '有'},
  377. {id: 2, name: '无'},
  378. ],
  379. unit: [
  380. {id: 1, name: 'g'},
  381. {id: 2, name: 'ml'},
  382. ],
  383. //sub menu prop
  384. visibility: false,
  385. propForm: {
  386. title: '',
  387. list: [],
  388. optionList: [],
  389. isMultiple: 2,
  390. result: [], //选中的值
  391. type: 1, //用来区分不同子菜单,方便对返回值进行赋值
  392. selectId: 0,
  393. isHasOther: 1,
  394. },
  395. timeValue: '',
  396. formValue: {
  397. weight_after: '',
  398. weight_loss: '',
  399. temperature: '',
  400. systolic_blood_pressure: '',
  401. diastolic_blood_pressure: '',
  402. pulse_frequency: '',
  403. cruor: '',
  404. symptom_after_dialysis: '',
  405. dialysis_intakes: '',
  406. catheter: '',
  407. complication: '',
  408. puncture_point_oozing_blood: '',
  409. puncture_point_haematoma: '',
  410. remark: '',
  411. blood_access_part_id: 0,
  412. blood_access_part_opera_id: 0,
  413. actual_ultrafiltration: '',
  414. actual_displacement: '',
  415. actual_treatment_hour: '',
  416. actual_treatment_minute: '',
  417. internal_fistula: '',
  418. internal_fistula_tremor_ac: '',
  419. patient_gose: '',
  420. inpatient_department: '',
  421. observation_content: '',
  422. observation_content_other: '',
  423. dialysis_process: '',
  424. in_advance_minute: '',
  425. in_advance_reason: '',
  426. in_advance_reason_other: '',
  427. hemostasis_minute: '',
  428. hemostasis_opera: '',
  429. tremor_noise: '',
  430. disequilibrium_syndrome: '',
  431. disequilibrium_syndrome_option: '',
  432. arterial_tube: '',
  433. intravenous_tube: '',
  434. dialyzer: '',
  435. is_eat: '',
  436. breathing_rate: '',
  437. dialysis_intakes_unit: 0,
  438. },
  439. record_date: ''
  440. }
  441. },
  442. methods: {
  443. isShow (name) {
  444. var filedList = this.$store.getters.user.fileds
  445. for (let i = 0; i < filedList.length; i++) {
  446. if (filedList[i].module == 5 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  447. return true
  448. }
  449. }
  450. return false
  451. },
  452. puncturePointOozingBlood: function (is_select) {
  453. this.formValue.puncture_point_oozing_blood = is_select == true ? 1 : 2
  454. },
  455. puncturePointHaematoma: function (is_select) {
  456. this.formValue.puncture_point_haematoma = is_select == true ? 1 : 2
  457. },
  458. GetIFTAValue (id) {
  459. let name = ''
  460. let internal_fistula_tremor_ac = this.$store.getters.internal_fistula_tremor_ac
  461. let ifl = internal_fistula_tremor_ac.length
  462. for (let index = 0; index < ifl; index++) {
  463. if (internal_fistula_tremor_ac[index].id == id) {
  464. name = internal_fistula_tremor_ac[index].name
  465. break
  466. }
  467. }
  468. return name
  469. },
  470. GetPatientGoes (id) {
  471. let name = ''
  472. let patient_gose = this.$store.getters.patient_gose
  473. let ifl = patient_gose.length
  474. for (let index = 0; index < ifl; index++) {
  475. if (patient_gose[index].id == id) {
  476. name = patient_gose[index].name
  477. break
  478. }
  479. }
  480. return name
  481. },
  482. inputFocus: function (event) {
  483. var input = event.target
  484. setTimeout(function () {
  485. input.scrollIntoView()
  486. }, 0)
  487. if (input.setSelectionRange) {
  488. setTimeout(function () {
  489. input.setSelectionRange(0, input.value.length)
  490. }, 0)
  491. } else if (input.createTextRange) {
  492. var rng = input.createTextRange()
  493. rng.move('character', input.value.length)
  494. rng.select()
  495. }
  496. },
  497. lastInputFocus: function (event) {
  498. var input = event.target
  499. setTimeout(function () {
  500. input.style.marginBottom = '2rem'
  501. input.parentNode.scrollIntoView()
  502. }, 0)
  503. },
  504. lastInputBlur: function (event) {
  505. var input = event.target
  506. setTimeout(function () {
  507. input.style.marginBottom = ''
  508. }, 0)
  509. },
  510. showSubMenu: function (val) {
  511. switch (val) {
  512. case 'cruor':
  513. this.propForm.type = 1
  514. this.isShowDialog = false
  515. this.propForm.title = '凝血'
  516. this.propForm.isHasOther = 2
  517. this.visibility = true
  518. this.propForm.list = []
  519. this.propForm.list = getDataConfig('hemodialysis', 'cruor')
  520. this.propForm.optionList = []
  521. this.propForm.isMultiple = 2
  522. if (this.formValue.cruor != undefined || this.formValue.cruor != null) {
  523. if (this.formValue.cruor.length > 0) {
  524. this.propForm.result = this.formValue.cruor.split(',')
  525. } else {
  526. this.propForm.result = []
  527. }
  528. } else {
  529. this.propForm.result = []
  530. }
  531. this.propForm.click_ref = 'cruor'
  532. break
  533. case 'symptom_after_dialysis':
  534. this.propForm.type = 2
  535. this.isShowDialog = false
  536. this.propForm.title = '透后症状'
  537. this.propForm.isHasOther = 2
  538. this.visibility = true
  539. this.propForm.list = []
  540. this.propForm.list = getDataConfig('hemodialysis', 'symptoms')
  541. this.propForm.optionList = []
  542. this.propForm.isMultiple = 2
  543. if (this.formValue.symptom_after_dialysis != undefined || this.formValue.symptom_after_dialysis != null) {
  544. if (this.formValue.symptom_after_dialysis.length > 0) {
  545. this.propForm.result = this.formValue.symptom_after_dialysis.split(',')
  546. } else {
  547. this.propForm.result = []
  548. }
  549. } else {
  550. this.propForm.result = []
  551. }
  552. this.propForm.click_ref = 'symptom_after_dialysis'
  553. break
  554. case 'catheter':
  555. this.propForm.type = 3
  556. this.isShowDialog = false
  557. this.propForm.title = '导管'
  558. this.visibility = true
  559. this.propForm.isHasOther = 2
  560. this.propForm.list = []
  561. this.propForm.list = getDataConfig('hemodialysis', 'catheter')
  562. this.propForm.optionList = []
  563. this.propForm.isMultiple = 2
  564. if (this.formValue.catheter != undefined || this.formValue.catheter != null) {
  565. if (this.formValue.catheter.length > 0) {
  566. this.propForm.result = this.formValue.catheter.split(',')
  567. } else {
  568. this.propForm.result = []
  569. }
  570. } else {
  571. this.propForm.result = []
  572. }
  573. this.propForm.click_ref = 'catheter'
  574. break
  575. case 'complication':
  576. this.propForm.type = 4
  577. this.isShowDialog = false
  578. this.propForm.title = '并发症'
  579. this.propForm.isHasOther = 2
  580. this.visibility = true
  581. this.propForm.list = []
  582. this.propForm.list = getDataConfig('hemodialysis', 'complication')
  583. this.propForm.optionList = []
  584. this.propForm.isMultiple = 2
  585. // this.propForm.result = this.formValue.complication.split(",")
  586. if (this.formValue.complication != undefined || this.formValue.complication != null) {
  587. if (this.formValue.complication.length > 0) {
  588. this.propForm.result = this.formValue.complication.split(',')
  589. } else {
  590. this.propForm.result = []
  591. }
  592. } else {
  593. this.propForm.result = []
  594. }
  595. this.propForm.click_ref = 'complication'
  596. break
  597. case 'blood_access_part':
  598. this.propForm.type = 5
  599. this.isShowDialog = false
  600. this.propForm.title = '血管通路部位'
  601. this.propForm.isHasOther = 2
  602. this.visibility = true
  603. this.propForm.list = []
  604. this.propForm.optionList = this.$store.getters.vascular_access
  605. this.propForm.isMultiple = 1
  606. this.propForm.selectId = this.formValue.blood_access_part_id
  607. this.propForm.click_ref = 'blood_access_part'
  608. break
  609. case 'blood_access_opera':
  610. this.propForm.type = 6
  611. this.isShowDialog = false
  612. this.propForm.title = '血管通路操作'
  613. this.propForm.isHasOther = 2
  614. this.visibility = true
  615. this.propForm.list = []
  616. this.propForm.optionList = this.$store.getters.vascular_access_desc
  617. this.propForm.isMultiple = 1
  618. this.propForm.selectId = this.formValue.blood_access_part_opera_id
  619. this.propForm.click_ref = 'blood_access_opera'
  620. break
  621. case 'internal_fistula':
  622. this.propForm.type = 7
  623. this.isShowDialog = false
  624. this.propForm.title = '内瘘'
  625. this.visibility = true
  626. this.propForm.list = []
  627. this.propForm.list = getDataConfig('hemodialysis', 'internal_fistula')
  628. this.propForm.optionList = []
  629. this.propForm.isMultiple = 2
  630. this.propForm.isHasOther = 2
  631. if (this.formValue.internal_fistula != undefined || this.formValue.internal_fistula != null) {
  632. if (this.formValue.internal_fistula.length > 0) {
  633. this.propForm.result = this.formValue.internal_fistula.split(',')
  634. } else {
  635. this.propForm.result = []
  636. }
  637. } else {
  638. this.propForm.result = []
  639. }
  640. this.propForm.click_ref = 'internal_fistula'
  641. break
  642. case 'internal_fistula_tremor_ac':
  643. this.propForm.type = 8
  644. this.isShowDialog = false
  645. this.propForm.title = '压迫后内瘘震颤'
  646. this.visibility = true
  647. this.propForm.list = []
  648. this.propForm.isHasOther = 2
  649. this.propForm.optionList = this.$store.getters.internal_fistula_tremor_ac
  650. this.propForm.isMultiple = 1
  651. this.propForm.selectId = this.formValue.internal_fistula_tremor_ac
  652. this.propForm.click_ref = 'internal_fistula_tremor_ac'
  653. break
  654. case 'patient_gose':
  655. this.propForm.type = 9
  656. this.isShowDialog = false
  657. this.propForm.title = '患者去向'
  658. this.visibility = true
  659. this.propForm.list = []
  660. this.propForm.isHasOther = 2
  661. this.propForm.optionList = this.$store.getters.patient_gose
  662. this.propForm.isMultiple = 1
  663. this.propForm.selectId = this.formValue.patient_gose
  664. this.propForm.click_ref = 'patient_gose'
  665. break
  666. case 'observation_content':
  667. this.propForm.type = 10
  668. this.isShowDialog = false
  669. this.propForm.title = '交待病房护士/患者/陪人观察内容'
  670. this.visibility = true
  671. this.propForm.isHasOther = 2
  672. this.propForm.list = []
  673. this.propForm.list = this.$store.getters.observation_content
  674. this.propForm.optionList = []
  675. this.propForm.isMultiple = 2
  676. if (this.formValue.observation_content != undefined || this.formValue.observation_content != null) {
  677. if (this.formValue.observation_content.length > 0) {
  678. this.propForm.result = this.formValue.observation_content.split(',')
  679. } else {
  680. this.propForm.result = []
  681. }
  682. } else {
  683. this.propForm.result = []
  684. }
  685. this.propForm.click_ref = 'observation_content'
  686. break
  687. case 'dialysis_process':
  688. this.propForm.type = 11
  689. this.isShowDialog = false
  690. this.propForm.title = '透析过程'
  691. this.visibility = true
  692. this.propForm.isHasOther = 2
  693. this.propForm.list = []
  694. this.propForm.optionList = this.$store.getters.dialysis_process
  695. this.propForm.isMultiple = 1
  696. this.propForm.selectId = this.formValue.dialysis_process
  697. this.propForm.click_ref = 'dialysis_process'
  698. break
  699. case 'in_advance_reason':
  700. this.propForm.type = 12
  701. this.isShowDialog = false
  702. this.propForm.title = '透析过程提前原因'
  703. this.visibility = true
  704. this.propForm.isHasOther = 2
  705. this.propForm.list = []
  706. this.propForm.list = this.$store.getters.in_advance_reason
  707. this.propForm.optionList = []
  708. this.propForm.isMultiple = 2
  709. if (this.formValue.in_advance_reason != undefined || this.formValue.in_advance_reason != null) {
  710. if (this.formValue.in_advance_reason.length > 0) {
  711. this.propForm.result = this.formValue.in_advance_reason.split(',')
  712. } else {
  713. this.propForm.result = []
  714. }
  715. } else {
  716. this.propForm.result = []
  717. }
  718. this.propForm.click_ref = 'in_advance_reason'
  719. break
  720. case 'hemostasis_opera':
  721. this.propForm.type = 13
  722. this.isShowDialog = false
  723. this.propForm.title = '内瘘管拔针后压迫止血操作'
  724. this.visibility = true
  725. this.propForm.isHasOther = 2
  726. this.propForm.list = []
  727. this.propForm.optionList = this.$store.getters.hemostasis_opera
  728. this.propForm.isMultiple = 1
  729. this.propForm.selectId = this.formValue.hemostasis_opera
  730. this.propForm.click_ref = 'hemostasis_opera'
  731. break
  732. case 'tremor_noise':
  733. this.propForm.type = 14
  734. this.isShowDialog = false
  735. this.propForm.title = '内瘘震颤和血管杂音'
  736. this.visibility = true
  737. this.propForm.isHasOther = 2
  738. this.propForm.list = []
  739. this.propForm.optionList = this.$store.getters.tremor_noise
  740. this.propForm.isMultiple = 1
  741. this.propForm.selectId = this.formValue.tremor_noise
  742. this.propForm.click_ref = 'tremor_noise'
  743. break
  744. case 'disequilibrium_syndrome':
  745. this.propForm.type = 15
  746. this.isShowDialog = false
  747. this.propForm.title = '失衡综合症'
  748. this.visibility = true
  749. this.propForm.list = []
  750. this.propForm.isHasOther = 2
  751. this.propForm.optionList = this.$store.getters.disequilibrium_syndrome
  752. this.propForm.isMultiple = 1
  753. this.propForm.selectId = this.formValue.disequilibrium_syndrome
  754. this.propForm.click_ref = 'disequilibrium_syndrome'
  755. break
  756. case 'disequilibrium_syndrome_option':
  757. this.propForm.type = 16
  758. this.isShowDialog = false
  759. this.propForm.title = '失衡综合症情况'
  760. this.visibility = true
  761. this.propForm.isHasOther = 2
  762. this.propForm.list = []
  763. this.propForm.list = this.$store.getters.disequilibrium_syndrome_option
  764. this.propForm.optionList = []
  765. this.propForm.isMultiple = 2
  766. if (this.formValue.disequilibrium_syndrome_option != undefined || this.formValue.disequilibrium_syndrome_option != null) {
  767. if (this.formValue.disequilibrium_syndrome_option.length > 0) {
  768. this.propForm.result = this.formValue.disequilibrium_syndrome_option.split(',')
  769. } else {
  770. this.propForm.result = []
  771. }
  772. } else {
  773. this.propForm.result = []
  774. }
  775. this.propForm.click_ref = 'disequilibrium_syndrome_option'
  776. break
  777. case 'arterial_tube':
  778. this.propForm.type = 17
  779. this.isShowDialog = false
  780. this.propForm.title = '动脉管道'
  781. this.propForm.isHasOther = 2
  782. this.propForm.list = []
  783. this.visibility = true
  784. this.propForm.list = []
  785. this.propForm.optionList = this.$store.getters.arterial_tube
  786. this.propForm.isMultiple = 1
  787. this.propForm.selectId = this.formValue.arterial_tube
  788. this.propForm.click_ref = 'arterial_tube'
  789. break
  790. case 'intravenous_tube':
  791. this.propForm.type = 18
  792. this.isShowDialog = false
  793. this.propForm.title = '静脉管道'
  794. this.visibility = true
  795. this.propForm.list = []
  796. this.propForm.isHasOther = 2
  797. this.propForm.optionList = this.$store.getters.intravenous_tube
  798. this.propForm.isMultiple = 1
  799. this.propForm.selectId = this.formValue.intravenous_tube
  800. this.propForm.click_ref = 'intravenous_tube'
  801. break
  802. case 'dialyzer':
  803. this.propForm.type = 19
  804. this.isShowDialog = false
  805. this.propForm.title = '透析器'
  806. this.visibility = true
  807. this.propForm.isHasOther = 2
  808. this.propForm.list = []
  809. this.propForm.optionList = this.$store.getters.dialyzer
  810. this.propForm.isMultiple = 1
  811. this.propForm.selectId = this.formValue.dialyzer
  812. this.propForm.click_ref = 'dialyzer'
  813. break
  814. case 'puncture_point_oozing_blood':
  815. this.propForm.type = 20
  816. this.isShowDialog = false
  817. this.propForm.title = '拔针后穿刺点渗血'
  818. this.visibility = true
  819. this.propForm.isHasOther = 2
  820. this.propForm.list = []
  821. this.propForm.optionList = this.puncture_point_oozing_bloods
  822. this.propForm.isMultiple = 1
  823. this.propForm.selectId = this.formValue.puncture_point_oozing_blood
  824. this.propForm.click_ref = 'puncture_point_oozing_blood'
  825. break
  826. case 'puncture_point_haematoma':
  827. this.propForm.type = 21
  828. this.isShowDialog = false
  829. this.propForm.title = '穿刺处血肿'
  830. this.visibility = true
  831. this.propForm.isHasOther = 2
  832. this.propForm.list = []
  833. this.propForm.optionList = this.puncture_point_haematomas
  834. this.propForm.isMultiple = 1
  835. this.propForm.selectId = this.formValue.puncture_point_haematoma
  836. this.propForm.click_ref = 'puncture_point_haematoma'
  837. break
  838. case 'is_eat':
  839. this.propForm.type = 22
  840. this.isShowDialog = false
  841. this.propForm.title = '透析期间进食'
  842. this.visibility = true
  843. this.propForm.isHasOther = 2
  844. this.propForm.list = []
  845. this.propForm.optionList = this.eat
  846. this.propForm.isMultiple = 1
  847. this.propForm.selectId = this.formValue.is_eat
  848. this.propForm.click_ref = 'is_eat'
  849. break
  850. case 'dialysis_intakes_unit':
  851. this.propForm.type = 23
  852. this.isShowDialog = false
  853. this.propForm.title = '透析中入量单位'
  854. this.visibility = true
  855. this.propForm.isHasOther = 2
  856. this.propForm.list = []
  857. this.propForm.optionList = this.unit
  858. this.propForm.isMultiple = 1
  859. this.propForm.selectId = this.formValue.dialysis_intakes_unit
  860. this.propForm.click_ref = 'dialysis_intakes_unit'
  861. break
  862. }
  863. }, menuCancle: function () {
  864. this.visibility = false
  865. this.isShowDialog = true
  866. this.$nextTick(() => {
  867. if (this.$refs[this.propForm.click_ref] != undefined && this.$refs[this.propForm.click_ref] != null) {
  868. this.$refs[this.propForm.click_ref].scrollIntoView()
  869. }
  870. })
  871. }, menuComfirm: function (val) {
  872. this.visibility = false
  873. this.isShowDialog = true
  874. this.$nextTick(() => {
  875. if (this.$refs[this.propForm.click_ref] != undefined && this.$refs[this.propForm.click_ref] != null) {
  876. this.$refs[this.propForm.click_ref].scrollIntoView()
  877. }
  878. })
  879. switch (val.type) {
  880. case 1:
  881. this.formValue.cruor = val.result.join(',')
  882. break
  883. case 2:
  884. this.formValue.symptom_after_dialysis = val.result.join(',')
  885. break
  886. case 3:
  887. this.formValue.catheter = val.result.join(',')
  888. break
  889. case 4:
  890. this.formValue.complication = val.result.join(',')
  891. break
  892. case 5:
  893. this.formValue.blood_access_part_id = val.selectId
  894. break
  895. case 6:
  896. this.formValue.blood_access_part_opera_id = val.selectId
  897. break
  898. case 7:
  899. this.formValue.internal_fistula = val.result.join(',')
  900. break
  901. case 8:
  902. this.formValue.internal_fistula_tremor_ac = val.selectId
  903. break
  904. case 9:
  905. this.formValue.patient_gose = val.selectId
  906. break
  907. case 10:
  908. this.formValue.observation_content = val.result.join(',')
  909. break
  910. case 11:
  911. this.formValue.dialysis_process = val.selectId
  912. break
  913. case 12:
  914. this.formValue.in_advance_reason = val.result.join(',')
  915. break
  916. case 13:
  917. this.formValue.hemostasis_opera = val.selectId
  918. break
  919. case 14:
  920. this.formValue.tremor_noise = val.selectId
  921. break
  922. case 15:
  923. this.formValue.disequilibrium_syndrome = val.selectId
  924. break
  925. case 16:
  926. this.formValue.disequilibrium_syndrome_option = val.result.join(',')
  927. break
  928. case 17:
  929. this.formValue.arterial_tube = val.selectId
  930. break
  931. case 18:
  932. this.formValue.intravenous_tube = val.selectId
  933. break
  934. case 19:
  935. this.formValue.dialyzer = val.selectId
  936. break
  937. case 20:
  938. if (val.selectId == 1) {
  939. this.formValue.puncture_point_oozing_blood = val.selectId
  940. this.puncture_point_oozing_blood_state = true
  941. } else if (val.selectId == 2) {
  942. this.formValue.puncture_point_oozing_blood = val.selectId
  943. this.puncture_point_oozing_blood_state = false
  944. } else {
  945. this.formValue.puncture_point_oozing_blood = 0
  946. }
  947. break
  948. case 21:
  949. if (val.selectId == 1) {
  950. this.formValue.puncture_point_haematoma = val.selectId
  951. this.puncture_point_haematoma_state = true
  952. } else if (val.selectId == 2) {
  953. this.formValue.puncture_point_haematoma = val.selectId
  954. this.puncture_point_haematoma_state = false
  955. } else {
  956. this.formValue.puncture_point_haematoma = 0
  957. }
  958. break
  959. case 22:
  960. if (val.selectId == 1) {
  961. this.formValue.is_eat = val.selectId
  962. this.eat_state = true
  963. } else if (val.selectId == 2) {
  964. this.formValue.is_eat = val.selectId
  965. this.eat_state = false
  966. } else {
  967. this.formValue.is_eat = 0
  968. }
  969. break
  970. case 23:
  971. this.formValue.dialysis_intakes_unit = val.selectId
  972. break
  973. }
  974. }, getUnit: function (val) {
  975. let name = ''
  976. for (let i = 0; i < this.unit.length; i++) {
  977. if (this.unit[i].id == val) {
  978. name = this.unit[i].name
  979. }
  980. }
  981. return name
  982. }, QueryPartById: function (val) {
  983. let vascular_access_part_name = ''
  984. let vascular_access = this.$store.getters.vascular_access
  985. for (let i = 0; i < vascular_access.length; i++) {
  986. if (vascular_access[i].id == val) {
  987. vascular_access_part_name = vascular_access[i].name
  988. }
  989. }
  990. return vascular_access_part_name
  991. }, QueryOperaById: function (val) {
  992. let vascular_access_desc_name = ''
  993. var vascular_access_desc = this.$store.getters.vascular_access_desc
  994. for (let i = 0; i < vascular_access_desc.length; i++) {
  995. if (vascular_access_desc[i].id == val) {
  996. vascular_access_desc_name = vascular_access_desc[i].name
  997. break
  998. }
  999. }
  1000. return vascular_access_desc_name
  1001. }, commitInfo: function () {
  1002. let ParamsQuery = this.formValue
  1003. ParamsQuery['patient'] = this.$route.query.patient_id
  1004. ParamsQuery['record_date'] = this.record_date
  1005. commitAssessmentAfterDislysis(ParamsQuery).then(response => {
  1006. if (response.data.state == 0) {
  1007. Toast.fail(response.data.msg)
  1008. return false
  1009. } else {
  1010. Toast.success('提交成功')
  1011. this.$emit('did_update', response.data.data.assessmentAfterDislysis)
  1012. for (const key in response.data.data.assessmentAfterDislysis) {
  1013. this.record[key] = response.data.data.assessmentAfterDislysis[key]
  1014. }
  1015. }
  1016. })
  1017. },
  1018. close: function () {
  1019. this.$emit('close')
  1020. }, openPicker: function () {
  1021. this.$refs.picker.open()
  1022. }, handleTimeConfirm: function (val) {
  1023. val = val.replace('小时')
  1024. val = val.replace('分钟')
  1025. let timeArray = val.split(':')
  1026. if (parseInt(timeArray[0].substring(0, 1)) == 0) {
  1027. this.formValue.actual_treatment_hour = timeArray[0].charAt(timeArray[0].length - 1)
  1028. } else {
  1029. this.formValue.actual_treatment_hour = timeArray[0]
  1030. }
  1031. if (parseInt(timeArray[1].substring(0, 1)) == 0) {
  1032. this.formValue.actual_treatment_minute = timeArray[1].charAt(timeArray[1].length - 1)
  1033. } else {
  1034. this.formValue.actual_treatment_minute = timeArray[1]
  1035. }
  1036. this.timeValue = this.formValue.actual_treatment_hour + '小时' + this.formValue.actual_treatment_minute + '分钟'
  1037. }, open: function () {
  1038. this.isShowDialog = true
  1039. this.visibility = false
  1040. this.$refs.picker.close()
  1041. var dialogTop = document.querySelector('#dialogTop')
  1042. if (dialogTop != null) {
  1043. this.$nextTick(() => {
  1044. dialogTop.scrollTop = 0
  1045. })
  1046. }
  1047. }, getTremorNoise: function (id) {
  1048. var tremor_noise = this.$store.getters.tremor_noise
  1049. var tremorNoiseName = ''
  1050. for (let i = 0; i < tremor_noise.length; i++) {
  1051. if (tremor_noise[i].id == id) {
  1052. tremorNoiseName = tremor_noise[i].name
  1053. }
  1054. }
  1055. return tremorNoiseName
  1056. }, getDisequilibriumSyndrome: function (id) {
  1057. var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome
  1058. var disequilibriumSyndromeName = ''
  1059. for (let i = 0; i < disequilibrium_syndrome.length; i++) {
  1060. if (disequilibrium_syndrome[i].id == id) {
  1061. disequilibriumSyndromeName = disequilibrium_syndrome[i].name
  1062. }
  1063. }
  1064. return disequilibriumSyndromeName
  1065. }, getDisequilibriumSyndromeOptionName: function (id) {
  1066. var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option
  1067. var disequilibriumSyndromeOptionName = ''
  1068. for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
  1069. if (disequilibrium_syndrome_option[i].id == id) {
  1070. disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
  1071. }
  1072. }
  1073. return disequilibriumSyndromeOptionName
  1074. }, getArterialTubeName: function (id) {
  1075. var arterial_tube = this.$store.getters.arterial_tube
  1076. var arterialTubeName = ''
  1077. for (let i = 0; i < arterial_tube.length; i++) {
  1078. if (arterial_tube[i].id == id) {
  1079. arterialTubeName = arterial_tube[i].name
  1080. }
  1081. }
  1082. return arterialTubeName
  1083. }, getIntravenousTubeName: function (id) {
  1084. var intravenous_tube = this.$store.getters.intravenous_tube
  1085. var intravenousTubeName = ''
  1086. for (let i = 0; i < intravenous_tube.length; i++) {
  1087. if (intravenous_tube[i].id == id) {
  1088. intravenousTubeName = intravenous_tube[i].name
  1089. }
  1090. }
  1091. return intravenousTubeName
  1092. }, getDialyzer: function (id) {
  1093. var dialyzer = this.$store.getters.dialyzer
  1094. var dialyzerName = ''
  1095. for (let i = 0; i < dialyzer.length; i++) {
  1096. if (dialyzer[i].id == id) {
  1097. dialyzerName = dialyzer[i].name
  1098. }
  1099. }
  1100. return dialyzerName
  1101. }, getDialysisProcess: function (id) {
  1102. var dialysis_process = this.$store.getters.dialysis_process
  1103. var dialysisProcessName = ''
  1104. for (let i = 0; i < dialysis_process.length; i++) {
  1105. if (dialysis_process[i].id == id) {
  1106. dialysisProcessName = dialysis_process[i].name
  1107. }
  1108. }
  1109. return dialysisProcessName
  1110. }, getOpera: function (id) {
  1111. var hemostasis_opera = this.$store.getters.hemostasis_opera
  1112. var hemostasisOperaName = ''
  1113. for (let i = 0; i < hemostasis_opera.length; i++) {
  1114. if (hemostasis_opera[i].id == id) {
  1115. hemostasisOperaName = hemostasis_opera[i].name
  1116. }
  1117. }
  1118. return hemostasisOperaName
  1119. }, menuEmpty: function (val) {
  1120. this.visibility = false
  1121. this.isShowDialog = true
  1122. switch (val.type) {
  1123. case 5:
  1124. this.formValue.blood_access_part_id = ''
  1125. break
  1126. case 6:
  1127. this.formValue.blood_access_part_opera_id = ''
  1128. break
  1129. case 8:
  1130. this.formValue.internal_fistula_tremor_ac = ''
  1131. break
  1132. case 9:
  1133. this.formValue.patient_gose = ''
  1134. break
  1135. case 11:
  1136. this.formValue.dialysis_process = ''
  1137. break
  1138. case 13:
  1139. this.formValue.hemostasis_opera = ''
  1140. break
  1141. case 14:
  1142. this.formValue.tremor_noise = ''
  1143. break
  1144. case 15:
  1145. this.formValue.disequilibrium_syndrome = ''
  1146. break
  1147. case 17:
  1148. this.formValue.arterial_tube = ''
  1149. break
  1150. case 18:
  1151. this.formValue.intravenous_tube = ''
  1152. break
  1153. case 19:
  1154. this.formValue.dialyzer = ''
  1155. break
  1156. }
  1157. }
  1158. },
  1159. components: {
  1160. CheckBoxSubMenu,
  1161. }, created () {
  1162. let initHour = ''
  1163. let initMinute = ''
  1164. let tempHour = ''
  1165. let tempMinute = ''
  1166. this.template_id = this.$store.getters.user.template_info.template_id
  1167. if (this.record != null && this.record.id != '') {
  1168. for (const key in this.formValue) {
  1169. // console.log(key, this.record[key]);
  1170. this.formValue[key] = this.record[key]
  1171. console.log(key + '----' + this.formValue[key])
  1172. }
  1173. }
  1174. // else {
  1175. // if (this.record != null && this.record.id != '' && this.record.assessment_doctor == 0){
  1176. // this.$set(this.formValue, "actual_ultrafiltration", this.record.actual_ultrafiltration)
  1177. // this.$set(this.formValue, "weight_after", this.record.weight_after)
  1178. // this.$set(this.formValue, "weight_loss", this.record.weight_loss)
  1179. // this.$set(this.formValue, "actual_ultrafiltration", this.record.actual_ultrafiltration)
  1180. // this.$set(this.formValue, "actual_displacement", this.record.actual_displacement)
  1181. // this.$set(this.formValue, "actual_treatment_hour", this.record.actual_treatment_hour)
  1182. // this.$set(this.formValue, "actual_treatment_minute", this.record.actual_treatment_minute)
  1183. // } else {
  1184. // this.$set(this.formValue, "actual_ultrafiltration", '')
  1185. // this.$set(this.formValue, "weight_after", '')
  1186. // this.$set(this.formValue, "weight_loss", '')
  1187. // this.$set(this.formValue, "actual_ultrafiltration", '')
  1188. // this.$set(this.formValue, "actual_displacement", '')
  1189. // this.$set(this.formValue, "actual_treatment_hour", '')
  1190. // this.$set(this.formValue, "actual_treatment_minute", '')
  1191. // }
  1192. // }
  1193. if (typeof (this.formValue.actual_treatment_hour) == 'undefined') {
  1194. tempHour = ''
  1195. initHour = '00'
  1196. } else {
  1197. tempHour = this.formValue.actual_treatment_hour + '小时'
  1198. if (parseInt(this.formValue.actual_treatment_hour) < 10) {
  1199. initHour = '0' + this.formValue.actual_treatment_hour
  1200. } else {
  1201. initHour = this.formValue.actual_treatment_hour
  1202. }
  1203. }
  1204. if (typeof (this.formValue.actual_treatment_minute) == 'undefined') {
  1205. tempMinute = ''
  1206. initMinute = '00'
  1207. } else {
  1208. tempMinute = this.formValue.actual_treatment_minute + '分钟'
  1209. if (parseInt(this.formValue.actual_treatment_minute) < 10) {
  1210. initMinute = '0' + this.formValue.actual_treatment_minute
  1211. } else {
  1212. initMinute = this.formValue.actual_treatment_minute
  1213. }
  1214. }
  1215. this.time = initHour + ':' + initMinute
  1216. this.timeValue = tempHour + tempMinute
  1217. var date = this.$route.query && this.$route.query.date
  1218. date *= 1000
  1219. var newDate = new Date(date)
  1220. var y = newDate.getFullYear()
  1221. var m = newDate.getMonth() + 1
  1222. var d = newDate.getDate()
  1223. if (isNaN(y) || isNaN(m) || isNaN(d)) {
  1224. newDate = new Date()
  1225. y = newDate.getFullYear()
  1226. m = newDate.getMonth() + 1
  1227. d = newDate.getDate()
  1228. }
  1229. this.record_date = y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
  1230. this.puncture_point_oozing_blood_state = this.formValue.puncture_point_oozing_blood == 0
  1231. this.puncture_point_haematoma_state = this.formValue.puncture_point_haematoma == 0
  1232. this.eat_state = this.formValue.is_eat == 0
  1233. },
  1234. }
  1235. </script>
  1236. <style style="stylesheet/scss" lang="scss" scoped>
  1237. .textarea {
  1238. width: 100%;
  1239. height: 2.4rem;
  1240. line-height: 0.6rem;
  1241. color: $pgh-color;
  1242. font-size: 0.28rem;
  1243. padding-left: 0.36rem;
  1244. border: none;
  1245. border-bottom: 1px #e5e5e5 solid;
  1246. }
  1247. .DialogContent{
  1248. padding-bottom: 2rem !important;
  1249. }
  1250. </style>