courseOfDisease_new.vue 150KB

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