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

DialysisPrintOrderFiftyThree.vue 94KB

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