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

dialysisPrescriptionDialog.vue 232KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058
  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="isShow('冲洗量') && 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="isShow('冲洗时间') && 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. console.log("---------",this.targetAdvices)
  2524. if(this.targetAdvices!=null && this.targetAdvices.length >0){
  2525. for (let i = 0; i < this.targetAdvices.length; i++) {
  2526. if(this.targetAdvices[i].week_day.indexOf(total_day)!=-1){
  2527. this.targetAdvices[i].isCheck = 1
  2528. }
  2529. }
  2530. }
  2531. for (let i = 0; i < this.targetAdvices.length; i++) {
  2532. if (this.targetAdvices[i].isCheck == 1) {
  2533. this.checkedCities.push(this.targetAdvices[i].id)
  2534. }
  2535. }
  2536. if(admins.length > 0 ){
  2537. for(let i=0;i<admins.length;i++){
  2538. this.adminRoles.push(admins[i])
  2539. }
  2540. }
  2541. console.log("admin_user_+id2332323223332", this.adminRoles)
  2542. },
  2543. hide() {
  2544. this.isVisibility = false
  2545. },
  2546. changeThisAnticoagulant: function(val) {
  2547. console.log("val",val)
  2548. var thismode = val
  2549. if (isNaN(thismode) || thismode <= 0) {
  2550. return false
  2551. }
  2552. // if (val != 12 && val!=1) {
  2553. // this.anticoagulant = this.anticoagulantsConfit[thismode - 1]
  2554. // }
  2555. // if (val == 12 || val == 1) {
  2556. // this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
  2557. // console.log("抗凝剂",this.anticoagulant)
  2558. // }
  2559. if (
  2560. typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
  2561. this.anticoagulantsConfit[thismode] == null
  2562. ) {
  2563. return false
  2564. }
  2565. this.anticoagulant = this.anticoagulantsConfit[thismode]
  2566. 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) {
  2567. if(val == 2){
  2568. this.anticoagulant.shouji_unit = 'mg'
  2569. }else{
  2570. this.anticoagulant.shouji_unit = 'iu'
  2571. }
  2572. this.anticoagulant.weichi_unit = 'mg/h'
  2573. this.anticoagulant.zongliang_unit = 'mg'
  2574. }
  2575. if (this.$store.getters.xt_user.template_info.template_id == 27 && val == 4) {
  2576. this.anticoagulant.shouji_unit = 'ml'
  2577. this.anticoagulant.weichi_unit = 'ml'
  2578. this.anticoagulant.zongliang_unit = 'ml'
  2579. }
  2580. 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){
  2581. this.dialysisPrescription.anticoagulant_zongliang = ""
  2582. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  2583. }
  2584. },
  2585. handleCommit (formName) {
  2586. this.$refs[formName].validate((valid)=>{
  2587. if(valid){
  2588. if(!this.isLoading){
  2589. if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
  2590. this.dialysisPrescription.anticoagulant = 3
  2591. }
  2592. if (this.dialysisPrescription.anticoagulant == 1) {
  2593. this.dialysisPrescription.anticoagulant_weichi = '0'
  2594. this.dialysisPrescription.anticoagulant_shouji = '0'
  2595. this.dialysisPrescription.anticoagulant_zongliang = '0'
  2596. }
  2597. // if (this.$store.getters.xt_user.template_info.template_id == 6) {
  2598. // if (this.dialysisPrescription.mode_id == 2) {
  2599. // if (
  2600. // this.dialysisPrescription.displace_liqui_part == 0 ||
  2601. // this.dialysisPrescription.displace_liqui_part == -2 ||
  2602. // this.dialysisPrescription.displace_liqui_value == 0 ||
  2603. // this.dialysisPrescription.displace_liqui_value == ''
  2604. // || this.dialysisPrescription.replacement_total == 0 ||
  2605. // this.dialysisPrescription.replacement_total == '' ||
  2606. // this.dialysisPrescription.displace_speed == 0 ||
  2607. // this.dialysisPrescription.displace_speed == ''
  2608. // ) {
  2609. // this.$message.error('HDF模式下置换液和置换液总量不能为空!')
  2610. // return
  2611. // }
  2612. // }
  2613. // }
  2614. if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
  2615. this.dialysisPrescription.displace_liqui_part = 0
  2616. this.dialysisPrescription.displace_liqui_value = 0
  2617. this.dialysisPrescription.replacement_total = 0
  2618. this.dialysisPrescription.displace_speed = 0
  2619. console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
  2620. console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
  2621. }
  2622. this.is_pre = 1
  2623. if (this.prescription.id == 0) {
  2624. if (this.is_open == 0) {
  2625. if (this.patient.id <= 0) {
  2626. this.$message.error('没有选择患者')
  2627. this.loading = false
  2628. return
  2629. }
  2630. var arr = this.dialysisPrescription
  2631. const ParamsQuery = arr
  2632. // console.log('night', ParamsQuery)
  2633. ParamsQuery['patient'] = this.patient.id
  2634. ParamsQuery['record_date'] = this.record_date
  2635. ParamsQuery['mode'] = '1'
  2636. ParamsQuery['patient_id'] = this.patient.id
  2637. console.log('第一', ParamsQuery)
  2638. postPrescription(ParamsQuery).then(response => {
  2639. if (response.data.state == 0) {
  2640. this.$message.error(response.data.msg)
  2641. if(response.data.code == 600000008){
  2642. this.infoDialogVisible = true
  2643. }
  2644. return false
  2645. } else {
  2646. this.$notify({
  2647. title: '成功',
  2648. message: '提交成功',
  2649. type: 'success',
  2650. duration: 2000
  2651. })
  2652. const prescription_resp = response.data.data.prescription
  2653. var prescription = this.prescription
  2654. for (var index in prescription_resp) {
  2655. // prescription[index] = prescription_resp[index];
  2656. this.$set(prescription, index, prescription_resp[index])
  2657. }
  2658. this.hide()
  2659. }
  2660. })
  2661. } else if (this.is_open == 1) {
  2662. if (this.targetAdvices.length > 0) {
  2663. // 弹框推送提醒
  2664. this.isShowRemindAdvice = true
  2665. this.isVisibility = false
  2666. } else {
  2667. if (this.patient.id <= 0) {
  2668. this.$message.error('没有选择患者')
  2669. this.loading = false
  2670. return
  2671. }
  2672. var arr = this.dialysisPrescription
  2673. const ParamsQuery = arr
  2674. // console.log('ParamsQuerytwo', ParamsQuery)
  2675. ParamsQuery['patient'] = this.patient.id
  2676. ParamsQuery['record_date'] = this.record_date
  2677. ParamsQuery['mode'] = '1'
  2678. ParamsQuery['patient_id'] = this.patient.id
  2679. console.log('第二')
  2680. postPrescription(ParamsQuery).then(response => {
  2681. if (response.data.state == 0) {
  2682. this.$message.error(response.data.msg)
  2683. if(response.data.code == 600000008){
  2684. this.infoDialogVisible = true
  2685. }
  2686. return false
  2687. } else {
  2688. this.$notify({
  2689. title: '成功',
  2690. message: '提交成功',
  2691. type: 'success',
  2692. duration: 2000
  2693. })
  2694. const prescription_resp = response.data.data.prescription
  2695. var prescription = this.prescription
  2696. for (var index in prescription_resp) {
  2697. // prescription[index] = prescription_resp[index];
  2698. this.$set(prescription, index, prescription_resp[index])
  2699. }
  2700. this.hide()
  2701. }
  2702. })
  2703. }
  2704. } else if (this.is_open == 2) {
  2705. var date = new Date()
  2706. var hour =
  2707. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2708. var minute =
  2709. date.getMinutes() < 10
  2710. ? '0' + date.getMinutes()
  2711. : date.getMinutes()
  2712. if (this.waitUploadAdvices.length > 0) {
  2713. if (this.patient.id <= 0) {
  2714. this.$message.error('没有选择患者')
  2715. this.loading = false
  2716. return
  2717. }
  2718. var arr = this.dialysisPrescription
  2719. const ParamsQuery = arr
  2720. console.log('paramsquerythree', ParamsQuery)
  2721. ParamsQuery['patient'] = this.patient.id
  2722. ParamsQuery['record_date'] = this.record_date
  2723. ParamsQuery['mode'] = '1'
  2724. ParamsQuery['patient_id'] = this.patient.id
  2725. console.log('第三')
  2726. postPrescription(ParamsQuery).then(response => {
  2727. if (response.data.state == 0) {
  2728. this.$message.error(response.data.msg)
  2729. if(response.data.code == 600000008){
  2730. this.infoDialogVisible = true
  2731. }
  2732. return false
  2733. } else {
  2734. this.$notify({
  2735. title: '成功',
  2736. message: '提交成功',
  2737. type: 'success',
  2738. duration: 2000
  2739. })
  2740. const params = {
  2741. advices: this.waitUploadAdvices,
  2742. advice_date: uParseTime(
  2743. this.$route.query.date,
  2744. '{y}-{m}-{d}'
  2745. ),
  2746. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  2747. advice_type: this.waitUploadAdvices[0].advice_type,
  2748. parent_id: this.patient_id,
  2749. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  2750. start_time:
  2751. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  2752. ' ' +
  2753. this.advice_start_time,
  2754. remark: ''
  2755. }
  2756. console.log('params--------', params)
  2757. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
  2758. rs => {
  2759. var resp = rs.data
  2760. if (resp.state == 1) {
  2761. // this.doctorAdvices = resp.data.advices
  2762. this.$emit('advice')
  2763. } else {
  2764. if(resp.code == 600000008){
  2765. this.infoDialogVisible = true
  2766. }
  2767. }
  2768. }
  2769. )
  2770. const prescription_resp = response.data.data.prescription
  2771. var prescription = this.prescription
  2772. for (var index in prescription_resp) {
  2773. // prescription[index] = prescription_resp[index];
  2774. this.$set(prescription, index, prescription_resp[index])
  2775. }
  2776. this.hide()
  2777. }
  2778. })
  2779. } else {
  2780. if (this.patient.id <= 0) {
  2781. this.$message.error('没有选择患者')
  2782. this.loading = false
  2783. return
  2784. }
  2785. var arr = this.dialysisPrescription
  2786. const ParamsQuery = arr
  2787. // console.log('paramsqueryfour', ParamsQuery)
  2788. // console.log('创建者', this.prescription.creater)
  2789. // if (this.prescription.creater <= 0) {
  2790. // mode = 1;
  2791. // } else {
  2792. // mode = 2;
  2793. // }
  2794. ParamsQuery['patient'] = this.patient.id
  2795. ParamsQuery['record_date'] = this.record_date
  2796. // console.log(this.prescription);
  2797. console.log('第四')
  2798. ParamsQuery['patient_id'] = this.patient.id
  2799. postPrescription(ParamsQuery).then(response => {
  2800. if (response.data.state == 0) {
  2801. this.$message.error(response.data.msg)
  2802. if(response.data.code == 600000008){
  2803. this.infoDialogVisible = true
  2804. }
  2805. return false
  2806. } else {
  2807. this.$notify({
  2808. title: '成功',
  2809. message: '提交成功',
  2810. type: 'success',
  2811. duration: 2000
  2812. })
  2813. const prescription_resp = response.data.data.prescription
  2814. // console.log("aaaaaaa", prescription_resp);
  2815. var prescription = this.prescription
  2816. for (var index in prescription_resp) {
  2817. // prescription[index] = prescription_resp[index];
  2818. this.$set(prescription, index, prescription_resp[index])
  2819. }
  2820. this.hide()
  2821. }
  2822. })
  2823. }
  2824. }
  2825. } else {
  2826. if (this.prescription.creater == 0) {
  2827. if (this.is_open == 0) {
  2828. if (this.patient.id <= 0) {
  2829. this.$message.error('没有选择患者')
  2830. this.loading = false
  2831. return
  2832. }
  2833. var arr = this.dialysisPrescription
  2834. // console.log('arr', arr)
  2835. const ParamsQuery = arr
  2836. // console.log('paramsqueryfive', ParamsQuery)
  2837. ParamsQuery['patient'] = this.patient.id
  2838. ParamsQuery['record_date'] = this.record_date
  2839. ParamsQuery['mode'] = '1'
  2840. ParamsQuery['patient_id'] = this.patient.id
  2841. console.log('第五')
  2842. postPrescription(ParamsQuery).then(response => {
  2843. if (response.data.state == 0) {
  2844. this.$message.error(response.data.msg)
  2845. if(response.data.code == 600000008){
  2846. this.infoDialogVisible = true
  2847. }
  2848. return false
  2849. } else {
  2850. this.$notify({
  2851. title: '成功',
  2852. message: '提交成功',
  2853. type: 'success',
  2854. duration: 2000
  2855. })
  2856. const prescription_resp = response.data.data.prescription
  2857. var prescription = this.prescription
  2858. for (var index in prescription_resp) {
  2859. // prescription[index] = prescription_resp[index];
  2860. this.$set(prescription, index, prescription_resp[index])
  2861. }
  2862. this.hide()
  2863. }
  2864. })
  2865. } else if (this.is_open == 1) {
  2866. if (this.targetAdvices.length > 0) {
  2867. // 弹框推送提醒
  2868. this.isShowRemindAdvice = true
  2869. this.isVisibility = false
  2870. } else {
  2871. if (this.patient.id <= 0) {
  2872. this.$message.error('没有选择患者')
  2873. this.loading = false
  2874. return
  2875. }
  2876. var arr = this.dialysisPrescription
  2877. // console.log('arr', arr)
  2878. const ParamsQuery = arr
  2879. // console.log('ParamsQuerysix', ParamsQuery)
  2880. ParamsQuery['patient'] = this.patient.id
  2881. ParamsQuery['record_date'] = this.record_date
  2882. ParamsQuery['mode'] = '1'
  2883. console.log('第6')
  2884. ParamsQuery['patient_id'] = this.patient.id
  2885. postPrescription(ParamsQuery).then(response => {
  2886. if (response.data.state == 0) {
  2887. this.$message.error(response.data.msg)
  2888. if(response.data.code == 600000008){
  2889. this.infoDialogVisible = true
  2890. }
  2891. return false
  2892. } else {
  2893. this.$notify({
  2894. title: '成功',
  2895. message: '提交成功',
  2896. type: 'success',
  2897. duration: 2000
  2898. })
  2899. const prescription_resp = response.data.data.prescription
  2900. var prescription = this.prescription
  2901. for (var index in prescription_resp) {
  2902. // prescription[index] = prescription_resp[index];
  2903. this.$set(prescription, index, prescription_resp[index])
  2904. }
  2905. this.hide()
  2906. }
  2907. })
  2908. }
  2909. } else if (this.is_open == 2) {
  2910. var date = new Date()
  2911. var hour =
  2912. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2913. var minute =
  2914. date.getMinutes() < 10
  2915. ? '0' + date.getMinutes()
  2916. : date.getMinutes()
  2917. if (this.waitUploadAdvices.length > 0) {
  2918. if (this.patient.id <= 0) {
  2919. this.$message.error('没有选择患者')
  2920. this.loading = false
  2921. return
  2922. }
  2923. var arr = this.dialysisPrescription
  2924. // console.log('arr', arr)
  2925. const ParamsQuery = arr
  2926. // console.log('parasmqueryseven', parasmqueryseven)
  2927. ParamsQuery['patient'] = this.patient.id
  2928. ParamsQuery['record_date'] = this.record_date
  2929. ParamsQuery['mode'] = '1'
  2930. console.log('第七')
  2931. ParamsQuery['patient_id'] = this.patient.id
  2932. postPrescription(ParamsQuery).then(response => {
  2933. if (response.data.state == 0) {
  2934. this.$message.error(response.data.msg)
  2935. if(response.data.code == 600000008){
  2936. this.infoDialogVisible = true
  2937. }
  2938. return false
  2939. } else {
  2940. this.$notify({
  2941. title: '成功',
  2942. message: '提交成功',
  2943. type: 'success',
  2944. duration: 2000
  2945. })
  2946. const params = {
  2947. advices: this.waitUploadAdvices,
  2948. advice_date: uParseTime(
  2949. this.$route.query.date,
  2950. '{y}-{m}-{d}'
  2951. ),
  2952. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  2953. advice_type: this.waitUploadAdvices[0].advice_type,
  2954. parent_id: this.patient_id,
  2955. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  2956. start_time:
  2957. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  2958. ' ' +
  2959. hour +
  2960. ':' +
  2961. minute,
  2962. remark: ''
  2963. }
  2964. CreateGroupAdvice(
  2965. this.$route.query.patient_id,
  2966. 0,
  2967. params
  2968. ).then(rs => {
  2969. var resp = rs.data
  2970. if (resp.state == 1) {
  2971. // this.doctorAdvices = resp.data.advices
  2972. this.$emit('advice')
  2973. } else {
  2974. if(resp.code == 600000008){
  2975. this.infoDialogVisible = true
  2976. }
  2977. }
  2978. })
  2979. const prescription_resp = response.data.data.prescription
  2980. var prescription = this.prescription
  2981. for (var index in prescription_resp) {
  2982. // prescription[index] = prescription_resp[index];
  2983. this.$set(prescription, index, prescription_resp[index])
  2984. }
  2985. this.hide()
  2986. }
  2987. })
  2988. } else {
  2989. if (this.patient.id <= 0) {
  2990. this.$message.error('没有选择患者')
  2991. this.loading = false
  2992. return
  2993. }
  2994. var arr = this.dialysisPrescription
  2995. // console.log('arr', arr)
  2996. const ParamsQuery = arr
  2997. // console.log('eight', ParamsQuery)
  2998. ParamsQuery['patient'] = this.patient.id
  2999. ParamsQuery['record_date'] = this.record_date
  3000. ParamsQuery['mode'] = '1'
  3001. ParamsQuery['patient_id'] = this.patient.id
  3002. console.log('第八')
  3003. postPrescription(ParamsQuery).then(response => {
  3004. if (response.data.state == 0) {
  3005. this.$message.error(response.data.msg)
  3006. if(response.data.code == 600000008){
  3007. this.infoDialogVisible = true
  3008. }
  3009. return false
  3010. } else {
  3011. this.$notify({
  3012. title: '成功',
  3013. message: '提交成功',
  3014. type: 'success',
  3015. duration: 2000
  3016. })
  3017. const prescription_resp = response.data.data.prescription
  3018. var prescription = this.prescription
  3019. for (var index in prescription_resp) {
  3020. // prescription[index] = prescription_resp[index];
  3021. this.$set(prescription, index, prescription_resp[index])
  3022. }
  3023. this.hide()
  3024. }
  3025. })
  3026. }
  3027. }
  3028. } else {
  3029. if (this.patient.id <= 0) {
  3030. this.$message.error('没有选择患者')
  3031. this.loading = false
  3032. return
  3033. }
  3034. var arr = this.dialysisPrescription
  3035. // console.log('arr', arr)
  3036. const ParamsQuery = arr
  3037. // console.log('night', ParamsQuery)
  3038. ParamsQuery['patient'] = this.patient.id
  3039. ParamsQuery['record_date'] = this.record_date
  3040. ParamsQuery['mode'] = '2'
  3041. ParamsQuery['patient_id'] = this.patient.id
  3042. if (
  3043. this.$store.getters.xt_user.user.id !=
  3044. this.dialysisPrescription.creater
  3045. ) {
  3046. ParamsQuery['mode'] = '3'
  3047. }
  3048. console.log('第九',ParamsQuery)
  3049. postPrescription(ParamsQuery).then(response => {
  3050. if (response.data.state == 0) {
  3051. this.$message.error(response.data.msg)
  3052. if(response.data.code == 600000008){
  3053. this.infoDialogVisible = true
  3054. }
  3055. return false
  3056. } else {
  3057. this.$notify({
  3058. title: '成功',
  3059. message: '提交成功',
  3060. type: 'success',
  3061. duration: 2000
  3062. })
  3063. const prescription_resp = response.data.data.prescription
  3064. var prescription = this.prescription
  3065. for (var index in prescription_resp) {
  3066. // prescription[index] = prescription_resp[index];
  3067. this.$set(prescription, index, prescription_resp[index])
  3068. }
  3069. this.hide()
  3070. }
  3071. })
  3072. }
  3073. }
  3074. }
  3075. }else {
  3076. console.log("error submit!!");
  3077. return false;
  3078. }
  3079. })
  3080. },
  3081. handleCancle: function() {
  3082. this.hide()
  3083. },
  3084. handleSolution: function(formName) {
  3085. if(this.dialysisPrescription.anticoagulant == "" || this.dialysisPrescription.anticoagulant == 0){
  3086. this.dialysisPrescription.anticoagulant = 3
  3087. }
  3088. this.$refs[formName].validate((valid)=>{
  3089. if(valid){
  3090. if(!this.isLoading){
  3091. if (this.dialysisPrescription.anticoagulant == 1) {
  3092. this.dialysisPrescription.anticoagulant_weichi = '0'
  3093. this.dialysisPrescription.anticoagulant_shouji = '0'
  3094. this.dialysisPrescription.anticoagulant_zongliang = '0'
  3095. }
  3096. // if (this.$store.getters.xt_user.template_info.template_id == 6) {
  3097. // if (this.dialysisPrescription.mode_id == 2) {
  3098. // if (
  3099. // this.dialysisPrescription.displace_liqui_part == 0 ||
  3100. // this.dialysisPrescription.displace_liqui_part == -2 ||
  3101. // this.dialysisPrescription.displace_liqui_value == 0 ||
  3102. // this.dialysisPrescription.displace_liqui_value == ''
  3103. // || this.dialysisPrescription.replacement_total == 0 ||
  3104. // this.dialysisPrescription.replacement_total == ''||
  3105. // this.dialysisPrescription.displace_speed == 0 ||
  3106. // this.dialysisPrescription.displace_speed == ''
  3107. // ) {
  3108. // this.$message.error('HDF模式下置换液和置换液总量不能为空!')
  3109. // return
  3110. // }
  3111. // }
  3112. // if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
  3113. // this.dialysisPrescription.displace_liqui_part == 0
  3114. // this.dialysisPrescription.displace_liqui_value == 0
  3115. // this.dialysisPrescription.replacement_total == 0
  3116. // this.dialysisPrescription.displace_speed == 0
  3117. // console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
  3118. // console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
  3119. // // this.dialysisPrescription.displace_liqui_part = 0
  3120. // // this.dialysisPrescription.displace_liqui_value = 0
  3121. // // this.dialysisPrescription.replacement_total = 0
  3122. // // this.dialysisPrescription.displace_speed = 0
  3123. // }
  3124. // }
  3125. this.is_pre = 2
  3126. if (this.prescription.id == 0) {
  3127. if (this.is_open == 0) {
  3128. if (this.patient.id <= 0) {
  3129. this.$message.error('没有选择患者')
  3130. this.loading = false
  3131. return
  3132. }
  3133. console.log("预充了2",this.dialysisPrescription.pre_impulse)
  3134. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3135. var arr = this.dialysisPrescription
  3136. const ParamsQuery = arr
  3137. ParamsQuery['patient'] = this.patient.id
  3138. ParamsQuery['record_date'] = this.record_date
  3139. ParamsQuery['mode'] = '1'
  3140. postSoulution(ParamsQuery).then(response => {
  3141. if (response.data.state == 0) {
  3142. this.$message.error(response.data.msg)
  3143. if(response.data.code == 600000008){
  3144. this.infoDialogVisible = true
  3145. }
  3146. return false
  3147. } else {
  3148. this.$notify({
  3149. title: '成功',
  3150. message: '提交成功',
  3151. type: 'success',
  3152. duration: 2000
  3153. })
  3154. const prescription_resp = response.data.data.prescription
  3155. const solution_resp = response.data.data.solution
  3156. var prescription = this.prescription
  3157. var solution = this.solution
  3158. for (var index in prescription_resp) {
  3159. // prescription[index] = prescription_resp[index];
  3160. this.$set(prescription, index, prescription_resp[index])
  3161. }
  3162. for (var index in solution_resp) {
  3163. // solution[index] = solution_resp[index];
  3164. this.$set(solution, index, solution_resp[index])
  3165. }
  3166. this.hide()
  3167. }
  3168. })
  3169. } else if (this.is_open == 1) {
  3170. if (this.targetAdvices.length > 0) {
  3171. // 弹框推送提
  3172. this.isShowRemindAdvice = true
  3173. this.isVisibility = false
  3174. } else {
  3175. if (this.patient.id <= 0) {
  3176. this.$message.error('没有选择患者')
  3177. this.loading = false
  3178. return
  3179. }
  3180. console.log("预充了3",this.dialysisPrescription.pre_impulse)
  3181. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3182. var arr = this.dialysisPrescription
  3183. console.log('arr3', arr)
  3184. const ParamsQuery = arr
  3185. // console.log('长期处方2', ParamsQuery)
  3186. ParamsQuery['patient'] = this.patient.id
  3187. ParamsQuery['record_date'] = this.record_date
  3188. ParamsQuery['mode'] = '1'
  3189. postSoulution(ParamsQuery).then(response => {
  3190. if (response.data.state == 0) {
  3191. this.$message.error(response.data.msg)
  3192. if(response.data.code == 600000008){
  3193. this.infoDialogVisible = true
  3194. }
  3195. return false
  3196. } else {
  3197. this.$notify({
  3198. title: '成功',
  3199. message: '提交成功',
  3200. type: 'success',
  3201. duration: 2000
  3202. })
  3203. const prescription_resp = response.data.data.prescription
  3204. const solution_resp = response.data.data.solution
  3205. var prescription = this.prescription
  3206. var solution = this.solution
  3207. for (var index in prescription_resp) {
  3208. // prescription[index] = prescription_resp[index];
  3209. this.$set(prescription, index, prescription_resp[index])
  3210. }
  3211. for (var index in solution_resp) {
  3212. // solution[index] = solution_resp[index];
  3213. this.$set(solution, index, solution_resp[index])
  3214. }
  3215. this.hide()
  3216. }
  3217. })
  3218. }
  3219. } else if (this.is_open == 2) {
  3220. var date = new Date()
  3221. var hour =
  3222. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  3223. var minute =
  3224. date.getMinutes() < 10
  3225. ? '0' + date.getMinutes()
  3226. : date.getMinutes()
  3227. if (this.waitUploadAdvices.length > 0) {
  3228. // if (this.patient.id <= 0) {
  3229. // this.$message.error('没有选择患者')
  3230. // this.loading = false
  3231. // return
  3232. // }
  3233. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3234. var arr = this.dialysisPrescription
  3235. const ParamsQuery = arr
  3236. // console.log('长期处方3', ParamsQuery)
  3237. ParamsQuery['patient'] = this.patient.id
  3238. ParamsQuery['record_date'] = this.record_date
  3239. // console.log(this.prescription)
  3240. ParamsQuery['mode'] = '1'
  3241. postPrescription(ParamsQuery).then(response => {
  3242. if (response.data.state == 0) {
  3243. this.$message.error(response.data.msg)
  3244. if(response.data.code == 600000008){
  3245. this.infoDialogVisible = true
  3246. }
  3247. return false
  3248. } else {
  3249. this.$notify({
  3250. title: '成功',
  3251. message: '提交成功',
  3252. type: 'success',
  3253. duration: 2000
  3254. })
  3255. const params = {
  3256. advices: this.waitUploadAdvices,
  3257. advice_date: uParseTime(
  3258. this.$route.query.date,
  3259. '{y}-{m}-{d}'
  3260. ),
  3261. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  3262. advice_type: this.waitUploadAdvices[0].advice_type,
  3263. parent_id: this.patient_id,
  3264. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  3265. start_time:
  3266. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  3267. ' ' +
  3268. hour +
  3269. ':' +
  3270. minute,
  3271. remark: ''
  3272. }
  3273. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
  3274. rs => {
  3275. var resp = rs.data
  3276. if (resp.state == 1) {
  3277. // this.doctorAdvices = resp.data.advices
  3278. this.$emit('advice')
  3279. } else {
  3280. if(resp.code == 600000008){
  3281. this.infoDialogVisible = true
  3282. }
  3283. }
  3284. }
  3285. )
  3286. const prescription_resp = response.data.data.prescription
  3287. var prescription = this.prescription
  3288. for (var index in prescription_resp) {
  3289. // prescription[index] = prescription_resp[index];
  3290. this.$set(prescription, index, prescription_resp[index])
  3291. }
  3292. this.hide()
  3293. }
  3294. })
  3295. } else {
  3296. if (this.patient.id <= 0) {
  3297. this.$message.error('没有选择患者')
  3298. this.loading = false
  3299. return
  3300. }
  3301. console.log("预充了5",this.dialysisPrescription.pre_impulse)
  3302. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3303. var arr = this.dialysisPrescription
  3304. console.log('arr5', arr)
  3305. const ParamsQuery = arr
  3306. // console.log('长期处方5', ParamsQuery)
  3307. ParamsQuery['patient'] = this.patient.id
  3308. ParamsQuery['record_date'] = this.record_date
  3309. ParamsQuery['mode'] = '1'
  3310. postSoulution(ParamsQuery).then(response => {
  3311. if (response.data.state == 0) {
  3312. this.$message.error(response.data.msg)
  3313. if(response.data.code == 600000008){
  3314. this.infoDialogVisible = true
  3315. }
  3316. return false
  3317. } else {
  3318. this.$notify({
  3319. title: '成功',
  3320. message: '提交成功',
  3321. type: 'success',
  3322. duration: 2000
  3323. })
  3324. const prescription_resp = response.data.data.prescription
  3325. const solution_resp = response.data.data.solution
  3326. var prescription = this.prescription
  3327. var solution = this.solution
  3328. for (var index in prescription_resp) {
  3329. // prescription[index] = prescription_resp[index];
  3330. this.$set(prescription, index, prescription_resp[index])
  3331. }
  3332. for (var index in solution_resp) {
  3333. // solution[index] = solution_resp[index];
  3334. this.$set(solution, index, solution_resp[index])
  3335. }
  3336. this.hide()
  3337. }
  3338. })
  3339. }
  3340. }
  3341. } else {
  3342. if (this.prescription.creater == 0) {
  3343. if (this.is_open == 0) {
  3344. if (this.patient.id <= 0) {
  3345. this.$message.error('没有选择患者')
  3346. this.loading = false
  3347. return
  3348. }
  3349. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3350. var arr = this.dialysisPrescription
  3351. console.log('arr', arr)
  3352. const ParamsQuery = arr
  3353. // console.log('长期处方6', ParamsQuery)
  3354. ParamsQuery['patient'] = this.patient.id
  3355. ParamsQuery['record_date'] = this.record_date
  3356. ParamsQuery['mode'] = '1'
  3357. postSoulution(ParamsQuery).then(response => {
  3358. if (response.data.state == 0) {
  3359. this.$message.error(response.data.msg)
  3360. if(response.data.code == 600000008){
  3361. this.infoDialogVisible = true
  3362. }
  3363. return false
  3364. } else {
  3365. this.$notify({
  3366. title: '成功',
  3367. message: '提交成功',
  3368. type: 'success',
  3369. duration: 2000
  3370. })
  3371. const prescription_resp = response.data.data.prescription
  3372. const solution_resp = response.data.data.solution
  3373. var prescription = this.prescription
  3374. var solution = this.solution
  3375. for (var index in prescription_resp) {
  3376. // prescription[index] = prescription_resp[index];
  3377. this.$set(prescription, index, prescription_resp[index])
  3378. }
  3379. for (var index in solution_resp) {
  3380. // solution[index] = solution_resp[index];
  3381. this.$set(solution, index, solution_resp[index])
  3382. }
  3383. this.hide()
  3384. }
  3385. })
  3386. } else if (this.is_open == 1) {
  3387. if (this.targetAdvices.length > 0) {
  3388. // 弹框推送提醒
  3389. this.isShowRemindAdvice = true
  3390. this.isVisibility = false
  3391. } else {
  3392. if (this.patient.id <= 0) {
  3393. this.$message.error('没有选择患者')
  3394. this.loading = false
  3395. return
  3396. }
  3397. console.log("预充了7",this.dialysisPrescription.pre_impulse)
  3398. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3399. var arr = this.dialysisPrescription
  3400. // console.log('arr', arr)
  3401. const ParamsQuery = arr
  3402. console.log('长期处方7', ParamsQuery)
  3403. ParamsQuery['patient'] = this.patient.id
  3404. ParamsQuery['record_date'] = this.record_date
  3405. ParamsQuery['mode'] = '1'
  3406. postSoulution(ParamsQuery).then(response => {
  3407. if (response.data.state == 0) {
  3408. this.$message.error(response.data.msg)
  3409. if(response.data.code == 600000008){
  3410. this.infoDialogVisible = true
  3411. }
  3412. return false
  3413. } else {
  3414. this.$notify({
  3415. title: '成功',
  3416. message: '提交成功',
  3417. type: 'success',
  3418. duration: 2000
  3419. })
  3420. const prescription_resp = response.data.data.prescription
  3421. const solution_resp = response.data.data.solution
  3422. var prescription = this.prescription
  3423. var solution = this.solution
  3424. for (var index in prescription_resp) {
  3425. // prescription[index] = prescription_resp[index];
  3426. this.$set(prescription, index, prescription_resp[index])
  3427. }
  3428. for (var index in solution_resp) {
  3429. // solution[index] = solution_resp[index];
  3430. this.$set(solution, index, solution_resp[index])
  3431. }
  3432. this.hide()
  3433. }
  3434. })
  3435. }
  3436. } else if (this.is_open == 2) {
  3437. var date = new Date()
  3438. var hour =
  3439. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  3440. var minute =
  3441. date.getMinutes() < 10
  3442. ? '0' + date.getMinutes()
  3443. : date.getMinutes()
  3444. if (this.waitUploadAdvices.length > 0) {
  3445. if (this.patient.id <= 0) {
  3446. this.$message.error('没有选择患者')
  3447. this.loading = false
  3448. return
  3449. }
  3450. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3451. var arr = this.dialysisPrescription
  3452. const ParamsQuery = arr
  3453. // console.log('长期处方8', ParamsQuery)
  3454. ParamsQuery['patient'] = this.patient.id
  3455. ParamsQuery['record_date'] = this.record_date
  3456. ParamsQuery['mode'] = '1'
  3457. postSoulution(ParamsQuery).then(response => {
  3458. if (response.data.state == 0) {
  3459. this.$message.error(response.data.msg)
  3460. if(response.data.code == 600000008){
  3461. this.infoDialogVisible = true
  3462. }
  3463. return false
  3464. } else {
  3465. this.$notify({
  3466. title: '成功',
  3467. message: '提交成功',
  3468. type: 'success',
  3469. duration: 2000
  3470. })
  3471. const params = {
  3472. advices: this.waitUploadAdvices,
  3473. advice_date: uParseTime(
  3474. this.$route.query.date,
  3475. '{y}-{m}-{d}'
  3476. ),
  3477. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  3478. advice_type: this.waitUploadAdvices[0].advice_type,
  3479. parent_id: this.patient_id,
  3480. start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
  3481. // start_time:
  3482. // uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  3483. // ' ' +
  3484. // hour +
  3485. // ':' +
  3486. // minute,
  3487. remark: ''
  3488. }
  3489. CreateGroupAdvice(
  3490. this.$route.query.patient_id,
  3491. 0,
  3492. params
  3493. ).then(rs => {
  3494. var resp = rs.data
  3495. if (resp.state == 1) {
  3496. // this.doctorAdvices = resp.data.advices
  3497. this.$emit('advice')
  3498. } else {
  3499. if(resp.code == 600000008){
  3500. this.infoDialogVisible = true
  3501. }
  3502. }
  3503. })
  3504. const prescription_resp = response.data.data.prescription
  3505. const solution_resp = response.data.data.solution
  3506. var prescription = this.prescription
  3507. var solution = this.solution
  3508. for (var index in prescription_resp) {
  3509. // prescription[index] = prescription_resp[index];
  3510. this.$set(prescription, index, prescription_resp[index])
  3511. }
  3512. for (var index in solution_resp) {
  3513. // solution[index] = solution_resp[index];
  3514. this.$set(solution, index, solution_resp[index])
  3515. }
  3516. this.hide()
  3517. }
  3518. })
  3519. } else {
  3520. if (this.patient.id <= 0) {
  3521. this.$message.error('没有选择患者')
  3522. this.loading = false
  3523. return
  3524. }
  3525. console.log("预充了99999",this.dialysisPrescription.pre_impulse)
  3526. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3527. var arr = this.dialysisPrescription
  3528. console.log('arr', arr)
  3529. const ParamsQuery = arr
  3530. // console.log('长期处方9', ParamsQuery)
  3531. ParamsQuery['patient'] = this.patient.id
  3532. ParamsQuery['record_date'] = this.record_date
  3533. ParamsQuery['mode'] = '1'
  3534. postSoulution(ParamsQuery).then(response => {
  3535. if (response.data.state == 0) {
  3536. this.$message.error(response.data.msg)
  3537. if(response.data.code == 600000008){
  3538. this.infoDialogVisible = true
  3539. }
  3540. return false
  3541. } else {
  3542. this.$notify({
  3543. title: '成功',
  3544. message: '提交成功',
  3545. type: 'success',
  3546. duration: 2000
  3547. })
  3548. const prescription_resp = response.data.data.prescription
  3549. const solution_resp = response.data.data.solution
  3550. var prescription = this.prescription
  3551. var solution = this.solution
  3552. for (var index in prescription_resp) {
  3553. // prescription[index] = prescription_resp[index];
  3554. this.$set(prescription, index, prescription_resp[index])
  3555. }
  3556. for (var index in solution_resp) {
  3557. // solution[index] = solution_resp[index];
  3558. this.$set(solution, index, solution_resp[index])
  3559. }
  3560. this.hide()
  3561. }
  3562. })
  3563. }
  3564. }
  3565. } else {
  3566. if (this.patient.id <= 0) {
  3567. this.$message.error('没有选择患者')
  3568. this.loading = false
  3569. return
  3570. }
  3571. console.log("预充了1",this.dialysisPrescription.pre_impulse)
  3572. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3573. var arr = this.dialysisPrescription
  3574. console.log('arr12333223', arr)
  3575. const ParamsQuery = arr
  3576. ParamsQuery['patient'] = this.patient.id
  3577. ParamsQuery['record_date'] = this.record_date
  3578. ParamsQuery['mode'] = '1'
  3579. console.log('长期处方10', ParamsQuery)
  3580. postSoulution(ParamsQuery).then(response => {
  3581. if (response.data.state == 0) {
  3582. this.$message.error(response.data.msg)
  3583. if(response.data.code == 600000008){
  3584. this.infoDialogVisible = true
  3585. }
  3586. return false
  3587. } else {
  3588. this.$notify({
  3589. title: '成功',
  3590. message: '提交成功',
  3591. type: 'success',
  3592. duration: 2000
  3593. })
  3594. const prescription_resp = response.data.data.prescription
  3595. const solution_resp = response.data.data.solution
  3596. var prescription = this.prescription
  3597. var solution = this.solution
  3598. for (var index in prescription_resp) {
  3599. // prescription[index] = prescription_resp[index];
  3600. this.$set(prescription, index, prescription_resp[index])
  3601. }
  3602. for (var index in solution_resp) {
  3603. // solution[index] = solution_resp[index];
  3604. this.$set(solution, index, solution_resp[index])
  3605. }
  3606. this.hide()
  3607. }
  3608. })
  3609. }
  3610. }
  3611. }
  3612. }
  3613. })
  3614. },
  3615. isName(name) {
  3616. let filedList = store.getters.xt_user.fileds;
  3617. for (let i = 0; i < filedList.length; i++) {
  3618. if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  3619. return filedList[i].filed_name;
  3620. }
  3621. }
  3622. },
  3623. isShows(name) {
  3624. var filedList = store.getters.xt_user.fileds
  3625. for (let i = 0; i < filedList.length; i++) {
  3626. if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  3627. return true
  3628. }
  3629. }
  3630. return false
  3631. },
  3632. isCheckmust(name) {
  3633. let filedList = store.getters.xt_user.fileds;
  3634. for (let i = 0; i < filedList.length; i++) {
  3635. if (
  3636. filedList[i].module == 1 &&
  3637. filedList[i].filed_name_cn == name &&
  3638. filedList[i].is_write == 1&&
  3639. filedList[i].is_show == 1
  3640. ) {
  3641. // console.log(filedList[i],'false')
  3642. if (name == "透析模式" || name == "透析时长") {
  3643. return [
  3644. { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
  3645. // {
  3646. // required: true,
  3647. // pattern: /^[1-9]\d*$/,
  3648. // message: `请输入${name}`,
  3649. // trigger: ['blur','change']
  3650. // },
  3651. ];
  3652. }
  3653. return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
  3654. }
  3655. }
  3656. },
  3657. isNas(name){
  3658. let filedList = store.getters.xt_user.fileds;
  3659. for (let i = 0; i < filedList.length; i++) {
  3660. if (
  3661. filedList[i].module == 1 &&
  3662. filedList[i].filed_name_cn == name &&
  3663. filedList[i].is_write == 1&&
  3664. filedList[i].is_show == 1
  3665. ) {
  3666. return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
  3667. }
  3668. }
  3669. },
  3670. isSubstitution(name){
  3671. if(this.dialysisPrescription.mode_id == 2 ||this.dialysisPrescription.mode_id == 5 || this.dialysisPrescription.mode_id == 12){
  3672. let filedList = store.getters.xt_user.fileds;
  3673. for (let i = 0; i < filedList.length; i++) {
  3674. if (
  3675. filedList[i].module == 1 &&
  3676. filedList[i].filed_name_cn == name &&
  3677. filedList[i].is_write == 1&&
  3678. filedList[i].is_show == 1
  3679. ) {
  3680. if(name == '置换速度'){
  3681. return [
  3682. { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
  3683. // {
  3684. // required: true,
  3685. // pattern: /^[1-9]\d*$/,
  3686. // message: `请输入${name}`,
  3687. // trigger: ['blur','change']
  3688. // },
  3689. ];
  3690. }
  3691. return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
  3692. }
  3693. }
  3694. }else{
  3695. return [{required: false}]
  3696. }
  3697. },
  3698. getDoctorName(doctor_id) {
  3699. for (let i = 0; i < this.admin_users.length; i++) {
  3700. if (this.admin_users[i].id == doctor_id) {
  3701. return this.admin_users[i].name
  3702. }
  3703. }
  3704. },
  3705. getContent(val) {
  3706. let prescribing_number = ''
  3707. let single_dose = ''
  3708. let advice_desc = ''
  3709. if (val.prescribing_number > 0) {
  3710. prescribing_number =
  3711. val.prescribing_number + val.prescribing_number_unit
  3712. }
  3713. if (val.single_dose > 0) {
  3714. single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
  3715. }
  3716. if (val.advice_desc > 0 || val.advice_desc.length > 0) {
  3717. advice_desc = val.advice_desc + val.drug_spec_unit
  3718. }
  3719. let name = ''
  3720. if (val.child.length > 0) {
  3721. for (let i = 0; i < val.child.length; i++) {
  3722. if (val.child[i].prescribing_number > 0) {
  3723. val.child[i]['presc'] =
  3724. val.child[i].prescribing_number +
  3725. val.child[i].prescribing_number_unit
  3726. } else {
  3727. val.child[i]['presc'] = ''
  3728. }
  3729. if (val.child[i].single_dose > 0) {
  3730. val.child[i]['single'] =
  3731. ' ' +
  3732. ' 单次用量 ' +
  3733. ' ' +
  3734. val.child[i].single_dose +
  3735. val.child[i].single_dose_unit
  3736. } else {
  3737. val.child[i]['single'] = ''
  3738. }
  3739. name =
  3740. name +
  3741. '▲' +
  3742. val.child[i].advice_name +
  3743. '' +
  3744. val.child[i].advice_desc +
  3745. val.child[i].drug_spec_unit +
  3746. val.child[i].presc +
  3747. val.child[i].single
  3748. }
  3749. return (
  3750. val.advice_name +
  3751. ' ' +
  3752. advice_desc +
  3753. ' ' +
  3754. val.drug_spec_unit +
  3755. prescribing_number +
  3756. ' ' +
  3757. single_dose +
  3758. ' ' +
  3759. ' ' +
  3760. val.delivery_way +
  3761. ' ' +
  3762. val.execution_frequency +
  3763. val.remark +
  3764. name
  3765. )
  3766. } else {
  3767. return (
  3768. val.advice_name +
  3769. ' ' +
  3770. advice_desc +
  3771. prescribing_number +
  3772. ' ' +
  3773. single_dose +
  3774. ' ' +
  3775. ' ' +
  3776. val.delivery_way +
  3777. ' ' +
  3778. val.execution_frequency +
  3779. val.remark
  3780. )
  3781. }
  3782. },
  3783. changePrescription(id) {
  3784. console.log("id233223232323232323",id)
  3785. if(id != 2 && id!=5 && id!= 12){
  3786. this.dialysisPrescription.displace_liqui_value = ""
  3787. this.dialysisPrescription.displace_liqui_part = ""
  3788. this.dialysisPrescription.replacement_total = ""
  3789. this.dialysisPrescription.displace_speed = ""
  3790. }
  3791. const ParamsQuery = {}
  3792. ParamsQuery['patient_id'] = this.$route.query.patient_id
  3793. ParamsQuery['mode_id'] = id
  3794. GetSolution(ParamsQuery).then(response => {
  3795. if (response.data.state == 0) {
  3796. this.$message.error(response.data.msg)
  3797. return false
  3798. } else {
  3799. console.log('切换数据', response.data.data.solution)
  3800. this.$message.success('切换成功')
  3801. console.log("dialysisPrescription",response.data.data.dialysisPrescription)
  3802. if (response.data.data.solution != null) {
  3803. for (const key in response.data.data.solution) {
  3804. // 长期处方不为空
  3805. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  3806. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  3807. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
  3808. this.dialysisPrescription[key] =
  3809. response.data.data.solution[key]
  3810. }
  3811. }
  3812. 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) {
  3813. console.log('抠门;哦啊', response.data.data.dialysisPrescription.remark)
  3814. this.dialysisPrescription.sodium = 138
  3815. this.dialysisPrescription.bicarbonate = 31.1
  3816. this.dialysisPrescription.dialysate_flow = 500
  3817. if (this.last_prescription != null && response.data.data.dialysisPrescription != null) {
  3818. this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
  3819. }
  3820. }
  3821. } else {
  3822. if (response.data.data.prescription != null) {
  3823. // 临时处方不为空
  3824. for (const key in response.data.data.prescription) {
  3825. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  3826. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  3827. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
  3828. this.dialysisPrescription[key] =
  3829. response.data.data.prescription[key]
  3830. }
  3831. }
  3832. } else if (response.data.data.system_prescription != null) {
  3833. // 系统处方不为空
  3834. for (const key in response.data.data.system_prescription) {
  3835. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  3836. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  3837. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
  3838. this.dialysisPrescription[key] =
  3839. response.data.data.system_prescription[key]
  3840. }
  3841. }
  3842. } else {
  3843. for (const key in this.dialysisPrescription) {
  3844. // 临时处方为空
  3845. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  3846. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  3847. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
  3848. this.dialysisPrescription[key] = ''
  3849. }
  3850. }
  3851. this.dialysisPrescription.mode_id = id
  3852. }
  3853. 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) {
  3854. this.dialysisPrescription.sodium = 138
  3855. this.dialysisPrescription.bicarbonate = 31.1
  3856. this.dialysisPrescription.dialysate_flow = 500
  3857. if (this.last_prescription != null && response.data.data.system_prescription != null && response.data.data.system_prescription.remark == '') {
  3858. this.dialysisPrescription.remark = response.data.data.system_prescription.remark
  3859. }
  3860. }
  3861. }
  3862. if(response.data.data.dialysisPrescription!=null){
  3863. this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
  3864. }
  3865. }
  3866. if (response.data.data.solution == null) {
  3867. 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) {
  3868. this.dialysisPrescription.sodium = 138
  3869. this.dialysisPrescription.bicarbonate = 31.1
  3870. this.dialysisPrescription.dialysate_flow = 500
  3871. if (this.last_prescription != null) {
  3872. this.dialysisPrescription.remark = this.last_prescription.remark
  3873. }
  3874. }
  3875. }
  3876. if (
  3877. this.dialysisPrescription.dialysis_duration_hour === '' ||
  3878. this.dialysisPrescription.dialysis_duration_minute === ''
  3879. ) {
  3880. this.timeValue = ''
  3881. this.time = '03:00'
  3882. } else {
  3883. this.timeValue =
  3884. this.dialysisPrescription.dialysis_duration_hour +
  3885. '小时' +
  3886. this.dialysisPrescription.dialysis_duration_minute +
  3887. '分钟'
  3888. this.time =
  3889. (this.dialysisPrescription.dialysis_duration_hour > 10
  3890. ? this.dialysisPrescription.dialysis_duration_hour
  3891. : '0' + this.dialysisPrescription.dialysis_duration_hour) +
  3892. ':' +
  3893. (this.dialysisPrescription.dialysis_duration_minute > 10
  3894. ? this.dialysisPrescription.dialysis_duration_minute
  3895. : '0' + this.dialysisPrescription.dialysis_duration_minute)
  3896. }
  3897. })
  3898. if (
  3899. id === 1 ||
  3900. id === 3 ||
  3901. id === 4 ||
  3902. id === 6 ||
  3903. id === 7 ||
  3904. id === 8 ||
  3905. id === 9 ||
  3906. id === 10 ||
  3907. id === 11 ||
  3908. id === 13 ||
  3909. id === 14 ||
  3910. id === 15 ||
  3911. id === 16 ||
  3912. id === 19
  3913. ) {
  3914. this.zhiShow = false
  3915. this.huShow = false
  3916. this.totalShow = false
  3917. } else {
  3918. this.zhiShow = true
  3919. this.huShow = true
  3920. this.totalShow = true
  3921. //针对新化博翔
  3922. if(this.$store.getters.xt_user.template_info.org_id ==10447){
  3923. this.dialysisPrescription.displace_liqui_part = 1
  3924. this.dialysisPrescription.displace_liqui_value = 35
  3925. }
  3926. }
  3927. },
  3928. handlePatientInfo() {
  3929. this.isVisibility = false
  3930. this.msgtip_visibility = true
  3931. },
  3932. handlePatientInfoOne(){
  3933. this.isVisibility = false
  3934. this.startVisibility = true
  3935. },
  3936. cancleMsg() {
  3937. this.isVisibility = true
  3938. this.msgtip_visibility = false
  3939. },
  3940. cancleMsgOne(){
  3941. this.isVisibility = true
  3942. this.startVisibility = false
  3943. },
  3944. getPermission() {
  3945. request
  3946. .get('/api/func_per/get', {
  3947. params: {
  3948. create_url: '/api/dialysis/prescription?mode=1',
  3949. modify_url: '/api/dialysis/prescription?mode=2',
  3950. modify_other_url: '/api/dialysis/prescription?mode=3',
  3951. module: 1
  3952. }
  3953. })
  3954. .then(res => {
  3955. // console.log(res)
  3956. // console.log('predialysis.creater', this.pre.creater)
  3957. // console.log('admin.id', this.$store.getters.xt_user.user.id)
  3958. if (res.data.state == 0) {
  3959. this.hasPermission = false
  3960. } else if (res.data.state == 1) {
  3961. if (this.pre.id != '' && this.pre.creater != 0) {
  3962. // 有数据
  3963. if (this.pre.creater == this.$store.getters.xt_user.user.id) {
  3964. // 创建人是自己
  3965. if (res.data.data.is_has_modify == false) {
  3966. this.hasPermission = false
  3967. this.showTxt = '你没有修改透析处方权限'
  3968. }
  3969. } else {
  3970. // 创建人不是自己
  3971. if (res.data.data.is_has_modify_other == false) {
  3972. this.hasPermission = false
  3973. this.showTxt = '你没有修改他人透析处方权限'
  3974. }
  3975. }
  3976. } else if (this.pre.id == '' || this.pre.creater == 0) {
  3977. if (res.data.data.is_has_create == false) {
  3978. this.hasPermission = false
  3979. this.showTxt = '你没有新增透析处方权限'
  3980. }
  3981. }
  3982. }
  3983. })
  3984. },
  3985. unique(arr) {
  3986. const res = new Map()
  3987. return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
  3988. },
  3989. dialysisAfterTeachSelectChange: function(values) {
  3990. console.log("values232323232wo",values)
  3991. if (this.dialysisPrescription.dialysis_remark == '' || this.dialysisPrescription.dialysis_remark==undefined) {
  3992. this.dialysisPrescription.dialysis_remark = values
  3993. } else {
  3994. console.log("this.dialysisPrescription.dialysis_remark",this.dialysisPrescription.dialysis_remark)
  3995. if (this.dialysisPrescription.dialysis_remark!=undefined&&this.dialysisPrescription.dialysis_remark.indexOf(values) == -1) {
  3996. if (this.dialysisPrescription.dialysis_remark.charAt(this.dialysisPrescription.dialysis_remark.length - 1).indexOf('。') == -1) {
  3997. this.dialysisPrescription.dialysis_remark = this.dialysisPrescription.dialysis_remark + ',' + values
  3998. } else {
  3999. this.dialysisPrescription.dialysis_remark = this.dialysisPrescription.dialysis_remark + values
  4000. }
  4001. }
  4002. }
  4003. },
  4004. saveInformation(){
  4005. var params = {
  4006. selected_date:this.selected_date,
  4007. patient_id:this.$route.query.patient_id,
  4008. record_date:this.$route.query.date,
  4009. module:1,
  4010. remark:this.remark,
  4011. }
  4012. saveInformation(params).then(response=>{
  4013. if(response.data.state == 1){
  4014. var information = response.data.data.information
  4015. this.$message.success("提交成功!")
  4016. this.infoDialogVisible = false
  4017. }
  4018. })
  4019. }
  4020. },
  4021. watch: {
  4022. // 'dialysisPrescription.blood_flow_volume': function () {
  4023. // this.dialysisPrescription.blood_flow_volume = replacementFlow(this.dialysisPrescription.blood_flow_volume)
  4024. // },
  4025. // 'dialysisPrescription.replacement_flow': function () {
  4026. // console.log("血流量",this.dialysisPrescription.replacement_flow)
  4027. // this.dialysisPrescription.replacement_flow = this.dialysisPrescription.replacement_flow
  4028. // },
  4029. 'dialysisPrescription.dialysis_duration_hour': function() {
  4030. let dialysis_duration_minute = 0
  4031. let dialysis_duration_hour = 0
  4032. let duration = 0
  4033. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4034. dialysis_duration_minute = 0
  4035. } else {
  4036. dialysis_duration_minute = this.dialysisPrescription
  4037. .dialysis_duration_minute
  4038. }
  4039. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4040. dialysis_duration_hour = 0
  4041. } else {
  4042. dialysis_duration_hour = this.dialysisPrescription
  4043. .dialysis_duration_hour
  4044. }
  4045. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  4046. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
  4047. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4048. this.dialysisPrescription.anticoagulant_zongliang = ''
  4049. }
  4050. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4051. },
  4052. 'dialysisPrescription.dialysis_duration_minute': function() {
  4053. let dialysis_duration_minute = 0
  4054. let dialysis_duration_hour = 0
  4055. let duration = 0
  4056. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4057. dialysis_duration_minute = 0
  4058. } else {
  4059. dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
  4060. }
  4061. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4062. dialysis_duration_hour = 0
  4063. } else {
  4064. dialysis_duration_hour = this.dialysisPrescription
  4065. .dialysis_duration_hour
  4066. }
  4067. duration =
  4068. parseFloat(dialysis_duration_hour) +
  4069. parseFloat(dialysis_duration_minute) / 60
  4070. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration,
  4071. this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount
  4072. )
  4073. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4074. this.dialysisPrescription.anticoagulant_zongliang = ''
  4075. }
  4076. },
  4077. 'dialysisPrescription.anticoagulant_shouji': function() {
  4078. let dialysis_duration_minute = 0
  4079. let dialysis_duration_hour = 0
  4080. let duration = 0
  4081. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4082. dialysis_duration_minute = 0
  4083. } else {
  4084. dialysis_duration_minute = this.dialysisPrescription
  4085. .dialysis_duration_minute
  4086. }
  4087. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4088. dialysis_duration_hour = 0
  4089. } else {
  4090. dialysis_duration_hour = this.dialysisPrescription
  4091. .dialysis_duration_hour
  4092. }
  4093. duration =
  4094. parseFloat(dialysis_duration_hour) +
  4095. parseFloat(dialysis_duration_minute) / 60
  4096. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  4097. 1,
  4098. this.dialysisPrescription.anticoagulant_shouji,
  4099. duration,
  4100. this.dialysisPrescription.anticoagulant_weichi,
  4101. this.dialysisPrescription.add_amount,
  4102. this.dialysisPrescription.reduce_amount
  4103. )
  4104. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4105. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4106. this.dialysisPrescription.anticoagulant_zongliang = ''
  4107. }
  4108. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  4109. this.dialysisPrescription.anticoagulant_zongliang = ""
  4110. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  4111. }
  4112. },
  4113. 'dialysisPrescription.anticoagulant_weichi': function() {
  4114. let dialysis_duration_minute = 0
  4115. let dialysis_duration_hour = 0
  4116. let duration = 0
  4117. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4118. dialysis_duration_minute = 0
  4119. } else {
  4120. dialysis_duration_minute = this.dialysisPrescription
  4121. .dialysis_duration_minute
  4122. }
  4123. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4124. dialysis_duration_hour = 0
  4125. } else {
  4126. dialysis_duration_hour = this.dialysisPrescription
  4127. .dialysis_duration_hour
  4128. }
  4129. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  4130. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
  4131. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4132. this.dialysisPrescription.anticoagulant_zongliang = ''
  4133. }
  4134. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4135. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  4136. this.dialysisPrescription.anticoagulant_zongliang = ""
  4137. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  4138. }
  4139. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4140. },
  4141. 'prescription.id': {
  4142. immediate: true,
  4143. deep: true,
  4144. handler(oldVal, newVal) {
  4145. if (oldVal == newVal) {
  4146. for (var index in this.dialysisPrescription) {
  4147. this.dialysisPrescription[index] = this.prescription[index]
  4148. }
  4149. if (this.prescription['dialysate_formulation'] == 0) {
  4150. this.dialysisPrescription['dialysate_formulation'] = ''
  4151. }
  4152. if (this.prescription['anticoagulant'] == 0) {
  4153. this.dialysisPrescription['anticoagulant'] = ''
  4154. }
  4155. if (this.prescription['dialysis_duration_hour'] == 0) {
  4156. this.dialysisPrescription['dialysis_duration_hour'] = ''
  4157. }
  4158. if (this.prescription['dialysis_duration_minute'] == 0) {
  4159. this.dialysisPrescription['dialysis_duration_minute'] = ''
  4160. }
  4161. if (this.prescription['blood_flow_volume'] == 0) {
  4162. this.dialysisPrescription['blood_flow_volume'] = ''
  4163. }
  4164. if (this.prescription['target_ultrafiltration'] == 0) {
  4165. this.dialysisPrescription['target_ultrafiltration'] = ''
  4166. }
  4167. if (this.prescription['dialysate_temperature'] == 0) {
  4168. this.dialysisPrescription['dialysate_temperature'] = ''
  4169. }
  4170. if (this.prescription['anticoagulant_shouji'] == 0) {
  4171. this.dialysisPrescription['anticoagulant_shouji'] = 0
  4172. }
  4173. if (this.prescription['anticoagulant_weichi'] == 0) {
  4174. this.dialysisPrescription['anticoagulant_weichi'] = 0
  4175. }
  4176. if (this.prescription['anticoagulant_zongliang'] == 0) {
  4177. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  4178. }
  4179. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  4180. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  4181. }
  4182. if (this.prescription['kalium'] == 0) {
  4183. this.dialysisPrescription['kalium'] = ''
  4184. }
  4185. if (this.prescription['sodium'] == 0) {
  4186. this.dialysisPrescription['sodium'] = ''
  4187. }
  4188. if (this.prescription['calcium'] == 0) {
  4189. this.dialysisPrescription['calcium'] = ''
  4190. }
  4191. if (this.prescription['bicarbonate'] == 0) {
  4192. this.dialysisPrescription['bicarbonate'] = ''
  4193. }
  4194. if (this.prescription['glucose'] == 0) {
  4195. this.dialysisPrescription['glucose'] = ''
  4196. }
  4197. if (this.prescription['dialysate_flow'] == 0) {
  4198. this.dialysisPrescription['dialysate_flow'] = ''
  4199. }
  4200. if (this.prescription['conductivity'] == 0) {
  4201. this.dialysisPrescription['conductivity'] = ''
  4202. }
  4203. if (this.prescription['replacement_total'] == 0) {
  4204. this.dialysisPrescription['replacement_total'] = ''
  4205. }
  4206. if (this.prescription['target_ktv'] == 0) {
  4207. this.dialysisPrescription['target_ktv'] = ''
  4208. }
  4209. }
  4210. if (this.prescription.id > 0) {
  4211. for (var index in this.dialysisPrescription) {
  4212. this.dialysisPrescription[index] = this.prescription[index]
  4213. }
  4214. if (this.prescription['dialysate_formulation'] == 0) {
  4215. this.dialysisPrescription['dialysate_formulation'] = ''
  4216. }
  4217. if (this.prescription['anticoagulant'] == 0) {
  4218. this.dialysisPrescription['anticoagulant'] = ''
  4219. }
  4220. if (this.prescription['dialysis_duration_hour'] == 0) {
  4221. this.dialysisPrescription['dialysis_duration_hour'] = ''
  4222. }
  4223. if (this.prescription['dialysis_duration_minute'] == 0) {
  4224. this.dialysisPrescription['dialysis_duration_minute'] = ''
  4225. }
  4226. if (this.prescription['blood_flow_volume'] == 0) {
  4227. this.dialysisPrescription['blood_flow_volume'] = ''
  4228. }
  4229. if (this.prescription['target_ultrafiltration'] == 0) {
  4230. this.dialysisPrescription['target_ultrafiltration'] = ''
  4231. }
  4232. if (this.prescription['dialysate_temperature'] == 0) {
  4233. this.dialysisPrescription['dialysate_temperature'] = ''
  4234. }
  4235. if (this.prescription['anticoagulant_shouji'] == 0) {
  4236. this.dialysisPrescription['anticoagulant_shouji'] = 0
  4237. }
  4238. if (this.prescription['anticoagulant_weichi'] == 0) {
  4239. this.dialysisPrescription['anticoagulant_weichi'] = 0
  4240. }
  4241. if (this.prescription['anticoagulant_zongliang'] == 0) {
  4242. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  4243. }
  4244. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  4245. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  4246. }
  4247. if (this.prescription['kalium'] == 0) {
  4248. this.dialysisPrescription['kalium'] = ''
  4249. }
  4250. if (this.prescription['sodium'] == 0) {
  4251. this.dialysisPrescription['sodium'] = ''
  4252. }
  4253. if (this.prescription['calcium'] == 0) {
  4254. this.dialysisPrescription['calcium'] = ''
  4255. }
  4256. if (this.prescription['bicarbonate'] == 0) {
  4257. this.dialysisPrescription['bicarbonate'] = ''
  4258. }
  4259. if (this.prescription['glucose'] == 0) {
  4260. this.dialysisPrescription['glucose'] = ''
  4261. }
  4262. if (this.prescription['dialysate_flow'] == 0) {
  4263. this.dialysisPrescription['dialysate_flow'] = ''
  4264. }
  4265. if (this.prescription['conductivity'] == 0) {
  4266. this.dialysisPrescription['conductivity'] = ''
  4267. }
  4268. if (this.prescription['replacement_total'] == 0) {
  4269. this.dialysisPrescription['replacement_total'] = ''
  4270. }
  4271. if (this.prescription['target_ktv'] == 0) {
  4272. this.dialysisPrescription['target_ktv'] = ''
  4273. }
  4274. } else if (this.prescription.id == 0) {
  4275. for (var index in this.dialysisPrescription) {
  4276. this.dialysisPrescription[index] = this.prescription[index]
  4277. }
  4278. if (this.prescription['dialysate_formulation'] == 0) {
  4279. this.dialysisPrescription['dialysate_formulation'] = ''
  4280. }
  4281. if (this.prescription['anticoagulant'] == 0) {
  4282. this.dialysisPrescription['anticoagulant'] = ''
  4283. }
  4284. if (this.prescription['dialysis_duration_hour'] == 0) {
  4285. this.dialysisPrescription['dialysis_duration_hour'] = ''
  4286. }
  4287. if (this.prescription['dialysis_duration_minute'] == 0) {
  4288. this.dialysisPrescription['dialysis_duration_minute'] = ''
  4289. }
  4290. if (this.prescription['blood_flow_volume'] == 0) {
  4291. this.dialysisPrescription['blood_flow_volume'] = ''
  4292. }
  4293. if (this.prescription['target_ultrafiltration'] == 0) {
  4294. this.dialysisPrescription['target_ultrafiltration'] = ''
  4295. }
  4296. if (this.prescription['dialysate_temperature'] == 0) {
  4297. this.dialysisPrescription['dialysate_temperature'] = ''
  4298. }
  4299. if (this.prescription['anticoagulant_shouji'] == 0) {
  4300. this.dialysisPrescription['anticoagulant_'] = 0
  4301. }
  4302. if (this.prescription['anticoagulant_weichi'] == 0) {
  4303. this.dialysisPrescription['anticoagulant_weichi'] = 0
  4304. }
  4305. if (this.prescription['anticoagulant_zongliang'] == 0) {
  4306. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  4307. }
  4308. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  4309. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  4310. }
  4311. if (this.prescription['kalium'] == 0) {
  4312. this.dialysisPrescription['kalium'] = ''
  4313. }
  4314. if (this.prescription['sodium'] == 0) {
  4315. this.dialysisPrescription['sodium'] = ''
  4316. }
  4317. if (this.prescription['calcium'] == 0) {
  4318. this.dialysisPrescription['calcium'] = ''
  4319. }
  4320. if (this.prescription['bicarbonate'] == 0) {
  4321. this.dialysisPrescription['bicarbonate'] = ''
  4322. }
  4323. if (this.prescription['glucose'] == 0) {
  4324. this.dialysisPrescription['glucose'] = ''
  4325. }
  4326. if (this.prescription['dialysate_flow'] == 0) {
  4327. this.dialysisPrescription['dialysate_flow'] = ''
  4328. }
  4329. if (this.prescription['conductivity'] == 0) {
  4330. this.dialysisPrescription['conductivity'] = ''
  4331. }
  4332. if (this.prescription['replacement_total'] == 0) {
  4333. this.dialysisPrescription['replacement_total'] = ''
  4334. }
  4335. if (this.prescription['target_ktv'] == 0) {
  4336. this.dialysisPrescription['target_ktv'] = ''
  4337. }
  4338. }
  4339. }
  4340. },
  4341. 'solution.id': function() {
  4342. if (this.solution.id > 0) {
  4343. if (
  4344. this.prescription != null &&
  4345. typeof this.prescription.id !== 'undefined' &&
  4346. this.prescription.id > 0
  4347. ) {
  4348. for (const key in this.prescription) {
  4349. this.dialysisPrescription[key] = this.prescription[key]
  4350. }
  4351. if (this.prescription['dialysate_formulation'] == 0) {
  4352. this.dialysisPrescription['dialysate_formulation'] = ''
  4353. }
  4354. if (this.prescription['anticoagulant'] == 0) {
  4355. this.dialysisPrescription['anticoagulant'] = ''
  4356. }
  4357. if (this.prescription['dialysis_duration_hour'] == 0) {
  4358. this.dialysisPrescription['dialysis_duration_hour'] = ''
  4359. }
  4360. if (this.prescription['dialysis_duration_minute'] == 0) {
  4361. this.dialysisPrescription['dialysis_duration_minute'] = ''
  4362. }
  4363. if (this.prescription['blood_flow_volume'] == 0) {
  4364. this.dialysisPrescription['blood_flow_volume'] = ''
  4365. }
  4366. if (this.prescription['target_ultrafiltration'] == 0) {
  4367. this.dialysisPrescription['target_ultrafiltration'] = ''
  4368. }
  4369. if (this.prescription['dialysate_temperature'] == 0) {
  4370. this.dialysisPrescription['dialysate_temperature'] = ''
  4371. }
  4372. if (this.prescription['anticoagulant_shouji'] == 0) {
  4373. this.dialysisPrescription['anticoagulant_shouji'] = 0
  4374. }
  4375. if (this.prescription['anticoagulant_weichi'] == 0) {
  4376. this.dialysisPrescription['anticoagulant_weichi'] = 0
  4377. }
  4378. if (this.prescription['anticoagulant_zongliang'] == 0) {
  4379. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  4380. }
  4381. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  4382. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  4383. }
  4384. if (this.prescription['kalium'] == 0) {
  4385. this.dialysisPrescription['kalium'] = ''
  4386. }
  4387. if (this.prescription['sodium'] == 0) {
  4388. this.dialysisPrescription['sodium'] = ''
  4389. }
  4390. if (this.prescription['calcium'] == 0) {
  4391. this.dialysisPrescription['calcium'] = ''
  4392. }
  4393. if (this.prescription['bicarbonate'] == 0) {
  4394. this.dialysisPrescription['bicarbonate'] = ''
  4395. }
  4396. if (this.prescription['glucose'] == 0) {
  4397. this.dialysisPrescription['glucose'] = ''
  4398. }
  4399. if (this.prescription['dialysate_flow'] == 0) {
  4400. this.dialysisPrescription['dialysate_flow'] = ''
  4401. }
  4402. if (this.prescription['conductivity'] == 0) {
  4403. this.dialysisPrescription['conductivity'] = ''
  4404. }
  4405. if (this.prescription['replacement_total'] == 0) {
  4406. this.dialysisPrescription['replacement_total'] = ''
  4407. }
  4408. if (this.prescription['target_ktv'] == 0) {
  4409. this.dialysisPrescription['target_ktv'] = ''
  4410. }
  4411. } else if (
  4412. this.solution != null &&
  4413. typeof this.solution.id !== 'undefined' &&
  4414. this.solution.id
  4415. ) {
  4416. for (const key in this.solution) {
  4417. this.dialysisPrescription[key] = this.solution[key]
  4418. }
  4419. if (this.solution['dialysate_formulation'] == 0) {
  4420. this.dialysisPrescription['dialysate_formulation'] = ''
  4421. }
  4422. if (this.solution['anticoagulant'] == 0) {
  4423. this.dialysisPrescription['anticoagulant'] = ''
  4424. }
  4425. if (this.solution['dialysis_duration_hour'] == 0) {
  4426. this.dialysisPrescription['dialysis_duration_hour'] = ''
  4427. }
  4428. if (this.solution['dialysis_duration_minute'] == 0) {
  4429. this.dialysisPrescription['dialysis_duration_minute'] = ''
  4430. }
  4431. if (this.solution['blood_flow_volume'] == 0) {
  4432. this.dialysisPrescription['blood_flow_volume'] = ''
  4433. }
  4434. if (this.solution['target_ultrafiltration'] == 0) {
  4435. this.dialysisPrescription['target_ultrafiltration'] = ''
  4436. }
  4437. if (this.solution['dialysate_temperature'] == 0) {
  4438. this.dialysisPrescription['dialysate_temperature'] = ''
  4439. }
  4440. if (this.solution['anticoagulant_shouji'] == 0) {
  4441. this.dialysisPrescription['anticoagulant_shouji'] = 0
  4442. }
  4443. if (this.solution['anticoagulant_weichi'] == 0) {
  4444. this.dialysisPrescription['anticoagulant_weichi'] = 0
  4445. }
  4446. if (this.solution['anticoagulant_zongliang'] == 0) {
  4447. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  4448. }
  4449. if (this.solution['anticoagulant_gaijiliang'] == 0) {
  4450. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  4451. }
  4452. if (this.solution['kalium'] == 0) {
  4453. this.dialysisPrescription['kalium'] = ''
  4454. }
  4455. if (this.solution['sodium'] == 0) {
  4456. this.dialysisPrescription['sodium'] = ''
  4457. }
  4458. if (this.solution['calcium'] == 0) {
  4459. this.dialysisPrescription['calcium'] = ''
  4460. }
  4461. if (this.solution['bicarbonate'] == 0) {
  4462. this.dialysisPrescription['bicarbonate'] = ''
  4463. }
  4464. if (this.solution['glucose'] == 0) {
  4465. this.dialysisPrescription['glucose'] = ''
  4466. }
  4467. if (this.solution['dialysate_flow'] == 0) {
  4468. this.dialysisPrescription['dialysate_flow'] = ''
  4469. }
  4470. if (this.solution['conductivity'] == 0) {
  4471. this.dialysisPrescription['conductivity'] = ''
  4472. }
  4473. if (this.solution['replacement_total'] == 0) {
  4474. this.dialysisPrescription['replacement_total'] = ''
  4475. }
  4476. if (this.solution['target_ktv'] == 0) {
  4477. this.dialysisPrescription['target_ktv'] = ''
  4478. }
  4479. }
  4480. }
  4481. },
  4482. 'dialysisPrescription.add_amount': function() {
  4483. let dialysis_duration_minute = 0
  4484. let dialysis_duration_hour = 0
  4485. let duration = 0
  4486. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4487. dialysis_duration_minute = 0
  4488. } else {
  4489. dialysis_duration_minute = this.dialysisPrescription
  4490. .dialysis_duration_minute
  4491. }
  4492. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4493. dialysis_duration_hour = 0
  4494. } else {
  4495. dialysis_duration_hour = this.dialysisPrescription
  4496. .dialysis_duration_hour
  4497. }
  4498. duration =
  4499. parseFloat(dialysis_duration_hour) +
  4500. parseFloat(dialysis_duration_minute) / 60
  4501. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  4502. 1,
  4503. this.dialysisPrescription.anticoagulant_shouji,
  4504. duration,
  4505. this.dialysisPrescription.anticoagulant_weichi,
  4506. this.dialysisPrescription.add_amount,
  4507. this.dialysisPrescription.reduce_amount
  4508. )
  4509. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4510. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4511. this.dialysisPrescription.anticoagulant_zongliang = ''
  4512. }
  4513. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  4514. this.dialysisPrescription.anticoagulant_zongliang = ""
  4515. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  4516. }
  4517. },
  4518. 'dialysisPrescription.reduce_amount': function() {
  4519. let dialysis_duration_minute = 0
  4520. let dialysis_duration_hour = 0
  4521. let duration = 0
  4522. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4523. dialysis_duration_minute = 0
  4524. } else {
  4525. dialysis_duration_minute = this.dialysisPrescription
  4526. .dialysis_duration_minute
  4527. }
  4528. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4529. dialysis_duration_hour = 0
  4530. } else {
  4531. dialysis_duration_hour = this.dialysisPrescription
  4532. .dialysis_duration_hour
  4533. }
  4534. duration =
  4535. parseFloat(dialysis_duration_hour) +
  4536. parseFloat(dialysis_duration_minute) / 60
  4537. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  4538. 1,
  4539. this.dialysisPrescription.anticoagulant_shouji,
  4540. duration,
  4541. this.dialysisPrescription.anticoagulant_weichi,
  4542. this.dialysisPrescription.add_amount,
  4543. this.dialysisPrescription.reduce_amount
  4544. )
  4545. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4546. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4547. this.dialysisPrescription.anticoagulant_zongliang = ''
  4548. }
  4549. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  4550. this.dialysisPrescription.anticoagulant_zongliang = ""
  4551. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  4552. }
  4553. },
  4554. stockType: function() {
  4555. console.log('stockType', this.stockType)
  4556. var arr = []
  4557. var arrTwo = []
  4558. var arrThree = []
  4559. for (let i = 0; i < this.stockType.length; i++) {
  4560. if (this.stockType[i].stock_attribute == 2) {
  4561. arr.push(this.stockType[i])
  4562. }
  4563. if (this.stockType[i].stock_attribute == 3) {
  4564. arrTwo.push(this.stockType[i])
  4565. }
  4566. if(this.stockType[i].stock_attribute == 4){
  4567. arrThree.push(this.stockType[i])
  4568. }
  4569. }
  4570. var dialyzator = []
  4571. var irrigation = []
  4572. var dialysis_strainer = []
  4573. for (let i = 0; i < arr.length; i++) {
  4574. for (let j = 0; j < arr[i].GoodInfo.length; j++) {
  4575. dialyzator.push(arr[i].GoodInfo[j])
  4576. }
  4577. }
  4578. this.dialyzers = dialyzator
  4579. for (let i = 0; i < arrTwo.length; i++) {
  4580. for (let j = 0; j < arrTwo[i].GoodInfo.length; j++) {
  4581. irrigation.push(arrTwo[i].GoodInfo[j])
  4582. }
  4583. }
  4584. this.irrigations = irrigation
  4585. for(let i=0;i<arrThree.length;i++){
  4586. for (let j = 0; j < arrThree[i].GoodInfo.length; j++) {
  4587. dialysis_strainer.push(arrThree[i].GoodInfo[j])
  4588. }
  4589. }
  4590. this.dialysisStrainerList = dialysis_strainer
  4591. },
  4592. admin_user_id:function(){
  4593. console.log("处方医生",this.admins)
  4594. if(this.admins.length > 0 ){
  4595. for(let i=0;i<this.admins.length;i++){
  4596. this.adminRoles.push(this.admins[i])
  4597. }
  4598. }
  4599. console.log(" 人员",this.adminRoles)
  4600. }
  4601. },
  4602. created() {
  4603. console.log('weretrertf',this.dialysisPrescription.sodium);
  4604. console.log("schedual232323323232323232",this.adminRoles)
  4605. this.illnessList = getDataConfig('hemodialysis', 'illness')
  4606. this.plasmaSeparatorList = getDataConfig('hemodialysis', 'plasma_separator')
  4607. this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis', 'bilirubin_adsorption_column')
  4608. this.educationList = getDataConfig('dialysis_remark', 'dialysis_remark')
  4609. console.log("透析准备232323232323wo",this.educationList)
  4610. }
  4611. }
  4612. </script>
  4613. <style rel="stylesheet/scss" lang="scss" scoped>
  4614. .el-checkbox,
  4615. .el-checkbox__input {
  4616. vertical-align: middle;
  4617. }
  4618. .newLine {
  4619. display: flex;
  4620. justify-content: space-between;
  4621. height: 40px;
  4622. line-height: 40px;
  4623. border-bottom: 1px solid #ccc;
  4624. color: #303133;
  4625. }
  4626. .warnTxt {
  4627. text-align: center;
  4628. margin: 0 auto;
  4629. background: #faa331;
  4630. max-width: 240px;
  4631. padding: 10px 20px;
  4632. border-radius: 4px;
  4633. margin-bottom: 10px;
  4634. color: #fff;
  4635. }
  4636. </style>
  4637. <style lang="scss">
  4638. .newDialog {
  4639. .el-dialog__body {
  4640. padding: 10px 20px 30px;
  4641. }
  4642. }
  4643. </style>