DialysisPrintOrderFiftyThree.vue 91KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458
  1. <template>
  2. <div>
  3. <div id="dialysis-print-box" style="position: relative">
  4. <div class="dialysis-print-order">
  5. <table class="print-table">
  6. <thead style="transform: translateY(2px)">
  7. <tr>
  8. <td>
  9. <div class="order-yy-name">{{ orgname }}</div>
  10. <div class="order-title">血液透析(滤过)记录表单</div>
  11. </td>
  12. </tr>
  13. <tr>
  14. <td>
  15. <table class="print-table" border="1">
  16. <tr>
  17. <td width="80" colspan="11" style="text-align: center">
  18. 治 疗 日 期:&nbsp;<span>{{ queryParams.xtdate }}</span>
  19. </td>
  20. </tr>
  21. <tr>
  22. <td colspan="11" style="padding-left: 10px">
  23. <div class="list_table">
  24. <div>姓 名:&nbsp;{{ patientInfo.name }}</div>
  25. <div>
  26. 性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
  27. </div>
  28. <div>年龄:{{ getAge(patientInfo) }}</div>
  29. <div>透析机号:&nbsp;{{ getNumber() }}</div>
  30. </div>
  31. </td>
  32. </tr>
  33. </table>
  34. </td>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. <tr style="transform: translateY(3px)">
  39. <td>
  40. <table class="print-table" border="1">
  41. <tbody>
  42. <tr class="list_table_1">
  43. <td colspan="11" style="padding-left: 10px">
  44. <div style="display: flex">
  45. <div style="width: 250px">
  46. 病情评估:&nbsp;<span>{{
  47. sick_condition ? sick_condition : ""
  48. }}</span>
  49. </div>
  50. <div style="width: 250px">
  51. 入科方式:&nbsp;<span
  52. v-for="(item, index) in way_arr"
  53. :key="index"
  54. class="under_line"
  55. v-if="receiverTreatmentAccess.way == item.id"
  56. style="width: 180px; text-align: left"
  57. >{{ item.name }}
  58. </span>
  59. </div>
  60. <div style="width: 250px">
  61. 透析次数:&nbsp;第<span>
  62. {{
  63. patientInfo.total_dialysis +
  64. patientInfo.user_sys_before_count
  65. }}次
  66. </span>
  67. </div>
  68. </div>
  69. </td>
  70. </tr>
  71. <tr class="list_table_1">
  72. <td colspan="11" style="padding-left: 10px">
  73. <div style="display: flex">
  74. <div style="width: 100%">
  75. 病情描述:&nbsp;<span>{{
  76. receiverTreatmentAccess.sick_condition_other
  77. ? receiverTreatmentAccess.sick_condition_other
  78. : ""
  79. }}</span>
  80. </div>
  81. </div>
  82. </td>
  83. </tr>
  84. <tr class="list_table_1">
  85. <td
  86. width="250"
  87. style="border-right: none; padding-left: 10px"
  88. colspan="2"
  89. >
  90. 治疗方式:
  91. <label-box
  92. :isChecked="prescription.mode_id == 1 ? true : false"
  93. showValue="HD"
  94. >
  95. </label-box>
  96. <label-box
  97. :isChecked="prescription.mode_id == 2 ? true : false"
  98. showValue="HDF"
  99. ></label-box>
  100. (<label-box
  101. :isChecked="
  102. prescription.mode_id == 2 &&
  103. prescription.displace_liqui_part == 1
  104. ? true
  105. : false
  106. "
  107. showValue="前稀释"
  108. ></label-box>
  109. <label-box
  110. :isChecked="
  111. prescription.mode_id == 2 &&
  112. prescription.displace_liqui_part == 2
  113. ? true
  114. : false
  115. "
  116. showValue="后稀释"
  117. ></label-box>
  118. , 置换量:&nbsp;{{
  119. prescription.displace_liqui_value
  120. ? prescription.displace_liqui_value
  121. : "/"
  122. }}L&nbsp; )
  123. <label-box
  124. :isChecked="prescription.mode_id > 2 ? true : false"
  125. showValue="其他:"
  126. ></label-box>
  127. &nbsp;
  128. <span v-if="prescription.mode_id > 2">
  129. {{ prescription.mode }}
  130. </span>
  131. </td>
  132. <td width="200" style="padding-left: 10px">
  133. 治疗时间:&nbsp;{{
  134. afterdialysis.actual_treatment_hour
  135. ? afterdialysis.actual_treatment_hour
  136. : "0"
  137. }}&nbsp;小时&nbsp;{{
  138. afterdialysis.actual_treatment_minute
  139. ? afterdialysis.actual_treatment_minute
  140. : 0
  141. }}&nbsp;分
  142. </td>
  143. </tr>
  144. <tr v-if="org_id == 10249 || org_id == 0">
  145. <td colspan="12" style="padding-left: 10px">
  146. <div style="display: flex">
  147. 活动性出血:
  148. <label-box
  149. :isChecked="
  150. predialysis.is_hemorrhage == 2 ? true : false
  151. "
  152. showValue="无"
  153. ></label-box>
  154. <label-box
  155. :isChecked="
  156. predialysis.is_hemorrhage == 1 ? true : false
  157. "
  158. showValue="有"
  159. ></label-box>
  160. (&nbsp;<label-box
  161. :isChecked="
  162. predialysis.is_hemorrhage == 1 &&
  163. predialysis.hemorrhage.indexOf('穿刺点渗血') > -1
  164. ? true
  165. : false
  166. "
  167. showValue="穿刺点渗血"
  168. ></label-box>
  169. <label-box
  170. :isChecked="
  171. predialysis.is_hemorrhage == 1 &&
  172. predialysis.hemorrhage.indexOf('牙龈出血') > -1
  173. ? true
  174. : false
  175. "
  176. showValue="牙龈出血"
  177. ></label-box>
  178. <label-box
  179. :isChecked="
  180. predialysis.is_hemorrhage == 1 &&
  181. predialysis.hemorrhage.indexOf('消化道出血') > -1
  182. ? true
  183. : false
  184. "
  185. showValue="消化道出血"
  186. ></label-box>
  187. <label-box
  188. :isChecked="
  189. predialysis.is_hemorrhage == 1 &&
  190. predialysis.hemorrhage.indexOf('女性经期') > -1
  191. ? true
  192. : false
  193. "
  194. showValue="女性经期"
  195. ></label-box>
  196. <div style="display: flex; padding-left: 20px">
  197. <label-box
  198. :isChecked="
  199. predialysis.is_hemorrhage == 1 &&
  200. predialysis.hemorrhage.indexOf('女性经期') ==
  201. -1 &&
  202. predialysis.hemorrhage.indexOf('消化道出血') ==
  203. -1 &&
  204. predialysis.hemorrhage.indexOf('牙龈出血') ==
  205. -1 &&
  206. predialysis.hemorrhage.indexOf('穿刺点渗血') == -1
  207. ? true
  208. : false
  209. "
  210. showValue="其他"
  211. ></label-box>
  212. <div
  213. style="
  214. min-width: 200px;
  215. border-bottom: 1px solid #999;
  216. height: 35px;
  217. text-align: center;
  218. "
  219. >
  220. <span v-if="predialysis.is_hemorrhage == 1">{{
  221. predialysis.hemorrhage_other
  222. }}</span>
  223. </div>
  224. </div>
  225. &nbsp;)
  226. </div>
  227. </td>
  228. </tr>
  229. <tr class="list_table_1">
  230. <td colspan="12" style="padding-left: 10px">
  231. 治疗抗凝:
  232. <label-box
  233. v-if="prescription.anticoagulant == 3"
  234. :isChecked="
  235. prescription.anticoagulant == 3 ? true : false
  236. "
  237. showValue="低分子肝素:"
  238. ></label-box>
  239. <label-box
  240. v-if="prescription.anticoagulant == 6"
  241. :isChecked="
  242. prescription.anticoagulant == 6 ? true : false
  243. "
  244. showValue="低分子肝素钙:"
  245. ></label-box>
  246. <label-box
  247. v-if="prescription.anticoagulant == 7"
  248. :isChecked="
  249. prescription.anticoagulant == 7 ? true : false
  250. "
  251. showValue="低分子肝素钠:"
  252. ></label-box>
  253. &nbsp;&nbsp;{{
  254. prescription.anticoagulant_zongliang &&
  255. (prescription.anticoagulant == 3 ||
  256. prescription.anticoagulant == 6 ||
  257. prescription.anticoagulant == 7)
  258. ? prescription.anticoagulant_zongliang
  259. : ""
  260. }}iu;&nbsp;&nbsp;
  261. <label-box
  262. :isChecked="
  263. prescription.anticoagulant == 2 ? true : false
  264. "
  265. showValue="普通肝素:"
  266. ></label-box
  267. >首剂 &nbsp;&nbsp;<span
  268. ><span style="width: 35px; display: inline-block">
  269. {{
  270. prescription.anticoagulant_shouji &&
  271. prescription.anticoagulant != 3 &&
  272. prescription.anticoagulant == 2
  273. ? prescription.anticoagulant_shouji
  274. : ""
  275. }}
  276. </span></span
  277. >
  278. &nbsp;mg&nbsp;&nbsp;&nbsp; 追加&nbsp;&nbsp;<span>{{
  279. prescription.anticoagulant_weichi &&
  280. prescription.anticoagulant == 2
  281. ? prescription.anticoagulant_weichi
  282. : ""
  283. }}</span
  284. >&nbsp;&nbsp;mg/h&nbsp; 总量&nbsp;&nbsp;<span>{{
  285. prescription.anticoagulant_zongliang &&
  286. prescription.anticoagulant == 2
  287. ? prescription.anticoagulant_zongliang
  288. : ""
  289. }}</span
  290. >&nbsp;&nbsp;mg;
  291. <label-box
  292. :isChecked="
  293. prescription.anticoagulant == 1 ? true : false
  294. "
  295. showValue="无肝素"
  296. ></label-box
  297. >&nbsp;&nbsp;
  298. <label-box
  299. :isChecked="
  300. prescription.anticoagulant != 1 &&
  301. prescription.anticoagulant != 2 &&
  302. prescription.anticoagulant != 3 &&
  303. prescription.anticoagulant != 6 &&
  304. prescription.anticoagulant != 7 &&
  305. prescription.anticoagulant != 0
  306. ? true
  307. : false
  308. "
  309. showValue="其他"
  310. ></label-box>
  311. <span style="padding-left: 10px">
  312. <span
  313. style="
  314. display: inline-block;
  315. min-width: 135px;
  316. border-bottom: 1px solid #999;
  317. height: 25px;
  318. text-align: center;
  319. "
  320. >
  321. <span
  322. v-if="
  323. prescription.anticoagulant != 1 &&
  324. prescription.anticoagulant != 2 &&
  325. prescription.anticoagulant != 3 &&
  326. prescription.anticoagulant != 6 &&
  327. prescription.anticoagulant != 7 &&
  328. prescription.anticoagulant != 0
  329. "
  330. >{{ prescription.anticoagulant_name
  331. }}{{
  332. prescription.anticoagulant_zongliang &&
  333. prescription.anticoagulant != 1 &&
  334. prescription.anticoagulant != 2 &&
  335. prescription.anticoagulant != 3 &&
  336. prescription.anticoagulant != 6 &&
  337. prescription.anticoagulant != 7 &&
  338. prescription.anticoagulant != 0
  339. ? prescription.anticoagulant_zongliang
  340. : ""
  341. }}iu;</span
  342. >
  343. </span>
  344. </span>
  345. </td>
  346. </tr>
  347. <tr class="list_table_1" style="line-height: 40px">
  348. <td
  349. width="100"
  350. style="border-right: none; padding-left: 10px"
  351. colspan="2"
  352. >
  353. 处方脱水量:
  354. <span style="display: inline-block; width: 40px">
  355. {{
  356. prescription.target_ultrafiltration
  357. ? prescription.target_ultrafiltration
  358. : ""
  359. }}
  360. </span>
  361. ml; 透析液流量:
  362. <span style="display: inline-block; width: 40px">
  363. {{
  364. prescription.dialysate_flow
  365. ? prescription.dialysate_flow
  366. : ""
  367. }}
  368. </span>
  369. ml/h;
  370. </td>
  371. <td width="20" style="padding-left: 10px">
  372. 医师签名:
  373. <span
  374. style="height: 20px"
  375. v-if="setAdminUserES(advices[0].advice_doctor) == ''"
  376. >
  377. {{ getAdminUser(advices[0].advice_doctor) }}
  378. </span>
  379. <img
  380. class="es-img"
  381. style="height: 25px"
  382. :src="setAdminUserES(advices[0].advice_doctor)"
  383. alt
  384. srcset
  385. v-else
  386. />
  387. </td>
  388. </tr>
  389. <tr colspan="13" class="list_table_1">
  390. <td colspan="13" style="padding-left: 10px">
  391. <div class="td_div1" style="display: flex">
  392. <div
  393. style="
  394. display: flex;
  395. min-width: 150px;
  396. border-right: 1px solid;
  397. "
  398. >
  399. 透析机:
  400. <span v-if="dialysisOrder != null"
  401. >{{
  402. dialysisOrder &&
  403. dialysisOrder.DeviceNumber &&
  404. dialysisOrder.DeviceNumber.number.length > 0
  405. ? dialysisOrder.DeviceNumber.number
  406. : patientInfo.DialysisSchedule.device_number
  407. .number
  408. }}
  409. </span>
  410. </div>
  411. <div
  412. style="
  413. display: flex;
  414. border-right: 1px solid;
  415. padding: 0 10px;
  416. "
  417. >
  418. 透析(滤)器:
  419. {{
  420. prescription.dialyzer_perfusion_apparatus
  421. ? prescription.dialyzer_perfusion_apparatus
  422. : ""
  423. }}
  424. {{
  425. prescription.dialysis_dialyszers
  426. ? prescription.dialysis_dialyszers
  427. : ""
  428. }}
  429. <span v-if="prescription.dialysis_irrigation!=''">
  430. /
  431. </span>
  432. <span v-if="prescription.dialysis_irrigation!=''">
  433. {{
  434. prescription.dialysis_irrigation
  435. ? prescription.dialysis_irrigation
  436. : ""
  437. }}
  438. </span>
  439. <span v-if="prescription.dialysis_strainer!=''">
  440. /
  441. </span>
  442. <span v-if="prescription.dialysis_strainer!=''">
  443. {{
  444. prescription.dialysis_strainer
  445. ? prescription.dialysis_strainer
  446. : ""
  447. }}
  448. </span>
  449. </div>
  450. <div style="padding-left: 10px">
  451. 透析液:钾:
  452. <span style="width: 30px; display: inline-block">
  453. {{
  454. prescription.kalium ? prescription.kalium : ""
  455. }} </span
  456. >mmol/L&nbsp; 钙:
  457. <span style="width: 30px; display: inline-block">
  458. {{
  459. prescription.calcium ? prescription.calcium : ""
  460. }} </span
  461. >mmol/L&nbsp; 碳酸氢盐:
  462. <span style="width: 30px; display: inline-block">
  463. {{
  464. prescription.bicarbonate
  465. ? prescription.bicarbonate
  466. : ""
  467. }} </span
  468. >mmol/L
  469. </div>
  470. </div>
  471. </td>
  472. </tr>
  473. <tr class="list_table_1">
  474. <td colspan="11" style="padding-left: 10px">
  475. <div style="display: flex; justify-content: flex-start">
  476. <div style="width: 100%">
  477. 血管通路: &nbsp;
  478. <label-box
  479. :isChecked="
  480. predialysis.blood_access_part_opera_name.indexOf(
  481. '自体内瘘'
  482. ) > -1
  483. ? true
  484. : false
  485. "
  486. showValue="自体内瘘"
  487. ></label-box>
  488. &nbsp;
  489. <label-box
  490. :isChecked="
  491. predialysis.blood_access_part_opera_name.indexOf(
  492. '人造血管'
  493. ) > -1
  494. ? true
  495. : false
  496. "
  497. showValue="人造血管"
  498. ></label-box>
  499. &nbsp; &nbsp;
  500. <label-box
  501. :isChecked="
  502. predialysis.blood_access_part_opera_name.indexOf(
  503. '直穿'
  504. ) > -1
  505. ? true
  506. : false
  507. "
  508. showValue="直穿"
  509. ></label-box>
  510. &nbsp;
  511. <label-box
  512. :isChecked="
  513. predialysis.blood_access_part_opera_name.indexOf(
  514. '颈内静脉'
  515. ) > -1
  516. ? true
  517. : false
  518. "
  519. showValue="颈内静脉"
  520. ></label-box>
  521. &nbsp;
  522. <label-box
  523. :isChecked="
  524. predialysis.blood_access_part_opera_name.indexOf(
  525. '股静脉'
  526. ) > -1
  527. ? true
  528. : false
  529. "
  530. showValue="股静脉"
  531. ></label-box>
  532. &nbsp;
  533. <label-box
  534. :isChecked="
  535. predialysis.blood_access_part_opera_name.indexOf(
  536. '锁骨下'
  537. ) > -1
  538. ? true
  539. : false
  540. "
  541. showValue="锁骨下"
  542. ></label-box>
  543. &nbsp;
  544. <label-box
  545. :isChecked="
  546. predialysis.blood_access_part_opera_name.indexOf(
  547. '锁骨下'
  548. ) == -1 &&
  549. predialysis.blood_access_part_opera_name.indexOf(
  550. '股静脉'
  551. ) == -1 &&
  552. predialysis.blood_access_part_opera_name.indexOf(
  553. '颈内静脉'
  554. ) == -1 &&
  555. predialysis.blood_access_part_opera_name.indexOf(
  556. '人造血管'
  557. ) == -1 &&
  558. predialysis.blood_access_part_opera_name.indexOf(
  559. '自体内瘘'
  560. ) == -1 &&
  561. predialysis.blood_access_part_opera_name != ''
  562. ? true
  563. : false
  564. "
  565. showValue="其他"
  566. ></label-box>
  567. <span style="padding-left: 20px">
  568. <span
  569. style="
  570. display: inline-block;
  571. min-width: 130px;
  572. border-bottom: 1px solid #999;
  573. height: 35px;
  574. text-align: center;
  575. "
  576. >
  577. <span
  578. v-if="
  579. predialysis.blood_access_part_opera_name.indexOf(
  580. '锁骨下'
  581. ) == -1 &&
  582. predialysis.blood_access_part_opera_name.indexOf(
  583. '股静脉'
  584. ) == -1 &&
  585. predialysis.blood_access_part_opera_name.indexOf(
  586. '颈内静脉'
  587. ) == -1 &&
  588. predialysis.blood_access_part_opera_name.indexOf(
  589. '直穿'
  590. ) == -1 &&
  591. predialysis.blood_access_part_opera_name.indexOf(
  592. '人造血管'
  593. ) == -1 &&
  594. predialysis.blood_access_part_opera_name.indexOf(
  595. '自体内瘘'
  596. ) == -1
  597. "
  598. >
  599. {{ predialysis.blood_access_part_opera_name }}
  600. </span>
  601. </span>
  602. </span>
  603. </div>
  604. <div style="width: 25%">
  605. 穿刺者:
  606. <span
  607. v-if="
  608. setAdminUserES(
  609. dialysisOrder == null
  610. ? 0
  611. : dialysisOrder.puncture_nurse
  612. ) == ''
  613. "
  614. >
  615. {{
  616. getAdminUser(
  617. dialysisOrder == null
  618. ? 0
  619. : dialysisOrder.puncture_nurse
  620. )
  621. }}
  622. </span>
  623. <img
  624. class="es-img"
  625. style="height: 30px"
  626. :src="
  627. setAdminUserES(
  628. dialysisOrder == null
  629. ? 0
  630. : dialysisOrder.puncture_nurse
  631. )
  632. "
  633. alt
  634. srcset
  635. v-else
  636. />
  637. </div>
  638. </div>
  639. </td>
  640. </tr>
  641. <tr class="list_table_1" v-if="org_id == 10346 || org_id == 0">
  642. <td colspan="11" style="padding-left: 10px">
  643. <div style="display: flex; justify-content: flex-start">
  644. <div style="width: 100%">
  645. 上次透后体重:
  646. {{(assessmentafter.weight_after).toFixed(2)}}kg
  647. </div>
  648. <div style="width: 100%">
  649. 透前体重:
  650. {{(predialysis.weight_before).toFixed(2)}}kg
  651. </div>
  652. <div style="width: 100%">
  653. 体重增加量:
  654. {{ (predialysis.weight_before -
  655. assessmentafter.weight_after).toFixed(2)}}kg
  656. </div>
  657. <div style="width: 100%">
  658. 干体重(DW):
  659. {{(predialysis.dry_weight).toFixed(2)}}kg
  660. </div>
  661. <div style="width: 100%">
  662. 较干体重增加量:{{(afterdialysis.weight_after - predialysis.dry_weight).toFixed(2) }}
  663. </div>
  664. </div>
  665. </td>
  666. </tr>
  667. <tr class="list_table_1" v-if="org_id == 10346 || org_id == 0">
  668. <td colspan="11" style="padding-left: 10px">
  669. <div style="display: flex; justify-content: flex-start">
  670. <div style="width: 100%">
  671. 机器显示脱水量:{{(afterdialysis.actual_ultrafiltration).toFixed(2) }}
  672. </div>
  673. <div style="width: 100%">
  674. 透后体重:
  675. {{(afterdialysis.weight_after).toFixed(2)}}kg
  676. </div>
  677. <div style="width: 100%">
  678. 本次透析体重下降量:
  679. {{(predialysis.weight_before -
  680. afterdialysis.weight_after).toFixed(2)}}kg
  681. </div>
  682. </div>
  683. </td>
  684. </tr>
  685. </tbody>
  686. </table>
  687. </td>
  688. </tr>
  689. <tr style="transform: translateY(2px)">
  690. <td>
  691. <table class="print-table" border="1">
  692. <tr style="text-align: center">
  693. <td
  694. :colspan="org_id == 10441 || org_id == 9675 ? 14 : 15"
  695. style="margin-left: 15px; font-size: 20px"
  696. >
  697. 治 疗 过 程 记 录
  698. </td>
  699. </tr>
  700. <tr>
  701. <td style="width: 60px" rowspan="2">时间</td>
  702. <td colspan="4">透析参数</td>
  703. <td :colspan="org_id == 10441 || org_id == 9675 ? 4 : 5">
  704. 生命体征
  705. </td>
  706. <td v-if="org_id == 10430 || org_id == 0">
  707. KT/V
  708. </td>
  709. <td v-if="org_id == 10346 || org_id == 0">
  710. 置换量
  711. </td>
  712. <td v-if="org_id == 10346 || org_id == 0">
  713. 置换率
  714. </td>
  715. <td colspan="1">治疗中病情变化</td>
  716. </tr>
  717. <tr class="short_tr">
  718. <th style="width: 70px; font-weight: normal">
  719. <p style="height: 20px; line-height: 20px">TMP</p>
  720. <p style="height: 20px; line-height: 20px">mmHg</p>
  721. </th>
  722. <th style="width: 70px; font-weight: normal">
  723. <p style="height: 20px; line-height: 20px">静脉压</p>
  724. <p style="height: 20px; line-height: 20px">mmHg</p>
  725. </th>
  726. <th style="width: 70px; font-weight: normal">
  727. <p style="height: 20px; line-height: 20px">血流量</p>
  728. <p style="height: 20px; line-height: 20px">(ml·min)⁻¹</p>
  729. </th>
  730. <th style="width: 70px; font-weight: normal" v-if="org_id!=10430&&org_id!=9675">
  731. <p style="height: 20px; line-height: 20px">脱水量</p>
  732. <p style="height: 20px; line-height: 20px">ml</p>
  733. </th>
  734. <th style="width: 70px; font-weight: normal" v-if="org_id==10430||org_id==9675">
  735. <p style="height: 20px; line-height: 20px">血温</p>
  736. <p style="height: 20px; line-height: 20px">℃</p>
  737. </th>
  738. <th style="width: 80px; font-weight: normal">
  739. <p style="height: 20px; line-height: 20px">T</p>
  740. <p style="height: 20px; line-height: 20px">℃</p>
  741. </th>
  742. <th style="width: 60px; font-weight: normal">
  743. <p style="height: 20px; line-height: 20px">HR</p>
  744. <p style="height: 20px; line-height: 20px">bpm</p>
  745. </th>
  746. <th style="width: 60px; font-weight: normal">
  747. <p style="height: 20px; line-height: 20px">R</p>
  748. <p style="height: 20px; line-height: 20px">bpm</p>
  749. </th>
  750. <th style="width: 60px; font-weight: normal">
  751. <p style="height: 20px; line-height: 20px">BP</p>
  752. <p style="height: 20px; line-height: 20px">mmHg</p>
  753. </th>
  754. <th
  755. style="width: 80px; font-weight: normal"
  756. v-if="org_id != 10441 && org_id != 9675"
  757. >
  758. <p style="height: 20px; line-height: 20px">SpO₂</p>
  759. <p style="height: 20px; line-height: 20px">%</p>
  760. </th>
  761. <th style="width:50px; font-weight: normal" v-if="org_id == 10430 || org_id == 0">
  762. <p style="height: 20px; line-height: 20px">
  763. KT/V
  764. </p>
  765. </th>
  766. <th style="width:60px; font-weight: normal" v-if="org_id == 10346 || org_id == 0">
  767. <p style="height: 20px; line-height: 20px">置换量</p>
  768. <p style="height: 20px; line-height: 20px">L</p>
  769. </th>
  770. <th style="width:50px; font-weight: normal" v-if="org_id == 10346 || org_id == 0">
  771. <p style="height: 20px; line-height: 20px">
  772. 置换率
  773. </p>
  774. <p style="height: 20px; line-height: 20px">
  775. ml/min
  776. </p>
  777. </th>
  778. <th style="width: 333px; font-weight: normal">
  779. <p style="height: 20px; line-height: 20px">
  780. 记&nbsp;&nbsp;&nbsp;&nbsp;录
  781. </p>
  782. </th>
  783. </tr>
  784. <tr v-for="(monitor, monindex) in monitors" :key="monindex">
  785. <td style="min-width: 60px; height: 30px">
  786. {{ getTime(monitor.operate_time, "{h}:{i}") }}
  787. </td>
  788. <td>
  789. <span v-if="getTime(monitor.operate_time) != ''">
  790. {{
  791. monitor.transmembrane_pressure
  792. ? monitor.transmembrane_pressure
  793. : ""
  794. }}
  795. </span>
  796. </td>
  797. <td>
  798. <span v-if="getTime(monitor.operate_time) != ''">
  799. &nbsp;{{
  800. monitor.venous_pressure ? monitor.venous_pressure : ""
  801. }}
  802. </span>
  803. </td>
  804. <td>
  805. <span v-if="getTime(monitor.operate_time) != ''">
  806. {{
  807. monitor.blood_flow_volume
  808. ? monitor.blood_flow_volume
  809. : ""
  810. }}
  811. </span>
  812. </td>
  813. <td style="min-width: 45px" v-if="org_id!=10430&&org_id!=9675">
  814. <span v-if="getTime(monitor.operate_time) != ''&&monindex == 0 && (org_id == 10441||org_id == 9675)">
  815. {{'/'}}
  816. </span>
  817. <span v-else-if="getTime(monitor.operate_time) != ''&&monindex == 0 && (org_id != 10441&&org_id != 9675)">
  818. {{monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}
  819. </span>
  820. <span v-else>{{monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
  821. </td>
  822. <td style="min-width: 45px" v-if="org_id==10430||org_id==9675">
  823. {{monitor.dialysate_temperature?monitor.dialysate_temperature:''}}
  824. </td>
  825. <td>
  826. <span v-if="getTime(monitor.operate_time) != ''">
  827. {{ monitor.temperature ? monitor.temperature : "" }}
  828. </span>
  829. </td>
  830. <td>
  831. <span v-if="getTime(monitor.operate_time) != ''">
  832. {{
  833. monitor.pulse_frequency ? monitor.pulse_frequency : ""
  834. }}
  835. </span>
  836. </td>
  837. <td>
  838. <span v-if="getTime(monitor.operate_time) != ''">
  839. {{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
  840. </span>
  841. </td>
  842. <td>
  843. <span v-if="getTime(monitor.operate_time) != ''">
  844. {{
  845. monitor.systolic_blood_pressure
  846. ? monitor.systolic_blood_pressure
  847. : ""
  848. }}/{{
  849. monitor.diastolic_blood_pressure
  850. ? monitor.diastolic_blood_pressure
  851. : ""
  852. }}
  853. </span>
  854. </td>
  855. <td v-if="org_id != 10441 && org_id != 9675">
  856. <span v-if="getTime(monitor.operate_time) != ''">
  857. {{
  858. monitor.blood_oxygen_saturation
  859. ? monitor.blood_oxygen_saturation
  860. : ""
  861. }}
  862. </span>
  863. </td>
  864. <td v-if="org_id == 10430 || org_id == 0">
  865. {{ monitor.ktv?monitor.ktv:"" }}
  866. </td>
  867. <td v-if="org_id == 10346 || org_id == 0">
  868. {{ monitor.displacement_quantity?monitor.displacement_quantity:"" }}
  869. </td>
  870. <td v-if="org_id == 10346 || org_id == 0">
  871. {{ monitor.replacement_rate?monitor.replacement_rate:"" }}
  872. </td>
  873. <td>
  874. <span
  875. v-if="
  876. monitor.symptom || monitor.dispose || monitor.result
  877. "
  878. >
  879. {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{
  880. monitor.result
  881. }}
  882. </span>
  883. </td>
  884. </tr>
  885. </table>
  886. </td>
  887. </tr>
  888. <tr style="transform: translateY(4px)" v-if="org_id!=10346">
  889. <td>
  890. <table class="print-table" border="1" style="text-align: center">
  891. <tr>
  892. <td style="height: 20px" width="60">
  893. <p style="height: 20px; line-height: 20px">时间</p>
  894. </td>
  895. <td
  896. style="height: 20px"
  897. width="90"
  898. v-if="org_id == 10346 || org_id == 9675"
  899. >
  900. <p style="height: 20px; line-height: 20px">开嘱医生</p>
  901. </td>
  902. <td style="height: 20px" width="344">
  903. <p style="height: 20px; line-height: 20px">医嘱执行记录</p>
  904. </td>
  905. <td
  906. style="height: 20px"
  907. width="70"
  908. v-if="org_id == 10346 || org_id == 9675"
  909. >
  910. <p style="height: 20px; line-height: 20px">执行时间</p>
  911. </td>
  912. <td style="height: 20px" width="90">
  913. <p style="height: 20px; line-height: 20px">执行</p>
  914. </td>
  915. <td style="height: 20px" width="90">
  916. <p style="height: 20px; line-height: 20px">核对</p>
  917. </td>
  918. <td style="height: 20px" width="144">
  919. <p style="height: 20px; line-height: 20px">上次透后体重</p>
  920. </td>
  921. <td style="height: 20px" width="60">
  922. {{
  923. patientInfo.total_dialysis +
  924. patientInfo.user_sys_before_count >
  925. 0
  926. ? assessmentafter.weight_after
  927. : "/"
  928. }}kg
  929. </td>
  930. </tr>
  931. </table>
  932. </td>
  933. </tr>
  934. <tr
  935. v-if="org_id!=10346"
  936. v-for="(advice, advice_index) in advices"
  937. :key="advice_index"
  938. style="transform: translateY(3px)"
  939. >
  940. <td>
  941. <table class="print-table" border="1">
  942. <tr>
  943. <td width="60">
  944. {{ getTime(advice.start_time, "{h}:{i}") }}
  945. </td>
  946. <td
  947. style="line-height: 30px"
  948. width="90"
  949. v-if="org_id == 10346 || org_id == 9675"
  950. >
  951. <span v-if="setAdminUserES(advice.advice_doctor) == ''">
  952. {{ getAdminUser(advice.advice_doctor) }}
  953. </span>
  954. <img
  955. style="height: 30px"
  956. :src="setAdminUserES(advice.advice_doctor)"
  957. alt=""
  958. srcset=""
  959. v-else
  960. />
  961. </td>
  962. <td style="text-align: left; padding-left: 5px" width="344">
  963. <span v-if="advice.parent_id > 0">---></span>
  964. <span>{{ advice.advice_name }}</span>
  965. <span v-if="advice && advice.advice_desc"
  966. >({{ advice.advice_desc
  967. }}{{ advice.drug_spec_unit }})</span
  968. >
  969. <span v-if="advice.prescribing_number"
  970. >&nbsp;&nbsp; {{ advice.prescribing_number
  971. }}{{ advice.prescribing_number_unit }}</span
  972. >
  973. <span v-if="advice.single_dose != 0"
  974. >{{ advice.single_dose
  975. }}{{ advice.single_dose_unit }}</span
  976. >
  977. <span v-if="advice.parent_id == 0">{{
  978. advice.delivery_way
  979. }}</span>
  980. <span v-if="advice.parent_id == 0">{{
  981. advice.execution_frequency
  982. }}</span>
  983. <span>{{ advice.remark }}</span>
  984. </td>
  985. <td
  986. style="line-height: 10px"
  987. width="70"
  988. v-if="org_id == 10346 || org_id == 9675"
  989. >
  990. <span v-if="advice.execution_time">{{
  991. getTime(advice.execution_time, "{h}:{i}")
  992. }}</span>
  993. </td>
  994. <!-- <td
  995. style="line-height: 30px"
  996. width="90"
  997. v-if="org_id == 10249 || org_id == 0"
  998. >
  999. <span v-if="setAdminUserES(advice.advice_doctor) == ''">
  1000. {{ getAdminUser(advice.advice_doctor) }}
  1001. </span>
  1002. <img
  1003. style="height: 30px"
  1004. :src="setAdminUserES(advice.advice_doctor)"
  1005. alt=""
  1006. srcset=""
  1007. />
  1008. </td> -->
  1009. <td style="line-height: 10px" width="90">
  1010. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
  1011. getAdminUser(advice.execution_staff)
  1012. }}</span>
  1013. <img
  1014. style="height: 30px"
  1015. :src="setAdminUserES(advice.execution_staff)"
  1016. alt=""
  1017. srcset=""
  1018. v-else
  1019. />
  1020. </td>
  1021. <td style="line-height: 30px" width="90">
  1022. <span v-if="setAdminUserES(advice.checker) == ''">{{
  1023. getAdminUser(advice.checker)
  1024. }}</span>
  1025. <img
  1026. style="height: 30px"
  1027. :src="setAdminUserES(advice.checker)"
  1028. alt=""
  1029. srcset=""
  1030. v-else
  1031. />
  1032. </td>
  1033. <td v-if="advice_index === 0" width="145">透前体重:</td>
  1034. <td v-if="advice_index === 0" width="60">
  1035. {{
  1036. patientInfo.total_dialysis +
  1037. patientInfo.user_sys_before_count >
  1038. 0
  1039. ? predialysis.weight_before
  1040. : "/"
  1041. }}kg
  1042. </td>
  1043. <td v-if="advice_index === 1" width="145">体重增加量:</td>
  1044. <td v-if="advice_index === 1" width="60">
  1045. {{
  1046. assessmentafter.weight_after == 0 ||
  1047. predialysis.weight_before == 0
  1048. ? 0
  1049. : (
  1050. predialysis.weight_before -
  1051. assessmentafter.weight_after
  1052. ).toFixed(2)
  1053. }}kg
  1054. </td>
  1055. <td v-if="advice_index === 2" width="145">干体重(DW):</td>
  1056. <td v-if="advice_index === 2" width="60">
  1057. {{
  1058. patientInfo.total_dialysis +
  1059. patientInfo.user_sys_before_count >
  1060. 0
  1061. ? predialysis.dry_weight
  1062. : "/"
  1063. }}kg
  1064. </td>
  1065. <td v-if="advice_index === 3" width="145">较干体重增加量:</td>
  1066. <td v-if="advice_index === 3" width="60">
  1067. {{
  1068. patientInfo.total_dialysis +
  1069. patientInfo.user_sys_before_count >
  1070. 0 && afterdialysis.weight_after != 0
  1071. ? (
  1072. afterdialysis.weight_after - predialysis.dry_weight
  1073. ).toFixed(2)
  1074. : 0
  1075. }}kg
  1076. </td>
  1077. <td v-if="advice_index === 4" width="145">机器显示脱水量:</td>
  1078. <td v-if="advice_index === 4" width="60">
  1079. {{
  1080. patientInfo.total_dialysis +
  1081. patientInfo.user_sys_before_count >
  1082. 0
  1083. ? afterdialysis.actual_ultrafiltration
  1084. : "/"
  1085. }}ml
  1086. </td>
  1087. <td v-if="advice_index === 5" width="145">透后体重:</td>
  1088. <td v-if="advice_index === 5" width="60">
  1089. {{
  1090. patientInfo.total_dialysis +
  1091. patientInfo.user_sys_before_count >
  1092. 0
  1093. ? afterdialysis.weight_after
  1094. : "/"
  1095. }}kg
  1096. </td>
  1097. <td v-if="advice_index === 6" width="145">
  1098. 本次透析体重下降量:
  1099. </td>
  1100. <td v-if="advice_index === 6" width="60">
  1101. {{
  1102. afterdialysis.weight_after == 0 ||
  1103. predialysis.weight_before == 0
  1104. ? 0
  1105. : (
  1106. predialysis.weight_before -
  1107. afterdialysis.weight_after
  1108. ).toFixed(2)
  1109. }}kg
  1110. </td>
  1111. <td v-if="advice_index > 6" width="145"></td>
  1112. <td v-if="advice_index > 6" width="60"></td>
  1113. </tr>
  1114. </table>
  1115. </td>
  1116. </tr>
  1117. <tr style="transform: translateY(1px)">
  1118. <td>
  1119. <table class="print-table" border="1">
  1120. <tr style="height: 50px; text-align: left">
  1121. <td style="padding-left: 5px; border-bottom: none">
  1122. 治疗小结:{{
  1123. summary.dialysis_summary ? summary.dialysis_summary : ""
  1124. }}
  1125. </td>
  1126. </tr>
  1127. <tr style="height: 50px; text-align: left" v-if="org_id==10430||org_id==9675">
  1128. <td style="padding-left: 5px; border-bottom: none;border-top: none;">
  1129. 透析护理记录:{{
  1130. summary.nursing_record ? summary.nursing_record : ""
  1131. }}
  1132. </td>
  1133. </tr>
  1134. <tr style="height: 40px">
  1135. <td
  1136. rowspan="11"
  1137. style="border-top: none; text-align: right; height: 40px"
  1138. >
  1139. 医生签名
  1140. <span
  1141. style="
  1142. display: inline-block;
  1143. width: 100px;
  1144. text-align: left;
  1145. "
  1146. >
  1147. &nbsp;
  1148. <span
  1149. v-if="
  1150. setAdminUserES(
  1151. advices == null
  1152. ? 0
  1153. : advices[0].advice_doctor
  1154. ? advices[0].advice_doctor
  1155. : ''
  1156. ) == ''
  1157. "
  1158. >
  1159. {{
  1160. getAdminUser(
  1161. advices == null
  1162. ? 0
  1163. : advices[0].advice_doctor
  1164. ? advices[0].advice_doctor
  1165. : ""
  1166. )
  1167. }}
  1168. </span>
  1169. <img
  1170. style="height: 30px"
  1171. :src="
  1172. setAdminUserES(
  1173. prescription == null
  1174. ? 0
  1175. : prescription.creater
  1176. ? prescription.creater
  1177. : ''
  1178. )
  1179. "
  1180. alt=""
  1181. srcset=""
  1182. v-else
  1183. />
  1184. </span>
  1185. 护士签名
  1186. <span
  1187. style="
  1188. display: inline-block;
  1189. width: 100px;
  1190. text-align: left;
  1191. "
  1192. >
  1193. &nbsp;
  1194. <span
  1195. v-if="
  1196. setAdminUserES(
  1197. dialysisOrder == null
  1198. ? 0
  1199. : dialysisOrder.start_nurse
  1200. ) == ''
  1201. "
  1202. >{{
  1203. getAdminUser(
  1204. dialysisOrder == null
  1205. ? 0
  1206. : dialysisOrder.start_nurse
  1207. )
  1208. }}</span
  1209. >
  1210. <img
  1211. class="es-img"
  1212. style="height: 30px"
  1213. :src="
  1214. setAdminUserES(
  1215. dialysisOrder == null
  1216. ? 0
  1217. : dialysisOrder.start_nurse
  1218. )
  1219. "
  1220. alt=""
  1221. srcset=""
  1222. v-else
  1223. />
  1224. </span>
  1225. </td>
  1226. </tr>
  1227. </table>
  1228. </td>
  1229. </tr>
  1230. </tbody>
  1231. </table>
  1232. </div>
  1233. </div>
  1234. <div id="dialysis-print-box-1-2">
  1235. <div class="dialysis-print-order">
  1236. <table class="print-table">
  1237. <thead style="transform: translateY(2px)">
  1238. <tr>
  1239. <td>
  1240. <div class="order-yy-name">{{ orgname }}</div>
  1241. <div class="order-title">血液净化科医嘱及执行单</div>
  1242. </td>
  1243. </tr>
  1244. <tr>
  1245. <td>
  1246. <table class="print-table" border="1">
  1247. <tr>
  1248. <td width="80" colspan="11" style="text-align: center">
  1249. 治 疗 日 期:&nbsp;<span>{{ queryParams.xtdate }}</span>
  1250. </td>
  1251. </tr>
  1252. <tr>
  1253. <td colspan="11" style="padding-left: 10px">
  1254. <div class="list_table">
  1255. <div>姓 名:&nbsp;{{ patientInfo.name }}</div>
  1256. <div>
  1257. 性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
  1258. </div>
  1259. <div>年龄:{{ getAge(patientInfo) }}</div>
  1260. <div>透析机号:&nbsp;{{ getNumber() }}</div>
  1261. </div>
  1262. </td>
  1263. </tr>
  1264. </table>
  1265. </td>
  1266. </tr>
  1267. </thead>
  1268. <tbody>
  1269. <tr style="transform: translateY(4px)" >
  1270. <td>
  1271. <table class="print-table" border="1" style="text-align: center">
  1272. <tr>
  1273. <td style="height: 20px" width="60">
  1274. <p style="height: 20px; line-height: 20px">时间</p>
  1275. </td>
  1276. <td
  1277. style="height: 20px"
  1278. width="90"
  1279. >
  1280. <p style="height: 20px; line-height: 20px">开嘱医生</p>
  1281. </td>
  1282. <td style="height: 20px" width="344">
  1283. <p style="height: 20px; line-height: 20px">医嘱执行记录</p>
  1284. </td>
  1285. <td
  1286. style="height: 20px"
  1287. width="70"
  1288. >
  1289. <p style="height: 20px; line-height: 20px">执行时间</p>
  1290. </td>
  1291. <td style="height: 20px" width="90">
  1292. <p style="height: 20px; line-height: 20px">执行</p>
  1293. </td>
  1294. <td style="height: 20px" width="90">
  1295. <p style="height: 20px; line-height: 20px">核对</p>
  1296. </td>
  1297. </tr>
  1298. </table>
  1299. </td>
  1300. </tr>
  1301. <tr
  1302. v-for="(advice, advice_index) in advices"
  1303. :key="advice_index"
  1304. style="transform: translateY(3px)"
  1305. >
  1306. <td v-if="advice.advice_name!=''">
  1307. <table class="print-table" border="1">
  1308. <tr>
  1309. <td width="60">
  1310. {{ getTime(advice.start_time, "{h}:{i}") }}
  1311. </td>
  1312. <td
  1313. style="line-height: 30px"
  1314. width="90"
  1315. >
  1316. <span v-if="setAdminUserES(advice.advice_doctor) == ''">
  1317. {{ getAdminUser(advice.advice_doctor) }}
  1318. </span>
  1319. <img
  1320. style="height: 30px"
  1321. :src="setAdminUserES(advice.advice_doctor)"
  1322. alt=""
  1323. srcset=""
  1324. v-else
  1325. />
  1326. </td>
  1327. <td style="text-align: left; padding-left: 5px" width="344">
  1328. <span v-if="advice.parent_id > 0">---></span>
  1329. <span>{{ advice.advice_name }}</span>
  1330. <span v-if="advice && advice.advice_desc"
  1331. >({{ advice.advice_desc
  1332. }}{{ advice.drug_spec_unit }})</span
  1333. >
  1334. <span v-if="advice.prescribing_number"
  1335. >&nbsp;&nbsp; {{ advice.prescribing_number
  1336. }}{{ advice.prescribing_number_unit }}</span
  1337. >
  1338. <span v-if="advice.single_dose != 0"
  1339. >{{ advice.single_dose
  1340. }}{{ advice.single_dose_unit }}</span
  1341. >
  1342. <span v-if="advice.parent_id == 0">{{
  1343. advice.delivery_way
  1344. }}</span>
  1345. <span v-if="advice.parent_id == 0">{{
  1346. advice.execution_frequency
  1347. }}</span>
  1348. <span>{{ advice.remark }}</span>
  1349. </td>
  1350. <td
  1351. style="line-height: 10px"
  1352. width="70"
  1353. >
  1354. <span v-if="advice.execution_time">{{
  1355. getTime(advice.execution_time, "{h}:{i}")
  1356. }}</span>
  1357. </td>
  1358. <td style="line-height: 10px" width="90">
  1359. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
  1360. getAdminUser(advice.execution_staff)
  1361. }}</span>
  1362. <img
  1363. style="height: 30px"
  1364. :src="setAdminUserES(advice.execution_staff)"
  1365. alt=""
  1366. srcset=""
  1367. v-else
  1368. />
  1369. </td>
  1370. <td style="line-height: 30px" width="90">
  1371. <span v-if="setAdminUserES(advice.checker) == ''">{{
  1372. getAdminUser(advice.checker)
  1373. }}</span>
  1374. <img
  1375. style="height: 30px"
  1376. :src="setAdminUserES(advice.checker)"
  1377. alt=""
  1378. srcset=""
  1379. v-else
  1380. />
  1381. </td>
  1382. </tr>
  1383. </table>
  1384. </td>
  1385. </tr>
  1386. </tbody>
  1387. </table>
  1388. </div>
  1389. </div>
  1390. </div>
  1391. </template>
  1392. <script>
  1393. import { getDialysisRecord } from "@/api/dialysis";
  1394. import { jsGetAge, uParseTime } from "@/utils/tools";
  1395. import LabelBox from "../printItem/LabelBox";
  1396. import { getDataConfig } from "@/utils/data";
  1397. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  1398. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  1399. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  1400. import print from "print-js";
  1401. export default {
  1402. name: "dialysisPrintOrderFour",
  1403. components: {
  1404. // DialysisPrintOrderOne,
  1405. // DialysisPrintOrderTwo,
  1406. LabelBox,
  1407. BreadCrumb,
  1408. },
  1409. data() {
  1410. return {
  1411. doctor_advices: [],
  1412. doctor_advices_2: [],
  1413. way_arr: [],
  1414. consciousness_arr: [],
  1415. appetite_arr: [],
  1416. posture_arr: [],
  1417. sick_condition_arr: [],
  1418. precaution_arr: [],
  1419. intake_arr: [],
  1420. nutrition_arr: [],
  1421. bloodAccessParOpera: {},
  1422. crumbs: [
  1423. { path: false, name: "透析管理" },
  1424. { path: false, name: "打印单" },
  1425. ],
  1426. operators: [],
  1427. adminUser: [],
  1428. check: {},
  1429. dialysisOrder: {
  1430. DeviceNumber: [],
  1431. },
  1432. operatorMaps: {},
  1433. complications: [
  1434. "低血压",
  1435. "高血压",
  1436. "心律失常",
  1437. "头晕",
  1438. "头痛",
  1439. "呕吐",
  1440. "抽搐",
  1441. "出血",
  1442. "心衰",
  1443. "腹痛",
  1444. ],
  1445. jilurow: 0,
  1446. assessmentafter: {},
  1447. advice_jilurow: 0,
  1448. loading: false,
  1449. orgname: "",
  1450. patientInfo_gender_1: false,
  1451. patientInfo_gender_2: false,
  1452. patientInfo_source_2: false,
  1453. patientInfo_source_1: false,
  1454. modeOptions: {},
  1455. replacementWays: [],
  1456. perfusionApparatus: [],
  1457. anticoagulantsConfit: {},
  1458. bloodAccessParOpera: {},
  1459. dialysateFormulationOptions: {},
  1460. totollength: 0,
  1461. queryParams: {
  1462. xtdate: "",
  1463. xtno: "",
  1464. patient_id:0,
  1465. },
  1466. patientInfo: {
  1467. birth: "",
  1468. age: "",
  1469. DialysisSchedule: {
  1470. device_number: { number: "" },
  1471. device_zone: { name: "" },
  1472. },
  1473. gender: 0,
  1474. },
  1475. predialysis: {
  1476. score: "",
  1477. internal_fistula: "",
  1478. internal_fistula_skin: "",
  1479. catheter: "",
  1480. blood_access_part_opera_name: "",
  1481. },
  1482. afterdialysis: {
  1483. complications_index: "",
  1484. },
  1485. prescription: {
  1486. dialysate_formulation_name: "",
  1487. device: {},
  1488. },
  1489. advices: [],
  1490. users: [],
  1491. monitors: [],
  1492. sick_condition: "",
  1493. summary: {},
  1494. receiverTreatmentAccess: {},
  1495. org_template_info: {},
  1496. anticoagulantsConfitTwo: {},
  1497. doctor_advices: [],
  1498. advice_groups: [],
  1499. org_id: 0,
  1500. anticoagulan_name: "",
  1501. xtdate: "",
  1502. AlPanel: {
  1503. id: 0,
  1504. name: "",
  1505. type: 1,
  1506. shouji: 2,
  1507. weichi: 2,
  1508. zongliang: 2,
  1509. gaimingcheng: -1,
  1510. gaijiliang: -1,
  1511. shouji_unit: "mg",
  1512. weichi_unit: "mg/h",
  1513. zongliang_unit: "mg",
  1514. gaimingcheng_unit: "",
  1515. gaijiliang_unit: "",
  1516. },
  1517. };
  1518. },
  1519. methods: {
  1520. getAge: function (val) {
  1521. var thisLen = val.id_card_no.length;
  1522. var birth = "";
  1523. if (thisLen == 15) {
  1524. birth = "19" + val.id_card_no.substr(6, 6);
  1525. } else {
  1526. birth = val.id_card_no.substr(6, 8);
  1527. }
  1528. var birthtwo =
  1529. birth.substr(0, 4) +
  1530. "-" +
  1531. birth.substr(4, 2) +
  1532. "-" +
  1533. birth.substr(6, 2);
  1534. var age = jsGetAge(birthtwo, "-");
  1535. return age;
  1536. },
  1537. // 获取当前年份,用于年龄计算
  1538. // getoldAge() {
  1539. // let date = new Date();
  1540. // let year = date.getFullYear();
  1541. // let year_d =
  1542. // this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
  1543. // let year_m = this.xtdate.split("-")[1];
  1544. // let birth_m = this.patientInfo.birth.split("-")[1];
  1545. // let year_date = this.xtdate.split("-")[2];
  1546. // let birth_date = this.patientInfo.birth.split("-")[2];
  1547. // // console.log(year,'今年年月')
  1548. // // console.log(this.xtdate.split('-'),'病人就诊年月')
  1549. // console.log(this.patientInfo.birth, "病人生日");
  1550. // // console.log(year_d,'year_d')
  1551. // if (year_m < birth_m) {
  1552. // return year_d - 1;
  1553. // } else if (year_m == birth_m) {
  1554. // if (year_date < birth_date) {
  1555. // return year_d - 1;
  1556. // } else {
  1557. // return year_d;
  1558. // }
  1559. // } else {
  1560. // return year_d;
  1561. // }
  1562. // },
  1563. getAdminUser(id) {
  1564. if (id == 0) {
  1565. return "";
  1566. }
  1567. if (id == undefined) {
  1568. return "";
  1569. }
  1570. for (let i = 0; i < this.adminUser.length; i++) {
  1571. if (this.adminUser[i].id == id) {
  1572. return this.adminUser[i].name;
  1573. }
  1574. }
  1575. },
  1576. getTime(value, temp) {
  1577. if (value == 0) {
  1578. return "";
  1579. }
  1580. if (value != undefined) {
  1581. return uParseTime(value, temp);
  1582. }
  1583. return "";
  1584. },
  1585. printThisPage() {
  1586. var ptime = Math.round(new Date().getTime() / 1000);
  1587. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1588. const style =
  1589. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  1590. if (this.org_template_info.template_id == 1) {
  1591. printJS({
  1592. printable: "dialysis-print-box",
  1593. type: "html",
  1594. style: style,
  1595. scanStyles: false,
  1596. });
  1597. } else if (
  1598. this.org_template_info.template_id == 2 ||
  1599. this.org_template_info.template_id == 0
  1600. ) {
  1601. printJS({
  1602. printable: "dialysis-print-box-1",
  1603. type: "html",
  1604. style: style,
  1605. scanStyles: false,
  1606. });
  1607. }
  1608. },
  1609. getNumber() {
  1610. if (this.dialysisOrder != null) {
  1611. return (
  1612. this.patientInfo.DialysisSchedule.device_zone.name +
  1613. this.dialysisOrder.DeviceNumber.number
  1614. );
  1615. } else {
  1616. return (
  1617. this.patientInfo.DialysisSchedule.device_zone.name +
  1618. this.patientInfo.DialysisSchedule.device_number.number
  1619. );
  1620. }
  1621. },
  1622. getXuserName(id) {
  1623. if (id <= 0) {
  1624. return "";
  1625. }
  1626. var name = "";
  1627. if (this.users == null || typeof this.users.length === "undefined") {
  1628. return name;
  1629. }
  1630. var leng = this.users.length;
  1631. if (leng == 0) {
  1632. return name;
  1633. }
  1634. for (let index = 0; index < leng; index++) {
  1635. if (this.users[index].id == id) {
  1636. name = this.users[index].name;
  1637. break;
  1638. }
  1639. }
  1640. return name;
  1641. },
  1642. setAdminUserES(id) {
  1643. console.log(id);
  1644. if (id == 0) {
  1645. return "";
  1646. }
  1647. if (id in this.operatorMaps) {
  1648. return this.operatorMaps[id].url;
  1649. } else {
  1650. return "";
  1651. }
  1652. },
  1653. modeName(mode_id) {
  1654. return typeof this.modeOptions[mode_id] !== "undefined" &&
  1655. typeof this.modeOptions[mode_id].name !== "undefined"
  1656. ? this.modeOptions[mode_id].name
  1657. : "";
  1658. },
  1659. getDialysisRecord() {
  1660. this.loading = true;
  1661. this.queryParams.patient_id = parseInt(this.$route.query.patient_id)
  1662. getDialysisRecord(this.queryParams).then((response) => {
  1663. if (response.data.state == 1) {
  1664. this.adminUser = response.data.data.users;
  1665. this.xtdate = response.data.data.xtdate;
  1666. this.users = response.data.data.users;
  1667. this.patientInfo = response.data.data.patientInfo;
  1668. this.patientInfo.birth = uParseTime(
  1669. this.patientInfo.birthday,
  1670. "{y}-{m}-{d}"
  1671. );
  1672. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1673. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1674. this.patientInfo.first_dialysis_date = uParseTime(
  1675. response.data.data.patientInfo.first_dialysis_date,
  1676. "{y}-{m}-{d}"
  1677. );
  1678. } else {
  1679. this.patientInfo.first_dialysis_date = "";
  1680. }
  1681. this.check = response.data.data.check;
  1682. this.predialysis = response.data.data.PredialysisEvaluation;
  1683. this.predialysis.blood_access_part_opera_name =
  1684. this.bloodAccessParOperaName(
  1685. this.predialysis.blood_access_part_opera_id
  1686. );
  1687. console.log(
  1688. this.predialysis.blood_access_part_opera_name,
  1689. "this.predialysis.blood_access_part_opera_name"
  1690. );
  1691. this.afterdialysis = response.data.data.AssessmentAfterDislysis;
  1692. this.operators = response.data.data.operators;
  1693. this.dialysisOrder =
  1694. response.data.data.dialysisOrder === null
  1695. ? null
  1696. : response.data.data.dialysisOrder;
  1697. if (this.operators.length > 0) {
  1698. var operatorsLen = this.operators.length;
  1699. for (var index = 0; index < operatorsLen; index++) {
  1700. this.$set(
  1701. this.operatorMaps,
  1702. this.operators[index].creator,
  1703. this.operators[index]
  1704. );
  1705. }
  1706. }
  1707. this.afterdialysis.txqnx = -1;
  1708. if (this.afterdialysis.cruor.indexOf("0度") > -1) {
  1709. this.afterdialysis.txqnx = 0;
  1710. }
  1711. if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
  1712. this.afterdialysis.txqnx = 1;
  1713. }
  1714. if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
  1715. this.afterdialysis.txqnx = 2;
  1716. }
  1717. if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
  1718. this.afterdialysis.txqnx = 3;
  1719. }
  1720. this.afterdialysis.complications =
  1721. this.afterdialysis.complication.split(",");
  1722. this.afterdialysis.complications_other = [];
  1723. this.afterdialysis.complications_index = [];
  1724. var acllen = this.afterdialysis.complications.length;
  1725. for (let index = 0; index < acllen; index++) {
  1726. if (
  1727. this.complications.indexOf(
  1728. this.afterdialysis.complications[index]
  1729. ) >= 0
  1730. ) {
  1731. this.afterdialysis.complications_index.push(
  1732. this.afterdialysis.complications[index]
  1733. );
  1734. } else if (
  1735. this.complications.indexOf(
  1736. this.afterdialysis.complications[index]
  1737. ) < 0 &&
  1738. this.afterdialysis.complications_other.indexOf(
  1739. this.afterdialysis.complications[index]
  1740. ) < 0
  1741. ) {
  1742. this.afterdialysis.complications_other.push(
  1743. this.afterdialysis.complications[index]
  1744. );
  1745. }
  1746. }
  1747. this.afterdialysis.complications_other =
  1748. this.afterdialysis.complications_other.join(",");
  1749. this.prescription = response.data.data.dialysisPrescription;
  1750. this.receiverTreatmentAccess =
  1751. response.data.data.receiverTreatmentAccess;
  1752. this.assessmentafter = response.data.data.assessmentAfterDislysis;
  1753. this.sick_condition_arr.forEach((o) => {
  1754. if (this.receiverTreatmentAccess.sick_condition == o.id) {
  1755. this.sick_condition = o.name;
  1756. }
  1757. });
  1758. this.prescription.mode = this.modeName(this.prescription.mode_id);
  1759. var rwLen = this.replacementWays.length;
  1760. this.prescription.replacement = "";
  1761. for (let index = 0; index < rwLen; index++) {
  1762. if (
  1763. this.replacementWays[index].id ==
  1764. this.prescription.replacement_way
  1765. ) {
  1766. this.prescription.replacement = this.replacementWays[index].name;
  1767. break;
  1768. }
  1769. }
  1770. this.prescription.dialysate_formulation_name =
  1771. this.dialysateFormulationName(
  1772. this.prescription.dialysate_formulation
  1773. );
  1774. var paLen = this.perfusionApparatus.length;
  1775. this.prescription.perfusion_apparatus_name = "";
  1776. for (let index = 0; index < paLen; index++) {
  1777. if (
  1778. this.perfusionApparatus[index].id ==
  1779. this.prescription.perfusion_apparatus
  1780. ) {
  1781. this.prescription.perfusion_apparatus_name =
  1782. this.perfusionApparatus[index].name;
  1783. break;
  1784. }
  1785. }
  1786. console.log(this.prescription, "透析处方");
  1787. var acLen = this.anticoagulantsConfit.length;
  1788. var thisALID = this.prescription.anticoagulant;
  1789. this.prescription.anticoagulant_name = "";
  1790. if (
  1791. typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
  1792. this.anticoagulantsConfit[thisALID] != null
  1793. ) {
  1794. this.prescription.anticoagulant_name =
  1795. this.anticoagulantsConfit[thisALID].name;
  1796. this.AlPanel = this.anticoagulantsConfit[thisALID];
  1797. }
  1798. this.advices = response.data.data.advices;
  1799. this.monitors = response.data.data.monitors;
  1800. this.summary = response.data.data.summary;
  1801. this.org_template_info = response.data.data.org_template_info;
  1802. console.log(this.advices, "this.advices");
  1803. if (this.monitors.length <= 0) {
  1804. var nl = 8 - this.monitors.length;
  1805. for (let index = 0; index < nl; index++) {
  1806. this.monitors.push([]);
  1807. }
  1808. }
  1809. // if (this.monitors.length < 8) {
  1810. // var nl = 8 - this.monitors.length;
  1811. // for (let index = 0; index < nl; index++) {
  1812. // this.monitors.push([]);
  1813. // }
  1814. // }
  1815. this.jilurow = this.monitors.length + 1;
  1816. this.advice_jilurow = this.advices.length + 1;
  1817. var childMap = {};
  1818. for (const index in this.advices) {
  1819. if (this.advices[index].parent_id == 0) {
  1820. continue;
  1821. }
  1822. if (!(this.advices[index].parent_id in childMap)) {
  1823. childMap[this.advices[index].parent_id] = [];
  1824. }
  1825. childMap[this.advices[index].parent_id].push(this.advices[index]);
  1826. }
  1827. var advices = [];
  1828. for (const index in this.advices) {
  1829. if (this.advices[index].parent_id > 0) {
  1830. continue;
  1831. }
  1832. var item = this.advices[index];
  1833. if (item.id in childMap) {
  1834. item.children = childMap[item.id];
  1835. } else {
  1836. item.children = [];
  1837. }
  1838. advices.push(item);
  1839. }
  1840. var tableAdvice = this.advices;
  1841. // console.log("医生", tableAdvice);
  1842. if (tableAdvice.length === 0) {
  1843. var obj = { advice_name: "", start_time: "" };
  1844. var obj1 = { advice_name: "", start_time: "" };
  1845. var obj2 = { advice_name: "", start_time: "" };
  1846. var obj3 = { advice_name: "", start_time: "" };
  1847. var obj4 = { advice_name: "", start_time: "" };
  1848. var obj5 = { advice_name: "", start_time: "" };
  1849. tableAdvice.push(obj);
  1850. tableAdvice.push(obj1);
  1851. tableAdvice.push(obj2);
  1852. tableAdvice.push(obj3);
  1853. tableAdvice.push(obj4);
  1854. tableAdvice.push(obj5);
  1855. this.advices = tableAdvice;
  1856. }
  1857. if (tableAdvice.length === 1) {
  1858. var obj = { advice_name: "", start_time: "" };
  1859. var obj1 = { advice_name: "", start_time: "" };
  1860. var obj2 = { advice_name: "", start_time: "" };
  1861. var obj3 = { advice_name: "", start_time: "" };
  1862. var obj4 = { advice_name: "", start_time: "" };
  1863. tableAdvice.push(obj);
  1864. tableAdvice.push(obj1);
  1865. tableAdvice.push(obj2);
  1866. tableAdvice.push(obj3);
  1867. tableAdvice.push(obj4);
  1868. this.advices = tableAdvice;
  1869. }
  1870. if (tableAdvice.length === 2) {
  1871. var obj = { advice_name: "", start_time: "" };
  1872. var obj1 = { advice_name: "", start_time: "" };
  1873. var obj2 = { advice_name: "", start_time: "" };
  1874. var obj3 = { advice_name: "", start_time: "" };
  1875. tableAdvice.push(obj);
  1876. tableAdvice.push(obj1);
  1877. tableAdvice.push(obj2);
  1878. tableAdvice.push(obj3);
  1879. this.advices = tableAdvice;
  1880. }
  1881. if (tableAdvice.length === 3) {
  1882. // eslint-disable-next-line no-redeclare
  1883. var obj = { advice_name: "", start_time: "" };
  1884. // eslint-disable-next-line no-redeclare
  1885. var obj1 = { advice_name: "", start_time: "" };
  1886. // eslint-disable-next-line no-redeclare
  1887. var obj2 = { advice_name: "", start_time: "" };
  1888. // eslint-disable-next-line no-redeclare
  1889. tableAdvice.push(obj);
  1890. tableAdvice.push(obj1);
  1891. tableAdvice.push(obj2);
  1892. this.advices = tableAdvice;
  1893. }
  1894. if (tableAdvice.length === 4) {
  1895. // eslint-disable-next-line no-redeclare
  1896. var obj = { advice_name: "", start_time: "" };
  1897. // eslint-disable-next-line no-redeclare
  1898. var obj1 = { advice_name: "", start_time: "" };
  1899. // eslint-disable-next-line no-redeclare
  1900. tableAdvice.push(obj);
  1901. tableAdvice.push(obj1);
  1902. this.advices = tableAdvice;
  1903. }
  1904. if (tableAdvice.length === 5) {
  1905. // eslint-disable-next-line no-redeclare
  1906. var obj = { advice_name: "", start_time: "" };
  1907. // eslint-disable-next-line no-redeclare
  1908. var obj1 = { advice_name: "", start_time: "" };
  1909. tableAdvice.push(obj);
  1910. tableAdvice.push(obj1);
  1911. this.advices = tableAdvice;
  1912. }
  1913. if (tableAdvice.length === 6) {
  1914. var obj1 = { advice_name: "", start_time: "" };
  1915. tableAdvice.push(obj1);
  1916. this.advices = tableAdvice;
  1917. }
  1918. // console.log(this.advices, "this.advices");
  1919. // this.totollength = this.advices.length + this.monitors.length;
  1920. // console.log(this.totollength, "this.totollength");
  1921. // if (this.totollength > 21) {
  1922. // var temp_advice_length = 21 - this.monitors.length;
  1923. // var doctor_advices_1 = [];
  1924. // var doctor_advices_2 = [];
  1925. // for (let index = 0; index < this.advices.length; index++) {
  1926. // const element = this.advices[index];
  1927. // if (temp_advice_length > index) {
  1928. // doctor_advices_1.push(element);
  1929. // } else {
  1930. // doctor_advices_2.push(element);
  1931. // }
  1932. // }
  1933. // this.advices = doctor_advices_1;
  1934. // this.doctor_advices_2 = doctor_advices_2;
  1935. // }
  1936. this.loading = false;
  1937. // this.doctor_advices =
  1938. // response.data.data.advices == null
  1939. // ? []
  1940. // : response.data.data.advices;
  1941. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1942. // this.doctor_advices[index]["isShow"] = 2;
  1943. // }
  1944. // if (this.doctor_advices.length > 0) {
  1945. // var group = this.newAdviceGroupObject();
  1946. // var initGroupBlock = function (group, advice) {
  1947. // group.group_no = advice.groupno;
  1948. // };
  1949. // for (
  1950. // let index = this.doctor_advices.length - 1;
  1951. // index >= 0;
  1952. // index--
  1953. // ) {
  1954. // var new_advice_index = 0;
  1955. // if (
  1956. // "children" in this.doctor_advices[index] &&
  1957. // this.doctor_advices[index].children.length > 0
  1958. // ) {
  1959. // new_advice_index =
  1960. // index + this.doctor_advices[index].children.length + 1;
  1961. // var doctor_advice = {
  1962. // delivery_way: this.doctor_advices[index].delivery_way,
  1963. // execution_frequency:
  1964. // this.doctor_advices[index].execution_frequency,
  1965. // groupno: this.doctor_advices[index].groupno,
  1966. // id: this.doctor_advices[index].id,
  1967. // parent_id: this.doctor_advices[index].parent_id,
  1968. // children: this.doctor_advices[index].children,
  1969. // remark: this.doctor_advices[index].remark,
  1970. // };
  1971. // doctor_advice["isShow"] = 1;
  1972. // this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
  1973. // // this.doctor_advices.push(doctor_advice)
  1974. // }
  1975. // }
  1976. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1977. // const advice = this.doctor_advices[index];
  1978. // if (advice.groupno == 0) {
  1979. // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1980. // if (advice.parent_id > 0) {
  1981. // if (this.advice_groups.length > 0) {
  1982. // var parent_group =
  1983. // this.advice_groups[this.advice_groups.length - 1];
  1984. // if (parent_group.advices.length > 0) {
  1985. // if (parent_group.advices[0].id == advice.parent_id) {
  1986. // parent_group.advices.push(advice);
  1987. // }
  1988. // }
  1989. // }
  1990. // continue;
  1991. // } else {
  1992. // if (group.group_no > 0) {
  1993. // this.advice_groups.push(group);
  1994. // group = this.newAdviceGroupObject();
  1995. // }
  1996. // initGroupBlock(group, advice);
  1997. // group.advices.push(advice);
  1998. // this.advice_groups.push(group);
  1999. // group = this.newAdviceGroupObject();
  2000. // continue;
  2001. // }
  2002. // }
  2003. // if (group.group_no > 0 && group.group_no != advice.groupno) {
  2004. // this.advice_groups.push(group);
  2005. // group = this.newAdviceGroupObject();
  2006. // }
  2007. // if (group.group_no == 0) {
  2008. // initGroupBlock(group, advice);
  2009. // }
  2010. // if (group.group_no == advice.groupno) {
  2011. // group.advices.push(advice);
  2012. // }
  2013. // }
  2014. // if (group.group_no > 0) {
  2015. // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  2016. // this.advice_groups.push(group);
  2017. // }
  2018. // }
  2019. console.log(this.advice_groups);
  2020. } else {
  2021. this.loading = false;
  2022. this.$message.error("请求数据失败");
  2023. return false;
  2024. }
  2025. });
  2026. },
  2027. bloodAccessParOperaName(id) {
  2028. console.log(this.bloodAccessParOpera);
  2029. if (id in this.bloodAccessParOpera) {
  2030. return this.bloodAccessParOpera[id].name;
  2031. }
  2032. return "";
  2033. },
  2034. dialysateFormulationName(id) {
  2035. if (id in this.dialysateFormulationOptions) {
  2036. return this.dialysateFormulationOptions[id].name;
  2037. }
  2038. return "";
  2039. },
  2040. // getAge: function (val) {
  2041. // if (val.birthday != 0) {
  2042. // return jsGetAge(val.birth, "-");
  2043. // } else {
  2044. // return "";
  2045. // }
  2046. // },
  2047. newAdviceGroupObject: function () {
  2048. return Object.assign(
  2049. {},
  2050. {
  2051. group_no: 0,
  2052. // advice_doctor: 0,
  2053. // start_time: 0,
  2054. advices: [],
  2055. // exec_staff: 0,
  2056. // exec_time: 0,
  2057. // checker: 0,
  2058. }
  2059. );
  2060. },
  2061. },
  2062. watch: {
  2063. "patientInfo.gender": function () {
  2064. if (this.patientInfo.gender == 1) {
  2065. this.patientInfo_gender_1 = true;
  2066. this.patientInfo_gender_2 = false;
  2067. } else if (this.patientInfo.gender == 2) {
  2068. this.patientInfo_gender_2 = true;
  2069. this.patientInfo_gender_1 = false;
  2070. } else {
  2071. this.patientInfo_gender_2 = false;
  2072. this.patientInfo_gender_1 = false;
  2073. }
  2074. },
  2075. "patientInfo.source": function () {
  2076. if (this.patientInfo.source == 1) {
  2077. this.patientInfo_source_1 = true;
  2078. this.patientInfo_source_2 = false;
  2079. } else if (this.patientInfo.source == 2) {
  2080. this.patientInfo_source_2 = true;
  2081. this.patientInfo_source_1 = false;
  2082. } else {
  2083. this.patientInfo_source_2 = false;
  2084. this.patientInfo_source_1 = false;
  2085. }
  2086. },
  2087. },
  2088. created() {
  2089. this.org_id = this.$store.getters.xt_user.org_id;
  2090. this.way_arr = getDataConfig("hemodialysis", "way");
  2091. this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
  2092. this.appetite_arr = getDataConfig("hemodialysis", "appetite");
  2093. this.posture_arr = getDataConfig("hemodialysis", "posture");
  2094. this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
  2095. this.precaution_arr = getDataConfig("hemodialysis", "precaution");
  2096. this.intake_arr = getDataConfig("hemodialysis", "intake");
  2097. this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
  2098. var bloodAccessParOpera = getDataConfig(
  2099. "hemodialysis",
  2100. "vascular_access_desc"
  2101. );
  2102. var xtuser = this.$store.getters.xt_user;
  2103. this.orgname = xtuser.org.org_name;
  2104. // this.orgname = "遂溪方济医院";
  2105. this.modeOptions = this.$store.getters.treatment_mode;
  2106. this.replacementWays = this.$store.getters.replacement_ways;
  2107. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  2108. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  2109. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  2110. var bloodAccessParOpera = getDataConfig(
  2111. "hemodialysis",
  2112. "vascular_access_desc"
  2113. );
  2114. for (var key in bloodAccessParOpera) {
  2115. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  2116. bloodAccessParOpera[key];
  2117. }
  2118. var dialysateFormulationOptions = getDataConfig(
  2119. "hemodialysis",
  2120. "dialysate_formulation"
  2121. );
  2122. for (var key in dialysateFormulationOptions) {
  2123. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  2124. dialysateFormulationOptions[key];
  2125. }
  2126. const xtdate = this.$route.query && this.$route.query.xtdate;
  2127. const xtno = this.$route.query && this.$route.query.xtno;
  2128. if (
  2129. typeof xtdate === "string" &&
  2130. xtdate.length > 0 &&
  2131. typeof xtno === "string" &&
  2132. xtno.length > 0
  2133. ) {
  2134. this.queryParams.xtdate = xtdate;
  2135. this.queryParams.xtno = xtno;
  2136. this.xtdate = xtdate;
  2137. this.getDialysisRecord();
  2138. } else {
  2139. this.$message.error("参数不齐");
  2140. return false;
  2141. }
  2142. },
  2143. };
  2144. </script>
  2145. <style>
  2146. .dialysis-print-order {
  2147. width: 960px;
  2148. margin: 0 auto;
  2149. }
  2150. .dialysis-print-order .order-yy-name {
  2151. margin: auto;
  2152. text-align: center;
  2153. font-size: 20px;
  2154. letter-spacing: 5px;
  2155. }
  2156. .dialysis-print-order .order-title {
  2157. margin: auto;
  2158. font-weight: 600;
  2159. text-align: center;
  2160. font-size: 22px;
  2161. padding: 10px 20px 20px 20px;
  2162. }
  2163. .dialysis-print-order .table-box {
  2164. width: 100%;
  2165. line-height: 23px;
  2166. font-size: 14px;
  2167. }
  2168. .dialysis-print-order .print-table {
  2169. width: 100%;
  2170. text-align: center;
  2171. border-collapse: collapse;
  2172. line-height: 39px;
  2173. font-size: 14px;
  2174. }
  2175. .dialysis-print-order .print-table-2 {
  2176. width: 100%;
  2177. text-align: left;
  2178. border-collapse: collapse;
  2179. line-height: 38px;
  2180. font-size: 14px;
  2181. }
  2182. .print-table-3 {
  2183. text-align: center;
  2184. width: 300px;
  2185. border-collapse: inherit;
  2186. height: 90px !important;
  2187. border: none;
  2188. }
  2189. .print-table-3 .tr_3 {
  2190. border-bottom: 1px solid;
  2191. height: 20px;
  2192. line-height: 20px;
  2193. }
  2194. .print-table-3 .td_3_1 {
  2195. border-right: 1px solid;
  2196. height: 20px;
  2197. line-height: 20px;
  2198. }
  2199. .print-table-3 .td_3_2 {
  2200. border-right: 1px solid;
  2201. height: 20px;
  2202. line-height: 20px;
  2203. }
  2204. .print-table-3 .td_3 {
  2205. border-right: 1px solid;
  2206. height: 20px;
  2207. line-height: 20px;
  2208. }
  2209. .dialysis-print-order .print-table-no {
  2210. width: 100%;
  2211. text-align: left;
  2212. border-collapse: collapse;
  2213. font-size: 14px;
  2214. }
  2215. .dialysis-print-order .under-line {
  2216. border-bottom: 1px solid #999;
  2217. width: 95%;
  2218. text-align: center;
  2219. margin-left: 2px;
  2220. }
  2221. .dialysis-print-order .title-box {
  2222. text-align: center;
  2223. font-size: 16px;
  2224. }
  2225. .dialysis-print-order .radio-lebel-box {
  2226. font-weight: 400;
  2227. cursor: pointer;
  2228. }
  2229. .dialysis-print-order .radio-no {
  2230. opacity: 0;
  2231. outline: none;
  2232. position: absolute;
  2233. margin: 0;
  2234. width: 0;
  2235. height: 0;
  2236. z-index: -1;
  2237. }
  2238. .dialysis-print-order .radio-inner {
  2239. white-space: nowrap;
  2240. cursor: pointer;
  2241. outline: none;
  2242. display: inline-block;
  2243. line-height: 1;
  2244. position: relative;
  2245. vertical-align: middle;
  2246. }
  2247. .dialysis-print-order .radio-fang {
  2248. display: inline-block;
  2249. position: relative;
  2250. border: 1px solid #000;
  2251. box-sizing: border-box;
  2252. width: 14px;
  2253. height: 14px;
  2254. background-color: #fff;
  2255. z-index: 1;
  2256. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  2257. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  2258. }
  2259. .dialysis-print-order .is-checked-radio::after {
  2260. content: "√";
  2261. font-size: 15px;
  2262. }
  2263. .dialysis-print-order .print-table-no tr td {
  2264. padding: 8px 5px;
  2265. line-height: 25px;
  2266. }
  2267. .print-table {
  2268. text-align: center;
  2269. }
  2270. .dialysis-print-order .print-table tr td {
  2271. padding: 0px 0px;
  2272. /*line-height: 25px;*/
  2273. }
  2274. .es-img {
  2275. height: 25px;
  2276. }
  2277. .advice-name {
  2278. text-align: left;
  2279. }
  2280. .advice-children {
  2281. display: flex;
  2282. }
  2283. .title-box-pro {
  2284. border: 0 #fff;
  2285. line-height: 25px;
  2286. height: 25px;
  2287. text-align: left;
  2288. padding-left: 10px !important;
  2289. }
  2290. .title-box-pro-tr {
  2291. border: 0 #fff;
  2292. }
  2293. .text-align-left {
  2294. text-align: left !important;
  2295. padding-left: 10px !important;
  2296. font-size: 14px !important;
  2297. line-height: 25px;
  2298. }
  2299. .print-table-tr-new td {
  2300. line-height: 20px !important;
  2301. }
  2302. .border-top-solid {
  2303. border: solid 1px #000;
  2304. }
  2305. .print-template-two tr {
  2306. line-height: 30px;
  2307. }
  2308. .list_table {
  2309. display: flex;
  2310. justify-content: flex-start;
  2311. }
  2312. .list_table div {
  2313. text-align: left;
  2314. flex: 1;
  2315. }
  2316. .print-table-list {
  2317. width: 100%;
  2318. text-align: left;
  2319. border-collapse: collapse;
  2320. line-height: 40px;
  2321. font-size: 14px;
  2322. border-spacing: 0;
  2323. }
  2324. .print-table-list tr td {
  2325. padding: 0;
  2326. border: 1px solid #dcdfe6;
  2327. }
  2328. .list_table_1 {
  2329. text-align: left;
  2330. }
  2331. </style>