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

dialysisPrescriptionDialog.vue 238KB

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