DialysisPrintOrderSeventeen.vue 81KB

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