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

DialysisPrintOrderThirtyTwo.vue 89KB

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