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

DialysisPrintOrderEight.vue 78KB

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