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

dialysisPrescriptionDialog.vue 237KB

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