DialysisPrintOrderFourteen.vue 86KB

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