Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

monitor_dialog.vue 71KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672
  1. <template>
  2. <div class="dialog_box">
  3. <el-dialog
  4. title="透析监测"
  5. :visible.sync="visible"
  6. width="1100px"
  7. @close="reset"
  8. :modal-append-to-body="false" >
  9. <div v-show="edit == false">
  10. <div class="txsj">
  11. <el-button round :disabled="!is_has_create" @click="newRecordAction"
  12. >新增监测</el-button
  13. >
  14. <el-button
  15. round
  16. :disabled="!is_has_modify && !is_has_modify_other"
  17. @click="modifyRecordAction"
  18. >修改监测</el-button
  19. >
  20. <el-button
  21. round
  22. :disabled="!is_has_del && !is_has_del_other"
  23. @click="deleteRecordAction"
  24. >删除监测</el-button
  25. >
  26. </div>
  27. <el-table
  28. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  29. ref="table"
  30. :data="monitors"
  31. border
  32. highlight-current-row
  33. @current-change="tableCurrentRowChange"
  34. style="width: 100%"
  35. :class="current_row_class"
  36. >
  37. <el-table-column
  38. label="监测时间"
  39. align="center"
  40. width="144"
  41. v-if="isShow('监测时间')"
  42. >
  43. <template slot-scope="scope">
  44. {{ getMonitorDate(scope.row) }}
  45. </template>
  46. </el-table-column>
  47. <el-table-column
  48. prop="temperature"
  49. align="center"
  50. width="100"
  51. label="体温(℃)"
  52. v-if="isShow('体温')"
  53. >
  54. <template slot-scope="scope">
  55. {{ scope.row.temperature ? scope.row.temperature : "" }}
  56. </template>
  57. </el-table-column>
  58. <el-table-column
  59. align="center"
  60. label="血压(mmHg)"
  61. width="110"
  62. v-if="isShow('血压')"
  63. >
  64. <template slot-scope="scope">
  65. {{
  66. scope.row.systolic_blood_pressure
  67. ? scope.row.systolic_blood_pressure
  68. : ""
  69. }}/{{
  70. scope.row.diastolic_blood_pressure
  71. ? scope.row.diastolic_blood_pressure
  72. : ""
  73. }}
  74. </template>
  75. </el-table-column>
  76. <el-table-column
  77. prop="pulse_frequency"
  78. align="center"
  79. width="100"
  80. label="脉搏(次/分)"
  81. v-if="isShow('脉搏')"
  82. >
  83. <template slot-scope="scope">
  84. {{ scope.row.pulse_frequency ? scope.row.pulse_frequency : "" }}
  85. </template>
  86. </el-table-column>
  87. <el-table-column
  88. prop="breathing_rate"
  89. align="center"
  90. label="呼吸频率(次/分)"
  91. width="100"
  92. v-if="isShow('呼吸频率')"
  93. >
  94. <template slot-scope="scope">
  95. {{ scope.row.breathing_rate ? scope.row.breathing_rate : "" }}
  96. </template>
  97. </el-table-column>
  98. <el-table-column v-if="monitors[0] && monitors[0]['venous_pressure_type'] == 2" prop="venous_pressure" align="center" label="静脉压/动脉压(kpa)" width="120" >
  99. <template slot-scope="scope">
  100. <span>{{ scope.row.venous_pressure ? scope.row.venous_pressure : "" }}/ {{ scope.row.arterial_pressure ? scope.row.arterial_pressure : "" }}</span>
  101. </template>
  102. </el-table-column>
  103. <el-table-column v-else prop="venous_pressure" align="center" label="静脉压/动脉压(mmHg)" width="120" >
  104. <template slot-scope="scope">
  105. <span>{{ scope.row.venous_pressure ? scope.row.venous_pressure : "" }}/ {{ scope.row.arterial_pressure ? scope.row.arterial_pressure : "" }}</span>
  106. </template>
  107. </el-table-column>
  108. <el-table-column
  109. prop="blood_flow_volume"
  110. align="center"
  111. label="血流量(ml/min)"
  112. width="120"
  113. v-if="isShow('血流量')"
  114. >
  115. <template slot-scope="scope">
  116. {{
  117. scope.row.blood_flow_volume ? scope.row.blood_flow_volume : ""
  118. }}
  119. </template>
  120. </el-table-column>
  121. <el-table-column prop="transmembrane_pressure" align="center" label="跨膜压(kpa)" width="120" v-if="isShow('跨膜压') && (monitors[0] && monitors[0]['transmembrane_pressure_type'] == 2)" >
  122. <template slot-scope="scope">
  123. {{ scope.row.transmembrane_pressure ? scope.row.transmembrane_pressure : "" }}
  124. </template>
  125. </el-table-column>
  126. <el-table-column prop="transmembrane_pressure" align="center" label="跨膜压(mmHg)" width="120" v-if="isShow('跨膜压') && (monitors[0] && monitors[0]['transmembrane_pressure_type'] != 2)" >
  127. <template slot-scope="scope">
  128. {{ scope.row.transmembrane_pressure ? scope.row.transmembrane_pressure : "" }}
  129. </template>
  130. </el-table-column>
  131. <el-table-column
  132. prop="ultrafiltration_volume"
  133. align="center"
  134. label="超滤量(ml)"
  135. width="110"
  136. v-if="
  137. isShow('超滤量') &&
  138. (template_id == 6 ||
  139. template_id == 9 ||
  140. template_id == 10 ||
  141. template_id == 11 ||
  142. template_id == 12 ||
  143. template_id == 13 ||
  144. template_id == 17 ||
  145. template_id == 18 ||
  146. template_id == 19 ||
  147. template_id == 20 ||
  148. template_id == 21 ||
  149. template_id == 22 ||
  150. template_id == 23 ||
  151. template_id == 24 ||
  152. template_id == 26 ||
  153. template_id == 27 ||
  154. template_id == 29 ||
  155. template_id == 30 ||
  156. template_id == 31 ||
  157. template_id == 32 ||
  158. template_id == 34 ||
  159. template_id == 35 ||
  160. template_id == 36 ||
  161. template_id == 38 ||
  162. template_id == 39 ||
  163. template_id == 40 ||
  164. template_id == 41 ||
  165. template_id == 43 ||
  166. org_id == 9555)
  167. "
  168. >
  169. <template slot-scope="scope">
  170. {{
  171. scope.row.ultrafiltration_volume
  172. ? scope.row.ultrafiltration_volume
  173. : ""
  174. }}
  175. </template>
  176. </el-table-column>
  177. <el-table-column
  178. prop="ultrafiltration_volume"
  179. align="center"
  180. label="超滤量(L)"
  181. width="110"
  182. v-if="
  183. isShow('超滤量') &&
  184. template_id != 6 &&
  185. template_id !=9 &&
  186. template_id != 10 &&
  187. template_id != 11 &&
  188. template_id != 12 &&
  189. template_id != 13 &&
  190. template_id != 17 &&
  191. template_id != 18 &&
  192. template_id != 19 &&
  193. template_id != 20 &&
  194. template_id != 21 &&
  195. template_id != 22 &&
  196. template_id != 23 &&
  197. template_id != 24 &&
  198. template_id != 26 &&
  199. template_id != 27 &&
  200. template_id != 29 &&
  201. template_id != 30 &&
  202. template_id != 31 &&
  203. template_id != 32 &&
  204. template_id != 34 &&
  205. template_id != 35 &&
  206. template_id != 36 &&
  207. template_id != 38 &&
  208. template_id != 39 &&
  209. template_id != 40 &&
  210. template_id != 41 &&
  211. template_id != 43 &&
  212. org_id!=9555
  213. "
  214. >
  215. <template slot-scope="scope">
  216. {{
  217. scope.row.ultrafiltration_volume
  218. ? scope.row.ultrafiltration_volume
  219. : ""
  220. }}
  221. </template>
  222. </el-table-column>
  223. <el-table-column
  224. prop="displacement_flow_quantity"
  225. align="center"
  226. label="超滤率(ml/h)"
  227. width="100"
  228. v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43) "
  229. >
  230. <template slot-scope="scope">
  231. {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : "" }}
  232. </template>
  233. </el-table-column>
  234. <el-table-column
  235. prop="displacement_flow_quantity"
  236. align="center"
  237. label="超滤率(L/h)"
  238. width="100"
  239. v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35 && template_id != 38 && template_id != 41 && template_id != 43"
  240. >
  241. <template slot-scope="scope">
  242. {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : "" }}
  243. </template>
  244. </el-table-column>
  245. <el-table-column
  246. prop="sodium_concentration"
  247. align="center"
  248. label="钠浓度(mmol/L)"
  249. width="126"
  250. v-if="isShow('钠浓度')"
  251. >
  252. <template slot-scope="scope">
  253. {{
  254. scope.row.sodium_concentration
  255. ? scope.row.sodium_concentration
  256. : ""
  257. }}
  258. </template>
  259. </el-table-column>
  260. <el-table-column
  261. prop="dialysate_temperature"
  262. align="center"
  263. label="透析液温度(℃)"
  264. width="120"
  265. v-if="isShow('透析液温度')"
  266. >
  267. <template slot-scope="scope">
  268. {{
  269. scope.row.dialysate_temperature
  270. ? scope.row.dialysate_temperature
  271. : ""
  272. }}
  273. </template>
  274. </el-table-column>
  275. <el-table-column
  276. prop="replacement_rate"
  277. align="center"
  278. label="置换率(ml/min)"
  279. width="120"
  280. v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" >
  281. <template slot-scope="scope">
  282. {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
  283. </template>
  284. </el-table-column>
  285. <el-table-column
  286. prop="replacement_rate"
  287. align="center"
  288. label="置换率(L/h)"
  289. width="120"
  290. v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29">
  291. <template slot-scope="scope">
  292. {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
  293. </template>
  294. </el-table-column>
  295. <el-table-column
  296. prop="displacement_quantity"
  297. align="center"
  298. label="置换量(ml)"
  299. width="100"
  300. v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id!=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" >
  301. <template slot-scope="scope">
  302. {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
  303. </template>
  304. </el-table-column>
  305. <el-table-column
  306. prop="displacement_quantity"
  307. align="center"
  308. label="置换量(L)"
  309. width="100"
  310. v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && template_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)" >
  311. <template slot-scope="scope">
  312. {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
  313. </template>
  314. </el-table-column>
  315. <el-table-column
  316. prop="displacement_quantity"
  317. align="center"
  318. label="SpO₂(%)"
  319. width="100"
  320. v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11 " >
  321. <template slot-scope="scope">
  322. {{ scope.row.blood_oxygen_saturation ? scope.row.blood_oxygen_saturation : "" }}
  323. </template>
  324. </el-table-column>
  325. <el-table-column
  326. prop="displacement_flow_quantity"
  327. align="center"
  328. label="电导度(mS/m)"
  329. width="100"
  330. v-if="isShow('电导度')"
  331. >
  332. <template slot-scope="scope">
  333. {{ scope.row.conductivity ? scope.row.conductivity : "" }}
  334. </template>
  335. </el-table-column>
  336. <el-table-column
  337. prop="displacement_flow_quantity"
  338. align="center"
  339. label="置换液流量(ml/h)"
  340. width="100"
  341. v-if="isShow('置换液流量') && template_id != 27"
  342. >
  343. <template slot-scope="scope">
  344. {{ scope.row.displacement_flow_quantity ? scope.row.displacement_flow_quantity : "" }}
  345. </template>
  346. </el-table-column>
  347. <el-table-column
  348. prop="displacement_flow_quantity"
  349. align="center"
  350. label="置换液流量(ml/min)"
  351. width="100"
  352. v-if="isShow('置换液流量') && template_id == 27"
  353. >
  354. <template slot-scope="scope">
  355. {{ scope.row.displacement_flow_quantity ? scope.row.displacement_flow_quantity : "" }}
  356. </template>
  357. </el-table-column>
  358. <el-table-column
  359. prop="displacement_flow_quantity"
  360. align="center"
  361. label="透析液流量(ml/h)"
  362. width="100"
  363. v-if="isShow('透析液流量')"
  364. >
  365. <template slot-scope="scope">
  366. {{ scope.row.dialysate_flow ? scope.row.dialysate_flow : "" }}
  367. </template>
  368. </el-table-column>
  369. <el-table-column
  370. prop="heparin"
  371. align="center"
  372. label="肝素用量余量(ml)"
  373. width="140"
  374. v-if="isShow('肝素用量余量')"
  375. >
  376. </el-table-column>
  377. <el-table-column
  378. prop="heparin"
  379. align="center"
  380. label="抗凝剂"
  381. width="140"
  382. v-if="isShow('抗凝剂')"
  383. >
  384. <template slot-scope="scope">
  385. <span v-if="scope.row.monitor_anticoagulant == 1">无肝素</span>
  386. <span v-if="scope.row.monitor_anticoagulant == 2">普通肝素</span>
  387. <span v-if="scope.row.monitor_anticoagulant == 3">低分子肝素</span>
  388. <span v-if="scope.row.monitor_anticoagulant == 4">阿加曲班</span>
  389. <span v-if="scope.row.monitor_anticoagulant == 5">枸橼酸钠</span>
  390. <span v-if="scope.row.monitor_anticoagulant == 6">低分子肝素钙</span>
  391. <span v-if="scope.row.monitor_anticoagulant == 7">低分子肝素钠</span>
  392. <span v-if="scope.row.monitor_anticoagulant == 8">依诺肝素</span>
  393. <span v-if="scope.row.monitor_anticoagulant == 9">达肝素</span>
  394. <span v-if="scope.row.monitor_anticoagulant == 12">无抗凝剂</span>
  395. <span v-if="scope.row.monitor_anticoagulant_value!=''">({{ scope.row.monitor_anticoagulant_value ? scope.row.monitor_anticoagulant_value : "" }})</span>
  396. </template>
  397. </el-table-column>
  398. <el-table-column
  399. prop="heparin"
  400. align="center"
  401. label="血压监测部位"
  402. width="140"
  403. v-if="isShow('血压监测部位')"
  404. >
  405. <template slot-scope="scope">
  406. {{ getBloodPressure(scope.row.blood_pressure_monitoring_site)}}
  407. </template>
  408. </el-table-column>
  409. <el-table-column
  410. prop="heparin"
  411. align="center"
  412. label="并发症"
  413. width="140"
  414. v-if="isShow('并发症')"
  415. >
  416. <template slot-scope="scope">
  417. {{getComplication(scope.row.complication)}}
  418. </template>
  419. </el-table-column>
  420. <el-table-column
  421. prop="heparin"
  422. align="center"
  423. label="累计血容量(ml)"
  424. width="140"
  425. v-if="isShow('累计血容量')"
  426. >
  427. <template slot-scope="scope">
  428. {{scope.row.accumulated_blood_volume}}
  429. </template>
  430. </el-table-column>
  431. <el-table-column
  432. prop="heparin"
  433. align="center"
  434. label="血温监测"
  435. width="140"
  436. v-if="isShow('血温监测')"
  437. >
  438. <template slot-scope="scope">
  439. {{scope.row.blood_temperature}}
  440. </template>
  441. </el-table-column>
  442. <el-table-column
  443. prop="heparin"
  444. align="center"
  445. label="尿素监测"
  446. width="140"
  447. v-if="isShow('尿素监测')"
  448. >
  449. <template slot-scope="scope">
  450. {{scope.row.urea_monitoring}}
  451. </template>
  452. </el-table-column>
  453. <el-table-column
  454. prop="heparin"
  455. align="center"
  456. label="血浓量"
  457. width="140"
  458. v-if="isShow('血浓量')"
  459. >
  460. <template slot-scope="scope">
  461. {{scope.row.blood_thickness}}
  462. </template>
  463. </el-table-column>
  464. <el-table-column
  465. prop="heparin"
  466. align="center"
  467. label="血压监测"
  468. width="140"
  469. v-if="isShow('血压监测')"
  470. >
  471. <template slot-scope="scope">
  472. {{scope.row.blood_monitor}}
  473. </template>
  474. </el-table-column>
  475. <el-table-column
  476. prop="heparin"
  477. align="center"
  478. label="KT/V"
  479. width="140"
  480. v-if="isShow('KT/V') && org_id == 9987"
  481. >
  482. <template slot-scope="scope">
  483. {{ scope.row.ktv ? scope.row.ktv : "" }}
  484. </template>
  485. </el-table-column>
  486. <el-table-column
  487. prop="symptom"
  488. align="center"
  489. label="病情变化"
  490. width="130"
  491. v-if="isShow('病情变化')"
  492. >
  493. </el-table-column>
  494. <el-table-column
  495. prop="dispose"
  496. align="center"
  497. label="处理"
  498. width="130"
  499. v-if="isShow('处理')"
  500. >
  501. </el-table-column>
  502. <el-table-column
  503. prop="result"
  504. align="center"
  505. label="结果"
  506. width="130"
  507. v-if="isShow('结果')"
  508. >
  509. </el-table-column>
  510. </el-table>
  511. </div>
  512. <!--<div v-show="edit">-->
  513. <el-form v-show="edit" ref="form" :model="form" label-width="130px">
  514. <el-row :gutter="20">
  515. <el-col :span="8" v-if="isShow('监测时间')">
  516. <el-form-item label="监测时间:">
  517. <!-- {{ monitor_date_str }}
  518. <el-time-picker v-model="form.monitoring_time" :clearable="false" arrow-control :picker-options="{format: 'HH:mm'}" prefix-icon="" value-format="HH:mm" style="width: 60%;">
  519. </el-time-picker> -->
  520. <el-date-picker
  521. v-model="form.operate_time"
  522. type="datetime"
  523. prefix-icon=""
  524. style="width: 100%"
  525. format="yyyy-MM-dd HH:mm"
  526. value-format="timestamp"
  527. ></el-date-picker>
  528. </el-form-item>
  529. </el-col>
  530. <el-col :span="8" v-if="isShow('体温')">
  531. <el-form-item label="体温(℃):">
  532. <el-input v-model="form.temperature"></el-input>
  533. </el-form-item>
  534. </el-col>
  535. <el-col :span="8" v-if="isShow('收缩压')">
  536. <el-form-item label="收缩压(mmHg):">
  537. <el-input v-model="form.systolic_bp"></el-input>
  538. </el-form-item>
  539. </el-col>
  540. <el-col :span="8" v-if="isShow('舒张压')">
  541. <el-form-item label="舒张压(mmHg):">
  542. <el-input v-model="form.diastolic_bp"></el-input>
  543. </el-form-item>
  544. </el-col>
  545. <el-col :span="8" v-if="isShow('脉搏')">
  546. <el-form-item label="脉搏(次/分):">
  547. <el-input v-model="form.pulse_frequency"></el-input>
  548. </el-form-item>
  549. </el-col>
  550. <el-col :span="8" v-if="isShow('呼吸频率')">
  551. <el-form-item label="呼吸频率(次/分):">
  552. <el-input v-model="form.breathing_rated"></el-input>
  553. </el-form-item>
  554. </el-col>
  555. <el-col :span="8" v-if="isShow('静脉压')">
  556. <el-form-item v-if="form.venous_pressure_type == 2" label="静脉压(kpa):">
  557. <el-input
  558. style="width: 140px"
  559. v-model="form.venous_pressure"
  560. ></el-input>
  561. <el-button
  562. size="mini"
  563. type="primary"
  564. @click="venousPressureChangeOne"
  565. >切换</el-button
  566. >
  567. </el-form-item>
  568. <el-form-item v-else label="静脉压(mmHg):">
  569. <el-input
  570. style="width: 140px"
  571. v-model="form.venous_pressure"
  572. ></el-input>
  573. <el-button
  574. size="mini"
  575. type="primary"
  576. @click="venousPressureChangeOne"
  577. >切换</el-button
  578. >
  579. </el-form-item>
  580. </el-col>
  581. <el-col :span="8" v-if="isShow('动脉压')">
  582. <el-form-item v-if="form.arterial_pressure_type == 2" label="动脉压(kpa):">
  583. <el-input style="width: 140px" v-model="form.arterial_pressure" ></el-input>
  584. <el-button size="mini" type="primary" @click="venousPressureChangeThree" >切换</el-button >
  585. </el-form-item>
  586. <el-form-item v-else label="动脉压(mmHg):">
  587. <el-input style="width: 140px" v-model="form.arterial_pressure" ></el-input>
  588. <el-button size="mini" type="primary" @click="venousPressureChangeThree" >切换</el-button >
  589. </el-form-item>
  590. </el-col>
  591. <el-col :span="8" v-if="isShow('血流量')">
  592. <el-form-item label="血流量(ml/min):">
  593. <el-input v-model="form.blood_flow_volume"></el-input>
  594. </el-form-item>
  595. </el-col>
  596. <el-col :span="8" v-if="isShow('跨膜压')">
  597. <el-form-item v-if="form.transmembrane_pressure_type == 2" label="跨膜压(kpa):">
  598. <el-input style="width: 140px" v-model="form.transmembrane_pressure" ></el-input>
  599. <el-button size="mini" type="primary" @click="venousPressureChangeTwo" >切换</el-button >
  600. </el-form-item>
  601. <el-form-item v-else label="跨膜压(mmHg):">
  602. <el-input style="width: 140px" v-model="form.transmembrane_pressure" ></el-input>
  603. <el-button size="mini" type="primary" @click="venousPressureChangeTwo" >切换</el-button >
  604. </el-form-item>
  605. </el-col>
  606. <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43) ">
  607. <el-form-item label="超滤率(ml/h)">
  608. <el-input v-model="form.ultrafiltration_rate"></el-input>
  609. </el-form-item>
  610. </el-col>
  611. <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35 && template_id != 38 && template_id != 41 && template_id != 43">
  612. <el-form-item label="超滤率(L/h)">
  613. <el-input v-model="form.ultrafiltration_rate"></el-input>
  614. </el-form-item>
  615. </el-col>
  616. <el-col
  617. :span="8"
  618. v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 41 || template_id == 43 || org_id == 9555) " >
  619. <el-form-item label="超滤量(ml):">
  620. <el-input v-model="form.ultrafiltration_volume"></el-input>
  621. </el-form-item>
  622. </el-col>
  623. <el-col
  624. :span="8"
  625. v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id!=41 && template_id!=43 && org_id !=9555" >
  626. <el-form-item label="超滤量(L):">
  627. <el-input v-model="form.ultrafiltration_volume"></el-input>
  628. </el-form-item>
  629. </el-col>
  630. <el-col :span="8" v-if="isShow('钠浓度')">
  631. <el-form-item label="钠浓度(mmol/L):">
  632. <el-input v-model="form.sodium_concentration"></el-input>
  633. </el-form-item>
  634. </el-col>
  635. <!-- </el-row>
  636. <el-row :gutter="20"> -->
  637. <el-col :span="8" v-if="isShow('透析液温度')">
  638. <el-form-item label="透析液温度(℃):">
  639. <el-input v-model="form.dialysate_temperature"></el-input>
  640. </el-form-item>
  641. </el-col>
  642. <el-col :span="8" v-if="isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29">
  643. <el-form-item label="置换率(L/h):">
  644. <el-input v-model="form.replacement_rate"></el-input>
  645. </el-form-item>
  646. </el-col>
  647. <el-col :span="8" v-if="isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)">
  648. <el-form-item label="置换率(ml/min):">
  649. <el-input v-model="form.replacement_rate"></el-input>
  650. </el-form-item>
  651. </el-col>
  652. <el-col :span="8" v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)">
  653. <el-form-item label="置换量(L):">
  654. <el-input v-model="form.displacement_quantity"></el-input>
  655. </el-form-item>
  656. </el-col>
  657. <el-col :span="8" v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id!=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)">
  658. <el-form-item label="置换量(ml):">
  659. <el-input v-model="form.displacement_quantity"></el-input>
  660. </el-form-item>
  661. </el-col>
  662. <el-col :span="8" v-if="isShow('电导度')">
  663. <el-form-item label="电导度(mS/m):">
  664. <el-input v-model="form.conductivity"></el-input>
  665. </el-form-item>
  666. </el-col>
  667. <el-col :span="8" v-if="isShow('置换液流量') && template_id != 27">
  668. <el-form-item label="置换液流量(ml/h):">
  669. <el-input v-model="form.displacement_flow_quantity"></el-input>
  670. </el-form-item>
  671. </el-col>
  672. <el-col :span="8" v-if="isShow('置换液流量') && template_id == 27">
  673. <el-form-item label="置换液流量(ml/min):">
  674. <el-input v-model="form.displacement_flow_quantity"></el-input>
  675. </el-form-item>
  676. </el-col>
  677. <el-col :span="8" v-if="isShow('透析液流量')">
  678. <el-form-item label="透析液流量(ml/h):">
  679. <el-input v-model="form.dialysate_flow"></el-input>
  680. </el-form-item>
  681. </el-col>
  682. <el-col :span="8" v-if="isShow('SpO₂')">
  683. <el-form-item label="SpO₂(%):">
  684. <el-input v-model="form.blood_oxygen_saturation"></el-input>
  685. </el-form-item>
  686. </el-col>
  687. <el-col :span="8" v-if="isShow('血糖')">
  688. <el-form-item label="血糖(mmol/L):">
  689. <el-input v-model="form.blood_sugar"></el-input>
  690. </el-form-item>
  691. </el-col>
  692. <el-col :span="8" v-if="isShow('肝素用量余量')">
  693. <el-form-item label="肝素用量余量(ml):">
  694. <el-input v-model="form.heparin"></el-input>
  695. </el-form-item>
  696. </el-col>
  697. <el-col :span="8" v-if="isShow('抗凝剂')">
  698. <el-form-item label="抗凝剂:">
  699. <div style="display:flex;">
  700. <el-select v-model="form.monitor_anticoagulant" placeholder="请选择" style="width:50%;">
  701. <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name" :key="index + 'e'" :value="item.id"></el-option>
  702. </el-select>
  703. <el-input v-model="form.monitor_anticoagulant_value" style="width:49%;margin-left:10px;"></el-input>
  704. </div>
  705. </el-form-item>
  706. </el-col>
  707. <el-col :span="8" v-if="isShow('血压监测部位')">
  708. <el-form-item label="血压监测部位:">
  709. <div style="display:flex;">
  710. <el-select v-model="form.blood_pressure_monitoring_site" placeholder="请选择" style="width:50%;">
  711. <el-option v-for="(item, index) in bloodPressureMmonitoringSite" :label="item.name" :key="index + 'e'" :value="item.id"></el-option>
  712. </el-select>
  713. </div>
  714. </el-form-item>
  715. </el-col>
  716. <el-col :span="8" v-if="isShow('并发症')">
  717. <el-form-item label="并发症">
  718. <div style="display:flex;">
  719. <el-select v-model="form.complication" placeholder="请选择" style="width:50%;">
  720. <el-option v-for="(item, index) in complicationList" :label="item.name" :key="index + 'e'" :value="item.id"></el-option>
  721. </el-select>
  722. </div>
  723. </el-form-item>
  724. </el-col>
  725. <el-col :span="8" v-if=" isShow('累计血容量')">
  726. <el-form-item label="累计血容量(ml):">
  727. <el-input v-model="form.accumulated_blood_volume"></el-input>
  728. </el-form-item>
  729. </el-col>
  730. <el-col :span="8" v-if=" isShow('血温监测')">
  731. <el-form-item label="血温监测">
  732. <el-input v-model="form.blood_temperature"></el-input>
  733. </el-form-item>
  734. </el-col>
  735. <el-col :span="8" v-if=" isShow('尿素监测')">
  736. <el-form-item label="尿素监测">
  737. <el-input v-model="form.urea_monitoring"></el-input>
  738. </el-form-item>
  739. </el-col>
  740. <el-col :span="8" v-if=" isShow('血浓量')">
  741. <el-form-item label="血浓量">
  742. <el-input v-model="form.blood_thickness"></el-input>
  743. </el-form-item>
  744. </el-col>
  745. <el-col :span="8" v-if=" isShow('血压监测')">
  746. <el-form-item label="血压监测">
  747. <el-input v-model="form.blood_monitor"></el-input>
  748. </el-form-item>
  749. </el-col>
  750. <!-- </el-row>
  751. <el-row :gutter="20"> -->
  752. <el-col :span="24" v-if="isShow('KT/V')">
  753. <el-form-item label="KT/V(在线):">
  754. <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
  755. </el-form-item>
  756. </el-col>
  757. <el-col :span="24" v-if="isShow('URR')">
  758. <el-form-item label="URR:">
  759. <el-input type="textarea" :rows="4" v-model="form.urr"></el-input>
  760. </el-form-item>
  761. </el-col>
  762. <!-- </el-row>
  763. <el-row :gutter="20"> -->
  764. <el-col :span="24" v-if="isShow('病情变化')">
  765. <el-form-item label="病情变化:">
  766. <el-select
  767. v-model="symptom_selecteds"
  768. style="width: 100%"
  769. :multiple="true"
  770. collapse-tags
  771. @change="symptomSelectorChange"
  772. >
  773. <el-option
  774. v-for="(symptom, index) in symptom_options"
  775. :key="index"
  776. :label="symptom.name"
  777. :value="symptom.name"
  778. ></el-option>
  779. </el-select>
  780. </el-form-item>
  781. </el-col>
  782. <!-- </el-row>
  783. <el-row :gutter="20"> -->
  784. <el-col :span="24" v-if="isShow('病情变化')">
  785. <el-form-item>
  786. <el-input
  787. type="textarea"
  788. :rows="4"
  789. v-model="form.symptom"
  790. @blur="symptomTextareaBlur"
  791. ></el-input>
  792. </el-form-item>
  793. </el-col>
  794. <!-- </el-row>
  795. <el-row :gutter="20"> -->
  796. <el-col :span="24" v-if="isShow('处理')">
  797. <el-form-item label="处理:">
  798. <el-select
  799. v-model="dispose_selecteds"
  800. style="width: 100%"
  801. :multiple="true"
  802. collapse-tags
  803. @change="disposeSelectorChange"
  804. >
  805. <el-option
  806. v-for="(dispose, index) in dispose_options"
  807. :key="index"
  808. :label="dispose.name"
  809. :value="dispose.name"
  810. ></el-option>
  811. </el-select>
  812. </el-form-item>
  813. </el-col>
  814. <!-- </el-row>
  815. <el-row :gutter="20"> -->
  816. <el-col :span="24" v-if="isShow('处理')">
  817. <el-form-item>
  818. <el-input
  819. type="textarea"
  820. :rows="4"
  821. v-model="form.dispose"
  822. @blur="disposeTextareaBlur"
  823. ></el-input>
  824. </el-form-item>
  825. </el-col>
  826. <!-- </el-row>
  827. <el-row :gutter="20"> -->
  828. <el-col :span="24" v-if="isShow('结果')">
  829. <el-form-item label="结果:">
  830. <el-select
  831. v-model="result_selecteds"
  832. style="width: 100%"
  833. :multiple="true"
  834. collapse-tags
  835. @change="resultSelectorChange"
  836. >
  837. <el-option
  838. v-for="(result, index) in result_options"
  839. :key="index"
  840. :label="result.name"
  841. :value="result.name"
  842. ></el-option>
  843. </el-select>
  844. </el-form-item>
  845. </el-col>
  846. <!-- </el-row>
  847. <el-row :gutter="20"> -->
  848. <el-col :span="24" v-if="isShow('结果')">
  849. <el-form-item>
  850. <el-input
  851. type="textarea"
  852. :rows="4"
  853. v-model="form.result"
  854. @blur="resultTextareaBlur"
  855. ></el-input>
  856. </el-form-item>
  857. </el-col>
  858. </el-row>
  859. </el-form>
  860. <div slot="footer" class="dialog-footer" v-show="edit">
  861. <el-button @click="cancelEditAction">取 消</el-button>
  862. <el-button type="primary" @click="submitAction">保 存</el-button>
  863. </div>
  864. <!--</div>-->
  865. </el-dialog>
  866. </div>
  867. </template>
  868. <script>
  869. import { parseTime } from '@/utils'
  870. import { getDataConfig } from '@/utils/data'
  871. import { editMonitor, postDelMonitorInfo, getTodayMonitor } from '@/api/dialysis_record'
  872. import store from '@/store'
  873. import request from '@/utils/request'
  874. export default {
  875. name: 'MonitorDialog',
  876. data() {
  877. return {
  878. is_has_create: true,
  879. is_has_modify: true,
  880. is_has_modify_other: true,
  881. is_has_del: true,
  882. is_has_del_other: true,
  883. visible: false,
  884. edit: false,
  885. current_row_class: 'current-box-class',
  886. creator: 0,
  887. patient_id: 0,
  888. schedule_date: 0,
  889. template_id: 0,
  890. isAdd: false,
  891. // monitoring_date: 0,
  892. form: {
  893. id: 0,
  894. monitoring_date: 0, // 监测日期
  895. // operate_date: 0, // 实际测量日期
  896. // monitoring_time: "", // 监测时间 HH:mm
  897. operate_time: 0,
  898. systolic_bp: '', // 收缩压
  899. diastolic_bp: '', // 舒张压
  900. pulse_frequency: '', // 心率
  901. temperature: '', // 体温
  902. breathing_rated: '', // 呼吸频率
  903. blood_flow_volume: '', // 血流量
  904. venous_pressure: '', // 静脉压
  905. venous_pressure_type: 1, // 静脉压
  906. transmembrane_pressure: '', // 跨膜压
  907. transmembrane_pressure_type: 1, // 跨膜压
  908. ultrafiltration_volume: '', // 超滤量
  909. ultrafiltration_rate: '', // 超滤率
  910. arterial_pressure: '', // 动脉压
  911. arterial_pressure_type: 1, // 动脉压
  912. sodium_concentration: '', // 钠浓度
  913. dialysate_temperature: '', // 透析液温度
  914. replacement_rate: '', // 置换率
  915. displacement_quantity: '', // 置换量
  916. conductivity: '', // 电导度
  917. displacement_flow_quantity: '', // 置换液流量
  918. dialysate_flow: '', // 透析液流量
  919. heparin: '', // 肝素用量余量
  920. ktv: '', // KT/V
  921. symptom: '', // 病情变化
  922. dispose: '', // 处理
  923. result: '', // 结果,
  924. blood_oxygen_saturation: '',
  925. urr:'',
  926. blood_sugar:'',//血糖
  927. monitor_anticoagulant:'',
  928. monitor_anticoagulant_value:"",
  929. blood_pressure_monitoring_site:"",
  930. complication:"",
  931. accumulated_blood_volume:"",
  932. blood_temperature:"",
  933. urea_monitoring:"",
  934. blood_thickness:"",
  935. blood_monitor:"",
  936. },
  937. table_current_row: null,
  938. symptom_selecteds: [],
  939. symptom_options: getDataConfig('hemodialysis', 'symptoms'),
  940. dispose_selecteds: [],
  941. dispose_options: getDataConfig('hemodialysis', 'deals'),
  942. result_selecteds: [],
  943. result_options: getDataConfig('hemodialysis', 'results'),
  944. valueOne: 0,
  945. valueTwo: 0,
  946. valueThree: 0,
  947. anticoagulantsConfit:{},
  948. bloodPressureMmonitoringSite:[],
  949. complicationList:[],
  950. }
  951. },
  952. props: {
  953. monitors: {
  954. type: Array
  955. },
  956. patient:{
  957. type: Object
  958. }
  959. },
  960. computed: {
  961. monitor_date_str: function() {
  962. return parseTime(this.form.monitoring_date, '{y}-{m}-{d}')
  963. }
  964. },
  965. created() {
  966. this.template_id = this.$store.getters.xt_user.template_info.template_id;
  967. this.org_id = this.$store.getters.xt_user.template_info.org_id;
  968. var date = this.$route.query.date;
  969. var patient_id = this.$route.query.patient_id;
  970. this.patient_id = patient_id ? patient_id : this.patient.id;
  971. console.log('this.patient_id',this.patient_id)
  972. this.schedule_date = date ? date : new Date(new Date().toLocaleDateString()).getTime() / 1000;
  973. this.form.monitoring_date = date ? date : new Date(new Date().toLocaleDateString()).getTime() / 1000;
  974. // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
  975. // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
  976. this.form.operate_time = new Date().getTime();
  977. var symptoms = getDataConfig('hemodialysis', 'symptoms');
  978. console.log("sysmptoms3333333333",symptoms);
  979. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  980. //console.log("抗凝剂",this.anticoagulantsConfit)
  981. this.bloodPressureMmonitoringSite = getDataConfig('hemodialysis','blood_pressure_monitoring_site');
  982. this.complicationList = getDataConfig('hemodialysis','complication')
  983. },
  984. methods: {
  985. venousPressureChange(type) {
  986. if (type == 1) {
  987. this.form.venous_pressure = Math.ceil(
  988. Math.round(this.form.venous_pressure * 7.5)
  989. )
  990. } else if (type == 2) {
  991. this.form.transmembrane_pressure = Math.ceil(
  992. Math.round(this.form.transmembrane_pressure * 7.5)
  993. )
  994. } else {
  995. this.form.arterial_pressure = Math.ceil(
  996. Math.round(this.form.arterial_pressure * 7.5)
  997. )
  998. }
  999. },
  1000. venousPressureChangeOne() {
  1001. if (this.form.venous_pressure_type == 1) {
  1002. this.form.venous_pressure_type = 2
  1003. } else {
  1004. this.form.venous_pressure_type = 1
  1005. }
  1006. // if (this.valueOne == 0) {
  1007. // this.form.venous_pressure = Math.ceil(
  1008. // Math.round(this.form.venous_pressure * 7.5)
  1009. // )
  1010. // this.valueOne = 1
  1011. // return false
  1012. // }
  1013. // if (this.valueOne == 1) {
  1014. // this.form.venous_pressure = Math.ceil(
  1015. // Math.round(this.form.venous_pressure / 7.5)
  1016. // )
  1017. // this.valueOne = 0
  1018. // return false
  1019. // }
  1020. },
  1021. venousPressureChangeThree() {
  1022. if (this.form.arterial_pressure_type == 1) {
  1023. this.form.arterial_pressure_type = 2
  1024. } else {
  1025. this.form.arterial_pressure_type = 1
  1026. }
  1027. // if (this.valueThree == 0) {
  1028. // this.form.arterial_pressure = Math.ceil(
  1029. // Math.round(this.form.arterial_pressure * 7.5)
  1030. // )
  1031. // this.valueThree = 1
  1032. // return false
  1033. // }
  1034. // if (this.valueThree == 1) {
  1035. // this.form.arterial_pressure = Math.ceil(
  1036. // Math.round(this.form.arterial_pressure / 7.5)
  1037. // )
  1038. // this.valueThree = 0
  1039. // return false
  1040. // }
  1041. },
  1042. venousPressureChangeTwo() {
  1043. if (this.form.transmembrane_pressure_type == 1) {
  1044. this.form.transmembrane_pressure_type = 2
  1045. } else {
  1046. this.form.transmembrane_pressure_type = 1
  1047. }
  1048. // if (this.valueTwo == 0) {
  1049. // this.form.transmembrane_pressure = Math.ceil(
  1050. // Math.round(this.form.transmembrane_pressure * 7.5)
  1051. // )
  1052. // this.valueTwo = 1
  1053. // return false
  1054. // }
  1055. // if (this.valueTwo == 1) {
  1056. // this.form.transmembrane_pressure = Math.ceil(
  1057. // Math.round(this.form.transmembrane_pressure / 7.5)
  1058. // )
  1059. // this.valueTwo = 0
  1060. // return false
  1061. // }
  1062. },
  1063. isShow(name) {
  1064. var filedList = store.getters.xt_user.fileds;
  1065. for (let i = 0; i < filedList.length; i++) {
  1066. if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  1067. return true
  1068. }
  1069. }
  1070. return false
  1071. },
  1072. reset: function() {
  1073. this.cancelEditAction()
  1074. },
  1075. show() {
  1076. this.getPermission();
  1077. this.visible = true
  1078. },
  1079. hide() {
  1080. this.visible = false
  1081. },
  1082. getMonitorDate: function(monitor) {
  1083. return parseTime(monitor.operate_time, '{y}-{m}-{d} {h}:{i}')
  1084. },
  1085. newRecordAction: function() {
  1086. this.setEditMonitor(null);
  1087. this.$refs.table.setCurrentRow(null);
  1088. this.edit = true;
  1089. this.isAdd = true;
  1090. this.getLastRecordTody()
  1091. },
  1092. getLastRecordTody() {
  1093. const params = {
  1094. patient_id: this.patient_id
  1095. };
  1096. getTodayMonitor(params).then(rs => {
  1097. console.log("机构ID",this.org_id);
  1098. var resp = rs.data.data;
  1099. this.form.operate_time = resp.monitor.operate_time ? (resp.monitor.operate_time + 3600) * 1000 : Date.parse(new Date());
  1100. this.form.temperature = ''; // this.last_monitor_record.pulse_frequency;
  1101. this.form.pulse_frequency = ''; // this.last_monitor_record.pulse_frequency;
  1102. this.form.breathing_rated = resp.monitor.breathing_rated ? resp.monitor.breathing_rated : '';
  1103. this.form.systolic_bp = ''; // this.last_monitor_record.systolic_blood_pressure;
  1104. this.form.diastolic_bp = ''; // this.last_monitor_record.diastolic_blood_pressure;
  1105. this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : '';
  1106. // 静脉压
  1107. if(this.org_id == 10060){
  1108. this.form.venous_pressure = resp.monitor.venous_pressure
  1109. }else{
  1110. this.form.venous_pressure = '' // this.last_monitor_record.venous_pressure;
  1111. }
  1112. this.form.venous_pressure_type = resp.monitor.venous_pressure_type ? resp.monitor.venous_pressure_type : 1;
  1113. this.form.arterial_pressure = resp.monitor.arterial_pressure ? resp.monitor.arterial_pressure : ''; // this.last_monitor_record.arterial_pressure;
  1114. this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type ? resp.monitor.arterial_pressure_type : 1;
  1115. if(this.org_id == 10060){
  1116. this.form.transmembrane_pressure = resp.monitor.transmembrane_pressure;
  1117. }else{
  1118. this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
  1119. }
  1120. this.form.transmembrane_pressure_type = resp.monitor.transmembrane_pressure_type ? resp.monitor.transmembrane_pressure_type : 1;
  1121. this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate ? resp.monitor.ultrafiltration_rate : '';
  1122. this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : '';
  1123. this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : '';
  1124. this.form.dialysate_temperature = resp.monitor.dialysate_temperature ? resp.monitor.dialysate_temperature : '';
  1125. this.form.temperature = resp.monitor.temperature ? resp.monitor.temperature : '';
  1126. this.form.replacement_rate = resp.monitor.replacement_rate ? resp.monitor.replacement_rate : '';
  1127. this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : '';
  1128. this.form.dialysate_flow = resp.monitor.dialysate_flow ? resp.monitor.dialysate_flow : '';
  1129. this.form.displacement_quantity = resp.monitor.displacement_quantity ? resp.monitor.displacement_quantity : ''; // this.last_monitor_record.displacement_quantity;
  1130. this.form.conductivity = '';
  1131. this.form.displacement_flow_quantity = resp.monitor.displacement_flow_quantity ? resp.monitor.displacement_flow_quantity : '';
  1132. this.form.ktv = resp.monitor.ktv ? resp.monitor.ktv : ''; // this.last_monitor_record.ktv;
  1133. this.form.symptom = resp.monitor.symptom ? resp.monitor.symptom : ''; // this.last_monitor_record.symptom;
  1134. this.form.dispose = resp.monitor.dispose ? resp.monitor.dispose : ''; // this.last_monitor_record.dispose;
  1135. this.form.result = resp.monitor.result ? resp.monitor.result : ''; // this.last_monitor_record.result;
  1136. this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation ? resp.monitor.blood_oxygen_saturation : '';
  1137. this.form.urr = resp.monitor.urr?resp.monitor.urr:'';
  1138. this.form.blood_sugar = resp.monitor.blood_sugar?resp.monitor.blood_sugar:'';
  1139. this.form.sodium_concentration = resp.monitor.sodium_concentration?resp.monitor.sodium_concentration:'';
  1140. this.form.conductivity = resp.monitor.conductivity?resp.monitor.conductivity:'';
  1141. this.form.monitor_anticoagulant = resp.monitor.monitor_anticoagulant?resp.monitor.monitor_anticoagulant:"";
  1142. this.form.monitor_anticoagulant_value = resp.monitor.monitor_anticoagulant_value?resp.monitor.monitor_anticoagulant_value:""
  1143. this.form.accumulated_blood_volume = resp.monitor.accumulated_blood_volume?resp.monitor.accumulated_blood_volume:""
  1144. this.form.blood_temperature = resp.monitor.blood_temperature?resp.monitor.blood_temperature:""
  1145. this.form.urea_monitoring = resp.monitor.urea_monitoring?resp.monitor.urea_monitoring:""
  1146. this.form.blood_thickness = resp.monitor.blood_thickness?resp.monitor.blood_thickness:""
  1147. this.form.blood_monitor = resp.monitor.blood_monitor?resp.monitor.blood_monitor:""
  1148. })
  1149. },
  1150. modifyRecordAction: function() {
  1151. if (this.table_current_row == null) {
  1152. this.$message.error('请选择一条监测记录');
  1153. return
  1154. }
  1155. this.creator = this.table_current_row.creator;
  1156. this.setEditMonitor(this.table_current_row);
  1157. this.$refs.table.setCurrentRow(null);
  1158. this.edit = true;
  1159. this.isAdd = false
  1160. },
  1161. cancelEditAction: function() {
  1162. this.setEditMonitor(null);
  1163. this.$refs.table.setCurrentRow(null);
  1164. this.edit = false
  1165. },
  1166. tableCurrentRowChange: function(currentRow) {
  1167. this.table_current_row = currentRow
  1168. // console.log("tableCurrentRowChange", currentRow)
  1169. },
  1170. setEditMonitor: function(monitor) {
  1171. console.log("monitor23223322332",monitor)
  1172. if (monitor == null || monitor == undefined) {
  1173. this.form.id = 0;
  1174. // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
  1175. // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
  1176. this.form.operate_time = new Date().getTime();
  1177. this.form.systolic_bp = '';
  1178. this.form.diastolic_bp = '';
  1179. this.form.pulse_frequency = '';
  1180. this.form.breathing_rated = '';
  1181. this.form.blood_flow_volume = '';
  1182. this.form.temperature = '';
  1183. this.form.venous_pressure = '';
  1184. this.form.venous_pressure_type = 1;
  1185. this.form.transmembrane_pressure = '';
  1186. this.form.transmembrane_pressure_type = 1;
  1187. this.form.ultrafiltration_volume = '';
  1188. this.form.ultrafiltration_rate = '';
  1189. this.form.arterial_pressure = '';
  1190. this.form.arterial_pressure_type = 1;
  1191. this.form.sodium_concentration = '';
  1192. this.form.dialysate_temperature = '';
  1193. this.form.replacement_rate = '';
  1194. this.form.displacement_quantity = '';
  1195. this.form.conductivity = '';
  1196. this.form.displacement_flow_quantity = '';
  1197. this.form.heparin = '';
  1198. this.form.dialysate_flow = '';
  1199. this.form.ktv = '';
  1200. this.form.symptom = '';
  1201. this.form.dispose = '';
  1202. this.form.result = '';
  1203. this.symptom_selecteds = [];
  1204. this.dispose_selecteds = [];
  1205. this.result_selecteds = [];
  1206. this.form.urr = '';
  1207. this.form.blood_sugar = '';
  1208. this.form.monitor_anticoagulant = '';
  1209. this.form.monitor_anticoagulant_value = ''
  1210. this.form.accumulated_blood_volume = ""
  1211. this.form.blood_temperature = ""
  1212. this.form.urea_monitoring = ""
  1213. this.form.blood_thickness = ""
  1214. this.form.blood_monitor = ""
  1215. } else {
  1216. (this.form.id = monitor.id),
  1217. // this.form.operate_date = monitor.operate_date
  1218. // this.form.monitoring_time = monitor.monitoring_time
  1219. (this.form.operate_time = monitor.operate_time * 1000);
  1220. this.form.systolic_bp = monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : '';
  1221. this.form.temperature = monitor.temperature ? monitor.temperature : '';
  1222. this.form.diastolic_bp = monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : '';
  1223. this.form.pulse_frequency = monitor.pulse_frequency ? monitor.pulse_frequency : '';
  1224. this.form.breathing_rated = monitor.breathing_rate ? monitor.breathing_rate : '';
  1225. this.form.blood_flow_volume = monitor.blood_flow_volume ? monitor.blood_flow_volume : '';
  1226. this.form.venous_pressure = monitor.venous_pressure ? monitor.venous_pressure : '';
  1227. this.form.venous_pressure_type = monitor.venous_pressure_type ? monitor.venous_pressure_type : '';
  1228. this.form.transmembrane_pressure = monitor.transmembrane_pressure ? monitor.transmembrane_pressure : '';
  1229. this.form.transmembrane_pressure_type = monitor.transmembrane_pressure_type ? monitor.transmembrane_pressure_type : '';
  1230. this.form.ultrafiltration_volume = monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : '';
  1231. this.form.ultrafiltration_rate = monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '';
  1232. this.form.arterial_pressure = monitor.arterial_pressure ? monitor.arterial_pressure : '';
  1233. this.form.arterial_pressure_type = monitor.arterial_pressure_type ? monitor.arterial_pressure_type : '';
  1234. this.form.sodium_concentration = monitor.sodium_concentration ? monitor.sodium_concentration : '';
  1235. this.form.dialysate_temperature = monitor.dialysate_temperature ? monitor.dialysate_temperature : '';
  1236. this.form.replacement_rate = monitor.replacement_rate ? monitor.replacement_rate : '';
  1237. this.form.displacement_quantity = monitor.displacement_quantity ? monitor.displacement_quantity : '';
  1238. this.form.conductivity = monitor.conductivity ? monitor.conductivity : '';
  1239. this.form.displacement_flow_quantity = monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : '';
  1240. this.form.heparin = monitor.heparin ? monitor.heparin : '';
  1241. this.form.dialysate_flow = monitor.dialysate_flow ? monitor.dialysate_flow : '';
  1242. this.form.ktv = monitor.ktv ? monitor.ktv : '';
  1243. this.form.symptom = monitor.symptom;
  1244. this.form.dispose = monitor.dispose;
  1245. this.form.result = monitor.result;
  1246. this.form.blood_oxygen_saturation = monitor.blood_oxygen_saturation;
  1247. this.form.urr = monitor.urr?monitor.urr:'';
  1248. this.form.blood_sugar = monitor.blood_sugar?monitor.blood_sugar:'';
  1249. this.form.monitor_anticoagulant = monitor.monitor_anticoagulant?monitor.monitor_anticoagulant:'';
  1250. this.form.monitor_anticoagulant_value = monitor.monitor_anticoagulant_value?monitor.monitor_anticoagulant_value:"";
  1251. this.form.accumulated_blood_volume = monitor.accumulated_blood_volume?monitor.accumulated_blood_volume:""
  1252. this.form.blood_temperature = monitor.blood_temperature?monitor.blood_temperature:""
  1253. this.form.urea_monitoring = monitor.urea_monitoring?monitor.urea_monitoring:""
  1254. this.form.blood_thickness = monitor.blood_thickness?monitor.blood_thickness:""
  1255. this.form.blood_monitor = monitor.blood_monitor?monitor.blood_monitor:""
  1256. // 设置三个下拉框的值,直接调用事件偷懒
  1257. this.symptomTextareaBlur();
  1258. this.disposeTextareaBlur();
  1259. this.resultTextareaBlur()
  1260. }
  1261. },
  1262. submitAction: function() {
  1263. // TODO loading
  1264. var is_new = this.form.id;
  1265. this.form.operate_time = parseInt(this.form.operate_time / 1000);
  1266. this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp);
  1267. this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp);
  1268. this.form.temperature = parseFloat(this.form.temperature) == NaN ? 0 : parseFloat(this.form.temperature);
  1269. this.form.pulse_frequency = parseFloat(this.form.pulse_frequency) == NaN ? 0 : parseFloat(this.form.pulse_frequency);
  1270. this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated);
  1271. this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume);
  1272. this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure);
  1273. this.form.venous_pressure_type = parseFloat(this.form.venous_pressure_type) == NaN ? 1 : parseFloat(this.form.venous_pressure_type);
  1274. this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure);
  1275. this.form.transmembrane_pressure_type = parseFloat(this.form.transmembrane_pressure_type) == NaN ? 1 : parseFloat(this.form.transmembrane_pressure_type);
  1276. this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume);
  1277. this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate);
  1278. this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure);
  1279. this.form.arterial_pressure_type = parseFloat(this.form.arterial_pressure_type) == NaN ? 1 : parseFloat(this.form.arterial_pressure_type);
  1280. this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration);
  1281. this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature);
  1282. this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate);
  1283. this.form.displacement_quantity = parseFloat(this.form.displacement_quantity) == NaN ? 0 : parseFloat(this.form.displacement_quantity);
  1284. this.form.conductivity = parseFloat(this.form.conductivity) == NaN ? 0 : parseFloat(this.form.conductivity);
  1285. this.form.displacement_flow_quantity = parseFloat(this.form.displacement_flow_quantity) == NaN ? 0 : parseFloat(this.form.displacement_flow_quantity);
  1286. this.form.heparin = parseFloat(this.form.heparin) == NaN ? 0 : parseFloat(this.form.heparin);
  1287. this.form.dialysate_flow = parseFloat(this.form.dialysate_flow) == NaN ? 0 : parseFloat(this.form.dialysate_flow);
  1288. this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
  1289. this.form.monitoring_date = parseInt(this.form.monitoring_date);
  1290. this.form.urr = this.form.urr;
  1291. this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar);
  1292. this.form.monitor_anticoagulant = parseInt(this.form.monitor_anticoagulant);
  1293. this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value;
  1294. this.form.blood_pressure_monitoring_site = parseInt(this.form.blood_pressure_monitoring_site);
  1295. this.form.complication = parseInt(this.form.complication);
  1296. this.form.blood_temperature = parseFloat(this.form.blood_temperature) == NaN ? 0 : parseFloat(this.form.blood_temperature);
  1297. this.form.accumulated_blood_volume = parseFloat(this.form.accumulated_blood_volume) == NaN ? 0 : parseFloat(this.form.accumulated_blood_volume);
  1298. this.form.urea_monitoring = parseFloat(this.form.urea_monitoring) == NaN ? 0 : parseFloat(this.form.urea_monitoring);
  1299. this.form.blood_thickness = parseFloat(this.form.blood_thickness) == NaN ? 0 : parseFloat(this.form.blood_thickness);
  1300. this.form.blood_monitor = parseFloat(this.form.blood_monitor) == NaN ? 0 : parseFloat(this.form.blood_monitor);
  1301. let mode = '1';
  1302. if (this.form.id > 0) {
  1303. mode = '2';
  1304. if (this.creator > 0 && this.creator != this.$store.getters.xt_user.user.id) {
  1305. mode = '3'
  1306. }
  1307. }
  1308. editMonitor(this.patient_id, this.schedule_date, this.form, mode).then(
  1309. rs => {
  1310. var resp = rs.data;
  1311. if (resp.state == 1) {
  1312. var monitor = resp.data.monitor;
  1313. if (this.isAdd) {
  1314. this.monitors.unshift(monitor);
  1315. this.monitors.sort((a, b) => b.operate_time - a.operate_time);
  1316. this.monitors.reverse()
  1317. } else {
  1318. for (let index = 0; index < this.monitors.length; index++) {
  1319. const m = this.monitors[index];
  1320. if (m.id == monitor.id) {
  1321. for (const key in monitor) {
  1322. m[key] = monitor[key]
  1323. }
  1324. break
  1325. }
  1326. }
  1327. }
  1328. this.reset()
  1329. } else {
  1330. this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp);
  1331. this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp);
  1332. this.form.temperature = parseFloat(this.form.temperature) == NaN ? 0 : parseFloat(this.form.temperature);
  1333. this.form.pulse_frequency = parseFloat(this.form.pulse_frequency) == NaN ? 0 : parseFloat(this.form.pulse_frequency);
  1334. this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated);
  1335. this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume);
  1336. this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure);
  1337. this.form.venous_pressure_type = parseFloat(this.form.venous_pressure_type) == NaN ? 1 : parseFloat(this.form.venous_pressure_type);
  1338. this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure);
  1339. this.form.transmembrane_pressure_type = parseFloat(this.form.transmembrane_pressure_type) == NaN ? 1 : parseFloat(this.form.transmembrane_pressure_type);
  1340. this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume);
  1341. this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate);
  1342. this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure);
  1343. this.form.arterial_pressure_type = parseFloat(this.form.arterial_pressure_type) == NaN ? 1 : parseFloat(this.form.arterial_pressure_type);
  1344. this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration);
  1345. this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature);
  1346. this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate);
  1347. this.form.displacement_quantity = parseFloat(this.form.displacement_quantity) == NaN ? 0 : parseFloat(this.form.displacement_quantity);
  1348. this.form.conductivity = parseFloat(this.form.conductivity) == NaN ? 0 : parseFloat(this.form.conductivity);
  1349. this.form.displacement_flow_quantity = parseFloat(this.form.displacement_flow_quantity) == NaN ? 0 : parseFloat(this.form.displacement_flow_quantity);
  1350. this.form.heparin = parseFloat(this.form.heparin) == NaN ? 0 : parseFloat(this.form.heparin);
  1351. this.form.dialysate_flow = parseFloat(this.form.dialysate_flow) == NaN ? 0 : parseFloat(this.form.dialysate_flow);
  1352. this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
  1353. this.form.urr = this.form.urr;
  1354. this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar);
  1355. this.form.monitor_anticoagulant = parseInt(this.form.monitor_anticoagulant);
  1356. this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value;
  1357. this.form.blood_pressure_monitoring_site = this.form.blood_pressure_monitoring_site;
  1358. this.form.complication = this.form.complication;
  1359. this.form.blood_temperature = parseFloat(this.form.blood_temperature) == NaN ? 0 : parseFloat(this.form.blood_temperature);
  1360. this.form.accumulated_blood_volume = parseFloat(this.form.accumulated_blood_volume) == NaN ? 0 : parseFloat(this.form.accumulated_blood_volume);
  1361. this.form.urea_monitoring = parseFloat(this.form.urea_monitoring) == NaN ? 0 : parseFloat(this.form.urea_monitoring);
  1362. this.form.blood_thickness = parseFloat(this.form.blood_thickness) == NaN ? 0 : parseFloat(this.form.blood_thickness);
  1363. this.form.blood_monitor = parseFloat(this.form.blood_monitor) == NaN ? 0 : parseFloat(this.form.blood_monitor);
  1364. this.$message.error(resp.msg)
  1365. }
  1366. }
  1367. )
  1368. },
  1369. symptomTextareaBlur: function() {
  1370. if (this.form.symptom.length > 0) {
  1371. this.symptom_selecteds = this.form.symptom.split(',')
  1372. } else {
  1373. this.symptom_selecteds = []
  1374. }
  1375. },
  1376. symptomSelectorChange: function() {
  1377. if (this.symptom_selecteds.length > 0) {
  1378. this.form.symptom = this.symptom_selecteds.join(',') + ','
  1379. } else {
  1380. this.form.symptom = ''
  1381. }
  1382. },
  1383. disposeTextareaBlur: function() {
  1384. if (this.form.dispose.length > 0) {
  1385. this.dispose_selecteds = this.form.dispose.split(',')
  1386. } else {
  1387. this.dispose_selecteds = []
  1388. }
  1389. },
  1390. disposeSelectorChange: function() {
  1391. if (this.dispose_selecteds.length > 0) {
  1392. this.form.dispose = this.dispose_selecteds.join(',') + ','
  1393. } else {
  1394. this.form.dispose = ''
  1395. }
  1396. },
  1397. resultTextareaBlur: function() {
  1398. if (this.form.result.length > 0) {
  1399. this.result_selecteds = this.form.result.split(',')
  1400. } else {
  1401. this.result_selecteds = []
  1402. }
  1403. },
  1404. setRecords(records) {
  1405. this.monitors = records
  1406. },
  1407. resultSelectorChange: function() {
  1408. if (this.result_selecteds.length > 0) {
  1409. this.form.result = this.result_selecteds.join(',') + ','
  1410. } else {
  1411. this.form.result = ''
  1412. }
  1413. },
  1414. deleteRecordAction: function() {
  1415. if (this.table_current_row == null) {
  1416. this.$message.error('请选择一条监测记录');
  1417. return
  1418. }
  1419. this.$confirm('删除记录', '是否删除该监测记录', {
  1420. confirmButtonText: '确定',
  1421. cancelButtonText: '取消',
  1422. type: 'warning'
  1423. })
  1424. .then(() => {
  1425. let mode = '4';
  1426. if (
  1427. this.table_current_row.creator > 0 &&
  1428. this.table_current_row.creator !=
  1429. this.$store.getters.xt_user.user.id
  1430. ) {
  1431. mode = '5'
  1432. }
  1433. const params = {
  1434. patient_id: this.patient_id,
  1435. record_id: this.table_current_row.id,
  1436. mode: mode
  1437. };
  1438. postDelMonitorInfo(params).then(response => {
  1439. if (response.data.state == 0) {
  1440. this.$message.error(response.data.msg);
  1441. return false
  1442. } else {
  1443. const record_id = response.data.data.record_id;
  1444. for (let i = 0; i < this.monitors.length; i++) {
  1445. if (this.monitors[i].id == record_id) {
  1446. this.monitors.splice(i, 1)
  1447. }
  1448. }
  1449. this.$message.success('删除成功')
  1450. }
  1451. })
  1452. })
  1453. .catch(() => {})
  1454. },
  1455. getPermission() {
  1456. request
  1457. .get('/api/func_per/get', {
  1458. params: {
  1459. create_url: '/api/dislysis/monitor/edit?mode=1',
  1460. modify_url: '/api/dislysis/monitor/edit?mode=2',
  1461. modify_other_url: '/api/dislysis/monitor/edit?mode=3',
  1462. del_url: '/api/dialysis/monitor/del?mode=4',
  1463. del_other_url: '/api/dialysis/monitor/del?mode=5',
  1464. module: 7
  1465. }
  1466. })
  1467. .then(res => {
  1468. console.log(res);
  1469. if (res.data.state == 0) {
  1470. this.hasPermission = false
  1471. } else if (res.data.state == 1) {
  1472. this.is_has_create = res.data.data.is_has_create;
  1473. this.is_has_exce = res.data.data.is_has_exce;
  1474. this.is_has_check = res.data.data.is_has_check;
  1475. this.is_has_modify = res.data.data.is_has_modify;
  1476. this.is_has_modify_other = res.data.data.is_has_modify_other;
  1477. this.is_has_modify_exce = res.data.data.is_has_modify_exce;
  1478. this.is_has_del = res.data.data.is_has_del;
  1479. this.is_has_del_other = res.data.data.is_has_del_other
  1480. }
  1481. })
  1482. },
  1483. getBloodPressure(id){
  1484. var name = "";
  1485. for(let i=0;i<this.bloodPressureMmonitoringSite.length;i++){
  1486. if(id == this.bloodPressureMmonitoringSite[i].id){
  1487. name = this.bloodPressureMmonitoringSite[i].name
  1488. }
  1489. }
  1490. return name
  1491. },
  1492. getComplication(id){
  1493. var name = "";
  1494. for(let i=0;i<this.complicationList.length;i++){
  1495. if(id == this.complicationList[i].id){
  1496. name = this.complicationList[i].name
  1497. }
  1498. }
  1499. return name
  1500. }
  1501. },
  1502. watch:{
  1503. patient:{
  1504. handler(newVal){
  1505. this.patient_id = newVal.id
  1506. },
  1507. deep:true
  1508. }
  1509. }
  1510. }
  1511. </script>
  1512. <style style="stylesheet/scss" lang="scss" scoped>
  1513. .grid {
  1514. padding: 10px 0 20px 0;
  1515. .list {
  1516. ul {
  1517. @include display-flex;
  1518. @include align-items-center;
  1519. @include text-align;
  1520. @include justify-content-around;
  1521. cursor: pointer;
  1522. li {
  1523. font-size: 12px;
  1524. color: #5d6b7a;
  1525. margin-top: 20px;
  1526. p {
  1527. height: 30px;
  1528. line-height: 30px;
  1529. color: #34495e;
  1530. font-size: 14px;
  1531. }
  1532. img {
  1533. width: 50px;
  1534. height: 50px;
  1535. }
  1536. }
  1537. }
  1538. }
  1539. }
  1540. .txsj {
  1541. text-align: center;
  1542. margin-bottom: 20px;
  1543. }
  1544. .current-box-class::-webkit-scrollbar {
  1545. height: 20px; /*滚动条高度*/
  1546. }
  1547. </style>
  1548. <style style="stylesheet/scss" lang="scss">
  1549. .dialog_box .current-box-class .current-row > td {
  1550. background: #6fb5fa;
  1551. // color: #000;
  1552. /* font-size: 12px; */
  1553. }
  1554. .dialog_box .current-box-class .current-row:hover > td {
  1555. background: #6fb5fa;
  1556. // color: white;
  1557. /* font-size: 12px; */
  1558. }
  1559. .el-table__body-wrapper::-webkit-scrollbar {
  1560. height: 20px;
  1561. }
  1562. .dialog_box .current-box-class .current-row {
  1563. background: #87ceff;
  1564. }
  1565. .dialog_box tr:hover > td {
  1566. background-color: #ecf5ff !important;
  1567. color: #3a8ee6;
  1568. }
  1569. .dialog_box tr > td:hover {
  1570. background-color: #409eff !important;
  1571. color: #fff !important;
  1572. }
  1573. </style>