DialysisPrintOrderFortyEight.vue 95KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646
  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"></div>
  7. <div class="order-title">
  8. {{ orgname }}&nbsp;&nbsp;&nbsp;血液净化治疗记录单
  9. </div>
  10. <table class="print-table" border="1" style="margin-top: 10px">
  11. <tr>
  12. <td
  13. style="text-align: left; width: 170px; line-height: 30px"
  14. colspan="1"
  15. >
  16. <span style="display: inline-block; margin-left: 15px">
  17. {{ getDatge(queryParams.xtdate) }}
  18. </span>
  19. </td>
  20. <td style="text-align: center; width: 170px" colspan="1">
  21. 姓名:
  22. <span style="display: inline-block; margin-left: 10px">
  23. {{ patientInfo.name }}
  24. </span>
  25. </td>
  26. <td style="text-align: center" colspan="1">
  27. 性别:
  28. <span style="display: inline-block; margin-left: 10px">
  29. {{ patientInfo.gender }}
  30. </span>
  31. </td>
  32. <td style="text-align: center" colspan="1">
  33. 年龄:
  34. <span style="display: inline-block; margin-left: 10px">
  35. {{ getAge(patientInfo) }}
  36. </span>
  37. </td>
  38. <td style="text-align: center" colspan="1">
  39. <label-box
  40. showValue="门诊"
  41. :isChecked="
  42. receiverTreatmentAccess.condition == 2 ? true : false
  43. "
  44. ></label-box>
  45. <label-box
  46. showValue="住院"
  47. :isChecked="
  48. receiverTreatmentAccess.condition == 1 ? true : false
  49. "
  50. ></label-box>
  51. </td>
  52. <td style="text-align: center" colspan="1">
  53. <template v-if="receiverTreatmentAccess.condition == 1">
  54. 住院号:
  55. <span style="display: inline-block; margin-left: 10px">
  56. {{
  57. receiverTreatmentAccess.admission_number
  58. ? receiverTreatmentAccess.admission_number
  59. : "/"
  60. }}
  61. </span>
  62. </template>
  63. <template v-else>
  64. 门诊号:
  65. <span style="display: inline-block; margin-left: 10px">
  66. {{
  67. patientInfo.admission_number
  68. ? patientInfo.admission_number
  69. : "/"
  70. }}
  71. </span>
  72. </template>
  73. </td>
  74. <td style="text-align: center" colspan="1">
  75. 床位号:
  76. <span style="display: inline-block; margin-left: 10px">
  77. {{
  78. dialysisOrder &&
  79. dialysisOrder.DeviceNumber &&
  80. dialysisOrder.DeviceNumber.number > 0
  81. ? dialysisOrder.DeviceNumber.number
  82. : patientInfo.DialysisSchedule.device_number.number
  83. }}
  84. </span>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td style="text-align: left" colspan="2">
  89. <span style="display: inline-block; margin-left: 15px"
  90. >治疗方式:</span
  91. >
  92. <label-box
  93. :isChecked="prescription.mode_id == 1 ? true : false"
  94. showValue="HD"
  95. ></label-box
  96. >&nbsp;
  97. <label-box
  98. :isChecked="prescription.mode_id == 2 ? true : false"
  99. showValue="HDF"
  100. ></label-box
  101. >&nbsp;
  102. <label-box
  103. :isChecked="
  104. prescription.mode_id == 3
  105. ? true
  106. : prescription.mode_id == 4
  107. ? true
  108. : false
  109. "
  110. showValue="HP"
  111. ></label-box
  112. >&nbsp;
  113. <!-- <label-box :isChecked="prescription.mode_id == 7 ? true : false" showValue="IUF"></label-box>&nbsp; -->
  114. <label-box
  115. :isChecked="prescription.mode_id == 5 ? true : false"
  116. showValue="HF"
  117. ></label-box
  118. >&nbsp;
  119. </td>
  120. <td style="text-align: left" colspan="5">
  121. <span
  122. style="display: inline-block; margin-left: 15px; width: 100%"
  123. >诊断: {{ patientInfo.diagnose }}</span
  124. >
  125. </td>
  126. </tr>
  127. <tr>
  128. <td style="text-align: left" colspan="1">
  129. <span style="display: inline-block; margin-left: 15px">
  130. 干体重:
  131. {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}kg
  132. </span>
  133. </td>
  134. <td style="text-align: left" colspan="1">
  135. <span style="display: inline-block; margin-left: 15px">
  136. 上次透后体重:
  137. {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}kg
  138. </span>
  139. </td>
  140. <td style="text-align: left" colspan="2">
  141. <span style="display: inline-block; margin-left: 15px">
  142. 钙:
  143. {{
  144. prescription.calcium ? prescription.calcium : "/"
  145. }}&nbsp;mmol/L
  146. </span>
  147. </td>
  148. <td style="text-align: left" colspan="2">
  149. <span style="display: inline-block; margin-left: 15px">
  150. 透析液温度:{{
  151. prescription.dialysate_temperature
  152. ? prescription.dialysate_temperature
  153. : "/"
  154. }}&nbsp;℃
  155. </span>
  156. </td>
  157. <td style="text-align: left" colspan="1">
  158. <span style="display: inline-block; margin-left: 15px">
  159. 电导率:{{
  160. prescription.conductivity ? prescription.conductivity : "/"
  161. }}&nbsp;(mS/cm)
  162. </span>
  163. </td>
  164. </tr>
  165. <tr>
  166. <td style="text-align: left" colspan="1">
  167. <span style="display: inline-block; margin-left: 15px">
  168. 透前体重:{{
  169. predialysis.weight_before ? predialysis.weight_before : "/"
  170. }}kg
  171. </span>
  172. </td>
  173. <td style="text-align: left" colspan="1">
  174. <span style="display: inline-block; margin-left: 15px">
  175. 设定脱水量:{{
  176. prescription.target_ultrafiltration
  177. ? prescription.target_ultrafiltration
  178. : "/"
  179. }}ml
  180. </span>
  181. </td>
  182. <td style="text-align: left" colspan="1">
  183. <span style="display: inline-block; margin-left: 15px">
  184. <label-box
  185. :isChecked="anticoagulant == 1 ? true : false"
  186. showValue="无肝素"
  187. ></label-box>
  188. </span>
  189. </td>
  190. <td style="text-align: left" colspan="2">
  191. <span style="display: inline-block; margin-left: 15px">
  192. <span v-if="prescription.anticoagulant == 2"
  193. >普通肝素首剂:</span
  194. >
  195. <span v-if="prescription.anticoagulant == 3"
  196. >低分子肝素首剂:</span
  197. >
  198. <span v-if="prescription.anticoagulant == 4"
  199. >阿加曲班肝素首剂:</span
  200. >
  201. <span v-if="prescription.anticoagulant == 5"
  202. >枸橼酸钠肝素首剂:</span
  203. >
  204. <span v-if="prescription.anticoagulant == 6"
  205. >低分子肝素钙首剂:</span
  206. >
  207. <span v-if="prescription.anticoagulant == 7"
  208. >低分子肝素钠首剂:</span
  209. >
  210. <span v-if="prescription.anticoagulant == 8"
  211. >依诺肝素首剂:</span
  212. >
  213. <span v-if="prescription.anticoagulant == 9">达肝素首剂:</span>
  214. <span v-if="prescription.anticoagulant == 10"
  215. >体外抗凝肝素首剂:</span
  216. >
  217. {{
  218. prescription.anticoagulant_shouji
  219. ? prescription.anticoagulant_shouji
  220. : "/"
  221. }}
  222. </span>
  223. <span
  224. v-if="
  225. prescription.anticoagulant == 7 ||
  226. prescription.anticoagulant == 6
  227. "
  228. >iu</span
  229. >
  230. <span v-if="prescription.anticoagulant == 4">mg</span>
  231. <span v-if="prescription.anticoagulant == 3">iu</span>
  232. <span v-if="prescription.anticoagulant == 2">mg</span>
  233. <span v-if="prescription.anticoagulant == 1">mg</span>
  234. </td>
  235. <td style="text-align: left" colspan="1">
  236. <span style="display: inline-block; margin-left: 15px">
  237. 维持:
  238. {{
  239. prescription.anticoagulant_weichi
  240. ? prescription.anticoagulant_weichi
  241. : "/"
  242. }}
  243. </span>
  244. <span
  245. v-if="
  246. prescription.anticoagulant == 7 ||
  247. prescription.anticoagulant == 6
  248. "
  249. >iu/h</span
  250. >
  251. <span v-if="prescription.anticoagulant == 5">ml/h</span>
  252. <span v-if="prescription.anticoagulant == 4">mg/h</span>
  253. <span v-if="prescription.anticoagulant == 3">iu/h</span>
  254. <span v-if="prescription.anticoagulant == 2">mg/h</span>
  255. <span v-if="prescription.anticoagulant == 1">mg/h</span>
  256. </td>
  257. <td style="text-align: left" colspan="2">
  258. <span style="display: inline-block; margin-left: 15px">
  259. 总量:
  260. {{
  261. prescription.anticoagulant_zongliang
  262. ? prescription.anticoagulant_zongliang
  263. : "/"
  264. }}
  265. </span>
  266. <span
  267. v-if="
  268. prescription.anticoagulant == 7 ||
  269. prescription.anticoagulant == 6
  270. "
  271. >iu</span
  272. >
  273. <span v-if="prescription.anticoagulant == 4">mg</span>
  274. <span v-if="prescription.anticoagulant == 3">iu</span>
  275. <span v-if="prescription.anticoagulant == 2">mg</span>
  276. <span v-if="prescription.anticoagulant == 1">mg</span>
  277. </td>
  278. </tr>
  279. <tr>
  280. <td style="text-align: left" colspan="1">
  281. <span style="display: inline-block; margin-left: 15px">
  282. 透后体重:
  283. {{
  284. afterdialysis.weight_after
  285. ? parseFloat(
  286. afterdialysis.weight_after -
  287. afterdialysis.additional_weight
  288. ).toFixed(2)
  289. : "/"
  290. }}kg
  291. </span>
  292. </td>
  293. <td style="text-align: left" colspan="1">
  294. <span style="display: inline-block; margin-left: 15px">
  295. 实际脱水量:{{
  296. afterdialysis.actual_ultrafiltration
  297. ? afterdialysis.actual_ultrafiltration
  298. : "/"
  299. }}ml
  300. </span>
  301. </td>
  302. <td style="text-align: left" colspan="2">
  303. <span style="display: inline-block; margin-left: 15px">
  304. 透析时间:
  305. {{
  306. prescription.dialysis_duration_hour
  307. ? prescription.dialysis_duration_hour
  308. : "0"
  309. }}小时{{
  310. prescription.dialysis_duration_minute
  311. ? prescription.dialysis_duration_minute
  312. : "0"
  313. }}分钟
  314. </span>
  315. </td>
  316. <td style="text-align: left" colspan="1">
  317. <span style="display: inline-block; margin-left: 15px">
  318. 透析器型号:{{
  319. prescription.dialyzer_perfusion_apparatus
  320. ? prescription.dialyzer_perfusion_apparatus
  321. : "/"
  322. }}
  323. </span>
  324. </td>
  325. <td style="text-align: left" colspan="2">
  326. <span style="display: inline-block; margin-left: 15px">
  327. 置换方式:
  328. <label-box
  329. :isChecked="
  330. prescription.displace_liqui_part == 1 ? true : false
  331. "
  332. showValue="前"
  333. ></label-box
  334. >&nbsp;
  335. <label-box
  336. :isChecked="
  337. prescription.displace_liqui_part == 2 ? true : false
  338. "
  339. showValue="后"
  340. ></label-box>
  341. &nbsp; (总量:{{
  342. prescription.displace_liqui_value
  343. ? prescription.displace_liqui_value
  344. : "/"
  345. }}L)
  346. </span>
  347. </td>
  348. </tr>
  349. <tr>
  350. <td style="text-align: left" colspan="4">
  351. <span style="display: inline-block; margin-left: 15px">
  352. 透前评估: 入科方式:
  353. <label-box
  354. :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
  355. showValue="步行"
  356. ></label-box
  357. >&nbsp;
  358. <label-box
  359. :isChecked="receiverTreatmentAccess.way == 2 ? true : false"
  360. showValue="扶行"
  361. ></label-box
  362. >&nbsp;
  363. <label-box
  364. :isChecked="receiverTreatmentAccess.way == 3 ? true : false"
  365. showValue="轮椅"
  366. ></label-box
  367. >&nbsp;
  368. <label-box
  369. :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
  370. showValue="平车"
  371. ></label-box
  372. >&nbsp;
  373. </span>
  374. </td>
  375. <td style="text-align: left" colspan="4">
  376. <span style="display: inline-block; margin-left: 15px">
  377. 意识:
  378. <label-box
  379. :isChecked="
  380. receiverTreatmentAccess.consciousness == 1 ? true : false
  381. "
  382. showValue="清醒"
  383. ></label-box
  384. >&nbsp;
  385. <label-box
  386. :isChecked="
  387. receiverTreatmentAccess.consciousness == 2 ? true : false
  388. "
  389. showValue="嗜睡"
  390. ></label-box
  391. >&nbsp;
  392. <label-box
  393. :isChecked="
  394. receiverTreatmentAccess.consciousness == 4 ? true : false
  395. "
  396. showValue="模糊"
  397. ></label-box
  398. >&nbsp;
  399. <label-box
  400. :isChecked="
  401. receiverTreatmentAccess.consciousness == 3 ? true : false
  402. "
  403. showValue="昏迷"
  404. ></label-box
  405. >&nbsp;
  406. </span>
  407. </td>
  408. </tr>
  409. <tr>
  410. <td colspan="2" style="text-align: left">
  411. <span style="display: inline-block; margin-left: 15px"
  412. >食欲:</span
  413. >
  414. <label-box
  415. :isChecked="
  416. receiverTreatmentAccess.appetite == 1 ? true : false
  417. "
  418. showValue="正常"
  419. ></label-box
  420. >&nbsp;
  421. <label-box
  422. :isChecked="
  423. receiverTreatmentAccess.appetite == 2 ? true : false
  424. "
  425. showValue="减退"
  426. ></label-box
  427. >&nbsp;
  428. <label-box
  429. :isChecked="
  430. receiverTreatmentAccess.appetite == 3 ? true : false
  431. "
  432. showValue="恶心"
  433. ></label-box
  434. >&nbsp;
  435. <label-box
  436. :isChecked="
  437. receiverTreatmentAccess.appetite == 4 ? true : false
  438. "
  439. showValue="呕吐"
  440. ></label-box
  441. >&nbsp;
  442. <label-box
  443. :isChecked="
  444. receiverTreatmentAccess.appetite == 5 ? true : false
  445. "
  446. showValue="腹泻"
  447. ></label-box
  448. >&nbsp;
  449. </td>
  450. <td colspan="2" style="text-align: left">
  451. <span style="display: inline-block; margin-left: 15px">
  452. 体温:{{
  453. predialysis.temperature ? predialysis.temperature : "/"
  454. }}
  455. </span>
  456. </td>
  457. <td colspan="3" style="text-align: left">
  458. <span style="display: inline-block; margin-left: 15px">
  459. 体位:
  460. <label-box
  461. v-for="(item, index) in posture_arr"
  462. :key="index"
  463. :isChecked="
  464. receiverTreatmentAccess.posture == item.id ? true : false
  465. "
  466. :showValue="item.name"
  467. ></label-box>
  468. <label-box
  469. :isChecked="
  470. receiverTreatmentAccess.posture == 1 ? true : false
  471. "
  472. showValue="自动体位"
  473. ></label-box
  474. >&nbsp;
  475. <label-box
  476. :isChecked="
  477. receiverTreatmentAccess.posture == 2 ? true : false
  478. "
  479. showValue="平卧位"
  480. ></label-box
  481. >&nbsp;
  482. <label-box
  483. :isChecked="
  484. receiverTreatmentAccess.posture == 3 ? true : false
  485. "
  486. showValue="半卧位"
  487. ></label-box
  488. >&nbsp;
  489. <label-box
  490. :isChecked="
  491. receiverTreatmentAccess.posture == 4 ? true : false
  492. "
  493. showValue="端坐位"
  494. ></label-box
  495. >&nbsp;
  496. <label-box
  497. :isChecked="
  498. receiverTreatmentAccess.posture == 5 ? true : false
  499. "
  500. showValue="躁动不安"
  501. ></label-box
  502. >&nbsp;
  503. </span>
  504. </td>
  505. </tr>
  506. <tr>
  507. <td colspan="8" style="text-align: left">
  508. <span style="display: inline-block; margin-left: 15px" v-if="predialysis.blood_access_part_opera_name!=''">
  509. 血管通路:
  510. <!-- {{predialysis.blood_access_part_opera_name ?'' :predialysis.blood_access_part_opera_name}}&nbsp;&nbsp; -->
  511. <span
  512. v-for="(item, index) in arrtwo"
  513. :key="index"
  514. >
  515. {{predialysis.blood_access_part_opera_id == item.id ? item.name :''}}
  516. </span>
  517. 部位:
  518. {{predialysis.blood_access_part_id ? predialysis.blood_access_part_id : ''}}&nbsp;&nbsp;
  519. 内瘘:{{predialysis.internal_fistula == ""?'无':predialysis.internal_fistula}}
  520. <!-- <label-box
  521. v-for="(item, index) in arrtwo"
  522. :key="index"
  523. :isChecked="
  524. predialysis.blood_access_part_opera_id == item.id
  525. ? true
  526. : false
  527. "
  528. :showValue="item.name"
  529. ></label-box> -->
  530. </span>
  531. <span style="display: inline-block; margin-left: 15px" v-else>
  532. 血管通路:无
  533. </span>
  534. </td>
  535. </tr>
  536. <tr>
  537. <td colspan="8" style="text-align: left">
  538. <span v-if="predialysis.venous_catheterization==1||predialysis.venous_catheterization==2">
  539. <span style="display: inline-block; margin-left: 15px"
  540. >中心静脉导管: {{predialysis.venous_catheterization == 1?'长期':'短期'}}</span
  541. >&nbsp;&nbsp;
  542. <!-- (部位:{{ getPartName(predialysis.blood_access_part_id) }}) -->
  543. 部位:{{ predialysis.blood_access_part_id }}&nbsp;&nbsp;
  544. 感染:<span v-if="predialysis.catheter.indexOf('感染-有') > -1">
  545. </span>
  546. <span v-if="predialysis.catheter.indexOf('感染-无') > -1">
  547. </span>&nbsp;&nbsp;
  548. 流畅度:
  549. <span v-if="predialysis.catheter.indexOf('通畅度-好') > -1">
  550. </span>
  551. <span v-if="predialysis.catheter.indexOf('通畅度-差') > -1">
  552. </span>&nbsp;&nbsp;
  553. <span v-if="predialysis.catheter.indexOf('溶栓-有') > -1 ||predialysis.catheter.indexOf('溶栓-无') > -1">
  554. 溶栓:<span v-if="predialysis.catheter.indexOf('溶栓-有') > -1">有</span>
  555. <span v-if="predialysis.catheter.indexOf('溶栓-无') > -1">无</span>
  556. </span>
  557. &nbsp;&nbsp;外露:{{ predialysis.exposed }}cm
  558. </span>
  559. <span style="display: inline-block; margin-left: 15px" v-else>
  560. 中心静脉导管:无
  561. </span>
  562. </td>
  563. </tr>
  564. <tr>
  565. <td style="text-align: left" colspan="8">
  566. <span style="display: inline-block; margin-left: 15px">
  567. 血管通路皮肤情况:
  568. <label-box
  569. :isChecked="
  570. predialysis.internal_fistula_skin.indexOf('正常') > -1
  571. ? true
  572. : false
  573. "
  574. showValue="正常"
  575. ></label-box
  576. >&nbsp;
  577. <label-box
  578. :isChecked="
  579. predialysis.internal_fistula_skin.indexOf('淤血') > -1
  580. ? true
  581. : false
  582. "
  583. showValue="淤血"
  584. ></label-box
  585. >&nbsp;
  586. <label-box
  587. :isChecked="
  588. predialysis.internal_fistula_skin.indexOf('红') > -1
  589. ? true
  590. : false
  591. "
  592. showValue="红"
  593. ></label-box
  594. >&nbsp;
  595. <label-box
  596. :isChecked="
  597. predialysis.internal_fistula_skin.indexOf('肿') > -1
  598. ? true
  599. : false
  600. "
  601. showValue="肿"
  602. ></label-box>
  603. <!-- 其他: -->
  604. </span>
  605. </td>
  606. </tr>
  607. <tr>
  608. <td style="text-align: left" colspan="8">
  609. <span style="display: inline-block; margin-left: 15px"
  610. >皮肤:</span
  611. >
  612. <!-- <label-box showValue="完整" :isChecked="predialysis.skin == 1 ? true : false"></label-box>
  613. <label-box showValue="干燥" :isChecked="predialysis.skin == 2 ? true : false"></label-box>
  614. <label-box showValue="瘙痒" :isChecked="predialysis.skin == 3 ? true : false"></label-box>
  615. <label-box showValue="菲薄" :isChecked="predialysis.skin == 4 ? true : false"></label-box>/
  616. <label-box showValue="水肿" :isChecked="predialysis.skin == 5 ? true : false"></label-box>
  617. <label-box showValue="皮疹" :isChecked="predialysis.skin == 6 ? true : false"></label-box>
  618. <label-box showValue="出血点" :isChecked="predialysis.skin == 7 ? true : false"></label-box>
  619. <label-box showValue="压疮" :isChecked="predialysis.skin == 8 ? true : false"></label-box>
  620. <label-box showValue="皮下淤血" :isChecked="predialysis.skin == 9 ? true : false"></label-box> -->
  621. <label-box
  622. showValue="完整"
  623. :isChecked="
  624. predialysis.skin.indexOf('完整') > -1 ? true : false
  625. "
  626. ></label-box>
  627. <label-box
  628. showValue="干燥"
  629. :isChecked="
  630. predialysis.skin.indexOf('干燥') > -1 ? true : false
  631. "
  632. ></label-box>
  633. <label-box
  634. showValue="瘙痒"
  635. :isChecked="
  636. predialysis.skin.indexOf('瘙痒') > -1 ? true : false
  637. "
  638. ></label-box>
  639. <label-box
  640. showValue="菲薄"
  641. :isChecked="
  642. predialysis.skin.indexOf('菲薄') > -1 ? true : false
  643. "
  644. ></label-box
  645. >/
  646. <label-box
  647. showValue="水肿"
  648. :isChecked="
  649. predialysis.skin.indexOf('水肿') > -1 ? true : false
  650. "
  651. ></label-box>
  652. <label-box
  653. showValue="皮疹"
  654. :isChecked="
  655. predialysis.skin.indexOf('皮疹') > -1 ? true : false
  656. "
  657. ></label-box>
  658. <label-box
  659. showValue="出血点"
  660. :isChecked="
  661. predialysis.skin.indexOf('出血点') > -1 ? true : false
  662. "
  663. ></label-box>
  664. <label-box
  665. showValue="压疮"
  666. :isChecked="
  667. predialysis.skin.indexOf('压疮') > -1 ? true : false
  668. "
  669. ></label-box>
  670. <label-box
  671. showValue="皮下淤血"
  672. :isChecked="
  673. predialysis.skin.indexOf('皮下淤血') > -1 ? true : false
  674. "
  675. ></label-box>
  676. </td>
  677. </tr>
  678. <tr>
  679. <td style="text-align: left" colspan="8">
  680. <span style="display: inline-block; margin-left: 15px"
  681. >出血影响因素:</span
  682. >
  683. <label-box
  684. showValue="无"
  685. :isChecked="predialysis.is_hemorrhage == 2 ? true : false"
  686. ></label-box>
  687. <label-box
  688. showValue="异常"
  689. :isChecked="predialysis.is_hemorrhage == 1 ? true : false"
  690. ></label-box
  691. >&nbsp;
  692. <label-box
  693. showValue="穿刺点渗血"
  694. :isChecked="
  695. predialysis.is_hemorrhage == 1 &&
  696. predialysis.hemorrhage.indexOf('穿刺点渗血') > -1
  697. ? true
  698. : false
  699. "
  700. ></label-box>
  701. <label-box
  702. showValue="牙龈出血"
  703. :isChecked="
  704. predialysis.is_hemorrhage == 1 &&
  705. predialysis.hemorrhage.indexOf('牙龈出血') > -1
  706. ? true
  707. : false
  708. "
  709. ></label-box>
  710. <label-box
  711. showValue="消化道出血"
  712. :isChecked="
  713. predialysis.is_hemorrhage == 1 &&
  714. predialysis.hemorrhage.indexOf('消化道出血') > -1
  715. ? true
  716. : false
  717. "
  718. ></label-box>
  719. <label-box
  720. showValue="女性经期"
  721. :isChecked="
  722. predialysis.is_hemorrhage == 1 &&
  723. predialysis.hemorrhage.indexOf('女性经期') > -1
  724. ? true
  725. : false
  726. "
  727. ></label-box
  728. >其他:
  729. <span>{{ predialysis.hemorrhage_other }}</span>
  730. </td>
  731. </tr>
  732. <tr>
  733. <td style="text-align: left" colspan="8">
  734. <span style="display: inline-block; margin-left: 15px"
  735. >使用特殊药物:</span
  736. >
  737. <label-box
  738. :isChecked="prescription.special_medicine == 1 ? true : false"
  739. showValue="无"
  740. ></label-box>
  741. <!-- <label-box :isChecked="prescription.special_medicine == 2 ? true : false" showValue="有"></label-box>: -->
  742. 有:
  743. <label-box
  744. :isChecked="prescription.special_medicine == 2 ? true : false"
  745. showValue="降压药"
  746. ></label-box>
  747. <label-box
  748. :isChecked="prescription.special_medicine == 3 ? true : false"
  749. showValue="抗凝药"
  750. ></label-box>
  751. 其他:{{ prescription.special_medicine_other }}
  752. </td>
  753. </tr>
  754. <tr>
  755. <td style="text-align: left" colspan="8">
  756. <span style="display: inline-block; margin-left: 15px"
  757. >跌倒风险:</span
  758. >
  759. <label-box
  760. showValue="无"
  761. :isChecked="
  762. receiverTreatmentAccess.danger_level == 1 ? true : false
  763. "
  764. ></label-box>
  765. <label-box
  766. showValue="低风险"
  767. :isChecked="
  768. receiverTreatmentAccess.danger_level == 2 ? true : false
  769. "
  770. ></label-box>
  771. <label-box
  772. showValue="中度风险"
  773. :isChecked="
  774. receiverTreatmentAccess.danger_level == 3 ? true : false
  775. "
  776. ></label-box>
  777. <label-box
  778. showValue="高风险"
  779. :isChecked="
  780. receiverTreatmentAccess.danger_level == 4 ? true : false
  781. "
  782. ></label-box>
  783. <span>&nbsp;&nbsp;</span>跌倒风险预防措施:
  784. <label-box
  785. showValue="镇定剂"
  786. :isChecked="
  787. receiverTreatmentAccess.precaution.indexOf('镇定剂') > -1
  788. ? true
  789. : false
  790. "
  791. ></label-box>
  792. <label-box
  793. showValue="约束带"
  794. :isChecked="
  795. receiverTreatmentAccess.precaution.indexOf('约束带') > -1
  796. ? true
  797. : false
  798. "
  799. ></label-box>
  800. <label-box
  801. showValue="床栏"
  802. :isChecked="
  803. receiverTreatmentAccess.precaution.indexOf('床栏') > -1
  804. ? true
  805. : false
  806. "
  807. ></label-box>
  808. <label-box
  809. showValue="加强宣教"
  810. :isChecked="
  811. receiverTreatmentAccess.precaution.indexOf('加强宣教') > -1
  812. ? true
  813. : false
  814. "
  815. ></label-box>
  816. </td>
  817. </tr>
  818. </table>
  819. <table class="print-table" border="1">
  820. <tr>
  821. <td>时间</td>
  822. <td>临时医嘱</td>
  823. <td>医生</td>
  824. <td>执行者</td>
  825. <td>执行时间</td>
  826. <td>核对者</td>
  827. </tr>
  828. <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
  829. <td style="height: 30px; line-height: 30px">
  830. {{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}
  831. </td>
  832. <td
  833. class="parent"
  834. style="text-align: left; padding-left: 20px !important"
  835. >
  836. <span v-if="advice.parent_id > 0">&nbsp;&nbsp;&nbsp;</span>
  837. <span>{{ advice.advice_name }}</span>
  838. <span v-if="advice && advice.advice_desc"
  839. >({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span
  840. >
  841. <span v-if="advice.prescribing_number">
  842. &nbsp;&nbsp; {{ advice.prescribing_number
  843. }}{{ advice.prescribing_number_unit }}
  844. </span>
  845. <span v-if="advice.single_dose != 0"
  846. >{{ advice.single_dose }}{{ advice.single_dose_unit }}</span
  847. >
  848. <span v-if="advice.parent_id == 0">{{
  849. advice.delivery_way
  850. }}</span>
  851. <span v-if="advice.parent_id == 0">
  852. {{ advice.execution_frequency }}
  853. </span>
  854. <span v-if="advice.parent_id == 0 && advice.remark.length > 0"
  855. >({{ advice.remark }})</span
  856. >
  857. </td>
  858. <td>
  859. <span v-if="setAdminUserES(advice.advice_doctor) == ''">
  860. {{ getAdminUser(advice.advice_doctor) }}
  861. </span>
  862. <span
  863. v-else
  864. style="
  865. display: flex;
  866. align-items: center;
  867. justify-content: space-around;
  868. height: 36px;
  869. "
  870. >
  871. <img
  872. style="height: 30px"
  873. :src="setAdminUserES(advice.advice_doctor)"
  874. alt
  875. srcset
  876. />
  877. </span>
  878. </td>
  879. <td>
  880. <span v-if="setAdminUserES(advice.execution_staff) == ''">
  881. {{ getAdminUser(advice.execution_staff) }}
  882. </span>
  883. <span
  884. v-else
  885. style="
  886. display: flex;
  887. align-items: center;
  888. justify-content: space-around;
  889. height: 36px;
  890. "
  891. >
  892. <img
  893. style="height: 30px"
  894. :src="setAdminUserES(advice.execution_staff)"
  895. alt
  896. srcset
  897. />
  898. </span>
  899. </td>
  900. <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
  901. <td>
  902. <span v-if="setAdminUserES(advice.checker) == ''">
  903. {{ getAdminUser(advice.checker) }}
  904. </span>
  905. <span
  906. v-else
  907. style="
  908. display: flex;
  909. align-items: center;
  910. justify-content: space-around;
  911. height: 36px;
  912. "
  913. >
  914. <img
  915. style="height: 30px"
  916. :src="setAdminUserES(advice.checker)"
  917. alt
  918. srcset
  919. />
  920. </span>
  921. </td>
  922. </tr>
  923. </table>
  924. <table class="print-table" border="1" style="line-height: 30px">
  925. <tr style="line-height: 20px">
  926. <td style="min-width: 80px">时间</td>
  927. <td style="min-width: 80px">
  928. 体温
  929. <br />℃
  930. </td>
  931. <td style="min-width: 80px">
  932. 血流量
  933. <br />ml/min
  934. </td>
  935. <td style="min-width: 80px">
  936. 静脉压
  937. <br />(mmHg)
  938. </td>
  939. <td style="min-width: 80px">
  940. 跨膜压
  941. <br />(mmHg)
  942. </td>
  943. <!-- <td style="min-width:60px">
  944. 超滤率
  945. <br />L/h
  946. </td> -->
  947. <td style="min-width: 80px">
  948. 超滤量
  949. <br />ml
  950. </td>
  951. <td style="min-width: 80px">
  952. 置换量
  953. <br />ml
  954. </td>
  955. <td style="min-width: 80px">
  956. 血压
  957. <br />(mmHg)
  958. </td>
  959. <td style="min-width: 80px">
  960. 脉搏
  961. <br />次/分
  962. </td>
  963. <!-- <td style="min-width:60px">
  964. NA⁺
  965. <br />
  966. </td> -->
  967. <td style="min-width: 80px">病情变化及处理</td>
  968. <td style="min-width: 110px">护士签名核对者</td>
  969. </tr>
  970. <tr v-for="(monitor, monindex) in monitors" :key="monindex">
  971. <td style="height: 30px; line-height: 30px">
  972. {{ getTime(monitor.operate_time, "{h}:{i}") }}
  973. </td>
  974. <td>{{ monitor.temperature }}</td>
  975. <td>{{ monitor.blood_flow_volume }}</td>
  976. <td>{{ monitor.venous_pressure }}</td>
  977. <td>{{ monitor.transmembrane_pressure }}</td>
  978. <td>{{ monitor.ultrafiltration_volume }}</td>
  979. <td>{{ monitor.displacement_quantity }}</td>
  980. <td>
  981. {{
  982. monitor.systolic_blood_pressure
  983. ? monitor.systolic_blood_pressure + "/"
  984. : ""
  985. }}{{
  986. monitor.diastolic_blood_pressure
  987. ? monitor.diastolic_blood_pressure
  988. : ""
  989. }}
  990. </td>
  991. <td>{{ monitor.pulse_frequency }}</td>
  992. <td>
  993. <span style="line-height: 18px; display: block">
  994. {{ monitor.symptom }}&nbsp;{{ monitor.dispose }}&nbsp;{{
  995. monitor.result
  996. }}
  997. </span>
  998. </td>
  999. <td>
  1000. <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
  1001. {{ getAdminUser(monitor.monitoring_nurse) }}
  1002. </span>
  1003. <span
  1004. v-else
  1005. style="
  1006. display: flex;
  1007. align-items: center;
  1008. justify-content: space-around;
  1009. height: 36px;
  1010. "
  1011. >
  1012. <img
  1013. style="height: 30px"
  1014. :src="setAdminUserES(monitor.monitoring_nurse)"
  1015. alt
  1016. srcset
  1017. />
  1018. </span>
  1019. </td>
  1020. </tr>
  1021. <tr>
  1022. <td style="text-align: left" colspan="6">
  1023. <span style="display: inline-block; margin-left: 15px">
  1024. 透后评估: 透析过程:
  1025. <label-box
  1026. showValue="完成"
  1027. :isChecked="
  1028. afterdialysis.dialysis_process == 1 ? true : false
  1029. "
  1030. ></label-box>
  1031. <label-box
  1032. showValue="提前"
  1033. :isChecked="
  1034. afterdialysis.dialysis_process == 2 ? true : false
  1035. "
  1036. ></label-box
  1037. >&nbsp;&nbsp;
  1038. </span>
  1039. </td>
  1040. <td style="text-align: left" colspan="3">
  1041. <span>
  1042. <span
  1043. v-if="finshForm.url === ''"
  1044. style="display: flex; align-items: center; height: 36px"
  1045. >下机护士:{{ finshForm.finish_nurse }}</span
  1046. >
  1047. <span
  1048. v-if="finshForm.url !== ''"
  1049. style="display: flex; align-items: center; height: 36px"
  1050. >
  1051. 下机护士:
  1052. <img :src="finshForm.url" style="height: 30px" />
  1053. </span>
  1054. </span>
  1055. </td>
  1056. </tr>
  1057. <tr>
  1058. <td style="text-align: left" colspan="12">
  1059. <span style="display: inline-block; margin-left: 15px"
  1060. >透后小结:{{ dialysis_summary }}</span
  1061. >
  1062. </td>
  1063. </tr>
  1064. <tr>
  1065. <td style="text-align: left" colspan="12">
  1066. <span style="display: inline-block; margin-left: 15px"
  1067. >特殊记录:{{ special_record }}</span
  1068. >
  1069. </td>
  1070. </tr>
  1071. <tr>
  1072. <td style="text-align: left" colspan="3">
  1073. <span>
  1074. <span style="display: flex; align-items: center; height: 36px"
  1075. >负责护士:<span
  1076. v-if="
  1077. setAdminUserES(
  1078. dialysisOrder == null ? 0 : dialysisOrder.start_nurse
  1079. ) == ''
  1080. "
  1081. >
  1082. {{
  1083. getAdminUser(
  1084. dialysisOrder == null ? 0 : dialysisOrder.start_nurse
  1085. )
  1086. }}
  1087. </span></span
  1088. >
  1089. </span>
  1090. </td>
  1091. <td style="text-align: left" colspan="3">
  1092. <span>
  1093. <span style="display: flex; align-items: center; height: 36px"
  1094. >核对护士:
  1095. <span
  1096. v-if="
  1097. setAdminUserES(check == null ? 0 : check.modifier) == ''
  1098. "
  1099. >
  1100. {{ getAdminUser(check == null ? 0 : check.modifier) }}
  1101. </span>
  1102. </span>
  1103. </span>
  1104. </td>
  1105. <td style="text-align: left" colspan="4">
  1106. <span>
  1107. <span
  1108. v-if="doctorForm.url === ''"
  1109. style="display: flex; align-items: center; height: 36px"
  1110. >医生签名:{{ doctorForm.doctor }}</span
  1111. >
  1112. <span
  1113. v-if="doctorForm.url !== ''"
  1114. style="display: flex; align-items: center; height: 36px"
  1115. >
  1116. 医生签名:
  1117. <img :src="doctorForm.url" style="height: 30px" />
  1118. </span>
  1119. </span>
  1120. </td>
  1121. </tr>
  1122. </table>
  1123. <div
  1124. v-if="tableAdvice.length > 8"
  1125. style="page-break-after: always"
  1126. ></div>
  1127. <div v-if="tableAdvice.length > 8" class="order-title">
  1128. {{ orgname }}&nbsp;&nbsp;&nbsp;血液净化治疗记录单续页
  1129. </div>
  1130. <table
  1131. v-if="tableAdvice.length > 8"
  1132. class="print-table"
  1133. border="1"
  1134. style="margin-top: 10px"
  1135. >
  1136. <tr>
  1137. <td style="text-align: left">
  1138. <span style="display: inline-block; margin-left: 15px">
  1139. {{ getDatge(queryParams.xtdate) }}
  1140. </span>
  1141. </td>
  1142. <td style="text-align: center">
  1143. 姓名:
  1144. <span style="display: inline-block; margin-left: 10px">
  1145. {{ patientInfo.name }}
  1146. </span>
  1147. </td>
  1148. <td style="text-align: center">
  1149. 性别:
  1150. <span style="display: inline-block; margin-left: 10px">
  1151. {{ patientInfo.gender }}
  1152. </span>
  1153. </td>
  1154. <td style="text-align: center">
  1155. 年龄:
  1156. <span style="display: inline-block; margin-left: 10px">
  1157. {{ getAge(patientInfo) }}
  1158. </span>
  1159. </td>
  1160. <td style="text-align: center">
  1161. <label-box
  1162. showValue="门诊"
  1163. :isChecked="
  1164. receiverTreatmentAccess.condition == 2 ? true : false
  1165. "
  1166. ></label-box>
  1167. <label-box
  1168. showValue="住院"
  1169. :isChecked="
  1170. receiverTreatmentAccess.condition == 1 ? true : false
  1171. "
  1172. ></label-box>
  1173. </td>
  1174. <td style="text-align: center">
  1175. <template v-if="receiverTreatmentAccess.condition == 1">
  1176. 住院号:
  1177. <span style="display: inline-block; margin-left: 10px">
  1178. {{
  1179. receiverTreatmentAccess.admission_number
  1180. ? receiverTreatmentAccess.admission_number
  1181. : "/"
  1182. }}
  1183. </span>
  1184. </template>
  1185. <template v-else>
  1186. 门诊号:
  1187. <span style="display: inline-block; margin-left: 10px">
  1188. {{
  1189. patientInfo.admission_number
  1190. ? patientInfo.admission_number
  1191. : "/"
  1192. }}
  1193. </span>
  1194. </template>
  1195. </td>
  1196. <td style="text-align: center">
  1197. 机器号:
  1198. <span style="display: inline-block; margin-left: 10px">
  1199. {{
  1200. dialysisOrder &&
  1201. dialysisOrder.DeviceNumber &&
  1202. dialysisOrder.DeviceNumber.number > 0
  1203. ? dialysisOrder.DeviceNumber.number
  1204. : patientInfo.DialysisSchedule.device_number.number
  1205. }}
  1206. </span>
  1207. </td>
  1208. </tr>
  1209. </table>
  1210. <!-- <div style="margin-top:20px">
  1211. <span style="margin-left:280px;">肝素浓度:每毫升肝素生理盐水含肝素钠2.5毫克</span>
  1212. </div>-->
  1213. </div>
  1214. </div>
  1215. </div>
  1216. </template>
  1217. <script>
  1218. import { getDialysisRecord } from "@/api/dialysis";
  1219. import { getDataConfig } from "@/utils/data";
  1220. import { jsGetAge, uParseTime } from "@/utils/tools";
  1221. import LabelBox from "../printItem/LabelBox";
  1222. import CheckBox from "../batch_print/option_check_box";
  1223. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  1224. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  1225. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  1226. export default {
  1227. name: "dialysisPrintOrderOne",
  1228. components: {
  1229. // DialysisPrintOrderOne,
  1230. // DialysisPrintOrderTwo,
  1231. LabelBox,
  1232. BreadCrumb,
  1233. CheckBox,
  1234. },
  1235. data() {
  1236. return {
  1237. crumbs: [
  1238. { path: false, name: "透析管理" },
  1239. { path: false, name: "打印单" },
  1240. ],
  1241. operators: [],
  1242. adminUser: [],
  1243. check: {},
  1244. dialysisOrder: {
  1245. DeviceNumber: [],
  1246. },
  1247. posture_arr: [],
  1248. operatorMaps: {},
  1249. complications: [
  1250. "低血压",
  1251. "高血压",
  1252. "心律失常",
  1253. "头晕",
  1254. "头痛",
  1255. "呕吐",
  1256. "抽搐",
  1257. "出血",
  1258. "心衰",
  1259. "腹痛",
  1260. "无",
  1261. ],
  1262. consciousness_arr: [],
  1263. jilurow: 0,
  1264. advice_jilurow: 0,
  1265. loading: false,
  1266. orgname: "",
  1267. patientInfo_gender_1: false,
  1268. patientInfo_gender_2: false,
  1269. patientInfo_source_2: false,
  1270. patientInfo_source_1: false,
  1271. modeOptions: {},
  1272. replacementWays: [],
  1273. perfusionApparatus: [],
  1274. anticoagulantsConfit: {},
  1275. bloodAccessParOpera: {},
  1276. dialysateFormulationOptions: {},
  1277. queryParams: {
  1278. xtdate: "",
  1279. xtno: "",
  1280. },
  1281. patientInfo: {
  1282. birth: "",
  1283. age: "",
  1284. DialysisSchedule: {
  1285. device_number: { number: "" },
  1286. device_zone: { name: "" },
  1287. },
  1288. gender: 0,
  1289. },
  1290. predialysis: {
  1291. score: "",
  1292. internal_fistula: "",
  1293. internal_fistula_skin: "",
  1294. catheter: "",
  1295. blood_access_part_opera_name: "",
  1296. },
  1297. afterdialysis: {
  1298. complications_index: "",
  1299. },
  1300. prescription: {
  1301. dialysate_formulation_name: "",
  1302. device: {},
  1303. },
  1304. advices: [],
  1305. users: [],
  1306. monitors: [],
  1307. summary: {},
  1308. receiverTreatmentAccess: {},
  1309. org_template_info: {},
  1310. doctor_advices: [],
  1311. advice_groups: [],
  1312. schedule: [],
  1313. AlPanel: {
  1314. id: 0,
  1315. name: "",
  1316. type: 1,
  1317. shouji: 2,
  1318. weichi: 2,
  1319. zongliang: 2,
  1320. gaimingcheng: -1,
  1321. gaijiliang: -1,
  1322. shouji_unit: "mg",
  1323. weichi_unit: "mg/h",
  1324. zongliang_unit: "mg",
  1325. gaimingcheng_unit: "",
  1326. gaijiliang_unit: "",
  1327. },
  1328. list: 5,
  1329. replacement_total: "",
  1330. actual_treatment_hour: "",
  1331. actual_treatment_minute: "",
  1332. anticoagulant: "",
  1333. anticoagulant_shouji: "",
  1334. anticoagulant_zongliang: "",
  1335. prescription_dewatering: "",
  1336. blood_flow_volume: "",
  1337. dialysate_flow: "",
  1338. bed: "",
  1339. dialyzer_perfusion_apparatus: "",
  1340. dialysate_formulation: "",
  1341. blood_access: "",
  1342. doctor: "",
  1343. nurse: "",
  1344. doctorAdvice: [],
  1345. total: "",
  1346. weight_before: "",
  1347. dry_weight: "",
  1348. weight_after: "",
  1349. weightloss_after: "",
  1350. actual_ultrafiltration: "",
  1351. temperature: "",
  1352. systolic_blood_pressure: "",
  1353. diastolic_blood_pressure: "",
  1354. mission: "",
  1355. doctor: {},
  1356. dialysis_summary: "",
  1357. orderForm: {
  1358. start_nurse: "",
  1359. url: "",
  1360. },
  1361. doctorForm: {
  1362. doctor: "",
  1363. url: "",
  1364. },
  1365. finshForm: {
  1366. finish_nurse: "",
  1367. url: "",
  1368. },
  1369. tableAdvice: [],
  1370. monitor: [],
  1371. displace_liqui: "",
  1372. kalium: "",
  1373. sodium: "",
  1374. calcium: "",
  1375. weight_gain: "",
  1376. afterWeightLast: "",
  1377. anticoagulant_weichi: "",
  1378. target_ultrafiltration: "",
  1379. blood_access_internal_fistula: "",
  1380. venous_catheterization: "",
  1381. blood_access_part_opera_id: "",
  1382. dryWeight_add: "",
  1383. weight: "",
  1384. vascularId: 0,
  1385. PunctureNurse: {
  1386. user_name: "",
  1387. url: "",
  1388. },
  1389. arr: [],
  1390. arrtwo: [],
  1391. bloodAccess: [],
  1392. vascularAccess: [],
  1393. nursing_record: "",
  1394. special_record: "",
  1395. newTableAdvice: [],
  1396. };
  1397. },
  1398. methods: {
  1399. checkData() {
  1400. if (this.receiverTreatmentAccess.condition == 0) {
  1401. this.$message.error("门诊或住院未填");
  1402. } else if (
  1403. this.receiverTreatmentAccess.condition == 1 &&
  1404. this.receiverTreatmentAccess.admission_number == ""
  1405. ) {
  1406. this.$message.error("住院号未填");
  1407. } else if (
  1408. this.receiverTreatmentAccess.condition == 2 &&
  1409. this.patientInfo.admission_number == ""
  1410. ) {
  1411. this.$message.error("门诊号未填");
  1412. } else if (this.prescription.mode_id == "") {
  1413. this.$message.error("治疗方式未填");
  1414. } else if (this.predialysis.dry_weight == 0) {
  1415. this.$message.error("干体重未填");
  1416. } else if (this.prescription.conductivity == 0) {
  1417. this.$message.error("电导率未填");
  1418. } else if (this.prescription.calcium == 0) {
  1419. this.$message.error("钙未填");
  1420. } else if (this.prescription.dialysate_temperature == 0) {
  1421. this.$message.error("透析液温度未填");
  1422. } else if (this.predialysis.weight_before == 0) {
  1423. this.$message.error("透前体重未填");
  1424. } else if (this.prescription.target_ultrafiltration == 0) {
  1425. this.$message.error("设定脱水量未填");
  1426. } else if (this.prescription.anticoagulant == 0) {
  1427. this.$message.error("抗凝剂未填");
  1428. } else if (this.afterdialysis.weight_after == 0) {
  1429. this.$message.error("透后体重未填");
  1430. } else if (this.afterdialysis.actual_ultrafiltration == 0) {
  1431. this.$message.error("实际脱水量未填");
  1432. } else if (
  1433. this.prescription.dialysis_duration_hour == 0 &&
  1434. this.prescription.dialysis_duration_minute == 0
  1435. ) {
  1436. this.$message.error("透析时间未填");
  1437. } else if (this.prescription.dialyzer_perfusion_apparatus == "") {
  1438. this.$message.error("透析器型号未填");
  1439. } else if (
  1440. this.prescription.displace_liqui_part == 0 &&
  1441. (this.prescription.mode_id == 2 ||
  1442. this.prescription.mode_id == 5 ||
  1443. this.prescription.mode_id == 12)
  1444. ) {
  1445. this.$message.error("置换方式未填");
  1446. } else if (
  1447. this.prescription.displace_liqui_value == 0 &&
  1448. (this.prescription.mode_id == 2 ||
  1449. this.prescription.mode_id == 5 ||
  1450. this.prescription.mode_id == 12)
  1451. ) {
  1452. this.$message.error("置换量未填");
  1453. } else if (this.orderForm.start_nurse == "") {
  1454. this.$message.error("责任护士未填");
  1455. } else if (this.orderForm.start_nurse == "") {
  1456. this.$message.error("上机护士未填");
  1457. } else if (this.orderForm.start_nurse == "") {
  1458. this.$message.error("抗凝剂执行护士未填");
  1459. } else if (
  1460. this.prescription.prescription_doctor == 0 &&
  1461. this.prescription.creater == 0
  1462. ) {
  1463. this.$message.error("医生签名未填");
  1464. } else if (this.receiverTreatmentAccess.way == 0) {
  1465. this.$message.error("入科方式未填");
  1466. } else if (this.receiverTreatmentAccess.consciousness == 0) {
  1467. this.$message.error("意识未填");
  1468. } else if (this.receiverTreatmentAccess.appetite == 0) {
  1469. this.$message.error("食欲未填");
  1470. } else if (this.predialysis.temperature == 0) {
  1471. this.$message.error("透前体温未填");
  1472. } else if (this.receiverTreatmentAccess.posture == 0) {
  1473. this.$message.error("体位未填");
  1474. } else if (this.predialysis.blood_access_part_opera_name == "") {
  1475. this.$message.error("内瘘波动及震颤未填");
  1476. } else if (this.predialysis.blood_access_part_id == 0) {
  1477. this.$message.error("中心静脉导管部位未填");
  1478. } else if (this.predialysis.venous_catheterization == 0) {
  1479. this.$message.error("中心静脉导管未填");
  1480. } else if (this.predialysis.catheter == "") {
  1481. this.$message.error("中心静脉导管感染未填");
  1482. } else if (this.predialysis.internal_fistula_skin == "") {
  1483. this.$message.error("血管通路皮肤情况未填");
  1484. } else if (this.predialysis.skin == "") {
  1485. this.$message.error("皮肤未填");
  1486. } else if (this.predialysis.is_hemorrhage == 0) {
  1487. this.$message.error("是否出血未填");
  1488. } else if (
  1489. this.predialysis.is_hemorrhage == 1 &&
  1490. this.predialysis.hemorrhage == ""
  1491. ) {
  1492. this.$message.error("出血影响因素未填");
  1493. } else if (this.predialysis.special_medicine_other == "") {
  1494. this.$message.error("使用特殊药物未填");
  1495. } else if (this.receiverTreatmentAccess.danger_level == 0) {
  1496. this.$message.error("跌倒风险未填");
  1497. } else if (this.receiverTreatmentAccess.precaution == "") {
  1498. this.$message.error("跌倒风险预防措施未填");
  1499. } else if (this.nursing_record == "") {
  1500. this.$message.error("透析护理记录未填");
  1501. } else if (this.afterdialysis.dialysis_process == 0) {
  1502. this.$message.error("透析过程未填");
  1503. } else if (this.afterdialysis.complication == "") {
  1504. this.$message.error("透后并发症未填");
  1505. } else if (this.afterdialysis.actual_displacement == 0) {
  1506. this.$message.error("实际置换量未填");
  1507. } else if (this.afterdialysis.internal_fistula == "") {
  1508. this.$message.error("内瘘搏动及震颤音未填");
  1509. } else if (this.afterdialysis.cruor == "") {
  1510. this.$message.error("透析器及管路凝血情况未填");
  1511. } else if (this.afterdialysis.is_eat == 0) {
  1512. this.$message.error("透析中进食未填");
  1513. } else if (this.afterdialysis.patient_gose == 0) {
  1514. this.$message.error("患者去向未填");
  1515. } else if (this.finshForm.finish_nurse == "") {
  1516. this.$message.error("下机护士未填");
  1517. } else if (this.special_record == "") {
  1518. this.$message.error("特殊记录未填");
  1519. } else if (this.tableAdvice.length > 0 || this.monitors.length > 0) {
  1520. let num = 0;
  1521. if (this.monitors.length > 0) {
  1522. this.monitors.map((item) => {
  1523. if (item.id > 0 && item.operate_time) {
  1524. this.users.map((it) => {
  1525. if (it.id == item.monitoring_nurse) {
  1526. if (it.user_type == 2) {
  1527. num++;
  1528. this.$message.closeAll();
  1529. this.$message.error("存在不是护士保存的监测");
  1530. }
  1531. }
  1532. });
  1533. }
  1534. });
  1535. }
  1536. if (this.tableAdvice.length > 0) {
  1537. this.tableAdvice.map((item) => {
  1538. if (item.id > 0 && (item.created_time || item.start_time)) {
  1539. this.users.map((it) => {
  1540. if (it.id == item.advice_doctor) {
  1541. if (it.user_type == 3) {
  1542. num++;
  1543. this.$message.closeAll();
  1544. this.$message.error("存在不是医生保存的医嘱");
  1545. } else if (
  1546. it.id == item.execution_staff &&
  1547. item.execution_staff > 0
  1548. ) {
  1549. if (it.user_type == 2) {
  1550. num++;
  1551. this.$message.closeAll();
  1552. this.$message.error("存在不是护士执行的医嘱");
  1553. }
  1554. } else if (it.id == item.checker && item.checker > 0) {
  1555. if (it.user_type == 2) {
  1556. num++;
  1557. this.$message.closeAll();
  1558. this.$message.error("存在不是护士核对的医嘱");
  1559. }
  1560. }
  1561. } else if (
  1562. it.id == item.execution_staff &&
  1563. item.execution_staff > 0
  1564. ) {
  1565. if (it.user_type == 2) {
  1566. num++;
  1567. this.$message.closeAll();
  1568. this.$message.error("存在不是护士执行的医嘱");
  1569. }
  1570. } else if (it.id == item.checker && item.checker > 0) {
  1571. if (it.user_type == 2) {
  1572. num++;
  1573. this.$message.closeAll();
  1574. this.$message.error("存在不是护士核对的医嘱");
  1575. }
  1576. }
  1577. });
  1578. }
  1579. });
  1580. }
  1581. if (num == 0) {
  1582. this.$message.success("核对完成");
  1583. }
  1584. } else {
  1585. this.$message.success("核对完成");
  1586. }
  1587. },
  1588. getCruor(cruor) {
  1589. if (cruor.indexOf(",") == -1) {
  1590. let str = cruor;
  1591. if (
  1592. ["透析器-0级", "透析器-1级", "透析器-2级", "透析器-3级"].indexOf(
  1593. str
  1594. ) == -1
  1595. ) {
  1596. return str;
  1597. }
  1598. } else if (cruor.indexOf(",") > -1) {
  1599. let str = cruor;
  1600. if (
  1601. ["透析器-0级", "透析器-1级", "透析器-2级", "透析器-3级"].indexOf(
  1602. str
  1603. ) == -1
  1604. ) {
  1605. let newStr = "";
  1606. str.split(",").map((item) => {
  1607. if (
  1608. ["透析器-0级", "透析器-1级", "透析器-2级", "透析器-3级"].indexOf(
  1609. item
  1610. ) == -1
  1611. ) {
  1612. newStr += item + ",";
  1613. }
  1614. });
  1615. return newStr.substring(0, newStr.length - 1);
  1616. }
  1617. }
  1618. },
  1619. getAdminUser(id) {
  1620. if (id == 0) {
  1621. return "";
  1622. }
  1623. if (id == undefined) {
  1624. return "";
  1625. }
  1626. for (let i = 0; i < this.adminUser.length; i++) {
  1627. if (this.adminUser[i].id == id) {
  1628. return this.adminUser[i].name;
  1629. }
  1630. }
  1631. },
  1632. getDatge(value) {
  1633. var times = Date.parse(value) / 1000;
  1634. var timestr = uParseTime(times, "{y}年{m}月{d}日");
  1635. return timestr;
  1636. },
  1637. getTime(value, temp) {
  1638. if (value == 0) {
  1639. return "";
  1640. }
  1641. if (value != undefined) {
  1642. return uParseTime(value, temp);
  1643. }
  1644. return "";
  1645. },
  1646. getTimes(time) {
  1647. if (time === "") {
  1648. return "";
  1649. }
  1650. return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
  1651. },
  1652. printThisPage() {
  1653. var ptime = Math.round(new Date().getTime() / 1000);
  1654. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1655. const style =
  1656. '@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:16px}.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;}';
  1657. if (this.org_template_info.template_id == 1) {
  1658. printJS({
  1659. printable: "dialysis-print-box",
  1660. type: "html",
  1661. style: style,
  1662. scanStyles: false,
  1663. });
  1664. } else if (
  1665. this.org_template_info.template_id == 2 ||
  1666. this.org_template_info.template_id == 0
  1667. ) {
  1668. printJS({
  1669. printable: "dialysis-print-box-1",
  1670. type: "html",
  1671. style: style,
  1672. scanStyles: false,
  1673. });
  1674. }
  1675. },
  1676. getNumber() {
  1677. if (this.dialysisOrder != null) {
  1678. return (
  1679. this.patientInfo.DialysisSchedule.device_zone.name +
  1680. this.dialysisOrder.DeviceNumber.number
  1681. );
  1682. } else {
  1683. return (
  1684. this.patientInfo.DialysisSchedule.device_zone.name +
  1685. this.patientInfo.DialysisSchedule.device_number.number
  1686. );
  1687. }
  1688. },
  1689. getXuserName(id) {
  1690. if (id <= 0) {
  1691. return "";
  1692. }
  1693. var name = "";
  1694. if (this.users == null || typeof this.users.length === "undefined") {
  1695. return name;
  1696. }
  1697. var leng = this.users.length;
  1698. if (leng === 0) {
  1699. return name;
  1700. }
  1701. for (let index = 0; index < leng; index++) {
  1702. if (this.users[index].id === id) {
  1703. name = this.users[index].name;
  1704. break;
  1705. }
  1706. }
  1707. return name;
  1708. },
  1709. setAdminUserES(id) {
  1710. if (id === 0) {
  1711. return "";
  1712. }
  1713. if (id in this.operatorMaps) {
  1714. return this.operatorMaps[id].url;
  1715. } else {
  1716. return "";
  1717. }
  1718. },
  1719. modeName(mode_id) {
  1720. return typeof this.modeOptions[mode_id] !== "undefined" &&
  1721. typeof this.modeOptions[mode_id].name !== "undefined"
  1722. ? this.modeOptions[mode_id].name
  1723. : "";
  1724. },
  1725. getDialysisRecord() {
  1726. this.loading = true;
  1727. getDialysisRecord(this.queryParams).then((response) => {
  1728. if (response.data.state === 1) {
  1729. this.adminUser = response.data.data.users;
  1730. this.users = response.data.data.users;
  1731. var patientInfo = response.data.data.patientInfo;
  1732. if (patientInfo.gender === 1) {
  1733. patientInfo.gender = "男";
  1734. }
  1735. if (patientInfo.gender === 2) {
  1736. patientInfo.gender = "女";
  1737. }
  1738. this.patientInfo = response.data.data.patientInfo;
  1739. // console.log("透析记录", this.patientInfo);
  1740. this.patientInfo.birth = uParseTime(
  1741. this.patientInfo.birthday,
  1742. "{y}-{m}-{d}"
  1743. );
  1744. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1745. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1746. this.patientInfo.first_dialysis_date = uParseTime(
  1747. response.data.data.patientInfo.first_dialysis_date,
  1748. "{y}-{m}-{d}"
  1749. );
  1750. } else {
  1751. this.patientInfo.first_dialysis_date = "";
  1752. }
  1753. this.check = response.data.data.check;
  1754. var predialysis = response.data.data.PredialysisEvaluation;
  1755. console.log("透前评估", predialysis);
  1756. var predialysName = response.data.data.predialysName;
  1757. this.blood_access_part_opera_id = predialysName.name;
  1758. // console.log('血管', predialysName)
  1759. // this.weight_before = predialysis.weight_before
  1760. this.dry_weight = predialysis.dry_weight;
  1761. this.weight_gain = predialysis.weight_gain;
  1762. this.blood_access_internal_fistula =
  1763. predialysis.blood_access_internal_fistula;
  1764. this.venous_catheterization = predialysis.venous_catheterization;
  1765. // this.blood_access_part_opera_id = predialysis.blood_access_part_opera_id
  1766. // console.log('血管通路', this.blood_access_part_opera_id)
  1767. var arry = [];
  1768. arry = getDataConfig("hemodialysis", "vascular_access_desc");
  1769. // eslint-disable-next-line no-empty
  1770. var id = 0;
  1771. for (let i = 0; i < arry.length; i++) {
  1772. if (arry[i].id === predialysis.blood_access_part_opera_id) {
  1773. id = predialysis.blood_access_part_opera_id;
  1774. }
  1775. this.vascularId = id;
  1776. }
  1777. this.predialysis = predialysis;
  1778. // console.log('透前评估', this.predialysis)
  1779. this.predialysis.blood_access_part_opera_name =
  1780. this.bloodAccessParOperaName(
  1781. this.predialysis.blood_access_part_opera_id
  1782. );
  1783. var afterdialysis = response.data.data.AssessmentAfterDislysis;
  1784. // eslint-disable-next-line no-undef
  1785. console.log("透后评估", afterdialysis);
  1786. this.temperature = afterdialysis.temperature;
  1787. this.actual_ultrafiltration = afterdialysis.actual_ultrafiltration;
  1788. this.actual_treatment_hour = afterdialysis.actual_treatment_hour;
  1789. this.actual_treatment_minute = afterdialysis.actual_treatment_minute;
  1790. this.systolic_blood_pressure = afterdialysis.systolic_blood_pressure;
  1791. this.diastolic_blood_pressure =
  1792. afterdialysis.diastolic_blood_pressure;
  1793. this.afterdialysis = afterdialysis;
  1794. // eslint-disable-next-line no-unused-vars
  1795. var doctoradvce = response.data.data.doctorAdvice;
  1796. var doctorAdevieInfo = response.data.data.doctorAdevieInfo;
  1797. this.newTableAdvice = response.data.data.doctorAdevieInfo;
  1798. console.log("哈哈哈哈哈哈哈哈哈", this.newTableAdvice);
  1799. var tableAdvice = doctorAdevieInfo;
  1800. console.log("tableAdvice", tableAdvice);
  1801. // console.log('医生', tableAdvice.length)
  1802. if (tableAdvice.length === 0) {
  1803. var obj = { advice_name: "", start_time: "" };
  1804. var obj1 = { advice_name: "", start_time: "" };
  1805. var obj2 = { advice_name: "", start_time: "" };
  1806. var obj3 = { advice_name: "", start_time: "" };
  1807. var obj4 = { advice_name: "", start_time: "" };
  1808. var obj5 = { advice_name: "", start_time: "" };
  1809. var obj6 = { advice_name: "", start_time: "" };
  1810. tableAdvice.push(obj);
  1811. tableAdvice.push(obj1);
  1812. tableAdvice.push(obj2);
  1813. tableAdvice.push(obj3);
  1814. tableAdvice.push(obj4);
  1815. tableAdvice.push(obj5);
  1816. tableAdvice.push(obj6);
  1817. this.tableAdvice = tableAdvice;
  1818. }
  1819. if (tableAdvice.length === 1) {
  1820. var obj = { advice_name: "", start_time: "" };
  1821. var obj1 = { advice_name: "", start_time: "" };
  1822. var obj2 = { advice_name: "", start_time: "" };
  1823. var obj3 = { advice_name: "", start_time: "" };
  1824. var obj4 = { advice_name: "", start_time: "" };
  1825. var obj5 = { advice_name: "", start_time: "" };
  1826. tableAdvice.push(obj);
  1827. tableAdvice.push(obj1);
  1828. tableAdvice.push(obj2);
  1829. tableAdvice.push(obj3);
  1830. tableAdvice.push(obj4);
  1831. tableAdvice.push(obj5);
  1832. this.tableAdvice = tableAdvice;
  1833. }
  1834. if (tableAdvice.length === 2) {
  1835. var obj = { advice_name: "", start_time: "" };
  1836. var obj1 = { advice_name: "", start_time: "" };
  1837. var obj2 = { advice_name: "", start_time: "" };
  1838. var obj3 = { advice_name: "", start_time: "" };
  1839. var obj4 = { advice_name: "", start_time: "" };
  1840. tableAdvice.push(obj);
  1841. tableAdvice.push(obj1);
  1842. tableAdvice.push(obj2);
  1843. tableAdvice.push(obj3);
  1844. tableAdvice.push(obj4);
  1845. this.tableAdvice = tableAdvice;
  1846. }
  1847. if (tableAdvice.length === 3) {
  1848. // eslint-disable-next-line no-redeclare
  1849. var obj = { advice_name: "", start_time: "" };
  1850. // eslint-disable-next-line no-redeclare
  1851. var obj1 = { advice_name: "", start_time: "" };
  1852. // eslint-disable-next-line no-redeclare
  1853. var obj2 = { advice_name: "", start_time: "" };
  1854. // eslint-disable-next-line no-redeclare
  1855. var obj3 = { advice_name: "", start_time: "" };
  1856. tableAdvice.push(obj);
  1857. tableAdvice.push(obj1);
  1858. tableAdvice.push(obj2);
  1859. tableAdvice.push(obj3);
  1860. this.tableAdvice = tableAdvice;
  1861. }
  1862. if (tableAdvice.length === 4) {
  1863. // eslint-disable-next-line no-redeclare
  1864. var obj = { advice_name: "", start_time: "" };
  1865. // eslint-disable-next-line no-redeclare
  1866. var obj1 = { advice_name: "", start_time: "" };
  1867. // eslint-disable-next-line no-redeclare
  1868. var obj2 = { advice_name: "", start_time: "" };
  1869. tableAdvice.push(obj);
  1870. tableAdvice.push(obj1);
  1871. tableAdvice.push(obj2);
  1872. this.tableAdvice = tableAdvice;
  1873. }
  1874. if (tableAdvice.length === 5) {
  1875. // eslint-disable-next-line no-redeclare
  1876. var obj = { advice_name: "", start_time: "" };
  1877. // eslint-disable-next-line no-redeclare
  1878. var obj1 = { advice_name: "", start_time: "" };
  1879. tableAdvice.push(obj);
  1880. tableAdvice.push(obj1);
  1881. this.tableAdvice = tableAdvice;
  1882. }
  1883. if (tableAdvice.length === 6) {
  1884. // eslint-disable-next-line no-redeclare
  1885. var obj = { advice_name: "", start_time: "" };
  1886. tableAdvice.push(obj);
  1887. this.tableAdvice = tableAdvice;
  1888. }
  1889. if (tableAdvice.length >= 7) {
  1890. this.tableAdvice = tableAdvice;
  1891. }
  1892. var doctor = response.data.data.doctor;
  1893. this.doctor = doctor.user_name;
  1894. // console.log('医生', doctor)
  1895. this.PunctureNurse = response.data.data.nurse;
  1896. // console.log('穿刺护士', this.PunctureNurse)
  1897. var operators = response.data.data.operators;
  1898. // console.log('operators', operators)
  1899. var total = response.data.data.total;
  1900. console.log("total", total);
  1901. this.total = total;
  1902. this.operators = operators;
  1903. this.dialysisOrder =
  1904. response.data.data.dialysisOrder === null
  1905. ? null
  1906. : response.data.data.dialysisOrder;
  1907. if (this.operators.length > 0) {
  1908. var operatorsLen = this.operators.length;
  1909. for (var index = 0; index < operatorsLen; index++) {
  1910. this.$set(
  1911. this.operatorMaps,
  1912. this.operators[index].creator,
  1913. this.operators[index]
  1914. );
  1915. }
  1916. }
  1917. this.afterdialysis.txqnx = -1;
  1918. if (this.afterdialysis.cruor.indexOf("0度") > -1) {
  1919. this.afterdialysis.txqnx = 0;
  1920. }
  1921. if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
  1922. this.afterdialysis.txqnx = 1;
  1923. }
  1924. if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
  1925. this.afterdialysis.txqnx = 2;
  1926. }
  1927. if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
  1928. this.afterdialysis.txqnx = 3;
  1929. }
  1930. this.afterdialysis.complications =
  1931. this.afterdialysis.complication.split(",");
  1932. this.afterdialysis.complications_other = [];
  1933. this.afterdialysis.complications_index = [];
  1934. var acllen = this.afterdialysis.complications.length;
  1935. for (let index = 0; index < acllen; index++) {
  1936. if (
  1937. this.complications.indexOf(
  1938. this.afterdialysis.complications[index]
  1939. ) >= 0
  1940. ) {
  1941. this.afterdialysis.complications_index.push(
  1942. this.afterdialysis.complications[index]
  1943. );
  1944. } else if (
  1945. this.complications.indexOf(
  1946. this.afterdialysis.complications[index]
  1947. ) < 0 &&
  1948. this.afterdialysis.complications_other.indexOf(
  1949. this.afterdialysis.complications[index]
  1950. ) < 0
  1951. ) {
  1952. this.afterdialysis.complications_other.push(
  1953. this.afterdialysis.complications[index]
  1954. );
  1955. }
  1956. }
  1957. this.afterdialysis.complications_other =
  1958. this.afterdialysis.complications_other.join(",");
  1959. var prescription = response.data.data.dialysisPrescription;
  1960. this.prescription = prescription;
  1961. var schedule = response.data.data.schedule;
  1962. // console.log('排班', schedule)
  1963. this.schedule = schedule;
  1964. var receiverTreatmentAccess =
  1965. response.data.data.receiverTreatmentAccess;
  1966. console.log("接诊评估", receiverTreatmentAccess);
  1967. var obj = receiverTreatmentAccess.precaution;
  1968. var arr = obj.split(",");
  1969. console.log("arr", arr);
  1970. var arr2 = [];
  1971. for (let i = 0; i < this.precautions.length; i++) {
  1972. for (let j = 0; j < arr.length; j++) {
  1973. if (this.precautions[i].id == parseInt(arr[j])) {
  1974. arr2.push(this.precautions[i].name);
  1975. }
  1976. }
  1977. }
  1978. var obj2 = arr2.join(",");
  1979. console.log("obj2", obj2);
  1980. receiverTreatmentAccess.precaution = obj2;
  1981. console.log("接诊评估", receiverTreatmentAccess);
  1982. this.receiverTreatmentAccess = receiverTreatmentAccess;
  1983. var dialysisway = response.data.data.dialysisway;
  1984. console.log("透析处方", dialysisway);
  1985. this.target_ultrafiltration = dialysisway.target_ultrafiltration;
  1986. var order = response.data.data.order;
  1987. // console.log('上下机', order)
  1988. var start_nurse = response.data.data.startNuse;
  1989. // console.log('上机护士', start_nurse)
  1990. this.orderForm.start_nurse = start_nurse.user_name;
  1991. this.orderForm.url = start_nurse.url;
  1992. var finish_nurse = response.data.data.FinishNuse;
  1993. // console.log('下机护士', finish_nurse)
  1994. this.finshForm.url = finish_nurse.url;
  1995. this.finshForm.finish_nurse = finish_nurse.user_name;
  1996. var doctorname = response.data.data.DoctorName;
  1997. // console.log('医师签名', doctorname)
  1998. this.doctorForm.doctor = doctorname.user_name;
  1999. this.doctorForm.url = doctorname.url;
  2000. this.bed = order.number;
  2001. this.replacement_total = dialysisway.replacement_total;
  2002. this.anticoagulant = dialysisway.anticoagulant;
  2003. this.anticoagulant_shouji = dialysisway.anticoagulant_shouji;
  2004. this.anticoagulant_zongliang = dialysisway.anticoagulant_zongliang;
  2005. this.prescription_dewatering = dialysisway.prescription_dewatering;
  2006. this.blood_flow_volume = dialysisway.blood_flow_volume;
  2007. this.dialysate_flow = dialysisway.dialysate_flow;
  2008. this.dialyzer_perfusion_apparatus =
  2009. dialysisway.dialyzer_perfusion_apparatus;
  2010. this.dialysate_formulation = dialysisway.dialysate_formulation;
  2011. this.blood_access = dialysisway.blood_access;
  2012. this.displace_liqui = dialysisway.displace_liqui;
  2013. this.kalium = dialysisway.kalium;
  2014. this.sodium = dialysisway.sodium;
  2015. this.calcium = dialysisway.calcium;
  2016. this.anticoagulant_weichi = dialysisway.anticoagulant_weichi;
  2017. // var afterWeightLast = response.data.data.assessmentAfterDislysis
  2018. // this.afterWeightLast = afterWeightLast.weight_after
  2019. // eslint-disable-next-line no-undef
  2020. // console.log('透前体重', this.weight_before)
  2021. // console.log('干体中', this.dry_weight)
  2022. // console.log('什么体重', predialysis.additional_weight)
  2023. // console.log('较干体中增加量', this.dryWeight_add)
  2024. // this.afterWeightLast = afterWeightLast.weight_after
  2025. this.prescription.mode = this.modeName(this.prescription.mode_id);
  2026. var rwLen = this.replacementWays.length;
  2027. this.prescription.replacement = "";
  2028. for (let index = 0; index < rwLen; index++) {
  2029. if (
  2030. this.replacementWays[index].id ==
  2031. this.prescription.replacement_way
  2032. ) {
  2033. this.prescription.replacement = this.replacementWays[index].name;
  2034. break;
  2035. }
  2036. }
  2037. this.prescription.dialysate_formulation_name =
  2038. this.dialysateFormulationName(
  2039. this.prescription.dialysate_formulation
  2040. );
  2041. var paLen = this.perfusionApparatus.length;
  2042. this.prescription.perfusion_apparatus_name = "";
  2043. for (let index = 0; index < paLen; index++) {
  2044. if (
  2045. this.perfusionApparatus[index].id ==
  2046. this.prescription.perfusion_apparatus
  2047. ) {
  2048. this.prescription.perfusion_apparatus_name =
  2049. this.perfusionApparatus[index].name;
  2050. break;
  2051. }
  2052. }
  2053. // eslint-disable-next-line no-unused-vars
  2054. var acLen = this.anticoagulantsConfit.length;
  2055. var thisALID = this.prescription.anticoagulant;
  2056. this.prescription.anticoagulant_name = "";
  2057. if (
  2058. typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
  2059. this.anticoagulantsConfit[thisALID] != null
  2060. ) {
  2061. this.prescription.anticoagulant_name =
  2062. this.anticoagulantsConfit[thisALID].name;
  2063. this.AlPanel = this.anticoagulantsConfit[thisALID];
  2064. }
  2065. this.advices = response.data.data.advices;
  2066. // console.log('医嘱', this.advices)
  2067. var monitor = response.data.data.monitor;
  2068. // console.log('透析监测', monitor)
  2069. this.monitor = monitor;
  2070. // console.log('monitor', monitor)
  2071. this.monitors = response.data.data.monitors;
  2072. // console.log("透析监测", this.monitors);
  2073. var summary = response.data.data.summary;
  2074. console.log("透析小结", summary);
  2075. this.mission = summary.mission;
  2076. this.dialysis_summary = summary.dialysis_summary;
  2077. this.nursing_record = summary.nursing_record;
  2078. this.special_record = summary.special_record;
  2079. this.org_template_info = response.data.data.org_template_info;
  2080. if (this.monitors.length < 7) {
  2081. var nl = 8 - this.monitors.length;
  2082. for (let index = 0; index < nl; index++) {
  2083. this.monitors.push([]);
  2084. }
  2085. }
  2086. this.jilurow = this.monitors.length + 1;
  2087. this.advice_jilurow = this.advices.length + 1;
  2088. var childMap = {};
  2089. for (const index in this.advices) {
  2090. if (this.advices[index].parent_id == 0) {
  2091. continue;
  2092. }
  2093. if (!(this.advices[index].parent_id in childMap)) {
  2094. childMap[this.advices[index].parent_id] = [];
  2095. }
  2096. childMap[this.advices[index].parent_id].push(this.advices[index]);
  2097. }
  2098. var advices = [];
  2099. for (const index in this.advices) {
  2100. if (this.advices[index].parent_id > 0) {
  2101. continue;
  2102. }
  2103. var item = this.advices[index];
  2104. if (item.id in childMap) {
  2105. item.children = childMap[item.id];
  2106. } else {
  2107. item.children = [];
  2108. }
  2109. advices.push(item);
  2110. }
  2111. var leftAdvice = [];
  2112. var rightAdvice = [];
  2113. var adlen = advices.length;
  2114. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
  2115. for (var i = 0; i < halfLen; i++) {
  2116. leftAdvice.push(advices[i]);
  2117. rightAdvice.push(advices[i + halfLen]);
  2118. }
  2119. if (halfLen < 5) {
  2120. var nl = 5 - leftAdvice.length;
  2121. for (let index = 0; index < nl; index++) {
  2122. leftAdvice.push([]);
  2123. }
  2124. var nl = 5 - rightAdvice.length;
  2125. for (let index = 0; index < nl; index++) {
  2126. rightAdvice.push([]);
  2127. }
  2128. }
  2129. this.advices = [];
  2130. for (var i = 0; i < halfLen; i++) {
  2131. var item = [];
  2132. item.push(leftAdvice[i]);
  2133. item.push(rightAdvice[i]);
  2134. this.advices.push(item);
  2135. }
  2136. this.loading = false;
  2137. this.doctor_advices =
  2138. response.data.data.advices == null
  2139. ? []
  2140. : response.data.data.advices;
  2141. for (let index = 0; index < this.doctor_advices.length; index++) {
  2142. this.doctor_advices[index]["isShow"] = 2;
  2143. }
  2144. if (this.doctor_advices.length > 0) {
  2145. var group = this.newAdviceGroupObject();
  2146. var initGroupBlock = function (group, advice) {
  2147. group.group_no = advice.groupno;
  2148. };
  2149. for (
  2150. let index = this.doctor_advices.length - 1;
  2151. index >= 0;
  2152. index--
  2153. ) {
  2154. var new_advice_index = 0;
  2155. if (
  2156. "children" in this.doctor_advices[index] &&
  2157. this.doctor_advices[index].children.length > 0
  2158. ) {
  2159. new_advice_index =
  2160. index + this.doctor_advices[index].children.length + 1;
  2161. var doctor_advice = {
  2162. delivery_way: this.doctor_advices[index].delivery_way,
  2163. execution_frequency:
  2164. this.doctor_advices[index].execution_frequency,
  2165. groupno: this.doctor_advices[index].groupno,
  2166. id: this.doctor_advices[index].id,
  2167. parent_id: this.doctor_advices[index].parent_id,
  2168. children: this.doctor_advices[index].children,
  2169. remark: this.doctor_advices[index].remark,
  2170. };
  2171. doctor_advice["isShow"] = 1;
  2172. this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
  2173. // this.doctor_advices.push(doctor_advice)
  2174. }
  2175. }
  2176. for (let index = 0; index < this.doctor_advices.length; index++) {
  2177. const advice = this.doctor_advices[index];
  2178. if (advice.groupno == 0) {
  2179. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  2180. if (advice.parent_id > 0) {
  2181. if (this.advice_groups.length > 0) {
  2182. var parent_group =
  2183. this.advice_groups[this.advice_groups.length - 1];
  2184. if (parent_group.advices.length > 0) {
  2185. if (parent_group.advices[0].id == advice.parent_id) {
  2186. parent_group.advices.push(advice);
  2187. }
  2188. }
  2189. }
  2190. continue;
  2191. } else {
  2192. if (group.group_no > 0) {
  2193. this.advice_groups.push(group);
  2194. group = this.newAdviceGroupObject();
  2195. }
  2196. initGroupBlock(group, advice);
  2197. group.advices.push(advice);
  2198. this.advice_groups.push(group);
  2199. group = this.newAdviceGroupObject();
  2200. continue;
  2201. }
  2202. }
  2203. if (group.group_no > 0 && group.group_no != advice.groupno) {
  2204. this.advice_groups.push(group);
  2205. group = this.newAdviceGroupObject();
  2206. }
  2207. if (group.group_no == 0) {
  2208. initGroupBlock(group, advice);
  2209. }
  2210. if (group.group_no == advice.groupno) {
  2211. group.advices.push(advice);
  2212. }
  2213. }
  2214. if (group.group_no > 0) {
  2215. // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  2216. this.advice_groups.push(group);
  2217. }
  2218. }
  2219. } else {
  2220. this.loading = false;
  2221. this.$message.error("请求数据失败");
  2222. return false;
  2223. }
  2224. });
  2225. },
  2226. bloodAccessParOperaName(id) {
  2227. if (id in this.bloodAccessParOpera) {
  2228. return this.bloodAccessParOpera[id].name;
  2229. }
  2230. return "";
  2231. },
  2232. dialysateFormulationName(id) {
  2233. if (id in this.dialysateFormulationOptions) {
  2234. return this.dialysateFormulationOptions[id].name;
  2235. }
  2236. return "";
  2237. },
  2238. getAge: function (val) {
  2239. if (val.birthday != 0) {
  2240. return jsGetAge(val.birth, "-");
  2241. } else {
  2242. return "";
  2243. }
  2244. },
  2245. newAdviceGroupObject: function () {
  2246. return Object.assign(
  2247. {},
  2248. {
  2249. group_no: 0,
  2250. // advice_doctor: 0,
  2251. // start_time: 0,
  2252. advices: [],
  2253. // exec_staff: 0,
  2254. // exec_time: 0,
  2255. // checker: 0,
  2256. }
  2257. );
  2258. },
  2259. getPartName(id) {
  2260. for (let i = 0; i < this.vascularAccess.length; i++) {
  2261. if (this.vascularAccess[i].id == id) {
  2262. return this.vascularAccess[i].name;
  2263. }
  2264. }
  2265. },
  2266. },
  2267. watch: {
  2268. "patientInfo.gender": function () {
  2269. if (this.patientInfo.gender == 1) {
  2270. this.patientInfo_gender_1 = true;
  2271. this.patientInfo_gender_2 = false;
  2272. } else if (this.patientInfo.gender == 2) {
  2273. this.patientInfo_gender_2 = true;
  2274. this.patientInfo_gender_1 = false;
  2275. } else {
  2276. this.patientInfo_gender_2 = false;
  2277. this.patientInfo_gender_1 = false;
  2278. }
  2279. },
  2280. "patientInfo.source": function () {
  2281. if (this.patientInfo.source == 1) {
  2282. this.patientInfo_source_1 = true;
  2283. this.patientInfo_source_2 = false;
  2284. } else if (this.patientInfo.source == 2) {
  2285. this.patientInfo_source_2 = true;
  2286. this.patientInfo_source_1 = false;
  2287. } else {
  2288. this.patientInfo_source_2 = false;
  2289. this.patientInfo_source_1 = false;
  2290. }
  2291. },
  2292. },
  2293. created() {
  2294. var xtuser = this.$store.getters.xt_user;
  2295. this.orgname = xtuser.org.org_name;
  2296. // this.orgname = "遂溪方济医院";
  2297. this.modeOptions = this.$store.getters.treatment_mode;
  2298. this.replacementWays = this.$store.getters.replacement_ways;
  2299. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  2300. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  2301. var vascularAccess = getDataConfig("hemodialysis", "vascular_access");
  2302. this.vascularAccess = vascularAccess;
  2303. // console.log("hhe", vascularAccess);
  2304. console.log(
  2305. "血管通路部位",
  2306. getDataConfig("hemodialysis", "vascular_access")
  2307. );
  2308. this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
  2309. var bloodAccessParOpera = getDataConfig(
  2310. "hemodialysis",
  2311. "vascular_access_desc"
  2312. );
  2313. var arr = [];
  2314. var arrtwo = [];
  2315. for (let i = 0; i < bloodAccessParOpera.length; i++) {
  2316. if (bloodAccessParOpera[i].name == "内瘘波动及震颤-存在") {
  2317. bloodAccessParOpera[i].name = "存在";
  2318. arr.push(bloodAccessParOpera[i]);
  2319. }
  2320. if (bloodAccessParOpera[i].name == "内瘘波动及震颤-减弱") {
  2321. bloodAccessParOpera[i].name = "减弱";
  2322. arr.push(bloodAccessParOpera[i]);
  2323. }
  2324. if (bloodAccessParOpera[i].name == "内瘘波动及震颤-消失") {
  2325. bloodAccessParOpera[i].name = "消失";
  2326. arr.push(bloodAccessParOpera[i]);
  2327. }
  2328. if (bloodAccessParOpera[i].name == "直穿") {
  2329. arrtwo.push(bloodAccessParOpera[i]);
  2330. }
  2331. if (bloodAccessParOpera[i].name == "动脉直穿") {
  2332. arrtwo.push(bloodAccessParOpera[i]);
  2333. }
  2334. if (bloodAccessParOpera[i].name == "动静脉直穿") {
  2335. arrtwo.push(bloodAccessParOpera[i]);
  2336. }
  2337. if (bloodAccessParOpera[i].name == "带隧道带绦纶套股静脉导管") {
  2338. arrtwo.push(bloodAccessParOpera[i]);
  2339. }
  2340. if (bloodAccessParOpera[i].name == "带隧道带绦纶套锁骨下静脉导管") {
  2341. arrtwo.push(bloodAccessParOpera[i]);
  2342. }
  2343. if (bloodAccessParOpera[i].name == "带隧道带绦纶套颈内静脉导管") {
  2344. arrtwo.push(bloodAccessParOpera[i]);
  2345. }
  2346. if (bloodAccessParOpera[i].name == "无绦纶套股静脉导管") {
  2347. arrtwo.push(bloodAccessParOpera[i]);
  2348. }
  2349. if (bloodAccessParOpera[i].name == "无绦纶套锁骨下静脉导管") {
  2350. arrtwo.push(bloodAccessParOpera[i]);
  2351. }
  2352. if (bloodAccessParOpera[i].name == "无绦纶套颈内静脉导管") {
  2353. arrtwo.push(bloodAccessParOpera[i]);
  2354. }
  2355. if (bloodAccessParOpera[i].name == "直线型移植血管动静脉内瘘") {
  2356. arrtwo.push(bloodAccessParOpera[i]);
  2357. }
  2358. if (bloodAccessParOpera[i].name == "自体动静脉内瘘") {
  2359. arrtwo.push(bloodAccessParOpera[i]);
  2360. }
  2361. if (bloodAccessParOpera[i].name == "袢型移植血管动静脉内瘘") {
  2362. arrtwo.push(bloodAccessParOpera[i]);
  2363. }
  2364. if (bloodAccessParOpera[i].name == "静脉直穿") {
  2365. arrtwo.push(bloodAccessParOpera[i]);
  2366. }
  2367. if (bloodAccessParOpera[i].name == "AVG") {
  2368. arrtwo.push(bloodAccessParOpera[i]);
  2369. }
  2370. if (bloodAccessParOpera[i].name == "自体内瘘") {
  2371. arrtwo.push(bloodAccessParOpera[i]);
  2372. }
  2373. if (bloodAccessParOpera[i].name == "AVF") {
  2374. arrtwo.push(bloodAccessParOpera[i]);
  2375. }
  2376. if (bloodAccessParOpera[i].name == "颈内静脉") {
  2377. arrtwo.push(bloodAccessParOpera[i]);
  2378. }
  2379. if (bloodAccessParOpera[i].name == "股静脉") {
  2380. arrtwo.push(bloodAccessParOpera[i]);
  2381. }
  2382. if (bloodAccessParOpera[i].name == "人造血管") {
  2383. arrtwo.push(bloodAccessParOpera[i]);
  2384. }
  2385. if (bloodAccessParOpera[i].name == "移植血管") {
  2386. arrtwo.push(bloodAccessParOpera[i]);
  2387. }
  2388. this.arr = arr;
  2389. this.arrtwo = arrtwo;
  2390. }
  2391. console.log("arr", arr);
  2392. console.log("arrtwo", arrtwo);
  2393. var bloodAccessParOpera = getDataConfig(
  2394. "hemodialysis",
  2395. "vascular_access_desc"
  2396. );
  2397. for (var key in bloodAccessParOpera) {
  2398. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  2399. bloodAccessParOpera[key];
  2400. }
  2401. var dialysateFormulationOptions = getDataConfig(
  2402. "hemodialysis",
  2403. "dialysate_formulation"
  2404. );
  2405. for (var key in dialysateFormulationOptions) {
  2406. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  2407. dialysateFormulationOptions[key];
  2408. }
  2409. const xtdate = this.$route.query && this.$route.query.xtdate;
  2410. const xtno = this.$route.query && this.$route.query.xtno;
  2411. if (
  2412. typeof xtdate === "string" &&
  2413. xtdate.length > 0 &&
  2414. typeof xtno === "string" &&
  2415. xtno.length > 0
  2416. ) {
  2417. this.queryParams.xtdate = xtdate;
  2418. this.queryParams.xtno = xtno;
  2419. this.getDialysisRecord();
  2420. } else {
  2421. this.$message.error("参数不齐");
  2422. return false;
  2423. }
  2424. this.ways = getDataConfig("hemodialysis", "way");
  2425. console.log("ways", this.ways);
  2426. this.consciousnesses = getDataConfig("hemodialysis", "consciousness");
  2427. this.appetites = getDataConfig("hemodialysis", "appetite");
  2428. this.postures = getDataConfig("hemodialysis", "posture");
  2429. this.sick_condition = getDataConfig("hemodialysis", "sick_condition");
  2430. this.precautions = getDataConfig("hemodialysis", "precaution");
  2431. console.log("跌倒", this.precautions);
  2432. this.intake = getDataConfig("hemodialysis", "intake");
  2433. this.nutrition = getDataConfig("hemodialysis", "nutrition");
  2434. },
  2435. };
  2436. </script>
  2437. <style>
  2438. .dialysis-print-order {
  2439. width: 960px;
  2440. margin: 0 auto;
  2441. }
  2442. .dialysis-print-order .order-yy-name {
  2443. margin: auto;
  2444. text-align: center;
  2445. font-size: 20px;
  2446. letter-spacing: 5px;
  2447. }
  2448. .dialysis-print-order .order-title {
  2449. margin: auto;
  2450. font-weight: 600;
  2451. text-align: center;
  2452. font-size: 22px;
  2453. padding: 10px 20px 20px 20px;
  2454. }
  2455. .dialysis-print-order .table-box {
  2456. width: 100%;
  2457. line-height: 23px;
  2458. font-size: 14px;
  2459. }
  2460. .dialysis-print-order .print-table {
  2461. width: 100%;
  2462. text-align: center;
  2463. border-collapse: collapse;
  2464. line-height: 40px;
  2465. font-size: 14px;
  2466. }
  2467. .dialysis-print-order .print-table-no {
  2468. width: 100%;
  2469. text-align: center;
  2470. border-collapse: collapse;
  2471. font-size: 14px;
  2472. }
  2473. .dialysis-print-order .under-line {
  2474. border-bottom: 1px solid #999;
  2475. width: 95%;
  2476. text-align: center;
  2477. margin-left: 2px;
  2478. }
  2479. .dialysis-print-order .title-box {
  2480. text-align: center;
  2481. font-size: 16px;
  2482. }
  2483. .dialysis-print-order .radio-lebel-box {
  2484. font-weight: 400;
  2485. cursor: pointer;
  2486. }
  2487. .dialysis-print-order .radio-no {
  2488. opacity: 0;
  2489. outline: none;
  2490. position: absolute;
  2491. margin: 0;
  2492. width: 0;
  2493. height: 0;
  2494. z-index: -1;
  2495. }
  2496. .dialysis-print-order .radio-inner {
  2497. white-space: nowrap;
  2498. cursor: pointer;
  2499. outline: none;
  2500. display: inline-block;
  2501. line-height: 1;
  2502. position: relative;
  2503. vertical-align: middle;
  2504. }
  2505. .dialysis-print-order .radio-fang {
  2506. display: inline-block;
  2507. position: relative;
  2508. border: 1px solid #000;
  2509. box-sizing: border-box;
  2510. width: 14px;
  2511. height: 14px;
  2512. background-color: #fff;
  2513. z-index: 1;
  2514. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  2515. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  2516. }
  2517. .dialysis-print-order .is-checked-radio::after {
  2518. content: "√";
  2519. font-size: 15px;
  2520. }
  2521. .dialysis-print-order .print-table-no tr td {
  2522. padding: 8px 5px;
  2523. line-height: 25px;
  2524. }
  2525. .dialysis-print-order .print-table tr td {
  2526. padding: 1px 1px;
  2527. /*line-height: 25px;*/
  2528. }
  2529. .es-img {
  2530. height: 25px;
  2531. }
  2532. .advice-name {
  2533. text-align: left;
  2534. }
  2535. .advice-children {
  2536. display: flex;
  2537. }
  2538. .title-box-pro {
  2539. border: 0 #fff;
  2540. line-height: 25px;
  2541. height: 25px;
  2542. text-align: left;
  2543. padding-left: 10px !important;
  2544. }
  2545. .title-box-pro-tr {
  2546. border: 0 #fff;
  2547. }
  2548. .text-align-left {
  2549. text-align: left !important;
  2550. padding-left: 10px !important;
  2551. font-size: 14px !important;
  2552. line-height: 25px;
  2553. }
  2554. .print-table-tr-new td {
  2555. line-height: 20px !important;
  2556. }
  2557. .border-top-solid {
  2558. border: solid 1px #000;
  2559. }
  2560. .print-template-two tr {
  2561. line-height: 30px;
  2562. }
  2563. .parent {
  2564. text-align: left;
  2565. padding-left: 20px !important;
  2566. }
  2567. </style>