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

DialysisPrintOrderThirty.vue 71KB

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