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

DialysisPrintOrderOne.vue 84KB

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