血透系统pad前端

ThorougDialog.vue 49KB

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