dialysisPrescriptionDialog.vue 233KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064
  1. <template>
  2. <div>
  3. <el-dialog
  4. title="透析处方"
  5. :visible.sync="isVisibility"
  6. width="1010px"
  7. :modal-append-to-body="false"
  8. :append-to-body="true"
  9. class="newDialog"
  10. >
  11. <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo">{{ patient.name }}</el-button>
  12. <span style="position: absolute;left: 22%;top: 3%">
  13. 透前体重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
  14. </span>
  15. <span style="position: absolute;left: 35%;top: 3%">
  16. 干体重:{{predialysis&&predialysis.dry_weight?predialysis.dry_weight:""}}kg
  17. </span>
  18. <!-- <span style="position: absolute;left: 48%;top: 3%">
  19. 衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
  20. </span> -->
  21. <span style="position: absolute;left: 48%;top: 3%">
  22. 上次透后体重:{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg
  23. </span>
  24. <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
  25. <el-form
  26. ref="dialysisPrescription"
  27. :model="dialysisPrescription"
  28. label-width="148px"
  29. >
  30. <el-row :gutter="24">
  31. <el-col :span="8" v-if="isShows('透析模式')">
  32. <el-form-item label="透析模式" :prop="isName('透析模式')" :rules="isCheckmust('透析模式')">
  33. <el-select
  34. filterable
  35. v-model="dialysisPrescription.mode_id"
  36. @change="changePrescription(dialysisPrescription.mode_id)" placeholder="请选择">
  37. <!-- <el-option :key="0" label="请选择" :value="0"></el-option> -->
  38. <el-option
  39. v-for="(item, index) in treatment_mode"
  40. :label="item.name"
  41. :value="item.id"
  42. :key="index + 'q'"
  43. ></el-option>
  44. </el-select>
  45. </el-form-item>
  46. </el-col>
  47. <el-col :span="8" v-if="isShows('透析时长')">
  48. <el-form-item label="透析时长(h):" prop="dialysis_duration_hour" :rules="isCheckmust('透析时长')">
  49. <el-input
  50. type="number"
  51. v-model="dialysisPrescription.dialysis_duration_hour"
  52. ></el-input>
  53. </el-form-item>
  54. </el-col>
  55. <el-col :span="8" v-if="isShows('透析时长')">
  56. <el-form-item label="透析时长(min): " prop="dialysis_duration_minute" :rules="isCheckmust('透析时长')">
  57. <el-input
  58. type="number"
  59. v-model="dialysisPrescription.dialysis_duration_minute"
  60. ></el-input>
  61. </el-form-item>
  62. </el-col>
  63. <!-- </el-row>
  64. <el-row :gutter="20"> -->
  65. <el-col :span="8" v-if="isShows('血流量')">
  66. <el-form-item label="血流量(ml/min):" prop="blood_flow_volume" :rules="isCheckmust('血流量')">
  67. <el-input
  68. type="number"
  69. v-model="dialysisPrescription.blood_flow_volume"
  70. ></el-input>
  71. </el-form-item>
  72. </el-col>
  73. <el-col :span="8" v-if="isShows('置换流量') && this.$store.getters.xt_user.template_info.org_id != 10340">
  74. <el-form-item label="置换流量(L/h):" prop="replacement_flow" :rules="isCheckmust('置换流量')">
  75. <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
  76. </el-form-item>
  77. </el-col>
  78. <el-col :span="8" v-if="isShows('置换流量') && this.$store.getters.xt_user.template_info.org_id == 10340">
  79. <el-form-item label="置换流量(ml/min):" prop="replacement_flow" :rules="isCheckmust('置换流量')">
  80. <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
  81. </el-form-item>
  82. </el-col>
  83. <el-col :span="8"
  84. v-if="isShows('预冲量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.org_id == 10345)">
  85. <el-form-item label="预冲量(ml):" prop="pre_impulse" :rules="isCheckmust('预冲量')">
  86. <el-input
  87. type="number"
  88. v-model="dialysisPrescription.pre_impulse"
  89. ></el-input>
  90. </el-form-item>
  91. </el-col>
  92. <el-col :span="8"
  93. v-if="isShows('预冲量') && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id !=23 && this.$store.getters.xt_user.template_info.template_id !=36 && this.$store.getters.xt_user.template_info.org_id!=10345">
  94. <el-form-item label="预冲量(L):" prop="pre_impulse" :rules="isCheckmust('预冲量')">
  95. <el-input
  96. type="number"
  97. v-model="dialysisPrescription.pre_impulse"
  98. ></el-input>
  99. </el-form-item>
  100. </el-col>
  101. <el-col :span="8"
  102. v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46 || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469|| this.$store.getters.xt_user.template_info.org_id == 10471 || this.$store.getters.xt_user.template_info.org_id == 10460)">
  103. <el-form-item label="目标超滤量(ml):"
  104. prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
  105. <el-input
  106. type="number"
  107. v-model="dialysisPrescription.target_ultrafiltration"
  108. ></el-input>
  109. </el-form-item>
  110. </el-col>
  111. <el-col :span="8"
  112. v-if="isShows('目标超滤量') && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 46 && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 && this.$store.getters.xt_user.template_info.org_id != 10345 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 && this.$store.getters.xt_user.template_info.org_id != 10395 && this.$store.getters.xt_user.template_info.template_id != 60 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469&& this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10460">
  113. <el-form-item
  114. label="目标超滤量(L):" prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
  115. <el-input
  116. type="number"
  117. v-model="dialysisPrescription.target_ultrafiltration"
  118. ></el-input>
  119. </el-form-item>
  120. </el-col>
  121. <el-col :span="8"
  122. v-if="isShows('处方脱水量')">
  123. <el-form-item label="处方脱水量(ml):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
  124. <el-input
  125. type="number"
  126. v-model="dialysisPrescription.prescription_water"
  127. ></el-input>
  128. </el-form-item>
  129. </el-col>
  130. <el-col :span="8"
  131. v-if="isShows('加糖')">
  132. <el-form-item label="加糖:" prop="prescription_water" :rules="isCheckmust('加糖')">
  133. <el-input v-model="dialysisPrescription.chaptalization"
  134. ></el-input>
  135. </el-form-item>
  136. </el-col>
  137. <el-col :span="8" v-if="isShows('带水上机')">
  138. <el-form-item label="带水上机:" prop="water_machine" :rules="isCheckmust('带水上机')">
  139. <el-select v-model="dialysisPrescription.water_machine">
  140. <el-option
  141. v-for="(item, index) in machineList"
  142. :label="item.name"
  143. :value="item.name"
  144. :key="index + 'q'"
  145. ></el-option>
  146. </el-select>
  147. </el-form-item>
  148. </el-col>
  149. <el-col :span="8" v-if="isShows('是否单超脱水')">
  150. <el-form-item label="是否单超脱水:" prop="is_water" :rules="isCheckmust('是否单超脱水')">
  151. <el-select v-model="dialysisPrescription.is_water">
  152. <el-option
  153. v-for="(item, index) in waterList"
  154. :label="item.name"
  155. :value="item.id"
  156. :key="index + 'q'"
  157. ></el-option>
  158. </el-select>
  159. </el-form-item>
  160. </el-col>
  161. <el-col :span="8" v-if="isShows('单超时长') && dialysisPrescription.is_water == 1">
  162. <el-form-item label="单超时长(h):" prop="single_time" :rules="isCheckmust('单超时长')">
  163. <el-input v-model="dialysisPrescription.single_time"></el-input>
  164. </el-form-item>
  165. </el-col>
  166. <el-col :span="8" v-if="isShows('单超脱水') && dialysisPrescription.is_water == 1">
  167. <el-form-item label="单超脱水(ml):" prop="single_water" :rules="isCheckmust('单超脱水')">
  168. <el-input v-model="dialysisPrescription.single_water"></el-input>
  169. </el-form-item>
  170. </el-col>
  171. <el-col :span="8" v-if="isShows('曲线脱水')">
  172. <el-form-item label="曲线脱水(ml):" prop="drhy_water" :rules="isCheckmust('曲线脱水')">
  173. <el-input v-model="dialysisPrescription.drhy_water"></el-input>
  174. </el-form-item>
  175. </el-col>
  176. <el-col :span="8" v-if="isShows('曲线脱水时长')">
  177. <el-form-item label="曲线脱水时长(h):" prop="dry_water_hour" :rules="isCheckmust('曲线脱水时长')">
  178. <el-input v-model="dialysisPrescription.dry_water_hour"></el-input>
  179. </el-form-item>
  180. </el-col>
  181. <el-col :span="8" v-if="isShows('透析液配方')">
  182. <el-form-item label="透析液配方:" prop="dialysate_formulation" :rules="isCheckmust('透析液配方')">
  183. <!-- <el-input type="number" v-model="dialysisPrescription.dialysate_formulation"></el-input> -->
  184. <el-select
  185. v-model="dialysisPrescription.dialysate_formulation"
  186. placeholder="请选择"
  187. >
  188. <el-option :key="0" label="请选择" :value="0"></el-option>
  189. <el-option
  190. v-for="(option, index) in dialysate_formulation_options"
  191. :key="index + 'w'"
  192. :label="option.name"
  193. :value="option.id"
  194. ></el-option>
  195. </el-select>
  196. </el-form-item>
  197. </el-col>
  198. <!-- </el-row>
  199. <el-row :gutter="20"> -->
  200. <el-col :span="8" v-if="isShows('抗凝剂')">
  201. <el-form-item label="抗凝剂:" prop="anticoagulant" :rules="isCheckmust('抗凝剂')">
  202. <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择"
  203. style="width:100%;"
  204. @change="changeThisAnticoagulant">
  205. <el-option :key="0" label="请选择" :value="0"></el-option>
  206. <!-- <el-option v-if="dialysisPrescription.anticoagulant ==3" :key="3" label="低分子肝素"
  207. :value="3"></el-option> -->
  208. <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name"
  209. :key="index + 'e'"
  210. :value="item.id"></el-option>
  211. </el-select>
  212. </el-form-item>
  213. </el-col>
  214. <el-col :span="8" v-if="isShows('抗凝剂商品名称')">
  215. <el-form-item label="抗凝剂商品名称:" prop="antioxidant_commodity_name" :rules="isCheckmust('抗凝剂商品名称')">
  216. <el-input
  217. v-model="dialysisPrescription.antioxidant_commodity_name"
  218. ></el-input>
  219. </el-form-item>
  220. </el-col>
  221. <el-col :span="8" v-if="isShows('肝素钠') && dialysisPrescription.anticoagulant ==10">
  222. <el-form-item label="肝素钠(mg/h):" prop="heparin_sodium" :rules="isCheckmust('肝素钠')">
  223. <el-input
  224. v-model="dialysisPrescription.heparin_sodium"
  225. ></el-input>
  226. </el-form-item>
  227. </el-col>
  228. <el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
  229. <el-form-item label="鱼精蛋白(mg/h):" prop="nucleoprotamine" :rules="isCheckmust('鱼精蛋白')">
  230. <el-input肝素
  231. v-model="dialysisPrescription.nucleoprotamine"
  232. ></el-input肝素>
  233. </el-form-item>
  234. </el-col>
  235. <el-col :span="8" v-if="isShows('下机前推注鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
  236. <el-form-item label="下机前推注鱼精蛋白(mg):" prop="push_the_protamine" :rules="isCheckmust('下机前推注鱼精蛋白')">
  237. <el-input
  238. v-model="dialysisPrescription.push_the_protamine"
  239. ></el-input>
  240. </el-form-item>
  241. </el-col>
  242. <el-col :span="8" v-if="isShows('追加肝素量')" >
  243. <el-form-item v-if="dialysisPrescription.anticoagulant == 2"
  244. :label="'追加肝素量(mg) : '" prop="add_amount" :rules="isCheckmust('追加肝素量')">
  245. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  246. v-model="dialysisPrescription.add_amount"></el-input>
  247. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  248. v-model="dialysisPrescription.add_amount"></el-input>
  249. </el-form-item>
  250. <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 1"
  251. :label="'追加肝素量(' + anticoagulant.shouji_unit + ') : '" prop="add_amount" :rules="isCheckmust('追加肝素量')">
  252. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  253. v-model="dialysisPrescription.add_amount"></el-input>
  254. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  255. v-model="dialysisPrescription.add_amount"></el-input>
  256. </el-form-item>
  257. </el-col>
  258. <el-col :span="8" v-if="isShows('减肝素量')">
  259. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'减肝素量(mg) : '" prop="calculateAnticoagulantZL" :rules="isCheckmust('减肝素量')">
  260. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  261. v-model="dialysisPrescription.calculateAnticoagulantZL"></el-input>
  262. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  263. v-model="dialysisPrescription.reduce_amount"></el-input>
  264. </el-form-item>
  265. <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 1"
  266. :label="'减肝素量(' + anticoagulant.shouji_unit + ') : '" prop="reduce_amount" :rules="isCheckmust('减肝素量')">
  267. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  268. v-model="dialysisPrescription.reduce_amount"></el-input>
  269. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  270. v-model="dialysisPrescription.reduce_amount"></el-input>
  271. </el-form-item>
  272. </el-col>
  273. <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂') && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
  274. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 &&
  275. this.$store.getters.xt_user.template_info.template_id != 54 &&
  276. this.$store.getters.xt_user.template_info.org_id != 10340 &&
  277. this.$store.getters.xt_user.template_info.org_id != 10432 &&
  278. this.$store.getters.xt_user.template_info.org_id != 9829 &&
  279. this.$store.getters.xt_user.template_info.org_id != 10440 &&
  280. this.$store.getters.xt_user.template_info.org_id != 10469 &&
  281. this.$store.getters.xt_user.template_info.org_id != 10471 &&
  282. this.$store.getters.xt_user.template_info.org_id != 10495 &&
  283. this.$store.getters.xt_user.template_info.org_id != 10375">
  284. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 &&
  285. this.$store.getters.xt_user.template_info.template_id != 45 &&
  286. this.$store.getters.xt_user.template_info.org_id != 10346 &&
  287. this.$store.getters.xt_user.template_info.org_id != 10387 &&
  288. this.$store.getters.xt_user.template_info.org_id != 10495 &&
  289. this.$store.getters.xt_user.template_info.org_id != 10375 &&
  290. this.$store.getters.xt_user.template_info.org_id != 10551
  291. ">
  292. <el-form-item
  293. v-if='dialysisPrescription.anticoagulant != 1 &&
  294. this.$store.getters.xt_user.template_info.template_id != 21 &&
  295. this.$store.getters.xt_user.template_info.template_id != 23 &&
  296. this.$store.getters.xt_user.template_info.template_id != 38 &&
  297. this.$store.getters.xt_user.template_info.org_id != 9987 &&
  298. this.$store.getters.xt_user.template_info.org_id!=9990'
  299. :label="'首剂(' + anticoagulant.shouji_unit + ') : '" prop="anticoagulant_shouji"
  300. :rules="isCheckmust('首剂')">
  301. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  302. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  303. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  304. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  305. </el-form-item>
  306. <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant==7 &&
  307. this.$store.getters.xt_user.template_info.template_id!=6" :label="'首剂(mg):'"
  308. prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  309. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  310. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  311. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  312. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  313. </el-form-item>
  314. <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 &&
  315. dialysisPrescription.anticoagulant!=7 && this.$store.getters.xt_user.template_info.template_id!=6"
  316. :label="'首剂(iu):'" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  317. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  318. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  319. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  320. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  321. </el-form-item>
  322. <el-form-item
  323. v-if='dialysisPrescription.anticoagulant == 2 &&
  324. this.$store.getters.xt_user.template_info.template_id == 21 ||
  325. this.$store.getters.xt_user.template_info.template_id == 23 ||
  326. this.$store.getters.xt_user.template_info.template_id == 38 ||
  327. this.$store.getters.xt_user.template_info.org_id == 9987 ||
  328. this.$store.getters.xt_user.template_info.org_id == 10346 ||
  329. this.$store.getters.xt_user.template_info.org_id == 10387 ||
  330. this.$store.getters.xt_user.template_info.org_id ==10495 ||
  331. this.$store.getters.xt_user.template_info.org_id ==10375 ||
  332. this.$store.getters.xt_user.template_info.org_id ==10551
  333. '
  334. :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  335. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  336. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  337. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  338. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  339. </el-form-item>
  340. </div>
  341. <div v-else>
  342. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  343. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  344. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  345. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  346. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  347. </el-form-item>
  348. <el-form-item v-else :label="'首剂(iu) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  349. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  350. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  351. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  352. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  353. </el-form-item>
  354. </div>
  355. </div>
  356. <div v-else>
  357. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  358. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  359. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  360. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  361. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  362. </el-form-item>
  363. <el-form-item v-else :label="'首剂(' + anticoagulant.shouji_unit + ') : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  364. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  365. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  366. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  367. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  368. </el-form-item>
  369. </div>
  370. </el-col>
  371. <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
  372. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375">
  373. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 ">
  374. <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
  375. v-if="anticoagulant.weichi != -1 &&
  376. this.$store.getters.xt_user.template_info.template_id != 21 &&
  377. this.$store.getters.xt_user.template_info.template_id != 23 &&
  378. this.$store.getters.xt_user.template_info.template_id != 38 &&
  379. this.$store.getters.xt_user.template_info.org_id != 9987 &&
  380. this.$store.getters.xt_user.template_info.org_id != 54 &&
  381. this.$store.getters.xt_user.template_info.org_id != 9990 &&
  382. this.$store.getters.xt_user.template_info.org_id != 10495 &&
  383. this.$store.getters.xt_user.template_info.org_id != 10375 &&
  384. this.$store.getters.xt_user.template_info.org_id != 10551" prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
  385. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  386. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  387. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  388. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  389. </el-form-item>
  390. <el-form-item :label="'维持(mg/h) : '"
  391. v-if="anticoagulant.weichi != -1 &&
  392. this.$store.getters.xt_user.template_info.template_id == 21 ||
  393. this.$store.getters.xt_user.template_info.template_id == 23 ||
  394. this.$store.getters.xt_user.template_info.template_id == 38 ||
  395. this.$store.getters.xt_user.template_info.org_id == 9987 ||
  396. this.$store.getters.xt_user.template_info.org_id == 54 ||
  397. this.$store.getters.xt_user.template_info.org_id == 10346 ||
  398. this.$store.getters.xt_user.template_info.org_id == 10387 ||
  399. this.$store.getters.xt_user.template_info.org_id == 9990 ||
  400. this.$store.getters.xt_user.template_info.org_id == 10495 ||
  401. this.$store.getters.xt_user.template_info.org_id == 10375 ||
  402. this.$store.getters.xt_user.template_info.org_id == 10551
  403. " prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
  404. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  405. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  406. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  407. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  408. </el-form-item>
  409. </div>
  410. <div v-else>
  411. <el-form-item :label="'维持(iu/h) : '" prop="anticoagulant_weichi" :rules="isCheckmust('维持')"
  412. v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant != 2" >
  413. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  414. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  415. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  416. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  417. </el-form-item>
  418. <el-form-item :label="'维持(mg/h) : '" prop="anticoagulant_weichi" :rules="isCheckmust('维持')"
  419. v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant == 2" >
  420. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  421. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  422. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  423. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  424. </el-form-item>
  425. </div>
  426. </div>
  427. <div v-else>
  428. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'维持(mg/h) : '"
  429. prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
  430. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  431. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  432. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  433. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  434. </el-form-item>
  435. <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '" v-else
  436. prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
  437. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  438. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  439. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  440. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  441. </el-form-item>
  442. </div>
  443. </el-col>
  444. <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
  445. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10551">
  446. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 10495">
  447. <el-form-item
  448. v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10551'
  449. :label="'总量(' + anticoagulant.zongliang_unit + ') : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  450. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  451. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  452. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  453. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  454. </el-form-item>
  455. <el-form-item
  456. v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38|| this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.template_id == 54 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10551 '
  457. :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  458. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  459. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  460. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  461. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  462. </el-form-item>
  463. <el-form-item
  464. v-if='this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant == 7 && this.$store.getters.xt_user.template_info.template_id!=6'
  465. :label="'总量(mg)'" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  466. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  467. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  468. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  469. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  470. </el-form-item>
  471. <el-form-item
  472. v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7"
  473. :label="'总量(iu)'" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  474. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  475. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  476. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  477. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  478. </el-form-item>
  479. </div>
  480. <div v-else>
  481. <el-form-item
  482. v-if='dialysisPrescription.anticoagulant != 2'
  483. :label="'总量(iu) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  484. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  485. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  486. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  487. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  488. </el-form-item>
  489. <el-form-item
  490. v-if='dialysisPrescription.anticoagulant == 2'
  491. :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  492. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  493. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  494. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  495. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  496. </el-form-item>
  497. </div>
  498. </div>
  499. <div v-else>
  500. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  501. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  502. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  503. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  504. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  505. </el-form-item>
  506. <el-form-item v-else :label="'总量(' + anticoagulant.zongliang_unit + ') : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  507. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  508. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  509. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  510. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  511. </el-form-item>
  512. </div>
  513. </el-col>
  514. <el-col :span="8"
  515. v-if="isShows('开药数量')">
  516. <el-form-item label="开药数量(支):" prop="prescribing_number" :rules="isCheckmust('开药数量')">
  517. <el-input type="number" v-model="dialysisPrescription.prescribing_number"></el-input>
  518. </el-form-item>
  519. </el-col>
  520. <el-col :span="8"
  521. v-if="isShows('置换量') && ((this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 46 || this.$store.getters.xt_user.template_info.template_id == 53)&& this.$store.getters.xt_user.template_info.org_id!=10441)"
  522. v-show="zhiShow">
  523. <el-form-item label="置换量(ml):" prop="replacement_total" :rules="isCheckmust('置换量')">
  524. <el-input
  525. type="number"
  526. v-model="dialysisPrescription.replacement_total"
  527. ></el-input>
  528. </el-form-item>
  529. </el-col>
  530. <el-col :span="8"
  531. v-if="isShows('置换量') && (this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 46 && this.$store.getters.xt_user.template_info.template_id != 53) || this.$store.getters.xt_user.template_info.org_id == 10441"
  532. v-show="zhiShow">
  533. <el-form-item label="置换量(L):" prop="replacement_total" :rules="isCheckmust('置换量')">
  534. <el-input
  535. type="number"
  536. v-model="dialysisPrescription.replacement_total"
  537. ></el-input>
  538. </el-form-item>
  539. </el-col>
  540. <el-col :span="8" v-if="isShows('置换速度') && this.$store.getters.xt_user.template_info.org_id != 10375" v-show="totalShow">
  541. <el-form-item label="置换速度(ml/min)" prop="displace_speed" :rules="isCheckmust('置换速度')">
  542. <el-input
  543. v-model="dialysisPrescription.displace_speed"
  544. ></el-input>
  545. </el-form-item>
  546. </el-col>
  547. <el-col :span="8" v-if="isShows('置换速度') && this.$store.getters.xt_user.template_info.org_id == 10375" v-show="totalShow">
  548. <el-form-item label="置换速度(L/h)" prop="displace_speed" :rules="isCheckmust('置换速度')">
  549. <el-input
  550. v-model="dialysisPrescription.displace_speed"
  551. ></el-input>
  552. </el-form-item>
  553. </el-col>
  554. <el-col
  555. :span="8"
  556. v-if="isShows('钙名称')"
  557. >
  558. <el-form-item label="钙名称 : " prop="anticoagulant_gaimingcheng" :rules="isCheckmust('钙名称')">
  559. <el-input
  560. v-model="dialysisPrescription.anticoagulant_gaimingcheng"
  561. placeholder="钙名称"
  562. ></el-input>
  563. </el-form-item>
  564. </el-col>
  565. <el-col
  566. :span="8"
  567. v-if="isShows('钙剂量')"
  568. ></el-col>
  569. <el-col :span="8" v-if="isShows('钙剂量')" >
  570. <el-form-item label="钙剂量(ml) : " prop="anticoagulant_gaijiliang" :rules="isCheckmust('钙剂量')">
  571. <el-input
  572. type="number"
  573. v-model="dialysisPrescription.anticoagulant_gaijiliang"
  574. placeholder="钙剂量"
  575. ></el-input>
  576. </el-form-item>
  577. </el-col>
  578. <el-col :span="8" v-if="isShows('钾')">
  579. <el-form-item label="钾(mmol/L): " prop="kalium" :rules="isCheckmust('钾')">
  580. <el-input
  581. type="number"
  582. v-model="dialysisPrescription.kalium"
  583. ></el-input>
  584. </el-form-item>
  585. </el-col>
  586. <el-col :span="8" v-if="isShows('钠')"><!-- :prop="isName('钠')" prop="sodium" isCheckmust [{required: true, message: '请输入钠', trigger: 'blur'}]-->
  587. <el-form-item label="钠(mmol/L):" prop="sodium" :rules="isNas('钠')">
  588. <el-input
  589. type="number"
  590. v-model="dialysisPrescription.sodium"
  591. ></el-input>
  592. </el-form-item>
  593. </el-col>
  594. <el-col :span="8" v-if="isShows('钙')">
  595. <el-form-item label="钙(mmol/L):" prop="calcium" :rules="isCheckmust('钙')">
  596. <el-input
  597. type="number"
  598. v-model="dialysisPrescription.calcium"
  599. ></el-input>
  600. </el-form-item>
  601. </el-col>
  602. <el-col :span="8" v-if="isShows('碳酸氢盐')">
  603. <el-form-item label="碳酸氢盐(mmol/L):" prop="bicarbonate" :rules="isCheckmust('碳酸氢盐')">
  604. <el-input
  605. type="number"
  606. v-model="dialysisPrescription.bicarbonate"
  607. ></el-input>
  608. </el-form-item>
  609. </el-col>
  610. <!-- <el-col :span="8" v-if="isShows('葡萄糖')">
  611. <el-form-item label="葡萄糖(mmol/L):">
  612. <el-input
  613. type="number"
  614. v-model="dialysisPrescription.glucose"
  615. ></el-input>
  616. </el-form-item>28
  617. </el-col> -->
  618. <el-col :span="8" v-if="isShows('透析液流量')">
  619. <el-form-item label="透析液流量(ml/min):" prop="dialysate_flow" :rules="isCheckmust('透析液流量')">
  620. <el-input
  621. type="number"
  622. v-model="dialysisPrescription.dialysate_flow"
  623. ></el-input>
  624. </el-form-item>
  625. </el-col>
  626. <el-col :span="8" v-if="isShows('透析液温度')">
  627. <el-form-item label="透析液温度(°C):" prop="dialysate_temperature" :rules="isCheckmust('透析液温度')">
  628. <el-input
  629. type="number"
  630. v-model="dialysisPrescription.dialysate_temperature"
  631. ></el-input>
  632. </el-form-item>
  633. </el-col>
  634. <el-col :span="8" v-if="isShows('电导率')">
  635. <el-form-item label="电导率(mS/cm): " prop="conductivity" :rules="isCheckmust('电导率')">
  636. <el-input
  637. type="number"
  638. v-model="dialysisPrescription.conductivity"
  639. ></el-input>
  640. </el-form-item>
  641. </el-col>
  642. <el-col :span="8" v-if="isShows('透析器/灌流器')" >
  643. <el-form-item label="透析器/灌流器" prop="dialyzer_perfusion_apparatus" :rules="isCheckmust('透析器/灌流器')">
  644. <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"
  645. @focus="showInnerDialog('5')"></el-input>
  646. </el-form-item>
  647. </el-col>
  648. <el-col :span="8" v-if="isShows('透析器')">
  649. <el-form-item label="透析器:" prop="dialysis_dialyszers" :rules="isCheckmust('透析器')">
  650. <el-input v-model="dialysisPrescription.dialysis_dialyszers"
  651. @focus="showInnerDialog('7')"></el-input>
  652. </el-form-item>
  653. </el-col>
  654. <el-col :span="8" v-if="isShows('灌流器')">
  655. <el-form-item label="灌流器:" prop="dialysis_irrigation" :rules="isCheckmust('灌流器')">
  656. <el-input v-model="dialysisPrescription.dialysis_irrigation"
  657. @focus="showInnerDialog('8')"></el-input>
  658. </el-form-item>
  659. </el-col>
  660. <el-col :span="8" v-if="isShows('滤过器')">
  661. <el-form-item label="滤过器:" prop="dialysis_strainer" :rules="isCheckmust('滤过器')">
  662. <el-input v-model="dialysisPrescription.dialysis_strainer"
  663. @focus="showInnerDialog('12')"></el-input>
  664. </el-form-item>
  665. </el-col>
  666. <el-col :span="8" v-if="isShows('血浆分离器')">
  667. <el-form-item label="血浆分离器:" prop="plasma_separator" :rules="isCheckmust('血浆分离器')">
  668. <el-input v-model="dialysisPrescription.plasma_separator"
  669. @focus="showInnerDialog('9')"></el-input>
  670. </el-form-item>
  671. </el-col>
  672. <el-col :span="8" v-if="isShows('胆红素吸附柱')">
  673. <el-form-item label="胆红素吸附柱:" prop="bilirubin_adsorption_column" :rules="isCheckmust('胆红素吸附柱')">
  674. <el-input v-model="dialysisPrescription.bilirubin_adsorption_column"
  675. @focus="showInnerDialog('10')"></el-input>
  676. </el-form-item>
  677. </el-col>
  678. <el-col :span="8" v-if="isShows('体液过多症状')">
  679. <el-form-item label="体液过多症状:" prop="body_fluid" :rules="isCheckmust('体液过多症状')">
  680. <el-select
  681. v-model="dialysisPrescription.body_fluid"
  682. placeholder="请选择"
  683. style="width:100%;"
  684. >
  685. <el-option :key="0" label="请选择" :value="0"></el-option>
  686. <el-option
  687. v-for="(item, index) in body_fluid_option"
  688. :label="item.name"
  689. :key="index + 't'"
  690. :value="item.id"
  691. ></el-option>
  692. </el-select>
  693. </el-form-item>
  694. </el-col>
  695. <el-col :span="8" v-if="isShows('体液过多其他症状')">
  696. <el-form-item label="体液过多其他症状" prop="body_fluid_other" :rules="isCheckmust('体液过多其他症状')">
  697. <el-input
  698. v-model="dialysisPrescription.body_fluid_other"
  699. ></el-input>
  700. </el-form-item>
  701. </el-col>
  702. <el-col :span="8" v-if="isShows('透析前使用特殊药物')" >
  703. <el-form-item label="透析前使用特殊药物" prop="special_medicine" :rules="isCheckmust('透析前使用特殊药物')">
  704. <el-select
  705. v-model="dialysisPrescription.special_medicine"
  706. placeholder="请选择"
  707. style="width:100%;"
  708. >
  709. <el-option :key="0" label="请选择" :value="0"></el-option>
  710. <el-option
  711. v-for="(item, index) in special_medicine_option"
  712. :label="item.name"
  713. :key="index + 'y'"
  714. :value="item.id"
  715. ></el-option>
  716. </el-select>
  717. </el-form-item>
  718. </el-col>
  719. <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')" >
  720. <el-form-item label="透析前使用其他特殊药物" prop="special_medicine_other" :rules="isCheckmust('透析前使用其他特殊药物')">
  721. <el-input
  722. v-model="dialysisPrescription.special_medicine_other"
  723. ></el-input>
  724. </el-form-item>
  725. </el-col>
  726. <el-col :span="8">
  727. <el-form-item
  728. label="置换液:"
  729. v-if="isShows('置换液')"
  730. v-show="huShow"
  731. prop="displace_liqui_part"
  732. :rules="isCheckmust('置换液')"
  733. >
  734. <el-select
  735. v-model="dialysisPrescription.displace_liqui_part"
  736. placeholder="请选择"
  737. >
  738. <el-option :key="0" label="请选择" :value="0"></el-option>
  739. <el-option
  740. v-for="(option, index) in displace_liqui_part_option"
  741. :key="index + 'u'"
  742. :label="option.name"
  743. :value="option.id"
  744. ></el-option>
  745. </el-select>
  746. </el-form-item>
  747. </el-col>
  748. <el-col :span="8"
  749. v-if="isShows('置换液总量') && (((this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id ==24 || this.$store.getters.xt_user.template_info.template_id ==53) && this.$store.getters.xt_user.template_info.org_id != 10249) && this.$store.getters.xt_user.template_info.org_id != 10441)"
  750. v-show="totalShow">
  751. <el-form-item label="置换液总量(ml)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')">
  752. <el-input
  753. v-model="dialysisPrescription.displace_liqui_value"
  754. ></el-input>
  755. </el-form-item>
  756. </el-col>
  757. <el-col :span="8"
  758. v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id !=24 && this.$store.getters.xt_user.template_info.template_id !=53) || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10441 "
  759. v-show="totalShow">
  760. <!-- v-show="totalShow" -->
  761. <el-form-item label="置换液总量(L)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')">
  762. <el-input
  763. v-model="dialysisPrescription.displace_liqui_value"
  764. ></el-input>
  765. </el-form-item>
  766. </el-col>
  767. <el-col :span="8" v-if="isShows('目标KT/V')">
  768. <el-form-item label="目标KT/V" prop="target_ktv" :rules="isCheckmust('目标KT/V')">
  769. <el-input v-model="dialysisPrescription.target_ktv"></el-input>
  770. </el-form-item>
  771. </el-col>
  772. <el-col :span="8" v-if="isShows('血管通路')">
  773. <el-form-item label="血管通路:" prop="blood_access" :rules="isCheckmust('血管通路')">
  774. <el-select
  775. v-model="dialysisPrescription.blood_access"
  776. placeholder="请选择"
  777. >
  778. <el-option :key="0" label="请选择" :value="0"></el-option>
  779. <el-option
  780. v-for="(option, index) in blood_access_option"
  781. :key="index + 'i'"
  782. :label="option.name"
  783. :value="option.id"
  784. ></el-option>
  785. </el-select>
  786. </el-form-item>
  787. </el-col>
  788. <el-col :span="8" v-if="isShows('抗凝提前停止')">
  789. <el-form-item label="抗凝提前停止(h): " prop="anticoagulant_stop_time_hour" :rules="isCheckmust('抗凝提前停止')">
  790. <el-input
  791. type="number"
  792. v-model="dialysisPrescription.anticoagulant_stop_time_hour"
  793. ></el-input>
  794. </el-form-item>
  795. </el-col>
  796. <el-col :span="8" v-if="isShows('抗凝提前停止')">
  797. <el-form-item label="抗凝提前停止(min): " prop="anticoagulant_stop_time_min" :rules="isCheckmust('抗凝提前停止')">
  798. <el-input
  799. type="number"
  800. v-model="dialysisPrescription.anticoagulant_stop_time_min"
  801. ></el-input>
  802. </el-form-item>
  803. </el-col>
  804. <el-col :span="8" v-if="isShows('抽血')">
  805. <el-form-item label="抽血:" prop="blood" :rules="isCheckmust('抽血')">
  806. <el-input v-model="dialysisPrescription.blood" @focus="showInnerDialog('6')" ></el-input>
  807. </el-form-item>
  808. </el-col>
  809. <el-col :span="8" v-if="isShows('病情')">
  810. <el-form-item label="病情:" prop="illness" :rules="isCheckmust('病情')">
  811. <el-select v-model="dialysisPrescription.illness" placeholder="请选择">
  812. <el-option :key="0" label="请选择" :value="0"></el-option>
  813. <el-option
  814. v-for="(item, index) in illnessList "
  815. :key="index"
  816. :label="item.name"
  817. :value="item.id"
  818. ></el-option>
  819. </el-select>
  820. </el-form-item>
  821. </el-col>
  822. <el-col :span="8" v-if="isShows('葡萄糖')">
  823. <el-form-item label="葡萄糖:" prop="amylaceum" :rules="isCheckmust('葡萄糖')">
  824. <el-input v-model="dialysisPrescription.amylaceum"></el-input>
  825. </el-form-item>
  826. </el-col>
  827. <el-col :span="8" v-if="isShows('吸氧')">
  828. <el-form-item label="吸氧:" prop="oxygen_uptake" :rules="isCheckmust('吸氧')">
  829. <el-select v-model="dialysisPrescription.oxygen_uptake" placeholder="请选择"
  830. @change="changeOxygenList">
  831. <el-option :key="0" label="请选择" :value="0"></el-option>
  832. <el-option
  833. v-for="(item, index) in oxygenList "
  834. :key="index"
  835. :label="item.name"
  836. :value="item.id"
  837. ></el-option>
  838. </el-select>
  839. </el-form-item>
  840. </el-col>
  841. <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
  842. <el-form-item label="吸氧流量(L/分):" prop="oxygen_flow" :rules="isCheckmust('吸氧流量')">
  843. <el-input v-model="dialysisPrescription.oxygen_flow"></el-input>
  844. </el-form-item>
  845. </el-col>
  846. <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
  847. <el-form-item label="吸氧时长(h):" prop="oxygen_time" :rules="isCheckmust('吸氧时长')">
  848. <el-input v-model="dialysisPrescription.oxygen_time"></el-input>
  849. </el-form-item>
  850. </el-col>
  851. <el-col :span="8" v-if="isShows('透析管路')">
  852. <el-form-item label="透析管路:" prop="hemodialysis_pipelines" :rules="isCheckmust('透析管路')">
  853. <el-select
  854. v-model="dialysisPrescription.hemodialysis_pipelines"
  855. placeholder="请选择"
  856. style="width:100%;"
  857. >
  858. <el-option :key="0" label="请选择" :value="0"></el-option>
  859. <el-option
  860. v-for="(item, index) in hemodialysisPipelinesOptions"
  861. :label="item.name"
  862. :key="index + 't'"
  863. :value="item.name"
  864. ></el-option>
  865. </el-select>
  866. </el-form-item>
  867. </el-col>
  868. <el-col :span="8" v-if="isShows('透析管路支数')">
  869. <el-form-item label="透析管路支数" prop="hemodialysis_pipelines_count" :rules="isCheckmust('透析管路支数')">
  870. <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.hemodialysis_pipelines_count"
  871. ></el-input>
  872. </el-form-item>
  873. </el-col>
  874. <el-col :span="8" v-if="isShows('穿刺针')">
  875. <el-form-item label="穿刺针" prop="puncture_needle" :rules="isCheckmust('穿刺针')">
  876. <el-input v-model="dialysisPrescription.puncture_needle"
  877. @focus="showInnerDialog('11')"></el-input>
  878. </el-form-item>
  879. </el-col>
  880. <el-col :span="8" v-if="isShows('穿刺针支数')" >
  881. <el-form-item label="穿刺针支数" prop="puncture_needle_count" :rules="isCheckmust('穿刺针支数')">
  882. <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.puncture_needle_count"
  883. ></el-input>
  884. </el-form-item>
  885. </el-col>
  886. <el-col :span="8" v-if="isShows('促红素')">
  887. <el-form-item label="促红素:" prop="epo" :rules="isCheckmust('促红素')">
  888. <el-select
  889. v-model="dialysisPrescription.epo"
  890. placeholder="请选择"
  891. style="width:100%;"
  892. >
  893. <el-option :key="0" label="请选择" :value="0"></el-option>
  894. <el-option
  895. v-for="(item, index) in epoOptions"
  896. :label="item.name"
  897. :key="index + 't'"
  898. :value="item.name"
  899. ></el-option>
  900. </el-select>
  901. </el-form-item>
  902. </el-col>
  903. <el-col :span="8" v-if="isShows('促红素支数')">
  904. <el-form-item label="促红素支数" prop="epo_count" :rules="isCheckmust('促红素支数')">
  905. <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.epo_count"></el-input>
  906. </el-form-item>
  907. </el-col>
  908. <el-col :span="8" v-if="isShows('最大超滤率')">
  909. <el-form-item label="最大超滤率(ml/h)" prop="max_ultrafiltration_rate" :rules="isCheckmust('最大超滤率')">
  910. <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.max_ultrafiltration_rate"></el-input>
  911. </el-form-item>
  912. </el-col>
  913. <el-col :span="8" v-if="isShows('处方医生')" >
  914. <el-form-item label="处方医生" prop="admin_user_id" :rules="isCheckmust('处方医生')">
  915. <el-select v-model="dialysisPrescription.admin_user_id" placeholder="请选择" style="width:100%;">
  916. <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
  917. </el-select>
  918. </el-form-item>
  919. </el-col>
  920. </el-row>
  921. <el-row :gutter="20">
  922. <el-col :span="24" v-if="isShows('透析备注') && (dialysisPrescription.mode_id == 2 || dialysisPrescription.mode_id == 3 || dialysisPrescription.mode_id == 4)">
  923. <el-form-item label="透析备注:" prop="value" :rules="isCheckmust('透析备注')">
  924. <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
  925. <el-option
  926. v-for="(item, index) in educationList"
  927. :label="item.text"
  928. :value="item.value"
  929. :key="index"
  930. ></el-option>
  931. </el-select>
  932. </el-form-item>
  933. </el-col>
  934. </el-row>
  935. <el-row :gutter="20">
  936. <el-col v-if="isShows('透析备注') && (dialysisPrescription.mode_id == 2 || dialysisPrescription.mode_id == 3 || dialysisPrescription.mode_id == 4)">
  937. <el-form-item prop="dialysis_remark" :rules="isCheckmust('透析备注')">
  938. <el-input
  939. type="textarea"
  940. v-model="dialysisPrescription.dialysis_remark"
  941. :rows="4"
  942. ></el-input>
  943. </el-form-item>
  944. </el-col>
  945. </el-row>
  946. <el-row :gutter="20">
  947. <el-col :span="8" v-if="isShows('处方钠')">
  948. <el-form-item label="处方钠: " prop="prescription_sodium" :rules="isCheckmust('处方钠')">
  949. <el-input
  950. v-model="dialysisPrescription.prescription_sodium"
  951. :rows="5"
  952. ></el-input>
  953. </el-form-item>
  954. </el-col>
  955. <el-col :span="8" v-if="isShows('开始钠')">
  956. <el-form-item label="开始钠: " prop="start_sodium" :rules="isCheckmust('开始钠')">
  957. <el-input
  958. v-model="dialysisPrescription.start_sodium"
  959. :rows="5"
  960. ></el-input>
  961. </el-form-item>
  962. </el-col>
  963. <el-col :span="8" v-if="isShows('钠曲线')">
  964. <el-form-item label="钠曲线: " prop="sodium_curve" :rules="isCheckmust('钠曲线')">
  965. <el-input
  966. v-model="dialysisPrescription.sodium_curve"
  967. :rows="5"
  968. ></el-input>
  969. </el-form-item>
  970. </el-col>
  971. </el-row>
  972. <el-row>
  973. <el-col :span="8" v-if="isShows('透析液流速')">
  974. <el-form-item label="透析液流速(ml/h):" prop="dialysis_fluid_flow" :rules="isCheckmust('透析液流速')">
  975. <el-input
  976. v-model="dialysisPrescription.dialysis_fluid_flow"
  977. :rows="5"
  978. ></el-input>
  979. </el-form-item>
  980. </el-col>
  981. <el-col :span="8" v-if="isShows('碳酸氢钠流速')">
  982. <el-form-item label="碳酸氢钠流速(ml/h):" prop="sodium_bicarbonate_flow" :rules="isCheckmust('碳酸氢钠流速')">
  983. <el-input
  984. v-model="dialysisPrescription.sodium_bicarbonate_flow"
  985. :rows="5"
  986. ></el-input>
  987. </el-form-item>
  988. </el-col>
  989. </el-row>
  990. <el-row>
  991. <el-col :span="8">
  992. <el-form-item label="Ns冲洗量(ml):" :prop="isName('冲洗量')" v-if="isShows('冲洗量') && dialysisPrescription.anticoagulant == 1">
  993. <el-input v-model="dialysisPrescription.warsh_count"></el-input>
  994. </el-form-item>
  995. </el-col>
  996. <el-col :span="8">
  997. <el-form-item label="q(h):" :prop="isName('冲洗时间')" v-if="isShows('冲洗时间') && dialysisPrescription.anticoagulant == 1">
  998. <el-input v-model="dialysisPrescription.washing_time"></el-input>
  999. </el-form-item>
  1000. </el-col>
  1001. </el-row>
  1002. <el-row :gutter="20">
  1003. <el-col :span="24" v-if="isShows('病情处理')">
  1004. <el-form-item label="病情处理: " prop="treatment_remark" :rules="isCheckmust('病情处理')">
  1005. <el-input
  1006. type="textarea"
  1007. v-model="dialysisPrescription.treatment_remark"
  1008. :rows="5"
  1009. ></el-input>
  1010. </el-form-item>
  1011. </el-col>
  1012. </el-row>
  1013. <el-row :gutter="20">
  1014. <el-col :span="24">
  1015. <el-form-item label="备注: " prop="remark" :rules="isCheckmust('备注')">
  1016. <el-input
  1017. type="textarea"
  1018. v-model="dialysisPrescription.remark"
  1019. :rows="5"
  1020. ></el-input>
  1021. </el-form-item>
  1022. </el-col>
  1023. </el-row>
  1024. </el-form>
  1025. <span slot="footer" class="dialog-footer">
  1026. <el-button @click="handleCancle">取 消</el-button>
  1027. <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
  1028. <el-button type="primary" @click="handleCommit('dialysisPrescription')" :loading="isLoading">保 存</el-button>
  1029. <el-button type="primary" @click="handleSolution('dialysisPrescription')" :loading="isLoading"
  1030. >保存为长期处方</el-button
  1031. >
  1032. </span>
  1033. </el-dialog>
  1034. <!-- 点击保存长期 -->
  1035. <el-dialog
  1036. title="长期医嘱推送"
  1037. :visible.sync="isShowRemindAdvice"
  1038. width="1010px"
  1039. :modal-append-to-body="false"
  1040. :append-to-body="true"
  1041. >
  1042. <div style="display:flex;align-items:center;">
  1043. <span style="font-weight: bold;color: #409eff;width:80px;">开始时间:</span>
  1044. <el-date-picker
  1045. type="datetime"
  1046. format="yyyy-MM-dd HH:mm"
  1047. value-format="yyyy-MM-dd HH:mm"
  1048. placeholder="选择时间"
  1049. v-model="start_time"
  1050. ></el-date-picker>
  1051. <!--<span style="display: inline-block;border: 1px solid #ccc;padding: 10px 20px;border-radius: 5px;" @click="changeStartTime">{{ advice_start_time }}</span>-->
  1052. </div>
  1053. <el-checkbox-group v-model="checkedCities">
  1054. <el-checkbox
  1055. style="display: flex;align-items: center"
  1056. v-for="(advice, index) in targetAdvices"
  1057. :label="advice.id"
  1058. :key="index+'q'"
  1059. :value="advice.id"
  1060. :name="advice.id"
  1061. >
  1062. <div style="padding-top: 10px;padding-left: 10px">
  1063. 开嘱医生&nbsp;{{ getDoctorName(advice.advice_doctor) }}
  1064. </div>
  1065. <br/>
  1066. <div style="padding-left: 10px">
  1067. 开嘱时间&nbsp;{{ getTime(advice.created_time) }}
  1068. </div>
  1069. <br/>
  1070. <div style="padding-bottom: 10px;padding-left: 10px">
  1071. 医嘱内容&nbsp;{{ getContent(advice) }}
  1072. </div>
  1073. <div
  1074. style="padding-bottom: 10px;padding-left: 10px"
  1075. v-if="advice.frequency_type == 1"
  1076. >
  1077. 推送频率 每次必推
  1078. </div>
  1079. <div
  1080. style="padding-bottom: 10px;padding-left: 10px"
  1081. v-if="advice.frequency_type == 2"
  1082. >
  1083. 推送频率&nbsp;{{ advice.day_count }}天/次
  1084. </div>
  1085. <div
  1086. style="padding-bottom: 10px;padding-left: 10px"
  1087. v-if="advice.frequency_type == 3"
  1088. >
  1089. 推送频率&nbsp;每周{{ advice.week_day }}
  1090. </div>
  1091. </el-checkbox>
  1092. </el-checkbox-group>
  1093. <span slot="footer" class="dialog-footer">
  1094. <el-button @click="handleAdviceCancle">取 消</el-button>
  1095. <el-button type="primary" @click="handleAdviceCommit" :loading="isLoading">保 存</el-button>
  1096. </span>
  1097. </el-dialog>
  1098. <el-dialog
  1099. :title="patient.name"
  1100. :visible.sync="msgtip_visibility"
  1101. :close-on-click-modal="false"
  1102. :close-on-press-escape="false"
  1103. :show-close="false"
  1104. width="30%"
  1105. >
  1106. <div class="newLine">
  1107. <span>本次透析日期</span>
  1108. <span>{{ dialysis_date }}</span>
  1109. </div>
  1110. <div class="newLine">
  1111. <span>透前称重(kg)</span>
  1112. <span>{{ getBeforeWeight(predialysis) }}</span>
  1113. </div>
  1114. <div class="newLine">
  1115. <span>干体重(kg)</span>
  1116. <span>{{ getDryWeight() }}</span>
  1117. </div>
  1118. <div class="newLine">
  1119. <span>衣物重(kg)</span>
  1120. <span>{{ predialysis.additional_weight }}</span>
  1121. </div>
  1122. <div class="newLine">
  1123. <span>体重增加(kg)</span>
  1124. <span>{{ add_weight }}</span>
  1125. </div>
  1126. <div class="newLine">
  1127. <span>透后称重(kg)</span>
  1128. <span>{{ getAfterWeight(record) }}</span>
  1129. </div>
  1130. <div class="newLine">
  1131. <span>体重减少(kg)</span>
  1132. <span>{{ record.weight_loss }}</span>
  1133. </div>
  1134. <div class="newLine">
  1135. <span>上次透后称重(kg)</span>
  1136. <span>{{ getLastAfterWeight(last_record) }}</span>
  1137. </div>
  1138. <span slot="footer" class="dialog-footer">
  1139. <el-button @click="cancleMsg()">取 消</el-button>
  1140. <el-button type="primary" @click="cancleMsg()">确 定</el-button>
  1141. </span>
  1142. </el-dialog>
  1143. <multi-select-box
  1144. :propsForm="InnerDialogProps"
  1145. v-on:dialog-comfirm="innerDialogComfirm"
  1146. v-on:dialog-cancle="innerDialogCancle"
  1147. ></multi-select-box>
  1148. <el-dialog
  1149. title="提示"
  1150. :visible.sync="infoDialogVisible"
  1151. width="30%">
  1152. <span>
  1153. <el-form>
  1154. <el-row>
  1155. <span>申请日期:</span>
  1156. <span>
  1157. <el-date-picker
  1158. type="datetime"
  1159. format="yyyy-MM-dd HH:mm"
  1160. value-format="yyyy-MM-dd HH:mm"
  1161. placeholder="选择时间"
  1162. v-model="selected_date"
  1163. ></el-date-picker>
  1164. </span>
  1165. </el-row>
  1166. <el-row>
  1167. <span>备注:</span>
  1168. <span>
  1169. <el-input v-model="remark" style="width:200px"></el-input>
  1170. </span>
  1171. </el-row>
  1172. </el-form>
  1173. </span>
  1174. <span slot="footer" class="dialog-footer">
  1175. <el-button @click="infoDialogVisible = false">取 消</el-button>
  1176. <el-button type="primary" @click="saveInformation">确 定</el-button>
  1177. </span>
  1178. </el-dialog>
  1179. </div>
  1180. </template>
  1181. <script>
  1182. import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution,saveInformation } from '@/api/dialysis'
  1183. import { getDataConfig } from '@/utils/data'
  1184. import { calculateAnticoagulantZL, uParseTime,replacementFlow } from '@/utils/tools'
  1185. import store from '@/store'
  1186. import MsgTip from './MsgTip'
  1187. import request from '@/utils/request'
  1188. import multiSelectBox from './MultiSelectBox'
  1189. const moment = require('moment')
  1190. export default {
  1191. name: 'dialysisPrescriptionDialog',
  1192. components: { MsgTip, multiSelectBox },
  1193. props: {
  1194. mode_id: {
  1195. type: Number
  1196. },
  1197. schedual: {
  1198. type: Object
  1199. },
  1200. is_open: {
  1201. type: Number,
  1202. default: () => {
  1203. return 0
  1204. }
  1205. },
  1206. waitUploadAdvices: {
  1207. type: Array,
  1208. default: () => {
  1209. return []
  1210. }
  1211. },
  1212. targetAdvices: {
  1213. type: Array,
  1214. default: () => {
  1215. return []
  1216. }
  1217. },
  1218. admin_users: {
  1219. type: Array,
  1220. default: () => {
  1221. return []
  1222. }
  1223. },
  1224. niprocart_info: {
  1225. type: Array,
  1226. default: () => {
  1227. return []
  1228. }
  1229. },
  1230. jms_info: {
  1231. type: Array,
  1232. default: () => {
  1233. return []
  1234. }
  1235. },
  1236. fistula_needle_set_info: {
  1237. type: Array,
  1238. default: () => {
  1239. return []
  1240. }
  1241. },
  1242. fistula_needle_set_16_info: {
  1243. type: Array,
  1244. default: () => {
  1245. return []
  1246. }
  1247. },
  1248. hemoperfusion_info: {
  1249. type: Array,
  1250. default: () => {
  1251. return []
  1252. }
  1253. },
  1254. dialyser_sterilised_info: {
  1255. type: Array,
  1256. default: () => {
  1257. return []
  1258. }
  1259. },
  1260. filtryzer_info: {
  1261. type: Array,
  1262. default: () => {
  1263. return []
  1264. }
  1265. },
  1266. dialyzers_info: {
  1267. type: Array,
  1268. default: () => {
  1269. return []
  1270. }
  1271. },
  1272. injector_info: {
  1273. type: Array,
  1274. default: () => {
  1275. return []
  1276. }
  1277. },
  1278. bloodlines_info: {
  1279. type: Array,
  1280. default: () => {
  1281. return []
  1282. }
  1283. },
  1284. tubingHemodialysis_info: {
  1285. type: Array,
  1286. default: () => {
  1287. return []
  1288. }
  1289. },
  1290. safe_package_info: {
  1291. type: Array,
  1292. default: () => {
  1293. return []
  1294. }
  1295. },
  1296. aliquid_info: {
  1297. type: Array,
  1298. default: () => {
  1299. return []
  1300. }
  1301. },
  1302. config: {
  1303. type: Object,
  1304. default: () => {
  1305. return { id: 0 }
  1306. }
  1307. },
  1308. prescription: {
  1309. // 透析处方
  1310. type: Object,
  1311. default: () => {
  1312. return { id: 0 }
  1313. }
  1314. },
  1315. solution: {
  1316. // 长期处方
  1317. type: Object,
  1318. default: () => {
  1319. return { id: 0 }
  1320. }
  1321. },
  1322. dialysis_order: {
  1323. // 透析记录
  1324. type: Object,
  1325. default: () => {
  1326. return { id: 0 }
  1327. }
  1328. },
  1329. patient: {
  1330. // 患者信息
  1331. type: Object,
  1332. default: () => {
  1333. return { id: 0 }
  1334. }
  1335. },
  1336. devices: {
  1337. type: Array,
  1338. default: function() {
  1339. return new Array()
  1340. }
  1341. },
  1342. predialysis: {
  1343. type: Object,
  1344. default: () => {
  1345. return { id: 0 }
  1346. }
  1347. },
  1348. last_predialysis: {
  1349. type: Object,
  1350. default: () => {
  1351. return { id: 0 }
  1352. }
  1353. },
  1354. record: {
  1355. type: Object,
  1356. default: () => {
  1357. return { id: 0 }
  1358. }
  1359. },
  1360. last_record: {
  1361. type: Object,
  1362. default: () => {
  1363. return { id: 0 }
  1364. }
  1365. },
  1366. dry_weight: {
  1367. type: Object,
  1368. default: () => {
  1369. return { id: 0 }
  1370. }
  1371. },
  1372. last_prescription: {
  1373. type: Object,
  1374. default: () => {
  1375. return { id: 0 }
  1376. }
  1377. },
  1378. scheudle_mode: Number,
  1379. stockType: {
  1380. type: Array,
  1381. default: () => {
  1382. return []
  1383. }
  1384. },
  1385. lastAssessment: {
  1386. type: Object,
  1387. default: () => {
  1388. return { id: 0 }
  1389. }
  1390. },
  1391. admins: {
  1392. type: Array
  1393. },
  1394. },
  1395. computed: {
  1396. dialysis_date: function() {
  1397. if (this.$route.query.date) {
  1398. return uParseTime(this.$route.query.date, '{y}/{m}/{d}')
  1399. } else {
  1400. return this.record_date
  1401. }
  1402. }
  1403. },
  1404. data() {
  1405. return {
  1406. InnerDialogProps: {
  1407. values: [],
  1408. visibility: false,
  1409. isShowTextArea: true,
  1410. customContent: '',
  1411. titles: '',
  1412. type: '' // 不同弹框类型,用来匹配数据
  1413. },
  1414. advice_start_time: '',
  1415. showTxt: '',
  1416. start_time: '',
  1417. hasPermission: true,
  1418. zhiShow: false,
  1419. totalShow: false,
  1420. huShow: false,
  1421. showName: '',
  1422. isShowRemindAdvice: false,
  1423. checkedCities: [],
  1424. isVisibility: false,
  1425. isShowTime: false,
  1426. isClose: false,
  1427. isShow: false,
  1428. record_date: '',
  1429. time: '',
  1430. treatment_mode: [],
  1431. timeValue: '',
  1432. deviceList: [],
  1433. replacement_ways: [],
  1434. anticoagulantsConfit: {},
  1435. dialysate_formulation_options: [],
  1436. add_weight: 0,
  1437. body_fluid_option: [],
  1438. special_medicine_option: [],
  1439. displace_liqui_part_option: [],
  1440. blood_access_option: [],
  1441. is_pre: 0,
  1442. msgtip_visibility: false,
  1443. startVisibility:false,
  1444. dialysisPrescription: {
  1445. replacement_total: '',
  1446. mode_id: '',
  1447. dialysis_duration: '',
  1448. dialysis_duration_hour: '',
  1449. dialysis_duration_minute: '0',
  1450. mode_name: '',
  1451. dialyzer: '',
  1452. perfusion_apparatus: '',
  1453. blood_flow_volume: '',
  1454. dewater_amount: '',
  1455. displace_liqui: '',
  1456. replacement_way: '',
  1457. anticoagulant: '',
  1458. anticoagulant_shouji: '',
  1459. anticoagulant_weichi: '',
  1460. anticoagulant_zongliang: '',
  1461. anticoagulant_gaimingcheng: '',
  1462. anticoagulant_gaijiliang: '',
  1463. kalium: '',
  1464. sodium: '',
  1465. calcium: '',
  1466. bicarbonate: '',
  1467. glucose: '',
  1468. dry_weight: '',
  1469. dialysate_flow: '',
  1470. dialysate_temperature: '',
  1471. target_ultrafiltration: '',
  1472. dialysate_formulation: '',
  1473. conductivity: '',
  1474. doctor: '',
  1475. remark: '',
  1476. dialyzer_perfusion_apparatus: '',
  1477. body_fluid: '',
  1478. body_fluid_other: '',
  1479. special_medicine: '',
  1480. special_medicine_other: '',
  1481. displace_liqui_part: '',
  1482. displace_liqui_value: '',
  1483. ultrafiltration: '',
  1484. blood_access: '',
  1485. niprocart: '',
  1486. jms: '',
  1487. fistula_needle_set: '',
  1488. fistula_needle_set_16: '',
  1489. hemoperfusion: '',
  1490. dialyser_sterilised: '',
  1491. filtryzer: '',
  1492. target_ktv: '',
  1493. dialyzers: '',
  1494. injector: '',
  1495. bloodlines: '',
  1496. tubing_hemodialysis: '',
  1497. package: '',
  1498. a_liquid: '',
  1499. no_anticoagulant_shouji: '0',
  1500. no_anticoagulant_weichi: '0',
  1501. no_anticoagulant_zongliang: '0',
  1502. creater: 0,
  1503. pre_impulse: 0, //预冲量
  1504. anticoagulant_stop_time_hour: '',
  1505. anticoagulant_stop_time_min: '',
  1506. push_the_protamine: '',//下机前推注鱼精蛋白
  1507. heparin_sodium: '', //肝素钠
  1508. nucleoprotamine: '',//鱼精蛋白
  1509. no_heparin_remarks: '',
  1510. blood: '',
  1511. dialysis_dialyszers: '',
  1512. dialysis_irrigation: '',
  1513. irrigation: '',
  1514. antioxidant_commodity_name: '',
  1515. displace_speed: '',
  1516. illness: '',
  1517. amylaceum: '',
  1518. single_time: '',
  1519. single_water: '',
  1520. replacement_flow: '',
  1521. plasma_separator: '',
  1522. bilirubin_adsorption_column: '',
  1523. oxygen_uptake: '',
  1524. oxygen_flow: '',
  1525. oxygen_time: '',
  1526. hemodialysis_pipelines: '',
  1527. hemodialysis_pipelines_count: '',
  1528. puncture_needle: '',
  1529. puncture_needle_count: '',
  1530. epo: '',
  1531. epo_count: '',
  1532. max_ultrafiltration_rate:'',
  1533. hemodialysisPipelinesOptions: [],
  1534. punctureNeedleOptions: [],
  1535. epoOptions: [],
  1536. impulse:0,
  1537. admin_user_id:"",
  1538. drhy_water:"",
  1539. is_water:0,
  1540. dry_water_hour:"",
  1541. water_machine:"否",
  1542. add_amount:"",
  1543. reduce_amount:"",
  1544. dialysis_remark:"",
  1545. prescribing_number:"",
  1546. treatment_remark:"",
  1547. prescription_sodium:"",
  1548. start_sodium:"",
  1549. sodium_curve:"",
  1550. dialysis_fluid_flow:"",
  1551. sodium_bicarbonate_flow:"",
  1552. prescription_water:"",
  1553. dialysis_strainer:"",
  1554. chaptalization:"",
  1555. warsh_count:"",
  1556. washing_time:"",
  1557. },
  1558. anticoagulant: {
  1559. id: 0,
  1560. name: '',
  1561. type: 1,
  1562. shouji: 1,
  1563. weichi: 1,
  1564. zongliang: 1,
  1565. gaimingcheng: -1,
  1566. gaijiliang: -1,
  1567. shouji_unit: 'mg',
  1568. weichi_unit: 'mg/h',
  1569. zongliang_unit: 'mg',
  1570. gaimingcheng_unit: '',
  1571. gaijiliang_unit: ''
  1572. },
  1573. doctorAdvices: [],
  1574. dialyzerPerfusionApparatus: [],
  1575. bloods: [],
  1576. irrigations: [],
  1577. dialyzers: [],
  1578. dialysisStrainerList:[],
  1579. illnessList: [],
  1580. plasmaSeparatorList: [],
  1581. bilirubinAdsorptionColumn: [],
  1582. oxygenList: [
  1583. { id: 1, name: '需' },
  1584. { id: 2, name: '无' }
  1585. ],
  1586. oxygenShow: false,
  1587. hemodialysisPipelinesOptions: [],
  1588. epoOptions: [],
  1589. isLoading: false,
  1590. adminRoles:[{id:0,name:"请选择"}],
  1591. waterList:[
  1592. {id:0,name:"请选择"},
  1593. {id:1,name:"是"},
  1594. {id:2,name:"否"}
  1595. ],
  1596. machineList:[
  1597. {id:1,name:"是"},
  1598. {id:2,name:"否"}
  1599. ],
  1600. zongliang:"",
  1601. educationList:[],
  1602. value:"",
  1603. infoDialogVisible:false,
  1604. selected_date:"",
  1605. remark:"",
  1606. }
  1607. },
  1608. methods: {
  1609. changeOxygenList(val) {
  1610. if (val == 1) {
  1611. this.oxygenShow = true
  1612. }
  1613. if (val == 2) {
  1614. this.oxygenShow = false
  1615. this.prescription.oxygen_flow = ''
  1616. this.prescription.oxygen_time = ''
  1617. }
  1618. },
  1619. changeTime: function(val) {
  1620. this.advice_start_time = val
  1621. },
  1622. showInnerDialog: function(val) {
  1623. this.InnerDialogProps.visibility = true
  1624. switch (val) {
  1625. case '5': // 透析器/灌流器
  1626. this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
  1627. this.InnerDialogProps.titles = '透析器/灌流器'
  1628. this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
  1629. this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
  1630. this.InnerDialogProps.isShowTextArea = false
  1631. break
  1632. case '6': // 透析器/灌流器
  1633. this.InnerDialogProps.values = this.bloods
  1634. this.InnerDialogProps.titles = '抽血'
  1635. this.InnerDialogProps.type = 'blood'
  1636. this.InnerDialogProps.selected = this.dialysisPrescription.blood
  1637. this.InnerDialogProps.isShowTextArea = false
  1638. case '7': // 透析器
  1639. for (let i = 0; i < this.dialyzers.length; i++) {
  1640. this.dialyzers[i].name = this.dialyzers[i].specification_name
  1641. }
  1642. this.InnerDialogProps.values = this.dialyzers
  1643. this.InnerDialogProps.titles = '透析器'
  1644. this.InnerDialogProps.type = 'dialyzers'
  1645. this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_dialyszers
  1646. this.InnerDialogProps.isShowTextArea = false
  1647. break
  1648. case '8':
  1649. for (let i = 0; i < this.irrigations.length; i++) {
  1650. this.irrigations[i].name = this.irrigations[i].specification_name
  1651. }
  1652. this.InnerDialogProps.values = this.irrigations
  1653. this.InnerDialogProps.titles = '灌流器'
  1654. this.InnerDialogProps.type = 'irrigations'
  1655. this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
  1656. this.InnerDialogProps.isShowTextArea = false
  1657. break
  1658. case '9': // 血浆灌流器
  1659. this.InnerDialogProps.values = this.plasmaSeparatorList
  1660. this.InnerDialogProps.titles = '血浆灌流器'
  1661. this.InnerDialogProps.type = 'plasma_separator'
  1662. this.InnerDialogProps.selected = this.dialysisPrescription.plasma_separator
  1663. this.InnerDialogProps.isShowTextArea = false
  1664. break
  1665. mu
  1666. case '10': // 胆红素吸附柱
  1667. this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
  1668. this.InnerDialogProps.titles = '胆红素吸附柱'
  1669. this.InnerDialogProps.type = 'bilirubin_adsorption_column'
  1670. this.InnerDialogProps.selected = this.dialysisPrescription.bilirubin_adsorption_column
  1671. this.InnerDialogProps.isShowTextArea = false
  1672. break
  1673. case '11': //穿刺针
  1674. this.InnerDialogProps.values = this.punctureNeedleOptions
  1675. this.InnerDialogProps.titles = '穿刺针'
  1676. this.InnerDialogProps.type = 'puncture_needle'
  1677. this.InnerDialogProps.selected = this.dialysisPrescription.puncture_needle
  1678. this.InnerDialogProps.isShowTextArea = false
  1679. break
  1680. case '12':
  1681. for (let i = 0; i < this.dialysisStrainerList.length; i++) {
  1682. this.dialysisStrainerList[i].name = this.dialysisStrainerList[i].specification_name
  1683. }
  1684. this.InnerDialogProps.values = this.dialysisStrainerList
  1685. this.InnerDialogProps.titles = '滤过器'
  1686. this.InnerDialogProps.type = 'dialysis_strainer'
  1687. this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_strainer
  1688. this.InnerDialogProps.isShowTextArea = false
  1689. break
  1690. }
  1691. },
  1692. innerDialogComfirm: function(val) {
  1693. this.InnerDialogProps.visibility = false
  1694. switch (val.type) {
  1695. case 'dialyzer_perfusion_apparatus':
  1696. var newArr = []
  1697. if(this.dialyzerPerfusionApparatus!=null && this.dialyzerPerfusionApparatus.length>0){
  1698. for(let i=0;i<this.dialyzerPerfusionApparatus.length;i++){
  1699. for(let j=0;j<val.value.length;j++){
  1700. if(this.dialyzerPerfusionApparatus[i].name == val.value[j]){
  1701. newArr.push(val.value[j])
  1702. }
  1703. }
  1704. }
  1705. }
  1706. if(newArr!=null && newArr.length>0){
  1707. this.dialysisPrescription.dialyzer_perfusion_apparatus = newArr.join(',')
  1708. }else{
  1709. this.dialysisPrescription.dialyzer_perfusion_apparatus = ""
  1710. }
  1711. break
  1712. case 'blood':
  1713. this.dialysisPrescription.blood = val.value.join(',')
  1714. break
  1715. case 'dialyzers':
  1716. var newArr = []
  1717. if(this.dialyzers!=null && this.dialyzers.length >0){
  1718. for(let i=0;i<this.dialyzers.length;i++){
  1719. for(let j=0;j<val.value.length;j++){
  1720. if(this.dialyzers[i].specification_name == val.value[j]){
  1721. newArr.push(val.value[j])
  1722. }
  1723. }
  1724. }
  1725. }
  1726. if(newArr!=null && newArr.length >0){
  1727. this.dialysisPrescription.dialysis_dialyszers = newArr.join(',')
  1728. }else{
  1729. this.dialysisPrescription.dialysis_dialyszers = ""
  1730. }
  1731. break
  1732. case 'irrigations':
  1733. var newArr = []
  1734. if(this.irrigations!=null && this.irrigations.length >0){
  1735. for(let i=0;i<this.irrigations.length;i++){
  1736. for(let j=0;j<val.value.length;j++){
  1737. if(this.irrigations[i].specification_name == val.value[j]){
  1738. newArr.push(val.value[j])
  1739. }
  1740. }
  1741. }
  1742. }
  1743. if(newArr!=null && newArr.length>0){
  1744. this.dialysisPrescription.dialysis_irrigation = newArr.join(',')
  1745. }else{
  1746. this.dialysisPrescription.dialysis_irrigation = ""
  1747. }
  1748. break
  1749. case 'plasma_separator':
  1750. this.dialysisPrescription.plasma_separator = val.value.join(',')
  1751. break
  1752. case 'bilirubin_adsorption_column':
  1753. this.dialysisPrescription.bilirubin_adsorption_column = val.value.join(',')
  1754. break
  1755. case 'puncture_needle':
  1756. this.dialysisPrescription.puncture_needle = val.value.join(',')
  1757. break
  1758. case 'dialysis_strainer':
  1759. this.dialysisPrescription.dialysis_strainer = val.value.join(',')
  1760. break
  1761. }
  1762. },
  1763. innerDialogCancle: function() {
  1764. this.InnerDialogProps.visibility = false
  1765. },
  1766. getDryWeight() {
  1767. if (this.dry_weight != null && this.dry_weight.id > 0) {
  1768. return this.dry_weight.dry_weight
  1769. } else {
  1770. if (this.last_predialysis != null && this.last_predialysis.id > 0) {
  1771. return this.last_predialysis.dry_weight
  1772. } else {
  1773. return ''
  1774. }
  1775. }
  1776. },
  1777. getLastAfterWeight(record) {
  1778. if (record != null && record.id > 0) {
  1779. if (record.weight_after > 0) {
  1780. let additional_weight = 0
  1781. if (this.predialysis.additional_weight != undefined) {
  1782. additional_weight = this.predialysis.additional_weight
  1783. }
  1784. return parseFloat(record.weight_after - additional_weight).toFixed(1)
  1785. } else {
  1786. return ''
  1787. }
  1788. }
  1789. },
  1790. getBeforeWeight(predialysis) {
  1791. if (predialysis.id > 0) {
  1792. if (predialysis.weight_before > 0) {
  1793. return parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(1)
  1794. } else {
  1795. return ''
  1796. }
  1797. }
  1798. },
  1799. getAfterWeight(record) {
  1800. if (record.id > 0) {
  1801. if (record.weight_after > 0) {
  1802. return parseFloat(record.weight_after - this.predialysis.additional_weight).toFixed(1)
  1803. } else {
  1804. return ''
  1805. }
  1806. }
  1807. },
  1808. setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis, system_prescribe) {
  1809. this.treatment_mode = this.$store.getters.treatment_mode
  1810. // console.log("99999",this.treatment_mode)
  1811. this.perfusion_apparatus = getDataConfig(
  1812. 'hemodialysis',
  1813. 'perfusion_apparatus'
  1814. )
  1815. this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
  1816. this.dialysate_formulation_options = getDataConfig(
  1817. 'hemodialysis',
  1818. 'dialysate_formulation'
  1819. )
  1820. // this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  1821. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  1822. console.log("抗凝剂",this.anticoagulantsConfit)
  1823. // for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
  1824. // console.log('anticoagulantsConfitOne', anticoagulantsConfitOne[i].name)
  1825. // }
  1826. // var anticoagulantsConfit = getDataConfig('hemodialysis', 'anticoagulant')
  1827. // const arr = []
  1828. // anticoagulantsConfit.map((item, index) => {
  1829. // const objChild = { ...item }
  1830. // arr.push(objChild)
  1831. // })
  1832. // var arrthree = {}
  1833. // arrthree = { ...arr }
  1834. // console.log('arrthree', arrthree)
  1835. // const arrFour = []
  1836. // Object.keys(anticoagulantsConfitOne).map((item, index) => {
  1837. // arrFour.push(anticoagulantsConfitOne[item])
  1838. // // if (index != 2) {
  1839. // // arrFour.push(anticoagulantsConfitOne[item])
  1840. // // }
  1841. // })
  1842. // console.log("arrFour0-0000000000000wo",arrFour)
  1843. // this.anticoagulantsConfit = arrFour
  1844. this.dialysisList = this.devices
  1845. this.body_fluid_option = this.$store.getters.body_fluid
  1846. this.special_medicine_option = this.$store.getters.special_medicine
  1847. this.displace_liqui_part_option = this.$store.getters.displace_liqui
  1848. this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
  1849. this.punctureNeedleOptions = getDataConfig('hemodialysis', 'puncture_needle')
  1850. this.epoOptions = getDataConfig('hemodialysis', 'epo')
  1851. // this.blood_access_option = this.$store.getters.blood_access_internal_fistula;
  1852. this.blood_access_option = getDataConfig(
  1853. 'hemodialysis',
  1854. 'vascular_access_desc'
  1855. )
  1856. // console.log('血管通路', this.blood_access_option)
  1857. this.dialyzerPerfusionApparatus = getDataConfig(
  1858. 'hemodialysis',
  1859. 'dialyzer_perfusion_apparatus'
  1860. )
  1861. // console.log('3333333', this.dialyzerPerfusionApparatus)
  1862. this.bloods = getDataConfig(
  1863. 'hemodialysis',
  1864. 'blood'
  1865. )
  1866. // dialyzerPerfusionApparatus.map(item => {
  1867. // item.name = item.name.toUpperCase()
  1868. // })
  1869. // //去重
  1870. // var arr = this.unique(dialyzerPerfusionApparatus)
  1871. // this.dialyzerPerfusionApparatus = arr
  1872. // console.log('灌流器', arr)
  1873. if (this.$route.query && this.$route.query.date) {
  1874. var date = this.$route.query && this.$route.query.date
  1875. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  1876. } else {
  1877. var date = schedual.schedule_date
  1878. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  1879. }
  1880. if (this.prescription != null && typeof this.prescription.id !== 'undefined' && this.prescription.id > 0) {
  1881. for (const key in this.prescription) {
  1882. this.dialysisPrescription[key] = this.prescription[key]
  1883. }
  1884. } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id > 0) {
  1885. for (const key in this.solution) {
  1886. if (key != 'target_ultrafiltration') {
  1887. this.dialysisPrescription[key] = this.solution[key]
  1888. }
  1889. }
  1890. } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
  1891. for (const key in lastDialysisPrescribe) {
  1892. if (key != 'target_ultrafiltration') {
  1893. this.dialysisPrescription[key] = lastDialysisPrescribe[key]
  1894. }
  1895. }
  1896. } else if (system_prescribe != null && typeof system_prescribe.id !== 'undefined' && system_prescribe.id > 0) {
  1897. for (const key in system_prescribe) {
  1898. if (key != 'target_ultrafiltration') {
  1899. this.dialysisPrescription[key] = system_prescribe[key]
  1900. }
  1901. }
  1902. } else {
  1903. if (schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
  1904. this.zhiShow = true
  1905. this.huShow = true
  1906. this.totalShow = true
  1907. } else {
  1908. this.zhiShow = false
  1909. this.huShow = false
  1910. this.totalShow = false
  1911. }
  1912. // this.dialysisPrescription.mode_id = schedual.mode_id
  1913. }
  1914. var thismode = parseInt(this.dialysisPrescription.anticoagulant)
  1915. if (isNaN(thismode) || thismode <= 0) {
  1916. return false
  1917. }
  1918. if (
  1919. typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
  1920. this.anticoagulantsConfit[thismode] == null
  1921. ) {
  1922. return false
  1923. }
  1924. this.anticoagulant = this.$store.getters.anticoagulants_confit[thismode]
  1925. },
  1926. menuMsgTip: function() {
  1927. this.msgtip_visibility = false
  1928. this.isVisibility = true
  1929. },
  1930. handleAdviceCommit() {
  1931. let results = []
  1932. for (let i = 0; i < this.targetAdvices.length; i++) {
  1933. for (let a = 0; a < this.checkedCities.length; a++) {
  1934. if (this.targetAdvices[i].id == this.checkedCities[a]) {
  1935. results.push(this.targetAdvices[i])
  1936. }
  1937. }
  1938. }
  1939. var obj5 = {}
  1940. results = results.reduce((cur, next) => {
  1941. obj5[next.id] ? '' : (obj5[next.id] = true && cur.push(next))
  1942. return cur
  1943. }, [])
  1944. var date = new Date()
  1945. var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  1946. var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
  1947. if (results.length > 0) {
  1948. if(!this.isLoading){
  1949. if (this.is_pre == 1) {
  1950. if (this.patient.id <= 0) {
  1951. this.$message.error('没有选择患者')
  1952. this.loading = false
  1953. return
  1954. }
  1955. var arr = this.dialysisPrescription
  1956. const ParamsQuery = arr
  1957. ParamsQuery['patient'] = this.patient.id
  1958. ParamsQuery['record_date'] = this.record_date
  1959. ParamsQuery['patient_id'] = this.$route.query.patient_id
  1960. if(this.$route.query.patient_id ==undefined){
  1961. ParamsQuery['patient_id'] = this.patient.id
  1962. }
  1963. if (this.prescription.creater <= 0) {
  1964. ParamsQuery['mode'] = '1'
  1965. } else {
  1966. ParamsQuery['mode'] = '2'
  1967. if (
  1968. this.$store.getters.xt_user.user.id !=
  1969. this.dialysisPrescription.creater
  1970. ) {
  1971. ParamsQuery['mode'] = '3'
  1972. }
  1973. }
  1974. this.isLoading = true
  1975. console.log("ParamsQuery233232322323322332232323",ParamsQuery)
  1976. postPrescription(ParamsQuery).then(response => {
  1977. if (response.data.state == 0) {
  1978. this.$message.error(response.data.msg)
  1979. if(response.data.code == 600000008){
  1980. this.infoDialogVisible = true
  1981. }
  1982. this.isLoading = false
  1983. return false
  1984. } else {
  1985. this.$notify({
  1986. title: '成功',
  1987. message: '提交成功',
  1988. type: 'success',
  1989. duration: 2000
  1990. })
  1991. var date = new Date()
  1992. const params = {
  1993. advices: results,
  1994. advice_date: this.start_time.split(' ')[0],
  1995. advice_doctor: results[0].advice_doctor,
  1996. advice_type: results[0].advice_type,
  1997. parent_id: this.patient_id,
  1998. start_time: this.start_time,
  1999. remark: ''
  2000. }
  2001. var patient_id = 0
  2002. if(this.$route.query.patient_id == undefined){
  2003. patient_id = this.patient.id
  2004. }else{
  2005. patient_id = this.$route.query.patient_id
  2006. }
  2007. CreateGroupAdvice(patient_id, 0, params).then(
  2008. rs => {
  2009. var resp = rs.data
  2010. if (resp.state == 1) {
  2011. this.doctorAdvices = resp.data.advices
  2012. this.$emit('advice')
  2013. this.isLoading = false
  2014. } else {
  2015. this.isLoading = false
  2016. if(resp.code == 600000008){
  2017. this.infoDialogVisible = true
  2018. }
  2019. }
  2020. }
  2021. )
  2022. const prescription_resp = response.data.data.prescription
  2023. var prescription = this.prescription
  2024. for (var index in prescription_resp) {
  2025. // prescription[index] = prescription_resp[index];
  2026. this.$set(prescription, index, prescription_resp[index])
  2027. }
  2028. this.hide()
  2029. }
  2030. })
  2031. } else if (this.is_pre == 2) {
  2032. if (this.patient.id <= 0) {
  2033. this.$message.error('没有选择患者')
  2034. this.loading = false
  2035. return
  2036. }
  2037. var arr = this.dialysisPrescription
  2038. const ParamsQuery = arr
  2039. ParamsQuery['patient'] = this.patient.id
  2040. ParamsQuery['record_date'] = this.record_date
  2041. ParamsQuery['mode'] = 1
  2042. postSoulution(ParamsQuery).then(response => {
  2043. if (response.data.state == 0) {
  2044. this.$message.error(response.data.msg)
  2045. if(response.data.code == 600000008){
  2046. this.infoDialogVisible = true
  2047. }
  2048. this.isLoading = false
  2049. return false
  2050. } else {
  2051. this.$notify({
  2052. title: '成功',
  2053. message: '提交成功',
  2054. type: 'success',
  2055. duration: 2000
  2056. })
  2057. // console.log(hour + ':' + minute)
  2058. var date = new Date()
  2059. var hour =
  2060. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2061. var minute =
  2062. date.getMinutes() < 10
  2063. ? '0' + date.getMinutes()
  2064. : date.getMinutes()
  2065. const params = {
  2066. advices: results,
  2067. advice_date: this.start_time.split(' ')[0],
  2068. advice_doctor: results[0].advice_doctor,
  2069. advice_type: results[0].advice_type,
  2070. parent_id: this.patient_id,
  2071. start_time: this.start_time,
  2072. remark: ''
  2073. }
  2074. var patient_id = 0
  2075. if(this.$route.query.patient_id == undefined){
  2076. patient_id = this.patient.id
  2077. }else{
  2078. patient_id = this.$route.query.patient_id
  2079. }
  2080. CreateGroupAdvice(patient_id, 0, params).then(
  2081. rs => {
  2082. var resp = rs.data
  2083. if (resp.state == 1) {
  2084. // this.doctorAdvices = resp.data.advices
  2085. this.$emit('advice')
  2086. this.isLoading = false
  2087. } else {
  2088. this.isLoading = false
  2089. if(resp.code == 600000008){
  2090. this.infoDialogVisible = true
  2091. }
  2092. }
  2093. }
  2094. )
  2095. const prescription_resp = response.data.data.prescription
  2096. const solution_resp = response.data.data.solution
  2097. var prescription = this.prescription
  2098. var solution = this.solution
  2099. for (var index in prescription_resp) {
  2100. // prescription[index] = prescription_resp[index];
  2101. this.$set(prescription, index, prescription_resp[index])
  2102. }
  2103. for (var index in solution_resp) {
  2104. // solution[index] = solution_resp[index];
  2105. this.$set(solution, index, solution_resp[index])
  2106. }
  2107. this.hide()
  2108. }
  2109. })
  2110. }
  2111. }
  2112. } else {
  2113. if (this.is_pre == 1) {
  2114. if (this.patient.id <= 0) {
  2115. this.$message.error('没有选择患者')
  2116. this.loading = false
  2117. return
  2118. }
  2119. var arr = this.dialysisPrescription
  2120. const ParamsQuery = arr
  2121. // console.log('医嘱推送4', ParamsQuery)
  2122. ParamsQuery['patient'] = this.patient.id
  2123. ParamsQuery['record_date'] = this.record_date
  2124. // console.log(this.prescription)
  2125. let mode = ''
  2126. if (this.prescription.creater <= 0) {
  2127. mode = 1
  2128. } else {
  2129. mode = 2
  2130. }
  2131. ParamsQuery['mode'] = mode
  2132. console.log("paramsquery",ParamsQuery)
  2133. postPrescription(ParamsQuery).then(response => {
  2134. if (response.data.state == 0) {
  2135. this.$message.error(response.data.msg)
  2136. if(response.data.code == 600000008){
  2137. this.infoDialogVisible = true
  2138. }
  2139. return false
  2140. } else {
  2141. this.$notify({
  2142. title: '成功',
  2143. message: '提交成功',
  2144. type: 'success',
  2145. duration: 2000
  2146. })
  2147. const prescription_resp = response.data.data.prescription
  2148. var prescription = this.prescription
  2149. for (var index in prescription_resp) {
  2150. // prescription[index] = prescription_resp[index];
  2151. this.$set(prescription, index, prescription_resp[index])
  2152. }
  2153. this.hide()
  2154. }
  2155. })
  2156. } else if (this.is_pre == 2) {
  2157. if (this.patient.id <= 0) {
  2158. this.$message.error('没有选择患者')
  2159. this.loading = false
  2160. return
  2161. }
  2162. var arr = this.dialysisPrescription
  2163. const ParamsQuery = arr
  2164. ParamsQuery['patient'] = this.patient.id
  2165. ParamsQuery['record_date'] = this.record_date
  2166. ParamsQuery['mode'] = 1
  2167. postSoulution(ParamsQuery).then(response => {
  2168. if (response.data.state == 0) {
  2169. this.$message.error(response.data.msg)
  2170. if(response.data.code == 600000008){
  2171. this.infoDialogVisible = true
  2172. }
  2173. return false
  2174. } else {
  2175. this.$notify({
  2176. title: '成功',
  2177. message: '提交成功',
  2178. type: 'success',
  2179. duration: 2000
  2180. })
  2181. const prescription_resp = response.data.data.prescription
  2182. const solution_resp = response.data.data.solution
  2183. var prescription = this.prescription
  2184. var solution = this.solution
  2185. for (var index in prescription_resp) {
  2186. // prescription[index] = prescription_resp[index];
  2187. this.$set(prescription, index, prescription_resp[index])
  2188. }
  2189. for (var index in solution_resp) {
  2190. // solution[index] = solution_resp[index];
  2191. this.$set(solution, index, solution_resp[index])
  2192. }
  2193. this.hide()
  2194. }
  2195. })
  2196. }
  2197. }
  2198. this.isShowRemindAdvice = false
  2199. this.isVisibility = true
  2200. },
  2201. handleAdviceCancle() {
  2202. this.isShowRemindAdvice = false
  2203. this.isVisibility = true
  2204. },
  2205. getTime(val) {
  2206. return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
  2207. },
  2208. showOne(prescription,admins){
  2209. console.log("prescription",prescription)
  2210. if(prescription!=null && prescription.id == 0){
  2211. console.log("开始啊",admins)
  2212. this.dialysisPrescription.admin_user_id = this.$store.getters.xt_user.user.id
  2213. }else{
  2214. this.dialysisPrescription.admin_user_id = prescription.admin_user_id
  2215. }
  2216. this.adminRoles = []
  2217. if(admins.length > 0 ){
  2218. for(let i=0;i<admins.length;i++){
  2219. this.adminRoles.push(admins[i])
  2220. }
  2221. }
  2222. console.log("admin_user_+id2332323223332", this.$store.getters.xt_user.user.id)
  2223. },
  2224. show(pre, schedual, last, his_is_open,is_advice_open,admins) {
  2225. console.log("pres",pre)
  2226. console.log("schedual",schedual)
  2227. if (pre != undefined) {
  2228. this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
  2229. if (pre.oxygen_uptake == 1) {
  2230. this.oxygenShow = true
  2231. }
  2232. if (pre.oxygen_uptake == 2) {
  2233. this.oxygenShow = false
  2234. this.prescription.oxygen_flow = ''
  2235. this.prescription.oxygen_time = ''
  2236. }
  2237. }
  2238. if (his_is_open == 1) {
  2239. this.is_open = 0
  2240. }
  2241. if(is_advice_open == 1){
  2242. this.is_open = 1
  2243. }
  2244. if(this.$store.getters.xt_user.org.id == 10101){
  2245. if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
  2246. var date = new Date(this.predialysis.created_time * 1000)
  2247. var year = date.getFullYear()
  2248. var month = date.getMonth() + 1
  2249. var day = date.getDate()
  2250. var hours = date.getHours()
  2251. var minites = date.getMinutes()
  2252. if (month < 10) {
  2253. month = '0' + month
  2254. }
  2255. if (day < 10) {
  2256. day = '0' + day
  2257. }
  2258. if (hours < 10) {
  2259. hours = '0' + hours
  2260. }
  2261. if (minites < 10) {
  2262. minites = '0' + minites
  2263. }
  2264. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2265. } else {
  2266. var date = new Date()
  2267. var year = date.getFullYear()
  2268. var month = date.getMonth() + 1
  2269. var day = date.getDate()
  2270. var hours = date.getHours()
  2271. var minites = date.getMinutes()
  2272. if (month < 10) {
  2273. month = '0' + month
  2274. }
  2275. if (day < 10) {
  2276. day = '0' + day
  2277. }
  2278. if (hours < 10) {
  2279. hours = '0' + hours
  2280. }
  2281. if (minites < 10) {
  2282. minites = '0' + minites
  2283. }
  2284. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2285. }
  2286. }else{
  2287. var date = new Date()
  2288. var year = date.getFullYear()
  2289. var month = date.getMonth() + 1
  2290. var day = date.getDate()
  2291. var hours = date.getHours()
  2292. var minites = date.getMinutes()
  2293. if (month < 10) {
  2294. month = '0' + month
  2295. }
  2296. if (day < 10) {
  2297. day = '0' + day
  2298. }
  2299. if (hours < 10) {
  2300. hours = '0' + hours
  2301. }
  2302. if (minites < 10) {
  2303. minites = '0' + minites
  2304. }
  2305. if (this.$store.getters.xt_user.org.id == 10016 || this.$store.getters.xt_user.org.id == 10121 || this.$store.getters.xt_user.org.id == 4 || this.$store.getters.xt_user.org.id == 10013 || this.$store.getters.xt_user.org.id == 10014 || this.$store.getters.xt_user.org.id == 9970) {
  2306. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2307. }else if(this.$store.getters.xt_user.org.id == 9990 || this.$store.getters.xt_user.org.id==10432){
  2308. if (schedual.schedule_type == 1) {
  2309. this.start_time = year + '-' + month + '-' + day + ' ' + '06:00'
  2310. } else if (schedual.schedule_type == 2) {
  2311. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2312. } else if (schedual.schedule_type == 3) {
  2313. this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
  2314. }
  2315. }else if(this.$store.getters.xt_user.org.id == 9671 ||this.$store.getters.xt_user.org.id == 10340){
  2316. if (schedual.schedule_type == 1) {
  2317. this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
  2318. } else if (schedual.schedule_type == 2) {
  2319. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2320. } else if (schedual.schedule_type == 3) {
  2321. this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
  2322. }
  2323. }else if(this.$store.getters.xt_user.org.id == 10447){
  2324. if (schedual.schedule_type == 1) {
  2325. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2326. } else if (schedual.schedule_type == 2) {
  2327. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2328. } else if (schedual.schedule_type == 3) {
  2329. this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
  2330. }
  2331. }else if(this.$store.getters.xt_user.org.id == 10440){
  2332. if (schedual.schedule_type == 1) {
  2333. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2334. } else if (schedual.schedule_type == 2) {
  2335. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2336. } else if (schedual.schedule_type == 3) {
  2337. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2338. }
  2339. }else if(this.$store.getters.xt_user.org.id == 9829){
  2340. if (schedual.schedule_type == 1) {
  2341. this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
  2342. } else if (schedual.schedule_type == 2) {
  2343. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2344. } else if (schedual.schedule_type == 3) {
  2345. this.start_time = year + '-' + month + '-' + day + ' ' + '15:30'
  2346. }
  2347. }else if(this.$store.getters.xt_user.org.id == 10469){
  2348. if (schedual.schedule_type == 1) {
  2349. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2350. } else if (schedual.schedule_type == 2) {
  2351. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2352. } else if (schedual.schedule_type == 3) {
  2353. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2354. }
  2355. }else if(this.$store.getters.xt_user.org.id == 10471){
  2356. if (schedual.schedule_type == 1) {
  2357. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2358. } else if (schedual.schedule_type == 2) {
  2359. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2360. } else if (schedual.schedule_type == 3) {
  2361. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2362. }
  2363. }else if(this.$store.getters.xt_user.org.id == 10517){
  2364. if (schedual.schedule_type == 1) {
  2365. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2366. } else if (schedual.schedule_type == 2) {
  2367. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2368. } else if (schedual.schedule_type == 3) {
  2369. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2370. }
  2371. }else if(this.$store.getters.xt_user.org.id == 10234){
  2372. if (schedual.schedule_type == 1) {
  2373. this.start_time = year + '-' + month + '-' + day + ' ' + '7:30'
  2374. } else if (schedual.schedule_type == 2) {
  2375. this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
  2376. } else if (schedual.schedule_type == 3) {
  2377. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2378. }
  2379. }else if (this.$store.getters.xt_user.org.id == 10551){
  2380. var date = new Date()
  2381. var year = date.getFullYear()
  2382. var month = date.getMonth() + 1
  2383. var day = date.getDate()
  2384. var hours = date.getHours()
  2385. var minites = date.getMinutes()
  2386. if (month < 10) {
  2387. month = '0' + month
  2388. }
  2389. if (day < 10) {
  2390. day = '0' + day
  2391. }
  2392. if (hours < 10) {
  2393. hours = '0' + hours
  2394. }
  2395. if (minites < 10) {
  2396. minites = '0' + minites
  2397. }
  2398. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2399. } else {
  2400. if (schedual.schedule_type == 1) {
  2401. this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
  2402. } else if (schedual.schedule_type == 2) {
  2403. this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
  2404. } else if (schedual.schedule_type == 3) {
  2405. this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
  2406. }
  2407. }
  2408. }
  2409. if (pre.anticoagulant == 3) {
  2410. this.dialysisPrescription.anticoagulant = '低分子肝素'
  2411. }
  2412. // 入口
  2413. var pre = pre
  2414. this.dialysisPrescription.mode_id = this.$route.query.mode_id ? this.$route.query.mode_id : this.mode_id
  2415. if (pre.id > 0) {
  2416. this.dialysisPrescription.mode_id = pre.mode_id
  2417. this.dialysisPrescription.water_machine = pre.water_machine
  2418. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  2419. }
  2420. // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
  2421. // console.log('this.schedual', schedual.mode_id)
  2422. if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
  2423. this.zhiShow = true
  2424. this.huShow = true
  2425. this.totalShow = true
  2426. } else if (
  2427. pre.mode_id == 1 ||
  2428. pre.mode_id == 3 ||
  2429. pre.mode_id == 4 ||
  2430. pre.mode_id == 6 ||
  2431. pre.mode_id == 7 ||
  2432. pre.mode_id == 8 ||
  2433. pre.mode_id == 9 ||
  2434. pre.mode_id == 10 ||
  2435. pre.mode_id == 11 ||
  2436. pre.mode_id == 13 ||
  2437. pre.mode_id == 14 ||
  2438. pre.mode_id == 19
  2439. ) {
  2440. this.zhiShow = false
  2441. this.huShow = false
  2442. this.totalShow = false
  2443. }
  2444. this.pre = pre
  2445. // console.log("pre1", pre);
  2446. this.getPermission()
  2447. let last_weight_after = 0
  2448. let weight_before = 0
  2449. if (this.last_record == null) {
  2450. last_weight_after = 0
  2451. } else {
  2452. last_weight_after = this.last_record.weight_after
  2453. }
  2454. console.log("last2323232323232332wode",this.predialysis)
  2455. if(this.predialysis!=null && this.predialysis.id == 0){
  2456. if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340 ){
  2457. this.dialysisPrescription.sodium = 138
  2458. this.dialysisPrescription.bicarbonate = 31.1
  2459. this.dialysisPrescription.dialysate_flow = 500
  2460. this.dialysisPrescription.dialysate_temperature = 36.5
  2461. this.dialysisPrescription.prescribing_number = 1
  2462. }
  2463. if(this.$store.getters.xt_user.org.id == 10447){
  2464. this.dialysisPrescription.dialysate_flow = 500
  2465. }
  2466. }
  2467. if (this.predialysis == null || this.predialysis.id == 0) {
  2468. if (last != null) {
  2469. this.dialysisPrescription.niprocart = last.niprocart
  2470. this.dialysisPrescription.jms = last.jms
  2471. this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
  2472. this.dialysisPrescription.fistula_needle_set_16 = last.fistula_needle_set_16
  2473. this.dialysisPrescription.hemoperfusion = last.hemoperfusion
  2474. this.dialysisPrescription.dialyser_sterilised = last.dialyser_sterilised
  2475. this.dialysisPrescription.filtryzer = last.filtryzer
  2476. this.dialysisPrescription.target_ktv = last.target_ktv
  2477. this.dialysisPrescription.dialyzers = last.dialyzers
  2478. this.dialysisPrescription.injector = last.injector
  2479. this.dialysisPrescription.bloodlines = last.bloodlines
  2480. this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
  2481. this.dialysisPrescription.package = last.package
  2482. this.dialysisPrescription.a_liquid = last.a_liquid
  2483. this.zongliang = last.anticoagulant_zongliang
  2484. this.dialysisPrescription.chaptalization = last.chaptalization
  2485. if(this.$store.getters.xt_user.template_info.org_id!=10013 && this.$store.getters.xt_user.template_info.org_id!=10014){
  2486. this.remark = last.remark
  2487. }
  2488. weight_before = 0
  2489. }
  2490. } else {
  2491. weight_before = this.predialysis.weight_before
  2492. }
  2493. if (weight_before > 0 && last_weight_after > 0) {
  2494. this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
  2495. 2
  2496. )
  2497. // console.log('体重增加', this.add_weight)
  2498. }
  2499. this.isVisibility = true
  2500. this.checkedCities = []
  2501. var total_day = ""
  2502. if(moment().weekday() == 1){
  2503. total_day ="周一"
  2504. }
  2505. if(moment().weekday() == 2){
  2506. total_day ="周二"
  2507. }
  2508. if(moment().weekday() == 3){
  2509. total_day ="周三"
  2510. }
  2511. if(moment().weekday() == 4){
  2512. total_day ="周四"
  2513. }
  2514. if(moment().weekday() == 5){
  2515. total_day ="周五"
  2516. }
  2517. if(moment().weekday() == 6){
  2518. total_day ="周六"
  2519. }
  2520. if(moment().weekday() == 0){
  2521. total_day ="周日"
  2522. }
  2523. if(this.targetAdvices!=null && this.targetAdvices.length >0){
  2524. for (let i = 0; i < this.targetAdvices.length; i++) {
  2525. if(this.targetAdvices[i].week_day.indexOf(total_day)!=-1){
  2526. this.targetAdvices[i].isCheck = 1
  2527. }
  2528. if(this.targetAdvices[i].frequency_type == 1){
  2529. this.targetAdvices[i].isCheck = 1
  2530. }
  2531. }
  2532. }
  2533. for (let i = 0; i < this.targetAdvices.length; i++) {
  2534. if (this.targetAdvices[i].isCheck == 1) {
  2535. this.checkedCities.push(this.targetAdvices[i].id)
  2536. }
  2537. }
  2538. if(admins.length > 0 ){
  2539. for(let i=0;i<admins.length;i++){
  2540. this.adminRoles.push(admins[i])
  2541. }
  2542. }
  2543. console.log("---------",this.targetAdvices)
  2544. console.log("admin_user_+id2332323223332", this.adminRoles)
  2545. },
  2546. hide() {
  2547. this.isVisibility = false
  2548. },
  2549. changeThisAnticoagulant: function(val) {
  2550. console.log("val",val)
  2551. var thismode = val
  2552. if (isNaN(thismode) || thismode <= 0) {
  2553. return false
  2554. }
  2555. // if (val != 12 && val!=1) {
  2556. // this.anticoagulant = this.anticoagulantsConfit[thismode - 1]
  2557. // }
  2558. // if (val == 12 || val == 1) {
  2559. // this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
  2560. // console.log("抗凝剂",this.anticoagulant)
  2561. // }
  2562. if (
  2563. typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
  2564. this.anticoagulantsConfit[thismode] == null
  2565. ) {
  2566. return false
  2567. }
  2568. this.anticoagulant = this.anticoagulantsConfit[thismode]
  2569. if ((this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 41 || this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 47) && val == 2) {
  2570. if(val == 2){
  2571. this.anticoagulant.shouji_unit = 'mg'
  2572. }else{
  2573. this.anticoagulant.shouji_unit = 'iu'
  2574. }
  2575. this.anticoagulant.weichi_unit = 'mg/h'
  2576. this.anticoagulant.zongliang_unit = 'mg'
  2577. }
  2578. if (this.$store.getters.xt_user.template_info.template_id == 27 && val == 4) {
  2579. this.anticoagulant.shouji_unit = 'ml'
  2580. this.anticoagulant.weichi_unit = 'ml'
  2581. this.anticoagulant.zongliang_unit = 'ml'
  2582. }
  2583. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.$store.getters.xt_user.template_info.template_id == 6 && this.dialysisPrescription.anticoagulant == 2){
  2584. this.dialysisPrescription.anticoagulant_zongliang = ""
  2585. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  2586. }
  2587. },
  2588. handleCommit (formName) {
  2589. this.$refs[formName].validate((valid)=>{
  2590. if(valid){
  2591. if(!this.isLoading){
  2592. if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
  2593. this.dialysisPrescription.anticoagulant = 3
  2594. }
  2595. if (this.dialysisPrescription.anticoagulant == 1) {
  2596. this.dialysisPrescription.anticoagulant_weichi = '0'
  2597. this.dialysisPrescription.anticoagulant_shouji = '0'
  2598. this.dialysisPrescription.anticoagulant_zongliang = '0'
  2599. }
  2600. // if (this.$store.getters.xt_user.template_info.template_id == 6) {
  2601. // if (this.dialysisPrescription.mode_id == 2) {
  2602. // if (
  2603. // this.dialysisPrescription.displace_liqui_part == 0 ||
  2604. // this.dialysisPrescription.displace_liqui_part == -2 ||
  2605. // this.dialysisPrescription.displace_liqui_value == 0 ||
  2606. // this.dialysisPrescription.displace_liqui_value == ''
  2607. // || this.dialysisPrescription.replacement_total == 0 ||
  2608. // this.dialysisPrescription.replacement_total == '' ||
  2609. // this.dialysisPrescription.displace_speed == 0 ||
  2610. // this.dialysisPrescription.displace_speed == ''
  2611. // ) {
  2612. // this.$message.error('HDF模式下置换液和置换液总量不能为空!')
  2613. // return
  2614. // }
  2615. // }
  2616. // }
  2617. if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
  2618. this.dialysisPrescription.displace_liqui_part = 0
  2619. this.dialysisPrescription.displace_liqui_value = 0
  2620. this.dialysisPrescription.replacement_total = 0
  2621. this.dialysisPrescription.displace_speed = 0
  2622. console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
  2623. console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
  2624. }
  2625. this.is_pre = 1
  2626. if (this.prescription.id == 0) {
  2627. if (this.is_open == 0) {
  2628. if (this.patient.id <= 0) {
  2629. this.$message.error('没有选择患者')
  2630. this.loading = false
  2631. return
  2632. }
  2633. var arr = this.dialysisPrescription
  2634. const ParamsQuery = arr
  2635. // console.log('night', ParamsQuery)
  2636. ParamsQuery['patient'] = this.patient.id
  2637. ParamsQuery['record_date'] = this.record_date
  2638. ParamsQuery['mode'] = '1'
  2639. ParamsQuery['patient_id'] = this.patient.id
  2640. console.log('第一', ParamsQuery)
  2641. postPrescription(ParamsQuery).then(response => {
  2642. if (response.data.state == 0) {
  2643. this.$message.error(response.data.msg)
  2644. if(response.data.code == 600000008){
  2645. this.infoDialogVisible = true
  2646. }
  2647. return false
  2648. } else {
  2649. this.$notify({
  2650. title: '成功',
  2651. message: '提交成功',
  2652. type: 'success',
  2653. duration: 2000
  2654. })
  2655. const prescription_resp = response.data.data.prescription
  2656. var prescription = this.prescription
  2657. for (var index in prescription_resp) {
  2658. // prescription[index] = prescription_resp[index];
  2659. this.$set(prescription, index, prescription_resp[index])
  2660. }
  2661. this.hide()
  2662. }
  2663. })
  2664. } else if (this.is_open == 1) {
  2665. if (this.targetAdvices.length > 0) {
  2666. // 弹框推送提醒
  2667. this.isShowRemindAdvice = true
  2668. this.isVisibility = false
  2669. } else {
  2670. if (this.patient.id <= 0) {
  2671. this.$message.error('没有选择患者')
  2672. this.loading = false
  2673. return
  2674. }
  2675. var arr = this.dialysisPrescription
  2676. const ParamsQuery = arr
  2677. // console.log('ParamsQuerytwo', ParamsQuery)
  2678. ParamsQuery['patient'] = this.patient.id
  2679. ParamsQuery['record_date'] = this.record_date
  2680. ParamsQuery['mode'] = '1'
  2681. ParamsQuery['patient_id'] = this.patient.id
  2682. console.log('第二')
  2683. postPrescription(ParamsQuery).then(response => {
  2684. if (response.data.state == 0) {
  2685. this.$message.error(response.data.msg)
  2686. if(response.data.code == 600000008){
  2687. this.infoDialogVisible = true
  2688. }
  2689. return false
  2690. } else {
  2691. this.$notify({
  2692. title: '成功',
  2693. message: '提交成功',
  2694. type: 'success',
  2695. duration: 2000
  2696. })
  2697. const prescription_resp = response.data.data.prescription
  2698. var prescription = this.prescription
  2699. for (var index in prescription_resp) {
  2700. // prescription[index] = prescription_resp[index];
  2701. this.$set(prescription, index, prescription_resp[index])
  2702. }
  2703. this.hide()
  2704. }
  2705. })
  2706. }
  2707. } else if (this.is_open == 2) {
  2708. var date = new Date()
  2709. var hour =
  2710. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2711. var minute =
  2712. date.getMinutes() < 10
  2713. ? '0' + date.getMinutes()
  2714. : date.getMinutes()
  2715. if (this.waitUploadAdvices.length > 0) {
  2716. if (this.patient.id <= 0) {
  2717. this.$message.error('没有选择患者')
  2718. this.loading = false
  2719. return
  2720. }
  2721. var arr = this.dialysisPrescription
  2722. const ParamsQuery = arr
  2723. console.log('paramsquerythree', ParamsQuery)
  2724. ParamsQuery['patient'] = this.patient.id
  2725. ParamsQuery['record_date'] = this.record_date
  2726. ParamsQuery['mode'] = '1'
  2727. ParamsQuery['patient_id'] = this.patient.id
  2728. console.log('第三')
  2729. postPrescription(ParamsQuery).then(response => {
  2730. if (response.data.state == 0) {
  2731. this.$message.error(response.data.msg)
  2732. if(response.data.code == 600000008){
  2733. this.infoDialogVisible = true
  2734. }
  2735. return false
  2736. } else {
  2737. this.$notify({
  2738. title: '成功',
  2739. message: '提交成功',
  2740. type: 'success',
  2741. duration: 2000
  2742. })
  2743. const params = {
  2744. advices: this.waitUploadAdvices,
  2745. advice_date: uParseTime(
  2746. this.$route.query.date,
  2747. '{y}-{m}-{d}'
  2748. ),
  2749. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  2750. advice_type: this.waitUploadAdvices[0].advice_type,
  2751. parent_id: this.patient_id,
  2752. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  2753. start_time:
  2754. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  2755. ' ' +
  2756. this.advice_start_time,
  2757. remark: ''
  2758. }
  2759. console.log('params--------', params)
  2760. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
  2761. rs => {
  2762. var resp = rs.data
  2763. if (resp.state == 1) {
  2764. // this.doctorAdvices = resp.data.advices
  2765. this.$emit('advice')
  2766. } else {
  2767. if(resp.code == 600000008){
  2768. this.infoDialogVisible = true
  2769. }
  2770. }
  2771. }
  2772. )
  2773. const prescription_resp = response.data.data.prescription
  2774. var prescription = this.prescription
  2775. for (var index in prescription_resp) {
  2776. // prescription[index] = prescription_resp[index];
  2777. this.$set(prescription, index, prescription_resp[index])
  2778. }
  2779. this.hide()
  2780. }
  2781. })
  2782. } else {
  2783. if (this.patient.id <= 0) {
  2784. this.$message.error('没有选择患者')
  2785. this.loading = false
  2786. return
  2787. }
  2788. var arr = this.dialysisPrescription
  2789. const ParamsQuery = arr
  2790. // console.log('paramsqueryfour', ParamsQuery)
  2791. // console.log('创建者', this.prescription.creater)
  2792. // if (this.prescription.creater <= 0) {
  2793. // mode = 1;
  2794. // } else {
  2795. // mode = 2;
  2796. // }
  2797. ParamsQuery['patient'] = this.patient.id
  2798. ParamsQuery['record_date'] = this.record_date
  2799. // console.log(this.prescription);
  2800. console.log('第四')
  2801. ParamsQuery['patient_id'] = this.patient.id
  2802. postPrescription(ParamsQuery).then(response => {
  2803. if (response.data.state == 0) {
  2804. this.$message.error(response.data.msg)
  2805. if(response.data.code == 600000008){
  2806. this.infoDialogVisible = true
  2807. }
  2808. return false
  2809. } else {
  2810. this.$notify({
  2811. title: '成功',
  2812. message: '提交成功',
  2813. type: 'success',
  2814. duration: 2000
  2815. })
  2816. const prescription_resp = response.data.data.prescription
  2817. // console.log("aaaaaaa", prescription_resp);
  2818. var prescription = this.prescription
  2819. for (var index in prescription_resp) {
  2820. // prescription[index] = prescription_resp[index];
  2821. this.$set(prescription, index, prescription_resp[index])
  2822. }
  2823. this.hide()
  2824. }
  2825. })
  2826. }
  2827. }
  2828. } else {
  2829. if (this.prescription.creater == 0) {
  2830. if (this.is_open == 0) {
  2831. if (this.patient.id <= 0) {
  2832. this.$message.error('没有选择患者')
  2833. this.loading = false
  2834. return
  2835. }
  2836. var arr = this.dialysisPrescription
  2837. // console.log('arr', arr)
  2838. const ParamsQuery = arr
  2839. // console.log('paramsqueryfive', ParamsQuery)
  2840. ParamsQuery['patient'] = this.patient.id
  2841. ParamsQuery['record_date'] = this.record_date
  2842. ParamsQuery['mode'] = '1'
  2843. ParamsQuery['patient_id'] = this.patient.id
  2844. console.log('第五')
  2845. postPrescription(ParamsQuery).then(response => {
  2846. if (response.data.state == 0) {
  2847. this.$message.error(response.data.msg)
  2848. if(response.data.code == 600000008){
  2849. this.infoDialogVisible = true
  2850. }
  2851. return false
  2852. } else {
  2853. this.$notify({
  2854. title: '成功',
  2855. message: '提交成功',
  2856. type: 'success',
  2857. duration: 2000
  2858. })
  2859. const prescription_resp = response.data.data.prescription
  2860. var prescription = this.prescription
  2861. for (var index in prescription_resp) {
  2862. // prescription[index] = prescription_resp[index];
  2863. this.$set(prescription, index, prescription_resp[index])
  2864. }
  2865. this.hide()
  2866. }
  2867. })
  2868. } else if (this.is_open == 1) {
  2869. if (this.targetAdvices.length > 0) {
  2870. // 弹框推送提醒
  2871. this.isShowRemindAdvice = true
  2872. this.isVisibility = false
  2873. } else {
  2874. if (this.patient.id <= 0) {
  2875. this.$message.error('没有选择患者')
  2876. this.loading = false
  2877. return
  2878. }
  2879. var arr = this.dialysisPrescription
  2880. // console.log('arr', arr)
  2881. const ParamsQuery = arr
  2882. // console.log('ParamsQuerysix', ParamsQuery)
  2883. ParamsQuery['patient'] = this.patient.id
  2884. ParamsQuery['record_date'] = this.record_date
  2885. ParamsQuery['mode'] = '1'
  2886. console.log('第6')
  2887. ParamsQuery['patient_id'] = this.patient.id
  2888. postPrescription(ParamsQuery).then(response => {
  2889. if (response.data.state == 0) {
  2890. this.$message.error(response.data.msg)
  2891. if(response.data.code == 600000008){
  2892. this.infoDialogVisible = true
  2893. }
  2894. return false
  2895. } else {
  2896. this.$notify({
  2897. title: '成功',
  2898. message: '提交成功',
  2899. type: 'success',
  2900. duration: 2000
  2901. })
  2902. const prescription_resp = response.data.data.prescription
  2903. var prescription = this.prescription
  2904. for (var index in prescription_resp) {
  2905. // prescription[index] = prescription_resp[index];
  2906. this.$set(prescription, index, prescription_resp[index])
  2907. }
  2908. this.hide()
  2909. }
  2910. })
  2911. }
  2912. } else if (this.is_open == 2) {
  2913. var date = new Date()
  2914. var hour =
  2915. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2916. var minute =
  2917. date.getMinutes() < 10
  2918. ? '0' + date.getMinutes()
  2919. : date.getMinutes()
  2920. if (this.waitUploadAdvices.length > 0) {
  2921. if (this.patient.id <= 0) {
  2922. this.$message.error('没有选择患者')
  2923. this.loading = false
  2924. return
  2925. }
  2926. var arr = this.dialysisPrescription
  2927. // console.log('arr', arr)
  2928. const ParamsQuery = arr
  2929. // console.log('parasmqueryseven', parasmqueryseven)
  2930. ParamsQuery['patient'] = this.patient.id
  2931. ParamsQuery['record_date'] = this.record_date
  2932. ParamsQuery['mode'] = '1'
  2933. console.log('第七')
  2934. ParamsQuery['patient_id'] = this.patient.id
  2935. postPrescription(ParamsQuery).then(response => {
  2936. if (response.data.state == 0) {
  2937. this.$message.error(response.data.msg)
  2938. if(response.data.code == 600000008){
  2939. this.infoDialogVisible = true
  2940. }
  2941. return false
  2942. } else {
  2943. this.$notify({
  2944. title: '成功',
  2945. message: '提交成功',
  2946. type: 'success',
  2947. duration: 2000
  2948. })
  2949. const params = {
  2950. advices: this.waitUploadAdvices,
  2951. advice_date: uParseTime(
  2952. this.$route.query.date,
  2953. '{y}-{m}-{d}'
  2954. ),
  2955. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  2956. advice_type: this.waitUploadAdvices[0].advice_type,
  2957. parent_id: this.patient_id,
  2958. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  2959. start_time:
  2960. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  2961. ' ' +
  2962. hour +
  2963. ':' +
  2964. minute,
  2965. remark: ''
  2966. }
  2967. CreateGroupAdvice(
  2968. this.$route.query.patient_id,
  2969. 0,
  2970. params
  2971. ).then(rs => {
  2972. var resp = rs.data
  2973. if (resp.state == 1) {
  2974. // this.doctorAdvices = resp.data.advices
  2975. this.$emit('advice')
  2976. } else {
  2977. if(resp.code == 600000008){
  2978. this.infoDialogVisible = true
  2979. }
  2980. }
  2981. })
  2982. const prescription_resp = response.data.data.prescription
  2983. var prescription = this.prescription
  2984. for (var index in prescription_resp) {
  2985. // prescription[index] = prescription_resp[index];
  2986. this.$set(prescription, index, prescription_resp[index])
  2987. }
  2988. this.hide()
  2989. }
  2990. })
  2991. } else {
  2992. if (this.patient.id <= 0) {
  2993. this.$message.error('没有选择患者')
  2994. this.loading = false
  2995. return
  2996. }
  2997. var arr = this.dialysisPrescription
  2998. // console.log('arr', arr)
  2999. const ParamsQuery = arr
  3000. // console.log('eight', ParamsQuery)
  3001. ParamsQuery['patient'] = this.patient.id
  3002. ParamsQuery['record_date'] = this.record_date
  3003. ParamsQuery['mode'] = '1'
  3004. ParamsQuery['patient_id'] = this.patient.id
  3005. console.log('第八')
  3006. postPrescription(ParamsQuery).then(response => {
  3007. if (response.data.state == 0) {
  3008. this.$message.error(response.data.msg)
  3009. if(response.data.code == 600000008){
  3010. this.infoDialogVisible = true
  3011. }
  3012. return false
  3013. } else {
  3014. this.$notify({
  3015. title: '成功',
  3016. message: '提交成功',
  3017. type: 'success',
  3018. duration: 2000
  3019. })
  3020. const prescription_resp = response.data.data.prescription
  3021. var prescription = this.prescription
  3022. for (var index in prescription_resp) {
  3023. // prescription[index] = prescription_resp[index];
  3024. this.$set(prescription, index, prescription_resp[index])
  3025. }
  3026. this.hide()
  3027. }
  3028. })
  3029. }
  3030. }
  3031. } else {
  3032. if (this.patient.id <= 0) {
  3033. this.$message.error('没有选择患者')
  3034. this.loading = false
  3035. return
  3036. }
  3037. var arr = this.dialysisPrescription
  3038. // console.log('arr', arr)
  3039. const ParamsQuery = arr
  3040. // console.log('night', ParamsQuery)
  3041. ParamsQuery['patient'] = this.patient.id
  3042. ParamsQuery['record_date'] = this.record_date
  3043. ParamsQuery['mode'] = '2'
  3044. ParamsQuery['patient_id'] = this.patient.id
  3045. if (
  3046. this.$store.getters.xt_user.user.id !=
  3047. this.dialysisPrescription.creater
  3048. ) {
  3049. ParamsQuery['mode'] = '3'
  3050. }
  3051. console.log('第九',ParamsQuery)
  3052. postPrescription(ParamsQuery).then(response => {
  3053. if (response.data.state == 0) {
  3054. this.$message.error(response.data.msg)
  3055. if(response.data.code == 600000008){
  3056. this.infoDialogVisible = true
  3057. }
  3058. return false
  3059. } else {
  3060. this.$notify({
  3061. title: '成功',
  3062. message: '提交成功',
  3063. type: 'success',
  3064. duration: 2000
  3065. })
  3066. const prescription_resp = response.data.data.prescription
  3067. var prescription = this.prescription
  3068. for (var index in prescription_resp) {
  3069. // prescription[index] = prescription_resp[index];
  3070. this.$set(prescription, index, prescription_resp[index])
  3071. }
  3072. this.hide()
  3073. }
  3074. })
  3075. }
  3076. }
  3077. }
  3078. }else {
  3079. console.log("error submit!!");
  3080. return false;
  3081. }
  3082. })
  3083. },
  3084. handleCancle: function() {
  3085. this.hide()
  3086. },
  3087. handleSolution: function(formName) {
  3088. if(this.dialysisPrescription.anticoagulant == "" || this.dialysisPrescription.anticoagulant == 0){
  3089. this.dialysisPrescription.anticoagulant = 3
  3090. }
  3091. this.$refs[formName].validate((valid)=>{
  3092. if(valid){
  3093. if(!this.isLoading){
  3094. if (this.dialysisPrescription.anticoagulant == 1) {
  3095. this.dialysisPrescription.anticoagulant_weichi = '0'
  3096. this.dialysisPrescription.anticoagulant_shouji = '0'
  3097. this.dialysisPrescription.anticoagulant_zongliang = '0'
  3098. }
  3099. // if (this.$store.getters.xt_user.template_info.template_id == 6) {
  3100. // if (this.dialysisPrescription.mode_id == 2) {
  3101. // if (
  3102. // this.dialysisPrescription.displace_liqui_part == 0 ||
  3103. // this.dialysisPrescription.displace_liqui_part == -2 ||
  3104. // this.dialysisPrescription.displace_liqui_value == 0 ||
  3105. // this.dialysisPrescription.displace_liqui_value == ''
  3106. // || this.dialysisPrescription.replacement_total == 0 ||
  3107. // this.dialysisPrescription.replacement_total == ''||
  3108. // this.dialysisPrescription.displace_speed == 0 ||
  3109. // this.dialysisPrescription.displace_speed == ''
  3110. // ) {
  3111. // this.$message.error('HDF模式下置换液和置换液总量不能为空!')
  3112. // return
  3113. // }
  3114. // }
  3115. // if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
  3116. // this.dialysisPrescription.displace_liqui_part == 0
  3117. // this.dialysisPrescription.displace_liqui_value == 0
  3118. // this.dialysisPrescription.replacement_total == 0
  3119. // this.dialysisPrescription.displace_speed == 0
  3120. // console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
  3121. // console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
  3122. // // this.dialysisPrescription.displace_liqui_part = 0
  3123. // // this.dialysisPrescription.displace_liqui_value = 0
  3124. // // this.dialysisPrescription.replacement_total = 0
  3125. // // this.dialysisPrescription.displace_speed = 0
  3126. // }
  3127. // }
  3128. this.is_pre = 2
  3129. if (this.prescription.id == 0) {
  3130. if (this.is_open == 0) {
  3131. if (this.patient.id <= 0) {
  3132. this.$message.error('没有选择患者')
  3133. this.loading = false
  3134. return
  3135. }
  3136. console.log("预充了2",this.dialysisPrescription.pre_impulse)
  3137. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3138. var arr = this.dialysisPrescription
  3139. const ParamsQuery = arr
  3140. ParamsQuery['patient'] = this.patient.id
  3141. ParamsQuery['record_date'] = this.record_date
  3142. ParamsQuery['mode'] = '1'
  3143. postSoulution(ParamsQuery).then(response => {
  3144. if (response.data.state == 0) {
  3145. this.$message.error(response.data.msg)
  3146. if(response.data.code == 600000008){
  3147. this.infoDialogVisible = true
  3148. }
  3149. return false
  3150. } else {
  3151. this.$notify({
  3152. title: '成功',
  3153. message: '提交成功',
  3154. type: 'success',
  3155. duration: 2000
  3156. })
  3157. const prescription_resp = response.data.data.prescription
  3158. const solution_resp = response.data.data.solution
  3159. var prescription = this.prescription
  3160. var solution = this.solution
  3161. for (var index in prescription_resp) {
  3162. // prescription[index] = prescription_resp[index];
  3163. this.$set(prescription, index, prescription_resp[index])
  3164. }
  3165. for (var index in solution_resp) {
  3166. // solution[index] = solution_resp[index];
  3167. this.$set(solution, index, solution_resp[index])
  3168. }
  3169. this.hide()
  3170. }
  3171. })
  3172. } else if (this.is_open == 1) {
  3173. if (this.targetAdvices.length > 0) {
  3174. // 弹框推送提
  3175. this.isShowRemindAdvice = true
  3176. this.isVisibility = false
  3177. } else {
  3178. if (this.patient.id <= 0) {
  3179. this.$message.error('没有选择患者')
  3180. this.loading = false
  3181. return
  3182. }
  3183. console.log("预充了3",this.dialysisPrescription.pre_impulse)
  3184. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3185. var arr = this.dialysisPrescription
  3186. console.log('arr3', arr)
  3187. const ParamsQuery = arr
  3188. // console.log('长期处方2', ParamsQuery)
  3189. ParamsQuery['patient'] = this.patient.id
  3190. ParamsQuery['record_date'] = this.record_date
  3191. ParamsQuery['mode'] = '1'
  3192. postSoulution(ParamsQuery).then(response => {
  3193. if (response.data.state == 0) {
  3194. this.$message.error(response.data.msg)
  3195. if(response.data.code == 600000008){
  3196. this.infoDialogVisible = true
  3197. }
  3198. return false
  3199. } else {
  3200. this.$notify({
  3201. title: '成功',
  3202. message: '提交成功',
  3203. type: 'success',
  3204. duration: 2000
  3205. })
  3206. const prescription_resp = response.data.data.prescription
  3207. const solution_resp = response.data.data.solution
  3208. var prescription = this.prescription
  3209. var solution = this.solution
  3210. for (var index in prescription_resp) {
  3211. // prescription[index] = prescription_resp[index];
  3212. this.$set(prescription, index, prescription_resp[index])
  3213. }
  3214. for (var index in solution_resp) {
  3215. // solution[index] = solution_resp[index];
  3216. this.$set(solution, index, solution_resp[index])
  3217. }
  3218. this.hide()
  3219. }
  3220. })
  3221. }
  3222. } else if (this.is_open == 2) {
  3223. var date = new Date()
  3224. var hour =
  3225. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  3226. var minute =
  3227. date.getMinutes() < 10
  3228. ? '0' + date.getMinutes()
  3229. : date.getMinutes()
  3230. if (this.waitUploadAdvices.length > 0) {
  3231. // if (this.patient.id <= 0) {
  3232. // this.$message.error('没有选择患者')
  3233. // this.loading = false
  3234. // return
  3235. // }
  3236. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3237. var arr = this.dialysisPrescription
  3238. const ParamsQuery = arr
  3239. // console.log('长期处方3', ParamsQuery)
  3240. ParamsQuery['patient'] = this.patient.id
  3241. ParamsQuery['record_date'] = this.record_date
  3242. // console.log(this.prescription)
  3243. ParamsQuery['mode'] = '1'
  3244. postPrescription(ParamsQuery).then(response => {
  3245. if (response.data.state == 0) {
  3246. this.$message.error(response.data.msg)
  3247. if(response.data.code == 600000008){
  3248. this.infoDialogVisible = true
  3249. }
  3250. return false
  3251. } else {
  3252. this.$notify({
  3253. title: '成功',
  3254. message: '提交成功',
  3255. type: 'success',
  3256. duration: 2000
  3257. })
  3258. const params = {
  3259. advices: this.waitUploadAdvices,
  3260. advice_date: uParseTime(
  3261. this.$route.query.date,
  3262. '{y}-{m}-{d}'
  3263. ),
  3264. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  3265. advice_type: this.waitUploadAdvices[0].advice_type,
  3266. parent_id: this.patient_id,
  3267. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  3268. start_time:
  3269. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  3270. ' ' +
  3271. hour +
  3272. ':' +
  3273. minute,
  3274. remark: ''
  3275. }
  3276. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
  3277. rs => {
  3278. var resp = rs.data
  3279. if (resp.state == 1) {
  3280. // this.doctorAdvices = resp.data.advices
  3281. this.$emit('advice')
  3282. } else {
  3283. if(resp.code == 600000008){
  3284. this.infoDialogVisible = true
  3285. }
  3286. }
  3287. }
  3288. )
  3289. const prescription_resp = response.data.data.prescription
  3290. var prescription = this.prescription
  3291. for (var index in prescription_resp) {
  3292. // prescription[index] = prescription_resp[index];
  3293. this.$set(prescription, index, prescription_resp[index])
  3294. }
  3295. this.hide()
  3296. }
  3297. })
  3298. } else {
  3299. if (this.patient.id <= 0) {
  3300. this.$message.error('没有选择患者')
  3301. this.loading = false
  3302. return
  3303. }
  3304. console.log("预充了5",this.dialysisPrescription.pre_impulse)
  3305. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3306. var arr = this.dialysisPrescription
  3307. console.log('arr5', arr)
  3308. const ParamsQuery = arr
  3309. // console.log('长期处方5', ParamsQuery)
  3310. ParamsQuery['patient'] = this.patient.id
  3311. ParamsQuery['record_date'] = this.record_date
  3312. ParamsQuery['mode'] = '1'
  3313. postSoulution(ParamsQuery).then(response => {
  3314. if (response.data.state == 0) {
  3315. this.$message.error(response.data.msg)
  3316. if(response.data.code == 600000008){
  3317. this.infoDialogVisible = true
  3318. }
  3319. return false
  3320. } else {
  3321. this.$notify({
  3322. title: '成功',
  3323. message: '提交成功',
  3324. type: 'success',
  3325. duration: 2000
  3326. })
  3327. const prescription_resp = response.data.data.prescription
  3328. const solution_resp = response.data.data.solution
  3329. var prescription = this.prescription
  3330. var solution = this.solution
  3331. for (var index in prescription_resp) {
  3332. // prescription[index] = prescription_resp[index];
  3333. this.$set(prescription, index, prescription_resp[index])
  3334. }
  3335. for (var index in solution_resp) {
  3336. // solution[index] = solution_resp[index];
  3337. this.$set(solution, index, solution_resp[index])
  3338. }
  3339. this.hide()
  3340. }
  3341. })
  3342. }
  3343. }
  3344. } else {
  3345. if (this.prescription.creater == 0) {
  3346. if (this.is_open == 0) {
  3347. if (this.patient.id <= 0) {
  3348. this.$message.error('没有选择患者')
  3349. this.loading = false
  3350. return
  3351. }
  3352. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3353. var arr = this.dialysisPrescription
  3354. console.log('arr', arr)
  3355. const ParamsQuery = arr
  3356. // console.log('长期处方6', ParamsQuery)
  3357. ParamsQuery['patient'] = this.patient.id
  3358. ParamsQuery['record_date'] = this.record_date
  3359. ParamsQuery['mode'] = '1'
  3360. postSoulution(ParamsQuery).then(response => {
  3361. if (response.data.state == 0) {
  3362. this.$message.error(response.data.msg)
  3363. if(response.data.code == 600000008){
  3364. this.infoDialogVisible = true
  3365. }
  3366. return false
  3367. } else {
  3368. this.$notify({
  3369. title: '成功',
  3370. message: '提交成功',
  3371. type: 'success',
  3372. duration: 2000
  3373. })
  3374. const prescription_resp = response.data.data.prescription
  3375. const solution_resp = response.data.data.solution
  3376. var prescription = this.prescription
  3377. var solution = this.solution
  3378. for (var index in prescription_resp) {
  3379. // prescription[index] = prescription_resp[index];
  3380. this.$set(prescription, index, prescription_resp[index])
  3381. }
  3382. for (var index in solution_resp) {
  3383. // solution[index] = solution_resp[index];
  3384. this.$set(solution, index, solution_resp[index])
  3385. }
  3386. this.hide()
  3387. }
  3388. })
  3389. } else if (this.is_open == 1) {
  3390. if (this.targetAdvices.length > 0) {
  3391. // 弹框推送提醒
  3392. this.isShowRemindAdvice = true
  3393. this.isVisibility = false
  3394. } else {
  3395. if (this.patient.id <= 0) {
  3396. this.$message.error('没有选择患者')
  3397. this.loading = false
  3398. return
  3399. }
  3400. console.log("预充了7",this.dialysisPrescription.pre_impulse)
  3401. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3402. var arr = this.dialysisPrescription
  3403. // console.log('arr', arr)
  3404. const ParamsQuery = arr
  3405. console.log('长期处方7', ParamsQuery)
  3406. ParamsQuery['patient'] = this.patient.id
  3407. ParamsQuery['record_date'] = this.record_date
  3408. ParamsQuery['mode'] = '1'
  3409. postSoulution(ParamsQuery).then(response => {
  3410. if (response.data.state == 0) {
  3411. this.$message.error(response.data.msg)
  3412. if(response.data.code == 600000008){
  3413. this.infoDialogVisible = true
  3414. }
  3415. return false
  3416. } else {
  3417. this.$notify({
  3418. title: '成功',
  3419. message: '提交成功',
  3420. type: 'success',
  3421. duration: 2000
  3422. })
  3423. const prescription_resp = response.data.data.prescription
  3424. const solution_resp = response.data.data.solution
  3425. var prescription = this.prescription
  3426. var solution = this.solution
  3427. for (var index in prescription_resp) {
  3428. // prescription[index] = prescription_resp[index];
  3429. this.$set(prescription, index, prescription_resp[index])
  3430. }
  3431. for (var index in solution_resp) {
  3432. // solution[index] = solution_resp[index];
  3433. this.$set(solution, index, solution_resp[index])
  3434. }
  3435. this.hide()
  3436. }
  3437. })
  3438. }
  3439. } else if (this.is_open == 2) {
  3440. var date = new Date()
  3441. var hour =
  3442. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  3443. var minute =
  3444. date.getMinutes() < 10
  3445. ? '0' + date.getMinutes()
  3446. : date.getMinutes()
  3447. if (this.waitUploadAdvices.length > 0) {
  3448. if (this.patient.id <= 0) {
  3449. this.$message.error('没有选择患者')
  3450. this.loading = false
  3451. return
  3452. }
  3453. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3454. var arr = this.dialysisPrescription
  3455. const ParamsQuery = arr
  3456. // console.log('长期处方8', ParamsQuery)
  3457. ParamsQuery['patient'] = this.patient.id
  3458. ParamsQuery['record_date'] = this.record_date
  3459. ParamsQuery['mode'] = '1'
  3460. postSoulution(ParamsQuery).then(response => {
  3461. if (response.data.state == 0) {
  3462. this.$message.error(response.data.msg)
  3463. if(response.data.code == 600000008){
  3464. this.infoDialogVisible = true
  3465. }
  3466. return false
  3467. } else {
  3468. this.$notify({
  3469. title: '成功',
  3470. message: '提交成功',
  3471. type: 'success',
  3472. duration: 2000
  3473. })
  3474. const params = {
  3475. advices: this.waitUploadAdvices,
  3476. advice_date: uParseTime(
  3477. this.$route.query.date,
  3478. '{y}-{m}-{d}'
  3479. ),
  3480. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  3481. advice_type: this.waitUploadAdvices[0].advice_type,
  3482. parent_id: this.patient_id,
  3483. start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
  3484. // start_time:
  3485. // uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  3486. // ' ' +
  3487. // hour +
  3488. // ':' +
  3489. // minute,
  3490. remark: ''
  3491. }
  3492. CreateGroupAdvice(
  3493. this.$route.query.patient_id,
  3494. 0,
  3495. params
  3496. ).then(rs => {
  3497. var resp = rs.data
  3498. if (resp.state == 1) {
  3499. // this.doctorAdvices = resp.data.advices
  3500. this.$emit('advice')
  3501. } else {
  3502. if(resp.code == 600000008){
  3503. this.infoDialogVisible = true
  3504. }
  3505. }
  3506. })
  3507. const prescription_resp = response.data.data.prescription
  3508. const solution_resp = response.data.data.solution
  3509. var prescription = this.prescription
  3510. var solution = this.solution
  3511. for (var index in prescription_resp) {
  3512. // prescription[index] = prescription_resp[index];
  3513. this.$set(prescription, index, prescription_resp[index])
  3514. }
  3515. for (var index in solution_resp) {
  3516. // solution[index] = solution_resp[index];
  3517. this.$set(solution, index, solution_resp[index])
  3518. }
  3519. this.hide()
  3520. }
  3521. })
  3522. } else {
  3523. if (this.patient.id <= 0) {
  3524. this.$message.error('没有选择患者')
  3525. this.loading = false
  3526. return
  3527. }
  3528. console.log("预充了99999",this.dialysisPrescription.pre_impulse)
  3529. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3530. var arr = this.dialysisPrescription
  3531. console.log('arr', arr)
  3532. const ParamsQuery = arr
  3533. // console.log('长期处方9', ParamsQuery)
  3534. ParamsQuery['patient'] = this.patient.id
  3535. ParamsQuery['record_date'] = this.record_date
  3536. ParamsQuery['mode'] = '1'
  3537. postSoulution(ParamsQuery).then(response => {
  3538. if (response.data.state == 0) {
  3539. this.$message.error(response.data.msg)
  3540. if(response.data.code == 600000008){
  3541. this.infoDialogVisible = true
  3542. }
  3543. return false
  3544. } else {
  3545. this.$notify({
  3546. title: '成功',
  3547. message: '提交成功',
  3548. type: 'success',
  3549. duration: 2000
  3550. })
  3551. const prescription_resp = response.data.data.prescription
  3552. const solution_resp = response.data.data.solution
  3553. var prescription = this.prescription
  3554. var solution = this.solution
  3555. for (var index in prescription_resp) {
  3556. // prescription[index] = prescription_resp[index];
  3557. this.$set(prescription, index, prescription_resp[index])
  3558. }
  3559. for (var index in solution_resp) {
  3560. // solution[index] = solution_resp[index];
  3561. this.$set(solution, index, solution_resp[index])
  3562. }
  3563. this.hide()
  3564. }
  3565. })
  3566. }
  3567. }
  3568. } else {
  3569. if (this.patient.id <= 0) {
  3570. this.$message.error('没有选择患者')
  3571. this.loading = false
  3572. return
  3573. }
  3574. console.log("预充了1",this.dialysisPrescription.pre_impulse)
  3575. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3576. var arr = this.dialysisPrescription
  3577. console.log('arr12333223', arr)
  3578. const ParamsQuery = arr
  3579. ParamsQuery['patient'] = this.patient.id
  3580. ParamsQuery['record_date'] = this.record_date
  3581. ParamsQuery['mode'] = '1'
  3582. console.log('长期处方10', ParamsQuery)
  3583. postSoulution(ParamsQuery).then(response => {
  3584. if (response.data.state == 0) {
  3585. this.$message.error(response.data.msg)
  3586. if(response.data.code == 600000008){
  3587. this.infoDialogVisible = true
  3588. }
  3589. return false
  3590. } else {
  3591. this.$notify({
  3592. title: '成功',
  3593. message: '提交成功',
  3594. type: 'success',
  3595. duration: 2000
  3596. })
  3597. const prescription_resp = response.data.data.prescription
  3598. const solution_resp = response.data.data.solution
  3599. var prescription = this.prescription
  3600. var solution = this.solution
  3601. for (var index in prescription_resp) {
  3602. // prescription[index] = prescription_resp[index];
  3603. this.$set(prescription, index, prescription_resp[index])
  3604. }
  3605. for (var index in solution_resp) {
  3606. // solution[index] = solution_resp[index];
  3607. this.$set(solution, index, solution_resp[index])
  3608. }
  3609. this.hide()
  3610. }
  3611. })
  3612. }
  3613. }
  3614. }
  3615. }
  3616. })
  3617. },
  3618. isName(name) {
  3619. let filedList = store.getters.xt_user.fileds;
  3620. for (let i = 0; i < filedList.length; i++) {
  3621. if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  3622. return filedList[i].filed_name;
  3623. }
  3624. }
  3625. },
  3626. isShows(name) {
  3627. var filedList = store.getters.xt_user.fileds
  3628. for (let i = 0; i < filedList.length; i++) {
  3629. if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  3630. return true
  3631. }
  3632. }
  3633. return false
  3634. },
  3635. isCheckmust(name) {
  3636. let filedList = store.getters.xt_user.fileds;
  3637. for (let i = 0; i < filedList.length; i++) {
  3638. if (
  3639. filedList[i].module == 1 &&
  3640. filedList[i].filed_name_cn == name &&
  3641. filedList[i].is_write == 1&&
  3642. filedList[i].is_show == 1
  3643. ) {
  3644. // console.log(filedList[i],'false')
  3645. if (name == "透析模式" || name == "透析时长") {
  3646. return [
  3647. { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
  3648. // {
  3649. // required: true,
  3650. // pattern: /^[1-9]\d*$/,
  3651. // message: `请输入${name}`,
  3652. // trigger: ['blur','change']
  3653. // },
  3654. ];
  3655. }
  3656. return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
  3657. }
  3658. }
  3659. },
  3660. isNas(name){
  3661. let filedList = store.getters.xt_user.fileds;
  3662. for (let i = 0; i < filedList.length; i++) {
  3663. if (
  3664. filedList[i].module == 1 &&
  3665. filedList[i].filed_name_cn == name &&
  3666. filedList[i].is_write == 1&&
  3667. filedList[i].is_show == 1
  3668. ) {
  3669. return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
  3670. }
  3671. }
  3672. },
  3673. isSubstitution(name){
  3674. if(this.dialysisPrescription.mode_id == 2 ||this.dialysisPrescription.mode_id == 5 || this.dialysisPrescription.mode_id == 12){
  3675. let filedList = store.getters.xt_user.fileds;
  3676. for (let i = 0; i < filedList.length; i++) {
  3677. if (
  3678. filedList[i].module == 1 &&
  3679. filedList[i].filed_name_cn == name &&
  3680. filedList[i].is_write == 1&&
  3681. filedList[i].is_show == 1
  3682. ) {
  3683. if(name == '置换速度'){
  3684. return [
  3685. { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
  3686. // {
  3687. // required: true,
  3688. // pattern: /^[1-9]\d*$/,
  3689. // message: `请输入${name}`,
  3690. // trigger: ['blur','change']
  3691. // },
  3692. ];
  3693. }
  3694. return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
  3695. }
  3696. }
  3697. }else{
  3698. return [{required: false}]
  3699. }
  3700. },
  3701. getDoctorName(doctor_id) {
  3702. for (let i = 0; i < this.admin_users.length; i++) {
  3703. if (this.admin_users[i].id == doctor_id) {
  3704. return this.admin_users[i].name
  3705. }
  3706. }
  3707. },
  3708. getContent(val) {
  3709. let prescribing_number = ''
  3710. let single_dose = ''
  3711. let advice_desc = ''
  3712. if (val.prescribing_number > 0) {
  3713. prescribing_number =
  3714. val.prescribing_number + val.prescribing_number_unit
  3715. }
  3716. if (val.single_dose > 0) {
  3717. single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
  3718. }
  3719. if (val.advice_desc > 0 || val.advice_desc.length > 0) {
  3720. advice_desc = val.advice_desc + val.drug_spec_unit
  3721. }
  3722. let name = ''
  3723. if (val.child.length > 0) {
  3724. for (let i = 0; i < val.child.length; i++) {
  3725. if (val.child[i].prescribing_number > 0) {
  3726. val.child[i]['presc'] =
  3727. val.child[i].prescribing_number +
  3728. val.child[i].prescribing_number_unit
  3729. } else {
  3730. val.child[i]['presc'] = ''
  3731. }
  3732. if (val.child[i].single_dose > 0) {
  3733. val.child[i]['single'] =
  3734. ' ' +
  3735. ' 单次用量 ' +
  3736. ' ' +
  3737. val.child[i].single_dose +
  3738. val.child[i].single_dose_unit
  3739. } else {
  3740. val.child[i]['single'] = ''
  3741. }
  3742. name =
  3743. name +
  3744. '▲' +
  3745. val.child[i].advice_name +
  3746. '' +
  3747. val.child[i].advice_desc +
  3748. val.child[i].drug_spec_unit +
  3749. val.child[i].presc +
  3750. val.child[i].single
  3751. }
  3752. return (
  3753. val.advice_name +
  3754. ' ' +
  3755. advice_desc +
  3756. ' ' +
  3757. val.drug_spec_unit +
  3758. prescribing_number +
  3759. ' ' +
  3760. single_dose +
  3761. ' ' +
  3762. ' ' +
  3763. val.delivery_way +
  3764. ' ' +
  3765. val.execution_frequency +
  3766. val.remark +
  3767. name
  3768. )
  3769. } else {
  3770. return (
  3771. val.advice_name +
  3772. ' ' +
  3773. advice_desc +
  3774. prescribing_number +
  3775. ' ' +
  3776. single_dose +
  3777. ' ' +
  3778. ' ' +
  3779. val.delivery_way +
  3780. ' ' +
  3781. val.execution_frequency +
  3782. val.remark
  3783. )
  3784. }
  3785. },
  3786. changePrescription(id) {
  3787. console.log("id233223232323232323",id)
  3788. if(id != 2 && id!=5 && id!= 12){
  3789. this.dialysisPrescription.displace_liqui_value = ""
  3790. this.dialysisPrescription.displace_liqui_part = ""
  3791. this.dialysisPrescription.replacement_total = ""
  3792. this.dialysisPrescription.displace_speed = ""
  3793. }
  3794. const ParamsQuery = {}
  3795. ParamsQuery['patient_id'] = this.$route.query.patient_id
  3796. ParamsQuery['mode_id'] = id
  3797. GetSolution(ParamsQuery).then(response => {
  3798. if (response.data.state == 0) {
  3799. this.$message.error(response.data.msg)
  3800. return false
  3801. } else {
  3802. console.log('切换数据', response.data.data.solution)
  3803. this.$message.success('切换成功')
  3804. console.log("dialysisPrescription",response.data.data.dialysisPrescription)
  3805. if (response.data.data.solution != null) {
  3806. for (const key in response.data.data.solution) {
  3807. // 长期处方不为空
  3808. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  3809. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  3810. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid'&& key != 'remark') {
  3811. this.dialysisPrescription[key] =
  3812. response.data.data.solution[key]
  3813. }
  3814. }
  3815. if (this.$store.getters.xt_user.template_info.org_id== 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 || this.$store.getters.xt_user.template_info.org_id == 10340) {
  3816. console.log('抠门;哦啊', response.data.data.dialysisPrescription.remark)
  3817. this.dialysisPrescription.sodium = 138
  3818. this.dialysisPrescription.bicarbonate = 31.1
  3819. this.dialysisPrescription.dialysate_flow = 500
  3820. if (this.last_prescription != null && response.data.data.dialysisPrescription != null) {
  3821. this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
  3822. }
  3823. }
  3824. } else {
  3825. if (response.data.data.prescription != null) {
  3826. // 临时处方不为空
  3827. for (const key in response.data.data.prescription) {
  3828. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  3829. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  3830. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid' && key != 'remark') {
  3831. this.dialysisPrescription[key] =
  3832. response.data.data.prescription[key]
  3833. }
  3834. }
  3835. } else if (response.data.data.system_prescription != null) {
  3836. // 系统处方不为空
  3837. for (const key in response.data.data.system_prescription) {
  3838. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  3839. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  3840. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid' && key != 'remark') {
  3841. this.dialysisPrescription[key] =
  3842. response.data.data.system_prescription[key]
  3843. }
  3844. }
  3845. } else {
  3846. for (const key in this.dialysisPrescription) {
  3847. // 临时处方为空
  3848. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  3849. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  3850. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid' && key != 'remark') {
  3851. this.dialysisPrescription[key] = ''
  3852. }
  3853. }
  3854. this.dialysisPrescription.mode_id = id
  3855. }
  3856. if (this.$store.getters.xt_user.template_info.org_id == 9671 ||this.$store.getters.xt_user.template_info.org_id == 9675 ||this.$store.getters.xt_user.template_info.org_id== 10340) {
  3857. this.dialysisPrescription.sodium = 138
  3858. this.dialysisPrescription.bicarbonate = 31.1
  3859. this.dialysisPrescription.dialysate_flow = 500
  3860. if (this.last_prescription != null && response.data.data.system_prescription != null && response.data.data.system_prescription.remark == '') {
  3861. this.dialysisPrescription.remark = response.data.data.system_prescription.remark
  3862. }
  3863. }
  3864. }
  3865. if(response.data.data.dialysisPrescription!=null){
  3866. this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
  3867. }
  3868. }
  3869. if (response.data.data.solution == null) {
  3870. if (this.$store.getters.xt_user.template_info.org_id== 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 ||this.$store.getters.xt_user.template_info.org_id== 10340) {
  3871. this.dialysisPrescription.sodium = 138
  3872. this.dialysisPrescription.bicarbonate = 31.1
  3873. this.dialysisPrescription.dialysate_flow = 500
  3874. if (this.last_prescription != null) {
  3875. this.dialysisPrescription.remark = this.last_prescription.remark
  3876. }
  3877. }
  3878. }
  3879. if (
  3880. this.dialysisPrescription.dialysis_duration_hour === '' ||
  3881. this.dialysisPrescription.dialysis_duration_minute === ''
  3882. ) {
  3883. this.timeValue = ''
  3884. this.time = '03:00'
  3885. } else {
  3886. this.timeValue =
  3887. this.dialysisPrescription.dialysis_duration_hour +
  3888. '小时' +
  3889. this.dialysisPrescription.dialysis_duration_minute +
  3890. '分钟'
  3891. this.time =
  3892. (this.dialysisPrescription.dialysis_duration_hour > 10
  3893. ? this.dialysisPrescription.dialysis_duration_hour
  3894. : '0' + this.dialysisPrescription.dialysis_duration_hour) +
  3895. ':' +
  3896. (this.dialysisPrescription.dialysis_duration_minute > 10
  3897. ? this.dialysisPrescription.dialysis_duration_minute
  3898. : '0' + this.dialysisPrescription.dialysis_duration_minute)
  3899. }
  3900. })
  3901. if (
  3902. id === 1 ||
  3903. id === 3 ||
  3904. id === 4 ||
  3905. id === 6 ||
  3906. id === 7 ||
  3907. id === 8 ||
  3908. id === 9 ||
  3909. id === 10 ||
  3910. id === 11 ||
  3911. id === 13 ||
  3912. id === 14 ||
  3913. id === 15 ||
  3914. id === 16 ||
  3915. id === 19
  3916. ) {
  3917. this.zhiShow = false
  3918. this.huShow = false
  3919. this.totalShow = false
  3920. } else {
  3921. this.zhiShow = true
  3922. this.huShow = true
  3923. this.totalShow = true
  3924. //针对新化博翔
  3925. if(this.$store.getters.xt_user.template_info.org_id ==10447){
  3926. this.dialysisPrescription.displace_liqui_part = 1
  3927. this.dialysisPrescription.displace_liqui_value = 35
  3928. }
  3929. }
  3930. },
  3931. handlePatientInfo() {
  3932. this.isVisibility = false
  3933. this.msgtip_visibility = true
  3934. },
  3935. handlePatientInfoOne(){
  3936. this.isVisibility = false
  3937. this.startVisibility = true
  3938. },
  3939. cancleMsg() {
  3940. this.isVisibility = true
  3941. this.msgtip_visibility = false
  3942. },
  3943. cancleMsgOne(){
  3944. this.isVisibility = true
  3945. this.startVisibility = false
  3946. },
  3947. getPermission() {
  3948. request
  3949. .get('/api/func_per/get', {
  3950. params: {
  3951. create_url: '/api/dialysis/prescription?mode=1',
  3952. modify_url: '/api/dialysis/prescription?mode=2',
  3953. modify_other_url: '/api/dialysis/prescription?mode=3',
  3954. module: 1
  3955. }
  3956. })
  3957. .then(res => {
  3958. // console.log(res)
  3959. // console.log('predialysis.creater', this.pre.creater)
  3960. // console.log('admin.id', this.$store.getters.xt_user.user.id)
  3961. if (res.data.state == 0) {
  3962. this.hasPermission = false
  3963. } else if (res.data.state == 1) {
  3964. if (this.pre.id != '' && this.pre.creater != 0) {
  3965. // 有数据
  3966. if (this.pre.creater == this.$store.getters.xt_user.user.id) {
  3967. // 创建人是自己
  3968. if (res.data.data.is_has_modify == false) {
  3969. this.hasPermission = false
  3970. this.showTxt = '你没有修改透析处方权限'
  3971. }
  3972. } else {
  3973. // 创建人不是自己
  3974. if (res.data.data.is_has_modify_other == false) {
  3975. this.hasPermission = false
  3976. this.showTxt = '你没有修改他人透析处方权限'
  3977. }
  3978. }
  3979. } else if (this.pre.id == '' || this.pre.creater == 0) {
  3980. if (res.data.data.is_has_create == false) {
  3981. this.hasPermission = false
  3982. this.showTxt = '你没有新增透析处方权限'
  3983. }
  3984. }
  3985. }
  3986. })
  3987. },
  3988. unique(arr) {
  3989. const res = new Map()
  3990. return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
  3991. },
  3992. dialysisAfterTeachSelectChange: function(values) {
  3993. console.log("values232323232wo",values)
  3994. if (this.dialysisPrescription.dialysis_remark == '' || this.dialysisPrescription.dialysis_remark==undefined) {
  3995. this.dialysisPrescription.dialysis_remark = values
  3996. } else {
  3997. console.log("this.dialysisPrescription.dialysis_remark",this.dialysisPrescription.dialysis_remark)
  3998. if (this.dialysisPrescription.dialysis_remark!=undefined&&this.dialysisPrescription.dialysis_remark.indexOf(values) == -1) {
  3999. if (this.dialysisPrescription.dialysis_remark.charAt(this.dialysisPrescription.dialysis_remark.length - 1).indexOf('。') == -1) {
  4000. this.dialysisPrescription.dialysis_remark = this.dialysisPrescription.dialysis_remark + ',' + values
  4001. } else {
  4002. this.dialysisPrescription.dialysis_remark = this.dialysisPrescription.dialysis_remark + values
  4003. }
  4004. }
  4005. }
  4006. },
  4007. saveInformation(){
  4008. var params = {
  4009. selected_date:this.selected_date,
  4010. patient_id:this.$route.query.patient_id,
  4011. record_date:this.$route.query.date,
  4012. module:1,
  4013. remark:this.remark,
  4014. }
  4015. saveInformation(params).then(response=>{
  4016. if(response.data.state == 1){
  4017. var information = response.data.data.information
  4018. this.$message.success("提交成功!")
  4019. this.infoDialogVisible = false
  4020. }
  4021. })
  4022. }
  4023. },
  4024. watch: {
  4025. // 'dialysisPrescription.blood_flow_volume': function () {
  4026. // this.dialysisPrescription.blood_flow_volume = replacementFlow(this.dialysisPrescription.blood_flow_volume)
  4027. // },
  4028. // 'dialysisPrescription.replacement_flow': function () {
  4029. // console.log("血流量",this.dialysisPrescription.replacement_flow)
  4030. // this.dialysisPrescription.replacement_flow = this.dialysisPrescription.replacement_flow
  4031. // },
  4032. 'dialysisPrescription.dialysis_duration_hour': function() {
  4033. let dialysis_duration_minute = 0
  4034. let dialysis_duration_hour = 0
  4035. let duration = 0
  4036. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4037. dialysis_duration_minute = 0
  4038. } else {
  4039. dialysis_duration_minute = this.dialysisPrescription
  4040. .dialysis_duration_minute
  4041. }
  4042. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4043. dialysis_duration_hour = 0
  4044. } else {
  4045. dialysis_duration_hour = this.dialysisPrescription
  4046. .dialysis_duration_hour
  4047. }
  4048. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  4049. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
  4050. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4051. this.dialysisPrescription.anticoagulant_zongliang = ''
  4052. }
  4053. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4054. },
  4055. 'dialysisPrescription.dialysis_duration_minute': function() {
  4056. let dialysis_duration_minute = 0
  4057. let dialysis_duration_hour = 0
  4058. let duration = 0
  4059. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4060. dialysis_duration_minute = 0
  4061. } else {
  4062. dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
  4063. }
  4064. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4065. dialysis_duration_hour = 0
  4066. } else {
  4067. dialysis_duration_hour = this.dialysisPrescription
  4068. .dialysis_duration_hour
  4069. }
  4070. duration =
  4071. parseFloat(dialysis_duration_hour) +
  4072. parseFloat(dialysis_duration_minute) / 60
  4073. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration,
  4074. this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount
  4075. )
  4076. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4077. this.dialysisPrescription.anticoagulant_zongliang = ''
  4078. }
  4079. },
  4080. 'dialysisPrescription.anticoagulant_shouji': function() {
  4081. let dialysis_duration_minute = 0
  4082. let dialysis_duration_hour = 0
  4083. let duration = 0
  4084. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4085. dialysis_duration_minute = 0
  4086. } else {
  4087. dialysis_duration_minute = this.dialysisPrescription
  4088. .dialysis_duration_minute
  4089. }
  4090. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4091. dialysis_duration_hour = 0
  4092. } else {
  4093. dialysis_duration_hour = this.dialysisPrescription
  4094. .dialysis_duration_hour
  4095. }
  4096. duration =
  4097. parseFloat(dialysis_duration_hour) +
  4098. parseFloat(dialysis_duration_minute) / 60
  4099. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  4100. 1,
  4101. this.dialysisPrescription.anticoagulant_shouji,
  4102. duration,
  4103. this.dialysisPrescription.anticoagulant_weichi,
  4104. this.dialysisPrescription.add_amount,
  4105. this.dialysisPrescription.reduce_amount
  4106. )
  4107. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4108. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4109. this.dialysisPrescription.anticoagulant_zongliang = ''
  4110. }
  4111. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  4112. this.dialysisPrescription.anticoagulant_zongliang = ""
  4113. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  4114. }
  4115. },
  4116. 'dialysisPrescription.anticoagulant_weichi': function() {
  4117. let dialysis_duration_minute = 0
  4118. let dialysis_duration_hour = 0
  4119. let duration = 0
  4120. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4121. dialysis_duration_minute = 0
  4122. } else {
  4123. dialysis_duration_minute = this.dialysisPrescription
  4124. .dialysis_duration_minute
  4125. }
  4126. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4127. dialysis_duration_hour = 0
  4128. } else {
  4129. dialysis_duration_hour = this.dialysisPrescription
  4130. .dialysis_duration_hour
  4131. }
  4132. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  4133. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
  4134. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4135. this.dialysisPrescription.anticoagulant_zongliang = ''
  4136. }
  4137. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4138. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  4139. this.dialysisPrescription.anticoagulant_zongliang = ""
  4140. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  4141. }
  4142. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4143. },
  4144. 'prescription.id': {
  4145. immediate: true,
  4146. deep: true,
  4147. handler(oldVal, newVal) {
  4148. if (oldVal == newVal) {
  4149. for (var index in this.dialysisPrescription) {
  4150. this.dialysisPrescription[index] = this.prescription[index]
  4151. }
  4152. if (this.prescription['dialysate_formulation'] == 0) {
  4153. this.dialysisPrescription['dialysate_formulation'] = ''
  4154. }
  4155. if (this.prescription['anticoagulant'] == 0) {
  4156. this.dialysisPrescription['anticoagulant'] = ''
  4157. }
  4158. if (this.prescription['dialysis_duration_hour'] == 0) {
  4159. this.dialysisPrescription['dialysis_duration_hour'] = ''
  4160. }
  4161. if (this.prescription['dialysis_duration_minute'] == 0) {
  4162. this.dialysisPrescription['dialysis_duration_minute'] = ''
  4163. }
  4164. if (this.prescription['blood_flow_volume'] == 0) {
  4165. this.dialysisPrescription['blood_flow_volume'] = ''
  4166. }
  4167. if (this.prescription['target_ultrafiltration'] == 0) {
  4168. this.dialysisPrescription['target_ultrafiltration'] = ''
  4169. }
  4170. if (this.prescription['dialysate_temperature'] == 0) {
  4171. this.dialysisPrescription['dialysate_temperature'] = ''
  4172. }
  4173. if (this.prescription['anticoagulant_shouji'] == 0) {
  4174. this.dialysisPrescription['anticoagulant_shouji'] = 0
  4175. }
  4176. if (this.prescription['anticoagulant_weichi'] == 0) {
  4177. this.dialysisPrescription['anticoagulant_weichi'] = 0
  4178. }
  4179. if (this.prescription['anticoagulant_zongliang'] == 0) {
  4180. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  4181. }
  4182. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  4183. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  4184. }
  4185. if (this.prescription['kalium'] == 0) {
  4186. this.dialysisPrescription['kalium'] = ''
  4187. }
  4188. if (this.prescription['sodium'] == 0) {
  4189. this.dialysisPrescription['sodium'] = ''
  4190. }
  4191. if (this.prescription['calcium'] == 0) {
  4192. this.dialysisPrescription['calcium'] = ''
  4193. }
  4194. if (this.prescription['bicarbonate'] == 0) {
  4195. this.dialysisPrescription['bicarbonate'] = ''
  4196. }
  4197. if (this.prescription['glucose'] == 0) {
  4198. this.dialysisPrescription['glucose'] = ''
  4199. }
  4200. if (this.prescription['dialysate_flow'] == 0) {
  4201. this.dialysisPrescription['dialysate_flow'] = ''
  4202. }
  4203. if (this.prescription['conductivity'] == 0) {
  4204. this.dialysisPrescription['conductivity'] = ''
  4205. }
  4206. if (this.prescription['replacement_total'] == 0) {
  4207. this.dialysisPrescription['replacement_total'] = ''
  4208. }
  4209. if (this.prescription['target_ktv'] == 0) {
  4210. this.dialysisPrescription['target_ktv'] = ''
  4211. }
  4212. }
  4213. if (this.prescription.id > 0) {
  4214. for (var index in this.dialysisPrescription) {
  4215. this.dialysisPrescription[index] = this.prescription[index]
  4216. }
  4217. if (this.prescription['dialysate_formulation'] == 0) {
  4218. this.dialysisPrescription['dialysate_formulation'] = ''
  4219. }
  4220. if (this.prescription['anticoagulant'] == 0) {
  4221. this.dialysisPrescription['anticoagulant'] = ''
  4222. }
  4223. if (this.prescription['dialysis_duration_hour'] == 0) {
  4224. this.dialysisPrescription['dialysis_duration_hour'] = ''
  4225. }
  4226. if (this.prescription['dialysis_duration_minute'] == 0) {
  4227. this.dialysisPrescription['dialysis_duration_minute'] = ''
  4228. }
  4229. if (this.prescription['blood_flow_volume'] == 0) {
  4230. this.dialysisPrescription['blood_flow_volume'] = ''
  4231. }
  4232. if (this.prescription['target_ultrafiltration'] == 0) {
  4233. this.dialysisPrescription['target_ultrafiltration'] = ''
  4234. }
  4235. if (this.prescription['dialysate_temperature'] == 0) {
  4236. this.dialysisPrescription['dialysate_temperature'] = ''
  4237. }
  4238. if (this.prescription['anticoagulant_shouji'] == 0) {
  4239. this.dialysisPrescription['anticoagulant_shouji'] = 0
  4240. }
  4241. if (this.prescription['anticoagulant_weichi'] == 0) {
  4242. this.dialysisPrescription['anticoagulant_weichi'] = 0
  4243. }
  4244. if (this.prescription['anticoagulant_zongliang'] == 0) {
  4245. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  4246. }
  4247. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  4248. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  4249. }
  4250. if (this.prescription['kalium'] == 0) {
  4251. this.dialysisPrescription['kalium'] = ''
  4252. }
  4253. if (this.prescription['sodium'] == 0) {
  4254. this.dialysisPrescription['sodium'] = ''
  4255. }
  4256. if (this.prescription['calcium'] == 0) {
  4257. this.dialysisPrescription['calcium'] = ''
  4258. }
  4259. if (this.prescription['bicarbonate'] == 0) {
  4260. this.dialysisPrescription['bicarbonate'] = ''
  4261. }
  4262. if (this.prescription['glucose'] == 0) {
  4263. this.dialysisPrescription['glucose'] = ''
  4264. }
  4265. if (this.prescription['dialysate_flow'] == 0) {
  4266. this.dialysisPrescription['dialysate_flow'] = ''
  4267. }
  4268. if (this.prescription['conductivity'] == 0) {
  4269. this.dialysisPrescription['conductivity'] = ''
  4270. }
  4271. if (this.prescription['replacement_total'] == 0) {
  4272. this.dialysisPrescription['replacement_total'] = ''
  4273. }
  4274. if (this.prescription['target_ktv'] == 0) {
  4275. this.dialysisPrescription['target_ktv'] = ''
  4276. }
  4277. } else if (this.prescription.id == 0) {
  4278. for (var index in this.dialysisPrescription) {
  4279. this.dialysisPrescription[index] = this.prescription[index]
  4280. }
  4281. if (this.prescription['dialysate_formulation'] == 0) {
  4282. this.dialysisPrescription['dialysate_formulation'] = ''
  4283. }
  4284. if (this.prescription['anticoagulant'] == 0) {
  4285. this.dialysisPrescription['anticoagulant'] = ''
  4286. }
  4287. if (this.prescription['dialysis_duration_hour'] == 0) {
  4288. this.dialysisPrescription['dialysis_duration_hour'] = ''
  4289. }
  4290. if (this.prescription['dialysis_duration_minute'] == 0) {
  4291. this.dialysisPrescription['dialysis_duration_minute'] = ''
  4292. }
  4293. if (this.prescription['blood_flow_volume'] == 0) {
  4294. this.dialysisPrescription['blood_flow_volume'] = ''
  4295. }
  4296. if (this.prescription['target_ultrafiltration'] == 0) {
  4297. this.dialysisPrescription['target_ultrafiltration'] = ''
  4298. }
  4299. if (this.prescription['dialysate_temperature'] == 0) {
  4300. this.dialysisPrescription['dialysate_temperature'] = ''
  4301. }
  4302. if (this.prescription['anticoagulant_shouji'] == 0) {
  4303. this.dialysisPrescription['anticoagulant_'] = 0
  4304. }
  4305. if (this.prescription['anticoagulant_weichi'] == 0) {
  4306. this.dialysisPrescription['anticoagulant_weichi'] = 0
  4307. }
  4308. if (this.prescription['anticoagulant_zongliang'] == 0) {
  4309. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  4310. }
  4311. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  4312. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  4313. }
  4314. if (this.prescription['kalium'] == 0) {
  4315. this.dialysisPrescription['kalium'] = ''
  4316. }
  4317. if (this.prescription['sodium'] == 0) {
  4318. this.dialysisPrescription['sodium'] = ''
  4319. }
  4320. if (this.prescription['calcium'] == 0) {
  4321. this.dialysisPrescription['calcium'] = ''
  4322. }
  4323. if (this.prescription['bicarbonate'] == 0) {
  4324. this.dialysisPrescription['bicarbonate'] = ''
  4325. }
  4326. if (this.prescription['glucose'] == 0) {
  4327. this.dialysisPrescription['glucose'] = ''
  4328. }
  4329. if (this.prescription['dialysate_flow'] == 0) {
  4330. this.dialysisPrescription['dialysate_flow'] = ''
  4331. }
  4332. if (this.prescription['conductivity'] == 0) {
  4333. this.dialysisPrescription['conductivity'] = ''
  4334. }
  4335. if (this.prescription['replacement_total'] == 0) {
  4336. this.dialysisPrescription['replacement_total'] = ''
  4337. }
  4338. if (this.prescription['target_ktv'] == 0) {
  4339. this.dialysisPrescription['target_ktv'] = ''
  4340. }
  4341. }
  4342. }
  4343. },
  4344. 'solution.id': function() {
  4345. if (this.solution.id > 0) {
  4346. if (
  4347. this.prescription != null &&
  4348. typeof this.prescription.id !== 'undefined' &&
  4349. this.prescription.id > 0
  4350. ) {
  4351. for (const key in this.prescription) {
  4352. this.dialysisPrescription[key] = this.prescription[key]
  4353. }
  4354. if (this.prescription['dialysate_formulation'] == 0) {
  4355. this.dialysisPrescription['dialysate_formulation'] = ''
  4356. }
  4357. if (this.prescription['anticoagulant'] == 0) {
  4358. this.dialysisPrescription['anticoagulant'] = ''
  4359. }
  4360. if (this.prescription['dialysis_duration_hour'] == 0) {
  4361. this.dialysisPrescription['dialysis_duration_hour'] = ''
  4362. }
  4363. if (this.prescription['dialysis_duration_minute'] == 0) {
  4364. this.dialysisPrescription['dialysis_duration_minute'] = ''
  4365. }
  4366. if (this.prescription['blood_flow_volume'] == 0) {
  4367. this.dialysisPrescription['blood_flow_volume'] = ''
  4368. }
  4369. if (this.prescription['target_ultrafiltration'] == 0) {
  4370. this.dialysisPrescription['target_ultrafiltration'] = ''
  4371. }
  4372. if (this.prescription['dialysate_temperature'] == 0) {
  4373. this.dialysisPrescription['dialysate_temperature'] = ''
  4374. }
  4375. if (this.prescription['anticoagulant_shouji'] == 0) {
  4376. this.dialysisPrescription['anticoagulant_shouji'] = 0
  4377. }
  4378. if (this.prescription['anticoagulant_weichi'] == 0) {
  4379. this.dialysisPrescription['anticoagulant_weichi'] = 0
  4380. }
  4381. if (this.prescription['anticoagulant_zongliang'] == 0) {
  4382. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  4383. }
  4384. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  4385. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  4386. }
  4387. if (this.prescription['kalium'] == 0) {
  4388. this.dialysisPrescription['kalium'] = ''
  4389. }
  4390. if (this.prescription['sodium'] == 0) {
  4391. this.dialysisPrescription['sodium'] = ''
  4392. }
  4393. if (this.prescription['calcium'] == 0) {
  4394. this.dialysisPrescription['calcium'] = ''
  4395. }
  4396. if (this.prescription['bicarbonate'] == 0) {
  4397. this.dialysisPrescription['bicarbonate'] = ''
  4398. }
  4399. if (this.prescription['glucose'] == 0) {
  4400. this.dialysisPrescription['glucose'] = ''
  4401. }
  4402. if (this.prescription['dialysate_flow'] == 0) {
  4403. this.dialysisPrescription['dialysate_flow'] = ''
  4404. }
  4405. if (this.prescription['conductivity'] == 0) {
  4406. this.dialysisPrescription['conductivity'] = ''
  4407. }
  4408. if (this.prescription['replacement_total'] == 0) {
  4409. this.dialysisPrescription['replacement_total'] = ''
  4410. }
  4411. if (this.prescription['target_ktv'] == 0) {
  4412. this.dialysisPrescription['target_ktv'] = ''
  4413. }
  4414. } else if (
  4415. this.solution != null &&
  4416. typeof this.solution.id !== 'undefined' &&
  4417. this.solution.id
  4418. ) {
  4419. for (const key in this.solution) {
  4420. this.dialysisPrescription[key] = this.solution[key]
  4421. }
  4422. if (this.solution['dialysate_formulation'] == 0) {
  4423. this.dialysisPrescription['dialysate_formulation'] = ''
  4424. }
  4425. if (this.solution['anticoagulant'] == 0) {
  4426. this.dialysisPrescription['anticoagulant'] = ''
  4427. }
  4428. if (this.solution['dialysis_duration_hour'] == 0) {
  4429. this.dialysisPrescription['dialysis_duration_hour'] = ''
  4430. }
  4431. if (this.solution['dialysis_duration_minute'] == 0) {
  4432. this.dialysisPrescription['dialysis_duration_minute'] = ''
  4433. }
  4434. if (this.solution['blood_flow_volume'] == 0) {
  4435. this.dialysisPrescription['blood_flow_volume'] = ''
  4436. }
  4437. if (this.solution['target_ultrafiltration'] == 0) {
  4438. this.dialysisPrescription['target_ultrafiltration'] = ''
  4439. }
  4440. if (this.solution['dialysate_temperature'] == 0) {
  4441. this.dialysisPrescription['dialysate_temperature'] = ''
  4442. }
  4443. if (this.solution['anticoagulant_shouji'] == 0) {
  4444. this.dialysisPrescription['anticoagulant_shouji'] = 0
  4445. }
  4446. if (this.solution['anticoagulant_weichi'] == 0) {
  4447. this.dialysisPrescription['anticoagulant_weichi'] = 0
  4448. }
  4449. if (this.solution['anticoagulant_zongliang'] == 0) {
  4450. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  4451. }
  4452. if (this.solution['anticoagulant_gaijiliang'] == 0) {
  4453. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  4454. }
  4455. if (this.solution['kalium'] == 0) {
  4456. this.dialysisPrescription['kalium'] = ''
  4457. }
  4458. if (this.solution['sodium'] == 0) {
  4459. this.dialysisPrescription['sodium'] = ''
  4460. }
  4461. if (this.solution['calcium'] == 0) {
  4462. this.dialysisPrescription['calcium'] = ''
  4463. }
  4464. if (this.solution['bicarbonate'] == 0) {
  4465. this.dialysisPrescription['bicarbonate'] = ''
  4466. }
  4467. if (this.solution['glucose'] == 0) {
  4468. this.dialysisPrescription['glucose'] = ''
  4469. }
  4470. if (this.solution['dialysate_flow'] == 0) {
  4471. this.dialysisPrescription['dialysate_flow'] = ''
  4472. }
  4473. if (this.solution['conductivity'] == 0) {
  4474. this.dialysisPrescription['conductivity'] = ''
  4475. }
  4476. if (this.solution['replacement_total'] == 0) {
  4477. this.dialysisPrescription['replacement_total'] = ''
  4478. }
  4479. if (this.solution['target_ktv'] == 0) {
  4480. this.dialysisPrescription['target_ktv'] = ''
  4481. }
  4482. }
  4483. }
  4484. },
  4485. 'dialysisPrescription.add_amount': function() {
  4486. let dialysis_duration_minute = 0
  4487. let dialysis_duration_hour = 0
  4488. let duration = 0
  4489. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4490. dialysis_duration_minute = 0
  4491. } else {
  4492. dialysis_duration_minute = this.dialysisPrescription
  4493. .dialysis_duration_minute
  4494. }
  4495. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4496. dialysis_duration_hour = 0
  4497. } else {
  4498. dialysis_duration_hour = this.dialysisPrescription
  4499. .dialysis_duration_hour
  4500. }
  4501. duration =
  4502. parseFloat(dialysis_duration_hour) +
  4503. parseFloat(dialysis_duration_minute) / 60
  4504. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  4505. 1,
  4506. this.dialysisPrescription.anticoagulant_shouji,
  4507. duration,
  4508. this.dialysisPrescription.anticoagulant_weichi,
  4509. this.dialysisPrescription.add_amount,
  4510. this.dialysisPrescription.reduce_amount
  4511. )
  4512. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4513. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4514. this.dialysisPrescription.anticoagulant_zongliang = ''
  4515. }
  4516. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  4517. this.dialysisPrescription.anticoagulant_zongliang = ""
  4518. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  4519. }
  4520. },
  4521. 'dialysisPrescription.reduce_amount': function() {
  4522. let dialysis_duration_minute = 0
  4523. let dialysis_duration_hour = 0
  4524. let duration = 0
  4525. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4526. dialysis_duration_minute = 0
  4527. } else {
  4528. dialysis_duration_minute = this.dialysisPrescription
  4529. .dialysis_duration_minute
  4530. }
  4531. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4532. dialysis_duration_hour = 0
  4533. } else {
  4534. dialysis_duration_hour = this.dialysisPrescription
  4535. .dialysis_duration_hour
  4536. }
  4537. duration =
  4538. parseFloat(dialysis_duration_hour) +
  4539. parseFloat(dialysis_duration_minute) / 60
  4540. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  4541. 1,
  4542. this.dialysisPrescription.anticoagulant_shouji,
  4543. duration,
  4544. this.dialysisPrescription.anticoagulant_weichi,
  4545. this.dialysisPrescription.add_amount,
  4546. this.dialysisPrescription.reduce_amount
  4547. )
  4548. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4549. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4550. this.dialysisPrescription.anticoagulant_zongliang = ''
  4551. }
  4552. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  4553. this.dialysisPrescription.anticoagulant_zongliang = ""
  4554. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  4555. }
  4556. },
  4557. stockType: function() {
  4558. console.log('stockType', this.stockType)
  4559. var arr = []
  4560. var arrTwo = []
  4561. var arrThree = []
  4562. for (let i = 0; i < this.stockType.length; i++) {
  4563. if (this.stockType[i].stock_attribute == 2) {
  4564. arr.push(this.stockType[i])
  4565. }
  4566. if (this.stockType[i].stock_attribute == 3) {
  4567. arrTwo.push(this.stockType[i])
  4568. }
  4569. if(this.stockType[i].stock_attribute == 4){
  4570. arrThree.push(this.stockType[i])
  4571. }
  4572. }
  4573. var dialyzator = []
  4574. var irrigation = []
  4575. var dialysis_strainer = []
  4576. for (let i = 0; i < arr.length; i++) {
  4577. for (let j = 0; j < arr[i].GoodInfo.length; j++) {
  4578. dialyzator.push(arr[i].GoodInfo[j])
  4579. }
  4580. }
  4581. this.dialyzers = dialyzator
  4582. for (let i = 0; i < arrTwo.length; i++) {
  4583. for (let j = 0; j < arrTwo[i].GoodInfo.length; j++) {
  4584. irrigation.push(arrTwo[i].GoodInfo[j])
  4585. }
  4586. }
  4587. this.irrigations = irrigation
  4588. for(let i=0;i<arrThree.length;i++){
  4589. for (let j = 0; j < arrThree[i].GoodInfo.length; j++) {
  4590. dialysis_strainer.push(arrThree[i].GoodInfo[j])
  4591. }
  4592. }
  4593. this.dialysisStrainerList = dialysis_strainer
  4594. },
  4595. admin_user_id:function(){
  4596. console.log("处方医生",this.admins)
  4597. if(this.admins.length > 0 ){
  4598. for(let i=0;i<this.admins.length;i++){
  4599. this.adminRoles.push(this.admins[i])
  4600. }
  4601. }
  4602. console.log(" 人员",this.adminRoles)
  4603. }
  4604. },
  4605. created() {
  4606. console.log('weretrertf',this.dialysisPrescription.sodium);
  4607. console.log("schedual232323323232323232",this.adminRoles)
  4608. this.illnessList = getDataConfig('hemodialysis', 'illness')
  4609. this.plasmaSeparatorList = getDataConfig('hemodialysis', 'plasma_separator')
  4610. this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis', 'bilirubin_adsorption_column')
  4611. this.educationList = getDataConfig('dialysis_remark', 'dialysis_remark')
  4612. console.log("透析准备232323232323wo",this.educationList)
  4613. }
  4614. }
  4615. </script>
  4616. <style rel="stylesheet/scss" lang="scss" scoped>
  4617. .el-checkbox,
  4618. .el-checkbox__input {
  4619. vertical-align: middle;
  4620. }
  4621. .newLine {
  4622. display: flex;
  4623. justify-content: space-between;
  4624. height: 40px;
  4625. line-height: 40px;
  4626. border-bottom: 1px solid #ccc;
  4627. color: #303133;
  4628. }
  4629. .warnTxt {
  4630. text-align: center;
  4631. margin: 0 auto;
  4632. background: #faa331;
  4633. max-width: 240px;
  4634. padding: 10px 20px;
  4635. border-radius: 4px;
  4636. margin-bottom: 10px;
  4637. color: #fff;
  4638. }
  4639. </style>
  4640. <style lang="scss">
  4641. .newDialog {
  4642. .el-dialog__body {
  4643. padding: 10px 20px 30px;
  4644. }
  4645. }
  4646. </style>