血透系统PC前端

DialysisPrintOrderSeven.vue 66KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881
  1. <template>
  2. <div id="dialysis-print-box">
  3. <div class="dialysis-print-order">
  4. <div class="order-yy-name">{{ orgname }}</div>
  5. <div class="order-title">血液透析治疗记录单</div>
  6. <table class="table-box" style="margin-top: 10px;">
  7. <tbody>
  8. <tr>
  9. <td width="50">姓 名:</td>
  10. <td width="120">
  11. <div class="under-line">
  12. &nbsp;{{ patientInfo.name ? patientInfo.name : "/" }}
  13. </div>
  14. </td>
  15. <td width="100"></td>
  16. <td width="50">性 别:</td>
  17. <td width="180">
  18. <div class="under-line">
  19. {{ patientInfo.gender ? patientInfo.gender : "/" }}
  20. </div>
  21. </td>
  22. <td width="10"></td>
  23. <td width="50">年 龄:</td>
  24. <td width="180">
  25. <div class="under-line">
  26. &nbsp;{{ checkIdCardNo(patientInfo.id_card_no) }}
  27. </div>
  28. </td>
  29. <td width="80">岁</td>
  30. <td width="80">透析机号:</td>
  31. <td width="130">
  32. <div class="under-line">
  33. {{
  34. dialysisOrder &&
  35. dialysisOrder.DeviceNumber &&
  36. dialysisOrder.DeviceNumber.number.length > 0
  37. ? dialysisOrder.DeviceNumber.number
  38. : patientInfo.DialysisSchedule.device_number.number
  39. }}
  40. </div>
  41. </td>
  42. <td></td>
  43. </tr>
  44. </tbody>
  45. </table>
  46. <table class="table-box" style="margin-top:10px">
  47. <tbody>
  48. <tr>
  49. <td width="50">治疗日期:</td>
  50. <td width="130">
  51. <div class="under-line">
  52. {{ queryParams.xtdate ? queryParams.xtdate : "/" }}
  53. </div>
  54. </td>
  55. <td width="10"></td>
  56. <td width="50">
  57. 住院号:
  58. </td>
  59. <td width="150">
  60. <div class="under-line">
  61. {{
  62. receiverTreatmentAccess.admission_number
  63. ? receiverTreatmentAccess.admission_number
  64. : "/"
  65. }}
  66. </div>
  67. </td>
  68. <td width="10"></td>
  69. <td width="50">
  70. 身份证号:
  71. </td>
  72. <td width="150">
  73. <div class="under-line">
  74. {{ patientInfo.id_card_no ? patientInfo.id_card_no : "/" }}
  75. </div>
  76. </td>
  77. <td width="50"></td>
  78. <td width="100"></td>
  79. </tr>
  80. </tbody>
  81. </table>
  82. <table class="table-box" style="margin-top: 10px;">
  83. <tbody>
  84. <tr>
  85. <td width="40">诊 断:</td>
  86. <td style="text-align:left">
  87. <div class="under-line">
  88. &nbsp;{{ patientInfo.diagnose ? patientInfo.diagnose : "/" }}
  89. </div>
  90. </td>
  91. </tr>
  92. </tbody>
  93. </table>
  94. <table class="print-table" border="1" style="margin-top:10px">
  95. <tbody>
  96. <tr>
  97. <td>
  98. <table class="table-box">
  99. <tr>
  100. <td style="text-align:left;margin-left:15px">
  101. 病情评估:
  102. <span class="under-line"
  103. >&nbsp;{{
  104. receiverTreatmentAccess.sick_condition
  105. ? receiverTreatmentAccess.sick_condition
  106. : "/"
  107. }}</span
  108. >
  109. </td>
  110. <td style="text-align:left;margin-left:15px">
  111. 入科方式:
  112. <span class="under-line"
  113. >&nbsp;
  114. {{
  115. receiverTreatmentAccess.way
  116. ? receiverTreatmentAccess.way
  117. : "/"
  118. }}
  119. </span>
  120. </td>
  121. <td style="text-align:left;margin-left:15px" colspan="2">
  122. 透析次数:
  123. <span class="under-line">&nbsp;{{ total }}</span>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td style="text-align:left;margin-left:15px">
  128. 净化治疗方式:
  129. <span class="under-line"
  130. >&nbsp;{{
  131. prescription.mode ? prescription.mode : "/"
  132. }}</span
  133. >
  134. </td>
  135. <td style="text-align:left;margin-left:15px">
  136. 透析器型号:
  137. <span
  138. class="under-line"
  139. v-if="
  140. prescription.mode_id != 3 &&
  141. prescription.mode_id != 4 &&
  142. prescription.mode_id != 12 &&
  143. prescription.mode_id != 9
  144. "
  145. >&nbsp;{{
  146. prescription.dialyzer_perfusion_apparatus
  147. ? prescription.dialyzer_perfusion_apparatus
  148. : "/"
  149. }}</span
  150. >
  151. <span class="under-line" v-else>
  152. /
  153. </span>
  154. </td>
  155. <td style="text-align:left;margin-left:15px">
  156. 灌流器型号:
  157. <span
  158. class="under-line"
  159. v-if="
  160. prescription.mode_id == 3 ||
  161. prescription.mode_id == 4 ||
  162. prescription.mode_id == 9 ||
  163. prescription.mode_id == 12
  164. "
  165. >&nbsp;{{
  166. prescription.dialyzer_perfusion_apparatus
  167. ? prescription.dialyzer_perfusion_apparatus
  168. : "/"
  169. }}</span
  170. >
  171. <span v-else class="under-line">
  172. /
  173. </span>
  174. </td>
  175. <td style="text-align:left;margin-left:15px">
  176. 血管通路:
  177. <span class="under-line"
  178. >&nbsp;{{
  179. predialysis.blood_access_part_opera_name
  180. ? predialysis.blood_access_part_opera_name
  181. : "/"
  182. }}</span
  183. >
  184. </td>
  185. </tr>
  186. <tr>
  187. <td style="text-align:left;margin-left:15px">
  188. 干体重:
  189. <span class="under-line"
  190. >&nbsp;{{
  191. predialysis.dry_weight ? predialysis.dry_weight : "0"
  192. }}</span
  193. >kg
  194. </td>
  195. <td style="text-align:left;margin-left:15px">
  196. 透前体重:
  197. <span class="under-line"
  198. >&nbsp;{{
  199. predialysis.weight_before
  200. ? predialysis.weight_before
  201. : "0"
  202. }}</span
  203. >kg
  204. </td>
  205. <td style="text-align:left;margin-left:15px">
  206. 预脱:
  207. <span class="under-line"
  208. >&nbsp;{{
  209. prescription.target_ultrafiltration
  210. ? prescription.target_ultrafiltration
  211. : "0"
  212. }}</span
  213. >L
  214. </td>
  215. <td style="text-align:left;margin-left:15px">
  216. 治疗时间:
  217. <span class="under-line"
  218. >&nbsp;{{
  219. prescription.dialysis_duration_hour
  220. ? prescription.dialysis_duration_hour
  221. : "0"
  222. }}小时{{
  223. prescription.dialysis_duration_minute
  224. ? prescription.dialysis_duration_minute
  225. : "0"
  226. }}分钟</span
  227. >
  228. </td>
  229. </tr>
  230. <tr>
  231. <td style="text-align:left;margin-left:15px">
  232. 血流量:
  233. <span class="under-line"
  234. >&nbsp;{{
  235. prescription.blood_flow_volume
  236. ? prescription.blood_flow_volume
  237. : "0"
  238. }}</span
  239. >ml/min
  240. </td>
  241. <td style="text-align:left;margin-left:15px">
  242. 置换方式:
  243. <span class="under-line"
  244. >&nbsp;
  245. {{
  246. getDisplaceLiquiPart(prescription.displace_liqui_part)
  247. }}</span
  248. >
  249. </td>
  250. <td style="text-align:left;margin-left:15px">
  251. 置换液总量:
  252. <span class="under-line"
  253. >&nbsp;{{
  254. prescription.displace_liqui_value
  255. ? prescription.displace_liqui_value
  256. : "0"
  257. }}</span
  258. >
  259. </td>
  260. </tr>
  261. <tr>
  262. <td style="text-align:left;margin-left:15px">
  263. 抗凝剂:
  264. <span class="under-line"
  265. >&nbsp;{{
  266. prescription.anticoagulant
  267. ? prescription.anticoagulant
  268. : "/"
  269. }}</span
  270. >
  271. </td>
  272. <td style="text-align:left;margin-left:15px">
  273. 首剂:<span class="under-line">{{
  274. prescription.anticoagulant_shouji
  275. ? prescription.anticoagulant_shouji
  276. : "0"
  277. }}</span>
  278. <span v-if="prescription.anticoagulant == '枸橼酸钠'"
  279. >mg</span
  280. >
  281. <span v-if="prescription.anticoagulant == '阿加曲班'"
  282. >mg</span
  283. >
  284. <span v-if="prescription.anticoagulant == '低分子肝素'"
  285. >iu</span
  286. >
  287. <span v-if="prescription.anticoagulant == '普通肝素'"
  288. >iu</span
  289. >
  290. <span v-if="prescription.anticoagulant == '无肝素'">mg</span
  291. >&nbsp;
  292. </td>
  293. <td style="text-align:left;margin-left:15px">
  294. 维持:
  295. <span class="under-line"
  296. >&nbsp;{{
  297. prescription.anticoagulant_weichi
  298. ? prescription.anticoagulant_weichi
  299. : "0"
  300. }}</span
  301. >
  302. <span v-if="prescription.anticoagulant == '枸橼酸钠'"
  303. >ml/h</span
  304. >
  305. <span v-if="prescription.anticoagulant == '阿加曲班'"
  306. >mg/h</span
  307. >
  308. <span v-if="prescription.anticoagulant == '低分子肝素'"
  309. >iu/h</span
  310. >
  311. <span v-if="prescription.anticoagulant == '普通肝素'"
  312. >iu/h</span
  313. >
  314. <span v-if="prescription.anticoagulant == '无肝素'"
  315. >mg/h</span
  316. >
  317. </td>
  318. <td style="text-align:left;margin-left:15px">
  319. 总量:<span class="under-line"
  320. >&nbsp;{{
  321. prescription.anticoagulant_zongliang
  322. ? prescription.anticoagulant_zongliang
  323. : "0"
  324. }}</span
  325. >
  326. <span v-if="prescription.anticoagulant == '枸橼酸钠'"
  327. >mg</span
  328. >
  329. <span v-if="prescription.anticoagulant == '阿加曲班'"
  330. >mg</span
  331. >
  332. <span v-if="prescription.anticoagulant == '低分子肝素'"
  333. >iu</span
  334. >
  335. <span v-if="prescription.anticoagulant == '普通肝素'"
  336. >iu</span
  337. >
  338. <span v-if="prescription.anticoagulant == '无肝素'">mg</span
  339. >;
  340. </td>
  341. </tr>
  342. <tr>
  343. <td style="text-align:left;margin-left:15px">
  344. 透析液(mmol/L):
  345. <span
  346. class="under-line"
  347. v-if="prescription.dialysate_formulation == 0"
  348. >&nbsp; 常规低钙(钾:0&nbsp;,钙:0 &nbsp;,钠:0)
  349. </span>
  350. <span
  351. class="under-line"
  352. v-if="prescription.dialysate_formulation == 1"
  353. >&nbsp; 常规低钙(钾:{{
  354. prescription.kalium
  355. }}&nbsp;,钙:{{ prescription.calcium }}&nbsp;,钠:{{
  356. prescription.sodium
  357. }})
  358. </span>
  359. <span
  360. class="under-line"
  361. v-if="prescription.dialysate_formulation == 2"
  362. >&nbsp; 低钙(钾:{{ prescription.kalium }}&nbsp;,钙:{{
  363. prescription.calcium
  364. }}&nbsp;,钠:{{ prescription.sodium }})
  365. </span>
  366. <span
  367. class="under-line"
  368. v-if="prescription.dialysate_formulation == 3"
  369. >&nbsp; 高钙(钾:{{ prescription.kalium }}&nbsp;,钙:{{
  370. prescription.calcium
  371. }}&nbsp;,钠:{{ prescription.sodium }})
  372. </span>
  373. <span
  374. class="under-line"
  375. v-if="prescription.dialysate_formulation == 4"
  376. >&nbsp; 低钠(钾:{{ prescription.kalium }}&nbsp;,钙:{{
  377. prescription.calcium
  378. }}&nbsp;,钠:{{ prescription.sodium }})
  379. </span>
  380. <span
  381. class="under-line"
  382. v-if="prescription.dialysate_formulation == 5"
  383. >&nbsp; 高钠(钾:{{ prescription.kalium }}&nbsp;,钙:{{
  384. prescription.calcium
  385. }}&nbsp;,钠:{{ prescription.sodium }})
  386. </span>
  387. </td>
  388. <td style="text-align:left;margin-left:15px">
  389. 并发症:
  390. <span class="under-line">{{
  391. predialysis.complication ? predialysis.complication : "/"
  392. }}</span>
  393. </td>
  394. <td style="text-align:left;margin-left:15px">
  395. 医生签名:
  396. <span class="under-line" v-if="dialysisDoctor.url == ''"
  397. >&nbsp;{{
  398. dialysisDoctor.doctor ? dialysisDoctor.doctor : "/"
  399. }}</span
  400. >
  401. <span class="under-line" v-if="dialysisDoctor.url != ''">
  402. <img style="height:40px" :src="dialysisDoctor.url" />
  403. </span>
  404. </td>
  405. </tr>
  406. </table>
  407. </td>
  408. </tr>
  409. </tbody>
  410. </table>
  411. <table class="print-table" border="1">
  412. <tr>
  413. <th style="min-width:60px">
  414. <p style="height:20px;line-height:20px">时间</p>
  415. </th>
  416. <th style="min-width:60px">
  417. <p style="height:20px;line-height:20px">血压</p>
  418. <p style="height:20px;line-height:20px">(mmHg)</p>
  419. </th>
  420. <th style="min-width:60px">
  421. <p style="height:20px;line-height:20px">脉率</p>
  422. <p style="height:20px;line-height:20px">次/分</p>
  423. </th>
  424. <th style="min-width:60px">
  425. <p style="height:20px;line-height:20px">呼吸</p>
  426. <p style="height:20px;line-height:20px">次/分</p>
  427. </th>
  428. <th style="min-width:60px">
  429. <p style="height:20px;line-height:20px">血流量</p>
  430. <p style="height:20px;line-height:20px">ml/min</p>
  431. </th>
  432. <th style="min-width:60px">
  433. <p style="height:20px;line-height:20px">超滤量</p>
  434. <p style="height:20px;line-height:20px">L</p>
  435. </th>
  436. <th style="min-width:60px">
  437. <p style="height:20px;line-height:20px">置换量</p>
  438. <p style="height:20px;line-height:20px">L</p>
  439. </th>
  440. <th style="min-width:60px">
  441. <p style="height:20px;line-height:20px">静脉压</p>
  442. <p style="height:20px;line-height:20px">(mmHg)</p>
  443. </th>
  444. <th style="min-width:60px">
  445. <p style="height:20px;line-height:20px">跨膜压</p>
  446. <p style="height:20px;line-height:20px">(mmHg)</p>
  447. </th>
  448. <th style="min-width:260px">
  449. <p style="height:20px;line-height:20px">病情变化</p>
  450. </th>
  451. </tr>
  452. <tr v-for="(monitor, monindex) in monitors" :key="monindex">
  453. <td style="min-width:60px;height:30px">
  454. {{ getTime(monitor.operate_time, "{h}:{i}") }}
  455. </td>
  456. <td>
  457. <span v-if="getTime(monitor.operate_time) != ''"
  458. >{{
  459. monitor.systolic_blood_pressure
  460. ? monitor.systolic_blood_pressure
  461. : "0"
  462. }}/{{
  463. monitor.diastolic_blood_pressure
  464. ? monitor.diastolic_blood_pressure
  465. : "0"
  466. }}
  467. </span>
  468. </td>
  469. <td>
  470. <span v-if="getTime(monitor.operate_time) != ''">
  471. {{ monitor.pulse_frequency ? monitor.pulse_frequency : "0" }}
  472. </span>
  473. </td>
  474. <td>
  475. <span v-if="getTime(monitor.operate_time) != ''">{{
  476. monitor.breathing_rate ? monitor.breathing_rate : "0"
  477. }}</span>
  478. </td>
  479. <td>
  480. <span v-if="getTime(monitor.operate_time) != ''">
  481. {{
  482. monitor.blood_flow_volume ? monitor.blood_flow_volume : "0"
  483. }}</span
  484. >
  485. </td>
  486. <td>
  487. <span v-if="getTime(monitor.operate_time) != ''">
  488. {{
  489. monitor.ultrafiltration_volume
  490. ? monitor.ultrafiltration_volume
  491. : "0"
  492. }}
  493. </span>
  494. </td>
  495. <td>
  496. <span v-if="getTime(monitor.operate_time) != ''"
  497. >{{
  498. monitor.displacement_quantity
  499. ? monitor.displacement_quantity
  500. : "0"
  501. }}
  502. </span>
  503. </td>
  504. <td>
  505. <span v-if="getTime(monitor.operate_time) != ''">
  506. {{ monitor.venous_pressure ? monitor.venous_pressure : "0" }}
  507. </span>
  508. </td>
  509. <td>
  510. <span v-if="getTime(monitor.operate_time) != ''">
  511. {{
  512. monitor.transmembrane_pressure
  513. ? monitor.transmembrane_pressure
  514. : "0"
  515. }}
  516. </span>
  517. </td>
  518. <td>
  519. {{ monitor.symptom }} &nbsp;{{ monitor.dispose }}&nbsp;{{
  520. monitor.result
  521. }}
  522. </td>
  523. </tr>
  524. </table>
  525. <table class="print-table" border="1">
  526. <tbody>
  527. <tr>
  528. <td style="width:60px;height:40px">
  529. <p style="height:20px;line-height:20px">时间</p>
  530. </td>
  531. <td style="width:120px;height:40px">
  532. <p style="height:20px;line-height:20px">医嘱执行记录</p>
  533. </td>
  534. <td style="width:60px;height:40px">
  535. <p style="height:20px;line-height:20px">医生签名</p>
  536. </td>
  537. <td style="width:60px;height:40px">
  538. <p style="height:20px;line-height:20px">医嘱执行时间</p>
  539. </td>
  540. <td style="width:60px;height:40px">
  541. <p style="height:20px;line-height:20px">执行</p>
  542. </td>
  543. <td style="width:60px;height:60px">
  544. <p style="height:20px;line-height:20px">核对</p>
  545. </td>
  546. <td style="width:60px;height:40px">
  547. <p style="height:20px;line-height:20px">上次透后体重</p>
  548. </td>
  549. <td style="width:60px;height:40px">
  550. {{
  551. assessmentafter.weight_after
  552. ? assessmentafter.weight_after
  553. : "0"
  554. }}kg
  555. </td>
  556. </tr>
  557. <tr v-for="(advice, advice_index) in tableAdvice">
  558. <td>{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
  559. <td>
  560. <span v-if="advice.parent_id > 0">---></span>
  561. <span>{{ advice.advice_name }}</span>
  562. <span v-if="advice && advice.advice_desc"
  563. >({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span
  564. >
  565. <span v-if="advice.prescribing_number">
  566. &nbsp;&nbsp; {{ advice.prescribing_number
  567. }}{{ advice.prescribing_number_unit }}</span
  568. >
  569. <span v-if="advice.single_dose != 0">
  570. {{ advice.single_dose }}{{ advice.single_dose_unit }}</span
  571. >
  572. <span v-if="advice.parent_id == 0">{{
  573. advice.delivery_way
  574. }}</span>
  575. <span v-if="advice.parent_id == 0">{{
  576. advice.execution_frequency
  577. }}</span>
  578. </td>
  579. <td>
  580. <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{
  581. getAdminUser(advice.advice_doctor)
  582. }}</span>
  583. <img
  584. style="height:40px;"
  585. :src="setAdminUserES(advice.advice_doctor)"
  586. alt=""
  587. srcset=""
  588. v-else
  589. />
  590. </td>
  591. <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
  592. <td>
  593. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
  594. getAdminUser(advice.execution_staff)
  595. }}</span>
  596. <img
  597. style="height:40px;"
  598. :src="setAdminUserES(advice.execution_staff)"
  599. alt=""
  600. srcset=""
  601. v-else
  602. />
  603. </td>
  604. <td>
  605. <span v-if="setAdminUserES(advice.checker) == ''">{{
  606. getAdminUser(advice.checker)
  607. }}</span>
  608. <img
  609. style="height:40px;"
  610. :src="setAdminUserES(advice.checker)"
  611. alt=""
  612. srcset=""
  613. v-else
  614. />
  615. </td>
  616. <td v-if="advice_index === 0">透前体重:</td>
  617. <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
  618. <td v-if="advice_index === 1">体重增加量:</td>
  619. <td v-if="advice_index === 1">
  620. {{
  621. (
  622. predialysis.weight_before - assessmentafter.weight_after
  623. ).toFixed(1)
  624. }}kg
  625. </td>
  626. <td v-if="advice_index === 2">干体重(DW):</td>
  627. <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
  628. <td v-if="advice_index === 3">较干体重增加量:</td>
  629. <td v-if="advice_index === 3">
  630. {{
  631. (
  632. predialysis.weight_before -
  633. predialysis.dry_weight -
  634. predialysis.additional_weight
  635. ).toFixed(2)
  636. }}kg
  637. </td>
  638. <td v-if="advice_index === 4">净脱水量:</td>
  639. <td v-if="advice_index === 4">
  640. {{ afterdialysis.actual_ultrafiltration }}L
  641. </td>
  642. <td v-if="advice_index === 5">透后体重:</td>
  643. <td v-if="advice_index === 5">
  644. {{ afterdialysis.weight_after }}kg
  645. </td>
  646. </tr>
  647. </tbody>
  648. </table>
  649. <table class="print-table" border="1">
  650. <td>
  651. <table class="table-box" style="table-layout:fixed">
  652. <tr>
  653. <td style="text-align:left;margin-left:15px;width:25%">
  654. 上机时间:
  655. <span class="under-line">
  656. {{
  657. getTime(Order.start_time, "{y}-{m}-{d} {h}:{i}")
  658. ? getTime(Order.start_time, "{y}-{m}-{d} {h}:{i}")
  659. : "0"
  660. }}</span
  661. >
  662. </td>
  663. <td style="text-align:left;margin-left:15px;width:25%">
  664. 下机时间:
  665. <span class="under-line">{{
  666. getTime(Order.end_time, "{y}-{m}-{d} {h}:{i}")
  667. ? getTime(Order.end_time, "{y}-{m}-{d} {h}:{i}")
  668. : "0"
  669. }}</span>
  670. </td>
  671. <td style="text-align:left;margin-left:15px;width:25%">
  672. 上机护士:
  673. <span class="under-line" v-if="orderForm.url === ''">{{
  674. orderForm.start_nurse ? orderForm.start_nurse : "/"
  675. }}</span>
  676. <span class="under-line" v-if="orderForm.url !== ''"
  677. ><img :src="orderForm.url" style="height:40px;"
  678. /></span>
  679. </td>
  680. <td style="text-align:left;margin-left:15px;width:25%">
  681. 核对护士:
  682. <span class="under-line"
  683. >&nbsp;
  684. <span
  685. v-if="
  686. setAdminUserES(check == null ? 0 : check.modifier) == ''
  687. "
  688. >{{
  689. getAdminUser(check == null ? 0 : check.modifier)
  690. ? getAdminUser(check == null ? 0 : check.modifier)
  691. : "/"
  692. }}</span
  693. >
  694. <img
  695. class="es-img"
  696. :src="setAdminUserES(check == null ? 0 : check.modifier)"
  697. alt=""
  698. srcset=""
  699. style="height:40px"
  700. v-else
  701. />
  702. </span>
  703. </td>
  704. </tr>
  705. <tr>
  706. <td style="text-align:left;margin-left:15px;width:25%">
  707. 下机护士:
  708. <span class="under-line" v-if="finshForm.url === ''"
  709. >&nbsp;{{
  710. finshForm.finish_nurse ? finshForm.finish_nurse : "/"
  711. }}</span
  712. >
  713. <span class="under-line" v-if="finshForm.url !== ''"
  714. >&nbsp;<img :src="finshForm.url" style="height:40px;"
  715. /></span>
  716. </td>
  717. <td style="text-align:left;margin-left:15px;width:25%">
  718. 下机血压:
  719. <span class="under-line"
  720. >&nbsp;{{ afterdialysis.systolic_blood_pressure }}/{{
  721. afterdialysis.diastolic_blood_pressure
  722. }}&nbsp;mmHg</span
  723. >
  724. </td>
  725. <td style="text-align:left;margin-left:15px;width:25%">
  726. 实际治疗时间:
  727. <span class="under-line"
  728. >&nbsp;
  729. {{
  730. afterdialysis.actual_treatment_hour
  731. ? afterdialysis.actual_treatment_hour
  732. : "0"
  733. }}小时{{
  734. afterdialysis.actual_treatment_minute
  735. ? afterdialysis.actual_treatment_minute
  736. : "0"
  737. }}分钟
  738. </span>
  739. </td>
  740. <td style="text-align:left;margin-left:15px;width:25%">
  741. 实际超滤量:
  742. <span class="under-line"
  743. >&nbsp;{{
  744. afterdialysis.actual_ultrafiltration
  745. ? afterdialysis.actual_ultrafiltration
  746. : "0"
  747. }}&nbsp;L</span
  748. >
  749. </td>
  750. </tr>
  751. <tr>
  752. <td style="text-align:left;margin-left:15px">
  753. 拔针后穿刺点渗血:
  754. <span
  755. class="under-line"
  756. v-if="afterdialysis.puncture_point_oozing_blood === 0"
  757. >&nbsp;/</span
  758. >
  759. <span
  760. class="under-line"
  761. v-if="afterdialysis.puncture_point_oozing_blood === 1"
  762. >&nbsp;有</span
  763. >
  764. <span
  765. class="under-line"
  766. v-if="afterdialysis.puncture_point_oozing_blood === 2"
  767. >&nbsp;/</span
  768. >
  769. </td>
  770. <td style="text-align:left;margin-left:15px">
  771. 穿刺处血肿:
  772. <span
  773. class="under-line"
  774. v-if="afterdialysis.puncture_point_haematoma === 0"
  775. >&nbsp;/</span
  776. >
  777. <span
  778. class="under-line"
  779. v-if="afterdialysis.puncture_point_haematoma === 1"
  780. >&nbsp;有</span
  781. >
  782. <span
  783. class="under-line"
  784. v-if="afterdialysis.puncture_point_haematoma === 2"
  785. >&nbsp;/</span
  786. >
  787. </td>
  788. <td style="text-align:left;margin-left:15px">
  789. 压迫后内瘘震颤:
  790. <span
  791. class="under-line"
  792. v-if="afterdialysis.internal_fistula_tremor_ac === 0"
  793. >&nbsp;/</span
  794. >
  795. <span
  796. class="under-line"
  797. v-if="afterdialysis.internal_fistula_tremor_ac === 1"
  798. >&nbsp;存在</span
  799. >
  800. <span
  801. class="under-line"
  802. v-if="afterdialysis.internal_fistula_tremor_ac === 2"
  803. >&nbsp;减弱</span
  804. >
  805. <span
  806. class="under-line"
  807. v-if="afterdialysis.internal_fistula_tremor_ac === 3"
  808. >&nbsp;无</span
  809. >
  810. </td>
  811. </tr>
  812. <tr>
  813. <td style="text-align:left;margin-left:15px;" colspan="2">
  814. 并发症:
  815. <span class="under-line"
  816. >&nbsp;{{ afterdialysis.complication }}</span
  817. >
  818. </td>
  819. <td style="text-align:left;margin-left:15px" colspan="2">
  820. 透析器凝血:
  821. <span class="under-line">{{
  822. afterdialysis.cruor ? afterdialysis.cruor : "/"
  823. }}</span>
  824. </td>
  825. </tr>
  826. </table>
  827. <table class="table-box">
  828. <tr>
  829. <td style="text-align:left;margin-left:15px">
  830. 治疗小结:
  831. <span class="under-line"
  832. >&nbsp;{{ summary.dialysis_summary }}</span
  833. >
  834. </td>
  835. </tr>
  836. </table>
  837. </td>
  838. </table>
  839. <div>
  840. 注:透析器凝血评价标准:"0级"&nbsp;无凝血或数条纤维束凝血,"Ⅰ级"&nbsp;少于10%纤维凝血,"Ⅱ级"&nbsp;少于50%纤维凝血,"Ⅲ级"&nbsp;大于50%纤维凝血
  841. </div>
  842. </div>
  843. </div>
  844. </template>
  845. <script>
  846. import { getDialysisRecord } from "@/api/dialysis";
  847. import { getDataConfig } from "@/utils/data";
  848. import { jsGetAge, uParseTime } from "@/utils/tools";
  849. import LabelBox from "../printItem/LabelBox";
  850. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  851. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  852. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  853. import print from "print-js";
  854. export default {
  855. name: "dialysisPrintOrderOne",
  856. components: {
  857. // DialysisPrintOrderOne,
  858. // DialysisPrintOrderTwo,
  859. LabelBox,
  860. BreadCrumb
  861. },
  862. data() {
  863. return {
  864. way_arr: [],
  865. consciousness_arr: [],
  866. appetite_arr: [],
  867. posture_arr: [],
  868. sick_condition_arr: [],
  869. precaution_arr: [],
  870. intake_arr: [],
  871. nutrition_arr: [],
  872. crumbs: [
  873. { path: false, name: "透析管理" },
  874. { path: false, name: "打印单" }
  875. ],
  876. operators: [],
  877. adminUser: [],
  878. check: {},
  879. dialysisOrder: {
  880. DeviceNumber: []
  881. },
  882. Order: {},
  883. operatorMaps: {},
  884. complications: [
  885. "低血压",
  886. "高血压",
  887. "心律失常",
  888. "头晕",
  889. "头痛",
  890. "呕吐",
  891. "抽搐",
  892. "出血",
  893. "心衰",
  894. "腹痛",
  895. "无"
  896. ],
  897. jilurow: 0,
  898. advice_jilurow: 0,
  899. loading: false,
  900. orgname: "",
  901. patientInfo_gender_1: false,
  902. patientInfo_gender_2: false,
  903. patientInfo_source_2: false,
  904. patientInfo_source_1: false,
  905. modeOptions: {},
  906. replacementWays: [],
  907. perfusionApparatus: [],
  908. anticoagulantsConfit: {},
  909. bloodAccessParOpera: {},
  910. dialysateFormulationOptions: {},
  911. queryParams: {
  912. xtdate: "",
  913. xtno: ""
  914. },
  915. patientInfo: {
  916. birth: "",
  917. age: "",
  918. DialysisSchedule: {
  919. device_number: { number: "" },
  920. device_zone: { name: "" }
  921. },
  922. gender: 0
  923. },
  924. predialysis: {
  925. score: "",
  926. internal_fistula: "",
  927. internal_fistula_skin: "",
  928. catheter: "",
  929. blood_access_part_opera_name: ""
  930. },
  931. afterdialysis: {
  932. complications_index: ""
  933. },
  934. prescription: {
  935. dialysate_formulation_name: "",
  936. device: {}
  937. },
  938. advices: [],
  939. users: [],
  940. monitors: [],
  941. summary: {},
  942. receiverTreatmentAccess: {},
  943. org_template_info: {},
  944. isShowZero: false,
  945. doctor_advices: [],
  946. advice_groups: [],
  947. AlPanel: {
  948. id: 0,
  949. name: "",
  950. type: 1,
  951. shouji: 2,
  952. weichi: 2,
  953. zongliang: 2,
  954. gaimingcheng: -1,
  955. gaijiliang: -1,
  956. shouji_unit: "mg",
  957. weichi_unit: "mg/h",
  958. zongliang_unit: "mg",
  959. gaimingcheng_unit: "",
  960. gaijiliang_unit: ""
  961. },
  962. total: "",
  963. doctorForm: {
  964. doctor: "",
  965. url: ""
  966. },
  967. dialysisDoctor: {
  968. doctor: "",
  969. url: ""
  970. },
  971. tableAdvice: [],
  972. assessmentafter: {},
  973. orderForm: {
  974. start_nurse: "",
  975. url: ""
  976. },
  977. finshForm: {
  978. finish_nurse: "",
  979. url: ""
  980. },
  981. displaceLiquiPartOptions: []
  982. };
  983. },
  984. methods: {
  985. getDisplaceLiquiPart: function(val) {
  986. let displace_liqui_part_name = "/";
  987. const displace_liqui_part = this.displaceLiquiPartOptions;
  988. for (let i = 0; i < displace_liqui_part.length; i++) {
  989. if (displace_liqui_part[i].id == val) {
  990. displace_liqui_part_name = displace_liqui_part[i].name;
  991. }
  992. }
  993. return displace_liqui_part_name;
  994. },
  995. getAdminUser(id) {
  996. if (id == 0) {
  997. return "";
  998. }
  999. if (id == undefined) {
  1000. return "";
  1001. }
  1002. for (let i = 0; i < this.adminUser.length; i++) {
  1003. if (this.adminUser[i].id == id) {
  1004. return this.adminUser[i].name;
  1005. }
  1006. }
  1007. },
  1008. getTime(value, temp) {
  1009. if (value == 0) {
  1010. return "";
  1011. }
  1012. if (value != undefined) {
  1013. return uParseTime(value, temp);
  1014. }
  1015. return "";
  1016. },
  1017. printThisPage() {
  1018. var ptime = Math.round(new Date().getTime() / 1000);
  1019. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1020. const style =
  1021. '@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;}';
  1022. if (this.org_template_info.template_id == 1) {
  1023. printJS({
  1024. printable: "dialysis-print-box",
  1025. type: "html",
  1026. style: style,
  1027. scanStyles: false
  1028. });
  1029. } else if (
  1030. this.org_template_info.template_id == 2 ||
  1031. this.org_template_info.template_id == 0
  1032. ) {
  1033. printJS({
  1034. printable: "dialysis-print-box-1",
  1035. type: "html",
  1036. style: style,
  1037. scanStyles: false
  1038. });
  1039. }
  1040. },
  1041. getNumber() {
  1042. if (this.dialysisOrder != null) {
  1043. return (
  1044. this.patientInfo.DialysisSchedule.device_zone.name +
  1045. this.dialysisOrder.DeviceNumber.number
  1046. );
  1047. } else {
  1048. return (
  1049. this.patientInfo.DialysisSchedule.device_zone.name +
  1050. this.patientInfo.DialysisSchedule.device_number.number
  1051. );
  1052. }
  1053. },
  1054. getXuserName(id) {
  1055. if (id <= 0) {
  1056. return "";
  1057. }
  1058. var name = "";
  1059. if (this.users == null || typeof this.users.length === "undefined") {
  1060. return name;
  1061. }
  1062. var leng = this.users.length;
  1063. if (leng == 0) {
  1064. return name;
  1065. }
  1066. for (let index = 0; index < leng; index++) {
  1067. if (this.users[index].id == id) {
  1068. name = this.users[index].name;
  1069. break;
  1070. }
  1071. }
  1072. return name;
  1073. },
  1074. setAdminUserES(id) {
  1075. if (id == 0) {
  1076. return "";
  1077. }
  1078. if (id in this.operatorMaps) {
  1079. return this.operatorMaps[id].url;
  1080. } else {
  1081. return "";
  1082. }
  1083. },
  1084. modeName(mode_id) {
  1085. return typeof this.modeOptions[mode_id] !== "undefined" &&
  1086. typeof this.modeOptions[mode_id].name !== "undefined"
  1087. ? this.modeOptions[mode_id].name
  1088. : "";
  1089. },
  1090. getDialysisRecord() {
  1091. this.loading = true;
  1092. getDialysisRecord(this.queryParams).then(response => {
  1093. if (response.data.state === 1) {
  1094. this.total = response.data.data.total;
  1095. this.adminUser = response.data.data.users;
  1096. this.users = response.data.data.users;
  1097. var patientInfo = response.data.data.patientInfo;
  1098. if (patientInfo.gender === 1) {
  1099. patientInfo.gender = "男";
  1100. }
  1101. if (patientInfo.gender === 2) {
  1102. patientInfo.gender = "女";
  1103. }
  1104. console.log("patientInfo", patientInfo);
  1105. this.patientInfo = patientInfo;
  1106. this.patientInfo.birth = uParseTime(
  1107. this.patientInfo.birthday,
  1108. "{y}-{m}-{d}"
  1109. );
  1110. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1111. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1112. this.patientInfo.first_dialysis_date = uParseTime(
  1113. response.data.data.patientInfo.first_dialysis_date,
  1114. "{y}-{m}-{d}"
  1115. );
  1116. } else {
  1117. this.patientInfo.first_dialysis_date = "";
  1118. }
  1119. this.check = response.data.data.check;
  1120. console.log("核对信息", this.check);
  1121. this.predialysis = response.data.data.PredialysisEvaluation;
  1122. console.log("透前评估", this.predialysis);
  1123. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
  1124. this.predialysis.blood_access_part_opera_id
  1125. );
  1126. this.assessmentafter = response.data.data.assessmentAfterDislysis;
  1127. console.log("上次透后体重", this.assessmentafter);
  1128. var doctorAdevieInfo = response.data.data.doctorAdevieInfo;
  1129. var tableAdvice = doctorAdevieInfo;
  1130. // console.log('医生', tableAdvice.length)
  1131. if (tableAdvice.length === 0) {
  1132. var obj = { advice_name: "", start_time: "" };
  1133. var obj1 = { advice_name: "", start_time: "" };
  1134. var obj2 = { advice_name: "", start_time: "" };
  1135. var obj3 = { advice_name: "", start_time: "" };
  1136. var obj4 = { advice_name: "", start_time: "" };
  1137. var obj5 = { advice_name: "", start_time: "" };
  1138. tableAdvice.push(obj);
  1139. tableAdvice.push(obj1);
  1140. tableAdvice.push(obj2);
  1141. tableAdvice.push(obj3);
  1142. tableAdvice.push(obj4);
  1143. tableAdvice.push(obj5);
  1144. this.tableAdvice = tableAdvice;
  1145. }
  1146. if (tableAdvice.length === 1) {
  1147. var obj = { advice_name: "", start_time: "" };
  1148. var obj1 = { advice_name: "", start_time: "" };
  1149. var obj2 = { advice_name: "", start_time: "" };
  1150. var obj3 = { advice_name: "", start_time: "" };
  1151. var obj4 = { advice_name: "", start_time: "" };
  1152. tableAdvice.push(obj);
  1153. tableAdvice.push(obj1);
  1154. tableAdvice.push(obj2);
  1155. tableAdvice.push(obj3);
  1156. tableAdvice.push(obj4);
  1157. this.tableAdvice = tableAdvice;
  1158. }
  1159. if (tableAdvice.length === 2) {
  1160. var obj = { advice_name: "", start_time: "" };
  1161. var obj1 = { advice_name: "", start_time: "" };
  1162. var obj2 = { advice_name: "", start_time: "" };
  1163. var obj3 = { advice_name: "", start_time: "" };
  1164. tableAdvice.push(obj);
  1165. tableAdvice.push(obj1);
  1166. tableAdvice.push(obj2);
  1167. tableAdvice.push(obj3);
  1168. this.tableAdvice = tableAdvice;
  1169. }
  1170. if (tableAdvice.length === 3) {
  1171. // eslint-disable-next-line no-redeclare
  1172. var obj = { advice_name: "", start_time: "" };
  1173. // eslint-disable-next-line no-redeclare
  1174. var obj1 = { advice_name: "", start_time: "" };
  1175. // eslint-disable-next-line no-redeclare
  1176. var obj2 = { advice_name: "", start_time: "" };
  1177. // eslint-disable-next-line no-redeclare
  1178. tableAdvice.push(obj);
  1179. tableAdvice.push(obj1);
  1180. tableAdvice.push(obj2);
  1181. this.tableAdvice = tableAdvice;
  1182. }
  1183. if (tableAdvice.length === 4) {
  1184. // eslint-disable-next-line no-redeclare
  1185. var obj = { advice_name: "", start_time: "" };
  1186. // eslint-disable-next-line no-redeclare
  1187. var obj1 = { advice_name: "", start_time: "" };
  1188. // eslint-disable-next-line no-redeclare
  1189. tableAdvice.push(obj);
  1190. tableAdvice.push(obj1);
  1191. this.tableAdvice = tableAdvice;
  1192. }
  1193. if (tableAdvice.length === 5) {
  1194. // eslint-disable-next-line no-redeclare
  1195. var obj = { advice_name: "", start_time: "" };
  1196. // eslint-disable-next-line no-redeclare
  1197. var obj1 = { advice_name: "", start_time: "" };
  1198. tableAdvice.push(obj);
  1199. tableAdvice.push(obj1);
  1200. this.tableAdvice = tableAdvice;
  1201. }
  1202. if (tableAdvice.length >= 6) {
  1203. this.tableAdvice = tableAdvice;
  1204. }
  1205. this.afterdialysis = response.data.data.AssessmentAfterDislysis;
  1206. console.log("透后评估", this.afterdialysis);
  1207. this.operators = response.data.data.operators;
  1208. this.dialysisOrder =
  1209. response.data.data.dialysisOrder === null
  1210. ? null
  1211. : response.data.data.dialysisOrder;
  1212. if (this.operators.length > 0) {
  1213. var operatorsLen = this.operators.length;
  1214. for (var index = 0; index < operatorsLen; index++) {
  1215. this.$set(
  1216. this.operatorMaps,
  1217. this.operators[index].creator,
  1218. this.operators[index]
  1219. );
  1220. }
  1221. }
  1222. this.afterdialysis.txqnx = -1;
  1223. if (this.afterdialysis.cruor.indexOf("0度") > -1) {
  1224. this.afterdialysis.txqnx = 0;
  1225. }
  1226. if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
  1227. this.afterdialysis.txqnx = 1;
  1228. }
  1229. if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
  1230. this.afterdialysis.txqnx = 2;
  1231. }
  1232. if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
  1233. this.afterdialysis.txqnx = 3;
  1234. }
  1235. this.afterdialysis.complications = this.afterdialysis.complication.split(
  1236. ","
  1237. );
  1238. this.afterdialysis.complications_other = [];
  1239. this.afterdialysis.complications_index = [];
  1240. var acllen = this.afterdialysis.complications.length;
  1241. for (let index = 0; index < acllen; index++) {
  1242. if (
  1243. this.complications.indexOf(
  1244. this.afterdialysis.complications[index]
  1245. ) >= 0
  1246. ) {
  1247. this.afterdialysis.complications_index.push(
  1248. this.afterdialysis.complications[index]
  1249. );
  1250. } else if (
  1251. this.complications.indexOf(
  1252. this.afterdialysis.complications[index]
  1253. ) < 0 &&
  1254. this.afterdialysis.complications_other.indexOf(
  1255. this.afterdialysis.complications[index]
  1256. ) < 0
  1257. ) {
  1258. this.afterdialysis.complications_other.push(
  1259. this.afterdialysis.complications[index]
  1260. );
  1261. }
  1262. }
  1263. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
  1264. ","
  1265. );
  1266. var doctorname = response.data.data.DoctorName;
  1267. console.log("医师签名", doctorname);
  1268. this.doctorForm.doctor = doctorname.user_name;
  1269. this.doctorForm.url = doctorname.url;
  1270. var prescription = response.data.data.dialysisPrescription;
  1271. console.log("透析处方", prescription);
  1272. if (prescription.blood_access === 1) {
  1273. prescription.blood_access = "正常";
  1274. }
  1275. if (prescription.blood_access === 2) {
  1276. prescription.blood_access = "震颤";
  1277. }
  1278. if (prescription.blood_access === 3) {
  1279. prescription.blood_access = "堵塞";
  1280. }
  1281. if (prescription.blood_access === 4) {
  1282. prescription.blood_access = "血肿";
  1283. }
  1284. if (prescription.blood_access === 5) {
  1285. prescription.blood_access = "淤血";
  1286. }
  1287. if (prescription.blood_access === 6) {
  1288. prescription.blood_access = "感染";
  1289. }
  1290. if (prescription.blood_access === 7) {
  1291. prescription.blood_access = "自体内瘘";
  1292. }
  1293. if (prescription.blood_access === 8) {
  1294. prescription.blood_access = "人工血管内瘘";
  1295. }
  1296. if (prescription.replacement_way === 1) {
  1297. prescription.replacement_way = "前置换";
  1298. }
  1299. if (prescription.replacement_way === 2) {
  1300. prescription.replacement_way = "后置换";
  1301. }
  1302. if (prescription.replacement_way === 3) {
  1303. prescription.replacement_way = "中置换";
  1304. }
  1305. if (prescription.replacement_way === 4) {
  1306. prescription.replacement_way = "混合置换";
  1307. }
  1308. if (prescription.anticoagulant === 1) {
  1309. prescription.anticoagulant = "无肝素";
  1310. }
  1311. if (prescription.anticoagulant === 2) {
  1312. prescription.anticoagulant = "普通肝素";
  1313. }
  1314. if (prescription.anticoagulant === 3) {
  1315. prescription.anticoagulant = "低分子肝素";
  1316. }
  1317. if (prescription.anticoagulant === 4) {
  1318. prescription.anticoagulant = "阿加曲班";
  1319. }
  1320. if (prescription.anticoagulant === 5) {
  1321. prescription.anticoagulant = "枸橼酸钠";
  1322. }
  1323. this.prescription = prescription;
  1324. var receiverTreatmentAccess =
  1325. response.data.data.receiverTreatmentAccess;
  1326. if (receiverTreatmentAccess.sick_condition === 1) {
  1327. receiverTreatmentAccess.sick_condition = "一般";
  1328. }
  1329. if (receiverTreatmentAccess.sick_condition === 2) {
  1330. receiverTreatmentAccess.sick_condition = "严重";
  1331. }
  1332. if (receiverTreatmentAccess.sick_condition === 3) {
  1333. receiverTreatmentAccess.sick_condition = "危";
  1334. }
  1335. if (receiverTreatmentAccess.way === 1) {
  1336. receiverTreatmentAccess.way = "步行";
  1337. }
  1338. if (receiverTreatmentAccess.way === 2) {
  1339. receiverTreatmentAccess.way = "扶行";
  1340. }
  1341. if (receiverTreatmentAccess.way === 3) {
  1342. receiverTreatmentAccess.way = "轮椅";
  1343. }
  1344. if (receiverTreatmentAccess.way === 4) {
  1345. receiverTreatmentAccess.way = "平车";
  1346. }
  1347. console.log("接诊评估:", receiverTreatmentAccess);
  1348. this.receiverTreatmentAccess = receiverTreatmentAccess;
  1349. this.prescription.mode = this.modeName(this.prescription.mode_id);
  1350. var rwLen = this.replacementWays.length;
  1351. this.prescription.replacement = "";
  1352. for (let index = 0; index < rwLen; index++) {
  1353. if (
  1354. this.replacementWays[index].id ==
  1355. this.prescription.replacement_way
  1356. ) {
  1357. this.prescription.replacement = this.replacementWays[index].name;
  1358. break;
  1359. }
  1360. }
  1361. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
  1362. this.prescription.dialysate_formulation
  1363. );
  1364. var paLen = this.perfusionApparatus.length;
  1365. this.prescription.perfusion_apparatus_name = "";
  1366. for (let index = 0; index < paLen; index++) {
  1367. if (
  1368. this.perfusionApparatus[index].id ==
  1369. this.prescription.perfusion_apparatus
  1370. ) {
  1371. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
  1372. index
  1373. ].name;
  1374. break;
  1375. }
  1376. }
  1377. var acLen = this.anticoagulantsConfit.length;
  1378. var thisALID = this.prescription.anticoagulant;
  1379. this.prescription.anticoagulant_name = "";
  1380. if (
  1381. typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
  1382. this.anticoagulantsConfit[thisALID] != null
  1383. ) {
  1384. this.prescription.anticoagulant_name = this.anticoagulantsConfit[
  1385. thisALID
  1386. ].name;
  1387. this.AlPanel = this.anticoagulantsConfit[thisALID];
  1388. }
  1389. this.advices = response.data.data.advices;
  1390. this.monitors = response.data.data.monitors;
  1391. console.log("透析监测", this.monitors);
  1392. this.summary = response.data.data.summary;
  1393. this.Order = response.data.data.order;
  1394. var start_nurse = response.data.data.startNuse;
  1395. // console.log('上机护士', start_nurse)
  1396. this.orderForm.start_nurse = start_nurse.user_name;
  1397. this.orderForm.url = start_nurse.url;
  1398. var finish_nurse = response.data.data.FinishNuse;
  1399. // console.log('下机护士', finish_nurse)
  1400. this.finshForm.url = finish_nurse.url;
  1401. this.finshForm.finish_nurse = finish_nurse.user_name;
  1402. var dialysisdoctor = response.data.data.dialysisdocotr;
  1403. console.log("处方医生", dialysisdoctor);
  1404. this.dialysisDoctor.doctor = dialysisdoctor.user_name;
  1405. this.dialysisDoctor.url = dialysisdoctor.url;
  1406. this.org_template_info = response.data.data.org_template_info;
  1407. // 配置超滤量和置换量是否要显示0还是空
  1408. if (this.org_template_info.org_id == 9535) {
  1409. this.isShowZero = true;
  1410. }
  1411. if (this.monitors.length < 7) {
  1412. var nl = 8 - this.monitors.length;
  1413. for (let index = 0; index < nl; index++) {
  1414. this.monitors.push([]);
  1415. }
  1416. }
  1417. this.jilurow = this.monitors.length + 1;
  1418. this.advice_jilurow = this.advices.length + 1;
  1419. var childMap = {};
  1420. for (const index in this.advices) {
  1421. if (this.advices[index].parent_id == 0) {
  1422. continue;
  1423. }
  1424. if (!(this.advices[index].parent_id in childMap)) {
  1425. childMap[this.advices[index].parent_id] = [];
  1426. }
  1427. childMap[this.advices[index].parent_id].push(this.advices[index]);
  1428. }
  1429. var advices = [];
  1430. for (const index in this.advices) {
  1431. if (this.advices[index].parent_id > 0) {
  1432. continue;
  1433. }
  1434. var item = this.advices[index];
  1435. if (item.id in childMap) {
  1436. item.children = childMap[item.id];
  1437. } else {
  1438. item.children = [];
  1439. }
  1440. advices.push(item);
  1441. }
  1442. var leftAdvice = [];
  1443. var rightAdvice = [];
  1444. var adlen = advices.length;
  1445. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
  1446. for (var i = 0; i < halfLen; i++) {
  1447. leftAdvice.push(advices[i]);
  1448. rightAdvice.push(advices[i + halfLen]);
  1449. }
  1450. if (halfLen < 5) {
  1451. var nl = 5 - leftAdvice.length;
  1452. for (let index = 0; index < nl; index++) {
  1453. leftAdvice.push([]);
  1454. }
  1455. var nl = 5 - rightAdvice.length;
  1456. for (let index = 0; index < nl; index++) {
  1457. rightAdvice.push([]);
  1458. }
  1459. }
  1460. this.advices = [];
  1461. for (var i = 0; i < halfLen; i++) {
  1462. var item = [];
  1463. item.push(leftAdvice[i]);
  1464. item.push(rightAdvice[i]);
  1465. this.advices.push(item);
  1466. }
  1467. this.loading = false;
  1468. this.doctor_advices =
  1469. response.data.data.advices == null
  1470. ? []
  1471. : response.data.data.advices;
  1472. for (let index = 0; index < this.doctor_advices.length; index++) {
  1473. this.doctor_advices[index]["isShow"] = 2;
  1474. }
  1475. if (this.doctor_advices.length > 0) {
  1476. var group = this.newAdviceGroupObject();
  1477. var initGroupBlock = function(group, advice) {
  1478. group.group_no = advice.groupno;
  1479. };
  1480. for (
  1481. let index = this.doctor_advices.length - 1;
  1482. index >= 0;
  1483. index--
  1484. ) {
  1485. var new_advice_index = 0;
  1486. if (
  1487. "children" in this.doctor_advices[index] &&
  1488. this.doctor_advices[index].children.length > 0
  1489. ) {
  1490. new_advice_index =
  1491. index + this.doctor_advices[index].children.length + 1;
  1492. var doctor_advice = {
  1493. delivery_way: this.doctor_advices[index].delivery_way,
  1494. execution_frequency: this.doctor_advices[index]
  1495. .execution_frequency,
  1496. groupno: this.doctor_advices[index].groupno,
  1497. id: this.doctor_advices[index].id,
  1498. parent_id: this.doctor_advices[index].parent_id,
  1499. children: this.doctor_advices[index].children,
  1500. remark: this.doctor_advices[index].remark
  1501. };
  1502. doctor_advice["isShow"] = 1;
  1503. this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
  1504. // this.doctor_advices.push(doctor_advice)
  1505. }
  1506. }
  1507. for (let index = 0; index < this.doctor_advices.length; index++) {
  1508. const advice = this.doctor_advices[index];
  1509. if (advice.groupno == 0) {
  1510. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1511. if (advice.parent_id > 0) {
  1512. if (this.advice_groups.length > 0) {
  1513. var parent_group = this.advice_groups[
  1514. this.advice_groups.length - 1
  1515. ];
  1516. if (parent_group.advices.length > 0) {
  1517. if (parent_group.advices[0].id == advice.parent_id) {
  1518. parent_group.advices.push(advice);
  1519. }
  1520. }
  1521. }
  1522. continue;
  1523. } else {
  1524. if (group.group_no > 0) {
  1525. this.advice_groups.push(group);
  1526. group = this.newAdviceGroupObject();
  1527. }
  1528. initGroupBlock(group, advice);
  1529. group.advices.push(advice);
  1530. this.advice_groups.push(group);
  1531. group = this.newAdviceGroupObject();
  1532. continue;
  1533. }
  1534. }
  1535. if (group.group_no > 0 && group.group_no != advice.groupno) {
  1536. this.advice_groups.push(group);
  1537. group = this.newAdviceGroupObject();
  1538. }
  1539. if (group.group_no == 0) {
  1540. initGroupBlock(group, advice);
  1541. }
  1542. if (group.group_no == advice.groupno) {
  1543. group.advices.push(advice);
  1544. }
  1545. }
  1546. if (group.group_no > 0) {
  1547. // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1548. this.advice_groups.push(group);
  1549. }
  1550. }
  1551. console.log(this.advice_groups);
  1552. } else {
  1553. this.loading = false;
  1554. this.$message.error("请求数据失败");
  1555. return false;
  1556. }
  1557. });
  1558. },
  1559. bloodAccessParOperaName(id) {
  1560. if (id in this.bloodAccessParOpera) {
  1561. return this.bloodAccessParOpera[id].name;
  1562. }
  1563. return "";
  1564. },
  1565. dialysateFormulationName(id) {
  1566. if (id in this.dialysateFormulationOptions) {
  1567. return this.dialysateFormulationOptions[id].name;
  1568. }
  1569. return "";
  1570. },
  1571. getAge: function(val) {
  1572. if (val.birthday != 0) {
  1573. return jsGetAge(val.birth, "-");
  1574. }
  1575. return "";
  1576. },
  1577. checkIdCardNo(val) {
  1578. var thisLen = val.length;
  1579. var birth = "";
  1580. if (thisLen == 15) {
  1581. birth = "19" + val.substr(6, 6);
  1582. } else {
  1583. birth = val.substr(6, 8);
  1584. }
  1585. var birthTwo =
  1586. birth.substr(0, 4) +
  1587. "-" +
  1588. birth.substr(4, 2) +
  1589. "-" +
  1590. birth.substr(6, 2);
  1591. var age = jsGetAge(birthTwo, "-");
  1592. return age;
  1593. },
  1594. newAdviceGroupObject: function() {
  1595. return Object.assign(
  1596. {},
  1597. {
  1598. group_no: 0,
  1599. // advice_doctor: 0,
  1600. // start_time: 0,
  1601. advices: []
  1602. // exec_staff: 0,
  1603. // exec_time: 0,
  1604. // checker: 0,
  1605. }
  1606. );
  1607. }
  1608. },
  1609. watch: {
  1610. "patientInfo.gender": function() {
  1611. if (this.patientInfo.gender == 1) {
  1612. this.patientInfo_gender_1 = true;
  1613. this.patientInfo_gender_2 = false;
  1614. } else if (this.patientInfo.gender == 2) {
  1615. this.patientInfo_gender_2 = true;
  1616. this.patientInfo_gender_1 = false;
  1617. } else {
  1618. this.patientInfo_gender_2 = false;
  1619. this.patientInfo_gender_1 = false;
  1620. }
  1621. },
  1622. "patientInfo.source": function() {
  1623. if (this.patientInfo.source == 1) {
  1624. this.patientInfo_source_1 = true;
  1625. this.patientInfo_source_2 = false;
  1626. } else if (this.patientInfo.source == 2) {
  1627. this.patientInfo_source_2 = true;
  1628. this.patientInfo_source_1 = false;
  1629. } else {
  1630. this.patientInfo_source_2 = false;
  1631. this.patientInfo_source_1 = false;
  1632. }
  1633. }
  1634. },
  1635. created() {
  1636. var xtuser = this.$store.getters.xt_user;
  1637. this.orgname = xtuser.org.org_name;
  1638. // this.orgname = "遂溪方济医院";
  1639. this.modeOptions = this.$store.getters.treatment_mode;
  1640. this.replacementWays = this.$store.getters.replacement_ways;
  1641. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  1642. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1643. this.way_arr = getDataConfig("hemodialysis", "way");
  1644. this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
  1645. this.appetite_arr = getDataConfig("hemodialysis", "appetite");
  1646. this.posture_arr = getDataConfig("hemodialysis", "posture");
  1647. this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
  1648. this.precaution_arr = getDataConfig("hemodialysis", "precaution");
  1649. this.intake_arr = getDataConfig("hemodialysis", "intake");
  1650. this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
  1651. this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
  1652. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1653. var bloodAccessParOpera = getDataConfig(
  1654. "hemodialysis",
  1655. "vascular_access_desc"
  1656. );
  1657. for (var key in bloodAccessParOpera) {
  1658. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1659. bloodAccessParOpera[key];
  1660. }
  1661. var dialysateFormulationOptions = getDataConfig(
  1662. "hemodialysis",
  1663. "dialysate_formulation"
  1664. );
  1665. for (var key in dialysateFormulationOptions) {
  1666. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1667. dialysateFormulationOptions[key];
  1668. }
  1669. const xtdate = this.$route.query && this.$route.query.xtdate;
  1670. const xtno = this.$route.query && this.$route.query.xtno;
  1671. if (
  1672. typeof xtdate === "string" &&
  1673. xtdate.length > 0 &&
  1674. typeof xtno === "string" &&
  1675. xtno.length > 0
  1676. ) {
  1677. this.queryParams.xtdate = xtdate;
  1678. this.queryParams.xtno = xtno;
  1679. this.getDialysisRecord();
  1680. } else {
  1681. this.$message.error("参数不齐");
  1682. return false;
  1683. }
  1684. }
  1685. };
  1686. </script>
  1687. <style>
  1688. .dialysis-print-order {
  1689. width: 960px;
  1690. margin: 0 auto;
  1691. }
  1692. .dialysis-print-order .order-yy-name {
  1693. margin: auto;
  1694. text-align: center;
  1695. font-size: 20px;
  1696. letter-spacing: 5px;
  1697. }
  1698. .dialysis-print-order .order-title {
  1699. margin: auto;
  1700. font-weight: 600;
  1701. text-align: center;
  1702. font-size: 22px;
  1703. padding: 10px 20px 20px 20px;
  1704. }
  1705. .dialysis-print-order .table-box {
  1706. width: 100%;
  1707. line-height: 23px;
  1708. font-size: 14px;
  1709. }
  1710. .dialysis-print-order .print-table {
  1711. width: 100%;
  1712. text-align: center;
  1713. border-collapse: collapse;
  1714. line-height: 40px;
  1715. font-size: 14px;
  1716. }
  1717. .dialysis-print-order .print-table-no {
  1718. width: 100%;
  1719. text-align: center;
  1720. border-collapse: collapse;
  1721. font-size: 14px;
  1722. }
  1723. .dialysis-print-order .under-line {
  1724. border-bottom: 1px solid #999;
  1725. width: 95%;
  1726. text-align: center;
  1727. margin-left: 2px;
  1728. }
  1729. .dialysis-print-order .title-box {
  1730. text-align: center;
  1731. font-size: 16px;
  1732. }
  1733. .dialysis-print-order .radio-lebel-box {
  1734. font-weight: 400;
  1735. cursor: pointer;
  1736. }
  1737. .dialysis-print-order .radio-no {
  1738. opacity: 0;
  1739. outline: none;
  1740. position: absolute;
  1741. margin: 0;
  1742. width: 0;
  1743. height: 0;
  1744. z-index: -1;
  1745. }
  1746. .dialysis-print-order .radio-inner {
  1747. white-space: nowrap;
  1748. cursor: pointer;
  1749. outline: none;
  1750. display: inline-block;
  1751. line-height: 1;
  1752. position: relative;
  1753. vertical-align: middle;
  1754. }
  1755. .dialysis-print-order .radio-fang {
  1756. display: inline-block;
  1757. position: relative;
  1758. border: 1px solid #000;
  1759. box-sizing: border-box;
  1760. width: 14px;
  1761. height: 14px;
  1762. background-color: #fff;
  1763. z-index: 1;
  1764. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  1765. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  1766. }
  1767. .dialysis-print-order .is-checked-radio::after {
  1768. content: "√";
  1769. font-size: 15px;
  1770. }
  1771. .dialysis-print-order .print-table-no tr td {
  1772. padding: 8px 5px;
  1773. line-height: 25px;
  1774. }
  1775. .dialysis-print-order .print-table tr td {
  1776. padding: 1px 1px;
  1777. /*line-height: 25px;*/
  1778. }
  1779. .es-img {
  1780. height: 25px;
  1781. }
  1782. .advice-name {
  1783. text-align: left;
  1784. }
  1785. .advice-children {
  1786. display: flex;
  1787. }
  1788. .title-box-pro {
  1789. border: 0 #fff;
  1790. line-height: 25px;
  1791. height: 25px;
  1792. text-align: left;
  1793. padding-left: 10px !important;
  1794. }
  1795. .title-box-pro-tr {
  1796. border: 0 #fff;
  1797. }
  1798. .text-align-left {
  1799. text-align: left !important;
  1800. padding-left: 10px !important;
  1801. font-size: 14px !important;
  1802. line-height: 25px;
  1803. }
  1804. .print-table-tr-new td {
  1805. line-height: 20px !important;
  1806. }
  1807. .border-top-solid {
  1808. border: solid 1px #000;
  1809. }
  1810. .print-template-two tr {
  1811. line-height: 30px;
  1812. }
  1813. </style>