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

dialysisPrescriptionDialog.vue 222KB

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