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

dialysisPrescriptionDialog.vue 242KB

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