血透系统PC前端

dialysisPrintOrderTwo.vue 81KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668
  1. <template>
  2. <div id="dialysis-print-box-1">
  3. <div class="dialysis-print-order print-template-two print_page_main_content">
  4. <div class="order-yy-name">{{orgname}}</div>
  5. <div class="order-title">血液净化专科护理记录单</div>
  6. <div class="row">
  7. <div class="inline_block">
  8. 科室:
  9. <check-box text="门诊透析" :checked="patientInfo_source_1 "></check-box>
  10. &nbsp;
  11. <check-box text="住院" :checked="patientInfo_source_2"></check-box>
  12. </div>
  13. <div class="inline_block" style="margin-left:25px;">
  14. 姓名:
  15. <div class="under_line" style="width: 120px;">{{patientInfo.name}}</div>
  16. </div>
  17. <div class="inline_block" style="margin-left: 25px;">
  18. 性别:
  19. <check-box text="男" :checked="patientInfo_gender_1"></check-box>
  20. &nbsp;
  21. <check-box text="女" :checked="patientInfo_gender_2"></check-box>
  22. </div>
  23. <div class="inline_block" style="margin-left: 25px;">
  24. 年龄:
  25. <div class="under_line" style="width: 70px;">{{getAge(patientInfo)}}</div>
  26. </div>
  27. <div class="inline_block" style="margin-left: 25px;">
  28. 住院号/ID号:
  29. <div class="under_line" style="width: 100px;">
  30. {{patientInfo.admission_number?patientInfo.admission_number:'无'}}/{{patientInfo.dialysis_no}}
  31. </div>
  32. </div>
  33. </div>
  34. <div class="row flex">
  35. <div class="inline_block">
  36. 诊断:
  37. <div class="under_line" style="width: 500px;text-align: left">{{patientInfo.diagnose}}</div>
  38. </div>
  39. </div>
  40. <div class="row" :class="this.monitors.length > 8 ? 'margin-bottom-300': ''">
  41. <table class="proj_table" >
  42. <tbody>
  43. <tr><td colspan="2">一、透析前护理评估:</td></tr>
  44. <tr>
  45. <td colspan="2">
  46. <div class="row" style="padding: 2px 0;line-height:19px;">
  47. <div class="inline_block">
  48. 入科方式:
  49. <check-box text="步行" :checked="receiverTreatmentAccess.way==1?true:false"></check-box>
  50. <check-box text="扶行" :checked="receiverTreatmentAccess.way==2?true:false"></check-box>
  51. <check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>
  52. <check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>
  53. </div>
  54. <div class="inline_block" style="margin-left: 30px;">
  55. 透析频次:
  56. <div class="under_line" style="width: 50px;">
  57. {{predialysis.dialysis_count?predialysis.dialysis_count:''}}
  58. </div>
  59. 次/周
  60. </div>
  61. <div class="inline_block" style="margin-left: 30px;">
  62. 透析机编号:
  63. <div class="under_line" style="width: 100px;">{{''}}</div>
  64. 型号
  65. <div class="under_line" style="width: 100px;">{{''}}</div>
  66. </div>
  67. </div>
  68. <div class="row" style="padding: 2px 0;line-height:19px;">
  69. <div class="inline_block" >
  70. 意识:
  71. <check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>
  72. <check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>
  73. <check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>
  74. </div>
  75. <div class="inline_block" style="margin-left: 20px;">
  76. 出血:
  77. <check-box text="正常" :checked="predialysis.is_hemorrhage==2?true:false"></check-box>
  78. <check-box text="异常" :checked="predialysis.is_hemorrhage==1?true:false"></check-box>
  79. (&nbsp;
  80. <check-box text="穿刺点渗血" :checked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('穿刺点渗血')>-1?true:false"></check-box>
  81. <check-box text="牙龈出血" :checked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('牙龈出血')>-1?true:false"></check-box>
  82. <check-box text="消化道出血" :checked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('消化道出血')>-1?true:false"></check-box>
  83. <check-box text="女性经期" :checked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('女性经期')>-1?true:false"></check-box>
  84. 其他:
  85. <div class="under_line" style="width: 100px;">
  86. <span v-if="predialysis.is_hemorrhage==1">
  87. {{predialysis.hemorrhage_other}}
  88. </span>
  89. </div>
  90. &nbsp;)
  91. </div>
  92. </div>
  93. <div class="row" style="padding: 2px 0;line-height:19px;">
  94. <div class="inline_block">
  95. 血管通路(内瘘):
  96. <check-box text="正常" :checked="predialysis.blood_access_internal_fistula.indexOf('正常')>-1?true:false"></check-box>
  97. <check-box text="震颤" :checked="predialysis.blood_access_internal_fistula.indexOf('震颤')>-1?true:false"></check-box>
  98. <check-box text="堵塞" :checked="predialysis.blood_access_internal_fistula.indexOf('堵塞')>-1?true:false"></check-box>
  99. <check-box text="血肿" :checked="predialysis.blood_access_internal_fistula.indexOf('血肿')>-1?true:false"></check-box>
  100. <check-box text="淤血" :checked="predialysis.blood_access_internal_fistula.indexOf('淤血')>-1?true:false"></check-box>
  101. <check-box text="感染" :checked="predialysis.blood_access_internal_fistula.indexOf('感染')>-1?true:false"></check-box>
  102. </div>
  103. <div class="inline_block">
  104. 其它:
  105. <div class="under_line" style="width: 300px;">{{predialysis.internal_fistula_other}}
  106. </div>
  107. </div>
  108. </div>
  109. <div class="row" style="padding: 2px 0;line-height:19px;">
  110. <div class="inline_block">
  111. 血管杂音:
  112. <!-- <check-box text="震颤" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula', '震颤-存在')"></check-box> -->
  113. <check-box text="存在" :checked="predialysis.blood_access_noise == 1?true:false"></check-box>
  114. <check-box text="不存在" :checked="predialysis.blood_access_noise == 2?true:false"></check-box>
  115. <check-box text="减弱" :checked="predialysis.blood_access_noise == 3?true:false"></check-box>
  116. &emsp;穿刺方式:
  117. <check-box text="绳梯" :checked="predialysis.puncture_way == 1?true:false"></check-box>
  118. <check-box text="扣眼" :checked="predialysis.puncture_way == 2?true:false"></check-box>
  119. <check-box text="区域" :checked="predialysis.puncture_way == 3?true:false"></check-box>
  120. </div>
  121. </div>
  122. <div class="row" style="padding: 2px 0;line-height:19px;">
  123. <div class="inline_block">
  124. 中心静脉置管:
  125. <check-box text="长期" :checked="predialysis.venous_catheterization == 1?true:false"></check-box>
  126. <check-box text="临时" :checked="predialysis.venous_catheterization == 2?true:false"></check-box>
  127. &emsp;位置:
  128. <check-box text="锁骨下" :checked="predialysis.venous_catheterization_part == 1?true:false"></check-box>
  129. <check-box text="颈静脉" :checked="predialysis.venous_catheterization_part == 2?true:false"></check-box>
  130. <check-box text="股静脉" :checked="predialysis.venous_catheterization_part == 3?true:false"></check-box>
  131. <div class="inline_block">
  132. 其它:
  133. <div class="under_line" style="width: 50px;">
  134. <span v-if="predialysis.venous_catheterization_part == -1">{{predialysis.venous_catheterization_part_other}}</span>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. <div class="row" style="padding: 2px 0;line-height:19px;">
  140. <div class="inline_block">
  141. 中心静脉导管:
  142. <check-box text="正常" :checked="predialysis.ductus_arantii.indexOf('正常')>-1?true:false"></check-box>
  143. <check-box text="不畅" :checked="predialysis.ductus_arantii.indexOf('不畅')>-1?true:false"></check-box>
  144. <check-box text="血流不足(正接)" :checked="predialysis.ductus_arantii.indexOf('血流不足(正接)')>-1?true:false"></check-box>
  145. <check-box text="血流不足(反接)" :checked="predialysis.ductus_arantii.indexOf('血流不足(反接)')>-1?true:false"></check-box>
  146. <check-box text="血栓" :checked="predialysis.ductus_arantii.indexOf('血栓')>-1?true:false"></check-box>
  147. <check-box text="缝线脱落" :checked="predialysis.ductus_arantii.indexOf('缝线脱落')>-1?true:false"></check-box>
  148. <check-box text="导管脱落" :checked="predialysis.ductus_arantii.indexOf('导管脱落')>-1?true:false"></check-box>
  149. <check-box text="感染" :checked="predialysis.ductus_arantii.indexOf('感染')>-1?true:false"></check-box>
  150. <check-box text="破损" :checked="predialysis.ductus_arantii.indexOf('破损')>-1?true:false"></check-box>
  151. </div>
  152. </div>
  153. <div class="row" style="padding: 2px 0;line-height:19px;">
  154. <div class="inline_block">
  155. 急诊:
  156. <check-box text="急性心衰" :checked="predialysis.emergency_treatment == 1?true:false"></check-box>
  157. <check-box text="高血钾" :checked="predialysis.emergency_treatment == 2?true:false"></check-box>
  158. <check-box text="重症酸中毒" :checked="predialysis.emergency_treatment == 3?true:false"></check-box>
  159. <div class="inline_block">
  160. 其它:
  161. <div class="under_line" style="width: 100px;">
  162. <span v-if="predialysis.emergency_treatment == -1">{{predialysis.emergency_treatment_other}}</span>
  163. </div>
  164. </div>
  165. </div>
  166. <div class="inline_block">
  167. 病情:
  168. <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
  169. <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
  170. <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
  171. </div>
  172. </div>
  173. </td>
  174. </tr>
  175. <tr>
  176. <td colspan="2">
  177. <div class="row" style="padding: 2px 0;line-height:19px;">
  178. <div class="inline_block">
  179. 跌倒风险评估:&nbsp;评分:
  180. <div class="under_line" style="width: 50px;"> {{predialysis.score}}</div>
  181. &emsp;风险程度:
  182. <check-box text="无" :checked="receiverTreatmentAccess.danger_level == 1?true:false"></check-box>
  183. <check-box text="低风险" :checked="receiverTreatmentAccess.danger_level == 2?true:false"></check-box>
  184. <check-box text="中度风险" :checked="receiverTreatmentAccess.danger_level == 3?true:false"></check-box>
  185. <check-box text="高风险" :checked="receiverTreatmentAccess.danger_level == 4?true:false"></check-box>
  186. </div>
  187. </div>
  188. <div class="row" style="padding: 2px 0;line-height:19px;">
  189. <div class="inline_block">
  190. 营养状况评估:&nbsp;食欲:
  191. <check-box text="正常" :checked="receiverTreatmentAccess.appetite == 1?true:false"></check-box>
  192. <check-box text="下降" :checked="receiverTreatmentAccess.appetite == 2?true:false"></check-box>
  193. </div>
  194. <div class="inline_block">
  195. &emsp; 摄入量:
  196. <check-box text="正常" :checked="receiverTreatmentAccess.intake == 1?true:false"></check-box>
  197. <check-box text="减少" :checked="receiverTreatmentAccess.intake == 2?true:false"></check-box>
  198. </div>
  199. <div class="inline_block">
  200. &emsp;营养状况:
  201. <check-box text="正常" :checked="receiverTreatmentAccess.nutrition == 1?true:false"></check-box>
  202. <check-box text="营养不良" :checked="receiverTreatmentAccess.nutrition == 2?true:false"></check-box>
  203. </div>
  204. </div>
  205. <div class="row" style="padding: 2px 0; line-height:19px;">
  206. <div class="inline_block">
  207. 心理评估:
  208. <check-box text="正常" :checked="receiverTreatmentAccess.psychological_assessment == 1?true:false"></check-box>
  209. <check-box text="异常" :checked="receiverTreatmentAccess.psychological_assessment == 2?true:false"></check-box>
  210. </div>
  211. <div class="inline_block">
  212. <div class="under_line" style="width: 100px;">
  213. <span v-if="receiverTreatmentAccess.psychological_assessment == 2">{{receiverTreatmentAccess.psychological_assessment_other}}</span>
  214. </div>
  215. </div>
  216. </div>
  217. </td>
  218. </tr>
  219. <tr>
  220. <td style="padding: 0;" colspan="2">
  221. <table class="inside_table">
  222. <tbody>
  223. <tr><td colspan="10" style="font-size:16px;padding: 6px 8px;line-height: 30px;text-align:left;">二、透析中护理纪录:</td></tr>
  224. <tr>
  225. <td width="100">时间</td>
  226. <td width="100">BP<br/>mmHg</td>
  227. <td width="30">P<br/>次/分</td>
  228. <td width="30">R<br/>次/分</td>
  229. <td width="60">静脉压/动脉压<br/>mmHg</td>
  230. <td width="80">血流量<br/>ml/min</td>
  231. <td width="90">超滤量累计L</td>
  232. <td width="80">钠浓度<br/>mmol/L</td>
  233. <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
  234. <td width="100">护士签名</td>
  235. </tr>
  236. <tr v-if="this.predialysis.systolic_blood_pressure != 0&&this.predialysis.diastolic_blood_pressure != 0||this.predialysis.remark.length > 0">
  237. <td>{{'透析前'}}</td>
  238. <td>{{predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:''}}/{{predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:''}}</td>
  239. <td>{{''}}</td>
  240. <td>{{''}}</td>
  241. <td>{{''}}/{{''}}</td>
  242. <td>{{''}}</td>
  243. <td>{{''}}</td>
  244. <td>{{''}}</td>
  245. <td style="line-height:16px;padding:0px;"> <div style="height:48px;line-height:48px; overflow:hidden;"><span style="margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> {{predialysis.remark}}</span></div></td>
  246. <td>
  247. <span v-if="setAdminUserES(predialysis.creater) == ''">{{getAdminUser(predialysis.creater)}}</span>
  248. <img class="es-img" :src="setAdminUserES(predialysis.creater)" alt="" srcset="" v-else>
  249. </td>
  250. </tr>
  251. <tr v-for="(monitor,index) in monitors" :key="index">
  252. <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
  253. <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}}/{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
  254. <td>{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
  255. <td>{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
  256. <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}/{{monitor.arterial_pressure?monitor.arterial_pressure:''}}</td>
  257. <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
  258. <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
  259. <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
  260. <td style="line-height:16px;padding:0px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}} &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}} </span> </div></td>
  261. <td>
  262. <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">{{getAdminUser(monitor.monitoring_nurse)}}</span>
  263. <img class="es-img" :src="setAdminUserES(monitor.monitoring_nurse)" alt="" srcset="" v-else>
  264. </td>
  265. </tr>
  266. </tbody>
  267. </table>
  268. </td>
  269. </tr>
  270. </tbody>
  271. </table>
  272. </div>
  273. <template v-if="this.monitors.length > 8 ">
  274. <div class="order-yy-name">{{orgname}}</div>
  275. <div class="order-title">血液净化专科护理记录单</div>
  276. <div class="row" style="margin-top: 15px;">
  277. <div class="inline_block">
  278. 科室:
  279. <check-box text="门诊透析" :checked="patientInfo_source_1 "></check-box>
  280. &nbsp;
  281. <check-box text="住院" :checked="patientInfo_source_2"></check-box>
  282. </div>
  283. <div class="inline_block" style="margin-left:25px;">
  284. 姓名:
  285. <div class="under_line" style="width: 120px;">{{patientInfo.name}}</div>
  286. </div>
  287. <div class="inline_block" style="margin-left: 25px;">
  288. 性别:
  289. <check-box text="男" :checked="patientInfo_gender_1"></check-box>
  290. &nbsp;
  291. <check-box text="女" :checked="patientInfo_gender_2"></check-box>
  292. </div>
  293. <div class="inline_block" style="margin-left: 25px;">
  294. 年龄:
  295. <div class="under_line" style="width: 70px;">{{getAge(patientInfo)}}</div>
  296. </div>
  297. <div class="inline_block" style="margin-left: 25px;">
  298. 住院号/ID号:
  299. <div class="under_line" style="width: 100px;">
  300. {{patientInfo.admission_number?patientInfo.admission_number:'无'}}/{{patientInfo.dialysis_no}}
  301. </div>
  302. </div>
  303. </div>
  304. <div class="row flex">
  305. <div class="inline_block">
  306. 诊断:
  307. <div class="under_line_two" style="width: 500px;text-align: left">{{patientInfo.diagnose}}</div>
  308. </div>
  309. </div>
  310. </template>
  311. <div class="row" :style="this.monitors.length <= 8 ? 'margin-top:-11px':''">
  312. <table class="proj_table" :class="this.monitors.length > 8 ? 'margin-bottom-900':'margin-bottom-300'">
  313. <tbody>
  314. <tr v-if="this.monitors2.length > 0">
  315. <td style="padding: 0;" colspan="2">
  316. <table class="inside_table">
  317. <tbody>
  318. <tr><td colspan="10" style="font-size:16px;padding: 6px 8px;line-height: 30px;text-align:left;">二、透析中护理纪录:</td></tr>
  319. <tr>
  320. <td width="100">时间</td>
  321. <td width="100">BP<br/>mmHg</td>
  322. <td width="30">P<br/>次/分</td>
  323. <td width="30">R<br/>次/分</td>
  324. <td width="60">静脉压/动脉压<br/>mmHg</td>
  325. <td width="80">血流量<br/>ml/min</td>
  326. <td width="90">超滤量累计L</td>
  327. <td width="80">钠浓度<br/>mmol/L</td>
  328. <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
  329. <td width="100">护士签名</td>
  330. </tr>
  331. <tr v-for="(monitor,index) in monitors2" :key="index">
  332. <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
  333. <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}}/{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
  334. <td>{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
  335. <td>{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
  336. <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}/{{monitor.arterial_pressure?monitor.arterial_pressure:''}}</td>
  337. <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
  338. <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
  339. <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
  340. <td style="line-height:16px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}} &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}}</span></div> </td>
  341. <td>
  342. <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">{{getAdminUser(monitor.monitoring_nurse)}}</span>
  343. <img class="es-img" :src="setAdminUserES(monitor.monitoring_nurse)" alt="" srcset="" v-else>
  344. </td>
  345. </tr>
  346. </tbody>
  347. </table>
  348. </td>
  349. </tr>
  350. <tr><td colspan="2" style="font-size:16px;padding: 6px 8px;line-height: 30px;text-align:left;">三、透析后护理纪录</td></tr>
  351. <tr>
  352. <td>
  353. <div class="row" style="padding: 2px 0;line-height:19px;">
  354. <div class="inline_block">
  355. 透析过程:
  356. <check-box text="完成" :checked="afterdialysis.dialysis_process==1?true:false"></check-box>
  357. <check-box text="提前" :checked="afterdialysis.dialysis_process==2?true:false"></check-box>
  358. <div class="inline_block">
  359. <div class="under_line" style="width: 30px;">
  360. <span v-if="afterdialysis.dialysis_process==2">{{afterdialysis.in_advance_minute}}</span>
  361. </div>
  362. min
  363. </div>
  364. </div>
  365. <div class="inline_block">
  366. &emsp;原因:
  367. <check-box text="心梗" :checked="afterdialysis.in_advance_reason.indexOf('心梗')>-1?true:false"></check-box>
  368. <check-box text="心律失常" :checked="afterdialysis.in_advance_reason.indexOf('心律失常')>-1?true:false"></check-box>
  369. <check-box text="低血压" :checked="afterdialysis.in_advance_reason.indexOf('低血压')>-1?true:false"></check-box>
  370. <check-box text="血流不止" :checked="afterdialysis.in_advance_reason.indexOf('血流不止')>-1?true:false"></check-box>
  371. </div>
  372. <div class="inline_block">
  373. &emsp; 其他原因:
  374. <div class="inline_block">
  375. <div class="under_line" style="width: 150px;">
  376. <span v-if="afterdialysis.in_advance_reason.length > 0">{{afterdialysis.in_advance_reason_other}}</span>
  377. </div>
  378. </div>
  379. </div>
  380. </div>
  381. <div class="row" style="padding: 2px 0;line-height:19px;">
  382. <div class="inline_block">
  383. 内瘘管拔针后压迫止血时间:
  384. <div class="inline_block">
  385. <div class="under_line" style="width: 30px;">
  386. <span v-if="afterdialysis.hemostasis_minute">{{afterdialysis.hemostasis_minute}}</span>
  387. </div>
  388. min
  389. </div>
  390. </div>
  391. <div class="inline_block">
  392. <check-box text="需要护士" :checked="afterdialysis.hemostasis_opera == 1?true:false"></check-box>
  393. <check-box text="他人协助" :checked="afterdialysis.hemostasis_opera == 2?true:false"></check-box>
  394. <check-box text="自己压迫" :checked="afterdialysis.hemostasis_opera == 3?true:false"></check-box>
  395. </div>
  396. <div class="inline_block" style="margin-left: 30px;">
  397. 实际超滤量:
  398. <div class="under_line" style="width: 50px;">
  399. {{prescription.ultrafiltration?prescription.ultrafiltration:''}}
  400. </div>
  401. L
  402. </div>
  403. </div>
  404. <div class="row" style="padding: 2px 0;line-height:19px;">
  405. <div class="inline_block">
  406. 内瘘震颤和血管杂音:
  407. <check-box text="存在" :checked="afterdialysis.tremor_noise==1?true:false"></check-box>
  408. <check-box text="减弱" :checked="afterdialysis.tremor_noise==2?true:false"></check-box>
  409. <check-box text="不存在" :checked="afterdialysis.tremor_noise==3?true:false"></check-box>
  410. </div>
  411. <div class="inline_block">
  412. &emsp;失衡综合症:
  413. <check-box text="无" :checked="afterdialysis.disequilibrium_syndrome==1?true:false"></check-box>
  414. <check-box text="有" :checked="afterdialysis.disequilibrium_syndrome==2?true:false"></check-box>
  415. </div>
  416. <div class="inline_block">
  417. <check-box text="头晕" :checked="afterdialysis.disequilibrium_syndrome_option.indexOf('头晕')>-1?true:false"></check-box>
  418. <check-box text="头痛" :checked="afterdialysis.disequilibrium_syndrome_option.indexOf('头痛')>-1?true:false"></check-box>
  419. <check-box text="呕吐" :checked="afterdialysis.disequilibrium_syndrome_option.indexOf('呕吐')>-1?true:false"></check-box>
  420. <check-box text="低血压" :checked="afterdialysis.disequilibrium_syndrome_option.indexOf('低血压')>-1?true:false"></check-box>
  421. </div>
  422. </div>
  423. <div class="row" style="padding: 2px 0;line-height:19px;">
  424. <div class="inline_block">
  425. 透析器及血路管凝血情况: &emsp;动脉管道:
  426. <check-box text="0" :checked="afterdialysis.arterial_tube == 1?true:false"></check-box>
  427. <check-box text="+" :checked="afterdialysis.arterial_tube == 2?true:false"></check-box>
  428. <check-box text="++" :checked="afterdialysis.arterial_tube == 3?true:false"></check-box>
  429. <check-box text="+++" :checked="afterdialysis.arterial_tube == 4?true:false"></check-box>
  430. </div>
  431. <div class="inline_block">
  432. &emsp; 静脉管道:
  433. <check-box text="0" :checked="afterdialysis.intravenous_tube == 1?true:false"></check-box>
  434. <check-box text="+" :checked="afterdialysis.intravenous_tube == 2?true:false"></check-box>
  435. <check-box text="++" :checked="afterdialysis.intravenous_tube == 3?true:false"></check-box>
  436. <check-box text="+++" :checked="afterdialysis.intravenous_tube == 4?true:false"></check-box>
  437. </div>
  438. <div class="inline_block">
  439. &emsp;透析器:
  440. <check-box text="0" :checked="afterdialysis.dialyzer == 1?true:false"></check-box>
  441. <check-box text="+" :checked="afterdialysis.dialyzer == 2?true:false"></check-box>
  442. <check-box text="++" :checked="afterdialysis.dialyzer == 3?true:false"></check-box>
  443. <check-box text="+++" :checked="afterdialysis.dialyzer == 4?true:false"></check-box>
  444. </div>
  445. </div>
  446. </td>
  447. </tr>
  448. <tr>
  449. <td colspan="2">
  450. <div class="row" style="padding: 2px 0;line-height:19px;">
  451. <div class="inline_block" style="float: left;">
  452. 责任护士:
  453. <div class="under-line">
  454. <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
  455. <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
  456. </div>
  457. </div>
  458. <div class="inline_block" >
  459. &emsp;核对人:
  460. <div class="under_line" style="width: 100px;">
  461. <span v-if="setAdminUserES(check==null?0:check.modifier) == ''">{{getAdminUser(check==null?0:check.modifier)}}</span>
  462. <img class="es-img" :src="setAdminUserES(check==null?0:check.modifier)" alt="" srcset="" v-else>
  463. </div>
  464. </div>
  465. <div class="inline_block">
  466. &emsp;核对时间:
  467. <div class="under_line" style="width: 200px;">
  468. {{getTime(check.updated_time,'{y}年{m}月{d}日 {h}时')}}
  469. </div>
  470. </div>
  471. <div class="inline_block" >
  472. &emsp;收针者:
  473. <div class="under_line" style="width: 100px;">
  474. <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
  475. <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
  476. </div>
  477. </div>
  478. </div>
  479. </td>
  480. </tr>
  481. <tr>
  482. <td colspan="2">
  483. <div class="row" style="padding: 2px 0; line-height:19px;">
  484. 患者去向:
  485. <check-box text="门诊" :checked="afterdialysis.patient_gose==4?true:false"></check-box>
  486. <check-box text="离院" :checked="afterdialysis.patient_gose==1?true:false"></check-box>
  487. <check-box text="留观" :checked="afterdialysis.patient_gose==2?true:false"></check-box>
  488. <check-box text="住院" :checked="afterdialysis.patient_gose==3?true:false"></check-box>
  489. ( 科室
  490. <div class="under_line" style="width: 200px;">
  491. <span v-if="afterdialysis.patient_gose==3">{{afterdialysis.inpatient_department}}</span>
  492. </div>
  493. </div>
  494. <div class="row" style="padding: 2px 0; line-height:19px;">
  495. <div class="inline_block" >
  496. 血透室护士签名:
  497. <div class="under_line" style="width: 100px;">
  498. <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
  499. <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
  500. </div>
  501. </div>
  502. <div class="inline_block" >
  503. &emsp;病区护士签名:
  504. <div class="under_line" style="width: 100px;">
  505. </div>
  506. </div>
  507. <div class="inline_block">
  508. &emsp;时间:
  509. <div class="under_line" style="width: 200px;" v-if="dialysisOrder != null">
  510. {{getTime(dialysisOrder.end_time,'{y}年{m}月{d}日 {h}时')}}
  511. </div>
  512. </div>
  513. </div>
  514. </td>
  515. </tr>
  516. <tr>
  517. <td colspan="2">
  518. <div class="row" style="font-size: 10px;">
  519. 注:透析器及血路管凝血:0级无凝血;
  520. “+”(指Ⅰ级:束状纤维凝血或动/静脉壶/滤网见轻微凝血);“++”(指II级:近半数纤维凝血或动/静脉壶/滤网出现凝血块);“+++”(指III级:压力异常升高,须中途更换透析器/血路管A/V)。
  521. </div>
  522. </td>
  523. </tr>
  524. </tbody>
  525. </table>
  526. <div class="order-yy-name">{{orgname}}</div>
  527. <div class="order_title"> 血液净化科医嘱及执行单 </div>
  528. <div class="row" style="margin-top: 15px;">
  529. <div class="inline_block" >
  530. 科室:
  531. <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
  532. <check-box text="住院" :checked="patientInfo_source_2"></check-box>
  533. </div>
  534. <div class="inline_block" style="margin-left:25px;">
  535. 姓名:
  536. <div class="under_line" style="width: 120px;">{{patientInfo.name}}</div>
  537. </div>
  538. <div class="inline_block" style="margin-left: 25px;">
  539. 性别:
  540. <check-box text="男" :checked="patientInfo_gender_1"></check-box>
  541. <check-box text="女" :checked="patientInfo_gender_2"></check-box>
  542. </div>
  543. <div class="inline_block" style="margin-left: 25px;">
  544. 年龄:
  545. <div class="under_line" style="width: 70px;">{{getAge(patientInfo)}}</div>
  546. </div>
  547. <div class="inline_block" style="margin-left:25px;">
  548. 住院号/ID号:
  549. <div class="under_line" style="width: 120px;">
  550. {{patientInfo.admission_number?patientInfo.admission_number:'无'}}/{{patientInfo.dialysis_no}}
  551. </div>
  552. </div>
  553. </div>
  554. <div class="row flex">
  555. <div class="inline_block">
  556. 诊断:
  557. <div class="under_line" style="width: 500px;text-align: left">{{patientInfo.diagnose}}</div>
  558. </div>
  559. </div>
  560. <table class="proj_table">
  561. <tbody>
  562. <tr>
  563. <td>
  564. <div class="row" style="padding: 2px 0;line-height:24px;">
  565. <div class="inline_block">
  566. 诊断:
  567. <div class="under_line" style="width: 150px;text-align: left">{{patientInfo.diagnose}}</div>
  568. </div>
  569. <div class="inline_block">
  570. &emsp;治疗方式:
  571. <check-box text="HD" :checked="prescription.mode_id==1?true:false"></check-box>
  572. <check-box text="HDF" :checked="prescription.mode_id==2?true:false"></check-box>
  573. <check-box text="HF" :checked="prescription.mode_id==5?true:false"></check-box>
  574. <check-box text="HP" :checked="prescription.mode_id==4?true:false"></check-box>
  575. <check-box text="HD+HP" :checked="prescription.mode_id==3?true:false"></check-box>
  576. </div>
  577. <div class="inline_block" style="margin-left:20px;">
  578. 其它:
  579. <div class="under_line" style="width: 100px;">
  580. <span v-if="prescription.mode_id>5">{{prescription.mode}}</span>
  581. </div>
  582. </div>
  583. <div class="inline_block" style="margin-left:20px;">
  584. 治疗时间:
  585. <div class="under_line" style="width: 30px;">
  586. {{prescription.dialysis_duration_hour?prescription.dialysis_duration_hour:'0'}}
  587. </div>
  588. h
  589. <div class="under_line" style="width: 30px;">
  590. {{prescription.dialysis_duration_minute?prescription.dialysis_duration_minute:'0'}}
  591. </div>
  592. min
  593. </div>
  594. </div>
  595. <div class="row" style="padding: 2px 0;line-height:24px;">
  596. <div class="inline_block">
  597. 病情:
  598. <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
  599. <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
  600. <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
  601. <div class="inline_block">
  602. &emsp;透析器型号:
  603. <div class="under_line" style="width: 200px;text-align: left">
  604. {{prescription.dialyzer_perfusion_apparatus}}
  605. </div>
  606. </div>
  607. </div>
  608. </div>
  609. <div class="row" style="padding: 2px 0; line-height:24px;">
  610. <div class="inline_block">
  611. 体液过多症状:
  612. <check-box text="无" :checked="prescription.body_fluid==1?true:false"></check-box>
  613. <check-box text="下肢水肿+" :checked="prescription.body_fluid==2?true:false"></check-box>
  614. <check-box text="下肢水肿++" :checked="prescription.body_fluid==3?true:false"></check-box>
  615. <check-box text="下肢水肿+++" :checked="prescription.body_fluid==4?true:false"></check-box>
  616. </div>
  617. <!-- <div class="inline_block">
  618. 其它:
  619. <div class="under_line" style="width: 100px;">
  620. <div class="under-line" v-if="prescription&&prescription.body_fluid_other.length > 0">&nbsp;{{prescription.body_fluid_other}}</div>
  621. </div>
  622. </div> -->
  623. <div class="inline_block" style="margin-left:20px;">
  624. 透析前使用特殊药物:
  625. <check-box text="无" :checked="prescription.special_medicine==1?true:false"></check-box>
  626. <check-box text="降压药" :checked="prescription.special_medicine==2?true:false"></check-box>
  627. <check-box text="抗凝" :checked="prescription.special_medicine==3?true:false"></check-box>
  628. </div>
  629. <div class="inline_block">
  630. 其它:
  631. <div class="under_line" style="width: 100px;">
  632. <span v-if="prescription.special_medicine == -1">{{prescription.special_medicine_other}}</span>
  633. </div>
  634. </div>
  635. </div>
  636. <div class="row" style="padding: 2px 0;line-height:24px;">
  637. <div class="inline_block">
  638. 透析液(mol/l): &emsp;Ca<sup>2+</sup>:
  639. <div class="under_line" style="width: 70px;">
  640. <span v-if="prescription.calcium">{{getFloat(prescription.calcium)}}</span>
  641. </div>
  642. mol/l &emsp;Na<sup>+</sup>:
  643. <div class="under_line" style="width: 70px;">
  644. <span v-if="prescription.sodium">{{getFloat(prescription.sodium)}}</span>
  645. </div>
  646. mol/l &emsp;K<sup>+</sup>:
  647. <div class="under_line" style="width: 70px;">
  648. <span v-if="prescription.kalium">{{getFloat(prescription.kalium)}}</span>
  649. </div>
  650. mol/l
  651. </div>
  652. <div class="inline_block" v-if="prescription.displace_liqui_part == 0">
  653. &emsp;置换液后/前稀释 总量:
  654. <div class="under_line" style="width: 100px;">
  655. {{prescription.displace_liqui_value?prescription.displace_liqui_value:''}}L
  656. </div>
  657. </div>
  658. <div class="inline_block" v-if="prescription.displace_liqui_part == 1">
  659. &emsp;置换液前稀释 总量:
  660. <div class="under_line" style="width: 100px;">
  661. {{prescription.displace_liqui_value?prescription.displace_liqui_value:''}}L
  662. </div>
  663. </div>
  664. <div class="inline_block" v-if="prescription.displace_liqui_part == 2">
  665. &emsp;置换液后稀释 总量:
  666. <div class="under_line" style="width: 100px;">
  667. {{prescription.displace_liqui_value?prescription.displace_liqui_value:''}}L
  668. </div>
  669. </div>
  670. </div>
  671. <div class="row" style="padding: 2px 0;line-height:24px;">
  672. <div class="inline_block">
  673. 血管通路:
  674. <check-box text="内瘘" :checked="prescription.blood_access == 1?true:false"></check-box>
  675. <check-box text="直穿" :checked="prescription.blood_access == 2?true:false"></check-box>
  676. <check-box text="导管" :checked="prescription.blood_access == 3?true:false"></check-box>
  677. </div>
  678. <div class="inline_block">
  679. &emsp;血流量:
  680. <div class="under_line" style="width: 100px;">
  681. {{prescription.blood_flow_volume?prescription.blood_flow_volume:''}}
  682. </div>
  683. ml/min
  684. </div>
  685. <div class="inline_block">
  686. &emsp;透析液流量:
  687. <div class="under_line" style="width: 100px;">
  688. {{prescription.dialysate_flow?prescription.dialysate_flow:''}}
  689. </div>
  690. ml/min
  691. </div>
  692. </div>
  693. <div class="row" style="padding: 2px 0;line-height:24px;">
  694. <div class="inline_block">
  695. 透前体重:
  696. <div class="under_line" style="width: 100px;">
  697. {{predialysis.weight_before?predialysis.weight_before:''}}
  698. </div>
  699. kg
  700. </div>
  701. <div class="inline_block">
  702. &emsp;设定超滤量:
  703. <div class="under_line" style="width: 100px;">
  704. {{prescription.target_ultrafiltration?prescription.target_ultrafiltration:''}}
  705. </div>
  706. L
  707. </div>
  708. <div class="inline_block">
  709. &emsp;实际超滤量:
  710. <div class="under_line" style="width: 100px;">
  711. {{prescription.ultrafiltration?prescription.ultrafiltration:''}}
  712. </div>
  713. L
  714. </div>
  715. <div class="inline_block">
  716. 透后体重:
  717. <div class="under_line" style="width: 100px;">
  718. {{afterdialysis.weight_after?afterdialysis.weight_after:''}}
  719. </div>
  720. kg
  721. </div>
  722. </div>
  723. </td>
  724. </tr>
  725. </tbody>
  726. </table>
  727. <table class="print-table-no" border="1" count="0" :style="this.advice_groups_2.length > 0 ? 'margin-bottom:350px;border-top:0;':'border-top:0;'">
  728. <tbody>
  729. <tr style="line-height:35px;padding:8px 5px;">
  730. <td colspan="7" style="font-size: 18px">医嘱</td>
  731. </tr>
  732. <tr style="line-height:35px;padding:8px 5px;">
  733. <td colspan="4" style="font-size: 16px">开医嘱</td>
  734. <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
  735. </tr>
  736. <tr style="line-height:35px;padding:8px 5px;">
  737. <td style="font-size: 16px" width="10%">时间</td>
  738. <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
  739. <td style="font-size: 16px" width="10%">医生签名</td>
  740. <td style="font-size: 16px" width="10%">核对人签名</td>
  741. <td style="font-size: 16px" width="10%">执行人签名</td>
  742. <td style="font-size: 16px" width="10%">时间</td>
  743. </tr>
  744. <template v-for="(group, group_index) in advice_groups" >
  745. <tr v-for="(advice, advice_index) in group.advices" :key="advice_index" >
  746. <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
  747. <span v-if="advice.start_time">
  748. {{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}
  749. </span>
  750. <span v-else>&nbsp;<br/>&nbsp;</span>
  751. </td>
  752. <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
  753. <span >{{advice.advice_name }}</span>
  754. <span>{{advice.advice_desc}}</span>
  755. <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
  756. <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
  757. <span v-if="advice.parent_id == 0 && advice.children.length == 0">{{advice.delivery_way}}</span>
  758. <span v-if="advice.parent_id == 0 && advice.children.length == 0">{{advice.execution_frequency}}</span>
  759. <span v-if="advice.parent_id == 0 && advice.children && advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
  760. </td>
  761. <td colspan="2" height="60px" style="text-align: center" v-else >
  762. <span>{{advice.delivery_way}}</span>
  763. <span>{{advice.execution_frequency}}</span>
  764. <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
  765. </td>
  766. <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
  767. <td height="60px">
  768. <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
  769. <img class="es-img" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
  770. </td>
  771. <td height="60px">
  772. <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
  773. <img class="es-img" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
  774. </td>
  775. <td height="60px">
  776. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
  777. <img class="es-img" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
  778. </td>
  779. <td height="60px">
  780. <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</span>
  781. </td>
  782. </tr>
  783. </template>
  784. </tbody>
  785. </table>
  786. <template v-if="this.advice_groups_2.length > 0">
  787. <div class="order-yy-name">{{orgname}}</div>
  788. <div class="order_title"> 血液净化科医嘱及执行单 </div>
  789. <div class="row" style="margin-top: 15px;">
  790. <div class="inline_block" >
  791. 科室:
  792. <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
  793. <check-box text="住院" :checked="patientInfo_source_2"></check-box>
  794. </div>
  795. <div class="inline_block" style="margin-left:25px;">
  796. 姓名:
  797. <div class="under_line" style="width: 120px;">{{patientInfo.name}}</div>
  798. </div>
  799. <div class="inline_block" style="margin-left: 25px;">
  800. 性别:
  801. <check-box text="男" :checked="patientInfo_gender_1"></check-box>
  802. <check-box text="女" :checked="patientInfo_gender_2"></check-box>
  803. </div>
  804. <div class="inline_block" style="margin-left: 25px;">
  805. 年龄:
  806. <div class="under_line" style="width: 70px;">{{getAge(patientInfo)}}</div>
  807. </div>
  808. <div class="inline_block" style="margin-left:25px;">
  809. 住院号/ID号:
  810. <div class="under_line" style="width: 120px;">
  811. {{patientInfo.admission_number?patientInfo.admission_number:'无'}}/{{patientInfo.dialysis_no}}
  812. </div>
  813. </div>
  814. </div>
  815. <div class="row flex">
  816. <div class="inline_block">
  817. 诊断:
  818. <div class="under_line" style="width: 500px;text-align: left">{{patientInfo.diagnose}}</div>
  819. </div>
  820. </div>
  821. <table class="print-table-no" border="1" count="0">
  822. <tbody>
  823. <tr style="line-height:35px;padding:8px 5px;">
  824. <td colspan="7" style="font-size: 18px">医嘱</td>
  825. </tr>
  826. <tr style="line-height:35px;padding:8px 5px;">
  827. <td colspan="4" style="font-size: 16px">开医嘱</td>
  828. <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
  829. </tr>
  830. <tr style="line-height:35px;padding:8px 5px;">
  831. <td style="font-size: 16px" width="10%">时间</td>
  832. <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
  833. <td style="font-size: 16px" width="10%">医生签名</td>
  834. <td style="font-size: 16px" width="10%">核对人签名</td>
  835. <td style="font-size: 16px" width="10%">执行人签名</td>
  836. <td style="font-size: 16px" width="10%">时间</td>
  837. </tr>
  838. <template v-for="(group, group_index) in advice_groups_2" >
  839. <tr v-for="(advice, advice_index) in group.advices" :key="advice_index" >
  840. <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
  841. <span v-if="advice.start_time">
  842. {{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}
  843. </span>
  844. <span v-else>&nbsp;<br/>&nbsp;</span>
  845. </td>
  846. <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
  847. <span >{{advice.advice_name }}</span>
  848. <span>{{advice.advice_desc}}</span>
  849. <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
  850. <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
  851. <span v-if="advice.parent_id == 0 && advice.children.length == 0">{{advice.delivery_way}}</span>
  852. <span v-if="advice.parent_id == 0 && advice.children.length == 0">{{advice.execution_frequency}}</span>
  853. <span v-if="advice.parent_id == 0 && advice.children && advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
  854. </td>
  855. <td colspan="2" height="60px" style="text-align: center" v-else >
  856. <span>{{advice.delivery_way}}</span>
  857. <span>{{advice.execution_frequency}}</span>
  858. <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
  859. </td>
  860. <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
  861. <td height="60px">
  862. <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
  863. <img class="es-img" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
  864. </td>
  865. <td height="60px">
  866. <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
  867. <img class="es-img" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
  868. </td>
  869. <td height="60px">
  870. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
  871. <img class="es-img" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
  872. </td>
  873. <td height="60px">
  874. <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</span>
  875. </td>
  876. </tr>
  877. </template>
  878. </tbody>
  879. </table>
  880. </template>
  881. </div>
  882. </div>
  883. </div>
  884. </template>
  885. <script>
  886. import CheckBox from '../batch_print/option_check_box'
  887. import { getDialysisRecord } from '@/api/dialysis'
  888. import { getDataConfig } from '@/utils/data'
  889. import { jsGetAge, uParseTime } from '@/utils/tools'
  890. import LabelBox from '../printItem/LabelBox'
  891. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  892. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  893. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  894. import print from 'print-js'
  895. export default {
  896. name: 'dialysisPrintOrder',
  897. props: ['childResponse'],
  898. components: {
  899. // DialysisPrintOrderOne,
  900. // DialysisPrintOrderTwo,
  901. CheckBox,
  902. LabelBox,
  903. BreadCrumb
  904. },
  905. data() {
  906. return {
  907. crumbs: [
  908. { path: false, name: '透析管理' },
  909. { path: false, name: '打印单' }
  910. ],
  911. operators: [],
  912. adminUser: [],
  913. check: {},
  914. dialysisOrder: {
  915. DeviceNumber: []
  916. },
  917. operatorMaps: {},
  918. complications: ['低血压', '高血压', '心律失常', '头晕', '头痛', '呕吐', '抽搐', '出血', '心衰', '腹痛'],
  919. jilurow: 0,
  920. advice_jilurow: 0,
  921. loading: false,
  922. orgname: '',
  923. patientInfo_gender_1: false,
  924. patientInfo_gender_2: false,
  925. patientInfo_source_2: false,
  926. patientInfo_source_1: false,
  927. modeOptions: {},
  928. replacementWays: [],
  929. perfusionApparatus: [],
  930. anticoagulantsConfit: {},
  931. bloodAccessParOpera: {},
  932. dialysateFormulationOptions: {},
  933. queryParams: {
  934. xtdate: '',
  935. xtno: ''
  936. },
  937. patientInfo: {
  938. birth: '',
  939. age: '',
  940. DialysisSchedule: {
  941. device_number: { number: '' },
  942. device_zone: { name: '' }
  943. },
  944. gender: 0
  945. },
  946. predialysis: {
  947. score: '',
  948. internal_fistula: '',
  949. internal_fistula_skin: '',
  950. catheter: '',
  951. blood_access_part_opera_name: ''
  952. },
  953. afterdialysis: {
  954. complications_index: ''
  955. },
  956. prescription: {
  957. dialysate_formulation_name: '',
  958. device: {}
  959. },
  960. advices: [],
  961. users: [],
  962. monitors: [],
  963. monitors2: [],
  964. summary: {},
  965. receiverTreatmentAccess: {},
  966. org_template_info: {},
  967. doctor_advices: [],
  968. advice_groups: [],
  969. advice_groups_2: [],
  970. AlPanel: {
  971. id: 0,
  972. name: '',
  973. type: 1,
  974. shouji: 2,
  975. weichi: 2,
  976. zongliang: 2,
  977. gaimingcheng: -1,
  978. gaijiliang: -1,
  979. shouji_unit: 'mg',
  980. weichi_unit: 'mg/h',
  981. zongliang_unit: 'mg',
  982. gaimingcheng_unit: '',
  983. gaijiliang_unit: ''
  984. }
  985. }
  986. },
  987. methods: {
  988. getAdminUser(id) {
  989. if (id == 0) {
  990. return ''
  991. }
  992. if (id == undefined) {
  993. return ''
  994. }
  995. for (let i = 0; i < this.adminUser.length; i++) {
  996. if (this.adminUser[i].id == id) {
  997. return this.adminUser[i].name
  998. }
  999. }
  1000. },
  1001. getTime(value, temp) {
  1002. if (value == 0) {
  1003. return ''
  1004. }
  1005. if (value != undefined) {
  1006. return uParseTime(value, temp)
  1007. }
  1008. return ''
  1009. },
  1010. printThisPage() {
  1011. var ptime = Math.round(new Date().getTime() / 1000)
  1012. this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
  1013. const style = '@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}.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:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .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;}'
  1014. if (this.org_template_info.template_id != 2) {
  1015. printJS({
  1016. printable: 'dialysis-print-box',
  1017. type: 'html',
  1018. style: style,
  1019. scanStyles: false
  1020. })
  1021. } else if (this.org_template_info.template_id == 2) {
  1022. printJS({
  1023. printable: 'dialysis-print-box-1',
  1024. type: 'html',
  1025. style: style,
  1026. scanStyles: false
  1027. })
  1028. }
  1029. }, getNumber() {
  1030. if (this.dialysisOrder != null) {
  1031. return this.patientInfo.DialysisSchedule.device_zone.name + this.dialysisOrder.DeviceNumber.number
  1032. } else {
  1033. return this.patientInfo.DialysisSchedule.device_zone.name + this.patientInfo.DialysisSchedule.device_number.number
  1034. }
  1035. },
  1036. getXuserName(id) {
  1037. if (id <= 0) {
  1038. return ''
  1039. }
  1040. var name = ''
  1041. if (this.users == null || typeof (this.users.length) === 'undefined') {
  1042. return name
  1043. }
  1044. var leng = this.users.length
  1045. if (leng == 0) {
  1046. return name
  1047. }
  1048. for (let index = 0; index < leng; index++) {
  1049. if (this.users[index].id == id) {
  1050. name = this.users[index].name
  1051. break
  1052. }
  1053. }
  1054. return name
  1055. },
  1056. setAdminUserES(id) {
  1057. if (id == 0) {
  1058. return ''
  1059. }
  1060. if (id in this.operatorMaps) {
  1061. return this.operatorMaps[id].url
  1062. } else {
  1063. return ''
  1064. }
  1065. },
  1066. modeName(mode_id) {
  1067. return typeof (this.modeOptions[mode_id]) !== 'undefined' && typeof (this.modeOptions[mode_id].name) !== 'undefined' ? this.modeOptions[mode_id].name : ''
  1068. },
  1069. getDialysisRecord() {
  1070. this.loading = true
  1071. // getDialysisRecord(this.queryParams).then(response => {
  1072. var response = this.childResponse
  1073. if (response.data.state == 1) {
  1074. this.adminUser = response.data.data.users
  1075. this.users = response.data.data.users
  1076. this.patientInfo = response.data.data.patientInfo
  1077. this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
  1078. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1079. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1080. this.patientInfo.first_dialysis_date = uParseTime(response.data.data.patientInfo.first_dialysis_date, '{y}-{m}-{d}')
  1081. } else {
  1082. this.patientInfo.first_dialysis_date = ''
  1083. }
  1084. this.check = response.data.data.check
  1085. this.predialysis = response.data.data.PredialysisEvaluation
  1086. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
  1087. this.afterdialysis = response.data.data.AssessmentAfterDislysis
  1088. this.operators = response.data.data.operators
  1089. this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder
  1090. if (this.operators.length > 0) {
  1091. var operatorsLen = this.operators.length
  1092. for (var index = 0; index < operatorsLen; index++) {
  1093. this.$set(this.operatorMaps, this.operators[index].creator, this.operators[index])
  1094. }
  1095. }
  1096. this.afterdialysis.txqnx = -1
  1097. if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  1098. this.afterdialysis.txqnx = 0
  1099. }
  1100. if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  1101. this.afterdialysis.txqnx = 1
  1102. }
  1103. if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  1104. this.afterdialysis.txqnx = 2
  1105. }
  1106. if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  1107. this.afterdialysis.txqnx = 3
  1108. }
  1109. this.afterdialysis.complications = this.afterdialysis.complication.split(',')
  1110. this.afterdialysis.complications_other = []
  1111. this.afterdialysis.complications_index = []
  1112. var acllen = this.afterdialysis.complications.length
  1113. for (let index = 0; index < acllen; index++) {
  1114. if (this.complications.indexOf(this.afterdialysis.complications[index]) >= 0) {
  1115. this.afterdialysis.complications_index.push(this.afterdialysis.complications[index])
  1116. } else if (this.complications.indexOf(this.afterdialysis.complications[index]) < 0 && this.afterdialysis.complications_other.indexOf(this.afterdialysis.complications[index]) < 0) {
  1117. this.afterdialysis.complications_other.push(this.afterdialysis.complications[index])
  1118. }
  1119. }
  1120. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(',')
  1121. this.prescription = response.data.data.dialysisPrescription
  1122. this.receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
  1123. this.prescription.mode = this.modeName(this.prescription.mode_id)
  1124. var rwLen = this.replacementWays.length
  1125. this.prescription.replacement = ''
  1126. for (let index = 0; index < rwLen; index++) {
  1127. if (this.replacementWays[index].id == this.prescription.replacement_way) {
  1128. this.prescription.replacement = this.replacementWays[index].name
  1129. break
  1130. }
  1131. }
  1132. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(this.prescription.dialysate_formulation)
  1133. var paLen = this.perfusionApparatus.length
  1134. this.prescription.perfusion_apparatus_name = ''
  1135. for (let index = 0; index < paLen; index++) {
  1136. if (this.perfusionApparatus[index].id == this.prescription.perfusion_apparatus) {
  1137. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[index].name
  1138. break
  1139. }
  1140. }
  1141. var acLen = this.anticoagulantsConfit.length
  1142. var thisALID = this.prescription.anticoagulant
  1143. this.prescription.anticoagulant_name = ''
  1144. if (typeof (this.anticoagulantsConfit[thisALID]) !== 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
  1145. this.prescription.anticoagulant_name = this.anticoagulantsConfit[thisALID].name
  1146. this.AlPanel = this.anticoagulantsConfit[thisALID]
  1147. }
  1148. this.advices = response.data.data.advices
  1149. this.monitors = response.data.data.monitors
  1150. this.summary = response.data.data.summary
  1151. this.org_template_info = response.data.data.org_template_info
  1152. if (this.monitors.length < 8) {
  1153. var nl = 8 - this.monitors.length
  1154. for (let index = 0; index < nl; index++) {
  1155. if (this.monitors[index] == undefined || this.monitors[index].length <= 0) {
  1156. this.monitors.push([])
  1157. } else {
  1158. continue
  1159. }
  1160. }
  1161. }
  1162. if (this.monitors.length > 15) {
  1163. const tempMonitors = []
  1164. const tempMonitors2 = []
  1165. for (let index = 0; index < this.monitors.length; index++) {
  1166. if (index < 15) {
  1167. tempMonitors.push(this.monitors[index])
  1168. } else {
  1169. tempMonitors2.push(this.monitors[index])
  1170. }
  1171. }
  1172. this.monitors = tempMonitors
  1173. this.monitors2 = tempMonitors2
  1174. }
  1175. this.jilurow = this.monitors.length + 1
  1176. this.advice_jilurow = this.advices.length + 1
  1177. var childMap = {}
  1178. for (const index in this.advices) {
  1179. if (this.advices[index].parent_id == 0) {
  1180. continue
  1181. }
  1182. if (!(this.advices[index].parent_id in childMap)) {
  1183. childMap[this.advices[index].parent_id] = []
  1184. }
  1185. childMap[this.advices[index].parent_id].push(this.advices[index])
  1186. }
  1187. var advices = []
  1188. for (const index in this.advices) {
  1189. if (this.advices[index].parent_id > 0) {
  1190. continue
  1191. }
  1192. var item = this.advices[index]
  1193. if (item.id in childMap) {
  1194. item.children = childMap[item.id]
  1195. } else {
  1196. item.children = []
  1197. }
  1198. advices.push(item)
  1199. }
  1200. var leftAdvice = []
  1201. var rightAdvice = []
  1202. var adlen = advices.length
  1203. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  1204. for (var i = 0; i < halfLen; i++) {
  1205. leftAdvice.push(advices[i])
  1206. rightAdvice.push(advices[i + halfLen])
  1207. }
  1208. if (halfLen < 5) {
  1209. var nl = 5 - leftAdvice.length
  1210. for (let index = 0; index < nl; index++) {
  1211. leftAdvice.push([])
  1212. }
  1213. var nl = 5 - rightAdvice.length
  1214. for (let index = 0; index < nl; index++) {
  1215. rightAdvice.push([])
  1216. }
  1217. }
  1218. this.advices = []
  1219. for (var i = 0; i < halfLen; i++) {
  1220. var item = []
  1221. item.push(leftAdvice[i])
  1222. item.push(rightAdvice[i])
  1223. this.advices.push(item)
  1224. }
  1225. this.loading = false
  1226. this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
  1227. for (let index = 0; index < this.doctor_advices.length; index++) {
  1228. this.doctor_advices[index]['isShow'] = 2
  1229. }
  1230. if (this.doctor_advices.length > 0) {
  1231. var group = this.newAdviceGroupObject()
  1232. var initGroupBlock = function(group, advice) {
  1233. group.group_no = advice.groupno
  1234. }
  1235. for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
  1236. var new_advice_index = 0
  1237. if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
  1238. new_advice_index = index + this.doctor_advices[index].children.length + 1
  1239. var doctor_advice = {
  1240. delivery_way: this.doctor_advices[index].delivery_way,
  1241. execution_frequency: this.doctor_advices[index].execution_frequency,
  1242. groupno: this.doctor_advices[index].groupno,
  1243. id: this.doctor_advices[index].id,
  1244. parent_id: this.doctor_advices[index].parent_id,
  1245. children: this.doctor_advices[index].children,
  1246. remark: this.doctor_advices[index].remark,
  1247. execution_staff: this.doctor_advices[index].execution_staff,
  1248. checker: this.doctor_advices[index].checker,
  1249. execution_time: this.doctor_advices[index].execution_time,
  1250. advice_doctor: this.doctor_advices[index].advice_doctor
  1251. }
  1252. doctor_advice['isShow'] = 1
  1253. this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1254. // this.doctor_advices.push(doctor_advice)
  1255. }
  1256. }
  1257. var templength = 0
  1258. if (this.doctor_advices.length > 12) {
  1259. templength = 12
  1260. } else {
  1261. templength = this.doctor_advices.length
  1262. }
  1263. for (let index = 0; index < templength; index++) {
  1264. const advice = this.doctor_advices[index]
  1265. if (advice.groupno == 0) {
  1266. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1267. if (advice.parent_id > 0) {
  1268. if (this.advice_groups.length > 0) {
  1269. var parent_group = this.advice_groups[
  1270. this.advice_groups.length - 1
  1271. ]
  1272. if (parent_group.advices.length > 0) {
  1273. if (parent_group.advices[0].id == advice.parent_id) {
  1274. parent_group.advices.push(advice)
  1275. }
  1276. }
  1277. }
  1278. continue
  1279. } else {
  1280. if (group.group_no > 0) {
  1281. this.advice_groups.push(group)
  1282. group = this.newAdviceGroupObject()
  1283. }
  1284. initGroupBlock(group, advice)
  1285. group.advices.push(advice)
  1286. this.advice_groups.push(group)
  1287. group = this.newAdviceGroupObject()
  1288. continue
  1289. }
  1290. }
  1291. if (group.group_no > 0 && group.group_no != advice.groupno) {
  1292. this.advice_groups.push(group)
  1293. group = this.newAdviceGroupObject()
  1294. }
  1295. if (group.group_no == 0) {
  1296. initGroupBlock(group, advice)
  1297. }
  1298. if (group.group_no == advice.groupno) {
  1299. group.advices.push(advice)
  1300. }
  1301. if (index == 11) {
  1302. this.advice_groups.push(group)
  1303. group = this.newAdviceGroupObject()
  1304. }
  1305. }
  1306. if (this.doctor_advices.length > 12) {
  1307. for (let index = 12; index < this.doctor_advices.length; index++) {
  1308. const advice = this.doctor_advices[index]
  1309. if (advice.groupno == 0) {
  1310. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1311. if (advice.parent_id > 0) {
  1312. if (this.advice_groups_2.length > 0) {
  1313. var parent_group = this.advice_groups_2[
  1314. this.advice_groups_2.length - 1
  1315. ]
  1316. if (parent_group.advices.length > 0) {
  1317. if (parent_group.advices[0].id == advice.parent_id) {
  1318. parent_group.advices.push(advice)
  1319. }
  1320. }
  1321. }
  1322. continue
  1323. } else {
  1324. if (group.group_no > 0) {
  1325. this.advice_groups_2.push(group)
  1326. group = this.newAdviceGroupObject()
  1327. }
  1328. initGroupBlock(group, advice)
  1329. group.advices.push(advice)
  1330. this.advice_groups_2.push(group)
  1331. group = this.newAdviceGroupObject()
  1332. continue
  1333. }
  1334. }
  1335. if (group.group_no > 0 && group.group_no != advice.groupno) {
  1336. this.advice_groups_2.push(group)
  1337. group = this.newAdviceGroupObject()
  1338. }
  1339. if (group.group_no == 0) {
  1340. initGroupBlock(group, advice)
  1341. }
  1342. if (group.group_no == advice.groupno) {
  1343. group.advices.push(advice)
  1344. }
  1345. }
  1346. }
  1347. if (group.group_no > 0) {
  1348. // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1349. if (this.doctor_advices.length > 12) {
  1350. this.advice_groups_2.push(group)
  1351. } else {
  1352. this.advice_groups.push(group)
  1353. }
  1354. }
  1355. }
  1356. } else {
  1357. this.loading = false
  1358. this.$message.error('请求数据失败')
  1359. return false
  1360. }
  1361. // })
  1362. },
  1363. bloodAccessParOperaName(id) {
  1364. if (id in this.bloodAccessParOpera) {
  1365. return this.bloodAccessParOpera[id].name
  1366. }
  1367. return ''
  1368. },
  1369. dialysateFormulationName(id) {
  1370. if (id in this.dialysateFormulationOptions) {
  1371. return this.dialysateFormulationOptions[id].name
  1372. }
  1373. return ''
  1374. }, getAge: function(val) {
  1375. if (this.org_template_info.template_id == 2) {
  1376. if (val.age == 0) {
  1377. return jsGetAge(val.birth, '-')
  1378. } else {
  1379. return val.age
  1380. }
  1381. } else {
  1382. return jsGetAge(val.birth, '-')
  1383. }
  1384. }, newAdviceGroupObject: function() {
  1385. return Object.assign(
  1386. {},
  1387. {
  1388. group_no: 0,
  1389. // advice_doctor: 0,
  1390. // start_time: 0,
  1391. advices: []
  1392. // exec_staff: 0,
  1393. // exec_time: 0,
  1394. // checker: 0,
  1395. }
  1396. )
  1397. }, getFloat: function(x) {
  1398. if (x != '.') {
  1399. var f = Math.round(x * 100) / 100
  1400. var s = f.toString()
  1401. var rs = s.indexOf('.')
  1402. if (rs <= 0) {
  1403. rs = s.length
  1404. s += '.'
  1405. }
  1406. while (s.length <= rs + 1) {
  1407. s += '0'
  1408. }
  1409. return s
  1410. } else {
  1411. return '0.0'
  1412. }
  1413. }
  1414. },
  1415. watch: {
  1416. 'patientInfo.gender': function() {
  1417. if (this.patientInfo.gender == 1) {
  1418. this.patientInfo_gender_1 = true
  1419. this.patientInfo_gender_2 = false
  1420. } else if (this.patientInfo.gender == 2) {
  1421. this.patientInfo_gender_2 = true
  1422. this.patientInfo_gender_1 = false
  1423. } else {
  1424. this.patientInfo_gender_2 = false
  1425. this.patientInfo_gender_1 = false
  1426. }
  1427. },
  1428. 'patientInfo.source': function() {
  1429. if (this.patientInfo.source == 1) {
  1430. this.patientInfo_source_1 = true
  1431. this.patientInfo_source_2 = false
  1432. } else if (this.patientInfo.source == 2) {
  1433. this.patientInfo_source_2 = true
  1434. this.patientInfo_source_1 = false
  1435. } else {
  1436. this.patientInfo_source_2 = false
  1437. this.patientInfo_source_1 = false
  1438. }
  1439. }
  1440. },
  1441. created() {
  1442. var xtuser = this.$store.getters.xt_user
  1443. this.orgname = xtuser.org.org_name
  1444. // this.orgname = "遂溪方济医院";
  1445. this.modeOptions = this.$store.getters.treatment_mode
  1446. this.replacementWays = this.$store.getters.replacement_ways
  1447. this.perfusionApparatus = this.$store.getters.perfusion_apparatus
  1448. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  1449. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1450. var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1451. for (var key in bloodAccessParOpera) {
  1452. this.bloodAccessParOpera[bloodAccessParOpera[key].id] = bloodAccessParOpera[key]
  1453. }
  1454. var dialysateFormulationOptions = getDataConfig('hemodialysis', 'dialysate_formulation')
  1455. for (var key in dialysateFormulationOptions) {
  1456. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] = dialysateFormulationOptions[key]
  1457. }
  1458. const xtdate = this.$route.query && this.$route.query.xtdate
  1459. const xtno = this.$route.query && this.$route.query.xtno
  1460. if (typeof (xtdate) === 'string' && xtdate.length > 0 && typeof (xtno) === 'string' && xtno.length > 0) {
  1461. this.queryParams.xtdate = xtdate
  1462. this.queryParams.xtno = xtno
  1463. this.getDialysisRecord()
  1464. } else {
  1465. this.$message.error('参数不齐')
  1466. return false
  1467. }
  1468. }
  1469. }
  1470. </script>
  1471. <style>
  1472. .print_page_main_content {
  1473. background-color: white;
  1474. width: 960px;
  1475. margin: 0 auto 50px;
  1476. padding: 0 0 0 0;
  1477. page-break-after: always;
  1478. }
  1479. .print_page_main_content .order-yy-name {
  1480. margin: auto;
  1481. text-align: center;
  1482. font-size: 20px;
  1483. letter-spacing: 5px;
  1484. }
  1485. .dialysis-print-order .order-title {
  1486. margin: auto;
  1487. font-weight: 600;
  1488. text-align: center;
  1489. font-size: 22px;
  1490. padding: 10px;
  1491. }
  1492. .print_page_main_content .order_title {
  1493. text-align: center;
  1494. font-size: 23px;
  1495. line-height: 50px;
  1496. font-weight: 500;
  1497. }
  1498. .row {
  1499. font-size: 14px;
  1500. line-height: 20px;
  1501. padding: 5px 0;
  1502. }
  1503. .inline_block {
  1504. display: inline-block;
  1505. }
  1506. .under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}
  1507. .under_line_two::before {content: "\00A0";}
  1508. .under_line_two::after {content: "\00A0";}
  1509. .under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap;width: 50%;}
  1510. .under_line::before {
  1511. content: "\00A0";
  1512. }
  1513. .under_line::after {
  1514. content: "\00A0";
  1515. }
  1516. .flex {
  1517. display: -webkit-box;
  1518. display: -moz-box;
  1519. display: -ms-flexbox;
  1520. display: -webkit-flex;
  1521. display: flex;
  1522. align-items: center;
  1523. -webkit-align-items: center;
  1524. box-align: center;
  1525. -moz-box-align: center;
  1526. -webkit-box-align: center;
  1527. text-align: center;
  1528. -webkit-justify-content: space-between;
  1529. justify-content: space-between;
  1530. -moz-box-pack: space-between;
  1531. -webkit--moz-box-pack: space-between;
  1532. box-pack: space-between;
  1533. }
  1534. .print_page_main_content .proj_table {
  1535. width: 100%;
  1536. border: 1px solid;
  1537. border-collapse: collapse;
  1538. padding: 2px;
  1539. }
  1540. .print_page_main_content .proj_table tbody tr td {
  1541. border: 1px solid;
  1542. /* text-align: center; */
  1543. font-size: 16px;
  1544. padding: 5px 8px;
  1545. line-height: 30px;
  1546. }
  1547. .print_page_main_content .proj_table .inside_table {
  1548. width: 100%;
  1549. border: hidden; /* 解决边框冲突 */
  1550. border-collapse: collapse;
  1551. }
  1552. .print_page_main_content .proj_table .inside_table tr td {
  1553. border: 1px solid;
  1554. text-align: center;
  1555. font-size: 14px;
  1556. padding: 6px 5px;
  1557. line-height: 16px;
  1558. }
  1559. .print-table-no {
  1560. width: 100%;
  1561. text-align: center;
  1562. border-collapse: collapse;
  1563. font-size: 14px;
  1564. }
  1565. .es-img {
  1566. height: 25px;
  1567. }
  1568. .advice-name {
  1569. text-align: left !important;
  1570. line-height: 16px !important;
  1571. }
  1572. .advice-children {
  1573. display: flex;
  1574. }
  1575. .margin-bottom-300 {
  1576. margin-bottom:450px;
  1577. }
  1578. .margin-bottom-600 {
  1579. margin-bottom:600px;
  1580. }
  1581. .margin-bottom-900 {
  1582. margin-bottom:900px;
  1583. }
  1584. </style>