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

monitor_dialog.vue 100KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881
  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. >
  10. <div v-show="edit == false">
  11. <div class="txsj">
  12. <el-button round :disabled="!is_has_create" @click="newRecordAction"
  13. >新增监测</el-button
  14. >
  15. <el-button
  16. round
  17. :disabled="!is_has_modify && !is_has_modify_other"
  18. @click="modifyRecordAction"
  19. >修改监测</el-button
  20. >
  21. <el-button
  22. round
  23. :disabled="!is_has_del && !is_has_del_other"
  24. @click="deleteRecordAction"
  25. >删除监测</el-button
  26. >
  27. </div>
  28. <el-table
  29. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  30. ref="table"
  31. :data="monitors"
  32. border
  33. highlight-current-row
  34. @current-change="tableCurrentRowChange"
  35. style="width: 100%"
  36. :class="current_row_class"
  37. >
  38. <el-table-column
  39. label="监测时间"
  40. align="center"
  41. width="144"
  42. v-if="isShow('监测时间')"
  43. >
  44. <template slot-scope="scope">
  45. {{ getMonitorDate(scope.row) }}
  46. </template>
  47. </el-table-column>
  48. <el-table-column
  49. prop="temperature"
  50. align="center"
  51. width="100"
  52. label="体温(℃)"
  53. v-if="isShow('体温')"
  54. >
  55. <template slot-scope="scope">
  56. {{ scope.row.temperature ? scope.row.temperature : "" }}
  57. </template>
  58. </el-table-column>
  59. <el-table-column
  60. align="center"
  61. label="血压(mmHg)"
  62. width="110"
  63. v-if="isShow('血压')"
  64. >
  65. <template slot-scope="scope">
  66. {{
  67. scope.row.systolic_blood_pressure
  68. ? scope.row.systolic_blood_pressure
  69. : ""
  70. }}/{{
  71. scope.row.diastolic_blood_pressure
  72. ? scope.row.diastolic_blood_pressure
  73. : ""
  74. }}
  75. </template>
  76. </el-table-column>
  77. <el-table-column
  78. prop="pulse_frequency"
  79. align="center"
  80. width="100"
  81. label="脉搏(次/分)"
  82. v-if="isShow('脉搏')"
  83. >
  84. <template slot-scope="scope">
  85. {{ scope.row.pulse_frequency ? scope.row.pulse_frequency : "" }}
  86. </template>
  87. </el-table-column>
  88. <el-table-column
  89. prop="breathing_rate"
  90. align="center"
  91. label="呼吸频率(次/分)"
  92. width="100"
  93. v-if="isShow('呼吸频率')"
  94. >
  95. <template slot-scope="scope">
  96. {{ scope.row.breathing_rate ? scope.row.breathing_rate : "" }}
  97. </template>
  98. </el-table-column>
  99. <el-table-column
  100. v-if="monitors[0] && monitors[0]['venous_pressure_type'] == 2"
  101. prop="venous_pressure"
  102. align="center"
  103. label="静脉压/动脉压(kpa)"
  104. width="120"
  105. >
  106. <template slot-scope="scope">
  107. <span
  108. >{{
  109. scope.row.venous_pressure ? scope.row.venous_pressure : ""
  110. }}/
  111. {{
  112. scope.row.arterial_pressure ? scope.row.arterial_pressure : ""
  113. }}</span
  114. >
  115. </template>
  116. </el-table-column>
  117. <el-table-column
  118. v-else
  119. prop="venous_pressure"
  120. align="center"
  121. label="静脉压/动脉压(mmHg)"
  122. width="120"
  123. >
  124. <template slot-scope="scope">
  125. <span
  126. >{{
  127. scope.row.venous_pressure ? scope.row.venous_pressure : ""
  128. }}/
  129. {{
  130. scope.row.arterial_pressure ? scope.row.arterial_pressure : ""
  131. }}</span
  132. >
  133. </template>
  134. </el-table-column>
  135. <el-table-column
  136. prop="blood_flow_volume"
  137. align="center"
  138. label="血流量(ml/min)"
  139. width="120"
  140. v-if="isShow('血流量')"
  141. >
  142. <template slot-scope="scope">
  143. {{
  144. scope.row.blood_flow_volume ? scope.row.blood_flow_volume : ""
  145. }}
  146. </template>
  147. </el-table-column>
  148. <el-table-column
  149. prop="transmembrane_pressure"
  150. align="center"
  151. label="跨膜压(kpa)"
  152. width="120"
  153. v-if="
  154. isShow('跨膜压') &&
  155. monitors[0] &&
  156. monitors[0]['transmembrane_pressure_type'] == 2
  157. "
  158. >
  159. <template slot-scope="scope">
  160. {{
  161. scope.row.transmembrane_pressure
  162. ? scope.row.transmembrane_pressure
  163. : "/"
  164. }}
  165. </template>
  166. </el-table-column>
  167. <el-table-column
  168. prop="transmembrane_pressure"
  169. align="center"
  170. label="跨膜压(mmHg)"
  171. width="120"
  172. v-if="
  173. isShow('跨膜压') &&
  174. monitors[0] &&
  175. monitors[0]['transmembrane_pressure_type'] != 2
  176. "
  177. >
  178. <template slot-scope="scope">
  179. {{
  180. scope.row.transmembrane_pressure
  181. ? scope.row.transmembrane_pressure
  182. : "/"
  183. }}
  184. </template>
  185. </el-table-column>
  186. <el-table-column
  187. prop="ultrafiltration_volume"
  188. align="center"
  189. label="超滤量(ml)"
  190. width="110"
  191. v-if="
  192. isShow('超滤量') &&
  193. (template_id == 6 ||
  194. template_id == 9 ||
  195. template_id == 10 ||
  196. template_id == 11 ||
  197. template_id == 12 ||
  198. template_id == 13 ||
  199. template_id == 17 ||
  200. template_id == 18 ||
  201. template_id == 19 ||
  202. template_id == 20 ||
  203. template_id == 21 ||
  204. template_id == 22 ||
  205. template_id == 23 ||
  206. template_id == 24 ||
  207. template_id == 26 ||
  208. template_id == 27 ||
  209. template_id == 29 ||
  210. template_id == 30 ||
  211. template_id == 31 ||
  212. template_id == 32 ||
  213. template_id == 34 ||
  214. template_id == 35 ||
  215. template_id == 36 ||
  216. template_id == 38 ||
  217. template_id == 39 ||
  218. template_id == 40 ||
  219. template_id == 41 ||
  220. template_id == 43 ||
  221. template_id == 44 ||
  222. template_id == 46 ||
  223. template_id == 47 ||
  224. template_id == 48 ||
  225. template_id == 51 ||
  226. template_id == 53 ||
  227. template_id == 54 ||
  228. template_id == 56 ||
  229. template_id == 60 ||
  230. org_id == 10210 ||
  231. org_id == 9555
  232. || org_id == 10432
  233. || org_id == 10445
  234. || org_id == 10410) &&
  235. org_id!=10387
  236. "
  237. >
  238. <template slot-scope="scope">
  239. <span v-if="org_id == 10440 || org_id == 9671">
  240. {{
  241. scope.row.ultrafiltration_volume
  242. ? scope.row.ultrafiltration_volume
  243. : "0"
  244. }}
  245. </span>
  246. <span v-if="org_id != 10440 && org_id!=9671">
  247. {{
  248. scope.row.ultrafiltration_volume
  249. ? scope.row.ultrafiltration_volume
  250. : ""
  251. }}
  252. </span>
  253. </template>
  254. </el-table-column>
  255. <el-table-column
  256. prop="ultrafiltration_volume"
  257. align="center"
  258. label="超滤量(L)"
  259. width="110"
  260. v-if="
  261. isShow('超滤量') &&
  262. (template_id != 6 &&
  263. template_id != 9 &&
  264. template_id != 10 &&
  265. template_id != 11 &&
  266. template_id != 12 &&
  267. template_id != 13 &&
  268. template_id != 17 &&
  269. template_id != 18 &&
  270. template_id != 19 &&
  271. template_id != 20 &&
  272. template_id != 21 &&
  273. template_id != 22 &&
  274. template_id != 23 &&
  275. template_id != 24 &&
  276. template_id != 26 &&
  277. template_id != 27 &&
  278. template_id != 29 &&
  279. template_id != 30 &&
  280. template_id != 31 &&
  281. template_id != 32 &&
  282. template_id != 34 &&
  283. template_id != 35 &&
  284. template_id != 36 &&
  285. template_id != 38 &&
  286. template_id != 39 &&
  287. template_id != 40 &&
  288. template_id != 41 &&
  289. template_id != 43 &&
  290. template_id != 44 &&
  291. template_id != 46 &&
  292. template_id != 47 &&
  293. template_id != 48 &&
  294. template_id != 51 &&
  295. template_id != 53 &&
  296. template_id != 54 &&
  297. template_id != 56 &&
  298. template_id != 60 &&
  299. org_id!= 10210 &&
  300. org_id != 9555
  301. && org_id!=10432 && org_id!=10445
  302. && org_id!=10410)
  303. || org_id == 10387
  304. "
  305. >
  306. <template slot-scope="scope">
  307. {{
  308. scope.row.ultrafiltration_volume
  309. ? scope.row.ultrafiltration_volume
  310. : ""
  311. }}
  312. </template>
  313. </el-table-column>
  314. <el-table-column
  315. prop="displacement_flow_quantity"
  316. align="center"
  317. label="超滤率(ml/h)"
  318. width="100"
  319. v-if="
  320. isShow('超滤率') &&
  321. (template_id == 6 ||
  322. template_id == 10 ||
  323. template_id == 11 ||
  324. template_id == 12 ||
  325. template_id == 13 ||
  326. template_id == 17 ||
  327. template_id == 18 ||
  328. template_id == 19 ||
  329. template_id == 20 ||
  330. template_id == 21 ||
  331. template_id == 22 ||
  332. template_id == 23 ||
  333. template_id == 24 ||
  334. template_id == 26 ||
  335. template_id == 29 ||
  336. template_id == 30 ||
  337. template_id == 31 ||
  338. template_id == 34 ||
  339. template_id == 35 ||
  340. template_id == 38 ||
  341. template_id == 41 ||
  342. template_id == 43 ||
  343. template_id == 44 ||
  344. template_id == 46 ||
  345. template_id == 48 ||
  346. template_id == 53 ||
  347. template_id == 54 ||
  348. template_id == 56 ||
  349. template_id == 47 ||
  350. template_id == 60 ||
  351. org_id == 10432 ||
  352. org_id == 10445 ||
  353. org_id == 10410)
  354. && org_id!=10387
  355. "
  356. >
  357. <template slot-scope="scope">
  358. {{
  359. scope.row.ultrafiltration_rate
  360. ? scope.row.ultrafiltration_rate
  361. : ""
  362. }}
  363. </template>
  364. </el-table-column>
  365. <el-table-column
  366. prop="displacement_flow_quantity"
  367. align="center"
  368. label="超滤率(L/h)"
  369. width="100"
  370. v-if="
  371. isShow('超滤率') &&
  372. (template_id != 6 &&
  373. template_id != 10 &&
  374. template_id != 11 &&
  375. template_id != 12 &&
  376. template_id != 13 &&
  377. template_id != 17 &&
  378. template_id != 18 &&
  379. template_id != 19 &&
  380. template_id != 20 &&
  381. template_id != 21 &&
  382. template_id != 22 &&
  383. template_id != 23 &&
  384. template_id != 24 &&
  385. template_id != 26 &&
  386. template_id != 29 &&
  387. template_id != 30 &&
  388. template_id != 31 &&
  389. template_id != 34 &&
  390. template_id != 35 &&
  391. template_id != 38 &&
  392. template_id != 41 &&
  393. template_id != 43 &&
  394. template_id != 44 &&
  395. template_id != 46 &&
  396. template_id != 53 &&
  397. template_id != 54 &&
  398. template_id != 56 &&
  399. template_id != 48 &&
  400. template_id != 47 &&
  401. template_id != 60 &&
  402. org_id!=10432 &&
  403. org_id!=10445 &&
  404. org_id!=10410) ||
  405. org_id == 10387
  406. "
  407. >
  408. <template slot-scope="scope">
  409. {{
  410. scope.row.ultrafiltration_rate
  411. ? scope.row.ultrafiltration_rate
  412. : ""
  413. }}
  414. </template>
  415. </el-table-column>
  416. <el-table-column
  417. prop="sodium_concentration"
  418. align="center"
  419. label="钠浓度(mmol/L)"
  420. width="126"
  421. v-if="isShow('钠浓度')"
  422. >
  423. <template slot-scope="scope">
  424. {{
  425. scope.row.sodium_concentration
  426. ? scope.row.sodium_concentration
  427. : ""
  428. }}
  429. </template>
  430. </el-table-column>
  431. <el-table-column
  432. prop="dialysate_temperature"
  433. align="center"
  434. label="透析液温度(℃)"
  435. width="120"
  436. v-if="isShow('透析液温度')"
  437. >
  438. <template slot-scope="scope">
  439. {{
  440. scope.row.dialysate_temperature
  441. ? scope.row.dialysate_temperature
  442. : ""
  443. }}
  444. </template>
  445. </el-table-column>
  446. <el-table-column
  447. prop="replacement_rate"
  448. align="center"
  449. label="置换率(ml/min)"
  450. width="120"
  451. v-if="
  452. isShow('置换率') &&
  453. (template_id == 6 ||
  454. template_id == 10 ||
  455. template_id == 11 ||
  456. template_id == 20 ||
  457. template_id == 26 ||
  458. template_id == 29 ||
  459. template_id == 48 ||
  460. template_id == 53 ||
  461. template_id == 54 ||
  462. template_id == 56 ||
  463. org_id ==10432 ||
  464. org_id ==10445
  465. )
  466. "
  467. >
  468. <template slot-scope="scope">
  469. {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
  470. </template>
  471. </el-table-column>
  472. <el-table-column
  473. prop="replacement_rate"
  474. align="center"
  475. label="置换率(L/h)"
  476. width="120"
  477. v-if="
  478. isShow('置换率') &&
  479. template_id != 6 &&
  480. template_id != 10 &&
  481. template_id != 11 &&
  482. template_id != 20 &&
  483. template_id != 26 &&
  484. template_id != 29 &&
  485. template_id != 48 &&
  486. template_id != 53 &&
  487. template_id != 54 &&
  488. template_id != 56 &&
  489. org_id !=10432 &&
  490. org_id !=10445
  491. "
  492. >
  493. <template slot-scope="scope">
  494. {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
  495. </template>
  496. </el-table-column>
  497. <el-table-column
  498. prop="displacement_quantity"
  499. align="center"
  500. label="置换量(ml/h)"
  501. width="100"
  502. v-if="isShow('置换量') && (template_id == 43 || template_id == 48)"
  503. >
  504. <template slot-scope="scope">
  505. {{
  506. scope.row.displacement_quantity
  507. ? scope.row.displacement_quantity
  508. : ""
  509. }}
  510. </template>
  511. </el-table-column>
  512. <el-table-column
  513. prop="displacement_quantity"
  514. align="center"
  515. label="置换量(ml)"
  516. width="100"
  517. v-if="
  518. isShow('置换量') &&
  519. ((template_id == 6 &&
  520. org_id != 9919 &&
  521. org_id != 10191 &&
  522. template_id != 43 &&
  523. template_id != 47) ||
  524. org_id == 9779 ||
  525. template_id == 11 ||
  526. template_id == 20 ||
  527. template_id == 26 ||
  528. template_id == 29 ||
  529. template_id == 53 ||
  530. template_id == 54 ||
  531. template_id == 56 ||
  532. template_id == 48 ||
  533. org_id == 10340 ||
  534. org_id == 10432 ||
  535. org_id == 10445)
  536. "
  537. >
  538. <template slot-scope="scope">
  539. {{
  540. scope.row.displacement_quantity
  541. ? scope.row.displacement_quantity
  542. : ""
  543. }}
  544. </template>
  545. </el-table-column>
  546. <el-table-column
  547. prop="displacement_quantity"
  548. align="center"
  549. label="置换量(L)"
  550. width="100"
  551. v-if="
  552. isShow('置换量') &&
  553. (template_id != 6 || org_id == 9919 || org_id == 10191) &&
  554. template_id != 9779 &&
  555. template_id != 11 &&
  556. template_id != 20 &&
  557. template_id != 26 &&
  558. template_id != 29 &&
  559. template_id != 43 &&
  560. template_id != 53 &&
  561. template_id != 54 &&
  562. template_id != 56 &&
  563. template_id != 48 &&
  564. org_id !=10340 &&
  565. org_id !=10432 &&
  566. org_id !=10445
  567. "
  568. >
  569. <template slot-scope="scope">
  570. {{
  571. scope.row.displacement_quantity
  572. ? scope.row.displacement_quantity
  573. : ""
  574. }}
  575. </template>
  576. </el-table-column>
  577. <el-table-column
  578. prop="displacement_quantity"
  579. align="center"
  580. label="SpO₂(%)"
  581. width="100"
  582. v-if="
  583. isShow('SpO₂') &&
  584. template_id != 6 &&
  585. template_id != 10 &&
  586. template_id != 11
  587. "
  588. >
  589. <template slot-scope="scope">
  590. {{
  591. scope.row.blood_oxygen_saturation
  592. ? scope.row.blood_oxygen_saturation
  593. : "/"
  594. }}
  595. </template>
  596. </el-table-column>
  597. <el-table-column
  598. prop="displacement_flow_quantity"
  599. align="center"
  600. label="电导度(mS/m)"
  601. width="100"
  602. v-if="isShow('电导度')"
  603. >
  604. <template slot-scope="scope">
  605. {{ scope.row.conductivity ? scope.row.conductivity : "" }}
  606. </template>
  607. </el-table-column>
  608. <el-table-column
  609. prop="displacement_flow_quantity"
  610. align="center"
  611. label="置换液流量(ml/h)"
  612. width="100"
  613. v-if="isShow('置换液流量') && template_id != 27"
  614. >
  615. <template slot-scope="scope">
  616. {{
  617. scope.row.displacement_flow_quantity
  618. ? scope.row.displacement_flow_quantity
  619. : ""
  620. }}
  621. </template>
  622. </el-table-column>
  623. <el-table-column
  624. prop="displacement_flow_quantity"
  625. align="center"
  626. label="置换液流量(ml/min)"
  627. width="100"
  628. v-if="isShow('置换液流量') && template_id == 27"
  629. >
  630. <template slot-scope="scope">
  631. {{
  632. scope.row.displacement_flow_quantity
  633. ? scope.row.displacement_flow_quantity
  634. : ""
  635. }}
  636. </template>
  637. </el-table-column>
  638. <el-table-column
  639. prop="displacement_flow_quantity"
  640. align="center"
  641. label="透析液流量(ml/h)"
  642. width="100"
  643. v-if="isShow('透析液流量')"
  644. >
  645. <template slot-scope="scope">
  646. {{ scope.row.dialysate_flow ? scope.row.dialysate_flow : "" }}
  647. </template>
  648. </el-table-column>
  649. <el-table-column
  650. prop="heparin"
  651. align="center"
  652. label="肝素用量余量(ml)"
  653. width="140"
  654. v-if="isShow('肝素用量余量')"
  655. >
  656. </el-table-column>
  657. <el-table-column
  658. prop="heparin_amount"
  659. align="center"
  660. label="肝素量(mg)"
  661. width="140"
  662. v-if="isShow('肝素量')"
  663. >
  664. </el-table-column>
  665. <el-table-column
  666. prop="heparin"
  667. align="center"
  668. label="抗凝剂"
  669. width="140"
  670. v-if="isShow('抗凝剂')"
  671. >
  672. <template slot-scope="scope">
  673. <span v-if="scope.row.monitor_anticoagulant == 1">无肝素</span>
  674. <span v-if="scope.row.monitor_anticoagulant == 2">普通肝素</span>
  675. <span v-if="scope.row.monitor_anticoagulant == 3"
  676. >低分子肝素</span
  677. >
  678. <span v-if="scope.row.monitor_anticoagulant == 4">阿加曲班</span>
  679. <span v-if="scope.row.monitor_anticoagulant == 5">枸橼酸钠</span>
  680. <span v-if="scope.row.monitor_anticoagulant == 6"
  681. >低分子肝素钙</span
  682. >
  683. <span v-if="scope.row.monitor_anticoagulant == 7"
  684. >低分子肝素钠</span
  685. >
  686. <span v-if="scope.row.monitor_anticoagulant == 8">依诺肝素</span>
  687. <span v-if="scope.row.monitor_anticoagulant == 9">达肝素</span>
  688. <span v-if="scope.row.monitor_anticoagulant == 12">无抗凝剂</span>
  689. <span v-if="scope.row.monitor_anticoagulant == 13">那屈肝素钙</span>
  690. <span v-if="scope.row.monitor_anticoagulant_value != ''"
  691. >({{
  692. scope.row.monitor_anticoagulant_value
  693. ? scope.row.monitor_anticoagulant_value
  694. : ""
  695. }})</span
  696. >
  697. </template>
  698. </el-table-column>
  699. <el-table-column
  700. prop="heparin"
  701. align="center"
  702. label="血压监测部位"
  703. width="140"
  704. v-if="isShow('血压监测部位')"
  705. >
  706. <template slot-scope="scope">
  707. {{ getBloodPressure(scope.row.blood_pressure_monitoring_site) }}
  708. </template>
  709. </el-table-column>
  710. <el-table-column
  711. prop="heparin"
  712. align="center"
  713. label="并发症"
  714. width="140"
  715. v-if="isShow('并发症')"
  716. >
  717. <template slot-scope="scope">
  718. {{ getComplication(scope.row.complication) }}
  719. </template>
  720. </el-table-column>
  721. <el-table-column
  722. prop="displacement_flow_quantity"
  723. align="center"
  724. label="累计血容量(ml)"
  725. width="100"
  726. v-if="isShow('累计血容量') && template_id != 41 && org_id != 9538 && org_id != 9671 && org_id != 10340 "
  727. >
  728. <template slot-scope="scope">
  729. {{ scope.row.accumulated_blood_volume }}
  730. </template>
  731. </el-table-column>
  732. <el-table-column
  733. prop="displacement_flow_quantity"
  734. align="center"
  735. label="累计血容量(L)"
  736. width="100"
  737. v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9538) && org_id!=10340 && org_id!=9671"
  738. >
  739. <template slot-scope="scope">
  740. {{ scope.row.accumulated_blood_volume }}
  741. </template>
  742. </el-table-column>
  743. <el-table-column
  744. prop="heparin"
  745. align="center"
  746. label="血容量(L)"
  747. width="140"
  748. v-if="isShow('血容量')"
  749. >
  750. <template slot-scope="scope">
  751. {{ scope.row.accumulated_blood_volume }}
  752. </template>
  753. </el-table-column>
  754. <el-table-column
  755. prop="heparin"
  756. align="center"
  757. label="血温监测"
  758. width="140"
  759. v-if="isShow('血温监测')"
  760. >
  761. <template slot-scope="scope">
  762. {{ scope.row.blood_temperature }}
  763. </template>
  764. </el-table-column>
  765. <el-table-column
  766. prop="heparin"
  767. align="center"
  768. label="尿素监测"
  769. width="140"
  770. v-if="isShow('尿素监测')"
  771. >
  772. <template slot-scope="scope">
  773. {{ scope.row.urea_monitoring }}
  774. </template>
  775. </el-table-column>
  776. <el-table-column
  777. prop="heparin"
  778. align="center"
  779. label="血浓量"
  780. width="140"
  781. v-if="isShow('血浓量')"
  782. >
  783. <template slot-scope="scope">
  784. {{ scope.row.blood_thickness }}
  785. </template>
  786. </el-table-column>
  787. <el-table-column
  788. prop="heparin"
  789. align="center"
  790. label="血压监测"
  791. width="140"
  792. v-if="isShow('血压监测')"
  793. >
  794. <template slot-scope="scope">
  795. {{ scope.row.blood_monitor }}
  796. </template>
  797. </el-table-column>
  798. <el-table-column
  799. prop="heparin"
  800. align="center"
  801. label="肝素量(mg)"
  802. width="140"
  803. v-if="isShow('肝素量')"
  804. >
  805. <template slot-scope="scope">
  806. {{ scope.row.heparin_amount }}
  807. </template>
  808. </el-table-column>
  809. <el-table-column
  810. prop="heparin"
  811. align="center"
  812. label="脱水(L)"
  813. width="140"
  814. v-if="isShow('脱水')"
  815. >
  816. <template slot-scope="scope">
  817. {{ scope.row.dehydration }}
  818. </template>
  819. </el-table-column>
  820. <el-table-column
  821. prop="heparin"
  822. align="center"
  823. label="滤前压(mmHg)"
  824. width="140"
  825. v-if="isShow('滤前压')"
  826. >
  827. <template slot-scope="scope">
  828. {{ scope.row.filter_pressure }}
  829. </template>
  830. </el-table-column>
  831. <el-table-column
  832. prop="heparin"
  833. align="center"
  834. label="KT/V"
  835. width="140"
  836. v-if="
  837. isShow('KT/V') &&
  838. (org_id == 9987 || org_id == 10215 || org_id == 9800 || org_id == 9598)
  839. "
  840. >
  841. <template slot-scope="scope">
  842. {{ scope.row.ktv ? scope.row.ktv : "" }}
  843. </template>
  844. </el-table-column>
  845. <el-table-column
  846. align="center"
  847. label="病情变化"
  848. width="130"
  849. v-if="isShow('病情变化')"
  850. >
  851. <template slot-scope="scope">
  852. {{scope.row.symptom}}
  853. <span v-if="(scope.$index == monitors.length - 1) && (org_id == 0 || org_id == 9671 || org_id == 10340)">累计血容量:{{scope.row.accumulated_blood_volume }}L</span>
  854. </template>
  855. </el-table-column>
  856. <el-table-column
  857. prop="dispose"
  858. align="center"
  859. label="处理"
  860. width="130"
  861. v-if="isShow('处理')"
  862. >
  863. </el-table-column>
  864. <el-table-column
  865. prop="result"
  866. align="center"
  867. label="结果"
  868. width="130"
  869. v-if="isShow('结果')"
  870. >
  871. </el-table-column>
  872. </el-table>
  873. </div>
  874. <!--<div v-show="edit">-->
  875. <el-form v-show="edit" ref="form" :model="form" label-width="130px">
  876. <el-row :gutter="20">
  877. <el-col :span="8" v-if="isShow('监测时间')">
  878. <el-form-item label="监测时间:" :prop="isName('监测时间')"
  879. :rules="isCheckmust('监测时间')">
  880. <!-- {{ monitor_date_str }}
  881. <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%;">
  882. </el-time-picker> -->
  883. <el-date-picker
  884. v-model="form.operate_time"
  885. type="datetime"
  886. prefix-icon=""
  887. style="width: 100%"
  888. format="yyyy-MM-dd HH:mm"
  889. value-format="timestamp"
  890. ></el-date-picker>
  891. </el-form-item>
  892. </el-col>
  893. <el-col :span="8" v-if="isShow('体温')">
  894. <el-form-item label="体温(℃):" :prop="isName('体温')"
  895. :rules="isCheckmust('体温')">
  896. <el-input v-model="form.temperature"></el-input>
  897. </el-form-item>
  898. </el-col>
  899. <el-col :span="8" v-if="isShow('收缩压')">
  900. <el-form-item label="收缩压(mmHg):" :prop="isName('收缩压')"
  901. :rules="isCheckmust('收缩压')">
  902. <el-input v-model="form.systolic_bp"></el-input>
  903. </el-form-item>
  904. </el-col>
  905. <el-col :span="8" v-if="isShow('舒张压')">
  906. <el-form-item label="舒张压(mmHg):" :prop="isName('舒张压')"
  907. :rules="isCheckmust('舒张压')">
  908. <el-input v-model="form.diastolic_bp"></el-input>
  909. </el-form-item>
  910. </el-col>
  911. <el-col :span="8" v-if="isShow('脉搏')">
  912. <el-form-item label="脉搏(次/分):" :prop="isName('脉搏')"
  913. :rules="isCheckmust('脉搏')">
  914. <el-input v-model="form.pulse_frequency"></el-input>
  915. </el-form-item>
  916. </el-col>
  917. <el-col :span="8" v-if="isShow('呼吸频率')">
  918. <el-form-item label="呼吸频率(次/分):" :prop="isName('呼吸频率')"
  919. :rules="isCheckmust('呼吸频率')">
  920. <el-input v-model="form.breathing_rated"></el-input>
  921. </el-form-item>
  922. </el-col>
  923. <el-col :span="8" v-if="isShow('静脉压')">
  924. <el-form-item
  925. v-if="form.venous_pressure_type == 2"
  926. label="静脉压(kpa):"
  927. :prop="isName('静脉压')"
  928. :rules="isCheckmust('静脉压')"
  929. >
  930. <el-input
  931. style="width: 140px"
  932. v-model="form.venous_pressure"
  933. ></el-input>
  934. <el-button
  935. size="mini"
  936. type="primary"
  937. @click="venousPressureChangeOne"
  938. >切换</el-button
  939. >
  940. </el-form-item>
  941. <el-form-item v-else label="静脉压(mmHg):" :prop="isName('静脉压')"
  942. :rules="isCheckmust('静脉压')">
  943. <el-input
  944. style="width: 140px"
  945. v-model="form.venous_pressure"
  946. ></el-input>
  947. <el-button
  948. size="mini"
  949. type="primary"
  950. @click="venousPressureChangeOne"
  951. >切换</el-button
  952. >
  953. </el-form-item>
  954. </el-col>
  955. <el-col :span="8" v-if="isShow('动脉压')">
  956. <el-form-item
  957. v-if="form.arterial_pressure_type == 2"
  958. label="动脉压(kpa):"
  959. :prop="isName('动脉压')"
  960. :rules="isCheckmust('动脉压')"
  961. >
  962. <el-input
  963. style="width: 140px"
  964. v-model="form.arterial_pressure"
  965. ></el-input>
  966. <el-button
  967. size="mini"
  968. type="primary"
  969. @click="venousPressureChangeThree"
  970. >切换</el-button
  971. >
  972. </el-form-item>
  973. <el-form-item v-else label="动脉压(mmHg):" :prop="isName('动脉压')"
  974. :rules="isCheckmust('动脉压')">
  975. <el-input
  976. style="width: 140px"
  977. v-model="form.arterial_pressure"
  978. ></el-input>
  979. <el-button
  980. size="mini"
  981. type="primary"
  982. @click="venousPressureChangeThree"
  983. >切换</el-button
  984. >
  985. </el-form-item>
  986. </el-col>
  987. <el-col :span="8" v-if="isShow('血流量')">
  988. <el-form-item label="血流量(ml/min):" :prop="isName('血流量')"
  989. :rules="isCheckmust('血流量')">
  990. <el-input v-model="form.blood_flow_volume"></el-input>
  991. </el-form-item>
  992. </el-col>
  993. <el-col :span="8" v-if="isShow('跨膜压')">
  994. <el-form-item
  995. v-if="form.transmembrane_pressure_type == 2"
  996. label="跨膜压(kpa):"
  997. :prop="isName('跨膜压')"
  998. :rules="isCheckmust('跨膜压')"
  999. >
  1000. <el-input
  1001. style="width: 140px"
  1002. v-model="form.transmembrane_pressure"
  1003. ></el-input>
  1004. <el-button
  1005. size="mini"
  1006. type="primary"
  1007. @click="venousPressureChangeTwo"
  1008. >切换</el-button
  1009. >
  1010. </el-form-item>
  1011. <el-form-item v-else label="跨膜压(mmHg):" :prop="isName('跨膜压')"
  1012. :rules="isCheckmust('跨膜压')">
  1013. <el-input
  1014. style="width: 140px"
  1015. v-model="form.transmembrane_pressure"
  1016. ></el-input>
  1017. <el-button
  1018. size="mini"
  1019. type="primary"
  1020. @click="venousPressureChangeTwo"
  1021. >切换</el-button
  1022. >
  1023. </el-form-item>
  1024. </el-col>
  1025. <el-col
  1026. :span="8"
  1027. v-if="
  1028. isShow('超滤率') &&
  1029. (template_id == 6 ||
  1030. template_id == 10 ||
  1031. template_id == 11 ||
  1032. template_id == 12 ||
  1033. template_id == 13 ||
  1034. template_id == 17 ||
  1035. template_id == 18 ||
  1036. template_id == 19 ||
  1037. template_id == 20 ||
  1038. template_id == 21 ||
  1039. template_id == 22 ||
  1040. template_id == 23 ||
  1041. template_id == 24 ||
  1042. template_id == 26 ||
  1043. template_id == 29 ||
  1044. template_id == 30 ||
  1045. template_id == 31 ||
  1046. template_id == 34 ||
  1047. template_id == 35 ||
  1048. template_id == 38 ||
  1049. template_id == 41 ||
  1050. template_id == 43 ||
  1051. template_id == 44 ||
  1052. template_id == 46 ||
  1053. template_id == 48 ||
  1054. template_id == 53 ||
  1055. template_id == 54 ||
  1056. template_id == 56 ||
  1057. template_id == 47 ||
  1058. template_id == 60 ||
  1059. org_id== 10432 ||
  1060. org_id== 10445 ||
  1061. org_id== 10410) &&
  1062. org_id!=10387
  1063. "
  1064. >
  1065. <el-form-item label="超滤率(ml/h)" :prop="isName('超滤率')"
  1066. :rules="isCheckmust('超滤率')">
  1067. <el-input v-model="form.ultrafiltration_rate"></el-input>
  1068. </el-form-item>
  1069. </el-col>
  1070. <el-col
  1071. :span="8"
  1072. v-if="
  1073. isShow('超滤率') &&
  1074. (template_id != 6 &&
  1075. template_id != 10 &&
  1076. template_id != 11 &&
  1077. template_id != 12 &&
  1078. template_id != 13 &&
  1079. template_id != 17 &&
  1080. template_id != 18 &&
  1081. template_id != 19 &&
  1082. template_id != 20 &&
  1083. template_id != 21 &&
  1084. template_id != 22 &&
  1085. template_id != 23 &&
  1086. template_id != 24 &&
  1087. template_id != 26 &&
  1088. template_id != 29 &&
  1089. template_id != 30 &&
  1090. template_id != 31 &&
  1091. template_id != 34 &&
  1092. template_id != 35 &&
  1093. template_id != 38 &&
  1094. template_id != 41 &&
  1095. template_id != 43 &&
  1096. template_id != 44 &&
  1097. template_id != 46 &&
  1098. template_id != 48 &&
  1099. template_id != 53 &&
  1100. template_id != 54 &&
  1101. template_id != 56 &&
  1102. template_id != 47 &&
  1103. template_id != 60 &&
  1104. org_id!=10432 &&
  1105. org_id!=10445 &&
  1106. org_id!=10410)
  1107. || org_id == 10387
  1108. "
  1109. >
  1110. <el-form-item label="超滤率(L/h)" :prop="isName('超滤率')"
  1111. :rules="isCheckmust('超滤率')">
  1112. <el-input v-model="form.ultrafiltration_rate"></el-input>
  1113. </el-form-item>
  1114. </el-col>
  1115. <el-col
  1116. :span="8"
  1117. v-if="
  1118. isShow('超滤量') &&
  1119. (template_id == 6 ||
  1120. template_id == 9 ||
  1121. template_id == 10 ||
  1122. template_id == 11 ||
  1123. template_id == 12 ||
  1124. template_id == 13 ||
  1125. template_id == 17 ||
  1126. template_id == 18 ||
  1127. template_id == 19 ||
  1128. template_id == 20 ||
  1129. template_id == 21 ||
  1130. template_id == 22 ||
  1131. template_id == 23 ||
  1132. template_id == 24 ||
  1133. template_id == 26 ||
  1134. template_id == 27 ||
  1135. template_id == 29 ||
  1136. template_id == 30 ||
  1137. template_id == 31 ||
  1138. template_id == 32 ||
  1139. template_id == 34 ||
  1140. template_id == 35 ||
  1141. template_id == 36 ||
  1142. template_id == 38 ||
  1143. template_id == 41 ||
  1144. template_id == 43 ||
  1145. template_id == 44 ||
  1146. template_id == 46 ||
  1147. template_id == 47 ||
  1148. template_id == 48 ||
  1149. template_id == 51 ||
  1150. template_id == 53 ||
  1151. template_id == 54 ||
  1152. template_id == 56 ||
  1153. template_id == 60 ||
  1154. org_id == 10210 ||
  1155. org_id == 9555 ||
  1156. org_id == 10340 ||
  1157. org_id == 10432 ||
  1158. org_id == 10445 ||
  1159. org_id == 10410)
  1160. && org_id!=10387
  1161. "
  1162. >
  1163. <el-form-item label="超滤量(ml):" :prop="isName('超滤量')"
  1164. :rules="isCheckmust('超滤量')">
  1165. <el-input v-model="form.ultrafiltration_volume"></el-input>
  1166. </el-form-item>
  1167. </el-col>
  1168. <el-col
  1169. :span="8"
  1170. v-if="
  1171. isShow('超滤量') &&
  1172. (template_id != 6 &&
  1173. template_id != 9 &&
  1174. template_id != 10 &&
  1175. template_id != 11 &&
  1176. template_id != 12 &&
  1177. template_id != 13 &&
  1178. template_id != 17 &&
  1179. template_id != 18 &&
  1180. template_id != 19 &&
  1181. template_id != 20 &&
  1182. template_id != 21 &&
  1183. template_id != 22 &&
  1184. template_id != 23 &&
  1185. template_id != 24 &&
  1186. template_id != 26 &&
  1187. template_id != 27 &&
  1188. template_id != 29 &&
  1189. template_id != 30 &&
  1190. template_id != 31 &&
  1191. template_id != 32 &&
  1192. template_id != 34 &&
  1193. template_id != 35 &&
  1194. template_id != 36 &&
  1195. template_id != 38 &&
  1196. template_id != 41 &&
  1197. template_id != 43 &&
  1198. template_id != 44 &&
  1199. template_id != 46 &&
  1200. template_id != 47 &&
  1201. template_id != 51 &&
  1202. template_id == 48 &&
  1203. template_id == 53 &&
  1204. template_id == 54 &&
  1205. template_id == 56 &&
  1206. template_id == 60 &&
  1207. org_id != 10210 &&
  1208. org_id != 10340 &&
  1209. org_id != 9555 &&
  1210. org_id!=10432 &&
  1211. org_id!=10445 &&
  1212. org_id!=10410)
  1213. || org_id == 10387
  1214. "
  1215. >
  1216. <el-form-item label="超滤量(L):" :prop="isName('超滤量')"
  1217. :rules="isCheckmust('超滤量')">
  1218. <el-input v-model="form.ultrafiltration_volume"></el-input>
  1219. </el-form-item>
  1220. </el-col>
  1221. <el-col :span="8" v-if="isShow('钠浓度')">
  1222. <el-form-item label="钠浓度(mmol/L):" :prop="isName('钠浓度')"
  1223. :rules="isCheckmust('钠浓度')">
  1224. <el-input v-model="form.sodium_concentration"></el-input>
  1225. </el-form-item>
  1226. </el-col>
  1227. <!-- </el-row>
  1228. <el-row :gutter="20"> -->
  1229. <el-col :span="8" v-if="isShow('透析液温度')">
  1230. <el-form-item label="透析液温度(℃):" :prop="isName('透析液温度')"
  1231. :rules="isCheckmust('透析液温度')">
  1232. <el-input v-model="form.dialysate_temperature"></el-input>
  1233. </el-form-item>
  1234. </el-col>
  1235. <el-col
  1236. :span="8"
  1237. v-if="
  1238. isShow('置换率') &&
  1239. template_id != 6 &&
  1240. template_id != 10 &&
  1241. template_id != 11 &&
  1242. template_id != 20 &&
  1243. template_id != 26 &&
  1244. template_id != 29 &&
  1245. template_id != 46 &&
  1246. template_id != 48 &&
  1247. template_id != 54 &&
  1248. template_id != 56 &&
  1249. template_id != 53 &&
  1250. org_id!=10432 &&
  1251. org_id!=10445
  1252. "
  1253. >
  1254. <el-form-item label="置换率(L/h):" :prop="isName('置换率')"
  1255. :rules="isCheckmust('置换率')">
  1256. <el-input v-model="form.replacement_rate"></el-input>
  1257. </el-form-item>
  1258. </el-col>
  1259. <el-col
  1260. :span="8"
  1261. v-if="
  1262. isShow('置换率') &&
  1263. (template_id == 6 ||
  1264. template_id == 10 ||
  1265. template_id == 11 ||
  1266. template_id == 20 ||
  1267. template_id == 26 ||
  1268. template_id == 29 ||
  1269. template_id == 46 ||
  1270. template_id == 53 ||
  1271. template_id == 54 ||
  1272. template_id == 56 ||
  1273. template_id == 48 ||
  1274. org_id==10432 ||
  1275. org_id!=10445)
  1276. "
  1277. >
  1278. <el-form-item label="置换率(ml/min):" :prop="isName('置换率')"
  1279. :rules="isCheckmust('置换率')">
  1280. <el-input v-model="form.replacement_rate"></el-input>
  1281. </el-form-item>
  1282. </el-col>
  1283. <el-col :span="8" v-if="isShow('置换量') && template_id == 43">
  1284. <el-form-item label="置换量(ml/h):" :prop="isName('置换量')"
  1285. :rules="isCheckmust('置换量')">
  1286. <el-input v-model="form.displacement_quantity"></el-input>
  1287. </el-form-item>
  1288. </el-col>
  1289. <el-col
  1290. :span="8"
  1291. v-if="
  1292. isShow('置换量') &&
  1293. (template_id != 6 || org_id == 9919 || org_id == 10191) &&
  1294. org_id != 9779 &&
  1295. template_id != 11 &&
  1296. template_id != 20 &&
  1297. template_id != 26 &&
  1298. template_id != 29 &&
  1299. template_id != 43 &&
  1300. template_id != 46 &&
  1301. template_id != 53 &&
  1302. template_id != 54 &&
  1303. template_id != 56 &&
  1304. template_id != 48 &&
  1305. org_id!=10340 &&
  1306. org_id!=10432 &&
  1307. org_id!=10445
  1308. "
  1309. >
  1310. <el-form-item label="置换量(L):" :prop="isName('置换量')"
  1311. :rules="isCheckmust('置换量')">
  1312. <el-input v-model="form.displacement_quantity"></el-input>
  1313. </el-form-item>
  1314. </el-col>
  1315. <el-col
  1316. :span="8"
  1317. v-if="
  1318. isShow('置换量') &&
  1319. ((template_id == 6 &&
  1320. org_id != 9919 &&
  1321. org_id != 10191 &&
  1322. template_id != 43) ||
  1323. org_id == 9779 ||
  1324. template_id == 11 ||
  1325. template_id == 20 ||
  1326. template_id == 26 ||
  1327. template_id == 29 ||
  1328. template_id == 46 ||
  1329. template_id == 53 ||
  1330. template_id == 54 ||
  1331. template_id == 56 ||
  1332. template_id == 48 ||
  1333. org_id!=10340 ||
  1334. org_id ==10432 ||
  1335. org_id ==10445)
  1336. "
  1337. >
  1338. <el-form-item label="置换量(ml):" :prop="isName('置换量')"
  1339. :rules="isCheckmust('置换量')">
  1340. <el-input v-model="form.displacement_quantity"></el-input>
  1341. </el-form-item>
  1342. </el-col>
  1343. <el-col :span="8" v-if="isShow('电导度')">
  1344. <el-form-item label="电导度(mS/m):" :prop="isName('电导度')"
  1345. :rules="isCheckmust('电导度')">
  1346. <el-input v-model="form.conductivity"></el-input>
  1347. </el-form-item>
  1348. </el-col>
  1349. <el-col :span="8" v-if="isShow('置换液流量') && template_id != 27">
  1350. <el-form-item label="置换液流量(ml/h):" :prop="isName('置换液流量')"
  1351. :rules="isCheckmust('置换液流量')">
  1352. <el-input v-model="form.displacement_flow_quantity"></el-input>
  1353. </el-form-item>
  1354. </el-col>
  1355. <el-col :span="8" v-if="isShow('置换液流量') && template_id == 27">
  1356. <el-form-item label="置换液流量(ml/min):" :prop="isName('置换液流量')"
  1357. :rules="isCheckmust('置换液流量')">
  1358. <el-input v-model="form.displacement_flow_quantity"></el-input>
  1359. </el-form-item>
  1360. </el-col>
  1361. <el-col :span="8" v-if="isShow('透析液流量')">
  1362. <el-form-item label="透析液流量(ml/h):" :prop="isName('透析液流量')"
  1363. :rules="isCheckmust('透析液流量')">
  1364. <el-input v-model="form.dialysate_flow"></el-input>
  1365. </el-form-item>
  1366. </el-col>
  1367. <el-col :span="8" v-if="isShow('SpO₂')">
  1368. <el-form-item label="SpO₂(%):" :prop="isName('SpO₂')"
  1369. :rules="isCheckmust('SpO₂')">
  1370. <el-input v-model="form.blood_oxygen_saturation"></el-input>
  1371. </el-form-item>
  1372. </el-col>
  1373. <el-col :span="8" v-if="isShow('血糖')">
  1374. <el-form-item label="血糖(mmol/L):" :prop="isName('血糖')"
  1375. :rules="isCheckmust('血糖')">
  1376. <el-input v-model="form.blood_sugar"></el-input>
  1377. </el-form-item>
  1378. </el-col>
  1379. <el-col :span="8" v-if="isShow('肝素用量余量')">
  1380. <el-form-item label="肝素用量余量(ml):" :prop="isName('肝素用量余量')"
  1381. :rules="isCheckmust('肝素用量余量')">
  1382. <el-input v-model="form.heparin"></el-input>
  1383. </el-form-item>
  1384. </el-col>
  1385. <el-col :span="8" v-if="isShow('肝素量')">
  1386. <el-form-item label="肝素量(mg):" :prop="isName('肝素量')"
  1387. :rules="isCheckmust('肝素量')">
  1388. <el-input v-model="form.heparin_amount"></el-input>
  1389. </el-form-item>
  1390. </el-col>
  1391. <el-col :span="8" v-if="isShow('抗凝剂')">
  1392. <el-form-item label="抗凝剂:" :prop="isName('抗凝剂')"
  1393. :rules="isCheckmust('抗凝剂')">
  1394. <div style="display: flex">
  1395. <el-select
  1396. v-model="form.monitor_anticoagulant"
  1397. placeholder="请选择"
  1398. style="width: 50%"
  1399. >
  1400. <el-option
  1401. v-for="(item, index) in anticoagulantsConfit"
  1402. :label="item.name"
  1403. :key="index + 'e'"
  1404. :value="item.id"
  1405. ></el-option>
  1406. </el-select>
  1407. <el-input
  1408. v-model="form.monitor_anticoagulant_value"
  1409. style="width: 49%; margin-left: 10px"
  1410. ></el-input>
  1411. </div>
  1412. </el-form-item>
  1413. </el-col>
  1414. <el-col :span="8" v-if="isShow('血压监测部位')">
  1415. <el-form-item label="血压监测部位:" :prop="isName('血压监测部位')"
  1416. :rules="isCheckmust('血压监测部位')">
  1417. <div style="display: flex">
  1418. <el-select
  1419. v-model="form.blood_pressure_monitoring_site"
  1420. placeholder="请选择"
  1421. style="width: 50%"
  1422. >
  1423. <el-option
  1424. v-for="(item, index) in bloodPressureMmonitoringSite"
  1425. :label="item.name"
  1426. :key="index + 'e'"
  1427. :value="item.id"
  1428. ></el-option>
  1429. </el-select>
  1430. </div>
  1431. </el-form-item>
  1432. </el-col>
  1433. <el-col :span="8" v-if="isShow('并发症')">
  1434. <el-form-item label="并发症" :prop="isName('并发症')"
  1435. :rules="isCheckmust('并发症')">
  1436. <div style="display: flex">
  1437. <el-select
  1438. v-model="form.complication"
  1439. placeholder="请选择"
  1440. style="width: 50%"
  1441. >
  1442. <el-option
  1443. v-for="(item, index) in complicationList"
  1444. :label="item.name"
  1445. :key="index + 'e'"
  1446. :value="item.id"
  1447. ></el-option>
  1448. </el-select>
  1449. </div>
  1450. </el-form-item>
  1451. </el-col>
  1452. <el-col :span="8" v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9671 || org_id == 9538 || org_id == 10340)">
  1453. <el-form-item label="累计血容量(L):" :prop="isName('累计血容量')"
  1454. :rules="isCheckmust('累计血容量')">
  1455. <el-input v-model="form.accumulated_blood_volume"></el-input>
  1456. </el-form-item>
  1457. </el-col>
  1458. <el-col :span="8" v-if="isShow('累计血容量') && (template_id != 41 && template_id !=9671 && org_id!=9538 && org_id!=10340)">
  1459. <el-form-item label="累计血容量(ml):" :prop="isName('累计血容量')"
  1460. :rules="isCheckmust('累计血容量')">
  1461. <el-input v-model="form.accumulated_blood_volume"></el-input>
  1462. </el-form-item>
  1463. </el-col>
  1464. <el-col :span="8" v-if="isShow('血容量')">
  1465. <el-form-item label="血容量(L):" :prop="isName('血容量')"
  1466. :rules="isCheckmust('血容量')">
  1467. <el-input v-model="form.accumulated_blood_volume"></el-input>
  1468. </el-form-item>
  1469. </el-col>
  1470. <el-col :span="8" v-if="isShow('血温监测')">
  1471. <el-form-item label="血温监测" :prop="isName('血温监测')"
  1472. :rules="isCheckmust('血温监测')">
  1473. <el-input v-model="form.blood_temperature"></el-input>
  1474. </el-form-item>
  1475. </el-col>
  1476. <el-col :span="8" v-if="isShow('尿素监测')">
  1477. <el-form-item label="尿素监测" :prop="isName('尿素监测')"
  1478. :rules="isCheckmust('尿素监测')">
  1479. <el-input v-model="form.urea_monitoring"></el-input>
  1480. </el-form-item>
  1481. </el-col>
  1482. <el-col :span="8" v-if="isShow('血浓量')">
  1483. <el-form-item label="血浓量" :prop="isName('血浓量')"
  1484. :rules="isCheckmust('血浓量')">
  1485. <el-input v-model="form.blood_thickness"></el-input>
  1486. </el-form-item>
  1487. </el-col>
  1488. <el-col :span="8" v-if="isShow('血压监测')">
  1489. <el-form-item label="血压监测" :prop="isName('血压监测')"
  1490. :rules="isCheckmust('血压监测')">
  1491. <el-input v-model="form.blood_monitor"></el-input>
  1492. </el-form-item>
  1493. </el-col>
  1494. <el-col :span="8" v-if="isShow('脱水')">
  1495. <el-form-item label="脱水(L):" :prop="isName('脱水')"
  1496. :rules="isCheckmust('脱水')">
  1497. <el-input v-model="form.dehydration"></el-input>
  1498. </el-form-item>
  1499. </el-col>
  1500. <el-col :span="8" v-if="isShow('滤前压')">
  1501. <el-form-item label="滤前压(mmHg):">
  1502. <el-input v-model="form.filter_pressure"></el-input>
  1503. </el-form-item>
  1504. </el-col>
  1505. <!-- </el-row>
  1506. <el-row :gutter="20"> -->
  1507. <el-col :span="24" v-if="isShow('KT/V')">
  1508. <el-form-item label="KT/V(在线):" :prop="isName('KT/V')"
  1509. :rules="isCheckmust('KT/V')">
  1510. <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
  1511. </el-form-item>
  1512. </el-col>
  1513. <el-col :span="24" v-if="isShow('URR')">
  1514. <el-form-item label="URR:" :prop="isName('URR')"
  1515. :rules="isCheckmust('URR')">
  1516. <el-input type="textarea" :rows="4" v-model="form.urr"></el-input>
  1517. </el-form-item>
  1518. </el-col>
  1519. <!-- </el-row>
  1520. <el-row :gutter="20"> -->
  1521. <el-col :span="24" v-if="isShow('病情变化')">
  1522. <el-form-item label="病情变化:" :prop="isName('病情变化')"
  1523. :rules="isCheckmust('病情变化')">
  1524. <el-select
  1525. v-model="symptom_selecteds"
  1526. style="width: 100%"
  1527. :multiple="true"
  1528. collapse-tags
  1529. @change="symptomSelectorChange"
  1530. >
  1531. <el-option
  1532. v-for="(symptom, index) in symptom_options"
  1533. :key="index"
  1534. :label="symptom.name"
  1535. :value="symptom.name"
  1536. ></el-option>
  1537. </el-select>
  1538. </el-form-item>
  1539. </el-col>
  1540. <!-- </el-row>
  1541. <el-row :gutter="20"> -->
  1542. <el-col :span="24" v-if="isShow('病情变化')">
  1543. <el-form-item :prop="isName('病情变化')"
  1544. :rules="isCheckmust('病情变化')">
  1545. <el-input
  1546. type="textarea"
  1547. :rows="4"
  1548. v-model="form.symptom"
  1549. @blur="symptomTextareaBlur"
  1550. ></el-input>
  1551. </el-form-item>
  1552. </el-col>
  1553. <!-- </el-row>
  1554. <el-row :gutter="20"> -->
  1555. <el-col :span="24" v-if="isShow('处理')">
  1556. <el-form-item label="处理:" :prop="isName('处理')"
  1557. :rules="isCheckmust('处理')">
  1558. <el-select
  1559. v-model="dispose_selecteds"
  1560. style="width: 100%"
  1561. :multiple="true"
  1562. collapse-tags
  1563. @change="disposeSelectorChange"
  1564. >
  1565. <el-option
  1566. v-for="(dispose, index) in dispose_options"
  1567. :key="index"
  1568. :label="dispose.name"
  1569. :value="dispose.name"
  1570. ></el-option>
  1571. </el-select>
  1572. </el-form-item>
  1573. </el-col>
  1574. <!-- </el-row>
  1575. <el-row :gutter="20"> -->
  1576. <el-col :span="24" v-if="isShow('处理')">
  1577. <el-form-item :prop="isName('处理')"
  1578. :rules="isCheckmust('处理')">
  1579. <el-input
  1580. type="textarea"
  1581. :rows="4"
  1582. v-model="form.dispose"
  1583. @blur="disposeTextareaBlur"
  1584. ></el-input>
  1585. <!-- @blur="disposeTextareaBlur" -->
  1586. </el-form-item>
  1587. </el-col>
  1588. <!-- </el-row>
  1589. <el-row :gutter="20"> -->
  1590. <el-col :span="24" v-if="isShow('结果')">
  1591. <el-form-item label="结果:" :prop="isName('结果')"
  1592. :rules="isCheckmust('结果')">
  1593. <el-select
  1594. v-model="result_selecteds"
  1595. style="width: 100%"
  1596. :multiple="true"
  1597. collapse-tags
  1598. @change="resultSelectorChange"
  1599. >
  1600. <el-option
  1601. v-for="(result, index) in result_options"
  1602. :key="index"
  1603. :label="result.name"
  1604. :value="result.name"
  1605. ></el-option>
  1606. </el-select>
  1607. </el-form-item>
  1608. </el-col>
  1609. <!-- </el-row>
  1610. <el-row :gutter="20"> -->
  1611. <el-col :span="24" v-if="isShow('结果')">
  1612. <el-form-item :prop="isName('结果')"
  1613. :rules="isCheckmust('结果')">
  1614. <el-input
  1615. type="textarea"
  1616. :rows="4"
  1617. v-model="form.result"
  1618. @blur="resultTextareaBlur"
  1619. ></el-input>
  1620. </el-form-item>
  1621. </el-col>
  1622. </el-row>
  1623. </el-form>
  1624. <div slot="footer" class="dialog-footer" v-show="edit">
  1625. <el-button @click="cancelEditAction">取 消</el-button>
  1626. <el-button :loading="loading" type="primary" @click="submitAction('form')">保 存</el-button>
  1627. </div>
  1628. <!--</div>-->
  1629. </el-dialog>
  1630. </div>
  1631. </template>
  1632. <script>
  1633. import { parseTime } from "@/utils";
  1634. import { getDataConfig } from "@/utils/data";
  1635. import {
  1636. editMonitor,
  1637. postDelMonitorInfo,
  1638. getTodayMonitor,
  1639. } from "@/api/dialysis_record";
  1640. import store from "@/store";
  1641. import request from "@/utils/request";
  1642. export default {
  1643. name: "MonitorDialog",
  1644. data() {
  1645. return {
  1646. loading: false,
  1647. is_has_create: true,
  1648. is_has_modify: true,
  1649. is_has_modify_other: true,
  1650. is_has_del: true,
  1651. is_has_del_other: true,
  1652. visible: false,
  1653. edit: false,
  1654. current_row_class: "current-box-class",
  1655. creator: 0,
  1656. patient_id: 0,
  1657. schedule_date: 0,
  1658. template_id: 0,
  1659. isAdd: false,
  1660. // monitoring_date: 0,
  1661. form: {
  1662. id: 0,
  1663. monitoring_date: 0, // 监测日期
  1664. // operate_date: 0, // 实际测量日期
  1665. // monitoring_time: "", // 监测时间 HH:mm
  1666. operate_time: 0,
  1667. systolic_bp: "", // 收缩压
  1668. diastolic_bp: "", // 舒张压
  1669. pulse_frequency: "", // 心率
  1670. temperature: "", // 体温
  1671. breathing_rated: "", // 呼吸频率
  1672. blood_flow_volume: "", // 血流量
  1673. venous_pressure: "", // 静脉压
  1674. venous_pressure_type: 1, // 静脉压
  1675. transmembrane_pressure: "", // 跨膜压
  1676. transmembrane_pressure_type: 1, // 跨膜压
  1677. ultrafiltration_volume: "", // c
  1678. ultrafiltration_rate: "", // 超滤率
  1679. arterial_pressure: "", // 动脉压
  1680. arterial_pressure_type: 1, // 动脉压
  1681. sodium_concentration: "", // 钠浓度
  1682. dialysate_temperature: "", // 透析液温度
  1683. replacement_rate: "", // 置换率
  1684. displacement_quantity: "", // 置换量
  1685. conductivity: "", // 电导度
  1686. displacement_flow_quantity: "", // 置换液流量
  1687. dialysate_flow: "", // 透析液流量
  1688. heparin: "", // 肝素用量余量
  1689. ktv: "", // KT/V
  1690. symptom: "", // 病情变化
  1691. dispose: "", // 处理
  1692. result: "", // 结果,
  1693. blood_oxygen_saturation: "",
  1694. urr: "",
  1695. blood_sugar: "", //血糖
  1696. monitor_anticoagulant: "",
  1697. monitor_anticoagulant_value: "",
  1698. blood_pressure_monitoring_site: "",
  1699. complication: "",
  1700. accumulated_blood_volume: "",
  1701. blood_temperature: "",
  1702. urea_monitoring: "",
  1703. blood_thickness: "",
  1704. blood_monitor: "",
  1705. heparin_amount: "", //肝素量
  1706. dehydration: "",
  1707. filter_pressure:"",
  1708. },
  1709. table_current_row: null,
  1710. symptom_selecteds: [],
  1711. symptom_options: getDataConfig("hemodialysis", "symptoms"),
  1712. dispose_selecteds: [],
  1713. dispose_options: getDataConfig("hemodialysis", "deals"),
  1714. result_selecteds: [],
  1715. result_options: getDataConfig("hemodialysis", "results"),
  1716. valueOne: 0,
  1717. valueTwo: 0,
  1718. valueThree: 0,
  1719. anticoagulantsConfit: {},
  1720. bloodPressureMmonitoringSite: [],
  1721. complicationList: [],
  1722. };
  1723. },
  1724. props: {
  1725. monitors: {
  1726. type: Array,
  1727. },
  1728. patient: {
  1729. type: Object,
  1730. },
  1731. },
  1732. computed: {
  1733. monitor_date_str: function () {
  1734. return parseTime(this.form.monitoring_date, "{y}-{m}-{d}");
  1735. },
  1736. },
  1737. created() {
  1738. this.template_id = this.$store.getters.xt_user.template_info.template_id;
  1739. this.org_id = this.$store.getters.xt_user.template_info.org_id;
  1740. var date = this.$route.query.date;
  1741. var patient_id = this.$route.query.patient_id;
  1742. this.patient_id = patient_id ? patient_id : this.patient.id;
  1743. console.log("this.patient_id", this.patient_id);
  1744. this.schedule_date = date
  1745. ? date
  1746. : new Date(new Date().toLocaleDateString()).getTime() / 1000;
  1747. this.form.monitoring_date = date
  1748. ? date
  1749. : new Date(new Date().toLocaleDateString()).getTime() / 1000;
  1750. // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
  1751. // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
  1752. this.form.operate_time = new Date().getTime();
  1753. var symptoms = getDataConfig("hemodialysis", "symptoms");
  1754. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1755. //console.log("抗凝剂",this.anticoagulantsConfit)
  1756. this.bloodPressureMmonitoringSite = getDataConfig(
  1757. "hemodialysis",
  1758. "blood_pressure_monitoring_site"
  1759. );
  1760. this.complicationList = getDataConfig("hemodialysis", "complication");
  1761. },
  1762. methods: {
  1763. isName(name) {
  1764. let filedList = store.getters.xt_user.fileds;
  1765. for (let i = 0; i < filedList.length; i++) {
  1766. if (filedList[i].module == 4 && filedList[i].filed_name_cn == name) {
  1767. return filedList[i].filed_name;
  1768. }
  1769. }
  1770. },
  1771. isCheckmust(name) {
  1772. let filedList = store.getters.xt_user.fileds;
  1773. for (let i = 0; i < filedList.length; i++) {
  1774. if (
  1775. filedList[i].module == 4
  1776. &&filedList[i].filed_name_cn == name
  1777. &&filedList[i].is_write == 1
  1778. ) {
  1779. // console.log(filedList[i].is_write,'false')
  1780. // console.log(name,filedList[i].filed_name_cn,'难道不一样吗')
  1781. return [{ required: true ,message:`请输入${name}` }];
  1782. }
  1783. // else {
  1784. // console.log(name,filedList[i].filed_name_cn,'难道不一样吗')
  1785. // // console.log(filedList[i].is_write,'true')
  1786. // return [{ required:false}];
  1787. // }
  1788. }
  1789. },
  1790. venousPressureChange(type) {
  1791. if (type == 1) {
  1792. this.form.venous_pressure = Math.ceil(
  1793. Math.round(this.form.venous_pressure * 7.5)
  1794. );
  1795. } else if (type == 2) {
  1796. this.form.transmembrane_pressure = Math.ceil(
  1797. Math.round(this.form.transmembrane_pressure * 7.5)
  1798. );
  1799. } else {
  1800. this.form.arterial_pressure = Math.ceil(
  1801. Math.round(this.form.arterial_pressure * 7.5)
  1802. );
  1803. }
  1804. },
  1805. venousPressureChangeOne() {
  1806. if (this.form.venous_pressure_type == 1) {
  1807. this.form.venous_pressure_type = 2;
  1808. } else {
  1809. this.form.venous_pressure_type = 1;
  1810. }
  1811. // if (this.valueOne == 0) {
  1812. // this.form.venous_pressure = Math.ceil(
  1813. // Math.round(this.form.venous_pressure * 7.5)
  1814. // )
  1815. // this.valueOne = 1
  1816. // return false
  1817. // }
  1818. // if (this.valueOne == 1) {
  1819. // this.form.venous_pressure = Math.ceil(
  1820. // Math.round(this.form.venous_pressure / 7.5)
  1821. // )
  1822. // this.valueOne = 0
  1823. // return false
  1824. // }
  1825. },
  1826. venousPressureChangeThree() {
  1827. if (this.form.arterial_pressure_type == 1) {
  1828. this.form.arterial_pressure_type = 2;
  1829. } else {
  1830. this.form.arterial_pressure_type = 1;
  1831. }
  1832. // if (this.valueThree == 0) {
  1833. // this.form.arterial_pressure = Math.ceil(
  1834. // Math.round(this.form.arterial_pressure * 7.5)
  1835. // )
  1836. // this.valueThree = 1
  1837. // return false
  1838. // }
  1839. // if (this.valueThree == 1) {
  1840. // this.form.arterial_pressure = Math.ceil(
  1841. // Math.round(this.form.arterial_pressure / 7.5)
  1842. // )
  1843. // this.valueThree = 0
  1844. // return false
  1845. // }
  1846. },
  1847. venousPressureChangeTwo() {
  1848. if (this.form.transmembrane_pressure_type == 1) {
  1849. this.form.transmembrane_pressure_type = 2;
  1850. } else {
  1851. this.form.transmembrane_pressure_type = 1;
  1852. }
  1853. // if (this.valueTwo == 0) {
  1854. // this.form.transmembrane_pressure = Math.ceil(
  1855. // Math.round(this.form.transmembrane_pressure * 7.5)
  1856. // )
  1857. // this.valueTwo = 1
  1858. // return false
  1859. // }
  1860. // if (this.valueTwo == 1) {
  1861. // this.form.transmembrane_pressure = Math.ceil(
  1862. // Math.round(this.form.transmembrane_pressure / 7.5)
  1863. // )
  1864. // this.valueTwo = 0
  1865. // return false
  1866. // }
  1867. },
  1868. isShow(name) {
  1869. var filedList = store.getters.xt_user.fileds;
  1870. for (let i = 0; i < filedList.length; i++) {
  1871. if (
  1872. filedList[i].module == 4 &&
  1873. filedList[i].filed_name_cn == name &&
  1874. filedList[i].is_show == 1
  1875. ) {
  1876. return true;
  1877. }
  1878. }
  1879. return false;
  1880. },
  1881. reset: function () {
  1882. this.cancelEditAction();
  1883. },
  1884. show() {
  1885. this.getPermission();
  1886. this.visible = true;
  1887. },
  1888. hide() {
  1889. this.visible = false;
  1890. },
  1891. getMonitorDate: function (monitor) {
  1892. return parseTime(monitor.operate_time, "{y}-{m}-{d} {h}:{i}");
  1893. },
  1894. newRecordAction: function () {
  1895. console.log("111111111")
  1896. this.setEditMonitor(null);
  1897. this.$refs.table.setCurrentRow(null);
  1898. console.log(this.dispose_options,'oop')
  1899. if (this.monitors.length == 0) {
  1900. this.disposeTextareaBlur();
  1901. }
  1902. this.edit = true;
  1903. this.isAdd = true;
  1904. this.getLastRecordTody();
  1905. },
  1906. getLastRecordTody() {
  1907. const params = {
  1908. patient_id: this.patient_id,
  1909. };
  1910. getTodayMonitor(params).then((rs) => {
  1911. console.log("机构ID", this.org_id);
  1912. var resp = rs.data.data;
  1913. this.form.operate_time = resp.monitor.operate_time
  1914. ? (resp.monitor.operate_time + 3600) * 1000
  1915. : Date.parse(new Date());
  1916. this.form.temperature = ""
  1917. // this.last_monitor_record.pulse_frequency;
  1918. // this.form.breathing_rated = resp.monitor.breathing_rated ? resp.monitor.breathing_rated : '';
  1919. this.form.systolic_bp = ""; // this.last_monitor_record.systolic_blood_pressure;
  1920. this.form.diastolic_bp = ""; // this.last_monitor_record.diastolic_blood_pressure;
  1921. this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume: "";
  1922. // 静脉压
  1923. if (this.org_id == 10060 || this.org_id == 10387) {
  1924. this.form.venous_pressure = resp.monitor.venous_pressure;
  1925. }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10469 || this.org_id == 10471 ){
  1926. this.form.venous_pressure = 80
  1927. } else {
  1928. this.form.venous_pressure = ""; // this.last_monitor_record.venous_pressure;
  1929. }
  1930. if(this.org_id == 10440){
  1931. this.form.pulse_frequency = 80
  1932. }else{
  1933. this.form.pulse_frequency = ""
  1934. }
  1935. this.form.venous_pressure_type = resp.monitor.venous_pressure_type? resp.monitor.venous_pressure_type: 1;
  1936. if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10387){
  1937. this.form.arterial_pressure = resp.monitor.arterial_pressure? resp.monitor.arterial_pressure: "-100"; // this.last_monitor_record.arterial_pressure;
  1938. }else{
  1939. this.form.arterial_pressure = resp.monitor.arterial_pressure? resp.monitor.arterial_pressure: ""
  1940. }
  1941. this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type
  1942. ? resp.monitor.arterial_pressure_type
  1943. : 1;
  1944. if (this.org_id == 10060 || this.org_id == 10387) {
  1945. this.form.transmembrane_pressure = resp.monitor.transmembrane_pressure;
  1946. }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
  1947. this.form.transmembrane_pressure = 60
  1948. } else {
  1949. this.form.transmembrane_pressure = ""; // this.last_monitor_record.transmembrane_pressure;
  1950. }
  1951. if (this.org_id == 10318) {
  1952. this.form.breathing_rated = resp.monitor.breathing_rate;
  1953. }else if(this.org_id == 9671){
  1954. this.form.breathing_rated = "20"
  1955. }else if(this.org_id == 10340){
  1956. this.form.breathing_rated = "20"
  1957. } else {
  1958. this.form.breathing_rated = "";
  1959. }
  1960. this.form.transmembrane_pressure_type = resp.monitor
  1961. .transmembrane_pressure_type
  1962. ? resp.monitor.transmembrane_pressure_type
  1963. : 1;
  1964. this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate
  1965. ? resp.monitor.ultrafiltration_rate
  1966. : "";
  1967. this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume
  1968. ? resp.monitor.ultrafiltration_volume
  1969. : "";
  1970. this.form.sodium_concentration = resp.monitor.sodium_concentration
  1971. ? resp.monitor.sodium_concentration
  1972. : "";
  1973. this.form.dialysate_temperature = resp.monitor.dialysate_temperature
  1974. ? resp.monitor.dialysate_temperature
  1975. : "";
  1976. if(this.org_id == 9675 || this.org_id == 9671 || this.org_id == 10340 || this.org_id == 10469 || this.org_id == 10471){
  1977. this.form.temperature = "36.5"
  1978. }else{
  1979. this.form.temperature = resp.monitor.temperature ? resp.monitor.temperature: "";
  1980. }
  1981. this.form.replacement_rate = resp.monitor.replacement_rate
  1982. ? resp.monitor.replacement_rate
  1983. : "";
  1984. this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : "";
  1985. this.form.dialysate_flow = resp.monitor.dialysate_flow
  1986. ? resp.monitor.dialysate_flow
  1987. : "";
  1988. this.form.displacement_quantity = resp.monitor.displacement_quantity
  1989. ? resp.monitor.displacement_quantity
  1990. : ""; // this.last_monitor_record.displacement_quantity;
  1991. this.form.conductivity = "";
  1992. this.form.displacement_flow_quantity = resp.monitor
  1993. .displacement_flow_quantity
  1994. ? resp.monitor.displacement_flow_quantity
  1995. : "";
  1996. this.form.ktv = resp.monitor.ktv ? resp.monitor.ktv : ""; // this.last_monitor_record.ktv;
  1997. this.form.symptom = resp.monitor.symptom ? resp.monitor.symptom : ""; // this.last_monitor_record.symptom;
  1998. // this.form.dispose = resp.monitor.dispose ? resp.monitor.dispose : ""; // this.last_monitor_record.dispose;
  1999. this.form.result = resp.monitor.result ? resp.monitor.result : ""; // this.last_monitor_record.result;
  2000. this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation? resp.monitor.blood_oxygen_saturation: "";
  2001. //针对长沙南雅医院
  2002. if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 9675){
  2003. this.form.blood_oxygen_saturation = "/"
  2004. }
  2005. this.form.urr = resp.monitor.urr ? resp.monitor.urr : "";
  2006. this.form.blood_sugar = resp.monitor.blood_sugar
  2007. ? resp.monitor.blood_sugar
  2008. : "";
  2009. this.form.sodium_concentration = resp.monitor.sodium_concentration
  2010. ? resp.monitor.sodium_concentration
  2011. : "";
  2012. if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
  2013. this.form.conductivity = 14
  2014. }else{
  2015. this.form.conductivity = resp.monitor.conductivity? resp.monitor.conductivity: "";
  2016. }
  2017. this.form.monitor_anticoagulant = resp.monitor.monitor_anticoagulant
  2018. ? resp.monitor.monitor_anticoagulant
  2019. : "";
  2020. this.form.monitor_anticoagulant_value = resp.monitor
  2021. .monitor_anticoagulant_value
  2022. ? resp.monitor.monitor_anticoagulant_value
  2023. : "";
  2024. this.form.accumulated_blood_volume = resp.monitor
  2025. .accumulated_blood_volume
  2026. ? resp.monitor.accumulated_blood_volume
  2027. : "";
  2028. this.form.blood_temperature = resp.monitor.blood_temperature
  2029. ? resp.monitor.blood_temperature
  2030. : "";
  2031. this.form.urea_monitoring = resp.monitor.urea_monitoring
  2032. ? resp.monitor.urea_monitoring
  2033. : "";
  2034. this.form.blood_thickness = resp.monitor.blood_thickness
  2035. ? resp.monitor.blood_thickness
  2036. : "";
  2037. this.form.blood_monitor = resp.monitor.blood_monitor
  2038. ? resp.monitor.blood_monitor
  2039. : "";
  2040. this.form.dehydration = resp.monitor.dehydration
  2041. ? resp.monitor.dehydration
  2042. : "";
  2043. this.form.heparin_amount = resp.monitor.heparin_amount
  2044. ? resp.monitor.heparin_amount
  2045. : "";
  2046. if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
  2047. this.form.dialysate_temperature = 36.5
  2048. }
  2049. });
  2050. },
  2051. modifyRecordAction: function () {
  2052. if (this.table_current_row == null) {
  2053. this.$message.error("请选择一条监测记录");
  2054. return;
  2055. }
  2056. this.creator = this.table_current_row.creator;
  2057. console.log("22222222222")
  2058. this.setEditMonitor(this.table_current_row);
  2059. this.$refs.table.setCurrentRow(null);
  2060. this.edit = true;
  2061. this.isAdd = false;
  2062. },
  2063. cancelEditAction: function () {
  2064. console.log("3333333333")
  2065. this.setEditMonitor(null);
  2066. this.$refs.table.setCurrentRow(null);
  2067. this.edit = false;
  2068. },
  2069. tableCurrentRowChange: function (currentRow) {
  2070. this.table_current_row = currentRow;
  2071. // console.log("tableCurrentRowChange", currentRow)
  2072. },
  2073. setEditMonitor: function (monitor) {
  2074. console.log("monitor23223322332", monitor);
  2075. if (monitor == null || monitor == undefined) {
  2076. this.form.id = 0;
  2077. // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
  2078. // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
  2079. this.form.operate_time = new Date().getTime();
  2080. this.form.systolic_bp = "";
  2081. this.form.diastolic_bp = "";
  2082. this.form.pulse_frequency = "";
  2083. this.form.breathing_rated = "";
  2084. this.form.blood_flow_volume = "";
  2085. this.form.temperature = "";
  2086. this.form.venous_pressure = "";
  2087. this.form.venous_pressure_type = 1;
  2088. this.form.transmembrane_pressure = "";
  2089. this.form.transmembrane_pressure_type = 1;
  2090. if(this.org_id == 9671 || this.org_id == 10440){
  2091. this.form.ultrafiltration_volume = 0
  2092. }
  2093. if(this.org_id != 9671 && this.org_id != 10440){
  2094. this.form.ultrafiltration_volume = "";
  2095. }
  2096. this.form.ultrafiltration_rate = "";
  2097. this.form.arterial_pressure = "";
  2098. this.form.arterial_pressure_type = 1;
  2099. this.form.sodium_concentration = "";
  2100. this.form.dialysate_temperature = "";
  2101. this.form.replacement_rate = "";
  2102. this.form.displacement_quantity = "";
  2103. this.form.conductivity = "";
  2104. this.form.displacement_flow_quantity = "";
  2105. this.form.heparin = "";
  2106. this.form.dialysate_flow = "";
  2107. this.form.ktv = "";
  2108. this.form.symptom = "";
  2109. this.form.dispose = "";
  2110. this.form.result = "";
  2111. this.symptom_selecteds = [];
  2112. this.dispose_selecteds = [];
  2113. this.result_selecteds = [];
  2114. this.form.urr = "";
  2115. this.form.blood_sugar = "";
  2116. this.form.monitor_anticoagulant = "";
  2117. this.form.monitor_anticoagulant_value = "";
  2118. this.form.accumulated_blood_volume = "";
  2119. this.form.blood_temperature = "";
  2120. this.form.urea_monitoring = "";
  2121. this.form.blood_thickness = "";
  2122. this.form.blood_monitor = "";
  2123. this.form.dehydration = "";
  2124. this.form.heparin_amount = "";
  2125. this.form.filter_pressure =""
  2126. } else {
  2127. (this.form.id = monitor.id),
  2128. // this.form.operate_date = monitor.operate_date
  2129. // this.form.monitoring_time = monitor.monitoring_time
  2130. (this.form.operate_time = monitor.operate_time * 1000);
  2131. this.form.systolic_bp = monitor.systolic_blood_pressure
  2132. ? monitor.systolic_blood_pressure
  2133. : "";
  2134. this.form.temperature = monitor.temperature ? monitor.temperature : "";
  2135. this.form.diastolic_bp = monitor.diastolic_blood_pressure
  2136. ? monitor.diastolic_blood_pressure
  2137. : "";
  2138. this.form.pulse_frequency = monitor.pulse_frequency
  2139. ? monitor.pulse_frequency
  2140. : "";
  2141. this.form.breathing_rated = monitor.breathing_rate
  2142. ? monitor.breathing_rate
  2143. : "";
  2144. this.form.blood_flow_volume = monitor.blood_flow_volume
  2145. ? monitor.blood_flow_volume
  2146. : "";
  2147. this.form.venous_pressure = monitor.venous_pressure
  2148. ? monitor.venous_pressure
  2149. : "";
  2150. this.form.venous_pressure_type = monitor.venous_pressure_type
  2151. ? monitor.venous_pressure_type
  2152. : "";
  2153. this.form.transmembrane_pressure = monitor.transmembrane_pressure
  2154. ? monitor.transmembrane_pressure
  2155. : "";
  2156. this.form.transmembrane_pressure_type =
  2157. monitor.transmembrane_pressure_type
  2158. ? monitor.transmembrane_pressure_type
  2159. : "";
  2160. if(this.org_id == 9671 || this.org_id == 10440){
  2161. this.form.ultrafiltration_volume = monitor.ultrafiltration_volume
  2162. ? monitor.ultrafiltration_volume
  2163. : "0";
  2164. }
  2165. if(this.org_id != 9671 && this.org_id !=10440){
  2166. this.form.ultrafiltration_volume = monitor.ultrafiltration_volume
  2167. ? monitor.ultrafiltration_volume
  2168. : "";
  2169. }
  2170. this.form.ultrafiltration_rate = monitor.ultrafiltration_rate
  2171. ? monitor.ultrafiltration_rate
  2172. : "";
  2173. if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
  2174. this.form.arterial_pressure = monitor.arterial_pressure
  2175. ? monitor.arterial_pressure
  2176. : "-100";
  2177. }else{
  2178. this.form.arterial_pressure = monitor.arterial_pressure
  2179. ? monitor.arterial_pressure
  2180. : "";
  2181. }
  2182. this.form.arterial_pressure_type = monitor.arterial_pressure_type
  2183. ? monitor.arterial_pressure_type
  2184. : "";
  2185. this.form.sodium_concentration = monitor.sodium_concentration
  2186. ? monitor.sodium_concentration
  2187. : "";
  2188. this.form.dialysate_temperature = monitor.dialysate_temperature
  2189. ? monitor.dialysate_temperature
  2190. : "";
  2191. this.form.replacement_rate = monitor.replacement_rate
  2192. ? monitor.replacement_rate
  2193. : "";
  2194. this.form.displacement_quantity = monitor.displacement_quantity
  2195. ? monitor.displacement_quantity
  2196. : "";
  2197. this.form.conductivity = monitor.conductivity
  2198. ? monitor.conductivity
  2199. : "";
  2200. this.form.displacement_flow_quantity =
  2201. monitor.displacement_flow_quantity
  2202. ? monitor.displacement_flow_quantity
  2203. : "";
  2204. this.form.heparin = monitor.heparin ? monitor.heparin : "";
  2205. this.form.dialysate_flow = monitor.dialysate_flow
  2206. ? monitor.dialysate_flow
  2207. : "";
  2208. this.form.ktv = monitor.ktv ? monitor.ktv : "";
  2209. this.form.symptom = monitor.symptom;
  2210. this.form.dispose = monitor.dispose;
  2211. this.form.result = monitor.result;
  2212. this.form.blood_oxygen_saturation = monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:"/"
  2213. this.form.urr = monitor.urr ? monitor.urr : "";
  2214. this.form.blood_sugar = monitor.blood_sugar ? monitor.blood_sugar : "";
  2215. this.form.monitor_anticoagulant = monitor.monitor_anticoagulant
  2216. ? monitor.monitor_anticoagulant
  2217. : "";
  2218. this.form.monitor_anticoagulant_value =
  2219. monitor.monitor_anticoagulant_value
  2220. ? monitor.monitor_anticoagulant_value
  2221. : "";
  2222. this.form.accumulated_blood_volume = monitor.accumulated_blood_volume
  2223. ? monitor.accumulated_blood_volume
  2224. : "";
  2225. this.form.blood_temperature = monitor.blood_temperature
  2226. ? monitor.blood_temperature
  2227. : "";
  2228. this.form.urea_monitoring = monitor.urea_monitoring
  2229. ? monitor.urea_monitoring
  2230. : "";
  2231. this.form.blood_thickness = monitor.blood_thickness
  2232. ? monitor.blood_thickness
  2233. : "";
  2234. this.form.blood_monitor = monitor.blood_monitor
  2235. ? monitor.blood_monitor
  2236. : "";
  2237. this.form.dehydration = monitor.dehydration ? monitor.dehydration : "";
  2238. this.form.heparin_amount = monitor.heparin_amount
  2239. ? monitor.heparin_amount
  2240. : "";
  2241. this.form.filter_pressure = monitor.filter_pressure
  2242. ? monitor.filter_pressure
  2243. : "";
  2244. // 设置三个下拉框的值,直接调用事件偷懒
  2245. this.symptomTextareaBlur();
  2246. this.disposeTextareaBlur();
  2247. this.resultTextareaBlur();
  2248. }
  2249. },
  2250. submitAction: function (form) {
  2251. // TODO loading
  2252. this.$refs[form].validate((valid) => {
  2253. if (valid) {
  2254. this.loading = true
  2255. console.log("aaaa")
  2256. var is_new = this.form.id;
  2257. this.form.operate_time = parseInt(this.form.operate_time / 1000);
  2258. this.form.systolic_bp =
  2259. parseFloat(this.form.systolic_bp) == NaN
  2260. ? 0
  2261. : parseFloat(this.form.systolic_bp);
  2262. this.form.diastolic_bp =
  2263. parseFloat(this.form.diastolic_bp) == NaN
  2264. ? 0
  2265. : parseFloat(this.form.diastolic_bp);
  2266. this.form.temperature =
  2267. parseFloat(this.form.temperature) == NaN
  2268. ? 0
  2269. : parseFloat(this.form.temperature);
  2270. this.form.pulse_frequency =
  2271. parseFloat(this.form.pulse_frequency) == NaN ? 0: parseFloat(this.form.pulse_frequency);
  2272. this.form.breathing_rated = this.form.breathing_rated
  2273. this.form.blood_flow_volume =
  2274. parseFloat(this.form.blood_flow_volume) == NaN
  2275. ? 0
  2276. : parseFloat(this.form.blood_flow_volume);
  2277. this.form.venous_pressure =
  2278. parseFloat(this.form.venous_pressure) == NaN
  2279. ? 0
  2280. : parseFloat(this.form.venous_pressure);
  2281. this.form.venous_pressure_type =
  2282. parseFloat(this.form.venous_pressure_type) == NaN
  2283. ? 1
  2284. : parseFloat(this.form.venous_pressure_type);
  2285. this.form.transmembrane_pressure =
  2286. parseFloat(this.form.transmembrane_pressure) == NaN
  2287. ? 0
  2288. : parseFloat(this.form.transmembrane_pressure);
  2289. this.form.transmembrane_pressure_type =
  2290. parseFloat(this.form.transmembrane_pressure_type) == NaN
  2291. ? 1
  2292. : parseFloat(this.form.transmembrane_pressure_type);
  2293. this.form.ultrafiltration_volume =
  2294. parseFloat(this.form.ultrafiltration_volume) == NaN
  2295. ? 0
  2296. : parseFloat(this.form.ultrafiltration_volume);
  2297. this.form.ultrafiltration_rate =
  2298. parseFloat(this.form.ultrafiltration_rate) == NaN
  2299. ? 0
  2300. : parseFloat(this.form.ultrafiltration_rate);
  2301. this.form.arterial_pressure =
  2302. parseFloat(this.form.arterial_pressure) == NaN
  2303. ? 0
  2304. : parseFloat(this.form.arterial_pressure);
  2305. this.form.arterial_pressure_type =
  2306. parseFloat(this.form.arterial_pressure_type) == NaN
  2307. ? 1
  2308. : parseFloat(this.form.arterial_pressure_type);
  2309. this.form.sodium_concentration =
  2310. parseFloat(this.form.sodium_concentration) == NaN
  2311. ? 0
  2312. : parseFloat(this.form.sodium_concentration);
  2313. this.form.dialysate_temperature =
  2314. parseFloat(this.form.dialysate_temperature) == NaN
  2315. ? 0
  2316. : parseFloat(this.form.dialysate_temperature);
  2317. this.form.replacement_rate =
  2318. parseFloat(this.form.replacement_rate) == NaN
  2319. ? 0
  2320. : parseFloat(this.form.replacement_rate);
  2321. this.form.displacement_quantity =
  2322. parseFloat(this.form.displacement_quantity) == NaN
  2323. ? 0
  2324. : parseFloat(this.form.displacement_quantity);
  2325. this.form.conductivity =
  2326. parseFloat(this.form.conductivity) == NaN
  2327. ? 0
  2328. : parseFloat(this.form.conductivity);
  2329. this.form.displacement_flow_quantity =
  2330. parseFloat(this.form.displacement_flow_quantity) == NaN
  2331. ? 0
  2332. : parseFloat(this.form.displacement_flow_quantity);
  2333. this.form.heparin =
  2334. parseFloat(this.form.heparin) == NaN
  2335. ? 0
  2336. : parseFloat(this.form.heparin);
  2337. this.form.dialysate_flow =
  2338. parseFloat(this.form.dialysate_flow) == NaN
  2339. ? 0
  2340. : parseFloat(this.form.dialysate_flow);
  2341. this.form.ktv =
  2342. parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
  2343. this.form.monitoring_date = parseInt(this.form.monitoring_date);
  2344. this.form.urr = this.form.urr;
  2345. this.form.blood_sugar =
  2346. parseFloat(this.form.blood_sugar) == NaN
  2347. ? 0
  2348. : parseFloat(this.form.blood_sugar);
  2349. this.form.monitor_anticoagulant = parseInt(
  2350. this.form.monitor_anticoagulant
  2351. );
  2352. this.form.monitor_anticoagulant_value =
  2353. this.form.monitor_anticoagulant_value;
  2354. this.form.blood_pressure_monitoring_site = parseInt(
  2355. this.form.blood_pressure_monitoring_site
  2356. );
  2357. this.form.complication = parseInt(this.form.complication);
  2358. this.form.blood_temperature =
  2359. parseFloat(this.form.blood_temperature) == NaN
  2360. ? 0
  2361. : parseFloat(this.form.blood_temperature);
  2362. this.form.accumulated_blood_volume =
  2363. parseFloat(this.form.accumulated_blood_volume) == NaN
  2364. ? 0
  2365. : parseFloat(this.form.accumulated_blood_volume);
  2366. this.form.urea_monitoring =
  2367. parseFloat(this.form.urea_monitoring) == NaN
  2368. ? 0
  2369. : parseFloat(this.form.urea_monitoring);
  2370. this.form.blood_thickness =
  2371. parseFloat(this.form.blood_thickness) == NaN
  2372. ? 0
  2373. : parseFloat(this.form.blood_thickness);
  2374. this.form.blood_monitor =
  2375. parseFloat(this.form.blood_monitor) == NaN
  2376. ? 0
  2377. : parseFloat(this.form.blood_monitor);
  2378. this.form.heparin_amount =
  2379. parseFloat(this.form.heparin_amount) == NaN
  2380. ? 0
  2381. : parseFloat(this.form.heparin_amount);
  2382. this.form.dehydration =
  2383. parseFloat(this.form.dehydration) == NaN
  2384. ? 0
  2385. : parseFloat(this.form.dehydration);
  2386. this.form.filter_pressure = this.form.filter_pressure?this.form.filter_pressure:""
  2387. let mode = "1";
  2388. if (this.form.id > 0) {
  2389. mode = "2";
  2390. if (
  2391. this.creator > 0 &&
  2392. this.creator != this.$store.getters.xt_user.user.id
  2393. ) {
  2394. mode = "3";
  2395. }
  2396. }
  2397. editMonitor(this.patient_id, this.schedule_date, this.form, mode).then(
  2398. (rs) => {
  2399. var resp = rs.data;
  2400. if (resp.state == 1) {
  2401. var monitor = resp.data.monitor;
  2402. if (this.isAdd) {
  2403. this.monitors.unshift(monitor);
  2404. this.monitors.sort((a, b) => b.operate_time - a.operate_time);
  2405. this.monitors.reverse();
  2406. } else {
  2407. for (let index = 0; index < this.monitors.length; index++) {
  2408. const m = this.monitors[index];
  2409. if (m.id == monitor.id) {
  2410. for (const key in monitor) {
  2411. m[key] = monitor[key];
  2412. }
  2413. break;
  2414. }
  2415. }
  2416. }
  2417. this.reset();
  2418. } else {
  2419. this.form.systolic_bp =
  2420. parseFloat(this.form.systolic_bp) == NaN
  2421. ? 0
  2422. : parseFloat(this.form.systolic_bp);
  2423. this.form.diastolic_bp =
  2424. parseFloat(this.form.diastolic_bp) == NaN
  2425. ? 0
  2426. : parseFloat(this.form.diastolic_bp);
  2427. this.form.temperature =
  2428. parseFloat(this.form.temperature) == NaN
  2429. ? 0
  2430. : parseFloat(this.form.temperature);
  2431. this.form.pulse_frequency =parseFloat(this.form.pulse_frequency) == NaN? 0 : parseFloat(this.form.pulse_frequency);
  2432. this.form.breathing_rated = this.form.breathing_rated
  2433. this.form.blood_flow_volume =
  2434. parseFloat(this.form.blood_flow_volume) == NaN
  2435. ? 0
  2436. : parseFloat(this.form.blood_flow_volume);
  2437. this.form.venous_pressure =
  2438. parseFloat(this.form.venous_pressure) == NaN
  2439. ? 0
  2440. : parseFloat(this.form.venous_pressure);
  2441. this.form.venous_pressure_type =
  2442. parseFloat(this.form.venous_pressure_type) == NaN
  2443. ? 1
  2444. : parseFloat(this.form.venous_pressure_type);
  2445. this.form.transmembrane_pressure =
  2446. parseFloat(this.form.transmembrane_pressure) == NaN
  2447. ? 0
  2448. : parseFloat(this.form.transmembrane_pressure);
  2449. this.form.transmembrane_pressure_type =
  2450. parseFloat(this.form.transmembrane_pressure_type) == NaN
  2451. ? 1
  2452. : parseFloat(this.form.transmembrane_pressure_type);
  2453. this.form.ultrafiltration_volume =
  2454. parseFloat(this.form.ultrafiltration_volume) == NaN
  2455. ? 0
  2456. : parseFloat(this.form.ultrafiltration_volume);
  2457. this.form.ultrafiltration_rate =
  2458. parseFloat(this.form.ultrafiltration_rate) == NaN
  2459. ? 0
  2460. : parseFloat(this.form.ultrafiltration_rate);
  2461. this.form.arterial_pressure =
  2462. parseFloat(this.form.arterial_pressure) == NaN
  2463. ? 0
  2464. : parseFloat(this.form.arterial_pressure);
  2465. this.form.arterial_pressure_type =
  2466. parseFloat(this.form.arterial_pressure_type) == NaN
  2467. ? 1
  2468. : parseFloat(this.form.arterial_pressure_type);
  2469. this.form.sodium_concentration =
  2470. parseFloat(this.form.sodium_concentration) == NaN
  2471. ? 0
  2472. : parseFloat(this.form.sodium_concentration);
  2473. this.form.dialysate_temperature =
  2474. parseFloat(this.form.dialysate_temperature) == NaN
  2475. ? 0
  2476. : parseFloat(this.form.dialysate_temperature);
  2477. this.form.replacement_rate =
  2478. parseFloat(this.form.replacement_rate) == NaN
  2479. ? 0
  2480. : parseFloat(this.form.replacement_rate);
  2481. this.form.displacement_quantity =
  2482. parseFloat(this.form.displacement_quantity) == NaN
  2483. ? 0
  2484. : parseFloat(this.form.displacement_quantity);
  2485. this.form.conductivity =
  2486. parseFloat(this.form.conductivity) == NaN
  2487. ? 0
  2488. : parseFloat(this.form.conductivity);
  2489. this.form.displacement_flow_quantity =
  2490. parseFloat(this.form.displacement_flow_quantity) == NaN
  2491. ? 0
  2492. : parseFloat(this.form.displacement_flow_quantity);
  2493. this.form.heparin =
  2494. parseFloat(this.form.heparin) == NaN
  2495. ? 0
  2496. : parseFloat(this.form.heparin);
  2497. this.form.dialysate_flow =
  2498. parseFloat(this.form.dialysate_flow) == NaN
  2499. ? 0
  2500. : parseFloat(this.form.dialysate_flow);
  2501. this.form.ktv =
  2502. parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
  2503. this.form.urr = this.form.urr;
  2504. this.form.blood_sugar =
  2505. parseFloat(this.form.blood_sugar) == NaN
  2506. ? 0
  2507. : parseFloat(this.form.blood_sugar);
  2508. this.form.monitor_anticoagulant = parseInt(
  2509. this.form.monitor_anticoagulant
  2510. );
  2511. this.form.monitor_anticoagulant_value =
  2512. this.form.monitor_anticoagulant_value;
  2513. this.form.blood_pressure_monitoring_site =
  2514. this.form.blood_pressure_monitoring_site;
  2515. this.form.complication = this.form.complication;
  2516. this.form.blood_temperature =
  2517. parseFloat(this.form.blood_temperature) == NaN
  2518. ? 0
  2519. : parseFloat(this.form.blood_temperature);
  2520. this.form.accumulated_blood_volume =
  2521. parseFloat(this.form.accumulated_blood_volume) == NaN
  2522. ? 0
  2523. : parseFloat(this.form.accumulated_blood_volume);
  2524. this.form.urea_monitoring =
  2525. parseFloat(this.form.urea_monitoring) == NaN
  2526. ? 0
  2527. : parseFloat(this.form.urea_monitoring);
  2528. this.form.blood_thickness =
  2529. parseFloat(this.form.blood_thickness) == NaN
  2530. ? 0
  2531. : parseFloat(this.form.blood_thickness);
  2532. this.form.blood_monitor =
  2533. parseFloat(this.form.blood_monitor) == NaN
  2534. ? 0
  2535. : parseFloat(this.form.blood_monitor);
  2536. this.form.dehydration =
  2537. parseFloat(this.form.dehydration) == NaN
  2538. ? 0
  2539. : parseFloat(this.form.dehydration);
  2540. this.form.heparin_amount =
  2541. parseFloat(this.form.heparin_amount) == NaN
  2542. ? 0
  2543. : parseFloat(this.form.heparin_amount);
  2544. this.$message.error(resp.msg);
  2545. }
  2546. }
  2547. );
  2548. this.loading = false
  2549. } else {
  2550. console.log('error submit!!');
  2551. return false;
  2552. }
  2553. });
  2554. },
  2555. symptomTextareaBlur: function () {
  2556. if (this.form.symptom.length > 0) {
  2557. this.symptom_selecteds = this.form.symptom.split(",");
  2558. } else {
  2559. this.symptom_selecteds = [];
  2560. }
  2561. },
  2562. symptomSelectorChange: function () {
  2563. if (this.symptom_selecteds.length > 0) {
  2564. this.form.symptom = this.symptom_selecteds.join(",") + ",";
  2565. } else {
  2566. this.form.symptom = "";
  2567. }
  2568. },
  2569. disposeTextareaBlur: function () {
  2570. if (this.form.dispose.length > 0) {
  2571. this.dispose_selecteds = this.form.dispose.split(",");
  2572. } else {
  2573. this.dispose_selecteds = [];
  2574. }
  2575. },
  2576. disposeSelectorChange: function () {
  2577. if (this.dispose_selecteds.length > 0) {
  2578. this.form.dispose = this.dispose_selecteds.join(",") + ",";
  2579. } else {
  2580. this.form.dispose = "";
  2581. }
  2582. },
  2583. resultTextareaBlur: function () {
  2584. if (this.form.result.length > 0) {
  2585. this.result_selecteds = this.form.result.split(",");
  2586. } else {
  2587. this.result_selecteds = [];
  2588. }
  2589. },
  2590. setRecords(records) {
  2591. this.monitors = records;
  2592. },
  2593. resultSelectorChange: function () {
  2594. if (this.result_selecteds.length > 0) {
  2595. this.form.result = this.result_selecteds.join(",") + ",";
  2596. } else {
  2597. this.form.result = "";
  2598. }
  2599. },
  2600. deleteRecordAction: function () {
  2601. if (this.table_current_row == null) {
  2602. this.$message.error("请选择一条监测记录");
  2603. return;
  2604. }
  2605. this.$confirm("删除记录", "是否删除该监测记录", {
  2606. confirmButtonText: "确定",
  2607. cancelButtonText: "取消",
  2608. type: "warning",
  2609. })
  2610. .then(() => {
  2611. let mode = "4";
  2612. if (
  2613. this.table_current_row.creator > 0 &&
  2614. this.table_current_row.creator !=
  2615. this.$store.getters.xt_user.user.id
  2616. ) {
  2617. mode = "5";
  2618. }
  2619. const params = {
  2620. patient_id: this.patient_id,
  2621. record_id: this.table_current_row.id,
  2622. mode: mode,
  2623. };
  2624. postDelMonitorInfo(params).then((response) => {
  2625. if (response.data.state == 0) {
  2626. this.$message.error(response.data.msg);
  2627. return false;
  2628. } else {
  2629. const record_id = response.data.data.record_id;
  2630. for (let i = 0; i < this.monitors.length; i++) {
  2631. if (this.monitors[i].id == record_id) {
  2632. this.monitors.splice(i, 1);
  2633. }
  2634. }
  2635. this.$message.success("删除成功");
  2636. }
  2637. });
  2638. })
  2639. .catch(() => {});
  2640. },
  2641. getPermission() {
  2642. request
  2643. .get("/api/func_per/get", {
  2644. params: {
  2645. create_url: "/api/dislysis/monitor/edit?mode=1",
  2646. modify_url: "/api/dislysis/monitor/edit?mode=2",
  2647. modify_other_url: "/api/dislysis/monitor/edit?mode=3",
  2648. del_url: "/api/dialysis/monitor/del?mode=4",
  2649. del_other_url: "/api/dialysis/monitor/del?mode=5",
  2650. module: 7,
  2651. },
  2652. })
  2653. .then((res) => {
  2654. console.log(res);
  2655. if (res.data.state == 0) {
  2656. this.hasPermission = false;
  2657. } else if (res.data.state == 1) {
  2658. this.is_has_create = res.data.data.is_has_create;
  2659. this.is_has_exce = res.data.data.is_has_exce;
  2660. this.is_has_check = res.data.data.is_has_check;
  2661. this.is_has_modify = res.data.data.is_has_modify;
  2662. this.is_has_modify_other = res.data.data.is_has_modify_other;
  2663. this.is_has_modify_exce = res.data.data.is_has_modify_exce;
  2664. this.is_has_del = res.data.data.is_has_del;
  2665. this.is_has_del_other = res.data.data.is_has_del_other;
  2666. }
  2667. });
  2668. },
  2669. getBloodPressure(id) {
  2670. var name = "";
  2671. for (let i = 0; i < this.bloodPressureMmonitoringSite.length; i++) {
  2672. if (id == this.bloodPressureMmonitoringSite[i].id) {
  2673. name = this.bloodPressureMmonitoringSite[i].name;
  2674. }
  2675. }
  2676. return name;
  2677. },
  2678. getComplication(id) {
  2679. var name = "";
  2680. for (let i = 0; i < this.complicationList.length; i++) {
  2681. if (id == this.complicationList[i].id) {
  2682. name = this.complicationList[i].name;
  2683. }
  2684. }
  2685. return name;
  2686. },
  2687. },
  2688. watch: {
  2689. patient: {
  2690. handler(newVal) {
  2691. this.patient_id = newVal.id;
  2692. },
  2693. deep: true,
  2694. },
  2695. },
  2696. };
  2697. </script>
  2698. <style style="stylesheet/scss" lang="scss" scoped>
  2699. .grid {
  2700. padding: 10px 0 20px 0;
  2701. .list {
  2702. ul {
  2703. @include display-flex;
  2704. @include align-items-center;
  2705. @include text-align;
  2706. @include justify-content-around;
  2707. cursor: pointer;
  2708. li {
  2709. font-size: 12px;
  2710. color: #5d6b7a;
  2711. margin-top: 20px;
  2712. p {
  2713. height: 30px;
  2714. line-height: 30px;
  2715. color: #34495e;
  2716. font-size: 14px;
  2717. }
  2718. img {
  2719. width: 50px;
  2720. height: 50px;
  2721. }
  2722. }
  2723. }
  2724. }
  2725. }
  2726. .txsj {
  2727. text-align: center;
  2728. margin-bottom: 20px;
  2729. }
  2730. .current-box-class::-webkit-scrollbar {
  2731. height: 20px; /*滚动条高度*/
  2732. }
  2733. </style>
  2734. <style style="stylesheet/scss" lang="scss">
  2735. .dialog_box .current-box-class .current-row > td {
  2736. background: #6fb5fa;
  2737. // color: #000;
  2738. /* font-size: 12px; */
  2739. }
  2740. .dialog_box .current-box-class .current-row:hover > td {
  2741. background: #6fb5fa;
  2742. // color: white;
  2743. /* font-size: 12px; */
  2744. }
  2745. .el-table__body-wrapper::-webkit-scrollbar {
  2746. height: 20px;
  2747. }
  2748. .dialog_box .current-box-class .current-row {
  2749. background: #87ceff;
  2750. }
  2751. .dialog_box tr:hover > td {
  2752. background-color: #ecf5ff !important;
  2753. color: #3a8ee6;
  2754. }
  2755. .dialog_box tr > td:hover {
  2756. background-color: #409eff !important;
  2757. color: #fff !important;
  2758. }
  2759. </style>