血透系统pad前端

AssessmentDialog.vue 44KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172
  1. <template>
  2. <div>
  3. <div v-if="isShowDialog" class="Dialog">
  4. <div class="DialogTit">
  5. <span class="iconfont" @click="close()">&#xe6e9;</span>
  6. <h1 class="name">透前评估</h1>
  7. <span @click="commitInfo" class="success">完成</span>
  8. </div>
  9. <div class="DialogContent" id="dialogTop">
  10. <div class="item" v-if="isShow('透前体重')">
  11. <h2 class="name">透前体重(kg)</h2>
  12. <div class="content">
  13. <input type="tel" @focus="inputFocus" v-model="formValue.weight_before"/>
  14. </div>
  15. </div>
  16. <div class="item" v-if="isShow('干体重')">
  17. <h2 class="name">干体重(kg)</h2>
  18. <div class="content">
  19. <input type="tel" @focus="inputFocus" v-model="formValue.dry_weight"/>
  20. </div>
  21. </div>
  22. <div class="item" v-if="isShow('体温')">
  23. <h2 class="name">体温(℃)</h2>
  24. <div class="content">
  25. <input type="tel" @focus="inputFocus" v-model="formValue.temperature"/>
  26. </div>
  27. </div>
  28. <div class="item" v-if="isShow('呼吸频率')">
  29. <h2 class="name">呼吸频率(次/分)</h2>
  30. <div class="content">
  31. <input type="tel" @focus="inputFocus" v-model="formValue.breathing_rate"/>
  32. </div>
  33. </div>
  34. <div class="item" v-if="isShow('出血')" @click="showSubMenu('hemorrhage_state')">
  35. <h2 class="name">出血</h2>
  36. <div class="content">
  37. <span v-if="formValue.is_hemorrhage == 0" class="text" style="width: 50px"></span>
  38. <span v-if="formValue.is_hemorrhage == 1" class="text" style="width: 50px">有</span>
  39. <span v-if="formValue.is_hemorrhage == 2" class="text" style="width: 50px">无</span>
  40. <span class="iconfont">&#xe6f9;</span>
  41. </div>
  42. </div>
  43. <div @click="showSubMenu('hemorrhage')" class="item" ref="hemorrhage" v-if="hemorrhage_state&&isShow('出血选项')">
  44. <h2 class="name">—— 出血选项</h2>
  45. <div class="content">
  46. <span class="text" style="width: 50px">{{formValue.hemorrhage}}</span>
  47. <span class="iconfont">&#xe6f9;</span>
  48. </div>
  49. </div>
  50. <div class="item" v-if="hemorrhage_state&&isShow('其他出血情况')">
  51. <h2 class="name">—— 其他出血情况</h2>
  52. <div class="content">
  53. <input @focus="inputFocus" v-model="formValue.hemorrhage_other"/>
  54. </div>
  55. </div>
  56. <div @click="showSubMenu('internal_fistula')" class="item" ref="internal_fistula" v-if="isShow('内瘘')">
  57. <h2 class="name">内瘘</h2>
  58. <div class="content">
  59. <span class="text" style="width: 100px">{{formValue.internal_fistula}}</span>
  60. <span class="iconfont">&#xe6f9;</span>
  61. </div>
  62. </div>
  63. <div @click="showSubMenu('internal_fistula_skin')" class="item" ref="internal_fistula_skin" v-if="isShow('内瘘皮肤情况')">
  64. <h2 class="name">内瘘皮肤情况</h2>
  65. <div class="content">
  66. <span class="text" style="width: 100px">{{formValue.internal_fistula_skin}}</span>
  67. <span class="iconfont">&#xe6f9;</span>
  68. </div>
  69. </div>
  70. <div @click="showSubMenu('catheter')" class="item" ref="catheter" v-if="isShow('导管')">
  71. <h2 class="name">导管</h2>
  72. <div class="content">
  73. <span class="text">{{formValue.catheter}}</span>
  74. <span class="iconfont">&#xe6f9;</span>
  75. </div>
  76. </div>
  77. <div @click="showSubMenu('catheter_bend')" class="item" ref="catheter_bend" v-if="isShow('导管打折')">
  78. <h2 class="name">导管打折</h2>
  79. <div class="content">
  80. <span class="text">{{GetCatheterBendById(formValue.catheter_bend)}}</span>
  81. <span class="iconfont">&#xe6f9;</span>
  82. </div>
  83. </div>
  84. <div class="line"></div>
  85. <div class="item" v-if="isShow('收缩压')">
  86. <h2 class="name">收缩压(mmHg)</h2>
  87. <div class="content">
  88. <input type="tel" @focus="inputFocus" v-model="formValue.systolic_blood_pressure"/>
  89. </div>
  90. </div>
  91. <div class="item" v-if="isShow('舒张压')">
  92. <h2 class="name">舒张压(mmHg)</h2>
  93. <div class="content">
  94. <input type="tel" @focus="inputFocus" v-model="formValue.diastolic_blood_pressure"/>
  95. </div>
  96. </div>
  97. <div class="item" v-if="isShow('脉搏')">
  98. <h2 class="name">脉搏(次/分)</h2>
  99. <div class="content">
  100. <input type="tel" @focus="inputFocus" v-model="formValue.pulse_frequency"/>
  101. </div>
  102. </div>
  103. <div @click="showSubMenu('blood_access_part')" class="item" ref="blood_access_part" v-if="isShow('血管通路部位')">
  104. <h2 class="name">血管通路部位</h2>
  105. <div class="content">
  106. <span class="text">{{QueryPartById(formValue.blood_access_part_id)}}</span>
  107. <span class="iconfont">&#xe6f9;</span>
  108. </div>
  109. </div>
  110. <div @click="showSubMenu('blood_access_opera')" class="item" ref="blood_access_opera" v-if="isShow('血管通路操作')">
  111. <h2 class="name">血管通路操作</h2>
  112. <div class="content">
  113. <span class="text">{{QueryOperaById(formValue.blood_access_part_opera_id)}}</span>
  114. <span class="iconfont">&#xe6f9;</span>
  115. </div>
  116. </div>
  117. <div class="line"></div>
  118. <div @click="showSubMenu('complication')" class="item" ref="complication" v-if="isShow('并发症')">
  119. <h2 class="name">并发症</h2>
  120. <div class="content">
  121. <span class="text" style="width: 50px">{{formValue.complication}}</span>
  122. <span class="iconfont">&#xe6f9;</span>
  123. </div>
  124. </div>
  125. <div @click="showSubMenu('last_post_dialysis')" class="item" ref="last_post_dialysis" v-if="isShow('前次透析后')">
  126. <h2 class="name">前次透析后</h2>
  127. <div class="content">
  128. <span class="text" style="width: 100px">{{formValue.last_post_dialysis}}</span>
  129. <span class="iconfont">&#xe6f9;</span>
  130. </div>
  131. </div>
  132. <div @click="showSubMenu('dialysis_interphase')" class="item" ref="dialysis_interphase" v-if="isShow('透析期间')">
  133. <h2 class="name">透析期间</h2>
  134. <div class="content">
  135. <span class="text" style="width: 100px">{{formValue.dialysis_interphase}}</span>
  136. <span class="iconfont">&#xe6f9;</span>
  137. </div>
  138. </div>
  139. <div @click="showSubMenu('symptom_before_dialysis')" class="item" ref="symptom_before_dialysis" v-if="isShow('透析前症状')">
  140. <h2 class="name">透析前症状</h2>
  141. <div class="content">
  142. <span class="text" style="width: 100px">{{formValue.symptom_before_dialysis}}</span>
  143. <span class="iconfont">&#xe6f9;</span>
  144. </div>
  145. </div>
  146. <div class="line"></div>
  147. <div class="item" ref="symptom_before_dialysis" v-if="isShow('透析机型号')">
  148. <h2 class="name">透析机型号</h2>
  149. <div class="content">
  150. <input type="tel" @focus="inputFocus" v-model="formValue.machine_type"/>
  151. </div>
  152. </div>
  153. <div class="item" ref="symptom_before_dialysis" v-if="isShow('透析频次')">
  154. <h2 class="name">透析频次(次/周)</h2>
  155. <div class="content">
  156. <input type="tel" @focus="inputFocus" v-model="formValue.dialysis_count"/>
  157. </div>
  158. </div>
  159. <div @click="showSubMenu('blood_access_internal_fistula')" class="item" ref="blood_access_internal_fistula" v-if="isShow('血管通路(内瘘)')">
  160. <h2 class="name">血管通路(内瘘)</h2>
  161. <div class="content">
  162. <span class="text" style="width: 100px">{{formValue.blood_access_internal_fistula}}</span>
  163. <span class="iconfont">&#xe6f9;</span>
  164. </div>
  165. </div>
  166. <div class="item" ref="internal_fistula_other" v-if="isShow('血管通路(内瘘)其他')">
  167. <h2 class="name">血管通路(内瘘)其他</h2>
  168. <div class="content">
  169. <input @focus="inputFocus" v-model="formValue.internal_fistula_other"/>
  170. </div>
  171. </div>
  172. <div @click="showSubMenu('blood_access_noise')" class="item" ref="blood_access_noise" v-if="isShow('血管杂音')">
  173. <h2 class="name">血管杂音</h2>
  174. <div class="content">
  175. <span class="text" style="width: 100px">{{getBloodAccessNoise(formValue.blood_access_noise)}}</span>
  176. <span class="iconfont">&#xe6f9;</span>
  177. </div>
  178. </div>
  179. <div @click="showSubMenu('puncture_way')" class="item" ref="puncture_way" v-if="isShow('穿刺方式')">
  180. <h2 class="name">穿刺方式</h2>
  181. <div class="content">
  182. <span class="text" style="width: 100px">{{getWay(formValue.puncture_way)}}</span>
  183. <span class="iconfont">&#xe6f9;</span>
  184. </div>
  185. </div>
  186. <div @click="showSubMenu('venous_catheterization')" class="item" ref="venous_catheterization" v-if="isShow('中心静脉置管')">
  187. <h2 class="name">中心静脉置管</h2>
  188. <div class="content">
  189. <span class="text" style="width: 100px">{{getVenousCatheterization(formValue.venous_catheterization)}}</span>
  190. <span class="iconfont">&#xe6f9;</span>
  191. </div>
  192. </div>
  193. <div @click="showSubMenu('venous_catheterization_part')" class="item" ref="venous_catheterization_part" v-if="isShow('位置')">
  194. <h2 class="name">位置</h2>
  195. <div class="content">
  196. <span class="text" style="width: 100px">{{getVenousCatheterizationPart(formValue.venous_catheterization_part)}}</span>
  197. <span class="iconfont">&#xe6f9;</span>
  198. </div>
  199. </div>
  200. <div class="item" ref="venous_catheterization_part_other"
  201. v-if="isShow('其他位置')">
  202. <h2 class="name">其他位置</h2>
  203. <div class="content">
  204. <input @focus="inputFocus" v-model="formValue.venous_catheterization_part_other"/>
  205. </div>
  206. </div>
  207. <div @click="showSubMenu('ductus_arantii')" class="item" ref="ductus_arantii" v-if="isShow('中心静脉导管')">
  208. <h2 class="name">中心静脉导管</h2>
  209. <div class="content">
  210. <span class="text" style="width: 100px">{{formValue.ductus_arantii}}</span>
  211. <span class="iconfont">&#xe6f9;</span>
  212. </div>
  213. </div>
  214. <div class="item" ref="ductus_arantii_other" v-if="isShow('其他中心静脉导管')">
  215. <h2 class="name">其他中心静脉导管</h2>
  216. <div class="content">
  217. <input @focus="inputFocus" v-model="formValue.ductus_arantii_other"/>
  218. </div>
  219. </div>
  220. <div @click="showSubMenu('emergency_treatment')" class="item" ref="emergency_treatment" v-if="isShow('急诊')">
  221. <h2 class="name">急诊</h2>
  222. <div class="content">
  223. <span class="text" style="width: 100px">{{getEmergencyTreatment(formValue.emergency_treatment)}}</span>
  224. <span class="iconfont">&#xe6f9;</span>
  225. </div>
  226. </div>
  227. <div class="item" ref="emergency_treatment_other" v-if="isShow('其他急诊情况')">
  228. <h2 class="name">其他急诊情况</h2>
  229. <div class="content">
  230. <input @focus="inputFocus" v-model="formValue.emergency_treatment_other"/>
  231. </div>
  232. </div>
  233. <div class="item" v-if="isShow('感染')" @click="showSubMenu('infect_state')" ref="infect_state">
  234. <h2 class="name">感染</h2>
  235. <div class="content">
  236. <span v-if="formValue.is_infect == 0" class="text" style="width: 50px"></span>
  237. <span v-if="formValue.is_infect == 1" class="text" style="width: 50px">有</span>
  238. <span v-if="formValue.is_infect == 2" class="text" style="width: 50px">无</span>
  239. <span class="iconfont">&#xe6f9;</span>
  240. </div>
  241. </div>
  242. <div class="item" ref="skin_other" v-if="isShow('其他感染情况')">
  243. <h2 class="name">其他感染情况</h2>
  244. <div class="content">
  245. <input @focus="inputFocus" v-model="formValue.skin_other"/>
  246. </div>
  247. </div>
  248. <div class="item" v-if="isShow('外露')">
  249. <h2 class="name">外露(cm)</h2>
  250. <div class="content">
  251. <input type="tel" @focus="inputFocus" v-model="formValue.exposed"/>
  252. </div>
  253. </div>
  254. <div @click="showSubMenu('skin')" class="item" ref="skin" v-if="isShow('皮肤')">
  255. <h2 class="name">皮肤</h2>
  256. <div class="content">
  257. <span class="text" style="width: 100px">{{getSkin(formValue.skin)}}</span>
  258. <span class="iconfont">&#xe6f9;</span>
  259. </div>
  260. </div>
  261. <div class="item" ref="skin_other" v-if="isShow('其他皮肤情况')">
  262. <h2 class="name">其他皮肤情况</h2>
  263. <div class="content">
  264. <input @focus="inputFocus" v-model="formValue.skin_other"/>
  265. </div>
  266. </div>
  267. <div class="line"></div>
  268. <div>
  269. <div class="item">
  270. <h2 class="name">备注</h2>
  271. <div class="content">
  272. <span class="text"></span>
  273. </div>
  274. </div>
  275. <textarea class="textarea" placeholder="请输入内容" @focus="lastInputFocus" @blur="lastInputBlur"
  276. v-model="formValue.remark"></textarea>
  277. </div>
  278. </div>
  279. </div>
  280. <!--<two-menu title="二级菜单" v-show="true" ></two-menu>-->
  281. <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm" v-on:menu-empty="menuEmpty"
  282. :propsForm="propForm"></check-box-sub-menu>
  283. </div>
  284. </template>
  285. <script>
  286. // import TwoMenu from "./TwoMenu";
  287. import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
  288. import {EditAssessmentBeforeDislysis} from '@/api/patient'
  289. import {Toast} from 'vant'
  290. import {getDataConfig} from '@/utils/data'
  291. export default {
  292. name: 'PrescriptionDialog',
  293. props: {
  294. patient_prop: {
  295. type: Object,
  296. },
  297. predialysis: {
  298. type: Object,
  299. },
  300. last_predialysis: {
  301. type: Object,
  302. },
  303. },
  304. data () {
  305. return {
  306. isShowDialog: true,
  307. //sub menu prop
  308. visibility: false,
  309. propForm: {
  310. title: '',
  311. list: [],
  312. optionList: [],
  313. isMultiple: 2,
  314. result: [], //选中的值
  315. type: 1, //用来区分不同子菜单,方便对返回值进行赋值
  316. selectId: 0,
  317. isHasOther: 1 //是否有其他选项 1是 2否
  318. },
  319. hemorrhage_state: false,
  320. infect_state:false,
  321. hemorrhages:[
  322. {id: 1, name: "有"},
  323. {id: 2, name: "无"},
  324. ],
  325. infects:[
  326. {id: 1, name: "有"},
  327. {id: 2, name: "无"},
  328. ],
  329. formValue: {
  330. weight_before: '',
  331. dry_weight: '',
  332. temperature: '',
  333. systolic_blood_pressure: '',
  334. diastolic_blood_pressure: '',
  335. symptom_before_dialysis: '',
  336. pulse_frequency: '',
  337. last_post_dialysis: '',
  338. dialysis_interphase: '',
  339. catheter: '',
  340. catheter_bend: 2,
  341. complication: '',
  342. remark: '',
  343. blood_access_part_id: '',
  344. blood_access_part_opera_id: '',
  345. internal_fistula: '',
  346. internal_fistula_skin: '',
  347. is_hemorrhage: 0,
  348. hemorrhage: '',
  349. hemorrhage_other: '',
  350. dialysis_count: '',
  351. emergency_treatment: '',
  352. emergency_treatment_other: '',
  353. ductus_arantii: '',
  354. venous_catheterization_part_other: '',
  355. venous_catheterization_part: '',
  356. venous_catheterization: '',
  357. puncture_way: '',
  358. blood_access_noise: '',
  359. internal_fistula_other: '',
  360. blood_access_internal_fistula: '',
  361. machine_type:'',
  362. breathing_rate:'',
  363. is_infect:0,
  364. exposed:'',
  365. skin:'',
  366. skin_other:'',
  367. infect_other:'',
  368. ductus_arantii_other:'',
  369. },
  370. record_date: ''
  371. }
  372. },
  373. methods: {
  374. isShow(name){
  375. var filedList = this.$store.getters.user.fileds
  376. for (let i = 0; i < filedList.length; i++){
  377. if(filedList[i].module == 3 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
  378. return true
  379. }
  380. }
  381. return false
  382. },
  383. getBloodAccessInternalFistula: function (id) {
  384. if (id == -1) {
  385. return '其他'
  386. }
  387. var BloodAccessInternalFistulaName = ''
  388. var BloodAccessInternalFistulaOptions = this.$store.getters.blood_access_internal_fistula
  389. for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
  390. if (BloodAccessInternalFistulaOptions[i].id == id) {
  391. BloodAccessInternalFistulaName = BloodAccessInternalFistulaOptions[i].name
  392. }
  393. }
  394. return BloodAccessInternalFistulaName
  395. },
  396. getBloodAccessNoise: function (id) {
  397. var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise
  398. var BloodAccessNoiseName = ''
  399. for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
  400. if (BloodAccessNoiseOptions[i].id == id) {
  401. BloodAccessNoiseName = BloodAccessNoiseOptions[i].name
  402. }
  403. }
  404. return BloodAccessNoiseName
  405. }, getVenousCatheterization: function (id) {
  406. var VenousCatheterizationOptions = this.$store.getters.venous_catheterization
  407. var VenousCatheterizationName = ''
  408. for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
  409. if (VenousCatheterizationOptions[i].id == id) {
  410. VenousCatheterizationName = VenousCatheterizationOptions[i].name
  411. }
  412. }
  413. return VenousCatheterizationName
  414. }, getWay: function (id) {
  415. var PunctureWayOptions = this.$store.getters.puncture_way
  416. var PunctureWayOptionsName = ''
  417. for (let i = 0; i < PunctureWayOptions.length; i++) {
  418. if (PunctureWayOptions[i].id == id) {
  419. PunctureWayOptionsName = PunctureWayOptions[i].name
  420. }
  421. }
  422. return PunctureWayOptionsName
  423. }, getVenousCatheterizationPart: function (id) {
  424. if (id == -1) {
  425. return '其他'
  426. }
  427. var venousCatheterizationPartOptions = this.$store.getters.venous_catheterization_part
  428. var venousCatheterizationPartName = ''
  429. for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
  430. if (venousCatheterizationPartOptions[i].id == id) {
  431. venousCatheterizationPartName = venousCatheterizationPartOptions[i].name
  432. }
  433. }
  434. return venousCatheterizationPartName
  435. }, getEmergencyTreatment: function (id) {
  436. if (id == -1) {
  437. return '其他'
  438. }
  439. var emergencyTreatmentOptions = this.$store.getters.emergency_treatment
  440. var emergencyTreatmentName = ''
  441. for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
  442. if (emergencyTreatmentOptions[i].id == id) {
  443. emergencyTreatmentName = emergencyTreatmentOptions[i].name
  444. }
  445. }
  446. return emergencyTreatmentName
  447. },getSkin:function(id){
  448. if (id == -1) {
  449. return '其他'
  450. }
  451. var skinOptions = this.$store.getters.skin
  452. var skinName = ''
  453. for (let i = 0; i < skinOptions.length; i++) {
  454. if (skinOptions[i].id == id) {
  455. skinName = skinOptions[i].name
  456. }
  457. }
  458. return skinName
  459. },
  460. hemorrhageStateChange: function (is_select) {
  461. this.formValue.is_hemorrhage = is_select == true ? 1 : 2
  462. },
  463. inputFocus: function (event) {
  464. var input = event.target
  465. setTimeout(function () {
  466. input.scrollIntoView()
  467. }, 0)
  468. if (input.setSelectionRange) {
  469. setTimeout(function () {
  470. input.setSelectionRange(0, input.value.length)
  471. }, 0)
  472. } else if (input.createTextRange) {
  473. var rng = input.createTextRange()
  474. rng.move('character', input.value.length)
  475. rng.select()
  476. }
  477. },
  478. lastInputFocus: function (event) {
  479. var input = event.target
  480. setTimeout(function () {
  481. input.style.marginBottom = '2rem'
  482. input.parentNode.scrollIntoView()
  483. }, 0)
  484. },
  485. lastInputBlur: function (event) {
  486. var input = event.target
  487. setTimeout(function () {
  488. input.style.marginBottom = ''
  489. }, 0)
  490. },
  491. showSubMenu: function (val) {
  492. switch (val) {
  493. case 'last_post_dialysis':
  494. this.propForm.result = []
  495. this.isHasOther = 2
  496. this.propForm.type = 1
  497. this.isShowDialog = false
  498. this.propForm.title = '前次透析后'
  499. this.visibility = true
  500. this.propForm.list = getDataConfig('hemodialysis', 'last_dialysis_after')
  501. this.propForm.optionList = []
  502. this.propForm.isMultiple = 2
  503. if (this.formValue.last_post_dialysis != undefined || this.formValue.last_post_dialysis != null) {
  504. if (this.formValue.last_post_dialysis.length > 0) {
  505. this.propForm.result = this.formValue.last_post_dialysis.split(',')
  506. } else {
  507. this.propForm.result = []
  508. }
  509. } else {
  510. this.propForm.result = []
  511. }
  512. this.propForm.click_ref = 'last_post_dialysis'
  513. break
  514. case 'dialysis_interphase':
  515. this.propForm.result = []
  516. this.isHasOther = 2
  517. this.propForm.type = 2
  518. this.isShowDialog = false
  519. this.propForm.title = '透析期间'
  520. this.visibility = true
  521. this.propForm.list = getDataConfig('hemodialysis', 'dialysis_duration')
  522. this.propForm.optionList = []
  523. this.propForm.isMultiple = 2
  524. if (this.formValue.dialysis_interphase != undefined || this.formValue.dialysis_interphase != null) {
  525. if (this.formValue.dialysis_interphase.length > 0) {
  526. this.propForm.result = this.formValue.dialysis_interphase.split(',')
  527. } else {
  528. this.propForm.result = []
  529. }
  530. } else {
  531. this.propForm.result = []
  532. }
  533. this.propForm.click_ref = 'dialysis_interphase'
  534. break
  535. case 'symptom_before_dialysis':
  536. this.propForm.result = []
  537. this.isHasOther = 2
  538. this.propForm.type = 3
  539. this.isShowDialog = false
  540. this.propForm.title = '透析前症状'
  541. this.visibility = true
  542. this.propForm.list = getDataConfig('hemodialysis', 'dialysis_before')
  543. this.propForm.optionList = []
  544. this.propForm.isMultiple = 2
  545. if (this.formValue.symptom_before_dialysis != undefined || this.formValue.symptom_before_dialysis != null) {
  546. if (this.formValue.symptom_before_dialysis.length > 0) {
  547. this.propForm.result = this.formValue.symptom_before_dialysis.split(',')
  548. } else {
  549. this.propForm.result = []
  550. }
  551. } else {
  552. this.propForm.result = []
  553. }
  554. this.propForm.click_ref = 'symptom_before_dialysis'
  555. break
  556. case 'catheter':
  557. this.propForm.result = []
  558. this.isHasOther = 2
  559. this.propForm.type = 4
  560. this.isShowDialog = false
  561. this.propForm.title = '导管'
  562. this.visibility = true
  563. this.propForm.list = getDataConfig('hemodialysis', 'catheter')
  564. this.propForm.optionList = []
  565. this.propForm.isMultiple = 2
  566. if (this.formValue.catheter != undefined || this.formValue.catheter != null) {
  567. if (this.formValue.catheter.length > 0) {
  568. this.propForm.result = this.formValue.catheter.split(',')
  569. } else {
  570. this.propForm.result = []
  571. }
  572. } else {
  573. this.propForm.result = []
  574. }
  575. this.propForm.click_ref = 'catheter'
  576. break
  577. case 'complication':
  578. this.propForm.result = []
  579. this.isHasOther = 2
  580. this.propForm.type = 5
  581. this.isShowDialog = false
  582. this.propForm.title = '并发症'
  583. this.visibility = true
  584. this.propForm.list = getDataConfig('hemodialysis', 'complication')
  585. this.propForm.optionList = []
  586. this.propForm.isMultiple = 2
  587. // this.propForm.result = this.formValue.complication.split(",")
  588. if (this.formValue.complication != undefined || this.formValue.complication != null) {
  589. if (this.formValue.complication.length > 0) {
  590. this.propForm.result = this.formValue.complication.split(',')
  591. } else {
  592. this.propForm.result = []
  593. }
  594. } else {
  595. this.propForm.result = []
  596. }
  597. this.propForm.click_ref = 'complication'
  598. break
  599. case 'blood_access_part':
  600. this.isHasOther = 2
  601. this.propForm.type = 6
  602. this.isShowDialog = false
  603. this.propForm.title = '血管通路部位'
  604. this.visibility = true
  605. this.propForm.list = []
  606. this.propForm.optionList = getDataConfig('hemodialysis', 'vascular_access')
  607. this.propForm.isMultiple = 1
  608. this.propForm.selectId = this.formValue.blood_access_part_id
  609. this.propForm.click_ref = 'blood_access_part'
  610. break
  611. case 'blood_access_opera':
  612. this.isHasOther = 2
  613. this.propForm.type = 7
  614. this.isShowDialog = false
  615. this.propForm.title = '血管通路操作'
  616. this.visibility = true
  617. this.propForm.list = []
  618. this.propForm.optionList = getDataConfig('hemodialysis', 'vascular_access_desc')
  619. this.propForm.isMultiple = 1
  620. this.propForm.selectId = this.formValue.blood_access_part_opera_id
  621. this.propForm.click_ref = 'blood_access_opera'
  622. break
  623. case 'internal_fistula':
  624. this.propForm.result = []
  625. this.isHasOther = 2
  626. this.propForm.type = 8
  627. this.isShowDialog = false
  628. this.propForm.title = '内瘘'
  629. this.visibility = true
  630. this.propForm.list = []
  631. this.propForm.list = getDataConfig('hemodialysis', 'internal_fistula')
  632. this.propForm.optionList = []
  633. this.propForm.isMultiple = 2
  634. // this.propForm.result = this.formValue.internal_fistula.split(",")
  635. if (this.formValue.internal_fistula != undefined || this.formValue.internal_fistula != null) {
  636. if (this.formValue.internal_fistula.length > 0) {
  637. this.propForm.result = this.formValue.internal_fistula.split(',')
  638. } else {
  639. this.propForm.result = []
  640. }
  641. } else {
  642. this.propForm.result = []
  643. }
  644. this.propForm.click_ref = 'internal_fistula'
  645. break
  646. case 'hemorrhage':
  647. this.propForm.result = []
  648. this.isHasOther = 2
  649. this.propForm.type = 9
  650. this.isShowDialog = false
  651. this.propForm.title = '出血'
  652. this.visibility = true
  653. this.propForm.list = []
  654. this.propForm.list = getDataConfig('hemodialysis', 'hemorrhage')
  655. this.propForm.optionList = []
  656. this.propForm.isMultiple = 2
  657. // this.propForm.result = typeof(this.formValue.hemorrhage) == "string"? this.formValue.hemorrhage.split(","):[]
  658. if (this.formValue.hemorrhage != undefined || this.formValue.hemorrhage != null) {
  659. if (this.formValue.hemorrhage.length > 0) {
  660. this.propForm.result = this.formValue.hemorrhage.split(',')
  661. } else {
  662. this.propForm.result = []
  663. }
  664. } else {
  665. this.propForm.result = []
  666. }
  667. this.propForm.click_ref = 'hemorrhage'
  668. break
  669. case 'internal_fistula_skin':
  670. this.propForm.result = []
  671. this.isHasOther = 2
  672. this.propForm.type = 10
  673. this.isShowDialog = false
  674. this.propForm.title = '内瘘皮肤情况'
  675. this.visibility = true
  676. this.propForm.list = this.$store.getters.internal_fistula_skin
  677. this.propForm.optionList = []
  678. this.propForm.isMultiple = 2
  679. // this.propForm.result = this.formValue.hemorrhage.split(",")
  680. if (this.formValue.internal_fistula_skin != undefined || this.formValue.internal_fistula_skin != null) {
  681. if (this.formValue.internal_fistula_skin.length > 0) {
  682. this.propForm.result = this.formValue.internal_fistula_skin.split(',')
  683. } else {
  684. this.propForm.result = []
  685. }
  686. } else {
  687. this.propForm.result = []
  688. }
  689. this.propForm.click_ref = 'internal_fistula_skin'
  690. break
  691. case 'catheter_bend':
  692. this.isHasOther = 2
  693. this.propForm.type = 11
  694. this.isShowDialog = false
  695. this.propForm.title = '导管打折'
  696. this.visibility = true
  697. this.propForm.list = []
  698. this.propForm.optionList = this.$store.getters.catheter_bend
  699. this.propForm.isMultiple = 1
  700. this.propForm.selectId = this.formValue.catheter_bend
  701. this.propForm.click_ref = 'catheter_bend'
  702. break
  703. case 'blood_access_internal_fistula':
  704. this.propForm.result = []
  705. this.propForm.isHasOther = 2
  706. this.propForm.type = 12
  707. this.isShowDialog = false
  708. this.propForm.title = '血管通路(内瘘)'
  709. this.visibility = true
  710. this.propForm.list = this.$store.getters.blood_access_internal_fistula
  711. this.propForm.optionList = []
  712. this.propForm.isMultiple = 2
  713. // this.propForm.result = this.formValue.hemorrhage.split(",")
  714. if (this.formValue.blood_access_internal_fistula != undefined || this.formValue.blood_access_internal_fistula != null) {
  715. if (this.formValue.blood_access_internal_fistula.length > 0) {
  716. this.propForm.result = this.formValue.blood_access_internal_fistula.split(',')
  717. } else {
  718. this.propForm.result = []
  719. }
  720. } else {
  721. this.propForm.result = []
  722. }
  723. this.propForm.click_ref = 'blood_access_internal_fistula'
  724. break
  725. case 'blood_access_noise':
  726. this.propForm.isHasOther = 2
  727. this.propForm.type = 13
  728. this.isShowDialog = false
  729. this.propForm.title = '血管杂音'
  730. this.visibility = true
  731. this.propForm.list = []
  732. this.propForm.optionList = this.$store.getters.blood_access_noise
  733. this.propForm.isMultiple = 1
  734. this.propForm.selectId = this.formValue.blood_access_noise
  735. this.propForm.click_ref = 'blood_access_noise'
  736. break
  737. case 'venous_catheterization':
  738. this.propForm.isHasOther = 2
  739. this.propForm.type = 14
  740. this.isShowDialog = false
  741. this.propForm.title = '中心静脉置管'
  742. this.visibility = true
  743. this.propForm.list = []
  744. this.propForm.optionList = this.$store.getters.venous_catheterization
  745. this.propForm.isMultiple = 1
  746. this.propForm.selectId = this.formValue.venous_catheterization
  747. this.propForm.click_ref = 'venous_catheterization'
  748. break
  749. case 'venous_catheterization_part':
  750. this.propForm.isHasOther = 1
  751. this.propForm.type = 15
  752. this.isShowDialog = false
  753. this.propForm.title = '位置'
  754. this.visibility = true
  755. this.propForm.list = []
  756. this.propForm.optionList = this.$store.getters.venous_catheterization_part
  757. this.propForm.isMultiple = 1
  758. this.propForm.selectId = this.formValue.venous_catheterization_part
  759. this.propForm.click_ref = 'venous_catheterization_part'
  760. break
  761. case 'ductus_arantii':
  762. this.propForm.result = []
  763. this.propForm.isHasOther = 2
  764. this.propForm.type = 16
  765. this.isShowDialog = false
  766. this.propForm.title = '中心静脉导管'
  767. this.visibility = true
  768. this.propForm.list = this.$store.getters.ductus_arantii
  769. this.propForm.optionList = []
  770. this.propForm.isMultiple = 2
  771. // this.propForm.result = this.formValue.hemorrhage.split(",")
  772. if (this.formValue.ductus_arantii != undefined || this.formValue.ductus_arantii != null) {
  773. if (this.formValue.ductus_arantii.length > 0) {
  774. this.propForm.result = this.formValue.ductus_arantii.split(',')
  775. } else {
  776. this.propForm.result = []
  777. }
  778. } else {
  779. this.propForm.result = []
  780. }
  781. this.propForm.click_ref = 'ductus_arantii'
  782. break
  783. break
  784. case 'emergency_treatment':
  785. this.propForm.isHasOther = 1
  786. this.propForm.type = 17
  787. this.isShowDialog = false
  788. this.propForm.title = '急诊'
  789. this.visibility = true
  790. this.propForm.list = []
  791. this.propForm.optionList = this.$store.getters.emergency_treatment
  792. this.propForm.isMultiple = 1
  793. this.propForm.selectId = this.formValue.emergency_treatment
  794. this.propForm.click_ref = 'emergency_treatment'
  795. break
  796. case 'puncture_way':
  797. this.propForm.isHasOther = 2
  798. this.propForm.type = 18
  799. this.isShowDialog = false
  800. this.propForm.title = '穿刺方式'
  801. this.visibility = true
  802. this.propForm.list = []
  803. this.propForm.optionList = this.$store.getters.puncture_way
  804. this.propForm.isMultiple = 1
  805. this.propForm.selectId = this.formValue.puncture_way
  806. this.propForm.click_ref = 'puncture_way'
  807. break
  808. case 'hemorrhage_state':
  809. this.propForm.type = 19
  810. this.isShowDialog = false
  811. this.propForm.title = '出血'
  812. this.visibility = true
  813. this.propForm.list = []
  814. this.propForm.optionList = this.hemorrhages
  815. this.propForm.isMultiple = 1
  816. this.propForm.selectId = this.formValue.is_hemorrhage
  817. this.propForm.click_ref = 'hemorrhage_state'
  818. break
  819. case 'infect_state':
  820. this.propForm.type = 20
  821. this.isShowDialog = false
  822. this.propForm.title = '感染'
  823. this.visibility = true
  824. this.propForm.list = []
  825. this.propForm.optionList = this.infects
  826. this.propForm.isMultiple = 1
  827. this.propForm.selectId = this.formValue.is_infect
  828. this.propForm.click_ref = 'infect_state'
  829. break
  830. case 'skin':
  831. this.propForm.type = 21
  832. this.isShowDialog = false
  833. this.propForm.title = '皮肤'
  834. this.visibility = true
  835. this.propForm.list = []
  836. this.propForm.optionList = this.$store.getters.skin
  837. this.propForm.isMultiple = 1
  838. this.propForm.selectId = this.formValue.skin
  839. this.propForm.click_ref = 'skin'
  840. break
  841. }
  842. }, menuCancle: function () {
  843. this.visibility = false
  844. this.isShowDialog = true
  845. this.$nextTick(() => {
  846. if (this.$refs[this.propForm.click_ref] != undefined && this.$refs[this.propForm.click_ref] != null) {
  847. this.$refs[this.propForm.click_ref].scrollIntoView()
  848. }
  849. })
  850. }, menuComfirm: function (val) {
  851. this.visibility = false
  852. this.isShowDialog = true
  853. this.$nextTick(() => {
  854. if (this.$refs[this.propForm.click_ref] != undefined && this.$refs[this.propForm.click_ref] != null) {
  855. this.$refs[this.propForm.click_ref].scrollIntoView()
  856. }
  857. })
  858. switch (val.type) {
  859. case 1:
  860. this.formValue.last_post_dialysis = val.result.join(',')
  861. break
  862. case 2:
  863. this.formValue.dialysis_interphase = val.result.join(',')
  864. break
  865. case 3:
  866. this.formValue.symptom_before_dialysis = val.result.join(',')
  867. break
  868. case 4:
  869. this.formValue.catheter = val.result.join(',')
  870. break
  871. case 5:
  872. this.formValue.complication = val.result.join(',')
  873. break
  874. case 6:
  875. this.formValue.blood_access_part_id = val.selectId
  876. break
  877. case 7:
  878. this.formValue.blood_access_part_opera_id = val.selectId
  879. break
  880. case 8:
  881. this.formValue.internal_fistula = val.result.join(',')
  882. break
  883. case 9:
  884. this.formValue.hemorrhage = val.result.join(',')
  885. break
  886. case 10:
  887. this.formValue.internal_fistula_skin = val.result.join(',')
  888. break
  889. case 11:
  890. this.formValue.catheter_bend = val.selectId
  891. break
  892. case 12:
  893. this.formValue.blood_access_internal_fistula = val.result.join(',')
  894. break
  895. case 13:
  896. this.formValue.blood_access_noise = val.selectId
  897. break
  898. case 14:
  899. this.formValue.venous_catheterization = val.selectId
  900. break
  901. case 15:
  902. this.formValue.venous_catheterization_part = val.selectId
  903. break
  904. case 16:
  905. this.formValue.ductus_arantii = val.result.join(',')
  906. break
  907. case 17:
  908. this.formValue.emergency_treatment = val.selectId
  909. break
  910. case 18:
  911. this.formValue.puncture_way = val.selectId
  912. break
  913. case 19:
  914. if( val.selectId == 1){
  915. this.hemorrhage_state = true
  916. this.formValue.is_hemorrhage = val.selectId
  917. }else if(val.selectId == 2){
  918. this.hemorrhage_state = false
  919. this.formValue.is_hemorrhage = val.selectId
  920. }else if(this.formValue.is_hemorrhage == -2){
  921. }
  922. break
  923. case 20:
  924. if( val.selectId == 1){
  925. this.infect_state = true
  926. this.formValue.is_infect = val.selectId
  927. }else if(val.selectId == 2){
  928. this.infect_state = false
  929. this.formValue.is_infect = val.selectId
  930. }else if(this.formValue.is_infect == -2){
  931. }
  932. break
  933. case 21:
  934. this.formValue.skin = val.selectId
  935. break
  936. }
  937. }, QueryPartById: function (val) {
  938. let vascular_access_part_name = ''
  939. let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
  940. for (let i = 0; i < vascular_access.length; i++) {
  941. if (vascular_access[i].id == val) {
  942. vascular_access_part_name = vascular_access[i].name
  943. }
  944. }
  945. return vascular_access_part_name
  946. }, QueryOperaById: function (val) {
  947. let vascular_access_desc_name = ''
  948. let vascular_access_desc = getDataConfig('hemodialysis', 'vascular_access_desc')
  949. for (let i = 0; i < vascular_access_desc.length; i++) {
  950. if (vascular_access_desc[i].id == val) {
  951. vascular_access_desc_name = vascular_access_desc[i].name
  952. }
  953. }
  954. return vascular_access_desc_name
  955. },
  956. GetCatheterBendById: function (val) {
  957. let name = ''
  958. let options = this.$store.getters.catheter_bend
  959. for (let index = 0; index < options.length; index++) {
  960. const option = options[index]
  961. if (option.id == val) {
  962. name = option.name
  963. break
  964. }
  965. }
  966. return name
  967. },
  968. commitInfo: function () {
  969. Toast.loading({forbidClick: true, duration: 0})
  970. console.log(this.formValue)
  971. EditAssessmentBeforeDislysis(this.$route.query.patient_id, this.record_date, this.formValue).then(response => {
  972. if (response.data.state == 0) {
  973. Toast(response.data.msg)
  974. return false
  975. } else {
  976. Toast('提交完成')
  977. this.$emit('evaluation', response.data.data.evaluation)
  978. }
  979. })
  980. },
  981. close: function () {
  982. this.$emit('close')
  983. }, open: function () {
  984. this.isShowDialog = true
  985. this.visibility = false
  986. var dialogTop = document.querySelector('#dialogTop')
  987. if (dialogTop != null) {
  988. this.$nextTick(() => {
  989. dialogTop.scrollTop = 0
  990. })
  991. }
  992. },menuEmpty:function (val) {
  993. this.visibility = false
  994. this.isShowDialog = true
  995. switch (val.type) {
  996. case 6:
  997. this.formValue.blood_access_part_id = ''
  998. break
  999. case 7:
  1000. this.formValue.blood_access_part_opera_id = ''
  1001. break
  1002. case 11:
  1003. this.formValue.catheter_bend = ''
  1004. break
  1005. case 13:
  1006. this.formValue.blood_access_noise = ''
  1007. break
  1008. case 14:
  1009. this.formValue.venous_catheterization = ''
  1010. break
  1011. case 15:
  1012. this.formValue.venous_catheterization_part = ''
  1013. break
  1014. case 17:
  1015. this.formValue.emergency_treatment = ''
  1016. break
  1017. case 18:
  1018. this.formValue.puncture_way = ''
  1019. break
  1020. }
  1021. }
  1022. }, components: {
  1023. CheckBoxSubMenu,
  1024. }, created () {
  1025. var date = this.$route.query && this.$route.query.date
  1026. date *= 1000
  1027. var newDate = new Date(date)
  1028. var y = newDate.getFullYear()
  1029. var m = newDate.getMonth() + 1
  1030. var d = newDate.getDate()
  1031. if (isNaN(y) || isNaN(m) || isNaN(d)) {
  1032. newDate = new Date()
  1033. y = newDate.getFullYear()
  1034. m = newDate.getMonth() + 1
  1035. d = newDate.getDate()
  1036. }
  1037. this.record_date = y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
  1038. // console.log(this.predialysis)
  1039. this.formValue = this.predialysis
  1040. if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
  1041. this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
  1042. this.$set(this.formValue, 'internal_fistula', this.last_predialysis['internal_fistula'])
  1043. this.$set(this.formValue, 'internal_fistula_skin', this.last_predialysis['internal_fistula_skin'])
  1044. this.$set(this.formValue, 'blood_access_part_id', this.last_predialysis['blood_access_part_id'])
  1045. this.$set(this.formValue, 'blood_access_part_opera_id', this.last_predialysis['blood_access_part_opera_id'])
  1046. }
  1047. this.hemorrhage_state = this.formValue.is_hemorrhage == 0
  1048. }
  1049. }
  1050. </script>
  1051. <style style="stylesheet/scss" lang="scss" scoped>
  1052. .textarea {
  1053. width: 100%;
  1054. height: 2.4rem;
  1055. line-height: 0.6rem;
  1056. color: $pgh-color;
  1057. font-size: 0.28rem;
  1058. padding-left: 0.36rem;
  1059. border: none;
  1060. border-bottom: 1px #e5e5e5 solid;
  1061. }
  1062. </style>