DialysisPrintOrderseventyfive.vue 56KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683
  1. <template>
  2. <div id="dialysis-print-box-1" style="margin-left: 10px;">
  3. <div id="dialysis-print-box-1-1"
  4. class="dialysis-print-order print-template-two print_page_main_content"
  5. >
  6. <div style="display: inline-block; width: 100%; text-align: center">
  7. <div
  8. class="order-yy-name"
  9. style="
  10. letter-spacing: 0;
  11. font-weight: 600;
  12. font-size: 22px;
  13. display: inline-block;
  14. "
  15. >
  16. {{ orgname }}
  17. </div>
  18. <div class="order-title"
  19. style="letter-spacing: 0; font-weight: 600;
  20. font-size: 22px; display: inline-block;
  21. ">
  22. 血液透析记录单
  23. </div>
  24. </div>
  25. <div class="rows">
  26. <div class="inline_block">
  27. 姓名:
  28. <div class="under_line" style="width: 50px; text-align: center">
  29. {{ patientInfo.name }}
  30. </div>
  31. </div>
  32. <div class="inline_block" style="margin:0 10px">
  33. 性别:
  34. <div class="under_line" style="width: 30px; text-align: center">
  35. {{ patientInfo_gender_1 ? "男" : "女" }}
  36. </div>
  37. </div>
  38. <div class="inline_block" style="">
  39. 年龄:
  40. <div class="under_line" style="width: 30px; text-align: center">
  41. {{ getAge(patientInfo) }}
  42. </div>
  43. </div>
  44. <div class="inline_block" style="margin: 0 10px;">
  45. 病历号:
  46. <div class="under_line" style="width: 70px; text-align: center">
  47. {{ patientInfo.dialysis_no }}
  48. </div>
  49. </div>
  50. <div class="inline_block" style="">
  51. 日期:
  52. <div class="under_line"
  53. style="width: 100px; text-align: center"
  54. >
  55. {{ xtdate }}
  56. </div>
  57. </div>
  58. <div class="inline_block" style="margin-left: 10px">
  59. 次数:
  60. <div
  61. class="under_line"
  62. style="width: 70px; text-align: center"
  63. >
  64. {{
  65. patientInfo.total_dialysis +
  66. patientInfo.user_sys_before_count
  67. ? patientInfo.total_dialysis +
  68. patientInfo.user_sys_before_count
  69. : "/"
  70. }}
  71. </div>
  72. </div>
  73. </div>
  74. <div class="rows">
  75. <div class="inline_block" style="" >
  76. 诊断:
  77. <div class="under_line"
  78. style="
  79. width: 640px;
  80. text-align: left;
  81. word-wrap: break-word;
  82. white-space: inherit;
  83. "
  84. >
  85. {{ patientInfo.diagnose }}
  86. </div>
  87. </div>
  88. </div>
  89. <div style="border: 1px solid black;width: 100%;text-align: center;">
  90. <span style="font-size: 14px;">透前情况</span>
  91. </div>
  92. <div class="rows" style="border: 1px solid black;border-top: none;">
  93. <div class="rows" style="display: flex;width: 100%;">
  94. <div class="inline_block" style="flex: 2;" >
  95. 血管通路:
  96. <div class="under_line"
  97. style=" width: 80%;
  98. text-align: center; white-space: normal;
  99. ">
  100. {{ predialysis.blood_access_part_id }}
  101. {{ predialysis.blood_access_part_opera_name }}
  102. </div>
  103. </div>
  104. <div class="inline_block" style="flex: 1;" >
  105. 透析机:
  106. <div class="under_line"
  107. style="
  108. width: 50%;
  109. text-align: center;
  110. white-space: normal;
  111. "
  112. >
  113. {{
  114. dialysisOrder && dialysisOrder.DeviceNumber &&
  115. dialysisOrder.DeviceNumber.number.length > 0
  116. ? dialysisOrder.DeviceNumber.number
  117. : patientInfo.DialysisSchedule.device_number.number
  118. }}
  119. </div>
  120. </div>
  121. <div class="inline_block" style="flex: 1;" >
  122. 透析器:
  123. <div class="under_line"
  124. style=" width: 50%;
  125. text-align: center;
  126. white-space: normal;
  127. "
  128. >
  129. {{ dialysisOrder.dialysis_dialyszers ? dialysisOrder.dialysis_dialyszers : "/" }}
  130. </div>
  131. </div>
  132. <div class="inline_block" style="flex: 1;" >
  133. 穿刺针:
  134. <div class="under_line"
  135. style=" width: 50%;
  136. text-align: center;
  137. white-space: normal;
  138. "
  139. >
  140. {{ predialysis.puncture_needle ? predialysis.puncture_needle : "/" }}
  141. </div>
  142. </div>
  143. </div>
  144. <!-- 治疗方式 -->
  145. <div class="rows" style="display: flex;width: 100%;">
  146. <div class="inline_block" style="flex: 2;" >
  147. 治疗方式:
  148. <div class="under_line"
  149. style=" width: 60%;
  150. text-align: center; white-space: normal;
  151. ">
  152. {{ prescription.mode ? prescription.mode : '/'}} &nbsp;
  153. <span v-if="prescription.mode == 'HDF'&& prescription.displace_liqui_part == 1">前稀释</span>
  154. <span v-if="prescription.mode == 'HDF'&& prescription.displace_liqui_part == 2">后稀释</span>
  155. <!-- <span v-if="prescription.mode == 'HDF'">(置换量: {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}L)</span> -->
  156. </div>
  157. </div>
  158. <div class="inline_block" style="flex: 1;">
  159. 置换量:
  160. <div class="under_line"
  161. style=" width: 50%;
  162. text-align: center;
  163. white-space: normal;
  164. "
  165. >
  166. {{
  167. prescription.displace_liqui_value ? prescription.displace_liqui_value : "/"
  168. }}L
  169. </div>
  170. </div>
  171. <div class="inline_block" style="flex: 1;" >
  172. 灌流器:
  173. <div class="under_line"
  174. style=" width: 50%;
  175. text-align: center;
  176. white-space: normal;
  177. "
  178. >
  179. {{
  180. dialysisOrder.dialysis_irrigation ? dialysisOrder.dialysis_irrigation : "/"
  181. }}
  182. </div>
  183. </div>
  184. <div class="inline_block" style="flex: 1;" >
  185. 穿刺方式:
  186. <div class="under_line"
  187. style=" width: 50%;
  188. text-align: center;
  189. white-space: normal;
  190. "
  191. >
  192. {{predialysis.puncture_way ? predialysis.puncture_way : "/" }}
  193. </div>
  194. </div>
  195. </div>
  196. <!-- 抗凝方式 -->
  197. <div class="rows" style="display: flex;width: 100%;">
  198. <div class="inline_block" style="flex: 1;" >
  199. 抗凝方式:
  200. <div class="under_line"
  201. style=" width: 60%;
  202. text-align: center; white-space: normal;
  203. ">
  204. {{ prescription.anticoagulant_name ? prescription.anticoagulant_name : "/" }}
  205. <span v-if="prescription.anticoagulant_name == '那屈肝素钙'">
  206. {{ prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "/" }} IU
  207. </span>
  208. </div>
  209. </div>
  210. <div class="inline_block" style="flex: 1;">
  211. 肝素钠首剂:
  212. <div class="under_line"
  213. style=" width: 60%;
  214. text-align: center; white-space: normal;
  215. ">
  216. <span v-if="prescription.anticoagulant_name == '肝素钠'">
  217. {{prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "0" }} &nbsp;
  218. </span>
  219. <span v-else>/</span>
  220. </div>
  221. <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
  222. <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
  223. <span v-if="prescription.anticoagulant == '低分子肝素'">iu</span>
  224. <span v-if="prescription.anticoagulant == '普通肝素'">mg</span>
  225. <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
  226. <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
  227. <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>
  228. <!-- <span v-else>mg</span> -->
  229. </div>
  230. <div class="inline_block" style="flex: 1;">
  231. 追加:
  232. <div class="under_line"
  233. style=" width: 60%;
  234. text-align: center; white-space: normal;
  235. ">
  236. <span v-if="prescription.anticoagulant_name == '肝素钠'">
  237. {{prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "0" }} &nbsp;
  238. </span>
  239. <span>/</span>
  240. </div>
  241. <span v-if="prescription.anticoagulant == '枸橼酸钠'">ml/h</span>
  242. <span v-if="prescription.anticoagulant == '阿加曲班'">mg/h</span>
  243. <span v-if="prescription.anticoagulant == '低分子肝素'">iu/h</span>
  244. <span v-if="prescription.anticoagulant == '普通肝素'">mg/h</span>
  245. <span v-if="prescription.anticoagulant == '无肝素'">mg/h</span>
  246. <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu/h</span>
  247. <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>
  248. <!-- <span v-else>mg/h</span> -->
  249. </div>
  250. </div>
  251. <!-- -->
  252. <div class="rows" style="display: flex;width: 100%;">
  253. <div class="inline_block" style="flex: 1;" >
  254. T:
  255. <div class="under_line"
  256. style=" width: 100px;
  257. text-align: center; white-space: normal;
  258. ">
  259. {{predialysis.temperature ? predialysis.temperature : "/"}}
  260. </div>°C
  261. </div>
  262. <div class="inline_block" style="flex: 1;" >
  263. BP:
  264. <div
  265. class="under_line"
  266. style="width: 100px; text-align: center"
  267. >
  268. {{
  269. predialysis.systolic_blood_pressure
  270. ? predialysis.systolic_blood_pressure
  271. : "/"
  272. }}
  273. /
  274. {{
  275. predialysis.diastolic_blood_pressure
  276. ? predialysis.diastolic_blood_pressure
  277. : "/"
  278. }}
  279. </div>
  280. mmHg
  281. </div>
  282. <div class="inline_block" style="flex: 1;" >
  283. P:
  284. <div
  285. class="under_line"
  286. style="width: 100px; text-align: center"
  287. >
  288. {{
  289. predialysis.pulse_frequency
  290. ? predialysis.pulse_frequency
  291. : "/"
  292. }}
  293. </div>
  294. 次/min
  295. </div>
  296. <div class="inline_block" style="flex: 1">
  297. 干体重:
  298. <div
  299. class="under_line"
  300. style="width: 100px; text-align: center"
  301. >
  302. {{
  303. predialysis.dry_weight ? predialysis.dry_weight : "/"
  304. }}
  305. </div>
  306. kg
  307. </div>
  308. <div class="inline_block" style="flex: 1">
  309. 透前体重:
  310. <div
  311. class="under_line"
  312. style="width: 70px; text-align: center"
  313. >
  314. {{predialysis.weight_before ? predialysis.weight_before : ""}}
  315. </div>
  316. kg
  317. </div>
  318. </div>
  319. <!-- 医嘱脱水量 -->
  320. <div class="rows" style="display: flex;">
  321. <div class="inline_block" style="flex: 1;" >
  322. 医嘱脱水量:
  323. <div class="under_line"
  324. style=" width: 100px;
  325. text-align: center; white-space: normal;
  326. ">
  327. {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "/"}}
  328. </div>L
  329. </div>
  330. <div class="inline_block" style="flex: 1;" >
  331. 治疗时间:
  332. <div
  333. class="under_line"
  334. style="width: 80px; text-align: center"
  335. >
  336. {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0"}} h
  337. {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0" }}min
  338. </div>
  339. </div>
  340. <div class="inline_block" style="flex: 1">
  341. 医生签名:
  342. <div
  343. class="under_line"
  344. style="width: 100px; text-align: center"
  345. >
  346. <span style="display: inline-block;" v-if="setAdminUserES(prescription.creater) == ''">
  347. {{ getAdminUser(prescription.creater)}}
  348. </span>
  349. <span style="display: inline-block;" v-else>
  350. <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt srcset />
  351. </span>
  352. </div>
  353. </div>
  354. </div>
  355. <!-- 特殊医嘱 -->
  356. <div class="rows" >
  357. <div class="inline_block" style="width: 100%;">
  358. 特殊医嘱:
  359. <div class="under_line"
  360. style="width: 60%; text-align: center"
  361. >
  362. {{ prescription.remark ? prescription.remark : "/" }}
  363. </div>
  364. </div>
  365. </div>
  366. </div>
  367. <!-- 医嘱 -->
  368. <div style="width: 100%;">
  369. <table class="inside_table" border="1" style="border-collapse: collapse;width: 100%;text-align: center;font-size: 14px;">
  370. <tbody>
  371. <tr style="line-height: 35px; padding: 8px 5px">
  372. <td
  373. colspan="7"
  374. style="
  375. letter-spacing: 5px;
  376. text-align: center;
  377. font-weight: 520;
  378. font-size: 16px;
  379. padding: 6px 8px;
  380. line-height: 30px;
  381. "
  382. >
  383. 医嘱内容
  384. </td>
  385. </tr>
  386. <tr style="line-height: 35px; padding: 8px 5px">
  387. <td style="font-size: 16px" width="10%">时间</td>
  388. <td style="font-size: 16px" colspan="2" width="45%">
  389. 医嘱内容
  390. </td>
  391. <td style="font-size: 16px" width="10%">医生签名</td>
  392. <td style="font-size: 16px" width="10%">时间</td>
  393. <td style="font-size: 16px" width="10%">执行人签名</td>
  394. <td style="font-size: 16px" width="10%">核对人签名</td>
  395. </tr>
  396. <tr
  397. v-for="(advice, advice_index) in doctor_advices"
  398. :key="advice_index"
  399. >
  400. <td height="32px">
  401. <span v-if="advice.start_time">
  402. {{ getTime(advice.start_time, "{h}:{i}") }}
  403. </span>
  404. </td>
  405. <td
  406. height="32px"
  407. colspan="2"
  408. class="advice-name"
  409. style="padding-left: 7px"
  410. >
  411. <span v-if="advice.parent_id > 0"></span>
  412. <span>{{ advice.advice_name }}</span>
  413. <span v-if="advice && advice.advice_desc"
  414. >({{ advice.advice_desc
  415. }}{{ advice.drug_spec_unit }})</span
  416. >
  417. <span v-if="advice.prescribing_number"
  418. >&nbsp;&nbsp; {{ advice.prescribing_number
  419. }}{{ advice.prescribing_number_unit }}</span
  420. >
  421. <span v-if="advice.single_dose != 0">
  422. <span v-if="advice.advice_name!='血液透析滤过'">
  423. {{ advice.single_dose}}{{ advice.single_dose_unit }}
  424. </span>
  425. </span>
  426. <span v-if="advice.parent_id == 0">{{
  427. advice.delivery_way
  428. }}</span>
  429. <span v-if="advice.parent_id == 0">{{
  430. advice.execution_frequency
  431. }}</span>
  432. <span
  433. v-if="
  434. advice.parent_id == 0 && advice.remark.length > 0
  435. "
  436. >({{ advice.remark }})</span
  437. >
  438. </td>
  439. <td height="32px">
  440. <span
  441. v-if="setAdminUserES(advice.advice_doctor) == ''"
  442. >{{ getAdminUser(advice.advice_doctor) }}</span
  443. >
  444. <img
  445. style="height: 30px"
  446. :src="setAdminUserES(advice.advice_doctor)"
  447. alt=""
  448. srcset=""
  449. v-else
  450. />
  451. </td>
  452. <td height="32px">
  453. <span v-if="advice.execution_time">{{
  454. getTime(advice.execution_time, "{h}:{i}")
  455. }}</span>
  456. </td>
  457. <td height="32px">
  458. <span
  459. v-if="setAdminUserES(advice.execution_staff) == ''"
  460. >{{ getAdminUser(advice.execution_staff) }}</span
  461. >
  462. <img
  463. style="height: 30px"
  464. :src="setAdminUserES(advice.execution_staff)"
  465. alt=""
  466. srcset=""
  467. v-else
  468. />
  469. </td>
  470. <td height="32px">
  471. <span
  472. v-if="setAdminUserES(advice.checker) == ''"
  473. >{{ getAdminUser(advice.checker) }}</span
  474. >
  475. <img
  476. style="height: 30px"
  477. :src="setAdminUserES(advice.checker)"
  478. alt=""
  479. srcset=""
  480. v-else
  481. />
  482. </td>
  483. </tr>
  484. </tbody>
  485. </table>
  486. </div>
  487. <!-- 透析监测 -->
  488. <div class="rows" style="width: 100%;">
  489. <table class="inside_table" border="1" style="border-collapse: collapse;width: 100%;text-align: center;">
  490. <tbody>
  491. <tr style="line-height: 35px; padding: 8px 5px">
  492. <td
  493. colspan="13"
  494. style="
  495. letter-spacing: 5px;
  496. text-align: center;
  497. font-weight: 520;
  498. font-size: 16px;
  499. padding: 6px 8px;
  500. line-height: 30px;
  501. "
  502. >
  503. 透析记录
  504. </td>
  505. </tr>
  506. <tr style="line-height: 35px; padding: 8px 5px">
  507. <td width="50">时间</td>
  508. <td width="50">BP<br/>mmHg</td>
  509. <td width="50">HR<br/>bpm</td>
  510. <td width="50">AP<br/>mmHg</td>
  511. <td width="50">VP<br/>mmHg</td>
  512. <td width="50">TMP<br/>mmHg</td>
  513. <td width="50">QB<br/>ml/min</td>
  514. <td width="50">Con<br/>ms/cm</td>
  515. <td width="50">UFR<br/>ml/h</td>
  516. <td width="50">UF<br/>ml</td>
  517. <td width="65">剩余肝素ml</td>
  518. <td width="200">病情变化</td>
  519. </tr>
  520. <tr v-for="(monitor, monindex) in monitors" :key="monindex" style="padding: 5px 0;">
  521. <td width="50">{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
  522. <td width="65">
  523. {{monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "/"}} /
  524. {{monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "/"}}
  525. </td>
  526. <td width="50">{{ monitor.pulse_frequency ? monitor.pulse_frequency : "/" }}</td>
  527. <td width="50">{{monitor.arterial_pressure ? monitor.arterial_pressure: "/"}}</td>
  528. <td width="50">{{monitor.venous_pressure ? monitor.venous_pressure : "/"}}</td>
  529. <td width="50">{{monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "/"}}</td>
  530. <td width="50">{{monitor.blood_flow_volume? monitor.blood_flow_volume: "/"}}</td>
  531. <td width="50">{{ monitor.conductivity ? monitor.conductivity : "/" }}</td>
  532. <td width="50">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/' }}</td>
  533. <td width="50">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "0" }}</td>
  534. <!-- 剩余肝素 -->
  535. <td width="65">{{ monitor.heparin ? monitor.heparin :'/' }}</td>
  536. <td width="200">
  537. <template v-if=" (dialysisOrder && monitor.operate_time == dialysisOrder.start_time)">
  538. 【开始透析】 <span v-if="org_id ==10598">引血100ml/min</span>
  539. </template>
  540. {{ monitor.end }} {{ monitor.symptom }} &nbsp;
  541. {{monitor.dispose}} &nbsp;{{ monitor.result }}
  542. </td>
  543. </tr>
  544. </tbody>
  545. </table>
  546. </div>
  547. <div class="rows" style="border: 1px solid black;border-bottom:none;width: 100%;">
  548. <div class="rows" style="display: flex;width: 100%;">
  549. <div class="inline_block" style="flex: 1">
  550. 穿刺护士:
  551. <div class="under_line"
  552. style="width: 90px; text-align: center"
  553. >
  554. <span style="height: 30px; display: inline-block"
  555. v-if="
  556. setAdminUserES(
  557. dialysisOrder == null
  558. ? 0
  559. : dialysisOrder.puncture_nurse
  560. ) == ''
  561. "
  562. >
  563. {{
  564. getAdminUser(
  565. dialysisOrder == null
  566. ? 0
  567. : dialysisOrder.puncture_nurse
  568. )
  569. }}</span
  570. >
  571. <img
  572. style="height: 35px"
  573. :src="
  574. setAdminUserES(
  575. dialysisOrder == null
  576. ? 0
  577. : dialysisOrder.puncture_nurse
  578. )
  579. "
  580. alt=""
  581. srcset=""
  582. v-else
  583. />
  584. </div>
  585. </div>
  586. <div class="inline_block" style="flex: 1">
  587. 责任护士:
  588. <div class="under_line"
  589. style="width: 90px; text-align: center"
  590. >
  591. <span style="height: 30px; display: inline-block"
  592. v-if="
  593. setAdminUserES(
  594. dialysisOrder == null
  595. ? 0
  596. : dialysisOrder.start_nurse
  597. ) == ''
  598. "
  599. >
  600. {{
  601. getAdminUser(
  602. dialysisOrder == null
  603. ? 0
  604. : dialysisOrder.start_nurse
  605. )
  606. }}</span
  607. >
  608. <img
  609. style="height: 35px"
  610. :src="
  611. setAdminUserES(
  612. dialysisOrder == null
  613. ? 0
  614. : dialysisOrder.start_nurse
  615. )
  616. "
  617. alt=""
  618. srcset=""
  619. v-else
  620. />
  621. </div>
  622. </div>
  623. <div class="inline_block" style="flex: 1">
  624. 核对护士:
  625. <div class="under_line"
  626. style="width: 90px; text-align: center"
  627. >
  628. <span style="height: 30px; display: inline-block" v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
  629. {{ getAdminUser(check == null ? 0 : check.modifier) ? getAdminUser(check == null ? 0 : check.modifier) : "" }}
  630. </span>
  631. <img :src="setAdminUserES(check == null ? 0 : check.modifier)" alt="" srcset="" style="height:35px" v-else />
  632. </div>
  633. </div>
  634. </div>
  635. <!-- 穿刺 -->
  636. <div class="rows" style="display: flex;width: 100%;">
  637. <div class="inline_block" style="flex: 1">
  638. 穿刺:
  639. <div class="under_line"
  640. style="width: 90px; text-align: center"
  641. >
  642. {{ afterdialysis.internal_fistula ? afterdialysis.internal_fistula : "/" }}
  643. </div>
  644. </div>
  645. <div class="inline_block" style="flex: 1">
  646. 透析器:
  647. <div class="under_line"
  648. style="width: 90px; text-align: center"
  649. >
  650. {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
  651. </div>
  652. </div>
  653. <div class="inline_block" style="flex: 1">
  654. 透析中进食:
  655. <div class="under_line"
  656. style="width: 50%; text-align: center"
  657. >
  658. {{ afterdialysis.dialysis_during ? afterdialysis.dialysis_during : "/" }}
  659. </div>
  660. </div>
  661. <div class="inline_block" style="flex: 1">
  662. 实际治疗时间:
  663. <div class="under_line"
  664. style="width: 50%; text-align: center"
  665. >
  666. {{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : "0" }}h
  667. {{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute :'0' }}min
  668. </div>
  669. </div>
  670. </div>
  671. <!-- <div class="row" style="display: flex;">
  672. <div class="inline_block" style="flex: 1">
  673. 动静脉壶:
  674. <div class="under_line"
  675. style="width: 90px; text-align: center"
  676. >
  677. </div>
  678. </div>
  679. <div class="inline_block" style="flex: 1">
  680. 透析器:
  681. <div class="under_line"
  682. style="width: 90px; text-align: center"
  683. >
  684. {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
  685. </div>
  686. </div>
  687. </div> -->
  688. <div class="rows" style="display: flex;width: 100%;">
  689. <div class="inline_block" style="flex: 1">
  690. 透后体重:
  691. <div class="under_line"
  692. style="width: 90px; text-align: center"
  693. >
  694. {{ afterdialysis.weight_after ?
  695. parseFloat( afterdialysis.weight_after - afterdialysis.additional_weight ).toFixed(1) : "/"
  696. }}
  697. </div>kg
  698. </div>
  699. <div class="inline_block" style="flex: 1">
  700. BP:
  701. <div class="under_line"
  702. style="width: 90px; text-align: center"
  703. >
  704. {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "/"}} /
  705. {{ afterdialysis.diastolic_blood_pressure ? afterdialysis.diastolic_blood_pressure : "/"}}
  706. </div>mmHg
  707. </div>
  708. <div class="inline_block" style="flex: 1">
  709. P:
  710. <div class="under_line"
  711. style="width: 90px; text-align: center"
  712. >
  713. {{ afterdialysis.pulse_frequency ? afterdialysis.pulse_frequency : "/" }}
  714. </div>次/min
  715. </div>
  716. <div class="inline_block" style="flex: 1">
  717. 实际脱水量:
  718. <div class="under_line"
  719. style="width: 40%; text-align: center"
  720. >
  721. {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration :'/' }}
  722. </div>ml
  723. </div>
  724. <div class="inline_block" style="flex: 1">
  725. 实际置换量:
  726. <div class="under_line"
  727. style="width: 90px; text-align: center"
  728. >
  729. {{ afterdialysis.actual_displacement ? afterdialysis.actual_displacement : "/" }}
  730. </div>L
  731. </div>
  732. </div>
  733. </div>
  734. <!-- 透析小结 -->
  735. <div class="rows" style="width: 100%;border: 1px solid black;height: 120px;white-space: normal;">
  736. <div style="height: 80px;width: 100%;">
  737. 治疗小结:
  738. <span style="white-space: normal;">
  739. {{ summary.dialysis_summary ? summary.dialysis_summary : "/"}}
  740. </span>
  741. </div>
  742. <div style="width: 100%;height: 20px;text-align: right;padding-right:30%;">
  743. 医生签名:
  744. <span style="display: inline-block;" v-if="setAdminUserES(prescription.creater) == ''">
  745. {{ getAdminUser(prescription.creater)}}
  746. </span>
  747. <span style="display: inline-block;" v-else>
  748. <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt srcset />
  749. </span>
  750. </div>
  751. </div>
  752. <!-- 常规透析液 -->
  753. <div class="rows">
  754. <div class="inline_block">
  755. 常规透析液:Na+
  756. <div
  757. class="under_line"
  758. style="width: 50px; text-align: center"
  759. >
  760. {{ prescription.sodium ? prescription.sodium : "/" }}
  761. </div>
  762. mmol/L
  763. </div>
  764. <div class="inline_block" style="margin-left: 10px">
  765. K+:
  766. <div
  767. class="under_line"
  768. style="width: 50px; text-align: center"
  769. >
  770. {{ prescription.kalium ? prescription.kalium : "/" }}
  771. </div>
  772. mmol/L
  773. </div>
  774. <div class="inline_block" style="margin-left: 10px">
  775. Ca2+:
  776. <div
  777. class="under_line"
  778. style="width: 50px; text-align: center"
  779. >
  780. {{ prescription.calcium ? prescription.calcium : "/" }}
  781. </div>
  782. mmol/L
  783. </div>
  784. </div>
  785. </div>
  786. </div>
  787. </template>
  788. <script>
  789. import CheckBox from './option_check_box'
  790. import { getDialysisRecord } from '@/api/dialysis'
  791. import { getDataConfig } from '@/utils/data'
  792. import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
  793. import LabelBox from '../printItem/LabelBox'
  794. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  795. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  796. import print from 'print-js'
  797. export default {
  798. name: 'DialysisPrintOrderSix',
  799. props: ['childResponse'],
  800. components: {
  801. // DialysisPrintOrderOne,
  802. // DialysisPrintOrderTwo,
  803. CheckBox,
  804. LabelBox
  805. },
  806. data () {
  807. return {
  808. org_id: 0,
  809. way_arr: [],
  810. consciousness_arr: [],
  811. appetite_arr: [],
  812. posture_arr: [],
  813. sick_condition_arr: [],
  814. precaution_arr: [],
  815. intake_arr: [],
  816. nutrition_arr: [],
  817. crumbs: [
  818. { path: false, name: '透析管理' },
  819. { path: false, name: '打印单' }
  820. ],
  821. operators: [],
  822. adminUser: [],
  823. check: {},
  824. xtdate: '',
  825. dialysisOrder: {
  826. DeviceNumber: []
  827. },
  828. displaceLiquiPartOptions: [],
  829. operatorMaps: {},
  830. complications: [
  831. '低血压',
  832. '高血压',
  833. '心律失常',
  834. '头晕',
  835. '头痛',
  836. '呕吐',
  837. '抽搐',
  838. '出血',
  839. '心衰',
  840. '腹痛'
  841. ],
  842. jilurow: 0,
  843. advice_jilurow: 0,
  844. loading: false,
  845. orgname: '',
  846. patientInfo_gender_1: false,
  847. patientInfo_gender_2: false,
  848. patientInfo_source_2: false,
  849. patientInfo_source_1: false,
  850. modeOptions: {},
  851. replacementWays: [],
  852. perfusionApparatus: [],
  853. anticoagulantsConfit: {},
  854. bloodAccessParOpera: {},
  855. dialysateFormulationOptions: {},
  856. totollength: 0,
  857. queryParams: {
  858. xtdate: '',
  859. xtno: ''
  860. },
  861. patientInfo: {
  862. birth: '',
  863. age: '',
  864. DialysisSchedule: {
  865. device_number: { number: '' },
  866. device_zone: { name: '' }
  867. },
  868. gender: 0
  869. },
  870. predialysis: {
  871. score: '',
  872. internal_fistula: '',
  873. internal_fistula_skin: '',
  874. catheter: '',
  875. blood_access_part_opera_name: ''
  876. },
  877. afterdialysis: {
  878. complications_index: ''
  879. },
  880. prescription: {
  881. dialysate_formulation_name: '',
  882. device: {}
  883. },
  884. advices: [],
  885. users: [],
  886. monitors: [],
  887. monitors2: [],
  888. summary: {},
  889. receiverTreatmentAccess: {},
  890. org_template_info: {},
  891. doctor_advices: [],
  892. advice_groups: [],
  893. advice_groups_2: [],
  894. print_length: 0,
  895. blood_access_part: [],
  896. blood_access_part_opera: [],
  897. AlPanel: {
  898. id: 0,
  899. name: '',
  900. type: 1,
  901. shouji: 2,
  902. weichi: 2,
  903. zongliang: 2,
  904. gaimingcheng: -1,
  905. gaijiliang: -1,
  906. shouji_unit: 'mg',
  907. weichi_unit: 'mg/h',
  908. zongliang_unit: 'mg',
  909. gaimingcheng_unit: '',
  910. gaijiliang_unit: ''
  911. },
  912. lastWeight:{}
  913. }
  914. },
  915. methods: {
  916. getDisplaceLiquiPart: function (val) {
  917. let displace_liqui_part_name = '/'
  918. let displace_liqui_part = this.displaceLiquiPartOptions
  919. for (let i = 0; i < displace_liqui_part.length; i++) {
  920. if (displace_liqui_part[i].id == val) {
  921. displace_liqui_part_name = displace_liqui_part[i].name
  922. }
  923. }
  924. return displace_liqui_part_name
  925. },
  926. replacementWaysById: function (val) {
  927. let replacementWaysname = '/'
  928. // let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
  929. for (let i = 0; i < this.replacementWays.length; i++) {
  930. if (this.replacementWays[i].id == val) {
  931. replacementWaysname = this.replacementWays[i].name
  932. }
  933. }
  934. return replacementWaysname
  935. },
  936. QueryPartById: function (val) {
  937. let vascular_access_part_name = '/'
  938. let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
  939. for (let i = 0; i < vascular_access.length; i++) {
  940. if (vascular_access[i].id == val) {
  941. vascular_access_part_name = vascular_access[i].name
  942. }
  943. }
  944. return vascular_access_part_name
  945. },
  946. getAdminUser (id) {
  947. if (id == 0) {
  948. return ''
  949. }
  950. if (id == undefined) {
  951. return ''
  952. }
  953. for (let i = 0; i < this.adminUser.length; i++) {
  954. if (this.adminUser[i].id == id) {
  955. return this.adminUser[i].name
  956. }
  957. }
  958. },
  959. getTime (value, temp) {
  960. if (value == 0) {
  961. return ''
  962. }
  963. if (value != undefined) {
  964. return uParseTime(value, temp)
  965. }
  966. return ''
  967. },
  968. printThisPage () {
  969. var ptime = Math.round(new Date().getTime() / 1000)
  970. this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
  971. const style =
  972. '@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}.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:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .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;}'
  973. if (this.org_template_info.template_id == 1) {
  974. printJS({
  975. printable: 'dialysis-print-box',
  976. type: 'html',
  977. style: style,
  978. scanStyles: false
  979. })
  980. } else if (
  981. this.org_template_info.template_id == 2 ||
  982. this.org_template_info.template_id == 0
  983. ) {
  984. printJS({
  985. printable: 'dialysis-print-box-1',
  986. type: 'html',
  987. style: style,
  988. scanStyles: false
  989. })
  990. }
  991. },
  992. getNumber () {
  993. if (this.dialysisOrder != null) {
  994. return (
  995. this.patientInfo.DialysisSchedule.device_zone.name +
  996. this.dialysisOrder.DeviceNumber.number
  997. )
  998. } else {
  999. return (
  1000. this.patientInfo.DialysisSchedule.device_zone.name +
  1001. this.patientInfo.DialysisSchedule.device_number.number
  1002. )
  1003. }
  1004. },
  1005. getXuserName (id) {
  1006. if (id <= 0) {
  1007. return ''
  1008. }
  1009. var name = ''
  1010. if (this.users == null || typeof this.users.length === 'undefined') {
  1011. return name
  1012. }
  1013. var leng = this.users.length
  1014. if (leng == 0) {
  1015. return name
  1016. }
  1017. for (let index = 0; index < leng; index++) {
  1018. if (this.users[index].id == id) {
  1019. name = this.users[index].name
  1020. break
  1021. }
  1022. }
  1023. return name
  1024. },
  1025. setAdminUserES (id) {
  1026. if (id == 0) {
  1027. return ''
  1028. }
  1029. if (id in this.operatorMaps) {
  1030. return this.operatorMaps[id].url
  1031. } else {
  1032. return ''
  1033. }
  1034. },
  1035. modeName (mode_id) {
  1036. return typeof this.modeOptions[mode_id] !== 'undefined' &&
  1037. typeof this.modeOptions[mode_id].name !== 'undefined'
  1038. ? this.modeOptions[mode_id].name
  1039. : ''
  1040. },
  1041. getDialysisRecord () {
  1042. this.loading = true
  1043. // getDialysisRecord(this.queryParams).then(response => {
  1044. var response = this.childResponse
  1045. if (response.data.state == 1) {
  1046. this.adminUser = response.data.data.users
  1047. this.users = response.data.data.users
  1048. this.patientInfo = response.data.data.patientInfo
  1049. this.lastWeight= response.data.data.lastWeight
  1050. this.patientInfo.birth = uParseTimeOne(
  1051. this.patientInfo.birthday,
  1052. '{y}-{m}-{d}'
  1053. )
  1054. console.log('1111111111',response.data.data);
  1055. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1056. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1057. this.patientInfo.first_dialysis_date = uParseTime(
  1058. response.data.data.patientInfo.first_dialysis_date,
  1059. '{y}-{m}-{d}'
  1060. )
  1061. } else {
  1062. this.patientInfo.first_dialysis_date = ''
  1063. }
  1064. this.check = response.data.data.check
  1065. this.xtdate = this.$route.query.xtdate
  1066. this.predialysis = response.data.data.PredialysisEvaluation
  1067. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
  1068. this.predialysis.blood_access_part_opera_id
  1069. )
  1070. this.afterdialysis = response.data.data.AssessmentAfterDislysis
  1071. this.operators = response.data.data.operators
  1072. this.dialysisOrder =
  1073. response.data.data.dialysisOrder === null
  1074. ? null
  1075. : response.data.data.dialysisOrder
  1076. if (this.operators.length > 0) {
  1077. var operatorsLen = this.operators.length
  1078. for (var index = 0; index < operatorsLen; index++) {
  1079. this.$set(
  1080. this.operatorMaps,
  1081. this.operators[index].creator,
  1082. this.operators[index]
  1083. )
  1084. }
  1085. }
  1086. this.afterdialysis.txqnx = -1
  1087. if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  1088. this.afterdialysis.txqnx = 0
  1089. }
  1090. if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  1091. this.afterdialysis.txqnx = 1
  1092. }
  1093. if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  1094. this.afterdialysis.txqnx = 2
  1095. }
  1096. if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  1097. this.afterdialysis.txqnx = 3
  1098. }
  1099. this.afterdialysis.complications = this.afterdialysis.complication.split(
  1100. ','
  1101. )
  1102. this.afterdialysis.complications_other = []
  1103. this.afterdialysis.complications_index = []
  1104. var acllen = this.afterdialysis.complications.length
  1105. for (let index = 0; index < acllen; index++) {
  1106. if (
  1107. this.complications.indexOf(
  1108. this.afterdialysis.complications[index]
  1109. ) >= 0
  1110. ) {
  1111. this.afterdialysis.complications_index.push(
  1112. this.afterdialysis.complications[index]
  1113. )
  1114. } else if (
  1115. this.complications.indexOf(
  1116. this.afterdialysis.complications[index]
  1117. ) < 0 &&
  1118. this.afterdialysis.complications_other.indexOf(
  1119. this.afterdialysis.complications[index]
  1120. ) < 0
  1121. ) {
  1122. this.afterdialysis.complications_other.push(
  1123. this.afterdialysis.complications[index]
  1124. )
  1125. }
  1126. }
  1127. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
  1128. ','
  1129. )
  1130. this.prescription = response.data.data.dialysisPrescription
  1131. // console.log("prescription", this.prescription);
  1132. this.receiverTreatmentAccess =
  1133. response.data.data.receiverTreatmentAccess
  1134. this.prescription.mode = this.modeName(this.prescription.mode_id)
  1135. var rwLen = this.replacementWays.length
  1136. this.prescription.replacement = ''
  1137. for (let index = 0; index < rwLen; index++) {
  1138. if (
  1139. this.replacementWays[index].id == this.prescription.replacement_way
  1140. ) {
  1141. this.prescription.replacement = this.replacementWays[index].name
  1142. break
  1143. }
  1144. }
  1145. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
  1146. this.prescription.dialysate_formulation
  1147. )
  1148. var paLen = this.perfusionApparatus.length
  1149. this.prescription.perfusion_apparatus_name = ''
  1150. for (let index = 0; index < paLen; index++) {
  1151. if (
  1152. this.perfusionApparatus[index].id ==
  1153. this.prescription.perfusion_apparatus
  1154. ) {
  1155. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
  1156. index
  1157. ].name
  1158. break
  1159. }
  1160. }
  1161. var acLen = this.anticoagulantsConfit.length
  1162. var thisALID = this.prescription.anticoagulant
  1163. this.prescription.anticoagulant_name = ''
  1164. if (
  1165. typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
  1166. this.anticoagulantsConfit[thisALID] != null
  1167. ) {
  1168. this.prescription.anticoagulant_name = this.anticoagulantsConfit[
  1169. thisALID
  1170. ].name
  1171. this.AlPanel = this.anticoagulantsConfit[thisALID]
  1172. }
  1173. this.advices = response.data.data.advices
  1174. this.monitors = response.data.data.monitors
  1175. this.summary = response.data.data.summary
  1176. this.org_template_info = response.data.data.org_template_info
  1177. if (this.monitors.length <= 6) {
  1178. var nl = 6
  1179. this.print_length = 6
  1180. for (let index = 0; index < nl; index++) {
  1181. if (
  1182. this.monitors[index] == undefined ||
  1183. this.monitors[index].length <= 0
  1184. ) {
  1185. this.monitors2.push([])
  1186. } else {
  1187. continue
  1188. }
  1189. }
  1190. }
  1191. var tempmonitorflag = true
  1192. for (let index = 0; index < this.monitors.length; index++) {
  1193. const monitor = this.monitors[index]
  1194. this.monitors[index].end = ''
  1195. if (Object.keys(monitor).length > 0 && index > 1) {
  1196. if (monitor.operate_time == this.dialysisOrder.end_time) {
  1197. this.monitors[index].end = '【结束透析】'
  1198. tempmonitorflag = false
  1199. }
  1200. if (tempmonitorflag && index == this.monitors.length - 1) {
  1201. this.monitors[index].end = '【结束透析】'
  1202. }
  1203. }
  1204. }
  1205. this.jilurow = this.monitors.length + 1
  1206. this.advice_jilurow = this.advices.length + 1
  1207. var childMap = {}
  1208. for (const index in this.advices) {
  1209. if (this.advices[index].parent_id == 0) {
  1210. continue
  1211. }
  1212. if (!(this.advices[index].parent_id in childMap)) {
  1213. childMap[this.advices[index].parent_id] = []
  1214. }
  1215. childMap[this.advices[index].parent_id].push(this.advices[index])
  1216. }
  1217. var advices = []
  1218. for (const index in this.advices) {
  1219. if (this.advices[index].parent_id > 0) {
  1220. continue
  1221. }
  1222. var item = this.advices[index]
  1223. if (item.id in childMap) {
  1224. item.children = childMap[item.id]
  1225. } else {
  1226. item.children = []
  1227. }
  1228. advices.push(item)
  1229. }
  1230. var leftAdvice = []
  1231. var rightAdvice = []
  1232. var adlen = advices.length
  1233. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  1234. for (var i = 0; i < halfLen; i++) {
  1235. leftAdvice.push(advices[i])
  1236. rightAdvice.push(advices[i + halfLen])
  1237. }
  1238. if (halfLen < 5) {
  1239. var nl = 5 - leftAdvice.length
  1240. for (let index = 0; index < nl; index++) {
  1241. leftAdvice.push([])
  1242. }
  1243. var nl = 5 - rightAdvice.length
  1244. for (let index = 0; index < nl; index++) {
  1245. rightAdvice.push([])
  1246. }
  1247. }
  1248. this.advices = []
  1249. for (var i = 0; i < halfLen; i++) {
  1250. var item = []
  1251. item.push(leftAdvice[i])
  1252. item.push(rightAdvice[i])
  1253. this.advices.push(item)
  1254. }
  1255. this.loading = false
  1256. this.doctor_advices =
  1257. response.data.data.advices == null ? [] : response.data.data.advices
  1258. for (let index = 0; index < this.doctor_advices.length; index++) {
  1259. this.doctor_advices[index]['isShow'] = 2
  1260. }
  1261. if (this.doctor_advices.length <= 6) {
  1262. var nl = 6
  1263. this.print_length = 6
  1264. for (let index = 0; index < nl; index++) {
  1265. if (
  1266. this.doctor_advices[index] == undefined ||
  1267. this.doctor_advices[index].length <= 0
  1268. ) {
  1269. this.doctor_advices.push([])
  1270. } else {
  1271. continue
  1272. }
  1273. }
  1274. }
  1275. this.totollength = this.doctor_advices.length + this.monitors.length
  1276. console.log(this.advice_groups)
  1277. } else {
  1278. this.loading = false
  1279. this.$message.error('请求数据失败')
  1280. return false
  1281. }
  1282. // })
  1283. },
  1284. bloodAccessParOperaName (id) {
  1285. if (id in this.bloodAccessParOpera) {
  1286. return this.bloodAccessParOpera[id].name
  1287. }
  1288. return ''
  1289. },
  1290. dialysateFormulationName (id) {
  1291. if (id in this.dialysateFormulationOptions) {
  1292. return this.dialysateFormulationOptions[id].name
  1293. }
  1294. return ''
  1295. },
  1296. getAge: function (val) {
  1297. console.log('val3323232', val)
  1298. if (val.birthday != 0) {
  1299. return jsGetAge(val.birth, '-')
  1300. } else {
  1301. return ''
  1302. }
  1303. },
  1304. // getAge (UUserCard) {
  1305. // if (UUserCard != null && UUserCard != '') {
  1306. // var myDate = new Date()
  1307. // var month = myDate.getMonth() + 1
  1308. // var day = myDate.getDate()
  1309. // var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
  1310. // if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
  1311. // age++
  1312. // }
  1313. // return age
  1314. // }
  1315. // },
  1316. newAdviceGroupObject: function () {
  1317. return Object.assign(
  1318. {},
  1319. {
  1320. group_no: 0,
  1321. // advice_doctor: 0,
  1322. // start_time: 0,
  1323. advices: []
  1324. // exec_staff: 0,
  1325. // exec_time: 0,
  1326. // checker: 0,
  1327. }
  1328. )
  1329. },
  1330. getFloat: function (x) {
  1331. if (x == 0) {
  1332. return '/'
  1333. }
  1334. if (x != '.') {
  1335. var f = Math.round(x * 100) / 100
  1336. var s = f.toString()
  1337. var rs = s.indexOf('.')
  1338. if (rs <= 0) {
  1339. rs = s.length
  1340. s += '.'
  1341. }
  1342. while (s.length <= rs + 1) {
  1343. s += '0'
  1344. }
  1345. return s
  1346. } else {
  1347. return '0.0'
  1348. }
  1349. },
  1350. getUnit: function (val) {
  1351. switch (val) {
  1352. case 1:
  1353. return 'g'
  1354. break
  1355. case 2:
  1356. return 'ml'
  1357. break
  1358. }
  1359. }
  1360. },
  1361. watch: {
  1362. 'patientInfo.gender': function () {
  1363. if (this.patientInfo.gender == 1) {
  1364. this.patientInfo_gender_1 = true
  1365. this.patientInfo_gender_2 = false
  1366. } else if (this.patientInfo.gender == 2) {
  1367. this.patientInfo_gender_2 = true
  1368. this.patientInfo_gender_1 = false
  1369. } else {
  1370. this.patientInfo_gender_2 = false
  1371. this.patientInfo_gender_1 = false
  1372. }
  1373. },
  1374. 'patientInfo.source': function () {
  1375. if (this.patientInfo.source == 1) {
  1376. this.patientInfo_source_1 = true
  1377. this.patientInfo_source_2 = false
  1378. } else if (this.patientInfo.source == 2) {
  1379. this.patientInfo_source_2 = true
  1380. this.patientInfo_source_1 = false
  1381. } else {
  1382. this.patientInfo_source_2 = false
  1383. this.patientInfo_source_1 = false
  1384. }
  1385. }
  1386. },
  1387. created () {
  1388. this.org_id = this.$store.getters.user.org.id
  1389. this.way_arr = getDataConfig('hemodialysis', 'way')
  1390. this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
  1391. this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
  1392. this.posture_arr = getDataConfig('hemodialysis', 'posture')
  1393. this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
  1394. this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
  1395. this.intake_arr = getDataConfig('hemodialysis', 'intake')
  1396. this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
  1397. var xtuser = this.$store.getters.user
  1398. this.orgname = xtuser.org.org_name
  1399. // this.orgname = "遂溪方济医院";
  1400. this.modeOptions = this.$store.getters.treatment_mode
  1401. this.replacementWays = this.$store.getters.replacement_ways
  1402. this.perfusionApparatus = this.$store.getters.perfusion_apparatus
  1403. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  1404. this.displaceLiquiPartOptions = this.$store.getters.displace_liqui
  1405. this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
  1406. this.blood_access_part_opera = getDataConfig(
  1407. 'hemodialysis',
  1408. 'vascular_access_desc'
  1409. )
  1410. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1411. var bloodAccessParOpera = getDataConfig(
  1412. 'hemodialysis',
  1413. 'vascular_access_desc'
  1414. )
  1415. for (var key in bloodAccessParOpera) {
  1416. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1417. bloodAccessParOpera[key]
  1418. }
  1419. var dialysateFormulationOptions = getDataConfig(
  1420. 'hemodialysis',
  1421. 'dialysate_formulation'
  1422. )
  1423. for (var key in dialysateFormulationOptions) {
  1424. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1425. dialysateFormulationOptions[key]
  1426. }
  1427. const xtdate = this.$route.query && this.$route.query.xtdate
  1428. const xtno = this.$route.query && this.$route.query.xtno
  1429. if (
  1430. typeof xtdate === 'string' &&
  1431. xtdate.length > 0 &&
  1432. typeof xtno === 'string' &&
  1433. xtno.length > 0
  1434. ) {
  1435. this.queryParams.xtdate = xtdate
  1436. this.queryParams.xtno = xtno
  1437. this.getDialysisRecord()
  1438. } else {
  1439. this.$message.error('参数不齐')
  1440. return false
  1441. }
  1442. }
  1443. }
  1444. </script>
  1445. <style >
  1446. .print_page_main_content {
  1447. background-color: white;
  1448. width: 960px;
  1449. margin: 0 auto 50px;
  1450. padding: 0 0 0 0;
  1451. page-break-after: always;
  1452. }
  1453. .print_page_main_content .order-yy-name {
  1454. margin: auto;
  1455. text-align: center;
  1456. font-size: 20px;
  1457. letter-spacing: 5px;
  1458. }
  1459. .dialysis-print-order .order-title {
  1460. margin: auto;
  1461. font-weight: 600;
  1462. text-align: center;
  1463. font-size: 22px;
  1464. padding: 10px;
  1465. }
  1466. .print_page_main_content .order_title {
  1467. text-align: center;
  1468. font-size: 23px;
  1469. line-height: 50px;
  1470. font-weight: 500;
  1471. }
  1472. .rows {
  1473. font-size: 14px;
  1474. line-height: 20px;
  1475. padding: 5px 0;
  1476. }
  1477. .inline_block {
  1478. display: inline-block;
  1479. }
  1480. .under_line_two {
  1481. display: inline-block;
  1482. border-bottom: 1px solid #999;
  1483. text-align: left;
  1484. white-space: nowrap;
  1485. width: 50%;
  1486. }
  1487. .under_line_two::before {
  1488. content: "\00A0";
  1489. }
  1490. .under_line_two::after {
  1491. content: "\00A0";
  1492. }
  1493. .under_line {
  1494. display: inline-block;
  1495. border-bottom: 1px solid #999;
  1496. text-align: center;
  1497. white-space: nowrap;
  1498. width: 50%;
  1499. }
  1500. .under_line::before {
  1501. content: "\00A0";
  1502. }
  1503. .under_line::after {
  1504. content: "\00A0";
  1505. }
  1506. .flex {
  1507. display: -webkit-box;
  1508. display: -moz-box;
  1509. display: -ms-flexbox;
  1510. display: -webkit-flex;
  1511. display: flex;
  1512. align-items: center;
  1513. -webkit-align-items: center;
  1514. box-align: center;
  1515. -moz-box-align: center;
  1516. -webkit-box-align: center;
  1517. text-align: center;
  1518. -webkit-justify-content: space-between;
  1519. justify-content: space-between;
  1520. -moz-box-pack: space-between;
  1521. -webkit--moz-box-pack: space-between;
  1522. box-pack: space-between;
  1523. }
  1524. .print_page_main_content .proj_table {
  1525. width: 100%;
  1526. border: 1px solid;
  1527. border-collapse: collapse;
  1528. padding: 2px;
  1529. }
  1530. .print_page_main_content .proj_table tbody tr td {
  1531. border: 1px solid;
  1532. /* text-align: center; */
  1533. font-size: 16px;
  1534. padding: 5px 8px;
  1535. line-height: 30px;
  1536. }
  1537. .print_page_main_content .proj_table .inside_table {
  1538. width: 100%;
  1539. border: hidden; /* 解决边框冲突 */
  1540. border-collapse: collapse;
  1541. }
  1542. .print_page_main_content .proj_table .inside_table tr td {
  1543. border: 1px solid;
  1544. text-align: center;
  1545. font-size: 14px;
  1546. padding: 6px 5px;
  1547. line-height: 16px;
  1548. }
  1549. .print-table-no {
  1550. width: 100%;
  1551. text-align: center;
  1552. border-collapse: collapse;
  1553. font-size: 14px;
  1554. }
  1555. .es-img {
  1556. height: 20px;
  1557. }
  1558. .advice-name {
  1559. text-align: left !important;
  1560. line-height: 16px !important;
  1561. }
  1562. .advice-children {
  1563. display: flex;
  1564. }
  1565. .margin-bottom-50 {
  1566. }
  1567. .margin-bottom-300 {
  1568. margin-bottom: 450px;
  1569. }
  1570. .margin-bottom-600 {
  1571. margin-bottom: 600px;
  1572. }
  1573. .margin-bottom-900 {
  1574. margin-bottom: 900px;
  1575. }
  1576. .print-yema {
  1577. position: absolute;
  1578. left: 50%;
  1579. }
  1580. .print-yema2 {
  1581. position: absolute;
  1582. left: 50%;
  1583. }
  1584. .print-yema3 {
  1585. position: absolute;
  1586. left: 50%;
  1587. }
  1588. .print-yema4 {
  1589. position: absolute;
  1590. left: 50%;
  1591. }
  1592. .check_box_panel .did_checke::after {
  1593. font-size: 8px;
  1594. margin-left: 2px;
  1595. margin-top: 2px;
  1596. position: absolute;
  1597. }
  1598. </style>