courseOfDisease_new.vue 150KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051
  1. <template>
  2. <!-- <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb></bread-crumb>
  5. </div> -->
  6. <div class="patient-container">
  7. <PatientSidebar :id="patient_id" defaultActive="3-5"></PatientSidebar>
  8. <div v-loading="loading">
  9. <div class="patient-app-container advice-container app-container" style="">
  10. <div style="display: flex;">
  11. <div style="width: 34%;">
  12. <div style="display: flex;">
  13. <div style="flex: 1.1;">
  14. <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;">病史列表</span>
  15. </div>
  16. <div style="flex: 0.9;text-align: right;">
  17. <el-button type="primary" size="small" @click="add_click">添加</el-button>
  18. </div>
  19. </div>
  20. <div>
  21. <el-table class="table"
  22. ref="phy_table"
  23. :data="tableData"
  24. :highlight-current-row="true"
  25. @current-change="getCurrentChangeOne"
  26. style="width: 100%">
  27. <el-table-column prop="index" label="序号" width="50">
  28. <template slot-scope="scope">
  29. {{ scope.$index + 1 }}
  30. </template>
  31. </el-table-column>
  32. <el-table-column prop="date" label="时间" width="">
  33. <template slot-scope="scope">
  34. {{ getTimeThree(scope.row.record_time) }}
  35. </template>
  36. </el-table-column>
  37. <el-table-column prop="doctor" label="医生">
  38. <template slot-scope="scope">
  39. {{ getDocName(scope.row.recorder) }}
  40. </template>
  41. </el-table-column>
  42. </el-table>
  43. </div>
  44. </div>
  45. <div style="width: 65%;margin-left: 10px;">
  46. <div style="display: flex;">
  47. <div style="flex: 1;">
  48. <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;">详情</span>
  49. </div>
  50. <div style="flex: 1;text-align: right;">
  51. <div v-if='add_index == 0'>
  52. <el-button type="primary" size="small" @click="showEdit">修改</el-button>
  53. <el-button size="small" type="danger" @click="deleteAction">删除</el-button>
  54. <el-button type="primary" size="small" @click="prints">打印</el-button>
  55. </div>
  56. <div v-if="add_index == 1">
  57. <el-button type="primary" size="small" @click="showSave">保存</el-button>
  58. <el-button size="small" @click="showCancel">取消</el-button>
  59. </div>
  60. </div>
  61. </div>
  62. <div style="display: flex;margin: 10px 0;">
  63. <div style="flex: 1;">
  64. 记录时间:
  65. <el-date-picker v-model="record_date" prefix-icon="el-icon-date" :editable="false"
  66. style="width: 250px;"
  67. format="yyyy-MM-dd HH:mm:ss"
  68. value-format="yyyy-MM-dd HH:mm:ss"
  69. type="datetime" placeholder="选择日期时间" align="right"
  70. ></el-date-picker>
  71. </div>
  72. <div style="flex: 1;">
  73. 病程医生:
  74. <el-select v-model="admin_user_id" placeholder="请选择" :disabled="disabled">
  75. <el-option
  76. v-for="item in doctorOptions"
  77. :key="item.admin_user_id"
  78. :label="item.user_name"
  79. :value="item.admin_user_id">
  80. </el-option>
  81. </el-select>
  82. </div>
  83. </div>
  84. <div>
  85. <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">
  86. 病程内容
  87. </span>
  88. <div style="margin: 10px 0;">
  89. <el-button type="primary" size="small" @click="template_click">
  90. {{ add_index ==0 ? '设置模板' : '模板库' }}
  91. </el-button>
  92. <el-button type="primary" size="small" @click="auto_click" style="padding-bottom: 10px;">
  93. 自动生成
  94. </el-button>
  95. <el-button type="primary" size="small" @click="Inspect_click" style="padding-bottom: 10px;">
  96. 科室检查
  97. </el-button>
  98. <el-button type="primary" size="small" @click="blood_click" style="padding-bottom: 10px;">
  99. 血压
  100. </el-button>
  101. <el-button type="primary" size="small" @click="summary_click" style="margin-bottom: 10px;">
  102. 透析小结汇总
  103. </el-button>
  104. <el-button type="primary" size="small" @click="weight_click" style="margin-bottom: 10px;">
  105. 干体重
  106. </el-button>
  107. <el-button type="primary" size="small" @click="option_click" style="margin-bottom: 10px;">
  108. 透析方案
  109. </el-button>
  110. <el-button type="primary" size="small" @click="advice_click" style="margin-bottom: 10px;">
  111. 医嘱
  112. </el-button>
  113. <el-button type="primary" size="small" @click="diagnosis_click" style="margin-bottom: 10px;">
  114. 诊断
  115. </el-button>
  116. <el-button type="primary" size="small" @click="hospital_click" style="margin-bottom: 10px;">
  117. 出入院记录
  118. </el-button>
  119. </div>
  120. <ueditor ref="editor" id="editors" :content="new_content"></ueditor>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. <el-dialog
  126. title="设置模板"
  127. :visible.sync="template_dialog"
  128. width="20%"
  129. center>
  130. <div>
  131. 模板名称:
  132. <el-input v-model="title" placeholder="请输入内容" style="width: 160px;"></el-input>
  133. </div>
  134. <span slot="footer" class="dialog-footer">
  135. <el-button @click="template_dialog = false">取 消</el-button>
  136. <el-button type="primary" @click="saveTemplate">确 定</el-button>
  137. </span>
  138. </el-dialog>
  139. <el-dialog
  140. title="模板库"
  141. :visible.sync="library_dialog"
  142. width="70%"
  143. class="lirary"
  144. >
  145. <div>
  146. <div style="display: flex;">
  147. <div style="width: 27%;">
  148. <el-table
  149. :data="templateList"
  150. :highlight-current-row="true"
  151. @row-click="rowclick"
  152. ref="record_table_one"
  153. @current-change="getCurrentChangeTwo"
  154. style="width: 100%">
  155. <el-table-column prop="index" label="序号" width="">
  156. <template slot-scope="scope">
  157. {{ scope.$index + 1 }}
  158. </template>
  159. </el-table-column>
  160. <el-table-column prop="name" label="模板名称" width="">
  161. <template slot-scope="scope">
  162. {{ scope.row.title }}
  163. </template>
  164. </el-table-column>
  165. </el-table>
  166. </div>
  167. <div style="width: 72%;margin-left: 10px;">
  168. <div class="Second_title">模板内容</div>
  169. <div style="">
  170. <keep-alive>
  171. <ueditor ref="editorOne" id="editors" :content="new_content"></ueditor>
  172. </keep-alive>
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. <span slot="footer" class="dialog-footer" style="text-align: center;">
  178. <el-button type="danger" @click="template_dele">删除模板</el-button>
  179. <el-button type="primary" @click="template_save">保存模板</el-button>
  180. <el-button type="primary" @click="toContentPint(1)">应用</el-button>
  181. <el-button @click="library_dialog = false">取消</el-button>
  182. </span>
  183. </el-dialog>
  184. <el-dialog
  185. title="提示"
  186. :visible.sync="auto_dialog"
  187. width="70%"
  188. top="0"
  189. >
  190. <div>
  191. <div style="display:flex;position: absolute;left: 20%;top: 20px;">
  192. <div>
  193. 取值时间:
  194. <el-select v-model="quzhi_date" @change="datachange" placeholder="请选择" style="width: 120px;">
  195. <el-option
  196. v-for="item in quzhi_options"
  197. :key="item.value"
  198. :label="item.label"
  199. :value="item.value">
  200. </el-option>
  201. </el-select>
  202. </div>
  203. <div style="margin:0 10px">
  204. <el-date-picker
  205. @change="changStartDate"
  206. v-model="start_date"
  207. type="date"
  208. value-format="yyyy-MM-dd"
  209. placeholder="选择日期"
  210. style="width: 150px;">
  211. </el-date-picker>
  212. <span>-</span>
  213. <el-date-picker
  214. @change="changEndDate"
  215. v-model="end_date"
  216. type="date"
  217. value-format="yyyy-MM-dd"
  218. placeholder="选择日期"
  219. style="width: 150px;">
  220. </el-date-picker>
  221. </div>
  222. <div style="text-align: right;margin-bottom: 10px;">
  223. <el-button type="primary" size="small" @click="autotext_click">
  224. 生成
  225. </el-button>
  226. <el-button type="primary" size="small" @click="auto_dialog=false">
  227. 取消
  228. </el-button>
  229. </div>
  230. </div>
  231. <div v-show="AuToShow">
  232. <div v-html="textcontent" id="editer"></div>
  233. <!-- <text_content @new_content="newcontent" :patient="patient" :prescription="prescription" :berforList="berforList"
  234. :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList"
  235. :start_date="start_date" :end_date="end_date" :patient_id="patient_id" :num="num" :longAdvice="longAdvice" :groupPrescriptionList="groupPrescriptionList" :afterList="afterList" :max_blood_flow_volume="max_blood_flow_volume"
  236. :max_befor_systolic_blood_pressure="max_befor_systolic_blood_pressure" :min_befor_systolic_blood_pressure="min_befor_systolic_blood_pressure" :max_befor_diastolic_blood_pressure="max_befor_diastolic_blood_pressure" :min_befor_diastolic_blood_pressure="min_befor_diastolic_blood_pressure"
  237. :max_after_systolic_blood_pressure="max_after_systolic_blood_pressure" :min_after_systolic_blood_pressure="min_after_systolic_blood_pressure" :max_after_diastolic_blood_pressure="max_after_diastolic_blood_pressure" :min_after_diastolic_blood_pressure="min_after_diastolic_blood_pressure"
  238. :max_monitor_systolic_blood_pressure="max_monitor_systolic_blood_pressure" :min_monitor_systolic_blood_pressure="min_monitor_systolic_blood_pressure" :max_monitor_diastolic_blood_pressure="max_monitor_diastolic_blood_pressure" :min_monitor_diastolic_blood_pressure="min_monitor_diastolic_blood_pressure"
  239. :lastDryWeight="lastDryWeight" :patientVascularAccess="patientVascularAccess" :lastBefor="lastBefor"></text_content> -->
  240. </div>
  241. </div>
  242. </el-dialog>
  243. <!-- 血压 -->
  244. <el-dialog
  245. title="血压"
  246. :visible.sync="blood_dialog"
  247. width="70%"
  248. class="lirary"
  249. >
  250. <div>
  251. <div style="display:flex;">
  252. <div>
  253. 日期:
  254. <el-select v-model="blood_date" @change="blood_chang" placeholder="请选择" style="width: 120px;">
  255. <el-option
  256. v-for="item in date_options"
  257. :key="item.value"
  258. :label="item.label"
  259. :value="item.value">
  260. </el-option>
  261. </el-select>
  262. </div>
  263. <div style="margin:0 10px">
  264. <el-date-picker
  265. @change="changStartDate"
  266. v-model="start_date1"
  267. type="date"
  268. value-format="yyyy-MM-dd"
  269. placeholder="选择日期"
  270. style="width: 150px;">
  271. </el-date-picker>
  272. <span>-</span>
  273. <el-date-picker
  274. @change="changEndDate"
  275. v-model="end_date1"
  276. type="date"
  277. value-format="yyyy-MM-dd"
  278. placeholder="选择日期"
  279. style="width: 150px;">
  280. </el-date-picker>
  281. </div>
  282. <div style="text-align: right;margin-bottom: 10px;">
  283. <el-button type="primary" size="small" @click="getMonitorSearchList">
  284. 查询
  285. </el-button>
  286. </div>
  287. </div>
  288. <div style="display: flex;">
  289. <div style="width: 27%;">
  290. <div class="Second_title">血压列表</div>
  291. <el-table
  292. :data="monitorListOne"
  293. :highlight-current-row="true"
  294. ref="blood_table"
  295. @current-change="handleMonitorChange"
  296. style="width: 100%">
  297. <el-table-column prop="date" label="透析日期" width="" align="center">
  298. <template slot-scope="scope" a>
  299. {{ getTime(scope.row.schedule_date) }}
  300. </template>
  301. </el-table-column>
  302. <el-table-column prop="mode" label="透析方式" width="" align="center">
  303. <template slot-scope="scope">
  304. {{ getModeId(scope.row.mode_id) }}
  305. </template>
  306. </el-table-column>
  307. </el-table>
  308. </div>
  309. <div style="width: 72%;margin-left: 10px;">
  310. <div class="Second_title">内容</div>
  311. <div class="blood_text" style="" >
  312. <div v-html="monitor_blood_context"></div>
  313. </div>
  314. </div>
  315. </div>
  316. </div>
  317. <span slot="footer" class="dialog-footer" style="text-align: center;">
  318. <el-button type="primary" @click="toMonitorPint">应用</el-button>
  319. <!-- <el-button type="danger" @click="template_dele">删除模板</el-button>
  320. <el-button type="primary" @click="template_save">保存模板</el-button> -->
  321. <!-- <el-button type="primary" @click="toContentPint(2)">应用</el-button> -->
  322. <el-button @click="blood_dialog = false">取消</el-button>
  323. </span>
  324. </el-dialog>
  325. <!-- 透析小结汇总 -->
  326. <el-dialog
  327. title="透析小结"
  328. :visible.sync="summary_dialog"
  329. width="70%"
  330. class="lirary"
  331. >
  332. <div>
  333. <div style="display:flex;">
  334. <div>
  335. 日期:
  336. <el-select v-model="blood_date" @change="blood_chang" placeholder="请选择" style="width: 120px;">
  337. <el-option
  338. v-for="item in date_options"
  339. :key="item.value"
  340. :label="item.label"
  341. :value="item.value">
  342. </el-option>
  343. </el-select>
  344. </div>
  345. <div style="margin:0 10px">
  346. <el-date-picker
  347. @change="changStartDate"
  348. v-model="start_date1"
  349. type="date"
  350. value-format="yyyy-MM-dd"
  351. placeholder="选择日期"
  352. style="width: 150px;">
  353. </el-date-picker>
  354. <span>-</span>
  355. <el-date-picker
  356. @change="changEndDate"
  357. v-model="end_date1"
  358. type="date"
  359. value-format="yyyy-MM-dd"
  360. placeholder="选择日期"
  361. style="width: 150px;">
  362. </el-date-picker>
  363. </div>
  364. <div style="text-align: right;margin-bottom: 10px;">
  365. <el-button type="primary" size="small" @click="getSummarySearchList">
  366. 查询
  367. </el-button>
  368. </div>
  369. </div>
  370. <div style="display: flex;">
  371. <div style="width: 27%;">
  372. <div class="Second_title">透析小结汇总列表</div>
  373. <el-table
  374. :data="summaryList"
  375. :highlight-current-row="true"
  376. ref="blood_table"
  377. @current-change="summaryChange"
  378. @selection-change="selectionchange2"
  379. style="width: 100%">
  380. <el-table-column type="selection"width="55">
  381. </el-table-column>
  382. <el-table-column prop="date" label="透析日期" width="" align="center">
  383. <template slot-scope="scope" a>
  384. {{ getTime(scope.row.schedule_date) }}
  385. </template>
  386. </el-table-column>
  387. <el-table-column prop="mode" label="透析方式" width="" align="center">
  388. <template slot-scope="scope">
  389. {{ getModeId(scope.row.mode_id) }}
  390. </template>
  391. </el-table-column>
  392. </el-table>
  393. </div>
  394. <div style="width: 72%;margin-left: 10px;">
  395. <div class="Second_title">内容</div>
  396. <div class="blood_text" style="" >
  397. <div v-html="summary_context"></div>
  398. </div>
  399. </div>
  400. </div>
  401. </div>
  402. <span slot="footer" class="dialog-footer" style="text-align: center;">
  403. <!-- <el-button type="danger" @click="template_dele">删除模板</el-button>
  404. <el-button type="primary" @click="template_save">保存模板</el-button> -->
  405. <el-button type="primary" @click="toSummaryPint">应用</el-button>
  406. <el-button @click="summary_dialog = false">取消</el-button>
  407. </span>
  408. </el-dialog>
  409. <!-- 干体重 -->
  410. <el-dialog
  411. title="干体重"
  412. :visible.sync="weight_dialog"
  413. width="70%"
  414. class="lirary"
  415. >
  416. <div>
  417. <div style="display:flex;">
  418. <div>
  419. 日期:
  420. <el-select v-model="blood_date" @change="blood_chang" placeholder="请选择" style="width: 120px;">
  421. <el-option
  422. v-for="item in date_options"
  423. :key="item.value"
  424. :label="item.label"
  425. :value="item.value">
  426. </el-option>
  427. </el-select>
  428. </div>
  429. <div style="margin:0 10px">
  430. <el-date-picker
  431. @change="changStartDate"
  432. v-model="start_date1"
  433. type="date"
  434. value-format="yyyy-MM-dd"
  435. placeholder="选择日期"
  436. style="width: 150px;">
  437. </el-date-picker>
  438. <span>-</span>
  439. <el-date-picker
  440. @change="changEndDate"
  441. v-model="end_date1"
  442. type="date"
  443. value-format="yyyy-MM-dd"
  444. placeholder="选择日期"
  445. style="width: 150px;">
  446. </el-date-picker>
  447. </div>
  448. <div style="text-align: right;margin-bottom: 10px;">
  449. <el-button type="primary" size="small" @click="getPatientDryWeightList">
  450. 查询
  451. </el-button>
  452. </div>
  453. </div>
  454. <div style="display: flex;">
  455. <div style="width: 27%;">
  456. <div class="Second_title">干体重调整列表</div>
  457. <el-table
  458. :data="dryWeightList"
  459. :highlight-current-row="true"
  460. ref="weight_table"
  461. @current-change="weightChange"
  462. @selection-change="selectionchange3"
  463. style="width: 100%">
  464. <el-table-column prop="date" label="时间" width="" align="center">
  465. <template slot-scope="scope">
  466. {{ getTimeTwo(scope.row.ctime) }}
  467. </template>
  468. </el-table-column>
  469. </el-table>
  470. </div>
  471. <div style="width: 72%;margin-left: 10px;">
  472. <div class="Second_title">内容</div>
  473. <div class="blood_text" style="" >
  474. <div v-html="weight_context"></div>
  475. </div>
  476. </div>
  477. </div>
  478. </div>
  479. <span slot="footer" class="dialog-footer" style="text-align: center;">
  480. <!-- <el-button type="danger" @click="template_dele">删除模板</el-button>
  481. <el-button type="primary" @click="template_save">保存模板</el-button> -->
  482. <el-button type="primary" @click="toDryWeightPint">应用</el-button>
  483. <el-button @click="weight_dialog = false">取消</el-button>
  484. </span>
  485. </el-dialog>
  486. <!-- 透析方案 -->
  487. <el-dialog
  488. title="透析方案"
  489. :visible.sync="option_dialog"
  490. width="70%"
  491. class="lirary"
  492. >
  493. <div>
  494. <div style="display: flex;">
  495. <div style="width: 27%;">
  496. <div class="Second_title">透析方案列表</div>
  497. <el-table
  498. ref="option_table"
  499. :data="optionlist"
  500. :highlight-current-row="true"
  501. @selection-change="selectionchange4"
  502. style="width: 100%">
  503. <el-table-column type="selection"width="55">
  504. </el-table-column>
  505. <el-table-column prop="start" label="状态" width=""></el-table-column>
  506. <el-table-column prop="mode" label="透析模式" width=""></el-table-column>
  507. </el-table>
  508. </div>
  509. <div style="width: 72%;margin-left: 10px;">
  510. <div class="Second_title">方案详情</div>
  511. <div style="">
  512. <keep-alive>
  513. <ueditor ref="editorOne" id="editors" :content="option_context"></ueditor>
  514. </keep-alive>
  515. </div>
  516. </div>
  517. </div>
  518. </div>
  519. <span slot="footer" class="dialog-footer" style="text-align: center;">
  520. <el-button type="primary" @click="toSystemContentPint">应用</el-button>
  521. <el-button @click="option_dialog = false">取消</el-button>
  522. </span>
  523. </el-dialog>
  524. <!-- 医嘱 -->
  525. <el-dialog
  526. title="医嘱"
  527. :visible.sync="advice_dialog"
  528. width="80%"
  529. class="lirary"
  530. >
  531. <div>
  532. <div style="display:flex;">
  533. <div>
  534. 医嘱类型:
  535. <el-select v-model="advice_type" @change="type_chang" placeholder="请选择" style="width: 120px;">
  536. <el-option
  537. v-for="item in type_option"
  538. :key="item.value"
  539. :label="item.label"
  540. :value="item.value">
  541. </el-option>
  542. </el-select>
  543. </div>
  544. <div style="margin-left: 10px;">
  545. 医嘱状态:
  546. <el-select v-model="advice_status" @change="status_chang" placeholder="请选择" style="width: 120px;">
  547. <el-option
  548. v-for="item in status_option"
  549. :key="item.value"
  550. :label="item.label"
  551. :value="item.value">
  552. </el-option>
  553. </el-select>
  554. </div>
  555. </div>
  556. <div style="">
  557. <el-table
  558. :data="adviceList"
  559. :highlight-current-row="true"
  560. ref="weight_table"
  561. @selection-change="selectionchange5"
  562. style="width: 100%">
  563. <el-table-column type="selection"width="55">
  564. </el-table-column>
  565. <el-table-column prop="date" label="开始时间" width="" align="center">
  566. <template slot-scope="scope">
  567. {{ getTimeThree(scope.row.start_time) }}
  568. </template>
  569. </el-table-column>
  570. <el-table-column prop="name" label="医嘱名称" width="" align="center">
  571. <template slot-scope="scope">
  572. {{scope.row.advice_name }}
  573. </template>
  574. </el-table-column>
  575. <el-table-column prop="guige" label="规格" width="" align="center">
  576. <template slot-scope="scope">
  577. {{scope.row.advice_desc}}
  578. </template>
  579. </el-table-column>
  580. <el-table-column prop="danci" label="单次用量" width="" align="center">
  581. <template slot-scope="scope">
  582. <span v-if="scope.row.single_dose>0">{{ scope.row.single_dose }}</span>
  583. </template>
  584. </el-table-column>
  585. <el-table-column prop="geiyao" label="给药途径" width="" align="center">
  586. <template slot-scope="scope">
  587. {{scope.row.delivery_way}}
  588. </template>
  589. </el-table-column>
  590. <el-table-column prop="pinlv" label="执行频率" width="" align="center">
  591. <template slot-scope="scope">
  592. {{scope.row.execution_frequency }}
  593. </template>
  594. </el-table-column>
  595. <el-table-column prop="beizhu" label="备注" width="" align="center">
  596. <template slot-scope="scope">
  597. {{scope.row.remark}}
  598. </template>
  599. </el-table-column>
  600. <el-table-column prop="tingzhi" label="停止时间/执行时间" width="" align="center">
  601. <template slot-scope="scope">
  602. <span v-if="scope.row.advice_type == 1">
  603. {{ getTimeThree(scope.row.stop_time) }}
  604. </span>
  605. <span v-if="scope.row.advice_type != 1">
  606. {{ getTimeThree(scope.row.execution_time) }}
  607. </span>
  608. </template>
  609. </el-table-column>
  610. <el-table-column prop="yuanyin" label="停止原因" width="" align="center">
  611. <template slot-scope="scope">
  612. <span v-if="scope.row.advice_type == 1">
  613. {{scope.row.remark }}
  614. </span>
  615. </template>
  616. </el-table-column>
  617. <el-table-column prop="yisheng" label="停止医生" width="" align="center">
  618. <template slot-scope="scope">
  619. <span v-if="scope.row.advice_type == 1">
  620. {{ getDocName(scope.row.advice_doctor) }}
  621. </span>
  622. </template>
  623. </el-table-column>
  624. </el-table>
  625. </div>
  626. </div>
  627. <span slot="footer" class="dialog-footer" style="text-align: center;" align="center">
  628. <el-button type="primary" @click="toAdviceContentPint">应用</el-button>
  629. <el-button @click="advice_dialog = false">取消</el-button>
  630. </span>
  631. </el-dialog>
  632. <!-- 科室检查 -->
  633. <el-dialog
  634. title="科室检查"
  635. :visible.sync="Inspect_dialog"
  636. width="70%"
  637. class="lirary"
  638. >
  639. <div>
  640. <div style="display:flex;">
  641. <div>
  642. 日期:
  643. <el-select v-model="blood_date" @change="blood_chang" placeholder="请选择" style="width: 120px;">
  644. <el-option
  645. v-for="item in date_options"
  646. :key="item.value"
  647. :label="item.label"
  648. :value="item.value">
  649. </el-option>
  650. </el-select>
  651. </div>
  652. <div style="margin:0 10px">
  653. <el-date-picker
  654. @change="changStartDate"
  655. v-model="start_date1"
  656. type="date"
  657. value-format="yyyy-MM-dd"
  658. placeholder="选择日期"
  659. style="width: 150px;">
  660. </el-date-picker>
  661. <span>-</span>
  662. <el-date-picker
  663. @change="changEndDate"
  664. v-model="end_date1"
  665. type="date"
  666. value-format="yyyy-MM-dd"
  667. placeholder="选择日期"
  668. style="width: 150px;">
  669. </el-date-picker>
  670. </div>
  671. <div style="text-align: right;margin-bottom: 10px;">
  672. <el-button type="primary" size="small" @click="toInspection">
  673. 查询
  674. </el-button>
  675. </div>
  676. </div>
  677. <div style="display: flex;">
  678. <div style="width: 27%;">
  679. <div style="display: flex;">
  680. <div style="flex: 1;">
  681. <div class="Second_title">检验项目</div>
  682. </div>
  683. <div style="flex: 1;text-align: right;">
  684. 全选<el-checkbox v-model="checked" @change="changeInspetion"></el-checkbox>
  685. </div>
  686. </div>
  687. <div>
  688. <el-collapse v-model="activeNames" @change="handleChange" v-for="(item,index) in newInspectionList" :key="item.id">
  689. <el-collapse-item :title="item.project_name" :name="item.project_id">
  690. <ul>
  691. <li v-for="i in item.child" class="inspect" @click="childclick(i)">{{getTime(i.inspect_date)}}</li>
  692. </ul>
  693. </el-collapse-item>
  694. </el-collapse>
  695. </div>
  696. </div>
  697. <div style="width: 72%;margin-left: 10px;">
  698. <div class="Second_title">内容</div>
  699. <div class="blood_text" style="" >
  700. <div v-html="inspect_context"></div>
  701. <!-- {{ blood_context }} -->
  702. </div>
  703. </div>
  704. </div>
  705. </div>
  706. <span slot="footer" class="dialog-footer" style="text-align: center;">
  707. <!-- <el-button type="danger" @click="template_dele">删除模板</el-button>
  708. <el-button type="primary" @click="template_save">保存模板</el-button> -->
  709. <el-button type="primary" @click="toInpectionContentPint">应用</el-button>
  710. <el-button @click="Inspect_dialog = false">取消</el-button>
  711. </span>
  712. </el-dialog>
  713. </div>
  714. <!-- <table border="1" style="border-collapse: collapse;width: 100%;">
  715. <tr><td colspan="4">HD,每周3次,启用</td></tr>
  716. <tr>
  717. <td>透析时长(h):4</td>
  718. <td>置换方式:</td>
  719. <td>血流量(ml/min):250</td>
  720. <td></td>
  721. </tr>
  722. <tr>
  723. <td>血透器:空心纤维血液透析器B-18BHF(B-18BHF)</td>
  724. <td>血滤器:</td>
  725. <td>灌流器:</td>
  726. <td>透析液流量(ml/min):500</td>
  727. </tr>
  728. <tr>
  729. <td>钾(mmol/L):2.0</td>
  730. <td>钠(mmol/L):138</td>
  731. <td>钙(mmol/L):1.5</td>
  732. <td>碳酸氢根(mmol/L):32</td>
  733. </tr>
  734. <tr>
  735. <td>抗凝剂:低分子肝素</td>
  736. <td>首剂(iu):4500</td>
  737. <td>维持(iu): 0</td>
  738. <td>总量(iu):4500</td>
  739. </tr>
  740. <tr><td colspan="4">抗凝剂公式:自定义维持时长(H)</td></tr>
  741. </table> -->
  742. </div>
  743. </template>
  744. <script>
  745. import PatientSidebar from './components/PatientSidebar'
  746. import PatientSidebar_new from './components/PatientSidebar_new'
  747. import Editor from '@/components/Editor'
  748. import ueditor from '@/components/Uedtior'
  749. import text_content from './text_content'
  750. const moment = require('moment')
  751. import { getDataConfig } from "@/utils/data";
  752. import {
  753. createNewCourseOfDiseaseRecord,
  754. deleteNewCouseOfDisease,
  755. modifyCourseOfDiseaseRecord,
  756. getPatientCourseOfDiseaseList,
  757. saveCoureseTemplateTitle,
  758. getPatientCoureOfTempalate,
  759. saveCourseOfNewTemplate,
  760. deleteCourseTempalte,
  761. getAutoPatientContent,
  762. getMonitorSearchList,
  763. getSummarySearchList,
  764. getPatientDryWeightList,
  765. getDilaysisSystemList,
  766. getPatientAdviceList,
  767. getPatientInspectionList,
  768. getInspectionByProjectId,
  769. } from '@/api/patient'
  770. import { fetchMoibleAllDoctorAndNurse } from "@/api/doctor";
  771. import { parseTime } from '@/utils'
  772. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  773. import { uParseTime } from '@/utils/tools'
  774. export default {
  775. name: 'CourseOfDisease',
  776. components: {
  777. PatientSidebar,
  778. BreadCrumb,
  779. Editor,
  780. PatientSidebar_new,
  781. ueditor,
  782. text_content,
  783. },
  784. data() {
  785. return {
  786. loading: false,
  787. title: '',
  788. patient_id: 0,
  789. date: [],
  790. start_time: '',
  791. end_time: '',
  792. course_of_disease_time: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
  793. records: [],
  794. doctors: [],
  795. current_select_record: null,
  796. show_dialog: false,
  797. show_edit_dialog: false,
  798. uploading_new_record: false,
  799. templates: this.$store.getters.configlist.course_disease,
  800. select_template: '',
  801. new_content: '',
  802. edit_new_content: '',
  803. edit_course_of_disease_time: '',
  804. selectingRows: [],
  805. table_current_index: -1,
  806. edit_current_id: 0,
  807. edit_title: '',
  808. ids:"",
  809. idArr:[],
  810. org_id:0,
  811. add_index:0,
  812. disabled:true,
  813. template_dialog:false,
  814. library_dialog:false,
  815. auto_dialog:false,
  816. blood_dialog:false,
  817. summary_dialog:false,
  818. weight_dialog:false,
  819. option_dialog:false,
  820. advice_dialog:false,
  821. Inspect_dialog:false,
  822. checked:false,
  823. quzhi_date:1,
  824. start_date:'',
  825. end_date:'',
  826. start_date1:'',
  827. end_date1:'',
  828. quzhi_options:[{value:1,label:'本周'},{value:2,label:'上周'},{value:3,label:'本月'},{value:4,label:'上月'},],
  829. tableData:[],
  830. admin_user_id:"",
  831. record_date:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
  832. template_name:"",
  833. id:0,
  834. doctorOptions:[],
  835. template_content:"",
  836. template_id:0,
  837. title:"",
  838. templateList:[],
  839. prescription:[],
  840. berforList:[],
  841. monitorList:[],
  842. dryweightList:[],
  843. inpectionList:[],
  844. dialysisOrderList:[],
  845. patient:{},
  846. AuToShow:false,
  847. num:"",
  848. longAdvice:[],
  849. groupPrescriptionList:[],
  850. afterList:[],
  851. max_blood_flow_volume:"",
  852. max_befor_systolic_blood_pressure:"",
  853. min_befor_systolic_blood_pressure:"",
  854. max_befor_diastolic_blood_pressure:"",
  855. min_befor_diastolic_blood_pressure:"",
  856. max_after_systolic_blood_pressure:"",
  857. min_after_systolic_blood_pressure:"",
  858. max_after_diastolic_blood_pressure:"",
  859. min_after_diastolic_blood_pressure:"",
  860. max_monitor_systolic_blood_pressure:"",
  861. min_monitor_systolic_blood_pressure:"",
  862. max_monitor_diastolic_blood_pressure:"",
  863. min_monitor_diastolic_blood_pressure:"",
  864. lastDryWeight:{},
  865. patientVascularAccess:{},
  866. lastBefor:{},
  867. Inspect:[],
  868. textcontent:'',
  869. bloodList:[
  870. {date:'2024-12-14',mode:'HD',
  871. content:'2024-12-14(HD) 透前血压:150/66mmHg;监测记录:150/66mmHg,拒测/拒测mmHg,142/69mmHg,拒测/拒测mmHg,145/69mmHg;透后血压:145/69mmHg。'
  872. },
  873. {date:'2024-12-12',mode:'HD',
  874. content:'2024-12-12(HD) 透前血压:150/66mmHg;监测记录:150/66mmHg,拒测/拒测mmHg,142/69mmHg,拒测/拒测mmHg,145/69mmHg;透后血压:145/69mmHg。'}
  875. ],
  876. weightlist:[],
  877. optionlist:[{start:'启',mode:'HD',content:''},{start:'启',mode:'HDF',content:''}],
  878. advicelist:[{date:'2024-12-17 07:13',name:'非布司他片',guige:'40mg*16T',danci:'25 mg',geiyao:'口服',pinlv:'qn',beizhu:'40mg*16T',tingzhi:'',yuanyin:'口服',yisheng:'qn',},
  879. {date:'2024-12-17 07:13',name:'非布司他片',guige:'40mg*16T',danci:'25 mg',geiyao:'口服',pinlv:'qn',beizhu:'40mg*16T',tingzhi:'',yuanyin:'口服',yisheng:'qn',}
  880. ],
  881. Inspectlist:[{id:'0001',name:'传染病四项',child:[{c_id:1,pater_id:"0001",date:'2024-12-17 07:13',text:'传染病四项 - 检验日期:2024-06-12;HbsAg阴性;抗-HCV阴性;抗-HIV阴性; 梅毒TP阴性;'},
  882. {c_id:2,pater_id:"0001",date:'2024-12-14 07:13',text:'传染病四项 - 检验日期:2024-06-12;HbsAg阴性;抗-HCV阴性;抗-HIV阴性; 梅毒TP阴性;'},{c_id:3,pater_id:"0001",date:'2024-12-17 07:13',text:''},{c_id:4,pater_id:"0001",date:'2024-12-14 07:13',text:''}]},
  883. {id:'0002',name:'铁五项',child:[{c_id:1,pater_id:"0002",date:'2024-12-15 07:13',text:''},{c_id:2,pater_id:"0002",date:'2024-12-16 07:13',text:''}]}
  884. ],
  885. bloodRows:[],
  886. summaryRows:[],
  887. weightRows:[],
  888. optionRows:[],
  889. adviceRows:[],
  890. activeNames:[],
  891. InspectRows:[],
  892. blood_context:'',
  893. summary_context:'',
  894. weight_context:'',
  895. option_context:'',
  896. advice_context:'',
  897. Inspect_context:'',
  898. blood_date:2,
  899. advice_type:2,
  900. advice_status:1,
  901. date_options:[{value:1,label:'当天'},{value:2,label:'最近七天'},{value:3,label:'最近30天'},{value:4,label:'本周'},
  902. {value:5,label:'上周'},{value:6,label:'本月'},{value:7,label:'上月'},{value:8,label:'今年一季度'},
  903. {value:9,label:'今年二季度'},{value:10,label:'今年三季度'},{value:11,label:'今年四季度'},{value:12,label:'今年上半年'},
  904. {value:13,label:'今年下半年'},{value:14,label:'今年'},{value:15,label:'上一年'},{value:16,label:'自定义'},
  905. ],
  906. type_option:[{value:1,label:'不限'},{value:2,label:'长期医嘱'},{value:3,label:'临时医嘱'}],
  907. status_option:[{value:1,label:'不限'},{value:2,label:'未停止'},{value:3,label:'已停止'}],
  908. monitorListOne:[],
  909. monitor_blood_context:"",
  910. summaryList:[],
  911. dryWeightList:[],
  912. adviceList:[],
  913. newInspectionList:[],
  914. newInspectionListOne:[],
  915. inspect_context:"",
  916. inspectionList:[],
  917. newIds:[],
  918. adviceNewList:[],
  919. all_select:0,
  920. systemPrescritpionList:[]
  921. }
  922. },
  923. created() {
  924. this.admin_user_id = this.$store.getters.xt_user.user.id
  925. if(this.admin_user_id == 0){
  926. this.admin_user_id = ""
  927. }
  928. this.patient_id = parseInt(this.$route.query.id)
  929. this.org_id = this.$store.getters.xt_user.template_info.org_id;
  930. if (isNaN(this.patient_id) || this.patient_id <= 0) {
  931. this.$notify.error({
  932. title: '错误',
  933. message: '无效的id'
  934. })
  935. this.$router.push('/patients/patients')
  936. return
  937. }
  938. // const ceshi = ``
  939. // // const ceshi=`hellow word`
  940. // this.new_content = ceshi
  941. // this.$refs.editor.contents=ceshi
  942. // this.start_date = this.getFirstDayOfWeek(new Date())
  943. // this.end_date = this.getTime(new Date())
  944. this.fetchAllDoctorAndNurse()
  945. this.getlist()
  946. },
  947. methods: {
  948. getModeId(mode_id){
  949. var mode_name = ""
  950. if(mode_id == 1){
  951. mode_name ="HD"
  952. }
  953. if(mode_id == 2){
  954. mode_name ="HDF"
  955. }
  956. if(mode_id == 3){
  957. mode_name ="HD+HP"
  958. }
  959. if(mode_id == 4){
  960. mode_name ="HP"
  961. }
  962. if(mode_id == 5){
  963. mode_name ="HF"
  964. }
  965. if(mode_id == 6){
  966. mode_name ="SCUF"
  967. }
  968. if(mode_id == 7){
  969. mode_name ="IUF"
  970. }
  971. if(mode_id == 8){
  972. mode_name ="HFHD"
  973. }
  974. if(mode_id == 9){
  975. mode_name ="HFHD+HP"
  976. }
  977. if(mode_id == 10){
  978. mode_name ="PHF"
  979. }
  980. if(mode_id == 11){
  981. mode_name ="HFR"
  982. }
  983. if(mode_id == 12){
  984. mode_name ="HDF+HP"
  985. }
  986. if(mode_id == 13){
  987. mode_name ="CRRT"
  988. }
  989. if(mode_id == 14){
  990. mode_name ="腹水回输"
  991. }
  992. if(mode_id == 19){
  993. mode_name ="IUF+HD"
  994. }
  995. if(mode_id == 20){
  996. mode_name ="UF"
  997. }
  998. if(mode_id == 21){
  999. mode_name ="HD+"
  1000. }
  1001. if(mode_id == 22){
  1002. mode_name ="血浆胆红素吸附+HDF"
  1003. }
  1004. if(mode_id == 23){
  1005. mode_name ="血浆胆红素吸附"
  1006. }
  1007. if(mode_id == 24){
  1008. mode_name ="I-HDF"
  1009. }
  1010. if(mode_id == 25){
  1011. mode_name ="HD高通"
  1012. }
  1013. if(mode_id == 26){
  1014. mode_name ="CVVH"
  1015. }
  1016. if(mode_id == 27){
  1017. mode_name ="CVVHD"
  1018. }
  1019. if(mode_id == 28){
  1020. mode_name ="CVVHDF"
  1021. }
  1022. if(mode_id == 29){
  1023. mode_name ="PE"
  1024. }
  1025. if(mode_id == 30){
  1026. mode_name ="血浆胆红素吸附+HP"
  1027. }
  1028. if(mode_id == 31){
  1029. mode_name ="HPD"
  1030. }
  1031. if(mode_id == 32){
  1032. mode_name ="HDP"
  1033. }
  1034. if(mode_id == 33){
  1035. mode_name = "HFD"
  1036. }
  1037. if(mode_id == 34){
  1038. mode_name = "HDF100"
  1039. }
  1040. if(mode_id == 35){
  1041. mode_name = "HDF600"
  1042. }
  1043. if(mode_id == 36){
  1044. mode_name = "HDF800"
  1045. }
  1046. if(mode_id == 37){
  1047. mode_name = "HDF1000"
  1048. }
  1049. if(mode_id == 38){
  1050. mode_name = "HDF80"
  1051. }
  1052. if(mode_id == 39){
  1053. mode_name = "HF16"
  1054. }
  1055. if(mode_id == 40){
  1056. mode_name = "HD(无肝素)"
  1057. }
  1058. if(mode_id == 41){
  1059. mode_name = "HDF17H"
  1060. }
  1061. if(mode_id == 42){
  1062. mode_name = "HD."
  1063. }
  1064. if(mode_id == 43){
  1065. mode_name = "HD(2)"
  1066. }
  1067. if(mode_id == 44){
  1068. mode_name = "导管溶栓"
  1069. }
  1070. return mode_name
  1071. },
  1072. getAnticoagulantName(val){
  1073. var anticoagulant_name = ""
  1074. if(val == 1){
  1075. anticoagulant_name = "无肝素"
  1076. }
  1077. if(val == 2){
  1078. anticoagulant_name = "普通肝素"
  1079. }
  1080. if(val == 3){
  1081. anticoagulant_name = "低分子肝素"
  1082. }
  1083. if(val == 4){
  1084. anticoagulant_name = "阿加曲班"
  1085. }
  1086. if(val == 5){
  1087. anticoagulant_name = "枸橼酸钠"
  1088. }
  1089. if(val == 6){
  1090. anticoagulant_name = "低分子肝素钙"
  1091. }
  1092. if(val == 7){
  1093. anticoagulant_name = "低分子肝素钠"
  1094. }
  1095. if(val == 8){
  1096. anticoagulant_name = "依诺肝素"
  1097. }
  1098. if(val == 9){
  1099. anticoagulant_name = "达肝素"
  1100. }
  1101. if(val == 10){
  1102. anticoagulant_name = "体外抗凝"
  1103. }
  1104. if(val == 11){
  1105. anticoagulant_name = "那屈肝素"
  1106. }
  1107. if(val == 12){
  1108. anticoagulant_name = "无抗凝剂"
  1109. }
  1110. if(val == 13){
  1111. anticoagulant_name = "那屈肝素钙"
  1112. }
  1113. if(val == 14){
  1114. anticoagulant_name = "肝素钙注射液"
  1115. }
  1116. if(val == 15){
  1117. anticoagulant_name = "甲磺酸萘莫司他"
  1118. }
  1119. if(val == 16){
  1120. anticoagulant_name = "低分子量肝素钙"
  1121. }
  1122. if(val == 17){
  1123. anticoagulant_name = "肝素钠"
  1124. }
  1125. if(val == 18){
  1126. anticoagulant_name = "贝米肝素钠注射液"
  1127. }
  1128. if(val == 19){
  1129. anticoagulant_name = "低分子量肝素钠"
  1130. }
  1131. return anticoagulant_name
  1132. },
  1133. getAnticoagulantUnit(val){
  1134. var anticoagulant_name = ""
  1135. if(val == 1){
  1136. anticoagulant_name = "mg"
  1137. }
  1138. if(val == 2){
  1139. anticoagulant_name = "IU"
  1140. }
  1141. if(val == 3){
  1142. anticoagulant_name = "IU"
  1143. }
  1144. if(val == 4){
  1145. anticoagulant_name = "mg"
  1146. }
  1147. if(val == 5){
  1148. anticoagulant_name = "ml/h"
  1149. }
  1150. if(val == 6){
  1151. anticoagulant_name = "IU"
  1152. }
  1153. if(val == 7){
  1154. anticoagulant_name = "IU"
  1155. }
  1156. if(val == 8){
  1157. anticoagulant_name = "IU"
  1158. }
  1159. if(val == 9){
  1160. anticoagulant_name = "IU/h"
  1161. }
  1162. if(val == 10){
  1163. anticoagulant_name = "mg/h"
  1164. }
  1165. if(val == 11){
  1166. anticoagulant_name = "mg/h"
  1167. }
  1168. if(val == 12){
  1169. anticoagulant_name = "mg/h"
  1170. }
  1171. if(val == 13){
  1172. anticoagulant_name = "mg/h"
  1173. }
  1174. if(val == 14){
  1175. anticoagulant_name = "iu/h"
  1176. }
  1177. if(val == 15){
  1178. anticoagulant_name = "mg/h"
  1179. }
  1180. if(val == 16){
  1181. anticoagulant_name = "iu/h"
  1182. }
  1183. if(val == 17){
  1184. anticoagulant_name = "mg/h"
  1185. }
  1186. if(val == 18){
  1187. anticoagulant_name = "iu/h"
  1188. }
  1189. if(val == 19){
  1190. anticoagulant_name = "iu/h"
  1191. }
  1192. return anticoagulant_name
  1193. },
  1194. changStartDate(val){
  1195. this.start_date = val
  1196. },
  1197. changEndDate(val){
  1198. this.end_date = val
  1199. },
  1200. datachange(val){
  1201. if(val ==1){
  1202. this.start_date = this.getFirstDayOfWeek(new Date())
  1203. this.end_date = this.getTime(new Date())
  1204. }else if(val ==2){
  1205. this.getlastweek(new Date())
  1206. }else if(val ==3){
  1207. this.start_date = this.getFirstDayOfMonth(new Date())
  1208. this.end_date = this.getTime(new Date())
  1209. }else if(val ==4){
  1210. this.start_date = this.getLastMonthFirstDay()
  1211. this.end_date = this.getLastMonthLastDay()
  1212. }
  1213. },
  1214. toAdviceContentPint(val){
  1215. console.log('blood_context',this.blood_context,this.template_content);
  1216. this.template_content = this.template_content +'<br/>'+ this.blood_context+'<br/>'+this.summary_context +'<br/>' +this.advice_context+'<br/>'+this.option_context
  1217. this.$refs.editor.contents = this.template_content
  1218. const iframe = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('body')[0]
  1219. this.$nextTick(()=>{
  1220. const new_list=document.createElement('table')
  1221. new_list.style.cssText='border:1px solid black;border-collapse:collapse;width:100%';
  1222. let newListItem1 = document.createElement('tr');
  1223. let new_td1 = document.createElement('td');
  1224. let new_td2 = document.createElement('td');
  1225. let new_td3 = document.createElement('td');
  1226. let new_td4 = document.createElement('td');
  1227. let new_td5 = document.createElement('td');
  1228. let new_td6 = document.createElement('td');
  1229. let new_td7 = document.createElement('td');
  1230. let new_td8 = document.createElement('td');
  1231. let new_td9 = document.createElement('td');
  1232. let new_td10 = document.createElement('td');
  1233. new_td1.textContent ='开始时间'
  1234. new_td2.textContent ='医嘱名称'
  1235. new_td3.textContent ='规格'
  1236. new_td4.textContent ='单次用量'
  1237. new_td5.textContent ='给药途径'
  1238. new_td6.textContent ='执行频率'
  1239. new_td7.textContent ='备注'
  1240. new_td8.textContent ='停止时间/执行时间'
  1241. new_td9.textContent ='停止原因'
  1242. new_td10.textContent ='停嘱医生'
  1243. newListItem1.appendChild(new_td1);
  1244. newListItem1.appendChild(new_td2);
  1245. newListItem1.appendChild(new_td3);
  1246. newListItem1.appendChild(new_td4);
  1247. newListItem1.appendChild(new_td5);
  1248. newListItem1.appendChild(new_td6);
  1249. newListItem1.appendChild(new_td7);
  1250. newListItem1.appendChild(new_td8);
  1251. newListItem1.appendChild(new_td9);
  1252. newListItem1.appendChild(new_td10);
  1253. new_list.appendChild(newListItem1)
  1254. if(this.adviceList!=null && this.adviceList.length>0 && this.all_select == 0){
  1255. for(let i in this.adviceList){
  1256. let newListItem2 = document.createElement('tr');
  1257. let new_td1 = document.createElement('td');
  1258. let new_td2 = document.createElement('td');
  1259. let new_td3 = document.createElement('td');
  1260. let new_td4 = document.createElement('td');
  1261. let new_td5 = document.createElement('td');
  1262. let new_td6 = document.createElement('td');
  1263. let new_td7 = document.createElement('td');
  1264. let new_td8 = document.createElement('td');
  1265. let new_td9 = document.createElement('td');
  1266. let new_td10 = document.createElement('td');
  1267. new_td1.textContent =this.getTimeThree(this.adviceList[i].start_time)
  1268. new_td2.textContent =this.adviceList[i].advice_name
  1269. new_td3.textContent =this.adviceList[i].advice_desc
  1270. new_td4.textContent =this.adviceList[i].single_dose
  1271. new_td5.textContent =this.adviceList[i].delivery_way
  1272. new_td6.textContent =this.adviceList[i].execution_frequency
  1273. new_td7.textContent =this.adviceList[i].remark
  1274. if(this.adviceList[i].advice_type == 1){
  1275. new_td8.textContent =this.getTimeThree(this.adviceList[i].stop_time)
  1276. }else{
  1277. new_td8.textContent =this.getTimeThree(this.adviceList[i].execution_time)
  1278. }
  1279. new_td9.textContent =this.adviceList[i].stop_reason
  1280. new_td10.textContent =this.getDocName(this.adviceList[i].advice_doctor)
  1281. newListItem2.appendChild(new_td1);
  1282. newListItem2.appendChild(new_td2);
  1283. newListItem2.appendChild(new_td3);
  1284. newListItem2.appendChild(new_td4);
  1285. newListItem2.appendChild(new_td5);
  1286. newListItem2.appendChild(new_td6);
  1287. newListItem2.appendChild(new_td7);
  1288. newListItem2.appendChild(new_td8);
  1289. newListItem2.appendChild(new_td9);
  1290. newListItem2.appendChild(new_td10);
  1291. new_list.appendChild(newListItem2)
  1292. }
  1293. }
  1294. if(this.adviceNewList!=null && this.adviceNewList.length>0 && this.all_select == 1){
  1295. for(let i in this.adviceNewList){
  1296. let newListItem2 = document.createElement('tr');
  1297. let new_td1 = document.createElement('td');
  1298. let new_td2 = document.createElement('td');
  1299. let new_td3 = document.createElement('td');
  1300. let new_td4 = document.createElement('td');
  1301. let new_td5 = document.createElement('td');
  1302. let new_td6 = document.createElement('td');
  1303. let new_td7 = document.createElement('td');
  1304. let new_td8 = document.createElement('td');
  1305. let new_td9 = document.createElement('td');
  1306. let new_td10 = document.createElement('td');
  1307. new_td1.textContent =this.getTimeThree(this.adviceNewList[i].start_time)
  1308. new_td2.textContent =this.adviceNewList[i].advice_name
  1309. new_td3.textContent =this.adviceNewList[i].advice_desc
  1310. new_td4.textContent =this.adviceNewList[i].single_dose
  1311. new_td5.textContent =this.adviceNewList[i].delivery_way
  1312. new_td6.textContent =this.adviceNewList[i].execution_frequency
  1313. new_td7.textContent =this.adviceNewList[i].remark
  1314. if(this.adviceNewList[i].advice_type == 1){
  1315. new_td8.textContent =this.getTimeThree(this.adviceNewList[i].stop_time)
  1316. }else{
  1317. new_td8.textContent =this.getTimeThree(this.adviceNewList[i].execution_time)
  1318. }
  1319. new_td9.textContent =this.adviceNewList[i].stop_reason
  1320. new_td10.textContent =this.getDocName(this.adviceNewList[i].advice_doctor)
  1321. newListItem2.appendChild(new_td1);
  1322. newListItem2.appendChild(new_td2);
  1323. newListItem2.appendChild(new_td3);
  1324. newListItem2.appendChild(new_td4);
  1325. newListItem2.appendChild(new_td5);
  1326. newListItem2.appendChild(new_td6);
  1327. newListItem2.appendChild(new_td7);
  1328. newListItem2.appendChild(new_td8);
  1329. newListItem2.appendChild(new_td9);
  1330. newListItem2.appendChild(new_td10);
  1331. new_list.appendChild(newListItem2)
  1332. }
  1333. }
  1334. const cont = iframe.getElementsByClassName('advice_table')[0]
  1335. cont.appendChild(new_list)
  1336. console.log('iframe.appendChild(new_list)',cont);
  1337. console.log('this.advice_context',this.advice_context);
  1338. })
  1339. this.advice_dialog = false
  1340. },
  1341. getCurrentChangeOne(val){
  1342. this.$refs.editor.contents = val.content
  1343. this.record_date = ""
  1344. if(val.id > 0){
  1345. this.record_date = this.getTimeThree(val.record_time)
  1346. }else{
  1347. this.record_date = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
  1348. }
  1349. console.log("record_date----------------",this.record_date)
  1350. this.admin_user_id = val.recorder
  1351. if(this.admin_user_id == 0){
  1352. this.admin_user_id = ""
  1353. }
  1354. this.id = val.id
  1355. this.ids = val.id
  1356. },
  1357. getCurrentChangeTwo(val){
  1358. this.$refs.editorOne.contents = val.content
  1359. this.template_content = ""
  1360. this.template_content = val.content
  1361. this.template_id = val.id
  1362. },
  1363. template_dele(){
  1364. deleteCourseTempalte(this.template_id).then(response=>{
  1365. if(response.data.state == 1){
  1366. var msg = response.data.data.msg
  1367. this.$message.success("删除成功!")
  1368. this.library_dialog = false
  1369. this.getPatientCoureOfTempalateOne()
  1370. }
  1371. })
  1372. },
  1373. getPatientCoureOfTempalateOne(){
  1374. },
  1375. rowclick(){
  1376. },
  1377. saveTemplate(){
  1378. var params = {
  1379. title:this.title,
  1380. content: this.$refs.editor.contents,
  1381. }
  1382. saveCoureseTemplateTitle(params).then(response=>{
  1383. if(response.data.state == 1){
  1384. var courseTemplate = response.data.data.courseTemplate
  1385. this.$message.success("保存成功!")
  1386. this.template_dialog = false
  1387. }
  1388. })
  1389. },
  1390. template_save(){
  1391. var params = {
  1392. template_id:this.template_id,
  1393. content:this.$refs.editorOne.contents
  1394. }
  1395. saveCourseOfNewTemplate(params).then(response=>{
  1396. if(response.data.state == 1){
  1397. var msg = response.data.data.msg
  1398. this.$message.success("保存成功")
  1399. this.library_dialog = false
  1400. }
  1401. })
  1402. },
  1403. getDocName(admin_user_id){
  1404. var user_name = ""
  1405. for(let i=0;i<this.doctorOptions.length;i++){
  1406. if(admin_user_id == this.doctorOptions[i].admin_user_id){
  1407. user_name = this.doctorOptions[i].user_name
  1408. }
  1409. }
  1410. return user_name
  1411. },
  1412. getlist(){
  1413. var params = {
  1414. patient_id:this.patient_id
  1415. }
  1416. getPatientCourseOfDiseaseList(params).then(response=>{
  1417. if(response.data.state == 1){
  1418. var list = response.data.data.list
  1419. this.tableData = []
  1420. this.tableData = list
  1421. }
  1422. })
  1423. },
  1424. fetchAllDoctorAndNurse() {
  1425. fetchMoibleAllDoctorAndNurse().then(response => {
  1426. if (response.data.state == 1) {
  1427. this.doctorOptions= []
  1428. this.doctorOptions = response.data.data.doctors;
  1429. }
  1430. });
  1431. },
  1432. add_click(){
  1433. this.admin_user_id = ""
  1434. this.admin_user_id = this.$store.getters.xt_user.user.id
  1435. this.fetchAllDoctorAndNurse()
  1436. this.$refs.editor.contents = ""
  1437. this.id = 0
  1438. this.disabled = false
  1439. this.add_index = 1
  1440. },
  1441. showCancel(){
  1442. this.add_index = 0
  1443. this.disabled = true
  1444. },
  1445. showSave(){
  1446. this.add_index = 0
  1447. this.disabled = true
  1448. console.log("haaaaaaaaaaaaaaa",this.record_date)
  1449. this.getlist()
  1450. if(this.record_date.length == 0) {
  1451. this.$message.error('请选择时间')
  1452. return
  1453. }
  1454. this.new_content = this.$refs.editor.contents
  1455. if (this.new_content.length == 0) {
  1456. this.$message.error('请填写病程内容')
  1457. return
  1458. }
  1459. if(this.admin_user_id == ""){
  1460. this.admin_user_id = 0
  1461. }
  1462. var params = {
  1463. id:this.id,
  1464. patient_id:this.patient_id,
  1465. record_date:this.record_date,
  1466. content:this.new_content,
  1467. admin_user_id:this.admin_user_id,
  1468. }
  1469. console.log("params",params)
  1470. createNewCourseOfDiseaseRecord(params).then(response => {
  1471. if(response.data.state == 1){
  1472. var msg = response.data.data.msg
  1473. this.$message.success("保存成功!")
  1474. this.getlist()
  1475. }
  1476. }).catch(error => {
  1477. })
  1478. },
  1479. template_click(){
  1480. console.log('this.add_index',this.add_index);
  1481. if(this.add_index ==0){
  1482. this.template_dialog = true
  1483. }else{
  1484. getPatientCoureOfTempalate().then(response=>{
  1485. if(response.data.state == 1){
  1486. this.library_dialog = true
  1487. this.templateList = response.data.data.templateList
  1488. console.log("hahhahahaha",this.$refs)
  1489. if(this.templateList!=null && this.templateList.length>0){
  1490. this.$refs.record_table_one.setCurrentRow(this.templateList[0])
  1491. }
  1492. console.log("haaaaaaaaaaaaa",this.templateList)
  1493. }
  1494. })
  1495. }
  1496. },
  1497. auto_click(){
  1498. this.start_date = this.getFirstDayOfWeek(new Date())
  1499. this.end_date = this.getTime(new Date())
  1500. this.getAutoPatientContent()
  1501. // this.auto_dialog = true
  1502. },
  1503. // 季度第一天
  1504. getquarterstart(index,number){
  1505. const currentYear = new Date().getFullYear();
  1506. const Start = this.timeFormat(new Date(currentYear, index, number));
  1507. return Start
  1508. },
  1509. // 季度最后一天
  1510. getquarterend(index,number){
  1511. const currentYear = new Date().getFullYear();
  1512. const End = this.timeFormat(new Date(currentYear, index, number));
  1513. return End
  1514. },
  1515. // 日期格式化
  1516. timeFormat(date) {
  1517. if (!date || typeof(date) === "string") {
  1518. this.error("参数异常,请检查...");
  1519. }
  1520. var y = date.getFullYear(); //年
  1521. if(date.getMonth() + 1<10){
  1522. var m ='0'+(date.getMonth() + 1); //月
  1523. }else{
  1524. var m =date.getMonth() + 1; //月
  1525. }
  1526. if(date.getDate()<10){
  1527. var d ='0'+date.getDate(); //日
  1528. }else{
  1529. var d = date.getDate(); //日
  1530. }
  1531. // var d = date.getDate(); //日
  1532. return y + "-" + m + "-" + d;
  1533. },
  1534. requestCourseRecords: function() {
  1535. this.loading = true
  1536. getCourseOfDiseaseRecords(this.patient_id, this.start_time, this.end_time).then(rs => {
  1537. this.loading = false
  1538. var resp = rs.data
  1539. if (resp.state == 1) {
  1540. this.current_select_record = null
  1541. this.records = resp.data.records
  1542. console.log("records232322332323232323223",this.records)
  1543. this.doctors = resp.data.doctors
  1544. } else {
  1545. this.$message.error(resp.msg)
  1546. }
  1547. }).catch(error => {
  1548. this.loading = false
  1549. this.$message.error(error)
  1550. })
  1551. },
  1552. didChangeCurrentRecord: function(record) {
  1553. this.current_select_record = record
  1554. },
  1555. recordTime: function(timestamp) {
  1556. var time = new Date(timestamp * 1000)
  1557. return parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
  1558. },
  1559. doctorName: function(doctor_id) {
  1560. for (let index = 0; index < this.doctors.length; index++) {
  1561. const doctor = this.doctors[index]
  1562. if (doctor.id == doctor_id) {
  1563. return doctor.name
  1564. }
  1565. }
  1566. return ''
  1567. },
  1568. modifyAction: function() {
  1569. this.edit_new_content = this.$refs.edit_neditor.content
  1570. if (this.edit_new_content.length == 0) {
  1571. this.$message.error('请填写病程内容')
  1572. return
  1573. }
  1574. this.uploading_new_record = true
  1575. modifyCourseOfDiseaseRecord(this.patient_id, this.edit_new_content, this.edit_course_of_disease_time, this.edit_current_id, this.edit_title).then(rs => {
  1576. this.uploading_new_record = false
  1577. var resp = rs.data
  1578. if (resp.state == 1) {
  1579. this.records[this.table_current_index].content = resp.data.record.content
  1580. this.records[this.table_current_index].record_time = resp.data.record.record_time
  1581. this.records[this.table_current_index].recorder = resp.data.record.recorder
  1582. this.records[this.table_current_index].title = resp.data.record.title
  1583. this.show_edit_dialog = false
  1584. this.edit_new_content = ''
  1585. this.table_current_index = -1
  1586. } else {
  1587. this.table_current_index = -1
  1588. this.$message.error(resp.msg)
  1589. }
  1590. }).catch(error => {
  1591. this.table_current_index = -1
  1592. this.uploading_new_record = false
  1593. this.$message.error(error)
  1594. })
  1595. },
  1596. autotext_click(){
  1597. if(this.start_date == ""){
  1598. this.$message.error("请选择开始时间")
  1599. }
  1600. if(this.end_date == ""){
  1601. this.$message.error("请选择结束时间")
  1602. }
  1603. var params = {
  1604. start_time:this.start_date,
  1605. end_time:this.end_date,
  1606. patient_id:this.patient_id,
  1607. }
  1608. console.log("start_time==============",params)
  1609. getAutoPatientContent(params).then(response=>{
  1610. if(response.data.state == 1){
  1611. var prescription = response.data.data.prescription
  1612. this.prescription=[]
  1613. this.prescription = prescription
  1614. var berfor = response.data.data.berfor
  1615. this.berforList = []
  1616. this.berforList = berfor
  1617. var monitorList = response.data.data.monitorList
  1618. this.monitorList = []
  1619. this.monitorList = monitorList
  1620. var dryweightList = response.data.data.dryweightList
  1621. this.dryweightList = []
  1622. this.dryweightList = dryweightList
  1623. var inpectionList = response.data.data.inpectionList
  1624. this.inpectionList = []
  1625. this.inpectionList = inpectionList
  1626. var patient = response.data.data.patient
  1627. if(patient.gender == 1){
  1628. patient.gender_name = "男"
  1629. }
  1630. if(patient.gender == 2){
  1631. patient.gender_name = "女"
  1632. }
  1633. this.patient = patient
  1634. var dialysisOrderList =response.data.data.dialysisOrder
  1635. this.dialysisOrderList = []
  1636. this.dialysisOrderList = dialysisOrderList
  1637. var longAdvice = response.data.data.longAdvice
  1638. this.longAdvice = []
  1639. this.longAdvice = longAdvice
  1640. this.groupPrescriptionList = []
  1641. this.groupPrescriptionList = response.data.data.groupPrescriptionList
  1642. this.afterList = response.data.data.after
  1643. this.max_blood_flow_volume = response.data.data.max_blood_flow_volume
  1644. this.max_befor_systolic_blood_pressure = response.data.data.max_befor_systolic_blood_pressure
  1645. this.min_befor_systolic_blood_pressure = response.data.data.min_befor_systolic_blood_pressure
  1646. this.max_befor_diastolic_blood_pressure = response.data.data.max_befor_diastolic_blood_pressure
  1647. this.min_befor_diastolic_blood_pressure = response.data.data.min_befor_diastolic_blood_pressure
  1648. this.max_after_systolic_blood_pressure = response.data.data.max_after_systolic_blood_pressure
  1649. this.min_after_systolic_blood_pressure = response.data.data.min_after_systolic_blood_pressure
  1650. this.max_after_diastolic_blood_pressure = response.data.data.max_after_diastolic_blood_pressure
  1651. this.min_after_diastolic_blood_pressure = response.data.data.min_after_diastolic_blood_pressure
  1652. this.max_monitor_systolic_blood_pressure = response.data.data.max_monitor_systolic_blood_pressure
  1653. this.min_monitor_systolic_blood_pressure = response.data.data.min_monitor_systolic_blood_pressure
  1654. this.max_monitor_diastolic_blood_pressure = response.data.data.max_monitor_diastolic_blood_pressure
  1655. this.min_monitor_diastolic_blood_pressure = response.data.data.min_monitor_diastolic_blood_pressure
  1656. this.lastDryWeight = response.data.data.lastDryWeight
  1657. this.patientVascularAccess = response.data.data.patientVascularAccess
  1658. this.lastBefor = response.data.data.lastBefor
  1659. var hd_total =0
  1660. var hdArr =[]
  1661. var hdf_total =0
  1662. var hdfArr=[]
  1663. var hdhp_total = 0
  1664. var hdhpArr = []
  1665. var hp_total = 0
  1666. var hpArr= []
  1667. var hf_total = 0
  1668. var hfArr = []
  1669. var scuf_total =0
  1670. var scufArr = []
  1671. var iuf_total =0
  1672. var iufArr = []
  1673. var hfhd_total =0
  1674. var hfhdArr = []
  1675. var hfhdhp_total =0
  1676. var hfhdhpArr = []
  1677. var phf_total =0
  1678. var phfArr = []
  1679. var hdfhp_total =0
  1680. var hdfhpArr = []
  1681. var crrt_total =0
  1682. var crrtArr = []
  1683. var iufhd_total =0
  1684. var iufhdArr = []
  1685. var uf_total =0
  1686. var ufArr = []
  1687. var hdjia_total =0
  1688. var hdjiaArr = []
  1689. var ihdf_total =0
  1690. var ihdfArr = []
  1691. var hdgaotong_total =0
  1692. var hdgaotongArr = []
  1693. var cvvh_total =0
  1694. var cvvhArr = []
  1695. var cvvhd_total =0
  1696. var cvvhdArr = []
  1697. var cvvhdf_total =0
  1698. var cvvhdfArr = []
  1699. var petotal =0
  1700. var peArr=[]
  1701. var hpdtotal =0
  1702. var hpdArr=[]
  1703. var hdptotal=0
  1704. var hdpArr =[]
  1705. var hfdtotal=0
  1706. var hfdArr =[]
  1707. var hdf100total=0
  1708. var hdf100Arr =[]
  1709. var hdf600total=0
  1710. var hdf600Arr =[]
  1711. var hdf100total=0
  1712. var hdf100Arr =[]
  1713. var hdf800total=0
  1714. var hdf800Arr =[]
  1715. var hdf1000total=0
  1716. var hdf1000Arr =[]
  1717. var hdf80total=0
  1718. var hdf80Arr =[]
  1719. var hf16total=0
  1720. var hf16Arr =[]
  1721. var hdwugantotal=0
  1722. var hdwuganArr =[]
  1723. var hdf17total=0
  1724. var hdf17Arr =[]
  1725. var hddiantotal=0
  1726. var hddianArr =[]
  1727. var hd2total=0
  1728. var hd2Arr =[]
  1729. var total_count = 0
  1730. var total_min = 0
  1731. var total_hour = 0
  1732. var total_hour_str =""
  1733. var dialyzerPerfusionApparatus = []
  1734. var dialyzerArr = []
  1735. var dialysisStrainerArr = []
  1736. var dialysisIrrigationArr = []
  1737. var kaliumArr= []
  1738. var sodiumArr= []
  1739. var calciumArr= []
  1740. var bicarbonateArr = []
  1741. var prescriptionSodiumArr = []
  1742. if(this.dialysisOrderList!=null&&this.dialysisOrderList.length>0){
  1743. total_count = this.dialysisOrderList.length
  1744. }
  1745. total_count = this.dialysisOrderList.length
  1746. if(this.prescription!=null && this.prescription.length>0){
  1747. for(let i=0;i< this.prescription.length;i++){
  1748. if( this.prescription[i].dialyzer_perfusion_apparatus!=""){
  1749. dialyzerPerfusionApparatus.push( this.prescription[i].dialyzer_perfusion_apparatus)
  1750. }
  1751. if(this.prescription[i].dialysis_dialyszers!=""){
  1752. dialyzerArr.push( this.prescription[i].dialysis_dialyszers)
  1753. }
  1754. if(this.prescription[i].dialysis_strainer!=""){
  1755. dialysisStrainerArr.push( this.prescription[i].dialysis_strainer)
  1756. }
  1757. if(this.prescription[i].dialysis_irrigation!=""){
  1758. dialysisIrrigationArr.push( this.prescription[i].dialysis_irrigation)
  1759. }
  1760. if( this.prescription[i].kalium!=""){
  1761. kaliumArr.push(this.prescription[i].kalium)
  1762. }
  1763. if( this.prescription[i].sodium!=""){
  1764. sodiumArr.push(this.prescription[i].kalium)
  1765. }
  1766. if( this.prescription[i].calcium!=""){
  1767. calciumArr.push(this.prescription[i].calcium)
  1768. }
  1769. if( this.prescription[i].bicarbonate!=""){
  1770. bicarbonateArr.push(this.prescription[i].bicarbonate)
  1771. }
  1772. if( this.prescription[i].prescription_sodium!=""){
  1773. prescriptionSodiumArr.push(this.prescription[i].prescription_sodium)
  1774. }
  1775. total_min += parseInt(this.prescription[i].dialysis_duration_hour *60)+ parseInt(this.prescription[i].dialysis_duration_minute)
  1776. if(this.prescription[i].mode_id == 1){
  1777. hdArr.push(this.prescription[i])
  1778. }
  1779. if(this.prescription[i].mode_id == 2){
  1780. hdfArr.push(this.prescription[i])
  1781. }
  1782. if(this.prescription[i].mode_id == 3){
  1783. hdhpArr.push(this.prescription[i])
  1784. }
  1785. if(this.prescription[i].mode_id == 4){
  1786. hpArr.push(this.prescription[i])
  1787. }
  1788. if(this.prescription[i].mode_id == 5){
  1789. hfArr.push(this.prescription[i])
  1790. }
  1791. if(this.prescription[i].mode_id == 6){
  1792. scufArr.push(this.prescription[i])
  1793. }
  1794. if(this.prescription[i].mode_id == 7){
  1795. iufArr.push(this.prescription[i])
  1796. }
  1797. if(this.prescription[i].mode_id == 8){
  1798. hfhdArr.push(this.prescription[i])
  1799. }
  1800. if(this.prescription[i].mode_id == 9){
  1801. hfhdhpArr.push(this.prescription[i])
  1802. }
  1803. if(this.prescription[i].mode_id == 10){
  1804. phfArr.push(this.prescription[i])
  1805. }
  1806. if(this.prescription[i].mode_id == 11){
  1807. hfArr.push(this.prescription[i])
  1808. }
  1809. if(this.prescription[i].mode_id == 12){
  1810. hdfhpArr.push(this.prescription[i])
  1811. }
  1812. if(this.prescription[i].mode_id == 13){
  1813. crrtArr.push(this.prescription[i])
  1814. }
  1815. if(this.prescription[i].mode_id == 19){
  1816. iufhdArr.push(this.prescription[i])
  1817. }
  1818. if(this.prescription[i].mode_id == 20){
  1819. ufArr.push(this.prescription[i])
  1820. }
  1821. if(this.prescription[i].mode_id == 21){
  1822. hdjiaArr.push(this.prescription[i])
  1823. }
  1824. if(this.prescription[i].mode_id == 24){
  1825. ihdfArr.push(this.prescription[i])
  1826. }
  1827. if(this.prescription[i].mode_id == 25){
  1828. hdgaotongArr.push(this.prescription[i])
  1829. }
  1830. if(this.prescription[i].mode_id == 26){
  1831. cvvhArr.push(this.prescription[i])
  1832. }
  1833. if(this.prescription[i].mode_id == 27){
  1834. cvvhdArr.push(this.prescription[i])
  1835. }
  1836. if(this.prescription[i].mode_id == 28){
  1837. cvvhdfArr.push(this.prescription[i])
  1838. }
  1839. if(this.prescription[i].mode_id == 29){
  1840. peArr.push(this.prescription[i])
  1841. }
  1842. if(this.prescription[i].mode_id == 31){
  1843. hpdArr.push(this.prescription[i])
  1844. }
  1845. if(this.prescription[i].mode_id == 32){
  1846. hdpArr.push(this.prescription[i])
  1847. }
  1848. if(this.prescription[i].mode_id == 33){
  1849. hfdArr.push(this.prescription[i])
  1850. }
  1851. if(this.prescription[i].mode_id == 34){
  1852. hdf100Arr.push(this.prescription[i])
  1853. }
  1854. if(this.prescription[i].mode_id == 35){
  1855. hdf600Arr.push(this.prescription[i])
  1856. }
  1857. if(this.prescription[i].mode_id == 36){
  1858. hdf800Arr.push(this.prescription[i])
  1859. }
  1860. if(this.prescription[i].mode_id == 37){
  1861. hdf1000Arr.push(this.prescription[i])
  1862. }
  1863. if(this.prescription[i].mode_id == 38){
  1864. hdf80Arr.push(this.prescription[i])
  1865. }
  1866. if(this.prescription[i].mode_id == 39){
  1867. hf16Arr.push(this.prescription[i])
  1868. }
  1869. console.log("hf16Arr--------------------",hf16Arr)
  1870. if(this.prescription[i].mode_id == 40){
  1871. hdwuganArr.push(this.prescription[i])
  1872. }
  1873. if(this.prescription[i].mode_id == 41){
  1874. hdf17Arr.push(this.prescription[i])
  1875. }
  1876. if(this.prescription[i].mode_id == 42){
  1877. hddianArr.push(this.prescription[i])
  1878. }
  1879. if( this.prescription[i].mode_id == 43){
  1880. hd2Arr.push(thisprescription[i])
  1881. }
  1882. }
  1883. }
  1884. total_hour = ((total_min/60)/total_count).toFixed(2)
  1885. total_hour_str = total_hour +"小时/次"
  1886. hd_total = hdArr.length
  1887. var hd_str = ""
  1888. if(hd_total>0){
  1889. hd_str = "HD"+ "("+hd_total+")" +"次"
  1890. }
  1891. hdf_total = hdfArr.length
  1892. var hdf_str =""
  1893. if(hdf_total>0){
  1894. hdf_str = "HDF"+ "("+hd_total+")" +"次"
  1895. }
  1896. hdhp_total = hdhpArr.length
  1897. var hdhp_str =""
  1898. if(hdhp_total>0){
  1899. hdhp_str = "HD+HP"+"("+ hdhp_total+")"+"次"
  1900. }
  1901. hp_total = hpArr.length
  1902. var hp_str= ""
  1903. if(hp_total>0){
  1904. hp_str = "HP"+"("+hdptotal+")"+"次"
  1905. }
  1906. hf_total = hfArr.length
  1907. var hf_str = ""
  1908. if(hf_total>0){
  1909. hf_str = "HF "+"("+hf_total+")"+"次"
  1910. }
  1911. var scuf_str = ""
  1912. scuf_total = scufArr.length
  1913. if(scuf_total>0){
  1914. scuf_str = "SCUF"+"("+scuf_total+")"+"次"
  1915. }
  1916. iuf_total = iufArr.length
  1917. var iuf_str= ""
  1918. if(iuf_total>0){
  1919. iuf_str = "IUF"+"("+iuf_total+")"+"次"
  1920. }
  1921. hfhd_total = hfhdArr.length
  1922. var hfhd_str= ""
  1923. if(hfhd_total>0){
  1924. hfhd_str = "HFHD"+"("+hfhd_total+")"+"次"
  1925. }
  1926. hfhdhp_total = hfhdhpArr.length
  1927. var hfhdhp_str =""
  1928. if(hfhdhp_total>0){
  1929. hfhdhp_str = "HFHD+HP"+"("+hfhdhp_total+")"+"次"
  1930. }
  1931. phf_total = phfArr.length
  1932. var phf_str= ""
  1933. if(phf_total>0){
  1934. phf_str = "PHF"+ "(" +phf_total+")" + "次"
  1935. }
  1936. hdfhp_total = hdfhpArr.length
  1937. var hdfhp_str =""
  1938. if(hdfhp_total>0){
  1939. hdfhp_str = "HDFHP"+ "("+ hdfhp_total+")"+"次"
  1940. }
  1941. crrt_total = crrtArr.length
  1942. var crrt_str =""
  1943. if(crrt_total>0){
  1944. crrt_str = "CRRT"+"("+crrt_total+")"+"次"
  1945. }
  1946. iuf_total = iufhdArr.length
  1947. var iuf_str = ""
  1948. if(iuf_total>0){
  1949. iuf_str = "IUF"+"("+iuf_total+")"+"次"
  1950. }
  1951. uf_total = ufArr.length
  1952. var uf_str= ""
  1953. if(uf_total>0){
  1954. uf_str = "UF"+"("+uf_total+")" +"次"
  1955. }
  1956. hdjia_total = hdjiaArr.length
  1957. var hdjia_str =""
  1958. if(hdjia_total>0){
  1959. hdjia_str = "HD+"+"("+hdjia_total+")"+"次"
  1960. }
  1961. ihdf_total = ihdfArr.length
  1962. var ihdf_str = ""
  1963. if(ihdf_total>0){
  1964. ihdf_str = "IHDF"+"("+ihdf_total+")" +"次"
  1965. }
  1966. hdgaotong_total = hdgaotongArr
  1967. var hdgaotong_str = ""
  1968. if(hdgaotong_total>0){
  1969. hdgaotong_str = "HD高通"+"("+hdgaotong_total+")"+"次"
  1970. }
  1971. cvvh_total = cvvhArr.length
  1972. var cvvh_str =""
  1973. if(cvvh_total>0){
  1974. cvvh_str = "CVVH"+"("+cvvh_total+")" + "次"
  1975. }
  1976. cvvhd_total = cvvhdArr.length
  1977. var cvvhd_str = ""
  1978. if(cvvhd_total>0){
  1979. cvvhd_str = "CVVHD"+"("+cvvhd_total+")"+"次"
  1980. }
  1981. cvvhdf_total =cvvhdfArr.length
  1982. var cvvhdf_str = ""
  1983. if(cvvhdf_total>0){
  1984. cvvhdf_str="CVVHDF"+"("+cvvhdf_total+")"+"次"
  1985. }
  1986. petotal = peArr.length
  1987. var pe_str =""
  1988. if(petotal>0){
  1989. pe_str = "PE"+"("+petotal+")"+"次"
  1990. }
  1991. hpdtotal = hpdArr.length
  1992. var hpd_str =""
  1993. if(hpdtotal>0){
  1994. hpd_str = "HDP"+"("+hpdtotal+")"+"次"
  1995. }
  1996. hfdtotal = hfdArr.length
  1997. var hfd_str =""
  1998. if(hfdtotal>0){
  1999. hfd_str ="HFD"+"("+hfdtotal+")" +"次"
  2000. }
  2001. hdf100total = hdf1000Arr.length
  2002. var hdf100str = ""
  2003. if(hdf100total>0){
  2004. hdf100str = "HDF100"+"("+hdf100total+")"+"次"
  2005. }
  2006. hdf600total = hdf600Arr.length
  2007. var hdf600str = ""
  2008. if(hdf600total>0){
  2009. hdf600str = "HDF600"+"("+hdf600tota+")"+"次"
  2010. }
  2011. hdf100total = hdf1000Arr.length
  2012. var hdf1000str = ""
  2013. if(hdf100total>0){
  2014. hdf1000str = "HDF1000"+"("+hdf100total+")"+"次"
  2015. }
  2016. hdf80total = hdf80Arr.length
  2017. var hdf80str = ""
  2018. if(hdf80total>0){
  2019. hdf80str ="HDF80"+"("+hdf80str+")" +"次"
  2020. }
  2021. hf16total = hf16Arr.length
  2022. var hf16str = ""
  2023. if(hf16total>0){
  2024. hf16str = "HF16"+"("+ hf16total +")"+"次"
  2025. }
  2026. hdwugantotal = hdwuganArr.length
  2027. var hdwuganstr = ""
  2028. if(hdwugantotal>0){
  2029. hdwuganstr = "HD无肝素"+"("+hdwugantotal+")"+"次"
  2030. }
  2031. hdf17total = hdf17Arr.length
  2032. var hdf17str = ""
  2033. if(hdf17total>0){
  2034. hdf17str = "HDF17"+"("+hdf17total+")" + "次"
  2035. }
  2036. hddiantotal = hddianArr.length
  2037. var hddianstr = ""
  2038. if(hddiantotal>0){
  2039. hddianstr = "HD."+"("+hddiantotal+")" + "次"
  2040. }
  2041. var hd2str = ""
  2042. hd2total = hd2Arr.length
  2043. if(hd2total>0){
  2044. hd2str = "HD2"+"("+hd2total+")"+"次"
  2045. }
  2046. let dialyzerPerfusionApparatusObj={}
  2047. let dialyzerPerfusionApparatusStr = ""
  2048. let dialyzerArrObj = {}
  2049. let dialyzer_str = ""
  2050. let dialysisStrainerObj = {}
  2051. let dialysisStrainerStr = ""
  2052. let dialysisIrrigationObj = {}
  2053. let dialysisIrrigationStr = ""
  2054. let kaliumObj = {}
  2055. let kaliumStr =""
  2056. let kalium =""
  2057. if(kaliumArr!=null && kaliumArr.length>0){
  2058. kaliumArr.forEach(item => {
  2059. kaliumObj[item] = (kaliumObj[item] + 1) || 1
  2060. })
  2061. }
  2062. if(kaliumObj!=""){
  2063. kaliumStr = JSON.stringify(kaliumObj).replace(/^{|}$/g, '')
  2064. }
  2065. if(kaliumStr!=""){
  2066. var str = kaliumStr.split(":")[0]
  2067. kalium = "钾:" + str.replace(/^"(.*)"$/, '$1')+"."+"0"+"mmol/L" + "(" +kaliumStr.split(":")[1]+")"
  2068. }
  2069. let sodiumObj = {}
  2070. let sodiumStr =""
  2071. let sodium = ""
  2072. if(sodiumArr!=null && sodiumArr.length>0){
  2073. sodiumArr.forEach(item => {
  2074. sodiumObj[item] = (sodiumObj[item] + 1) || 1
  2075. })
  2076. }
  2077. if(sodiumObj!=""){
  2078. sodiumStr = JSON.stringify(sodiumObj).replace(/^{|}$/g, '')
  2079. }
  2080. if(sodiumStr!=""){
  2081. var str = sodiumStr.split(":")[0]
  2082. sodium = "钠:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +sodiumStr.split(":")[1]+")"
  2083. }
  2084. let calciumObj = {}
  2085. let calciumStr =""
  2086. let calcium =""
  2087. if(calciumArr!=null && calciumArr.length>0){
  2088. calciumArr.forEach(item => {
  2089. calciumObj[item] = (calciumObj[item] + 1) || 1
  2090. })
  2091. }
  2092. if(calciumObj!=""){
  2093. calciumStr = JSON.stringify(calciumObj).replace(/^{|}$/g, '')
  2094. }
  2095. if(calciumStr!=""){
  2096. var str = calciumStr.split(":")[0]
  2097. calcium = "钙:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +calciumStr.split(":")[1]+")"
  2098. }
  2099. let bicarbonateObj = {}
  2100. let bicarbonateStr =""
  2101. let bicarbonate = ""
  2102. if(bicarbonateArr!=null && bicarbonateArr.length>0){
  2103. bicarbonateArr.forEach(item => {
  2104. bicarbonateObj[item] = (bicarbonateObj[item] + 1) || 1
  2105. })
  2106. }
  2107. if(bicarbonateObj!=""){
  2108. bicarbonateStr = JSON.stringify(bicarbonateObj).replace(/^{|}$/g, '')
  2109. }
  2110. if(bicarbonateStr!=""){
  2111. var str = bicarbonateStr.split(":")[0]
  2112. bicarbonate = "碳酸氢根:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +bicarbonateStr.split(":")[1]+")"
  2113. }
  2114. if(dialyzerPerfusionApparatus!=null && dialyzerPerfusionApparatus.length>0){
  2115. dialyzerPerfusionApparatus.forEach(item => {
  2116. dialyzerPerfusionApparatusObj[item] = (dialyzerPerfusionApparatusObj[item] + 1) || 1
  2117. })
  2118. }
  2119. if(dialyzerPerfusionApparatus!=null && dialyzerPerfusionApparatus.length>0){
  2120. dialyzerPerfusionApparatus.forEach(item => {
  2121. dialyzerPerfusionApparatusObj[item] = (dialyzerPerfusionApparatusObj[item] + 1) || 1
  2122. })
  2123. }
  2124. if(dialyzerPerfusionApparatusObj!=""){
  2125. dialyzerPerfusionApparatusStr = JSON.stringify(dialyzerPerfusionApparatusObj).replace(/^{|}$/g, '')
  2126. }
  2127. if(dialyzerArr!=null && dialyzerArr.length>0){
  2128. dialyzerArr.forEach(item => {
  2129. dialyzerArrObj[item] = (dialyzerArrObj[item] + 1) || 1
  2130. })
  2131. }
  2132. dialyzer_str = JSON.stringify(dialyzerArrObj).replace(/^{|}$/g, '')
  2133. if(dialysisStrainerArr!=null && dialysisStrainerArr.length>0){
  2134. dialysisStrainerArr.forEach(item => {
  2135. dialysisStrainerObj[item] = (dialysisStrainerObj[item] + 1) || 1
  2136. })
  2137. }
  2138. dialysisStrainerStr = JSON.stringify(dialysisStrainerObj).replace(/^{|}$/g, '')
  2139. if(dialysisIrrigationArr!=null && dialysisIrrigationArr.length>0){
  2140. dialysisIrrigationArr.forEach(item => {
  2141. dialysisIrrigationObj[item] = (dialysisIrrigationObj[item] + 1) || 1
  2142. })
  2143. }
  2144. dialysisIrrigationStr = JSON.stringify(dialysisIrrigationObj).replace(/^{|}$/g, '')
  2145. // 医嘱
  2146. if(this.longAdvice!=null && this.longAdvice.length>0){
  2147. for(let i=0;i<this.longAdvice.length;i++){
  2148. this.longAdvice[i].advice_type_name = ""
  2149. if(this.longAdvice[i].advice_type == 1){
  2150. this.longAdvice[i].advice_type_name = "长期医嘱"
  2151. }
  2152. if(this.longAdvice[i].advice_type == 2){
  2153. this.longAdvice[i].advice_type_name = "长期医嘱"
  2154. }
  2155. if(this.longAdvice[i].stop_state == 1){
  2156. this.longAdvice[i].stop_state_name = "停用"
  2157. }
  2158. if(this.longAdvice[i].stop_state == 2){
  2159. this.longAdvice[i].stop_state_name = "未停用"
  2160. }
  2161. }
  2162. }
  2163. //抗凝剂
  2164. var anticoagulant_str =""
  2165. if(this.groupPrescriptionList!=null && this.groupPrescriptionList.length>0){
  2166. for(let i=0;i<this.groupPrescriptionList.length;i++){
  2167. anticoagulant_str += this.getAnticoagulantName(this.groupPrescriptionList[i].anticoagulant) +"," + "剂量:" +this.groupPrescriptionList[i].MinZongLiang +this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)+ "~" +this.groupPrescriptionList[i].MaxZongLiang + this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)
  2168. }
  2169. }
  2170. //透前
  2171. var befor_total =0
  2172. var cha_weight = 0
  2173. var befor_weight =0
  2174. var after_weight =0
  2175. var pingjun_weight = 0
  2176. if(this.berforList!=null){
  2177. befor_total = this.berforList.length
  2178. for(let i=0;i<this.berforList.length;i++){
  2179. // cha_weight += this.berforList[i].weight_before - this.berforList[i].WeightAfter
  2180. befor_weight +=this.berforList[i].weight_before
  2181. after_weight += this.berforList[i].WeightAfter
  2182. }
  2183. }
  2184. console.log("befor-weight",befor_weight)
  2185. console.log("after_weight",after_weight)
  2186. pingjun_weight = ((befor_weight-after_weight)/befor_total).toFixed(2)
  2187. //透后凝血
  2188. var cruorNewArr = []
  2189. if(this.afterList!=null && this.afterList.length>0){
  2190. for(let i=0;i<this.afterList.length;i++){
  2191. cruorNewArr.push(this.afterList[i].cruor)
  2192. }
  2193. }
  2194. let dialysisCrruorObj = {}
  2195. let dialysisCrruorStr = ""
  2196. if(cruorNewArr!=null && cruorNewArr.length>0){
  2197. cruorNewArr.forEach(item => {
  2198. dialysisCrruorObj[item] = (dialysisCrruorObj[item] + 1) || 1
  2199. })
  2200. }
  2201. dialysisCrruorStr = JSON.stringify(dialysisCrruorObj).replace(/^{|}$/g, '')
  2202. //监测
  2203. var blood_flow_volume_total = 0
  2204. var ultrafiltration_volume_total = 0
  2205. var ultrafiltration_rate_total = 0
  2206. var total_length = 0
  2207. var pingjun_blood_flow_volume = 0
  2208. var pingjun_ultrafiltration_volume_total = 0
  2209. var pingjun_ultrafiltration_rate_total = 0
  2210. if(this.monitorList!=null && this.monitorList.length>0){
  2211. for(let i=0;i<this.monitorList.length;i++){
  2212. blood_flow_volume_total+=this.monitorList[i].blood_flow_volume
  2213. ultrafiltration_volume_total+=this.monitorList[i].ultrafiltration_volume
  2214. ultrafiltration_rate_total += this.monitorList[i].ultrafiltration_rate
  2215. total_length = this.monitorList.length
  2216. }
  2217. }
  2218. pingjun_blood_flow_volume = (blood_flow_volume_total/total_length).toFixed(2)
  2219. if(pingjun_blood_flow_volume=="NaN"){
  2220. pingjun_blood_flow_volume = ""
  2221. }
  2222. pingjun_ultrafiltration_volume_total = (ultrafiltration_volume_total/total_length).toFixed(2)
  2223. if(pingjun_ultrafiltration_volume_total=="NaN"){
  2224. pingjun_ultrafiltration_volume_total = ""
  2225. }
  2226. pingjun_ultrafiltration_rate_total = (ultrafiltration_rate_total/total_length).toFixed(2)
  2227. if(pingjun_ultrafiltration_rate_total == "NaN"){
  2228. pingjun_ultrafiltration_rate_total = ""
  2229. }
  2230. var dry_weight_str = ""
  2231. //干体重
  2232. if(this.dryweightList!=null && this.dryweightList.length>0){
  2233. for(let i=0;i<this.dryweightList.length;i++){
  2234. dry_weight_str = this.getTimeOne(this.dryweightList[i].ctime)+" " +this.dryweightList[i].adjusted_value.slice(4,6)+ this.dryweightList[i].adjusted_value.slice(0,3)+"kg" + "调整到" +" "+ this.dryweightList[i].dry_weight+"kg"+","
  2235. }
  2236. }
  2237. //血管通路
  2238. var vascularAccess_str = ""
  2239. var created_time = ""
  2240. if(this.patientVascularAccess!=undefined){
  2241. vascularAccess_str = this.patientVascularAccess.blood_access_part_id + this.patientVascularAccess.blood_access_part_opera_id
  2242. created_time = this.getTime(this.patientVascularAccess.first_start_time)
  2243. }
  2244. //并发症
  2245. var complication = ""
  2246. if(this.lastBefor!=undefined){
  2247. complication = this.lastBefor.complication
  2248. }
  2249. if(this.inpectionList!=null&& this.inpectionList.length>0){
  2250. for(let i=0;i<this.inpectionList.length;i++){
  2251. this.inpectionList[i].group_no = ""
  2252. this.inpectionList[i].group_no = this.inpectionList[i].project_id.toString()+"_"+this.inpectionList[i].inspect_date.toString()
  2253. }
  2254. }
  2255. if(this.inpectionList!=null && this.inpectionList.length>0){
  2256. let dataInfo = {}
  2257. this.inpectionList.forEach((item, index) => {
  2258. let { group_no } = item
  2259. if (!dataInfo[group_no]) {
  2260. dataInfo[group_no] = {
  2261. group_no:group_no,
  2262. project_id:item.project_id,
  2263. name:item.project_name,
  2264. date:this.getTime(item.inspect_date),
  2265. child:[],
  2266. left: [],
  2267. right:[]
  2268. }
  2269. }
  2270. })
  2271. let arr = Object.values(dataInfo)
  2272. console.log("arr----------------------",arr)
  2273. if(arr!=null && arr.length>0){
  2274. for(let i=0;i<arr.length;i++){
  2275. for(let j=0;j<this.inpectionList.length;j++){
  2276. if(arr[i].group_no == this.inpectionList[j].group_no){
  2277. arr[i].child.push(this.inpectionList[j])
  2278. }
  2279. }
  2280. }
  2281. }
  2282. for(let i=0;i<arr.length;i++){
  2283. for(let j=0;j<arr[i].child.length;j++){
  2284. if(j%2 ==0){
  2285. arr[i].left.push(arr[i].child[j])
  2286. }
  2287. if(j%2 == 1){
  2288. arr[i].right.push(arr[i].child[j])
  2289. }
  2290. }
  2291. }
  2292. this.Inspect = []
  2293. this.Inspect = arr
  2294. console.log("newarr----------------",arr)
  2295. }
  2296. const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
  2297. <tr>
  2298. <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date}~${this.end_date})</th>
  2299. </tr>
  2300. <tr>
  2301. <td width="130" style="padding: 5px;">基本信息</td>
  2302. <td style="padding: 5px;">
  2303. <span>姓名:${this.patient.name}</span> <span>性别:${this.patient.gender_name}</span> <span>年龄:${this.patient.age}</span> <span>透析号:${this.patient.dialysis_no}</span>
  2304. </td>
  2305. </tr>
  2306. <tr>
  2307. <td style="align-items: center;padding: 5px;">透析处方</td>
  2308. <td style='padding:5px'>
  2309. <p style='font-weight: bold;'>总次数:${total_count}次 ;</p>
  2310. <p style='margin-bottom: 10px;' >其中;
  2311. ${hd_str}${hdf_str}${hdhp_str}${hp_str}${hf_str}${scuf_str}${iuf_str}${hfhd_str}${hfhdhp_str}${phf_str}${hdfhp_str}${crrt_str}${iuf_str}${uf_str}${hdjia_str}${ihdf_str}${hdgaotong_str}${cvvhd_str}${pe_str}
  2312. ${hpd_str}${hfd_str}${hdf100str}${hdf600str}${hdf1000str}${hdf80str}${hf16str}${hdwuganstr}${hdf17str}${hddianstr}${hd2str}
  2313. </p>
  2314. <p style='font-weight: bold;'>透析器:</p>
  2315. <p style='margin-bottom: 10px;'>
  2316. ${dialyzerPerfusionApparatusStr}${dialyzer_str}${dialysisStrainerStr}${dialysisIrrigationStr}
  2317. </p>
  2318. <p style='font-weight: bold;'>透析液处方:</p>
  2319. <p style='margin-bottom: 10px;'>
  2320. ${kalium}${sodium}${calcium}${bicarbonate}
  2321. </p>
  2322. <p style='font-weight: bold;'>抗凝方式:</p>
  2323. <p >${anticoagulant_str}</p>
  2324. </td>
  2325. </tr>
  2326. <tr>
  2327. <td style="align-items: center;padding: 5px;">透析情况</td>
  2328. <td style='padding:5px'>
  2329. <p>透析间期平均体重增加:${pingjun_weight}kg;</p>
  2330. <p>凝血:${dialysisCrruorStr};</p>
  2331. <p>平均血流量:${pingjun_blood_flow_volume}mL/min;最大血流量:${this.max_blood_flow_volume}mL/min;</p>
  2332. <p>平均超滤量:${pingjun_ultrafiltration_volume_total}ml/次;平均超滤率:${pingjun_ultrafiltration_rate_total}mL/h;</p>
  2333. <p><span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:${this.min_befor_systolic_blood_pressure}mmHg~${this.max_befor_systolic_blood_pressure}mmHg;舒张压:${this.min_befor_diastolic_blood_pressure}mmHg~${this.max_after_systolic_blood_pressure}mmHg;</span></p>
  2334. <p><span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:${this.min_after_systolic_blood_pressure}mmHg~${this.max_after_systolic_blood_pressure}mmHg;舒张压:${this.min_after_diastolic_blood_pressure}~${this.max_after_diastolic_blood_pressure}mmHg;</span></p>
  2335. <p><span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:${this.min_monitor_systolic_blood_pressure}mmHg~${this.max_monitor_systolic_blood_pressure}mmHg</span></p>
  2336. <p><span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">舒张压:${this.min_monitor_diastolic_blood_pressure}mmHg~${this.max_monitor_diastolic_blood_pressure}mmHg;</span></p>
  2337. </td>
  2338. </tr>
  2339. <tr>
  2340. <td style="align-items: center;padding: 5px;">干体重</td>
  2341. <td style='padding: 5px;'>
  2342. <p>
  2343. <span style='font-weight: bold;'>当前干体重:${this.berforList[this.berforList.length-1].dry_weight}</span>&nbsp;<span class="">kg;</span>
  2344. </p>
  2345. <p>
  2346. <span style='font-weight: bold;'>调整记录:${dry_weight_str}</span>&nbsp;<span class=""></span>
  2347. </p>
  2348. </td>
  2349. </tr>
  2350. <tr>
  2351. <td style="align-items: center;padding: 5px;">血管通路</td>
  2352. <td style='padding: 5px;'>
  2353. <p>
  2354. <span style='font-weight: bold;'>使用的血管通路:${vascularAccess_str }</span>&nbsp;<span class=""> &nbsp;&nbsp;建立时间:${ created_time }</span>
  2355. </p>
  2356. </td>
  2357. </tr>
  2358. <tr>
  2359. <td style="align-items: center;padding: 5px;">合并症/并发症</td>
  2360. <td style='padding: 5px;'>
  2361. <p>
  2362. <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span>
  2363. </p>
  2364. <p>
  2365. <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">${complication}</span>
  2366. </p>
  2367. </td>
  2368. </tr>
  2369. <tr>
  2370. <td style="align-items: center;padding: 5px;">检查结果</td>
  2371. <td style='padding: 5px;'>
  2372. <span class="">无</span>
  2373. </td>
  2374. </tr>
  2375. <tr>
  2376. <td style="align-items: center;padding: 5px;">检验结果</td>
  2377. <td></td>
  2378. </tr>
  2379. <tr>
  2380. <td style="align-items: center;padding: 5px;">医嘱用药</td>
  2381. <td class='' style="padding: 0;">
  2382. <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
  2383. <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
  2384. </td>
  2385. </tr>
  2386. <tr>
  2387. <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
  2388. <td style='padding: 5px;'>
  2389. <p class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</p>
  2390. <p class="">2、透析间期体重增加稳定,继续保持;</p>
  2391. <p class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</p>
  2392. </td>
  2393. </tr>
  2394. <tr>
  2395. <td style="align-items: center;padding: 5px;">医师签名</td>
  2396. <td style='padding: 5px;'>
  2397. <p class=""></p>
  2398. </td>
  2399. </tr>
  2400. </table>`
  2401. console.log('1111111111textcontent',this.start_date);
  2402. this.textcontent = contents
  2403. this.$nextTick(()=>{
  2404. console.log('document.getElementById(editer)',document.getElementById('editer').getElementsByTagName('tbody')[0].children[9]);
  2405. const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
  2406. const jiancDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[8].children[1]
  2407. console.log('document.getElementById(editer)1111',jiancDoc);
  2408. if(this.Inspect.length<1){
  2409. let newList = document.createElement('p');
  2410. newList.style.cssText = 'padding: 5px;'
  2411. newList.textContent = '无';
  2412. jiancDoc.appendChild(newList)
  2413. }else{
  2414. let newList = document.createElement('p');
  2415. newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
  2416. let newListItem1 = document.createElement('span');
  2417. newListItem1.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2418. let newListItem2 = document.createElement('span');
  2419. newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2420. let newListItem3 = document.createElement('span');
  2421. newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2422. let newListItem4 = document.createElement('span');
  2423. newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2424. let newListItem5 = document.createElement('span');
  2425. newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2426. let newListItem6 = document.createElement('span');
  2427. newListItem6.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;'
  2428. newListItem1.textContent = '检验项目';
  2429. newListItem2.textContent = '检验时间';
  2430. newListItem3.textContent = '检验内容';
  2431. newListItem4.textContent = '结果';
  2432. newListItem5.textContent = '检验内容';
  2433. newListItem6.textContent = '结果';
  2434. newList.appendChild(newListItem1);
  2435. newList.appendChild(newListItem2);
  2436. newList.appendChild(newListItem3);
  2437. newList.appendChild(newListItem4);
  2438. newList.appendChild(newListItem5);
  2439. newList.appendChild(newListItem6);
  2440. jiancDoc.appendChild(newList)
  2441. for(let i in this.Inspect){
  2442. let newList1 = document.createElement('p');
  2443. const child1 = document.createElement('span')
  2444. const child2 = document.createElement('span')
  2445. newList1.appendChild(child1);
  2446. newList1.appendChild(child2);
  2447. newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
  2448. child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
  2449. child2.style.cssText= 'width: 80%;display: inline-block;display: flex;flex-wrap: wrap;'
  2450. // child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
  2451. let newListItem1 = document.createElement('span');
  2452. newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2453. let newListItem2 = document.createElement('span');
  2454. newListItem2.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;'
  2455. newListItem1.textContent = this.Inspect[i].name;
  2456. newListItem2.textContent = this.Inspect[i].date;
  2457. child1.appendChild(newListItem1);
  2458. child1.appendChild(newListItem2);
  2459. for(let j in this.Inspect[i].left){
  2460. let newListItem3 = document.createElement('span');
  2461. newListItem3.style.cssText= 'border-bottom: 1px solid black;width:25%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2462. let newListItem4 = document.createElement('span');
  2463. newListItem4.style.cssText= 'border-bottom: 1px solid black;width:25%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2464. newListItem3.textContent = this.Inspect[i].left[j].item_name;
  2465. newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
  2466. child2.appendChild(newListItem3);
  2467. child2.appendChild(newListItem4);
  2468. }
  2469. for(let x in this.Inspect[i].right){
  2470. let newListItem5 = document.createElement('span');
  2471. newListItem5.style.cssText= 'width: 25%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
  2472. let newListItem6 = document.createElement('span');
  2473. newListItem6.style.cssText= 'width: 25%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;border-right: 1px solid black;'
  2474. newListItem5.textContent = this.Inspect[i].right[x].item_name;
  2475. newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
  2476. child2.appendChild(newListItem5);
  2477. child2.appendChild(newListItem6);
  2478. }
  2479. jiancDoc.appendChild(newList1)
  2480. }
  2481. }
  2482. var newListArr =[]
  2483. for(let j in this.longAdvice){
  2484. const obj={
  2485. id:this.longAdvice[j].id,
  2486. newlist:'newList'+j
  2487. }
  2488. newListArr.push(obj)
  2489. }
  2490. for(let i in this.longAdvice){
  2491. for(let j in newListArr){
  2492. if(this.longAdvice[i].id==newListArr[j].id){
  2493. let newList = document.createElement('p');
  2494. newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
  2495. let newListItem1 = document.createElement('span');
  2496. newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2497. let newListItem2 = document.createElement('span');
  2498. newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2499. let newListItem3 = document.createElement('span');
  2500. newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2501. let newListItem4 = document.createElement('span');
  2502. newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2503. let newListItem5 = document.createElement('span');
  2504. newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2505. let newListItem6 = document.createElement('span');
  2506. newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
  2507. newListItem1.textContent = this.longAdvice[i].advice_name;
  2508. newListItem2.textContent = this.longAdvice[i].advice_type_name;
  2509. newListItem3.textContent = this.getTime(this.longAdvice[i].start_time)
  2510. newListItem4.textContent = this.longAdvice[i].single_dose +this.longAdvice[i].single_dose_unit ;
  2511. newListItem5.textContent = this.longAdvice[i].execution_frequency;
  2512. newListItem6.textContent = this.longAdvice[i].stop_state_name;
  2513. newList.appendChild(newListItem1);
  2514. newList.appendChild(newListItem2);
  2515. newList.appendChild(newListItem3);
  2516. newList.appendChild(newListItem4);
  2517. newList.appendChild(newListItem5);
  2518. newList.appendChild(newListItem6);
  2519. iframeDoc.appendChild(newList)
  2520. }
  2521. }
  2522. }
  2523. })
  2524. this.new_content = this.textcontent
  2525. this.$refs.editor.contents = this.new_content
  2526. this.$nextTick(()=>{
  2527. const iframeDoc1 = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
  2528. const jiancDoc1 = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[8].children[1]
  2529. jiancDoc1.getElementsByTagName('br')[0].remove()
  2530. jiancDoc1.style.cssText='padding: 0'
  2531. if(this.Inspect.length<1){
  2532. let newList2 = document.createElement('p');
  2533. newList2.style.cssText = 'padding: 5px;'
  2534. newList2.textContent = '无';
  2535. jiancDoc.appendChild(newList2)
  2536. }else{
  2537. let newList = document.createElement('p');
  2538. newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
  2539. let newListItem1 = document.createElement('span');
  2540. newListItem1.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2541. let newListItem2 = document.createElement('span');
  2542. newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2543. let newListItem3 = document.createElement('span');
  2544. newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2545. let newListItem4 = document.createElement('span');
  2546. newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2547. let newListItem5 = document.createElement('span');
  2548. newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2549. let newListItem6 = document.createElement('span');
  2550. newListItem6.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;'
  2551. newListItem1.textContent = '检验项目';
  2552. newListItem2.textContent = '检验时间';
  2553. newListItem3.textContent = '检验内容';
  2554. newListItem4.textContent = '结果';
  2555. newListItem5.textContent = '检验内容';
  2556. newListItem6.textContent = '结果';
  2557. newList.appendChild(newListItem1);
  2558. newList.appendChild(newListItem2);
  2559. newList.appendChild(newListItem3);
  2560. newList.appendChild(newListItem4);
  2561. newList.appendChild(newListItem5);
  2562. newList.appendChild(newListItem6);
  2563. jiancDoc1.appendChild(newList)
  2564. for(let i in this.Inspect){
  2565. let newList1 = document.createElement('p');
  2566. const child1 = document.createElement('span')
  2567. const child2 = document.createElement('span')
  2568. // const child3 = document.createElement('span')
  2569. newList1.appendChild(child1);
  2570. newList1.appendChild(child2);
  2571. // newList1.appendChild(child3);
  2572. newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
  2573. child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
  2574. child2.style.cssText= 'width: 80%;display: inline-block;display: flex;flex-wrap: wrap;'
  2575. let newListItem1 = document.createElement('span');
  2576. newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2577. let newListItem2 = document.createElement('span');
  2578. newListItem2.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;'
  2579. newListItem1.textContent = this.Inspect[i].name;
  2580. newListItem2.textContent = this.Inspect[i].date;
  2581. child1.appendChild(newListItem1);
  2582. child1.appendChild(newListItem2);
  2583. for(let j in this.Inspect[i].left){
  2584. let newListItem3 = document.createElement('span');
  2585. newListItem3.style.cssText= 'border-bottom: 1px solid black;width:25%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2586. let newListItem4 = document.createElement('span');
  2587. newListItem4.style.cssText= 'border-bottom: 1px solid black;width:25%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2588. newListItem3.textContent = this.Inspect[i].left[j].item_name;
  2589. newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
  2590. child2.appendChild(newListItem3);
  2591. child2.appendChild(newListItem4);
  2592. }
  2593. for(let x in this.Inspect[i].right){
  2594. let newListItem5 = document.createElement('span');
  2595. newListItem5.style.cssText= 'width: 25%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
  2596. let newListItem6 = document.createElement('span');
  2597. newListItem6.style.cssText= 'width: 25%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;border-right: 1px solid black;'
  2598. newListItem5.textContent = this.Inspect[i].right[x].item_name;
  2599. newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
  2600. child2.appendChild(newListItem5);
  2601. child2.appendChild(newListItem6);
  2602. }
  2603. jiancDoc1.appendChild(newList1)
  2604. }
  2605. }
  2606. var newListArr2 =[]
  2607. for(let j in this.longAdvice){
  2608. const obj={
  2609. id:this.longAdvice[j].id,
  2610. newlist:'newList'+j
  2611. }
  2612. newListArr2.push(obj)
  2613. }
  2614. for(let i in this.longAdvice){
  2615. for(let j in newListArr2){
  2616. if(this.longAdvice[i].id==newListArr2[j].id){
  2617. let newList = document.createElement('p');
  2618. newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
  2619. let newListItem1 = document.createElement('span');
  2620. newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2621. let newListItem2 = document.createElement('span');
  2622. newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2623. let newListItem3 = document.createElement('span');
  2624. newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2625. let newListItem4 = document.createElement('span');
  2626. newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2627. let newListItem5 = document.createElement('span');
  2628. newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  2629. let newListItem6 = document.createElement('span');
  2630. newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
  2631. newListItem1.textContent = this.longAdvice[i].advice_name;
  2632. newListItem2.textContent = this.longAdvice[i].advice_type_name;
  2633. newListItem3.textContent = this.getTime(this.longAdvice[i].created_time)
  2634. newListItem4.textContent = this.longAdvice[i].single_dose +this.longAdvice[i].single_dose_unit ;
  2635. newListItem5.textContent = this.longAdvice[i].execution_frequency;
  2636. newListItem6.textContent = this.longAdvice[i].stop_state_name;
  2637. newList.appendChild(newListItem1);
  2638. newList.appendChild(newListItem2);
  2639. newList.appendChild(newListItem3);
  2640. newList.appendChild(newListItem4);
  2641. newList.appendChild(newListItem5);
  2642. newList.appendChild(newListItem6);
  2643. iframeDoc1.appendChild(newList)
  2644. }
  2645. }
  2646. }
  2647. })
  2648. this.AuToShow = true
  2649. }
  2650. })
  2651. },
  2652. blood_chang(val){
  2653. if(val == 1){
  2654. this.start_date1 = this.getTime(new Date())
  2655. this.end_date1 = this.getTime(new Date())
  2656. }else if (val == 2){
  2657. this.start_date1 = this.timeForMat(7)
  2658. this.end_date1 = this.getTime(new Date())
  2659. }else if (val == 3){
  2660. this.start_date1 = this.timeForMat(30)
  2661. this.end_date1 = this.getTime(new Date())
  2662. }else if (val == 4){
  2663. this.start_date1 = this.getFirstDayOfWeek(new Date())
  2664. this.end_date1 = this.getTime(new Date())
  2665. }else if (val == 5){
  2666. this.getlastweek(new Date())
  2667. }else if (val == 6){
  2668. this.start_date1 = this.getFirstDayOfMonth(new Date())
  2669. this.end_date1 = this.getTime(new Date())
  2670. }else if (val == 7){
  2671. this.start_date1 = this.getLastMonthFirstDay()
  2672. this.end_date1 = this.getLastMonthLastDay()
  2673. }else if (val == 8){
  2674. this.start_date1 = this.getquarterstart(0,1)
  2675. this.end_date1 = this.getquarterend(2,31)
  2676. }else if (val == 9){
  2677. this.start_date1 = this.getquarterstart(3,1)
  2678. this.end_date1 = this.getquarterend(5,30)
  2679. }else if (val == 10){
  2680. this.start_date1 = this.getquarterstart(6,1)
  2681. this.end_date1 = this.getquarterend(8,30)
  2682. }else if (val == 11){
  2683. this.start_date1 = this.getquarterstart(9,1)
  2684. this.end_date1 = this.getquarterend(11,31)
  2685. }else if (val == 12){
  2686. this.start_date1 = this.getquarterstart(0,1)
  2687. this.end_date1 = this.getquarterend(5,30)
  2688. }else if (val == 13){
  2689. this.start_date1 = this.getquarterstart(6,1)
  2690. this.end_date1 = this.getquarterend(11,31)
  2691. }else if (val == 14){
  2692. this.start_date1 = this.getFirstDayOfYear(new Date())
  2693. this.end_date1 = this.getTime(new Date())
  2694. }else if (val == 15){
  2695. this.start_date1 = this.getLastYearFirstDay()
  2696. this.end_date1 = this.getLastYearLastDay()
  2697. }else{
  2698. this.start_date1 = this.getPreviousDate(7)
  2699. this.end_date1 = this.getTime(new Date())
  2700. }
  2701. },
  2702. // 最近七,30天
  2703. timeForMat(count) {
  2704. // 拼接时间
  2705. const time1 = new Date()
  2706. const time2 = new Date()
  2707. if (count === 1) {
  2708. time1.setTime(time1.getTime() - (24 * 60 * 60 * 1000))
  2709. } else {
  2710. time1.setTime(time1.getTime())
  2711. }
  2712. const Y1 = time1.getFullYear()
  2713. const M1 = ((time1.getMonth() + 1) > 9 ? (time1.getMonth() + 1) : '0' + (time1.getMonth() + 1))
  2714. const D1 = (time1.getDate() > 9 ? time1.getDate() : '0' + time1.getDate())
  2715. const timer1 = Y1 + '-' + M1 + '-' + D1 + ' ' + '23:59:59' // 当前时间
  2716. time2.setTime(time2.getTime() - (24 * 60 * 60 * 1000 * count))
  2717. const Y2 = time2.getFullYear()
  2718. const M2 = ((time2.getMonth() + 1) > 9 ? (time2.getMonth() + 1) : '0' + (time2.getMonth() + 1))
  2719. const D2 = (time2.getDate() > 9 ? time2.getDate() : '0' + time2.getDate())
  2720. const timer2 = Y2 + '-' + M2 + '-' + D2 // 之前的7天或者30天
  2721. console.log('timer2, timer1',timer2, timer1);
  2722. return timer2
  2723. },
  2724. // 本周
  2725. getFirstDayOfWeek(date){
  2726. var weekday = date.getDay()
  2727. date.setDate(date.getDate()-weekday+1);//往前算(weekday-1)天,年份、月份会自动变化
  2728. return this.timeFormat(date);
  2729. },
  2730. // 上周
  2731. getlastweek(date){
  2732. date.setDate(date.getDate()-7 - date.getDay() + 1);
  2733. var m =''
  2734. var d = ''
  2735. if(date.getMonth() + 1<10){
  2736. m = '0'+(date.getMonth() + 1)
  2737. }else{
  2738. m = date.getMonth() + 1
  2739. }
  2740. if(date.getDate()<10){
  2741. d = '0'+date.getDate()
  2742. }else{
  2743. d = date.getDate()
  2744. }
  2745. // this.start_date = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate() ;
  2746. this.start_date = date.getFullYear() + "-" + m + "-" + d ;
  2747. this.start_date1 = date.getFullYear() + "-" + m + "-" + d ;
  2748. date.setDate(date.getDate() +6);
  2749. var mm = ''
  2750. var dd = ''
  2751. if(date.getMonth() + 1<10){
  2752. mm = '0'+(date.getMonth() + 1)
  2753. }else{
  2754. mm = date.getMonth() + 1
  2755. }
  2756. if(date.getDate()<10){
  2757. dd = '0'+date.getDate()
  2758. }else{
  2759. dd = date.getDate()
  2760. }
  2761. this.end_date = date.getFullYear() + "-" + mm + "-" + dd ;
  2762. this.end_date1 = date.getFullYear() + "-" + mm + "-" + dd ;
  2763. },
  2764. // 本月
  2765. getFirstDayOfMonth (date) {
  2766. date.setDate(1);
  2767. return this.timeFormat(date);
  2768. },
  2769. //上个月第一天
  2770. getLastMonthFirstDay() {
  2771. var date = new Date();
  2772. date.setDate(0);
  2773. var y = date.getFullYear(); //获取年份
  2774. var m = date.getMonth() + 1; //获取月份
  2775. m = m < 10 ? "0" + m : m;
  2776. // this.start_date = [y, m, '01'].join("-")
  2777. return [y, m, '01'].join("-");
  2778. },
  2779. // 上个月最后一天
  2780. getLastMonthLastDay() {
  2781. var date = new Date();
  2782. date.setDate(0);
  2783. var y = date.getFullYear(); //获取年份
  2784. var m = date.getMonth() + 1; //获取月份
  2785. var d = new Date(y, m, 0).getDate(); //获取当月最后一日
  2786. m = m < 10 ? "0" + m : m; //月份补 0
  2787. d = d < 10 ? "0" + d : d; //日数补 0
  2788. // this.end_date = [y, m, d].join("-")
  2789. return [y, m, d].join("-");
  2790. },
  2791. // 本年
  2792. getFirstDayOfYear (date) {
  2793. date.setDate(1);
  2794. date.setMonth(0);
  2795. return this.timeFormat(date);
  2796. },
  2797. // 上一年第一天
  2798. getLastYearFirstDay() {
  2799. let date = new Date();
  2800. const year= date.setFullYear(date.getFullYear() - 1); // 设置年份为前一年
  2801. const start_month= date.setMonth(0); // 设置月份为1月(注意月份是从0开始的)
  2802. const start_day = date.setDate(1); // 设置日期为1日
  2803. // const last_month = date.setMonth(11); // 设置月份为12月
  2804. // const last_day = date.setDate(0); // 设置日期为0,这将自动设置为该月的最后一天
  2805. // this.start_date = year+ "-" +start_month+ "-" +start_day
  2806. // this.start_date = this.getTime(start_day)
  2807. return this.getTime(start_day)
  2808. },
  2809. // 上一年最后一天
  2810. getLastYearLastDay() {
  2811. let date = new Date();
  2812. const year= date.setFullYear(date.getFullYear() - 1); // 设置年份为前一年
  2813. const last_month = date.setMonth(12); // 设置月份为12月
  2814. const last_day = date.setDate(0);// 设置日期为0,这将自动设置为该月的最后一天
  2815. // this.end_date = year+ "-" +last_month+ "-" +last_day
  2816. // this.end_date = this.getTime(last_day)
  2817. console.log('this.end_date',this.end_date);
  2818. return this.getTime(last_day)
  2819. },
  2820. // 季度第一天
  2821. getquarterstart(index,number){
  2822. const currentYear = new Date().getFullYear();
  2823. const Start = this.timeFormat(new Date(currentYear, index, number));
  2824. return Start
  2825. },
  2826. // 季度最后一天
  2827. getquarterend(index,number){
  2828. const currentYear = new Date().getFullYear();
  2829. const End = this.timeFormat(new Date(currentYear, index, number));
  2830. return End
  2831. },
  2832. // 日期格式化
  2833. timeFormat(date) {
  2834. if (!date || typeof(date) === "string") {
  2835. this.error("参数异常,请检查...");
  2836. }
  2837. var y = date.getFullYear(); //年
  2838. if(date.getMonth() + 1<10){
  2839. var m ='0'+(date.getMonth() + 1); //月
  2840. }else{
  2841. var m =date.getMonth() + 1; //月
  2842. }
  2843. if(date.getDate()<10){
  2844. var d ='0'+date.getDate(); //日
  2845. }else{
  2846. var d = date.getDate(); //日
  2847. }
  2848. // var d = date.getDate(); //日
  2849. return y + "-" + m + "-" + d;
  2850. },
  2851. requestCourseRecords: function() {
  2852. this.loading = true
  2853. getCourseOfDiseaseRecords(this.patient_id, this.start_time, this.end_time).then(rs => {
  2854. this.loading = false
  2855. var resp = rs.data
  2856. if (resp.state == 1) {
  2857. this.current_select_record = null
  2858. this.records = resp.data.records
  2859. console.log("records232322332323232323223",this.records)
  2860. this.doctors = resp.data.doctors
  2861. } else {
  2862. this.$message.error(resp.msg)
  2863. }
  2864. }).catch(error => {
  2865. this.loading = false
  2866. this.$message.error(error)
  2867. })
  2868. },
  2869. didChangeCurrentRecord: function(record) {
  2870. this.current_select_record = record
  2871. },
  2872. recordTime: function(timestamp) {
  2873. var time = new Date(timestamp * 1000)
  2874. return parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
  2875. },
  2876. doctorName: function(doctor_id) {
  2877. for (let index = 0; index < this.doctors.length; index++) {
  2878. const doctor = this.doctors[index]
  2879. if (doctor.id == doctor_id) {
  2880. return doctor.name
  2881. }
  2882. }
  2883. return ''
  2884. },
  2885. modifyAction: function() {
  2886. this.edit_new_content = this.$refs.edit_neditor.content
  2887. if (this.edit_new_content.length == 0) {
  2888. this.$message.error('请填写病程内容')
  2889. return
  2890. }
  2891. this.uploading_new_record = true
  2892. modifyCourseOfDiseaseRecord(this.patient_id, this.edit_new_content, this.edit_course_of_disease_time, this.edit_current_id, this.edit_title).then(rs => {
  2893. this.uploading_new_record = false
  2894. var resp = rs.data
  2895. if (resp.state == 1) {
  2896. this.records[this.table_current_index].content = resp.data.record.content
  2897. this.records[this.table_current_index].record_time = resp.data.record.record_time
  2898. this.records[this.table_current_index].recorder = resp.data.record.recorder
  2899. this.records[this.table_current_index].title = resp.data.record.title
  2900. this.show_edit_dialog = false
  2901. this.edit_new_content = ''
  2902. this.table_current_index = -1
  2903. } else {
  2904. this.table_current_index = -1
  2905. this.$message.error(resp.msg)
  2906. }
  2907. }).catch(error => {
  2908. this.table_current_index = -1
  2909. this.uploading_new_record = false
  2910. this.$message.error(error)
  2911. })
  2912. },
  2913. getAutoPatientContent(){
  2914. if(this.start_date == ""){
  2915. this.$message.error("请选择开始时间")
  2916. }
  2917. if(this.end_date == ""){
  2918. this.$message.error("请选择结束时间")
  2919. }
  2920. var params = {
  2921. start_time:this.start_date,
  2922. end_time:this.end_date,
  2923. patient_id:this.patient_id,
  2924. }
  2925. console.log("start_time==============",params)
  2926. getAutoPatientContent(params).then(response=>{
  2927. if(response.data.state == 1){
  2928. var prescription = response.data.data.prescription
  2929. this.prescription=[]
  2930. this.prescription = prescription
  2931. var berfor = response.data.data.berfor
  2932. this.berforList = []
  2933. this.berforList = berfor
  2934. var monitorList = response.data.data.monitorList
  2935. this.monitorList = []
  2936. this.monitorList = monitorList
  2937. var dryweightList = response.data.data.dryweightList
  2938. this.dryweightList = []
  2939. this.dryweightList = dryweightList
  2940. var inpectionList = response.data.data.inpectionList
  2941. this.inpectionList = []
  2942. this.inpectionList = inpectionList
  2943. var patient = response.data.data.patient
  2944. if(patient.gender == 1){
  2945. patient.gender_name = "男"
  2946. }
  2947. if(patient.gender == 2){
  2948. patient.gender_name = "女"
  2949. }
  2950. this.patient = patient
  2951. var dialysisOrderList =response.data.data.dialysisOrder
  2952. this.dialysisOrderList = []
  2953. this.dialysisOrderList = dialysisOrderList
  2954. var longAdvice = response.data.data.longAdvice
  2955. this.longAdvice = []
  2956. this.longAdvice = longAdvice
  2957. this.groupPrescriptionList = []
  2958. this.groupPrescriptionList = response.data.data.groupPrescriptionList
  2959. this.afterList = response.data.data.after
  2960. this.max_blood_flow_volume = response.data.data.max_blood_flow_volume
  2961. this.max_befor_systolic_blood_pressure = response.data.data.max_befor_systolic_blood_pressure
  2962. this.min_befor_systolic_blood_pressure = response.data.data.min_befor_systolic_blood_pressure
  2963. this.max_befor_diastolic_blood_pressure = response.data.data.max_befor_diastolic_blood_pressure
  2964. this.min_befor_diastolic_blood_pressure = response.data.data.min_befor_diastolic_blood_pressure
  2965. this.max_after_systolic_blood_pressure = response.data.data.max_after_systolic_blood_pressure
  2966. this.min_after_systolic_blood_pressure = response.data.data.min_after_systolic_blood_pressure
  2967. this.max_after_diastolic_blood_pressure = response.data.data.max_after_diastolic_blood_pressure
  2968. this.min_after_diastolic_blood_pressure = response.data.data.min_after_diastolic_blood_pressure
  2969. this.max_monitor_systolic_blood_pressure = response.data.data.max_monitor_systolic_blood_pressure
  2970. this.min_monitor_systolic_blood_pressure = response.data.data.min_monitor_systolic_blood_pressure
  2971. this.max_monitor_diastolic_blood_pressure = response.data.data.max_monitor_diastolic_blood_pressure
  2972. this.min_monitor_diastolic_blood_pressure = response.data.data.min_monitor_diastolic_blood_pressure
  2973. this.lastDryWeight = response.data.data.lastDryWeight
  2974. this.patientVascularAccess = response.data.data.patientVascularAccess
  2975. this.lastBefor = response.data.data.lastBefor
  2976. this.auto_dialog = true
  2977. }
  2978. })
  2979. },
  2980. didSelectTemplate: function(templateContent) {
  2981. this.new_content = this.new_content.length > 0 ? (this.new_content + templateContent) : templateContent
  2982. }, didEditSelectTemplate: function(templateContent) {
  2983. this.edit_new_content = this.edit_new_content.length > 0 ? (this.edit_new_content + templateContent) : templateContent
  2984. },
  2985. didSelectionChange: function(selectRows) {
  2986. var arr = []
  2987. for(let i=0;i<selectRows.length;i++){
  2988. arr.push(selectRows[i].id)
  2989. }
  2990. var newArr = arr.join(',')
  2991. this.ids = newArr
  2992. console.log("select23322332",this.ids)
  2993. this.selectingRows = selectRows
  2994. },
  2995. deleteAction(){
  2996. if(this.id == 0){
  2997. this.$message.error("请选择要删除的信息!")
  2998. return false
  2999. }
  3000. this.$confirm('确定要取消吗?', '提示', {
  3001. confirmButtonText: '确定',
  3002. cancelButtonText: '取消',
  3003. type: 'warning'
  3004. }).then(() => {
  3005. deleteNewCouseOfDisease(this.id).then(response=>{
  3006. if (response.data.state==1) {
  3007. var msg = response.data.data.msg
  3008. this.$message.success("删除成功!")
  3009. this.getlist()
  3010. }
  3011. });
  3012. }).catch(() => {
  3013. });
  3014. },
  3015. showEdit() {
  3016. this.add_index =1
  3017. this.disabled = false
  3018. console.log('时间',this.record_date);
  3019. }, tableRow({ row, rowIndex }) {
  3020. // 把每一行的索引放进row
  3021. row.index = rowIndex
  3022. }, onRowClick(row, event, column) {
  3023. this.table_current_index = row.index
  3024. },
  3025. prints(){
  3026. if(this.ids.length == 0){
  3027. this.$message.error('请选择要打印的病程')
  3028. return
  3029. }
  3030. this.$router.push({ path: "/course/print?ids="+this.ids+"&patient_id="+this.patient_id});
  3031. },
  3032. GetAnticoagulant(id){
  3033. var anticoagulant_name = ""
  3034. if(id == 1){
  3035. anticoagulant_name = "无肝素"
  3036. }
  3037. if(id == 2){
  3038. anticoagulant_name = "普通肝素"
  3039. }
  3040. if(id == 3){
  3041. anticoagulant_name = "低分子肝素"
  3042. }
  3043. if(id == 4){
  3044. anticoagulant_name = "阿加曲班"
  3045. }
  3046. if(id == 5){
  3047. anticoagulant_name = "枸橼酸钠"
  3048. }
  3049. if(id == 6){
  3050. anticoagulant_name = "低分子肝素钙"
  3051. }
  3052. if(id == 7){
  3053. anticoagulant_name = "低分子肝素钠"
  3054. }
  3055. if(id == 8){
  3056. anticoagulant_name = "依诺肝素"
  3057. }
  3058. if(id == 9){
  3059. anticoagulant_name = "达肝素"
  3060. }
  3061. if(id == 10){
  3062. anticoagulant_name = "体外抗凝"
  3063. }
  3064. if(id == 11){
  3065. anticoagulant_name = "那屈肝素"
  3066. }
  3067. if(id == 12){
  3068. anticoagulant_name = "无抗凝剂"
  3069. }
  3070. if(id == 13){
  3071. anticoagulant_name = "那屈肝素钙"
  3072. }
  3073. if(id == 14){
  3074. anticoagulant_name = "肝素钙注射液"
  3075. }
  3076. if(id == 15){
  3077. anticoagulant_name = "甲磺酸萘莫司他"
  3078. }
  3079. return anticoagulant_name
  3080. },
  3081. getTime (time) {
  3082. return uParseTime(time, '{y}-{m}-{d}')
  3083. },
  3084. getTimeOne (time) {
  3085. return uParseTime(time, '{y}-{m}-{d}')
  3086. },
  3087. getTimeTwo (time) {
  3088. return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
  3089. },
  3090. getTimeThree (time) {
  3091. return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
  3092. },
  3093. newcontent(val){
  3094. this.new_content =''
  3095. this.new_content = val
  3096. console.log('1111112323',val);
  3097. this.$refs.editor.contents = this.new_content
  3098. },
  3099. bloodChange(val){
  3100. this.bloodRows = []
  3101. const text = val.content
  3102. this.blood_context = text
  3103. console.log('this.blood_context',this.blood_context);
  3104. },
  3105. summaryChange(val){
  3106. this.summary_context=""
  3107. if(val!=undefined){
  3108. if(val.summary!=null && val.summary!=undefined){
  3109. this.summary_context = val.summary.dialysis_summary
  3110. }
  3111. }
  3112. },
  3113. toSummaryPint(){
  3114. this.$refs.editor.contents = this.$refs.editor.contents +this.summary_context
  3115. this.summary_dialog = false
  3116. },
  3117. weightChange(val){
  3118. var text = this.getTimeTwo(val.ctime) + " " + "调整值"+val.adjusted_value.slice(0,3)+"kg"+"("+val.adjusted_value.slice(4,6)+")"+"," +"干体重:"+val.dry_weight+"kg"
  3119. this.weight_context = text
  3120. },
  3121. toDryWeightPint(){
  3122. this.$refs.editor.contents = this.$refs.editor.contents +this.weight_context
  3123. this.weight_dialog = false
  3124. },
  3125. type_chang(val){
  3126. this.advice_type = val
  3127. this.getPatientAdviceList()
  3128. },
  3129. status_chang(val){
  3130. this.advice_status = val
  3131. this.getPatientAdviceList()
  3132. },
  3133. selectionchange(val){
  3134. this.bloodRows = val
  3135. this.gettext(val)
  3136. console.log('血压',this.bloodRows);
  3137. },
  3138. selectionchange2(val){
  3139. this.summaryRows = val
  3140. this.summary_context=""
  3141. if(val!=null){
  3142. // if(val.summary!=null && val.summary!=undefined){
  3143. // this.summary_context = val.summary.dialysis_summary
  3144. // }
  3145. for(let i=0;i<val.length;i++){
  3146. this.summary_context += val[i].summary.dialysis_summary+"</br>"
  3147. }
  3148. this.summary_context = this.summary_context
  3149. }
  3150. // this.getsummary(val)
  3151. // console.log('透析小结',this.summaryRows);
  3152. },
  3153. selectionchange3(val){
  3154. this.weightRows = val
  3155. this.getweight(val)
  3156. console.log('透析小结',this.weightRows);
  3157. },
  3158. selectionchange4(val){
  3159. this.optionRows = val
  3160. this.getoption(val)
  3161. console.log('透析小结',this.weightRows);
  3162. },
  3163. selectionchange5(val){
  3164. this.adviceRows = val
  3165. this.getNewPatientAdviceList(val)
  3166. },
  3167. gettext(val){
  3168. const arr= []
  3169. if(val.length>0){
  3170. for(let i in val){
  3171. arr.push(val[i].content)
  3172. }
  3173. }
  3174. this.blood_context = arr.join('<br/>')
  3175. console.log('拼接val.content.join()',arr.join('<br/>'));
  3176. },
  3177. getsummary(val){
  3178. const arr= []
  3179. if(val.length>0){
  3180. for(let i in val){
  3181. const obj = val[i].date +'('+ val[i].mode + ')'+'透析过程平稳,无不适主诉,顺利结束透析治疗。'
  3182. arr.push(obj)
  3183. }
  3184. }
  3185. console.log('1111111',arr);
  3186. this.summary_context = `${arr.join('<br/>')}`
  3187. },
  3188. getweight(val){
  3189. const arr= []
  3190. if(val.length>0){
  3191. for(let i in val){
  3192. const obj = val[i].date + '调整值'+ val[i].value + 'kg' + '干体重'+ val[i].weight+'kg'
  3193. arr.push(obj)
  3194. }
  3195. }
  3196. console.log('1111111',arr);
  3197. this.weight_context = `${arr.join('<br/>')}`
  3198. },
  3199. getoption(val){
  3200. var newArr = []
  3201. for(let i=0;i<this.systemPrescritpionList.length;i++){
  3202. for(let j=0;j<val.length;j++){
  3203. if(val[j].mode == this.systemPrescritpionList[i].mode_name){
  3204. newArr.push(this.systemPrescritpionList[i])
  3205. }
  3206. }
  3207. }
  3208. const arr= []
  3209. if(newArr.length>0){
  3210. for(let i=0;i<newArr.length;i++){
  3211. const text = `<table border="1" style="border-collapse: collapse;width: 100%;">
  3212. <tr><td colspan="4">${newArr[i].mode_name},启用</td></tr>
  3213. <tr>
  3214. <td>透析时长:${newArr[i].dialysis_duration_hour}时${newArr[i].dialysis_duration_minute}分</td>
  3215. <td>置换方式:${newArr[i].displace_name}</td>
  3216. <td>血流量(ml/min):${newArr[i].blood_flow_volume}</td>
  3217. <td></td>
  3218. </tr>
  3219. <tr>
  3220. <td>透析器:${newArr[i].dialysis_dialyszers}</td>
  3221. <td>灌流器:${newArr[i].dialysis_irrigation}</td>
  3222. <td>透析液流量(ml/min):${newArr[i].dialysate_flow}</td>
  3223. </tr>
  3224. <tr>
  3225. <td>钾(mmol/L):${newArr[i].kalium}</td>
  3226. <td>钠(mmol/L):${newArr[i].sodium}</td>
  3227. <td>钙(mmol/L):${newArr[i].calcium}</td>
  3228. <td>碳酸氢根(mmol/L):${newArr[i].bicarbonates}</td>
  3229. </tr>
  3230. <tr>
  3231. <td>抗凝剂:${newArr[i].anticoagulant_name}</td>
  3232. <td>首剂(iu):${newArr[i].anticoagulant_shouji}</td>
  3233. <td>维持(iu):${newArr[i].anticoagulant_weichi}</td>
  3234. <td>总量(iu):${newArr[i].anticoagulant_zongliang}</td>
  3235. </tr>
  3236. <tr><td colspan="4"></td></tr>
  3237. </table>`
  3238. arr.push(text)
  3239. }
  3240. }
  3241. const contenttext = `${arr.join('<br/>')}`
  3242. this.option_context = contenttext
  3243. // console.log('option_context',this.option_context);
  3244. this.$refs.editorOne.contents = this.option_context
  3245. },
  3246. // 血压搜索
  3247. bloodsearch(val){
  3248. },
  3249. blood_click(){
  3250. this.blood_dialog =true
  3251. this.start_date1 = this.timeForMat(7)
  3252. this.end_date1 = this.getTime(new Date())
  3253. this.$nextTick(()=>{
  3254. this.$refs.blood_table.setCurrentRow(this.bloodList[0])
  3255. })
  3256. },
  3257. summary_click(){
  3258. this.summary_dialog = true
  3259. this.start_date1 = this.timeForMat(7)
  3260. this.end_date1 = this.getTime(new Date())
  3261. this.$nextTick(()=>{
  3262. this.$refs.blood_table.setCurrentRow(this.bloodList[0])
  3263. })
  3264. },
  3265. weight_click(){
  3266. this.weight_dialog =true
  3267. this.start_date1 = this.timeForMat(7)
  3268. this.end_date1 = this.getTime(new Date())
  3269. this.$nextTick(()=>{
  3270. this.$refs.weight_table.setCurrentRow(this.weightlist[0])
  3271. })
  3272. },
  3273. option_click(val){
  3274. this.option_dialog =true
  3275. // this.start_date1 = this.timeForMat(7)
  3276. // this.end_date1 = this.getTime(new Date())
  3277. // this.$nextTick(()=>{
  3278. // this.$refs.option_table.setCurrentRow(this.weightlist[0])
  3279. // })
  3280. this.getDilaysisSystemList()
  3281. },
  3282. advice_click(){
  3283. const text =`<p class='advice_table'></p>`
  3284. this.advice_context = text
  3285. this.getPatientAdviceList()
  3286. this.advice_dialog = true
  3287. },
  3288. diagnosis_click(){
  3289. const text =`<table border="1" style="border-collapse: collapse;text-align: center;">
  3290. <tr><td>1</td><td>高尿酸血症</td></tr>
  3291. <tr><td>2</td><td>继发性甲状旁腺功能亢进</td></tr>
  3292. </table>`
  3293. // this.$refs.editor.contents = this.new_content
  3294. this.$refs.editor.contents = this.$refs.editor.contents +text
  3295. },
  3296. hospital_click(){
  3297. const text = `<p style="line-height: 50px;display: flex;"><span style="display: inline-block;flex: 1;">住院日期:</span><span style="display: inline-block;flex: 1;">出院日期:</span></p>
  3298. <p style="line-height: 50px;display: flex;"><span style="display: inline-block;flex: 1;">入院诊断:</span><span style="display: inline-block;flex: 1;">出院诊断:</span></p>`
  3299. this.$refs.editor.contents = this.$refs.editor.contents + text
  3300. },
  3301. Inspect_click(){
  3302. this.Inspect_dialog = true
  3303. this.start_date1 = this.timeForMat(7)
  3304. this.end_date1 = this.getTime(new Date())
  3305. for(let i in this.Inspectlist){
  3306. this.activeNames.push(this.Inspectlist[i].id)
  3307. }
  3308. },
  3309. handleChange(val){
  3310. },
  3311. childclick(i){
  3312. var params = {
  3313. patient_id:i.patient_id,
  3314. project_id:i.project_id,
  3315. inspect_date:i.inspect_date,
  3316. }
  3317. getInspectionByProjectId(params).then(response=>{
  3318. if(response.data.state == 1){
  3319. var inspection = response.data.data.inspection
  3320. var inspection_str = i.project_name + "-"+"检验日期:"+this.getTime(i.inspect_date)+";"
  3321. if(inspection!=null && inspection.length>0){
  3322. for(let i=0;i<inspection.length;i++){
  3323. if(inspection[i].inspect_value!=""){
  3324. inspection_str += inspection[i].item_name+":" + inspection[i].inspect_value+","
  3325. }
  3326. }
  3327. }
  3328. this.inspect_context = inspection_str
  3329. }
  3330. })
  3331. // // const inspect_arr = []
  3332. // if(this.InspectRows.length ==0){
  3333. // this.InspectRows.push(eve)
  3334. // }else{
  3335. // let index = this.InspectRows.findIndex((obj) => obj.c_id === eve.c_id && obj.pater_id == eve.pater_id);
  3336. // if (index === -1) {
  3337. // this.InspectRows.push(eve);
  3338. // } else {
  3339. // this.InspectRows.splice(index, 1);
  3340. // }
  3341. // }
  3342. // this.getinspect(this.InspectRows)
  3343. // console.log('检查',this.InspectRows.includes(eve));
  3344. },
  3345. toInpectionContentPint(){
  3346. this.$refs.editor.contents = this.$refs.editor.contents +this.inspect_context
  3347. this.Inspect_dialog = false
  3348. },
  3349. getinspect(val){
  3350. const arr = []
  3351. if(val != ''){
  3352. for(let i in val){
  3353. arr.push(val[i].text)
  3354. }
  3355. const contenttext = `${arr.join('<br/>')}`
  3356. this.Inspect_context = contenttext
  3357. }else{
  3358. this.Inspect_context = ''
  3359. }
  3360. },
  3361. check_change(){
  3362. const arr = []
  3363. if(this.checked==true){
  3364. for(let i in this.Inspectlist){
  3365. for(let j in this.Inspectlist[i].child){
  3366. if(this.InspectRows.length ==0){
  3367. this.InspectRows.push(this.Inspectlist[i].child[j])
  3368. }else{
  3369. this.InspectRows.push(this.Inspectlist[i].child[j])
  3370. for(let x=0;x<this.InspectRows.length;x++){
  3371. for(let y =x+1;y<this.InspectRows.length;y++){
  3372. if(this.InspectRows[x].c_id === this.InspectRows[y].c_id &&
  3373. this.InspectRows[x].pater_id == this.InspectRows[y].pater_id
  3374. ){
  3375. this.InspectRows.splice(y,1)
  3376. }
  3377. }
  3378. }
  3379. }
  3380. }
  3381. }
  3382. }else{
  3383. this.InspectRows = []
  3384. }
  3385. this.getinspect(this.InspectRows)
  3386. // console.log('this',this.InspectRows);
  3387. },
  3388. //血压
  3389. getMonitorSearchList(){
  3390. var params = {
  3391. start_time:this.start_date1,
  3392. end_time:this.end_date1,
  3393. patient_id:this.patient_id,
  3394. }
  3395. getMonitorSearchList(params).then(response=>{
  3396. if(response.data.state == 1){
  3397. var monitorList = response.data.data.monitorList
  3398. this.monitorListOne = monitorList
  3399. }
  3400. })
  3401. },
  3402. getSummarySearchList(){
  3403. var params = {
  3404. start_time:this.start_date1,
  3405. end_time:this.end_date1,
  3406. patient_id:this.patient_id,
  3407. }
  3408. getSummarySearchList(params).then(response=>{
  3409. if(response.data.state ==1){
  3410. this.summaryList =[]
  3411. this.summaryList = response.data.data.summaryList
  3412. }
  3413. })
  3414. },
  3415. getPatientDryWeightList(){
  3416. var params = {
  3417. start_time:this.start_date1,
  3418. end_time:this.end_date1,
  3419. patient_id:this.patient_id,
  3420. }
  3421. getPatientDryWeightList(params).then(response=>{
  3422. if(response.data.state == 1){
  3423. var dryWeightList = response.data.data.dryWeightList
  3424. this.dryWeightList = []
  3425. this.dryWeightList = dryWeightList
  3426. }
  3427. })
  3428. },
  3429. getDilaysisSystemList(){
  3430. var params = {
  3431. start_time:this.start_date1,
  3432. end_time:this.end_date1,
  3433. patient_id:this.patient_id,
  3434. }
  3435. getDilaysisSystemList(params).then(response=>{
  3436. if(response.data.state == 1){
  3437. this.systemPrescritpionList = []
  3438. var systemPrescritpionList = response.data.data.prescription
  3439. if(systemPrescritpionList!=null && systemPrescritpionList.length>0){
  3440. for(let i=0;i<systemPrescritpionList.length;i++){
  3441. systemPrescritpionList[i].mode_name = ""
  3442. systemPrescritpionList[i].mode_name = this.getModeId(systemPrescritpionList[i].mode_id)
  3443. systemPrescritpionList[i].displace_name = this.getDisplaceLiqu(systemPrescritpionList[i].displace_liqui)
  3444. systemPrescritpionList[i].anticoagulant_name = this.getAnticoagulantName(systemPrescritpionList[i].anticoagulant)
  3445. }
  3446. }
  3447. this.systemPrescritpionList = systemPrescritpionList
  3448. }
  3449. })
  3450. },
  3451. getDisplaceLiqu(id){
  3452. var displace_liqui_List = this.$store.getters.displace_liqui
  3453. var name = ""
  3454. for(let i=0;i<displace_liqui_List.length;i++){
  3455. if(id == displace_liqui_List[i].id){
  3456. name = displace_liqui_List[i].name
  3457. }
  3458. }
  3459. return name
  3460. },
  3461. getPatientAdviceList(){
  3462. var ids = this.newIds.join()
  3463. var params = {
  3464. start_time:this.start_date1,
  3465. end_time:this.end_date1,
  3466. patient_id:this.patient_id,
  3467. advice_type:this.advice_type,
  3468. advice_status:this.advice_status,
  3469. }
  3470. getPatientAdviceList(params).then(response=>{
  3471. if(response.data.state == 1){
  3472. var advicelist = response.data.data.advicelist
  3473. this.adviceList = []
  3474. this.adviceList =advicelist
  3475. }
  3476. })
  3477. },
  3478. getNewPatientAdviceList(val){
  3479. var newArr= []
  3480. for(let i=0;i<val.length;i++){
  3481. for(let j=0;j<this.adviceList.length;j++){
  3482. if(val[i].id == this.adviceList[j].id){
  3483. newArr.push(this.adviceList[j])
  3484. }
  3485. }
  3486. }
  3487. this.adviceNewList = []
  3488. this.adviceNewList = newArr
  3489. this.all_select = 1
  3490. },
  3491. handleMonitorChange(val){
  3492. var str = ""
  3493. var monitor_str =""
  3494. if(val.monitor!=null && val.monitor.length>0){
  3495. for(let i=0;i<val.monitor.length;i++){
  3496. monitor_str += val.monitor[i].systolic_blood_pressure+"/"+val.monitor[i].diastolic_blood_pressure+";"
  3497. }
  3498. }
  3499. if(val!=undefined){
  3500. str += this.getTime(val.schedule_date) + "("+this.getModeId(val.mode_id)+")"+" "+"透前血压:"+val.befor.systolic_blood_pressure+"/"+val.befor.diastolic_blood_pressure
  3501. +" " +"监测记录:"+monitor_str+" "+"透后血压:"+val.after.systolic_blood_pressure +"/"+ val.after.diastolic_blood_pressure
  3502. }
  3503. this.monitor_blood_context =""
  3504. this.monitor_blood_context = str
  3505. },
  3506. toMonitorPint(){
  3507. this.$refs.editor.contents = this.$refs.editor.contents+this.monitor_blood_context
  3508. this.blood_dialog = false
  3509. },
  3510. toInspection(){
  3511. var params = {
  3512. start_time:this.start_date1,
  3513. end_time:this.end_date1,
  3514. patient_id:this.patient_id,
  3515. }
  3516. getPatientInspectionList(params).then(response=>{
  3517. if(response.data.state == 1){
  3518. var groupList = response.data.data.groupList
  3519. var inspection = response.data.data.inspection
  3520. this.inspectionList = inspection
  3521. if(groupList.length!=null && groupList.length>0){
  3522. for(let i=0;i<groupList.length;i++){
  3523. groupList[i].child = []
  3524. for(let j=0;j<inspection.length;j++){
  3525. if(groupList[i].project_id == inspection[j].project_id && groupList[i].inspect_date == inspection[j].inspect_date){
  3526. groupList[i].child.push(inspection[j])
  3527. }
  3528. }
  3529. }
  3530. }
  3531. for(let i=0;i<groupList.length;i++){
  3532. for(let j=0;j<groupList[i].child.length;j++){
  3533. groupList[i].child =this.getInspection(groupList[i].child)
  3534. }
  3535. }
  3536. this.newInspectionList = groupList
  3537. }
  3538. })
  3539. },
  3540. getInspection(tempArr) {
  3541. let newArr = [];
  3542. for (let i = 0; i < tempArr.length; i++) {
  3543. if (newArr.indexOf(tempArr[i].inspect_date) == -1) {
  3544. newArr.push(tempArr[i].inspect_date);
  3545. } else {
  3546. tempArr.splice(i, 1);
  3547. i--;
  3548. };
  3549. };
  3550. return tempArr;
  3551. },
  3552. changeInspetion(){
  3553. for(let i=0;i<this.newInspectionList.length;i++){
  3554. this.newInspectionList[i].childOne =[]
  3555. for(let j=0;j<this.inspectionList.length;j++){
  3556. if(this.newInspectionList[i].project_id == this.inspectionList[j].project_id &&this.newInspectionList[i].inspect_date== this.inspectionList[j].inspect_date ){
  3557. this.newInspectionList[i].childOne.push(this.inspectionList[j])
  3558. }
  3559. }
  3560. }
  3561. var new_inspection_str =""
  3562. if(this.newInspectionList!=null&& this.newInspectionList.length>0){
  3563. for(let i=0;i<this.newInspectionList.length;i++){
  3564. if(this.newInspectionList[i].childOne!=null && this.newInspectionList[i].childOne.length>0){
  3565. new_inspection_str += "<br/>"+ this.newInspectionList[i].project_name +"-" +"检验日期:"+ this.getTime(this.newInspectionList[i].childOne[0].inspect_date) +" "
  3566. for(let j=0;j<this.newInspectionList[i].childOne.length;j++){
  3567. if(this.newInspectionList[i].childOne[j].inspect_value!=""){
  3568. new_inspection_str+= this.newInspectionList[i].childOne[j].item_name+":" + this.newInspectionList[i].childOne[j].inspect_value+","+" "
  3569. }
  3570. }
  3571. }
  3572. }
  3573. }
  3574. this.inspect_context = new_inspection_str
  3575. },
  3576. toSystemContentPint(){
  3577. this.$refs.editor.contents = this.$refs.editor.contents +this.option_context
  3578. this.option_dialog = false
  3579. },
  3580. toContentPint(){
  3581. console.log("hhhhhhhhhhhhhhhhhhhh",this.$refs.editor)
  3582. this.$refs.editor.contents = this.$refs.editor.contents + this.$refs.editorOne.contents
  3583. this.library_dialog = false
  3584. }
  3585. },
  3586. beforeMount(){
  3587. },
  3588. mounted(){
  3589. },
  3590. }
  3591. </script>
  3592. <style rel="stylesheet/css" lang="scss" scoped>
  3593. .container {
  3594. margin-left: 180px;
  3595. padding: 20px;
  3596. background: #fff;
  3597. min-height: calc(100vh - 173px);
  3598. margin-bottom: 15px;
  3599. .record {
  3600. padding-top: 20px;
  3601. }
  3602. }
  3603. .record_content_panel {
  3604. border-width: 1px;
  3605. border-style: solid;
  3606. border-color: #ebeef5;
  3607. min-height: 200px;
  3608. .title {
  3609. font-size: 14px;
  3610. font-weight: 500;
  3611. color: #909399;
  3612. line-height: 44px;
  3613. height: 44px;
  3614. text-align: center;
  3615. border-bottom-width: 1px;
  3616. border-bottom-style: solid;
  3617. border-bottom-color: #ebeef5;
  3618. }
  3619. .content {
  3620. padding: 12px 15px;
  3621. font-size: 15px;
  3622. color: gray;
  3623. line-height: 22px;
  3624. }
  3625. }
  3626. .new_record_form {
  3627. /*/ / padding: 10 px, 25 px;*/
  3628. .textarea_panel {
  3629. margin-top: 10px;
  3630. }
  3631. }
  3632. .eldialog{
  3633. .el-dialog{
  3634. .el-dialog__body{
  3635. max-height: calc(100vh - 80px) !important;
  3636. padding: 0px 20px;
  3637. }
  3638. }
  3639. }
  3640. .Second_title{
  3641. border-left: 5px solid #3891f1f5;
  3642. text-align: left;
  3643. padding-left: 5px;
  3644. // margin-left: 10px;
  3645. margin-bottom: 5px;
  3646. font-size: 16px;
  3647. }
  3648. .text_margin{
  3649. display: block;
  3650. }
  3651. .blood_text{
  3652. border: 1px solid #cfcaca;
  3653. min-height: 400px;
  3654. padding: 5px;
  3655. }
  3656. .inspect{
  3657. line-height: 40px;
  3658. text-align: center;
  3659. border: 1px solid gainsboro;
  3660. }
  3661. .Selectli{
  3662. color: #409eff;
  3663. border-color: #409eff;
  3664. }
  3665. </style>
  3666. <style lang="scss">
  3667. .el-table td,
  3668. .el-table th.is-leaf,
  3669. .el-table--border,
  3670. .el-table--group {
  3671. border-color: #d0d3da;
  3672. }
  3673. .el-table--border::after,
  3674. .el-table--group::after,
  3675. .el-table::before {
  3676. background-color: #d0d3da;
  3677. }
  3678. .eldialog{
  3679. .el-dialog{
  3680. .el-dialog__body{
  3681. max-height: calc(100vh - 80px) !important;
  3682. padding: 0px 20px;
  3683. }
  3684. }
  3685. }
  3686. .lirary{
  3687. .el-dialog__body{
  3688. padding: 0px 20px !important;
  3689. }
  3690. .el-dialog__footer{
  3691. text-align: center;
  3692. }
  3693. }
  3694. .course{
  3695. .el-dialog{
  3696. height: 90%;
  3697. // position: fixed !important;
  3698. // top: 10% !important;
  3699. }
  3700. }
  3701. .elcollapseitem{
  3702. .el-collapse-item__header{
  3703. font-size: 16px;
  3704. color: white;
  3705. background: #409eff;
  3706. }
  3707. }
  3708. </style>