dialysisPrescriptionDialog.vue 243KB

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