DialysisPrintOrderFourteen.vue 87KB

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