Prescribing.vue 176 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733
  1. <template>
  2. <!-- 智能开方 -->
  3. <div class="prescribing flex-plane-center-top">
  4. <div class="pre-left" v-if="!isShrink">
  5. <!-- 标题信息 -->
  6. <div class="pre-title">
  7. <div class="flex-vertical-center-l title-container">
  8. <span></span>
  9. <div>患者信息</div>
  10. </div>
  11. </div>
  12. <div class="patiens-msg" v-if="Object.keys(patiensMsg).length>0">
  13. <p v-if="patiensMsg.sex">患者性别:{{patiensMsg.sex}}</p>
  14. <p v-if="patiensMsg.age">患者年龄:{{patiensMsg.age}}</p>
  15. <p
  16. v-if="patiensMsg.isGravidity && patiensMsg.isGravidity=='2'"
  17. >是否怀孕:{{patiensMsg.isGravidity=='1'?'否':patiensMsg.isGravidity=='2'?'是':'无'}}</p>
  18. <p
  19. v-if="patiensMsg.isBreastFeeding && patiensMsg.isBreastFeeding==1"
  20. >是否哺乳:{{patiensMsg.isBreastFeeding==1?'是':patiensMsg.isBreastFeeding==2?'否':'无'}}</p>
  21. </div>
  22. <div class="pre-title mr-t10">
  23. <div class="flex-vertical-center-l title-container">
  24. <span></span>
  25. <div>中医电子病历</div>
  26. </div>
  27. </div>
  28. <div class="patiens-msg" v-if="patiensMsg.outpatientElectronicmedicalrecord">
  29. <p v-if="patiensMsg.outpatientElectronicmedicalrecord.chiefcomplaint">
  30. <span>主诉:</span>
  31. {{patiensMsg.outpatientElectronicmedicalrecord.chiefcomplaint}}
  32. </p>
  33. <p v-if="patiensMsg.outpatientElectronicmedicalrecord.historypresent">
  34. <span>现病史:</span>
  35. {{patiensMsg.outpatientElectronicmedicalrecord.historypresent}}
  36. </p>
  37. <p v-if="patiensMsg.outpatientElectronicmedicalrecord.pasthistory">
  38. <span>既往史:</span>
  39. {{patiensMsg.outpatientElectronicmedicalrecord.pasthistory}}
  40. </p>
  41. <p v-if="patiensMsg.outpatientElectronicmedicalrecord.fourmedicine">
  42. <span>中医四诊:</span>
  43. {{patiensMsg.outpatientElectronicmedicalrecord.fourmedicine}}
  44. </p>
  45. <p v-if="patiensMsg.outpatientElectronicmedicalrecord.physicalexamination">
  46. <span>体格检查:</span>
  47. {{patiensMsg.outpatientElectronicmedicalrecord.physicalexamination}}
  48. </p>
  49. <p v-if="patiensMsg.outpatientElectronicmedicalrecord.supplementaryexamination">
  50. <span>辅助检查:</span>
  51. {{patiensMsg.outpatientElectronicmedicalrecord.supplementaryexamination}}
  52. </p>
  53. <div v-if="patiensMsg.outpatientElectronicmedicalrecord.image1.length>0">
  54. <div style="margin: 4px 0 8px;">报告上传:</div>
  55. <el-image
  56. :preview-src-list="patiensMsg.outpatientElectronicmedicalrecord.image1"
  57. :src="item"
  58. :key="index"
  59. style="width:64px;height: 64px;margin-right: 10px;"
  60. alt
  61. v-for="(item,index) in patiensMsg.outpatientElectronicmedicalrecord.image1"
  62. />
  63. </div>
  64. </div>
  65. <!-- mr-t30 -->
  66. <div class="pre-title" v-if="false">
  67. <div class="flex-vertical-center-l title-container">
  68. <span></span>
  69. <div>中医诊断</div>
  70. <!-- inferRecipe(2) -->
  71. <el-button size="mini" type="warning" @click="tcmClick()" style="margin-left:10px;">推导</el-button>
  72. </div>
  73. </div>
  74. <!-- <TCMDiagnosis v-if="Object.keys(patiensMsg).length>0" :patiensMsg="patiensMsg" ref="TCM"></TCMDiagnosis> -->
  75. <div class="pre-title mr-t10">
  76. <div class="flex-vertical-center-l title-container">
  77. <span></span>
  78. <div>快捷查询</div>
  79. </div>
  80. </div>
  81. <!-- 协定方 -->
  82. <div class="mr-t10 agreement">
  83. <div class="agree-tab flex-vertical-between">
  84. <div
  85. :class="agree_current==0?'flex-center agree-active':'flex-center'"
  86. @click.stop="changeAgree(0)"
  87. >协定方</div>
  88. <div
  89. :class="agree_current==1?'flex-center agree-active':'flex-center'"
  90. @click.stop="changeAgree(1)"
  91. >方剂</div>
  92. <div
  93. :class="agree_current==2?'flex-center agree-active':'flex-center'"
  94. @click.stop="changeAgree(2)"
  95. >参考医案</div>
  96. </div>
  97. <!-- 展开效果 -->
  98. <div class="collapse" v-if="agree_current==0">
  99. <el-collapse v-model="activeNames" accordion @change="activeChange">
  100. <el-collapse-item
  101. :title="item.name"
  102. :name="item.index"
  103. v-for="(item,index) in collapseData"
  104. :key="item.name+index"
  105. >
  106. <div class="collapse-body">
  107. <div
  108. class="collapse-item flex-vertical-between"
  109. v-for="(item1,index1) in item.list"
  110. :key="item1.name+index1"
  111. >
  112. <div class="med-name" @click="getAccordDetail(item1.preId)">{{item1.name}}</div>
  113. <!-- <div class="med-btns flex-vertical-center-r">
  114. <div class="flex-center" @click="showAgree=true">换方</div>
  115. <div class="bg-yellow flex-center">合方</div>
  116. </div>-->
  117. </div>
  118. <div class="collapse-more flex-center" @click="loadMoreCollapse(item)">
  119. <img src="../../assets/point3.png" alt />
  120. </div>
  121. </div>
  122. </el-collapse-item>
  123. </el-collapse>
  124. </div>
  125. <!-- 第二个 和第三个 tab 选中效果 -->
  126. <div class="basis" v-if="agree_current!=0">
  127. <div class="basis-top-search flex-center">
  128. <div v-if="agree_current==1">
  129. <el-input placeholder="请输入内容" v-model="agree_key" size="mini">
  130. <i slot="prefix" class="el-input__icon el-icon-search"></i>
  131. </el-input>
  132. </div>
  133. <div v-if="agree_current==2">
  134. <el-input placeholder="请输入内容" v-model="agree_key1" size="mini">
  135. <i slot="prefix" class="el-input__icon el-icon-search"></i>
  136. </el-input>
  137. </div>
  138. <div class="flex-center search-btn" @click="searchPre">搜索</div>
  139. </div>
  140. <!-- 方剂 -->
  141. <div v-if="agree_current==1">
  142. <div
  143. class="collapse-item flex-vertical-between"
  144. v-for="(item,index) in rPrescription.list"
  145. :key="'d'+index"
  146. >
  147. <div
  148. class="med-name"
  149. @click="getPreDetal(item.pried ||item.acupreid,1)"
  150. >{{item.prename || item.acupreid}}</div>
  151. <div class="med-btns flex-vertical-center-r" v-if="agree_current!=2">
  152. <div class="flex-center" @click.self.stop="inferChange(item)">换方</div>
  153. <div class="bg-yellow flex-center" @click.self.stop="inferChange1(item)">合方</div>
  154. </div>
  155. </div>
  156. </div>
  157. <!-- 参考议案 -->
  158. <div v-if="agree_current==2">
  159. <div
  160. class="collapse-item flex-vertical-between"
  161. v-for="(item,index) in rDoctorCase.list"
  162. :key="item.disname+index"
  163. >
  164. <div
  165. class="med-name"
  166. @click="getDCaseDetail(item.verifyid)"
  167. >{{item.disname}} {{item.attendingexpert}}</div>
  168. </div>
  169. </div>
  170. <div class="collapse-more flex-center" @click="loadMorePre">
  171. <img src="../../assets/point3.png" alt />
  172. </div>
  173. </div>
  174. </div>
  175. <div class="pre-title mr-t10" v-if="false">
  176. <div class="flex-vertical-center-l title-container">
  177. <span></span>
  178. <div>就诊记录</div>
  179. </div>
  180. </div>
  181. <div class="pre-steps" v-if="false">
  182. <div class="steps">
  183. <el-steps direction="vertical" :active="patiensMsg.recordLength" space="55px">
  184. <el-step v-for="(item,index) in patiensMsg.patientRecord" :key="item.timeStr+index">
  185. <template slot="icon">
  186. <img src="../../assets/step.png" alt class="icon" />
  187. </template>
  188. <template slot="title">
  189. <div @click="getSeeDByID(item.id)" class="step-body">
  190. <div class="step-name">{{item.timeStr}}</div>
  191. <div class="step-name">{{item.illnessName}}</div>
  192. </div>
  193. </template>
  194. </el-step>
  195. </el-steps>
  196. </div>
  197. <!-- <div class="find-more flex-center">
  198. <img src="../../assets/more-down.png" alt="">
  199. <span>查看更多</span>
  200. </div>-->
  201. </div>
  202. </div>
  203. <!-- 中间主体部分 -->
  204. <div class="pre-center">
  205. <!-- 768 页面 展示病名 -->
  206. <div class="page-768">
  207. <!-- 扩展icon -->
  208. <div class="kz-icon" @click="setShrink">
  209. <i class="el-icon-d-arrow-right" v-if="!isShrink"></i>
  210. <i class="el-icon-d-arrow-left" v-if="isShrink"></i>
  211. </div>
  212. <!-- 中医诊断 -->
  213. <TCMDiagnosis
  214. direction="horizontal"
  215. :patiensMsg="patiensMsg"
  216. v-if="Object.keys(patiensMsg).length>0"
  217. ref="TCM"
  218. class-name="prescr"
  219. ></TCMDiagnosis>
  220. <!-- 推导按钮 -->
  221. <div class="deduce">
  222. <el-button size="mini" type="primary" @click="tcmClick()">推导</el-button>
  223. <el-popover
  224. placement="top-start"
  225. title
  226. width="220"
  227. trigger="hover"
  228. style="margin-left:10px;"
  229. v-if="innerWidth <= 768"
  230. >
  231. <el-button size="mini" slot="reference" type="primary">HIS</el-button>
  232. <div class="his-msg his-msg-mini" v-if="Object.keys(patiensMsg).length>0">
  233. <div class="his-item">
  234. <div class="name">HIS病名:</div>
  235. <div class="value">
  236. <el-input
  237. size="mini"
  238. disabled
  239. :value="patiensMsg.maindiagnosis.namemedicinehis || ''"
  240. ></el-input>
  241. </div>
  242. </div>
  243. <div class="his-item">
  244. <div class="name">HIS证型:</div>
  245. <div class="value">
  246. <el-input
  247. size="mini"
  248. disabled
  249. :value="patiensMsg.maindiagnosis.syndrometypeshis || ''"
  250. ></el-input>
  251. </div>
  252. </div>
  253. </div>
  254. </el-popover>
  255. </div>
  256. <!-- his信息 -->
  257. <div class="his-msg" v-if="innerWidth>768 ">
  258. <div class="his-item" v-if="Object.keys(patiensMsg).length>0">
  259. <div class="name">HIS病名:</div>
  260. <div class="value">
  261. <el-input size="mini" disabled :value="patiensMsg.maindiagnosis.namemedicinehis ||''"></el-input>
  262. </div>
  263. </div>
  264. <div class="his-item" v-if="Object.keys(patiensMsg).length>0">
  265. <div class="name">HIS证型:</div>
  266. <div class="value">
  267. <el-input
  268. size="mini"
  269. disabled
  270. :value="patiensMsg.maindiagnosis.syndrometypeshis || ''"
  271. ></el-input>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. <div class="flex-vertical-between center-header">
  277. <div class="center-tab flex-vertical-center-l">
  278. <div v-for="(item,index) in contentTabs" :key="index"
  279. v-show="!item.hide" :data-tab-prescribing="item.id" class="flex-center" :class="{active: container_i === index}"
  280. @click="changeContainer(item, index)">
  281. <span :style="{color:item.color}">{{ item.name }}</span>
  282. </div>
  283. </div>
  284. <div class="header-total flex-vertical-center-r flex-wrap" v-if="false">
  285. <div v-if="contentTabs[0].check">
  286. 中药处方总费用:
  287. <span>{{chineseM.allMoney}}元</span>
  288. </div>
  289. <div v-if="contentTabs[1].check">
  290. 中药制剂总费用:
  291. <span>{{medicineC.allMoney}}元</span>
  292. </div>
  293. <div v-if="contentTabs[2].check">
  294. 适宜技术处方总费用:
  295. <span>{{suitScience.allMoney}}元</span>
  296. </div>
  297. <div>
  298. 合计费用:
  299. <span>{{totalPrice}}元</span>
  300. </div>
  301. </div>
  302. <!-- 右侧按钮 -->
  303. <div class="flex-vertical-center-r flex-wrap">
  304. <el-button v-if="showPrec" size="mini" @click="openUnifyPrescPrec" type="primary">萧然医派协定方</el-button>
  305. <el-button size="mini" key="tongue" :loading="tongueAndFaceLoading" :disabled="!tongueAndFaceAnalysis" @click="openTongueAndFaceAnalysis" type="primary">舌面诊影像</el-button>
  306. <el-button
  307. size="mini"
  308. type="primary"
  309. @click="handleReplenish"
  310. >{{ innerWidth > 768 ? '补充中医电子病历' :'补充病历' }}</el-button>
  311. <el-button size="mini" @click="openDCase" v-if="showPrec && isShrink">参考医案</el-button>
  312. <el-button v-if="showPrec" size="mini" @click="openPrec" type="primary">协定方/方剂</el-button>
  313. <el-popover
  314. placement="left"
  315. title
  316. width="150"
  317. trigger="hover"
  318. v-if="rRecomendR.length>0 && isShrink"
  319. style="margin-left:10px;"
  320. >
  321. <!-- hover -->
  322. <el-button size="mini" type="primary" slot="reference">推荐的方剂</el-button>
  323. <template>
  324. <div class="recommend flex-center" style="width:100%">
  325. <div class="banner">
  326. <div class="r-banner-body">
  327. <div
  328. class="r-body-item flex-vertical-between"
  329. v-for="(item1,index1) in rRecomendR"
  330. :key="'c'+index1"
  331. >
  332. <div
  333. :class="['med-name med-name-bg',tjRecipeId==item1.preid ||tjRecipeId==item1.pid || tjRecipeId==item1.acupreid ?'active':'',]"
  334. v-if="item1.showType==0"
  335. @click.stop="getPreDetal(item1.preid || item1,1)"
  336. >
  337. <span v-if="item1.prename">{{item1.prename}}</span>
  338. <span
  339. v-else
  340. >{{item1.acupretype==1?'针灸':item1.acupretype==2?'艾灸':item1.acupretype==3?'推拿':'拔罐'}}</span>
  341. <!-- {{item1.prename?item1.prename+'('+item1.book?item1.book:'暂无'+')': item1.acupretype==1?'针灸':item1.acupretype==2?'艾灸':item1.acupretype==3?'推拿':'拔罐'}} -->
  342. </div>
  343. <!-- 经验方 -->
  344. <div
  345. :class="['med-name med-name-bg',tjRecipeId==item1.preid ||tjRecipeId==item1.pid ?'active':'',]"
  346. v-else
  347. @click="getExperinceDetail(item1.pid)"
  348. >
  349. <!-- <img src='~@/assets/expr.png' v-if="item1.showType==1" class="icon-expr" /> -->
  350. <span>{{item1.name}}({{item1.experttitle}})</span>
  351. </div>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. </template>
  357. </el-popover>
  358. <el-button size="mini" type="primary" v-if="showPrec && isShrink&&rRecomendR.length==0">推荐的方剂</el-button>
  359. </div>
  360. </div>
  361. <!-- 代煎/配送 -->
  362. <!-- <div class="address">
  363. <medAdress
  364. ref="medAdress"
  365. :container_i="container_i"
  366. @psChange="psChange"
  367. @djChange="djChange"
  368. :isShowDj="isShowDj"
  369. :isShowPs="isShowPs"
  370. ></medAdress>
  371. </div>-->
  372. <!-- 表格数据展示 -->
  373. <div class="center-table">
  374. <chinese-medicine
  375. @find="findDrug($event)"
  376. v-show="container_i===0"
  377. id="chineseM"
  378. ref="chineseM"
  379. :totalAllMoney.sync="chineseM.allMoney"
  380. @submit="submitRecipe1()"
  381. @clear="clearContainer('0')"
  382. :showSubmit="showSubmit"
  383. :isShrink="isShrink"
  384. :isDaiJian="Number(isDaiJian)"
  385. :isPs="isPs"
  386. @updateDp="onUpdateDp"
  387. ></chinese-medicine>
  388. <medicineChinese
  389. @find="findDrug($event)"
  390. v-show="container_i==1"
  391. ref="medicineC"
  392. id="medicineC"
  393. @submit="submitRecipe1()"
  394. @clear="clearContainer('1')"
  395. :totalAllMoney.sync="medicineC.allMoney"
  396. :showSubmit="showSubmit"
  397. :isPs="isPs"
  398. ></medicineChinese>
  399. <suitScience
  400. @find="find($event)"
  401. v-show="container_i==2"
  402. ref="suitScience"
  403. id="suitScience"
  404. @submit="submitRecipe1()"
  405. @clear="clearContainer('2')"
  406. :totalAllMoney.sync="suitScience.allMoney"
  407. :showSubmit="showSubmit"
  408. ></suitScience>
  409. </div>
  410. </div>
  411. <div class="pre-right" v-show="container_i!=1 && !isShrink">
  412. <!-- 标题信息 -->
  413. <div class="pre-title flex-vertical-between">
  414. <div class="flex-vertical-center-l title-container">
  415. <span></span>
  416. <div>推荐的方剂</div>
  417. </div>
  418. <!-- <div class="tuidao flex-center" @click="inferRecipe(2)" v-if="rRecomendR.length>0">推导</div> -->
  419. </div>
  420. <!-- 推荐方剂 -->
  421. <div class="recommend flex-center" v-if="rRecomendR.length>0">
  422. <!-- <div class="arrow-left flex-center" @click="changeRbanner('reduce')">
  423. <img src="../../assets/arrow-left.png" alt="">
  424. </div>-->
  425. <div class="banner">
  426. <!-- <el-carousel ref="r_banner" height="80px" :initial-index='r_current' arrow='never' indicator-position='none'
  427. :autoplay='false'>-->
  428. <!-- <el-carousel-item v-for="(item,index) in rRecomendR" :key="'b'+index"> -->
  429. <div class="r-banner-body">
  430. <div
  431. class="r-body-item flex-vertical-between"
  432. v-for="(item1,index1) in rRecomendR"
  433. :key="'c'+index1"
  434. >
  435. <div class="med-name med-name-bg"
  436. :class="{active: tjRecipeId && (tjRecipeId==item1.preid ||tjRecipeId==item1.pid || tjRecipeId==item1.acupreid)}"
  437. v-if="item1.showType==0"
  438. @click.stop="getPreDetal(item1.preid || item1,1)"
  439. >
  440. <span v-if="item1.prename">{{item1.prename}}</span>
  441. <span
  442. v-else
  443. >{{item1.acupretype==1?'针灸':item1.acupretype==2?'艾灸':item1.acupretype==3?'推拿':'拔罐'}}</span>
  444. <!-- {{item1.prename?item1.prename+'('+item1.book?item1.book:'暂无'+')': item1.acupretype==1?'针灸':item1.acupretype==2?'艾灸':item1.acupretype==3?'推拿':'拔罐'}} -->
  445. </div>
  446. <!-- 经验方 -->
  447. <div class="med-name med-name-bg"
  448. :class="{active: tjRecipeId && (tjRecipeId==item1.preid ||tjRecipeId==item1.pid) }"
  449. v-else
  450. @click="getExperinceDetail(item1.pid)"
  451. >
  452. <!-- <img src='~@/assets/expr.png' v-if="item1.showType==1" class="icon-expr" /> -->
  453. <span>{{item1.name}}({{item1.experttitle}})</span>
  454. </div>
  455. <!-- <div class="med-btns flex-vertical-center-r"> -->
  456. <!-- 专家经验换方 -->
  457. <!-- <div class="flex-center" v-if="item1.showType==1" @click.self.stop="turnRecipe3(item1)">换方</div>
  458. <div class="flex-center bg-yellow" v-if="item1.showType==1" @click.self.stop="joinRecipe3(item1)">合方
  459. </div>
  460. <div class="flex-center" v-if="item1.showType==0"
  461. @click.self.stop="inferChange(item1,item1.prename?'':1,item1.prename?'':1)">换方</div>
  462. <div class="bg-yellow flex-center" v-if="item1.showType==0"
  463. @click.self.stop="inferChange1(item1,item1.prename?'':1,item1.prename?'':1)">合方
  464. </div>-->
  465. <!-- </div> -->
  466. </div>
  467. </div>
  468. <!-- </el-carousel-item> -->
  469. <!-- </el-carousel> -->
  470. </div>
  471. <!-- <div class="arrow-left flex-center" @click="changeRbanner('add')">
  472. <img src="../../assets/arrow-right.png" alt="">
  473. </div>-->
  474. </div>
  475. <!-- 安全合理用药检测 -->
  476. <div class="pre-title mr-t10" v-if="container_i!=2">
  477. <div class="flex-vertical-center-l title-container">
  478. <span></span>
  479. <div>安全合理用药检测</div>
  480. </div>
  481. <div class="patiens-msg mr-t10" v-if="rationalMed.length>0">
  482. <div class="p" v-if="raDoseShow">
  483. <!-- {{item.matname}}({{item.matbzjj}}) -->
  484. <!-- <div class="patiens-name">{{item.matname}}</div> -->
  485. <div class="patiens-cate">超剂量药品:</div>
  486. <div class="patiens-desc" v-for="(item,index) in rationalMed10" :key="index">
  487. <span v-if="item.showDose">
  488. <span class="matname">{{item.matname}}</span>
  489. <span style="color:red;">({{item.matmindosage}}-{{item.matmaxdosage}})</span>
  490. </span>
  491. </div>
  492. </div>
  493. <div class="p" v-if="rationalMed2.length>0">
  494. <div class="patiens-cate">慎忌禁用药:</div>
  495. <div class="patiens-desc" v-for="(item,index) in rationalMed2" :key="index">
  496. <span v-if="item.matsjj">
  497. <span class="matname">{{item.matname}}</span>
  498. ({{item.matsjj}})
  499. </span>
  500. </div>
  501. </div>
  502. <div class="p" v-if="rationalMed3.length>0">
  503. <div class="patiens-cate">孕妇慎忌禁:</div>
  504. <div class="patiens-desc" v-for="(item,index) in rationalMed3" :key="index">
  505. <span v-if="item.matyfsjj">
  506. <span class="matname">{{item.matname}}</span>
  507. <span :style="{color:item.matyfsj==3?'red':''}">({{item.matyfsjj |fyfsjj}})</span>
  508. </span>
  509. </div>
  510. </div>
  511. <div class="p" v-if="rationalMed4.length>0">
  512. <div class="patiens-cate">服药饮食禁忌:</div>
  513. <div class="patiens-desc" v-for="(item,index) in rationalMed4" :key="index">
  514. <span v-if="item.matysjj">
  515. <span class="matname">{{item.matname}}</span>
  516. ({{item.matysjj?item.matysjj:'无'}})
  517. </span>
  518. </div>
  519. </div>
  520. <div class="p" v-if="rationalMed5.length>0">
  521. <div class="patiens-cate">药物毒性说明:</div>
  522. <div class="patiens-desc" v-for="(item,index) in rationalMed5" :key="index">
  523. <span v-if="item.matdxsm">
  524. <span class="matname" style="color:red;">{{item.matname}}</span>
  525. ({{item.matdxsm?item.matdxsm:'无'}})
  526. </span>
  527. </div>
  528. </div>
  529. <div class="p" v-if="rationalMed6.length>0">
  530. <div class="patiens-cate">病证用药禁忌:</div>
  531. <div class="patiens-desc" v-for="(item,index) in rationalMed6" :key="index">
  532. <span v-if="item.matbzjj">
  533. <span class="matname">{{item.matname}}</span>
  534. ({{item.matbzjj?item.matbzjj:'无'}})
  535. </span>
  536. </div>
  537. </div>
  538. <div class="p" v-if="rationalMed7.length>0">
  539. <div class="patiens-cate">十八反:</div>
  540. <div class="patiens-desc" v-for="(item,index) in rationalMed7" :key="index">
  541. <!-- <span v-if='item.matsbf'>{{fsbf(item.matsbf,item.matname)}}</span> -->
  542. <span v-if="item.matsbf">
  543. <span style="color:red;">{{item.matname}}</span>
  544. 反{{item.matsbf}}
  545. </span>
  546. </div>
  547. </div>
  548. <div class="p" v-if="rationalMed8.length>0">
  549. <div class="patiens-cate">十九畏:</div>
  550. <div class="patiens-desc" v-for="(item,index) in rationalMed8" :key="index">
  551. <!-- <span v-if="item.matsjw">{{fsjw(item.matsjw,item.matname)}}</span> -->
  552. <span v-if="item.matsjw">
  553. <span style="color:red;">{{item.matname}}</span>
  554. 畏{{item.matsjw}}
  555. </span>
  556. </div>
  557. </div>
  558. <div class="p" v-if="rationalMed9.length>0">
  559. <div class="patiens-cate">用药不宜:</div>
  560. <div class="patiens-desc" v-for="(item,index) in rationalMed9" :key="index">
  561. <span v-if="item.matby">{{fmatby(item.matby,item.matname) }}</span>
  562. </div>
  563. </div>
  564. </div>
  565. </div>
  566. </div>
  567. <!-- 方剂详情 -->
  568. <Popup
  569. :showDialog="showDialog"
  570. distanceTop="3vh"
  571. @cancle="changeRecipe"
  572. title="方剂详情"
  573. @confim="joinRecipe()"
  574. confimText="合方"
  575. cancleText="换方"
  576. :cancleStyle="{background:'#FFB55F',color:'#fff'}"
  577. width="700px"
  578. >
  579. <div class="drug-body" slot="body">
  580. <div v-if="preInfo.prename" class="drug-item flex-plane-center-l">
  581. <span>方剂名:</span>
  582. <div>{{preInfo.prename}}</div>
  583. </div>
  584. <div v-if="preInfo.prename" class="drug-item flex-plane-center-l">
  585. <span>功效:</span>
  586. <div>{{preInfo.efficacy}}</div>
  587. </div>
  588. <div v-if="preInfo.prename" class="drug-item flex-plane-center-l">
  589. <span>主治:</span>
  590. <div>{{preInfo.indication}}</div>
  591. </div>
  592. <div class="drug-item flex-plane-center-l">
  593. <span>处方明细:</span>
  594. <div class="flex-vertical-center-l flex-wrap">
  595. <span
  596. v-for="(item,index) in preInfo.items"
  597. :key="'e'+index"
  598. >{{item.matname || item.acuname}}{{item.dose}}{{item.unit}}</span>
  599. </div>
  600. </div>
  601. <div class="drug-item flex-plane-center-l">
  602. <span>方解:</span>
  603. <div>{{preInfo.annotation ||preInfo.operation}}</div>
  604. </div>
  605. <div v-if="preInfo.prename" class="drug-item flex-plane-center-l">
  606. <span>用法:</span>
  607. <div>{{preInfo.preusage}}</div>
  608. </div>
  609. <div class="drug-item flex-plane-center-l">
  610. <span>出处:</span>
  611. <div>{{preInfo.presource || preInfo.book}}</div>
  612. </div>
  613. </div>
  614. </Popup>
  615. <!-- 药品详情 -->
  616. <Popup
  617. width="80%"
  618. :showDialog="showDrug"
  619. @cancle="showDrug=false"
  620. distanceTop="3vh"
  621. title="药品详情"
  622. :showBtns="false"
  623. >
  624. <div class="drug-body" slot="body">
  625. <div class="drug-item flex-plane-center-l">
  626. <span>名称:</span>
  627. <div>{{drugInfo.matname}}</div>
  628. </div>
  629. <div class="drug-item flex-plane-center-l">
  630. <span>别名:</span>
  631. <div>{{drugInfo.matsynonyms}}</div>
  632. </div>
  633. <div class="drug-item flex-plane-center-l">
  634. <span>剂量区间:</span>
  635. <div>{{drugInfo.matmindosage}}-{{drugInfo.matmaxdosage}}{{drugInfo.unit}}</div>
  636. </div>
  637. <div class="drug-item flex-plane-center-l">
  638. <span>单位:</span>
  639. <div>{{drugInfo.unit}}</div>
  640. </div>
  641. <div class="drug-item flex-plane-center-l">
  642. <span>用法:</span>
  643. <div>{{drugInfo.matusage}}</div>
  644. </div>
  645. <div class="drug-item flex-plane-center-l">
  646. <span>用法禁忌:</span>
  647. <div>{{drugInfo.matsjj}}</div>
  648. </div>
  649. <div class="drug-item flex-plane-center-l">
  650. <span>性味:</span>
  651. <div>{{drugInfo.matflavour}}</div>
  652. </div>
  653. <div class="drug-item flex-plane-center-l">
  654. <span>归经:</span>
  655. <div>{{drugInfo.matmeridian}}</div>
  656. </div>
  657. <div class="drug-item flex-plane-center-l">
  658. <span>功效:</span>
  659. <div>{{drugInfo.matefficacy}}</div>
  660. </div>
  661. <div class="drug-item flex-plane-center-l">
  662. <span>应用:</span>
  663. <div>{{drugInfo.matapplication}}</div>
  664. </div>
  665. <div class="drug-item flex-plane-center-l">
  666. <span>使用注意:</span>
  667. <div>
  668. <div>{{drugInfo.mattaboo}}</div>
  669. <!-- <div>2.通常补血用当归身,活血用当归尾,补血活血用全当归</div> -->
  670. </div>
  671. </div>
  672. <div class="drug-item flex-plane-center-l">
  673. <span>图示:</span>
  674. <div
  675. class="flex-plane-center-l"
  676. v-for="(item,index) in drugInfo.matphoto"
  677. :key="'f'+index"
  678. >
  679. <img :src="item" alt />
  680. </div>
  681. </div>
  682. <div class="flex-vertical-center-l flex-wrap">
  683. <div class="drug-item1 flex-plane-center-l">
  684. <span>相似中药鉴别使用:</span>
  685. <div>
  686. <div v-for="(item,index) in drugInfo.xiangsi" :key="'g'+index">
  687. <span
  688. class="mad-cy"
  689. v-for="(item1,index1) in item.relmats"
  690. :key="'h'+index1"
  691. >{{item1.matname}}{{index1==item.relmats.length-1?'':'、'}}</span>
  692. <div style="margin-bottom:10px;">{{item.differencedesc}}</div>
  693. </div>
  694. </div>
  695. </div>
  696. </div>
  697. <div class="flex-vertical-center-l flex-wrap">
  698. <div class="drug-item1 flex-plane-center-l">
  699. <span>常用药对:</span>
  700. <div>
  701. <div v-for="(item,index) in drugInfo.changyong" :key="index">
  702. <span
  703. class="mad-cy"
  704. v-for="(item1,index1) in item.relmats"
  705. :key="'i'+index1"
  706. >{{item1.matname}}{{index1==item.relmats.length-1?'':'、'}}</span>
  707. <div style="margin-bottom:10px;">{{item.differencedesc}}</div>
  708. </div>
  709. </div>
  710. </div>
  711. </div>
  712. </div>
  713. </Popup>
  714. <!-- 药品详情 -->
  715. <Popup
  716. width="50%"
  717. distanceTop="5vh"
  718. :showDialog="showXuewei"
  719. @cancle="showXuewei=false"
  720. title="穴位详情"
  721. :showBtns="false"
  722. >
  723. <div class="drug-body" slot="body">
  724. <div class="drug-item flex-plane-center-l">
  725. <span>穴位名称:</span>
  726. <div>
  727. <div>{{xwinfo.acuname}}</div>
  728. <!-- <div>2.通常补血用当归身,活血用当归尾,补血活血用全当归</div> -->
  729. </div>
  730. </div>
  731. <div class="drug-item flex-plane-center-l">
  732. <span>定位:</span>
  733. <div>
  734. <div>{{xwinfo.acuposotion}}</div>
  735. <!-- <div>2.通常补血用当归身,活血用当归尾,补血活血用全当归</div> -->
  736. </div>
  737. </div>
  738. <div class="drug-item flex-plane-center-l">
  739. <span>解剖:</span>
  740. <div>
  741. <div>{{xwinfo.acudiscection}}</div>
  742. <!-- <div>2.通常补血用当归身,活血用当归尾,补血活血用全当归</div> -->
  743. </div>
  744. </div>
  745. <div class="drug-item flex-plane-center-l">
  746. <span>主治:</span>
  747. <div>
  748. <div>{{xwinfo.acumaintreat}}</div>
  749. <!-- <div>2.通常补血用当归身,活血用当归尾,补血活血用全当归</div> -->
  750. </div>
  751. </div>
  752. <div class="drug-item flex-plane-center-l">
  753. <span>操作:</span>
  754. <div>
  755. <div>{{xwinfo.acuoperation}}</div>
  756. <!-- <div>2.通常补血用当归身,活血用当归尾,补血活血用全当归</div> -->
  757. </div>
  758. </div>
  759. <div class="drug-item flex-plane-center-l">
  760. <span>针刺:</span>
  761. <div>
  762. <div>{{xwinfo.acuneedling}}</div>
  763. <!-- <div>2.通常补血用当归身,活血用当归尾,补血活血用全当归</div> -->
  764. </div>
  765. </div>
  766. <div class="drug-item flex-plane-center-l">
  767. <span>图示:</span>
  768. <!-- <div class="flex-plane-center-l" v-for="(item,index) in drugInfo.acuimg" :key="index">
  769. <img :src="item" alt="">
  770. </div>-->
  771. <div class="img">
  772. <img :src="xwinfo.acuimg" alt />
  773. </div>
  774. </div>
  775. </div>
  776. </Popup>
  777. <!-- 我的协定方 -->
  778. <Popup
  779. :showDialog="showAgree"
  780. @cancle="showAgree=false"
  781. distanceTop="5vh"
  782. title="我的协定方"
  783. :showBtns="false"
  784. >
  785. <div class="drug-body" slot="body">
  786. <div class="drug-item flex-plane-center-l">
  787. <span>方名:</span>
  788. <div>{{agreeInfo.name}}</div>
  789. </div>
  790. <div class="drug-item flex-plane-center-l">
  791. <span>功效适应症:</span>
  792. <div>{{agreeInfo.effect}}</div>
  793. </div>
  794. <div class="drug-item flex-plane-center-l">
  795. <span>类别:</span>
  796. <div>{{agreeInfo.type=='0'?'组方':'配方'}}</div>
  797. </div>
  798. <div class="drug-item flex-plane-center-l">
  799. <span>明细:</span>
  800. <div class="detail">
  801. <p class="flex-center btns" @click="agreeTurnRecipe(agreeInfo)">转方</p>
  802. <p class="drug-detail flex-plane-center-l flex-wrap">
  803. <span
  804. v-for="(item,index) in agreeInfo.preStiDetails"
  805. :key="item.ypmc+index"
  806. >{{item.ypmc}}{{item.dose}}{{item.dw}}</span>
  807. </p>
  808. </div>
  809. </div>
  810. <div class="drug-item flex-plane-center-l">
  811. <span>分享医生:</span>
  812. <div>{{agreeInfo.createName}}</div>
  813. </div>
  814. </div>
  815. </Popup>
  816. <!-- 专家经验 -->
  817. <Popup
  818. :showDialog="showExpr"
  819. distanceTop="5vh"
  820. @cancle="showExpr=false"
  821. title="专家经验"
  822. :showBtns="false"
  823. width="700px"
  824. >
  825. <div class="drug-body" slot="body">
  826. <div class="drug-item flex-plane-center-l">
  827. <span>方名:</span>
  828. <div>{{exprInfo.name}}</div>
  829. </div>
  830. <div class="drug-item flex-plane-center-l">
  831. <span>方解:</span>
  832. <div>{{exprInfo.solution}}</div>
  833. </div>
  834. <div class="drug-item flex-plane-center-l">
  835. <span>功效适应症:</span>
  836. <div>{{exprInfo.effect}}</div>
  837. </div>
  838. <div class="drug-item flex-plane-center-l">
  839. <span>明细:</span>
  840. <div class="detail">
  841. <div class="trun-join">
  842. <p class="flex-center btns" @click="turnRecipe3(exprInfo)">转方</p>
  843. <p class="flex-center btns bg-yellow" @click="joinRecipe3(exprInfo)">合方</p>
  844. </div>
  845. <p class="drug-detail flex-plane-center-l flex-wrap">
  846. <span
  847. v-for="item in exprInfo.prescriptionDetailVos"
  848. :key="item.drugname+item.pid"
  849. >{{item.drugname}}{{item.dose}}{{item.unit}}</span>
  850. </p>
  851. </div>
  852. </div>
  853. <div class="drug-item flex-plane-center-l">
  854. <span>专家名称:</span>
  855. <div>{{exprInfo.expert}}</div>
  856. </div>
  857. </div>
  858. </Popup>
  859. <!-- 名家验案详情 -->
  860. <Popup
  861. :showDialog="showTestCase"
  862. distanceTop="5vh"
  863. @cancle="showTestCase=false"
  864. title="名家验案详情"
  865. :showBtns="false"
  866. width="700px"
  867. >
  868. <div slot="body" class="testCase">
  869. <div v-if="!!testCaseInfo.content" style="white-space: pre-wrap;line-height: 2">{{ testCaseInfo.content }}</div>
  870. <template v-else>
  871. <div class="testCase-item flex-plane-center-l">
  872. <span class="testCase-left">性别:</span>
  873. <div class="testCase-right">{{testCaseInfo.patientgender=='M'?'男':'女'}}</div>
  874. </div>
  875. <div class="testCase-item flex-plane-center-l">
  876. <span class="testCase-left">年龄:</span>
  877. <div class="testCase-right">{{testCaseInfo.patientage}}岁</div>
  878. </div>
  879. <div class="testCase-item flex-plane-center-l">
  880. <span class="testCase-left">婚姻:</span>
  881. <div class="testCase-right">{{testCaseInfo.patientmarriage=='0'?'未婚':'已婚'}}</div>
  882. </div>
  883. <div class="testCase-item flex-plane-center-l" v-if="testCaseInfo.dialist">
  884. <span class="testCase-left">主诉及现病史:</span>
  885. <div class="testCase-right">{{testCaseInfo.dialist[0].situation}}</div>
  886. </div>
  887. <div class="testCase-item flex-plane-center-l">
  888. <span class="testCase-left">辩证:</span>
  889. <div class="testCase-right">{{testCaseInfo.chinesesymptom}}</div>
  890. </div>
  891. <div class="testCase-item flex-plane-center-l">
  892. <span class="testCase-left">治法:</span>
  893. <div class="testCase-right">{{testCaseInfo.therapy}}</div>
  894. </div>
  895. </template>
  896. <div v-for="(item,index) in testCaseInfo.dialist" :key="index">
  897. <div class="testCase-title">{{index==0?'初诊':item.diatimes+'诊'}}</div>
  898. <div v-if="!testCaseInfo.content" class="testCase-item flex-plane-center-l">
  899. <span class="testCase-left">就诊日期:</span>
  900. <div class="testCase-right">{{item.checktime[0]}}</div>
  901. </div>
  902. <div class="testCase-item flex-plane-center-l">
  903. <span class="testCase-left">治疗意见:</span>
  904. <div
  905. class="testCase-right"
  906. v-for="(item1,index1) in item.fjlist"
  907. :key="item1.preusage+index1"
  908. >
  909. <div class="flex-vertical-center-l case-yijian">
  910. <span>{{item1.preusage}}</span>
  911. <div class="testCase-btns flex-center" @click="turnRecipe(item1)">转方</div>
  912. </div>
  913. <div class="flex-vertical-center-l flex-wrap case-detial">
  914. <span
  915. v-for="(item2,index2) in item1.verpreitemlist"
  916. :key="item2.matname+index2"
  917. >{{item2.matname}}{{item2.dose}}{{item2.unit}}</span>
  918. </div>
  919. </div>
  920. </div>
  921. </div>
  922. <div v-if="!testCaseInfo.content" class="testCase-item flex-plane-center-l">
  923. <span class="testCase-left">按语:</span>
  924. <div class="testCase-right">{{testCaseInfo.words}}</div>
  925. </div>
  926. <div class="testCase-item flex-plane-center-l">
  927. <span class="testCase-left">来源:</span>
  928. <div class="testCase-right">{{testCaseInfo.book}}</div>
  929. </div>
  930. </div>
  931. </Popup>
  932. <!-- 就诊记录详情 -->
  933. <Popup :showDialog="showRecord" @cancle="showRecord=false" title="就诊记录详情" :showBtns="false">
  934. <div slot="body" class="testCase" v-if="recordInfo.patient">
  935. <div class="testCase-item flex-plane-center-l">
  936. <span class="testCase-left">姓名:</span>
  937. <div class="testCase-right">{{recordInfo.patient.name}}</div>
  938. </div>
  939. <div class="testCase-item flex-plane-center-l">
  940. <span class="testCase-left">性别:</span>
  941. <div class="testCase-right">{{recordInfo.patient.sex}}</div>
  942. </div>
  943. <div class="testCase-item flex-plane-center-l">
  944. <span class="testCase-left">年龄:</span>
  945. <div class="testCase-right">{{recordInfo.patient.age}}岁</div>
  946. </div>
  947. <div class="testCase-item flex-plane-center-l">
  948. <span class="testCase-left">医疗机构:</span>
  949. <div class="testCase-right">{{recordInfo.patient.institutionidSelsourceName}}</div>
  950. </div>
  951. <div class="testCase-item flex-plane-center-l">
  952. <span class="testCase-left">科室名称:</span>
  953. <div class="testCase-right">{{recordInfo.patient.institutionidSelsourceName}}</div>
  954. </div>
  955. <div class="testCase-item flex-plane-center-l">
  956. <span class="testCase-left">诊断:</span>
  957. <div class="testCase-right">
  958. <div>中医诊断:{{recordInfo.mainDiagnosis.namemedicine?recordInfo.mainDiagnosis.namemedicine:'无'}}</div>
  959. <div>西医诊断:{{recordInfo.mainDiagnosis.diagnosis?recordInfo.mainDiagnosis.diagnosis:'无'}}</div>
  960. </div>
  961. </div>
  962. <div class="testCase-item flex-plane-center-l">
  963. <span class="testCase-left">治疗意见:</span>
  964. <div
  965. class="testCase-right"
  966. v-for="(item,index) in recordInfo.patientprescription"
  967. :key="'i'+index"
  968. >
  969. <div class="flex-vertical-center-l case-yijian">
  970. <span>{{item.type=='0'?'中药处方'+(index+1):item.type=='1'?'中药制剂':'适宜技术处方'}}</span>
  971. <div class="testCase-btns flex-center" @click="turnRecipe1(item)">转方</div>
  972. </div>
  973. <div class="flex-vertical-center-l flex-wrap case-detial">
  974. <span
  975. v-for="(item1,index1) in item.myPatientDetailVos"
  976. :key="item1.name+index1"
  977. >{{item1.name}}{{item1.num}}{{item1.unit}}</span>
  978. </div>
  979. </div>
  980. </div>
  981. <div class="testCase-item flex-plane-center-l">
  982. <span class="testCase-left">开方医生:</span>
  983. <div
  984. class="testCase-right"
  985. >{{recordInfo.patientprescription.length>0?recordInfo.patientprescription[0].updateUser:'无'}}</div>
  986. </div>
  987. <div class="testCase-item flex-plane-center-l">
  988. <span class="testCase-left">时间:</span>
  989. <div
  990. class="testCase-right"
  991. >{{recordInfo.patientprescription.length>0?recordInfo.patientprescription[0].updateTime:'无'}}</div>
  992. </div>
  993. </div>
  994. </Popup>
  995. <!-- 处方预览 -->
  996. <submitRecipe :show.sync="showPriview" :priviewData="priviewData"></submitRecipe>
  997. <!-- <div style="position:fixed;top:0;z-index:9999;width:100vw;">
  998. <suitMadePad></suitMadePad>
  999. </div>-->
  1000. <!--参考医案例 页面768-->
  1001. <Popup
  1002. :showDialog="showCase"
  1003. @cancle="showCase=false"
  1004. title="参考医案"
  1005. :showBtns="false"
  1006. width="700px"
  1007. distanceTop="5vh"
  1008. >
  1009. <div slot="body">
  1010. <doctorCase :searchKey="agree_key1"></doctorCase>
  1011. </div>
  1012. </Popup>
  1013. <!-- 查询协定方 方剂 页面768 -->
  1014. <Popup
  1015. :showDialog="showPresc"
  1016. @cancle="showPresc=false"
  1017. title="查询方剂/查询协定方"
  1018. :showBtns="false"
  1019. width="78%"
  1020. distanceTop="5vh"
  1021. >
  1022. <div slot="body">
  1023. <prescription></prescription>
  1024. </div>
  1025. </Popup>
  1026. <!-- 查询萧然医派协定方 页面768 -->
  1027. <Popup
  1028. :showDialog="showUnifyPresc"
  1029. @cancle="showUnifyPresc=false"
  1030. title="查询萧然医派协定方"
  1031. :showBtns="false"
  1032. width="78%"
  1033. distanceTop="5vh"
  1034. >
  1035. <div slot="body">
  1036. <UnifyPrescription></UnifyPrescription>
  1037. </div>
  1038. </Popup>
  1039. <!-- 查询舌象分析 页面768 -->
  1040. <Popup
  1041. :showDialog="showTongueAnalysis"
  1042. @cancle="showTongueAnalysis=false"
  1043. title="舌面诊影像"
  1044. :showBtns="false"
  1045. width="70%"
  1046. distanceTop="5vh"
  1047. >
  1048. <div style="height: 100%" slot="body">
  1049. <TongueAnalysis v-if="showTongueAnalysis" :dataset="tongueAndFaceAnalysis"></TongueAnalysis>
  1050. </div>
  1051. </Popup>
  1052. <!-- 安全合理用药弹窗 -->
  1053. <!-- 查询协定方 方剂 页面768 -->
  1054. <Popup
  1055. :showDialog.sync="showSafeD"
  1056. @cancle="showSafeD=false"
  1057. title="安全合理用药检测"
  1058. :showBtns="false"
  1059. width="700px"
  1060. distanceTop="5vh"
  1061. :destroyOnClose="true"
  1062. >
  1063. <div slot="body">
  1064. <safeDrug v-if="showSafeD"></safeDrug>
  1065. </div>
  1066. </Popup>
  1067. <!-- 选择代煎 地址栏 -->
  1068. <Popup
  1069. :showDialog="showAddress"
  1070. @cancle="submitAddress(true)"
  1071. @confim="submitAddress()"
  1072. title="请和患者确认以下信息"
  1073. width="700px"
  1074. distanceTop="5vh"
  1075. >
  1076. <div slot="body">
  1077. <medAdressNew
  1078. ref="medAdress"
  1079. :isDaijian="Number(isDaiJian)"
  1080. :isPs="Number(isPs)"
  1081. :isShowDj="isShowDj"
  1082. :isShowPs="isShowPs"
  1083. ></medAdressNew>
  1084. </div>
  1085. </Popup>
  1086. </div>
  1087. </template>
  1088. <script>
  1089. import Popup from "@/components/Propup.vue";
  1090. import chineseMedicine from "@/components/ChineseMedicine.vue";
  1091. import medicineChinese from "@/components/MedicineAndChina.vue";
  1092. import suitScience from "@/components/SuitScience.vue";
  1093. import submitRecipe from "./components/submitRecipe.vue";
  1094. // import TCMDiagnosis from "./components/TCMDiagnosis.vue";
  1095. import TCMDiagnosis from "../../components/TCMDiagnosis.vue";
  1096. import doctorCase from "./components/doctorCase.vue";
  1097. import prescription from "./components/prescription.vue";
  1098. import UnifyPrescription from "./components/prescription-unify.vue";
  1099. import TongueAnalysis from "./components/tongue-analysis.vue";
  1100. import safeDrug from "./components/safeDrug.vue";
  1101. import medAdress from "./components/medAddress.vue";
  1102. import medAdressNew from "./components/medAddressNew.vue";
  1103. import {
  1104. getPatiensBasisM,
  1105. getTongueAndFaceAnalysisRecords,
  1106. addRecipe,
  1107. getRecipeShowData,
  1108. getRecipeDataByid,
  1109. getAgreeRecipe,
  1110. getSeeDByID,
  1111. getDrugDetail,
  1112. getAccordDetail,
  1113. changeBasisPre,
  1114. updateRecipe,
  1115. changeExpre,
  1116. recipeIsPay,
  1117. getPreNumber,
  1118. getRecipePriview,
  1119. getMaxMinDoaseNumber
  1120. } from "@/api/diagnosis.js";
  1121. import { numberToUpperCase } from "@/utils/format.js";
  1122. import { addRecipeFrom } from "@/api/dataAnalysis.js";
  1123. import {
  1124. getPrescriptionsList,
  1125. getDoctorCaseL,
  1126. getRationalMed,
  1127. getRationalMedForPlat,
  1128. inferRecipe,
  1129. getDCaseDetail,
  1130. changeAndJoin,
  1131. getPreDetal,
  1132. getAcupointD,
  1133. getMedDetail
  1134. } from "@/api/knowledge.js";
  1135. import { mapState, mapGetters, mapActions, mapMutations } from "vuex";
  1136. import { getExperinceDetail } from "@/api/business.js";
  1137. import { setTimeout } from "timers";
  1138. import prescribing from "../../utils/minix/prescribing";
  1139. import {formatPicture} from "@/utils/picture";
  1140. import {CC_Dosage2Basis} from '@/utils/medicine';
  1141. export default {
  1142. mixins: [prescribing],
  1143. components: {
  1144. Popup,
  1145. chineseMedicine,
  1146. medicineChinese,
  1147. suitScience,
  1148. TCMDiagnosis,
  1149. submitRecipe,
  1150. prescription,
  1151. UnifyPrescription,
  1152. TongueAnalysis,
  1153. doctorCase,
  1154. safeDrug,
  1155. medAdress,
  1156. medAdressNew
  1157. },
  1158. data() {
  1159. return {
  1160. tongueAndFaceLoading: false, // 舌面象加载
  1161. tongueAndFaceAnalysis: null, // 舌面象数据
  1162. showTongueAnalysis: false, // 舌象分析弹窗
  1163. showPriview: false, // 展示预览数据
  1164. showDialog: false, // 方剂详情
  1165. showDrug: false, // 药品详情
  1166. showAgree: false, // 协定方
  1167. showTestCase: false, // 名医医案
  1168. showRecord: false, // 就诊记录
  1169. showXuewei: false, // 穴位详情信息
  1170. showTestCase: false, // 名医医案
  1171. isTuiDaoSuit: false, //适宜技术处方是否推导过
  1172. isTuiDaoZj: false, // 中药制剂是否推导过
  1173. isTuiDaoZy: false, // 中药处方是否推导过
  1174. raDoseShow: false,
  1175. tjRecipeId: "", // 当前选中推荐 方剂的 id
  1176. isMyMade: true, // 是否是自拟处方
  1177. showExpr: false, // 专家经验
  1178. priviewData: {}, // 预览数据
  1179. exprInfo: {}, // 专家经验信息
  1180. // 名医弹窗信息
  1181. testCaseInfo: {},
  1182. // 就诊记录 弹窗信息
  1183. recordInfo: {},
  1184. //药品弹窗信息
  1185. drugInfo: {},
  1186. xwinfo: {},
  1187. // 方剂弹窗信息
  1188. preInfo: {},
  1189. // 协定方弹窗信息
  1190. agreeInfo: {},
  1191. // 右侧搜索
  1192. agree_key: "",
  1193. agree_key1: "",
  1194. key: "",
  1195. // 推荐方剂 下标
  1196. r_current: 0,
  1197. // 协定方下标
  1198. agree_current: 0,
  1199. // 协定方手风琴 选中
  1200. activeNames: "0",
  1201. activeNamesLast: "0",
  1202. // 右侧手风琴面板数据
  1203. collapseData: [
  1204. {
  1205. name: "个人",
  1206. index: "0",
  1207. page: 1,
  1208. loadMore: true,
  1209. list: []
  1210. },
  1211. {
  1212. name: "二级科室",
  1213. index: "1",
  1214. page: 1,
  1215. loadMore: true,
  1216. list: []
  1217. },
  1218. {
  1219. name: "科室",
  1220. index: "2",
  1221. page: 1,
  1222. loadMore: true,
  1223. list: []
  1224. },
  1225. {
  1226. name: "本院",
  1227. index: "3",
  1228. page: 1,
  1229. loadMore: true,
  1230. list: []
  1231. }
  1232. ],
  1233. // 右侧方剂列表
  1234. rPrescription: {
  1235. list: [],
  1236. page: 1,
  1237. loadMore: true,
  1238. key: ""
  1239. },
  1240. // 右侧参考医案
  1241. rDoctorCase: {
  1242. list: [],
  1243. page: 1,
  1244. loadMore: true,
  1245. key: ""
  1246. },
  1247. // 保存右侧合理用药信息
  1248. rationalMed: [],
  1249. // 从1-9 分别对应 超剂量 到 19反
  1250. rationalMed1: [],
  1251. rationalMed2: [],
  1252. rationalMed3: [],
  1253. rationalMed4: [],
  1254. rationalMed5: [],
  1255. rationalMed6: [],
  1256. rationalMed7: [],
  1257. rationalMed8: [],
  1258. rationalMed9: [],
  1259. rationalMed10: [],
  1260. // 右侧推荐方剂
  1261. rRecomendR: [],
  1262. // 中间顶部tab
  1263. container_i: 0,
  1264. /* 下列顺便不能轻易变动 */
  1265. contentTabs: [
  1266. {
  1267. id: '0',
  1268. businesstype: '1',
  1269. name: "中药处方",
  1270. check: true,
  1271. hide: true,
  1272. color: '',
  1273. },
  1274. {
  1275. id: '1',
  1276. businesstype: '2',
  1277. name: "中药制剂",
  1278. check: false,
  1279. hide: true,
  1280. color: ""
  1281. },
  1282. {
  1283. id: '2',
  1284. businesstype: '3',
  1285. name: "适宜技术处方",
  1286. check: false,
  1287. hide: true,
  1288. color: ""
  1289. }
  1290. ],
  1291. patiensMsg: {}, // 患者信息
  1292. dianosisMsg: [], // 诊断信息
  1293. ops: {
  1294. vuescroll: {},
  1295. scrollPanel: {},
  1296. rail: {
  1297. keepShow: true
  1298. },
  1299. bar: {
  1300. hoverStyle: true,
  1301. onlyShowBarOnScroll: false, //是否只有滚动的时候才显示滚动条
  1302. background: "#C1C1C1", //滚动条颜色
  1303. opacity: 0.5, //滚动条透明度
  1304. "overflow-x": "hidden"
  1305. }
  1306. },
  1307. showSubmit: true,
  1308. // refs 信息暂存
  1309. chineseM: {
  1310. allMoney: 0,
  1311. recipeTabs: []
  1312. },
  1313. medicineC: {
  1314. allMoney: 0
  1315. },
  1316. suitScience: {
  1317. allMoney: 0
  1318. }
  1319. };
  1320. },
  1321. created() {
  1322. try { this._updateContentTabs(this.getuserinfo.ableprescription); } catch (_) { }
  1323. // console.log(this.getIsSee, 'issee');
  1324. this.showSubmit = String(this.getIsSee) == "true" ? true : false;
  1325. // 获取右侧协定方数据
  1326. this.getAgreeRecipe();
  1327. if (this.getPatiensInfo.pid) {
  1328. this.getPatiensBasisM();
  1329. this.getPatientBasisTongueAndFaceAnalysis();
  1330. }
  1331. },
  1332. mounted() {
  1333. this._processRouteQuery();
  1334. },
  1335. beforeRouteLeave(to, from, next) {
  1336. if (to.path == "/index/recipe") {
  1337. sessionStorage.removeItem("prescr" + this.getPatiensInfo.pid);
  1338. next();
  1339. } else {
  1340. this._setDataToStorage(next);
  1341. }
  1342. },
  1343. watch: {
  1344. 'getuserinfo.ableprescription': {
  1345. immediate: true,
  1346. handler(value) {
  1347. if (value) this._updateContentTabs(value);
  1348. },
  1349. },
  1350. rationalMed10: {
  1351. deep: true,
  1352. immediate: true,
  1353. handler: function() {
  1354. this.countDose();
  1355. }
  1356. }
  1357. },
  1358. methods: {
  1359. // 处理路由参数
  1360. async _processRouteQuery() {
  1361. const query = this.$route.query || {};
  1362. // 暂存处方数据(不含药品)
  1363. if (sessionStorage.getItem("prescr" + this.getPatiensInfo.pid)) await this._showDataFromStorage(true);
  1364. // 名医名方 —> 方剂查询
  1365. if (query.recipeID && query.kjType === "kj-fj") await this.getPreDetal(query.recipeID);
  1366. // 就诊记录转方
  1367. else if (query.recipeID) await this.getRecipeDataByid(this.$route.query.recipeID);
  1368. // 名医名方 —> 名医医案
  1369. else if (query.doctorCase) await this.changeAndJoin();
  1370. // 中医诊疗 -> 智能辩证
  1371. else if (query.type === "tuidao") {
  1372. this.isTuiDaoSuit = false;
  1373. this.isTuiDaoZy = false;
  1374. this.isTuiDaoZj = false;
  1375. await this.inferRecipe();
  1376. const current = this.contentTabs[this.container_i];
  1377. if (!current) return;
  1378. if (current.id === '0') this.isTuiDaoZy = true
  1379. else if (current.id === '1') this.isTuiDaoZj = true
  1380. else if (current.id === '2') this.isTuiDaoSuit = true
  1381. }
  1382. // 处方编辑 recipeType
  1383. else if (query.from !== 'his' && this.getEditPreNo()) await this.getRecipeDataByid(this.getEditPreNo());
  1384. // 暂存处方
  1385. else if (sessionStorage.getItem("prescr" + this.getPatiensInfo.pid)) await this._showDataFromStorage();
  1386. // 历史处方
  1387. else {
  1388. // 跟据就诊记录id获取处方号
  1389. let res = await getPreNumber({pid: this.getPatiensInfo.pid}).catch(() => void 0);
  1390. const has = res && res.ResultCode == 0 && res.Data.length > 0;
  1391. if (has) await this.getRecipeShowData();
  1392. else if (this.getEditPreNo()) await this.getRecipeDataByid(this.getEditPreNo());
  1393. }
  1394. },
  1395. _hackUpdateContentTab(id) {
  1396. setTimeout(() => {
  1397. try {
  1398. const el = this.$el.querySelector(`[data-tab-prescribing="${id}"]`);
  1399. el.style.display = 'flex'
  1400. } catch (_) {}
  1401. }, 1000);
  1402. },
  1403. _updateContentTabs(value) {
  1404. if (!value) return;
  1405. console.log('log:更新类别-开始', value, this.$el);
  1406. const tabs = value.split(',');
  1407. for (const id of tabs) {
  1408. const index = this.contentTabs.findIndex(item => item.id === id);
  1409. if (index !== -1) this.$set(this.contentTabs, index, {...this.contentTabs[index], hide: false});
  1410. this._hackUpdateContentTab(id);
  1411. }
  1412. console.log('log:更新类别-完成', this.contentTabs.map(item => `${item.id}: ${item.hide}`).join(','));
  1413. },
  1414. // 中医诊断推导点击
  1415. tcmClick(isauto = true) {
  1416. this.isTuiDaoZy = false;
  1417. this.isTuiDaoZj = false;
  1418. this.isTuiDaoSuit = false;
  1419. let params = this.$refs.TCM.getParams();
  1420. if (!params.namemedicine || !params.syndrometypes) {
  1421. this.$message.warning("请完善病名证型信息");
  1422. return;
  1423. }
  1424. let newDiaMsg = this.$refs.TCM.getDiamsg();
  1425. this.agree_key1 = params.namemedicine;
  1426. this.patiensMsg.maindiagnosis.disid = newDiaMsg.disid;
  1427. this.patiensMsg.maindiagnosis.symptomid = newDiaMsg.symptomid;
  1428. this.patiensMsg.maindiagnosis.treatment = newDiaMsg.treatment;
  1429. // 获取最新病名的参考医案
  1430. this.rDoctorCase.page = 1;
  1431. this.rDoctorCase.list = [];
  1432. this.rDoctorCase.loadMore = true;
  1433. this.getDoctorCaseL();
  1434. // --end
  1435. const current = this.contentTabs[this.container_i];
  1436. if (!current) return;
  1437. if (isauto && current.id !== '1') {
  1438. this.inferRecipe(2, current.businesstype);
  1439. }
  1440. setTimeout(() => {
  1441. for (const tab of this.contentTabs) {
  1442. if (tab.hide) continue;
  1443. const type = tab.id === '1' && tab.id === current.id ? 3 : 4;
  1444. this.inferRecipe(type, tab.businesstype).then(() => {
  1445. if (tab.id === current.id ) {
  1446. if (current.id === '0') this.isTuiDaoZy = true
  1447. else if (current.id === '1') this.isTuiDaoZj = true
  1448. else if (current.id === '2') this.isTuiDaoSuit = true
  1449. }
  1450. })
  1451. }
  1452. if (this.getPatiensInfo.pid) {
  1453. this.getPatiensBasisM();
  1454. }
  1455. }, 1000);
  1456. },
  1457. // 系统数据存入缓存
  1458. _setDataToStorage(next) {
  1459. let children = this.$children.filter(item => {
  1460. return (
  1461. item.name == "中药处方" ||
  1462. item.name == "中药制剂" ||
  1463. item.name == "适宜技术处方"
  1464. );
  1465. });
  1466. let child1 = children[0];
  1467. let child2 = children[1];
  1468. let child3 = children[2];
  1469. let obj = {
  1470. contentTabs: this.contentTabs,
  1471. container_i: this.container_i,
  1472. child1: {
  1473. recipe_tabs: child1.recipe_tabs,
  1474. recipe_tabs_c: child1.recipe_tabs_c
  1475. },
  1476. child2: {
  1477. tableData3: child2.tableData3,
  1478. bottom_form: child2.bottom_form
  1479. },
  1480. child3: Object.assign({...child3.$data}, {acupointList: []}),
  1481. rationalMed: {
  1482. // 保存右侧合理用药信息
  1483. rationalMed: this.rationalMed,
  1484. // 从1-9 分别对应 超剂量 到 19反
  1485. rationalMed1: this.rationalMed1,
  1486. rationalMed2: this.rationalMed2,
  1487. rationalMed3: this.rationalMed3,
  1488. rationalMed4: this.rationalMed4,
  1489. rationalMed5: this.rationalMed5,
  1490. rationalMed6: this.rationalMed6,
  1491. rationalMed7: this.rationalMed7,
  1492. rationalMed8: this.rationalMed8,
  1493. rationalMed9: this.rationalMed9,
  1494. rationalMed10: this.rationalMed10
  1495. }
  1496. };
  1497. sessionStorage.setItem(
  1498. "prescr" + this.getPatiensInfo.pid,
  1499. JSON.stringify(obj)
  1500. );
  1501. next();
  1502. // getPatiensInfo
  1503. },
  1504. // 展示系统缓存数据
  1505. async _showDataFromStorage(ignoreTable = false) {
  1506. let storageData = JSON.parse(
  1507. sessionStorage.getItem("prescr" + this.getPatiensInfo.pid)
  1508. );
  1509. let children = this.$children.filter(item => {
  1510. return (
  1511. item.name == "中药处方" ||
  1512. item.name == "中药制剂" ||
  1513. item.name == "适宜技术处方"
  1514. );
  1515. });
  1516. let child1 = children[0];
  1517. let child2 = children[1];
  1518. let child3 = children[2];
  1519. child1.recipe_tabs = storageData.child1.recipe_tabs;
  1520. child1.recipe_tabs_c = storageData.child1.recipe_tabs_c;
  1521. if (typeof child1.loaded === 'function') await child1.loaded(storageData.child1);
  1522. if (storageData.child1.recipe_tabs[0].totalTableD.length > 1) {
  1523. this.isTuiDaoZy = true;
  1524. }
  1525. if (storageData.child3.tableData4.length > 1) {
  1526. this.isTuiDaoSuit = true;
  1527. }
  1528. if (ignoreTable) {
  1529. for (const recipe of storageData.child1.recipe_tabs) {
  1530. recipe.tableData = [];
  1531. recipe.tableData1 = [];
  1532. recipe.totalTableD = [];
  1533. }
  1534. storageData.child2.tableData3 = [];
  1535. storageData.child3.tableData4 = [];
  1536. }
  1537. this.contentTabs = storageData.contentTabs;
  1538. this.container_i = storageData.container_i;
  1539. // child1.getSelectType("剂型", 0);
  1540. // child1.getSelectType("处方用法");
  1541. // child1.getSelectType("中药服药时间");
  1542. // child1.getSelectType("中药频次");
  1543. // child1.getPharmacyID();
  1544. child2.tableData3 = storageData.child2.tableData3;
  1545. child2.bottom_form = storageData.child2.bottom_form;
  1546. for (const [key, value] of Object.entries(storageData.child3)) child3[key] = value;
  1547. this.rationalMed = storageData.rationalMed.rationalMed;
  1548. // 保存右侧合理用药信息
  1549. // 从1-9 分别对应 超剂量 到 19反
  1550. this.rationalMed1 = storageData.rationalMed.rationalMed1;
  1551. this.rationalMed2 = storageData.rationalMed.rationalMed2;
  1552. this.rationalMed3 = storageData.rationalMed.rationalMed3;
  1553. this.rationalMed4 = storageData.rationalMed.rationalMed4;
  1554. this.rationalMed5 = storageData.rationalMed.rationalMed5;
  1555. this.rationalMed6 = storageData.rationalMed.rationalMed6;
  1556. this.rationalMed7 = storageData.rationalMed.rationalMed7;
  1557. this.rationalMed8 = storageData.rationalMed.rationalMed8;
  1558. this.rationalMed9 = storageData.rationalMed.rationalMed9;
  1559. this.rationalMed10 = storageData.rationalMed.rationalMed10;
  1560. },
  1561. // 方剂顶部搜索
  1562. searchPre() {
  1563. if (this.agree_current == 1) {
  1564. this.rPrescription.page = 1;
  1565. this.rPrescription.list = [];
  1566. this.rPrescription.loadMore = true;
  1567. this.getPrescriptionsList();
  1568. } else if (this.agree_current == 2) {
  1569. this.rDoctorCase.page = 1;
  1570. this.rDoctorCase.list = [];
  1571. this.rDoctorCase.loadMore = true;
  1572. this.getDoctorCaseL();
  1573. }
  1574. },
  1575. // 方剂加载更多
  1576. loadMorePre() {
  1577. if (this.agree_current == 1) {
  1578. if (!this.rPrescription.loadMore) {
  1579. this.$message({
  1580. showClose: false,
  1581. message: "没有更多数据了",
  1582. type: "warning "
  1583. });
  1584. return;
  1585. }
  1586. this.getPrescriptionsList(this.rPrescription.loadMore);
  1587. } else if (this.agree_current == 2) {
  1588. if (!this.rDoctorCase.loadMore) {
  1589. this.$message({
  1590. showClose: false,
  1591. message: "没有更多数据了",
  1592. type: "warning "
  1593. });
  1594. return;
  1595. }
  1596. this.getDoctorCaseL(this.rDoctorCase.loadMore);
  1597. }
  1598. },
  1599. // 加载更多协定方数据
  1600. loadMoreCollapse(item) {
  1601. if (!item.loadMore) {
  1602. this.$message({
  1603. showClose: false,
  1604. message: "没有更多数据了",
  1605. type: "warning "
  1606. });
  1607. return;
  1608. }
  1609. this.getAgreeRecipe(item.loadMore);
  1610. },
  1611. // 手风琴 更改
  1612. activeChange(e) {
  1613. console.log(e, "手风琴该表");
  1614. // if (this.activeNames == e) return;
  1615. if (e) {
  1616. this.activeNames = e;
  1617. this.activeNamesLast = e;
  1618. this.collapseData[this.activeNames].page = 1;
  1619. this.collapseData[this.activeNames].loadMore = true;
  1620. this.collapseData[this.activeNames].list = [];
  1621. this.getAgreeRecipe(this.collapseData[this.activeNames].loadMore);
  1622. } else {
  1623. this.activeNames = this.activeNamesLast;
  1624. }
  1625. },
  1626. // 处理中药处方提交数据
  1627. dealRecipe1(data1) {
  1628. let isAutoCheck = data1.isAutoCheck;
  1629. let hasDoseNum = true; // 是否有剂数
  1630. let hasData = true; // 是否有处方药品数据
  1631. let hasAddress = true;
  1632. let noFull = false; // 是否有药品库存不足
  1633. let recipeAlert = [];
  1634. data1.recipe_tabs.forEach((item, index) => {
  1635. if (item.isMyMade) {
  1636. this.addRecipeFrom("3");
  1637. }
  1638. if (!item.bottom_form.doseNum) {
  1639. hasDoseNum = false;
  1640. }
  1641. if (item.bottom_form.radio == "0" && !item.bottom_form.savename) {
  1642. hasAddress = false;
  1643. }
  1644. if (item.bottom_form.radio == "0" && !item.bottom_form.phone) {
  1645. hasAddress = false;
  1646. }
  1647. if (item.bottom_form.radio == "0" && !item.bottom_form.province) {
  1648. hasAddress = false;
  1649. }
  1650. if (item.bottom_form.radio == "0" && !item.bottom_form.city) {
  1651. hasAddress = false;
  1652. }
  1653. if (item.bottom_form.radio == "0" && !item.bottom_form.area) {
  1654. hasAddress = false;
  1655. }
  1656. if (item.bottom_form.radio == "0" && !item.bottom_form.address) {
  1657. hasAddress = false;
  1658. }
  1659. if (item.totalTableD.length < 2) {
  1660. hasData = false;
  1661. }
  1662. if (item.totalTableD.length - 1 < this.doseMin) {
  1663. recipeAlert.push({
  1664. text: `中药处方${index + 1}不符合最小药味数${this.doseMin}!`,
  1665. isAllow: this.doseAllowMin
  1666. });
  1667. }
  1668. if (item.totalTableD.length - 1 > this.doseMax) {
  1669. recipeAlert.push({
  1670. text: `中药处方${index + 1}不符合最大药味数${this.doseMax}!`,
  1671. isAllow: this.doseAllowMax
  1672. });
  1673. }
  1674. item.totalTableD.forEach(item1 => {
  1675. if (item1.color == "red") {
  1676. noFull = true;
  1677. }
  1678. if (!+item1.dose && item1.name) {
  1679. hasDoseNum = false;
  1680. }
  1681. });
  1682. });
  1683. if (!hasData) {
  1684. this.$message.error({
  1685. message: "请完善中药处方药品信息",
  1686. showClose: true,
  1687. type: "error"
  1688. });
  1689. return [];
  1690. }
  1691. if (recipeAlert.length > 0) {
  1692. recipeAlert.forEach(item => {
  1693. if (item.text) {
  1694. setTimeout(() => {
  1695. this.$message({
  1696. message: item.text,
  1697. showClose: true,
  1698. type: "warning"
  1699. });
  1700. }, 200);
  1701. }
  1702. });
  1703. // return false;
  1704. }
  1705. // if (!hasAddress) {
  1706. // this.$message({
  1707. // message: "请完善中药处方配送信息",
  1708. // showClose: false,
  1709. // type: "error"
  1710. // });
  1711. // return false;
  1712. // }
  1713. if (!hasDoseNum) {
  1714. this.$message.error({
  1715. message: "请完善中药处方剂数剂量信息",
  1716. showClose: false,
  1717. type: "error"
  1718. });
  1719. return false;
  1720. }
  1721. if (noFull) {
  1722. this.$message.error({
  1723. message: "部分药品库存不足",
  1724. showClose: false,
  1725. type: "error"
  1726. });
  1727. return false;
  1728. }
  1729. console.log(recipeAlert, "recipeAlert");
  1730. // let data2 = children[1]
  1731. // let data3 = children[2]
  1732. let zhongPrescriptionVo = [];
  1733. let medAdressData = {};
  1734. if (this.showAddress) {
  1735. medAdressData = this.$refs.medAdress.form;
  1736. }
  1737. console.group("debug:20250558")
  1738. data1.recipe_tabs.forEach((item, index) => {
  1739. console.log("填写值", item.bottom_form.radio)
  1740. let obj = {
  1741. seqn: index + 1,
  1742. province:
  1743. this.isShowPs && this.showAddress ? medAdressData.province : "", // 省
  1744. city: this.isShowPs && this.showAddress ? medAdressData.city : "", // 市
  1745. district: this.isShowPs && this.showAddress ? medAdressData.area : "", // 区
  1746. address:
  1747. this.isShowPs && this.showAddress ? medAdressData.address : "", // 详细地址
  1748. agency: item.bottom_form.isDaiJian, // 代煎
  1749. // agency: this.showAddress ? medAdressData.isDaiJian : 0, // 代煎
  1750. // agency: this.isShowDj ? this.isDaiJian : 0, // 代煎
  1751. allprice: item.bottom_form.allMoney, // 总金额(合计金额)
  1752. command: item.bottom_form.zhutuo, // 嘱托
  1753. consigneeName:
  1754. this.isShowPs && this.showAddress ? medAdressData.savename : "", // 收货人姓名
  1755. consigneePhone:
  1756. this.isShowPs && this.showAddress ? medAdressData.phone : "", // 收货人电话
  1757. deliveryfree:
  1758. medAdressData.radio == 0 && this.isShowPs && this.showAddress
  1759. ? item.bottom_form.moneyMsg.deliveryPrice
  1760. : 0, // 配送费
  1761. deploymentfree:
  1762. item.bottom_form.doseType == "2" || item.bottom_form.doseType == "3"
  1763. ? item.bottom_form.moneyMsg.specialDeploymentPrice
  1764. : 0, // 特殊调配费
  1765. dosageForm: item.bottom_form.doseType, // 剂型
  1766. eatMedicineTime: item.bottom_form.time, // 服药时间
  1767. frequency: item.bottom_form.num, // 频次
  1768. friedfree: item.bottom_form.daijian
  1769. ? item.bottom_form.moneyMsg.agencyPrice
  1770. : 0, // 代煎费
  1771. // isdelivery: this.isPs == 1 ? 0 : 1, // 是否配送
  1772. isdelivery: item.bottom_form.radio,
  1773. markfree:
  1774. item.bottom_form.doseType == "0"
  1775. ? item.bottom_form.moneyMsg.systemOfCreamPrice
  1776. : 0, // 制膏费
  1777. num: item.bottom_form.doseNum, //剂数
  1778. pharmacyid: item.pharmacyID, // 药房id 暂时写死
  1779. drugtype: item.radio.split("@")[1], // 药房类型
  1780. price: item.bottom_form.nowRecipeMoney, // 单剂金额
  1781. recordid: this.getPatiensInfo.pid, //门诊id
  1782. strongFried: item.bottom_form.nongjian, //浓煎
  1783. type: 0, // 处方类型
  1784. useexplain: item.bottom_form.caozuo, // 操作指南
  1785. usestr: item.bottom_form.usege, //处方用法
  1786. zhongdetail: [], // 中药明细 表格内部数据
  1787. // preId: this.$route.query.recipeID ? this.$route.query.recipeID : ""
  1788. preId: item.preId || "",
  1789. };
  1790. console.log("保存值", obj.isdelivery)
  1791. item.totalTableD.forEach(item1 => {
  1792. if (item1.name && item1.color != "red") {
  1793. let obj1 = {
  1794. allprice: item1.total,
  1795. dose: Number(item1.dose),
  1796. drugName: item1.name,
  1797. drugid: item1.medid,
  1798. origin: item1.originname,
  1799. seqn: item1.id,
  1800. specification: item1.spec,
  1801. unit: item1.unit,
  1802. unitprice: item1.price,
  1803. usagestr: item1.usage,
  1804. preDetailId: this.getEditPreNo(),
  1805. };
  1806. obj.zhongdetail.push(obj1);
  1807. }
  1808. });
  1809. if (!recipeAlert[index]) {
  1810. recipeAlert.push({
  1811. isAllow: 0
  1812. });
  1813. }
  1814. // 当前审核流程为自动时 用his 的支付状态判断
  1815. // if (isAutoCheck == 1) {
  1816. // } else {
  1817. // if (
  1818. // !item.isPay &&
  1819. // (item.prescribed == 0 || !item.prescribed) &&
  1820. // recipeAlert[index].isAllow == 0
  1821. // ) {
  1822. // zhongPrescriptionVo.push(obj);
  1823. // }
  1824. // }
  1825. if (
  1826. (item.paystate == 0 || !item.paystate) &&
  1827. recipeAlert[index].isAllow == 0
  1828. ) {
  1829. zhongPrescriptionVo.push(obj);
  1830. }
  1831. });
  1832. console.groupEnd()
  1833. return zhongPrescriptionVo;
  1834. },
  1835. // 处理中药制剂提交数据
  1836. dealRecipe2(data1) {
  1837. let isAutoCheck = data1.isAutoCheck;
  1838. if (!data1.tableData3.filter(item => item.name).length) {
  1839. this.$message.error({ message: '请完善中药制剂药品信息', showClose: true });
  1840. return {};
  1841. }
  1842. let hasDrugMsg = [];
  1843. data1.tableData3.forEach((item, index) => {
  1844. if (
  1845. item.name &&
  1846. (!item.dose || !item.usage || !item.timesQuan || !item.nums)
  1847. ) {
  1848. // || !item.time
  1849. hasDrugMsg.push(index + 1);
  1850. }
  1851. });
  1852. if (hasDrugMsg.length > 0) {
  1853. this.$message.error(
  1854. "请完善中药制剂处方药品相关信息(序号:" + hasDrugMsg.join(",") + ")"
  1855. );
  1856. return false;
  1857. }
  1858. let hasAddress = true;
  1859. let medAdressData = {};
  1860. if (this.showAddress) {
  1861. medAdressData = this.$refs.medAdress.form;
  1862. }
  1863. this.addRecipeFrom("3");
  1864. let obj = {
  1865. province:
  1866. this.showAddress && this.isShowPs ? medAdressData.province : "", // 省
  1867. city: this.showAddress && this.isShowPs ? medAdressData.city : "", // 市
  1868. district: this.showAddress && this.isShowPs ? medAdressData.area : "", // 区
  1869. address: this.showAddress && this.isShowPs ? medAdressData.address : "",
  1870. command: data1.bottom_form.zhutuo,
  1871. consigneeName:
  1872. this.showAddress && this.isShowPs ? medAdressData.savename : "",
  1873. consigneePhone:
  1874. this.showAddress && this.isShowPs ? medAdressData.phone : "",
  1875. isdelivery: data1.bottom_form.radio,
  1876. // isdelivery: this.isPs == 0 ? 1 : 0,
  1877. deliveryfree:
  1878. this.showAddress && this.isShowPs && medAdressData.radio == 0
  1879. ? data1.moneyMsg.deliveryPrice
  1880. : 0, // 配送费
  1881. pharmacyid: data1.pharmacyID,
  1882. type: 1,
  1883. chengDetail: [],
  1884. // preId: this.$route.query.recipeID ? this.$route.query.recipeID : ""
  1885. preId: data1.preId || "",
  1886. };
  1887. data1.tableData3.forEach(item => {
  1888. if (item.name) {
  1889. let obj1 = {
  1890. allprice: item.total,
  1891. dose: item.dose,
  1892. drugName: item.name,
  1893. drugid: item.medid,
  1894. frequency: item.nums,
  1895. medicationtime: item.time,
  1896. origin: item.from,
  1897. price: item.price,
  1898. secondDose: item.timesQuan,
  1899. seqn: item.id,
  1900. specification: item.spec,
  1901. unit: item.unit,
  1902. usagestr: item.usage,
  1903. preDetailId: this.getEditPreNo(),
  1904. bzdw: item.doseUnit,
  1905. zxdw: item.timesUnit
  1906. };
  1907. obj.chengDetail.push(obj1);
  1908. }
  1909. });
  1910. // if ((data1.isPay || data1.prescribed == 1) && isAutoCheck == 0) {
  1911. // return {};
  1912. // }
  1913. // && isAutoCheck == 1
  1914. if (data1.paystate == 1) {
  1915. return {};
  1916. }
  1917. return obj;
  1918. },
  1919. // 处理适宜剂数处方提交数据
  1920. dealRecipe3(data1) {
  1921. let isAutoCheck = data1.isAutoCheck;
  1922. if (!data1.tableData4.filter(item => item.name).length) {
  1923. this.$message.error({ message: '请完善适宜技术处方穴位信息', showClose: true });
  1924. return {};
  1925. }
  1926. let hasDrugMsg = [];
  1927. data1.tableData4.forEach((item, index) => {
  1928. if (!item.name && index != data1.tableData4.length - 1) {
  1929. hasDrugMsg.push(index + 1);
  1930. }
  1931. });
  1932. if (hasDrugMsg.length > 0) {
  1933. // this.$message.error(
  1934. // "请完善适宜技术处方穴位相关信息(序号:" + hasDrugMsg.join(",") + ")"
  1935. // );
  1936. return false;
  1937. }
  1938. if (!data1.bottom_form.doseNum1) {
  1939. this.$message.error({
  1940. message: "请完善适宜技术处方次数信息",
  1941. showClose: false,
  1942. type: "error"
  1943. });
  1944. return false;
  1945. }
  1946. if (!data1.bottom_form.doseType1) {
  1947. this.$message.error({
  1948. message: "请完善适宜技术处方类型信息",
  1949. showClose: false,
  1950. type: "error"
  1951. });
  1952. return false;
  1953. }
  1954. let obj = {
  1955. command: data1.bottom_form.zhutuo,
  1956. num: Number(data1.bottom_form.doseNum1),
  1957. technologyType: data1.bottom_form.doseType1,
  1958. type: 2,
  1959. useexplain: data1.bottom_form.caozuo,
  1960. // preId: this.$route.query.recipeID ? this.$route.query.recipeID : "",
  1961. preId: data1.preId || "",
  1962. detail: []
  1963. };
  1964. data1.tableData4.forEach(item => {
  1965. if (item.name) {
  1966. let obj1 = {
  1967. pointid: item.acuid,
  1968. pointname: item.acuname,
  1969. price: data1.bottom_form.doseType,
  1970. seqn: item.id,
  1971. preDetailId: this.getEditPreNo(),
  1972. };
  1973. obj.detail.push(obj1);
  1974. }
  1975. });
  1976. if (data1.isMyMade) {
  1977. this.addRecipeFrom("3");
  1978. }
  1979. // if ((data1.isPay || data1.prescribed == 1) && isAutoCheck == 0) {
  1980. // return {};
  1981. // }
  1982. // && isAutoCheck == 1
  1983. if (data1.paystate == 1) {
  1984. return {};
  1985. }
  1986. return obj;
  1987. },
  1988. // 获取数据 赋值给 中药处方
  1989. assignRecipe1(data, loading) {
  1990. setTimeout(() => {
  1991. let children = this.$children.filter(item => {
  1992. return (
  1993. item.name == "中药处方" ||
  1994. item.name == "中药制剂" ||
  1995. item.name == "适宜技术处方"
  1996. );
  1997. });
  1998. let data1 = children[0];
  1999. let isAutoCheck = data1.isAutoCheck;
  2000. let arr = [];
  2001. data.forEach((item, index) => {
  2002. let objAssaign = {};
  2003. // let medAdressData = this.$refs.medAdress;
  2004. let obj = {
  2005. name: "处方1",
  2006. pharmacyID: "", // 药房id
  2007. totalTableD: [],
  2008. tableData: [
  2009. {
  2010. id: 1
  2011. }
  2012. ],
  2013. radio: "1",
  2014. tableData1: [],
  2015. bottom_form: {
  2016. doseNum: "",
  2017. doseType: "",
  2018. doseTypeList: [],
  2019. usegeList: [],
  2020. usege: "",
  2021. num: "",
  2022. numList: [], // 频次后台数据
  2023. daijian: "",
  2024. nongjian: "",
  2025. time: "",
  2026. timeList: [], // 服药时间后台数据
  2027. caozuo: "",
  2028. zhutuo: "",
  2029. radio: item.isdelivery,
  2030. daijian: "1",
  2031. provinceList: [],
  2032. cityList: [],
  2033. areaList: [],
  2034. province: "",
  2035. city: "",
  2036. area: "",
  2037. address: "",
  2038. phone: "",
  2039. doseType1: "",
  2040. doseNum1: "",
  2041. savename: "",
  2042. nowRecipeMoney: 0, //单剂金额
  2043. nowRecipeMoney1: 0, //当前处方金额
  2044. allMoney: 0, // 合计金额
  2045. moneyMsg: {} // 价格数据
  2046. },
  2047. prescribed: 0, //是否开方 0 否 1 是,
  2048. paystate: 0,
  2049. preId: null
  2050. };
  2051. // if (
  2052. // index == data.length - 1 &&
  2053. // item.prescribed == 1 &&
  2054. // isAutoCheck == 0
  2055. // ) {
  2056. // objAssaign = JSON.parse(JSON.stringify(obj));
  2057. // }
  2058. // && isAutoCheck == 1
  2059. if (index == data.length - 1 && item.paystate == 1) {
  2060. objAssaign = JSON.parse(JSON.stringify(obj));
  2061. }
  2062. if (this.$route.query.type == "edit") {
  2063. } else {
  2064. }
  2065. obj.preId = item.preId ? item.preId : "";
  2066. obj.name = "处方" + (index + 1);
  2067. obj.radio = item.pharmacyid + "@" + item.drugtype;
  2068. obj.pharmacyID = item.pharmacyid;
  2069. obj.bottom_form.doseNum = item.num;
  2070. obj.bottom_form.doseType = item.dosageForm;
  2071. obj.bottom_form.usege = item.usestr;
  2072. obj.bottom_form.nongjian = item.strongFried;
  2073. obj.bottom_form.num = item.frequency;
  2074. obj.bottom_form.caozuo = item.useexplain;
  2075. obj.bottom_form.zhutuo = item.command;
  2076. if (!!this.getEditPreNo()) {
  2077. if (item.revierwstate == 1 && isAutoCheck == 0) {
  2078. obj.prescribed = 0;
  2079. } else {
  2080. obj.prescribed = item.prescribed;
  2081. }
  2082. obj.paystate = item.paystate;
  2083. // if (isAutoCheck == 1) {
  2084. // }
  2085. console.group("debug:20250558")
  2086. console.log('配送原始', item.isdelivery);
  2087. obj.bottom_form.radio = item.isdelivery == null ? null : Number(item.isdelivery);
  2088. console.log('配送赋值', obj.bottom_form.radio);
  2089. console.groupEnd()
  2090. obj.bottom_form.savename = item.consigneeName;
  2091. obj.bottom_form.phone = item.consigneePhone;
  2092. obj.bottom_form.address = item.address;
  2093. obj.bottom_form.province = item.province;
  2094. obj.bottom_form.city = item.city;
  2095. obj.bottom_form.area = item.district;
  2096. if (obj.paystate == 1) {
  2097. obj.bottom_form.disable = true;
  2098. obj.disable = true;
  2099. }
  2100. } else {
  2101. obj.prescribed = item.prescribed;
  2102. obj.paystate = item.paystate;
  2103. if (obj.paystate == 1) {
  2104. obj.bottom_form.disable = true;
  2105. obj.disable = true;
  2106. }
  2107. }
  2108. obj.bottom_form.moneyMsg = {
  2109. deliveryPrice: item.deliveryfree,
  2110. specialDeploymentPrice: item.deploymentfree,
  2111. agencyPrice: item.friedfree,
  2112. systemOfCreamPrice: item.markfree
  2113. };
  2114. //
  2115. obj.bottom_form.daijian = item.agency;
  2116. obj.bottom_form.isDaiJian = Number(item.agency);
  2117. // medAdressData.isDaiJian = Number(item.agency);
  2118. obj.bottom_form.nowRecipeMoney = item.price;
  2119. obj.bottom_form.nowRecipeMoney1 = item.thisRecipePrice;
  2120. obj.bottom_form.allMoney = item.allprice;
  2121. obj.bottom_form.time = item.eatMedicineTime;
  2122. // data1.getProver()
  2123. obj.bottom_form.provinceList = data1.provinceList1;
  2124. if (item.isdelivery == "0") {
  2125. data1.recipe_tabs_c = index;
  2126. data1.getArea(item.province, 1);
  2127. data1.getArea(item.city, 2);
  2128. }
  2129. setTimeout(() => {
  2130. data1.recipeChange(index);
  2131. }, 500);
  2132. item.zhongdetail.forEach((item1, index1) => {
  2133. let obj1 = {
  2134. drugList: [],
  2135. page: 1,
  2136. loadMore: true,
  2137. usageList: [],
  2138. id: item1.seqn,
  2139. name: item1.drugName,
  2140. spec: item1.specification, // 规格
  2141. dose: item1.dose, // 剂量
  2142. unit: item1.unit, // 单位
  2143. // usage: item.usagestr, // 用法
  2144. usage: item1.usagestr,
  2145. price: item1.unitprice,
  2146. total: item1.allprice,
  2147. inventory: item1.instock, // 库存
  2148. key: "",
  2149. search_i: index1,
  2150. medid: item1.drugid, // 药品id
  2151. originname: item1.origin // 产地名称
  2152. };
  2153. obj.totalTableD.push(obj1);
  2154. data1.getSelectType("中药药品用法", index1);
  2155. });
  2156. obj.totalTableD.push({
  2157. drugList: [],
  2158. page: 1,
  2159. loadMore: true,
  2160. usageList: [],
  2161. showSearch: false,
  2162. search_i: 0,
  2163. id: Number(item.zhongdetail[item.zhongdetail.length - 1].seqn) + 1
  2164. });
  2165. obj.totalTableD.filter((item3, index3) => {
  2166. this.rationalMed = [];
  2167. this.resetRationalMed();
  2168. this.getRationalMed(item3.medid);
  2169. return (item3.id = index3 + 1);
  2170. });
  2171. obj.tableData = obj.totalTableD.filter(item2 => {
  2172. return Number(item2.id) % 2 != 0;
  2173. });
  2174. obj.tableData1 = obj.totalTableD.filter(item2 => {
  2175. return Number(item2.id) % 2 == 0;
  2176. });
  2177. arr.push(obj);
  2178. // if (
  2179. // index == data.length - 1 &&
  2180. // item.prescribed == 1 &&
  2181. // isAutoCheck == 0
  2182. // ) {
  2183. // // arr.push(objAssaign)
  2184. // setTimeout(() => {
  2185. // data1.addRecipeTba(arr.length - 1);
  2186. // }, 500);
  2187. // }
  2188. // && isAutoCheck == 1
  2189. if (index == data.length - 1 && item.paystate == 1) {
  2190. // arr.push(objAssaign)
  2191. setTimeout(() => {
  2192. data1.addRecipeTba(arr.length - 1);
  2193. }, 500);
  2194. }
  2195. });
  2196. data1.recipe_tabs_c = arr.length - 1;
  2197. data1.recipe_tabs = arr;
  2198. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.radio =
  2199. arr[arr.length - 1].bottom_form.radio;
  2200. data1.changePharmacy(
  2201. arr[arr.length - 1].radio,
  2202. arr[arr.length - 1].radio
  2203. );
  2204. data1.$forceUpdate();
  2205. loading.close();
  2206. }, 1000);
  2207. },
  2208. // 获取数据 赋值给 中药制剂
  2209. assignRecipe2(data, loading) {
  2210. setTimeout(() => {
  2211. let children = this.$children.filter(item => {
  2212. return (
  2213. item.name == "中药处方" ||
  2214. item.name == "中药制剂" ||
  2215. item.name == "适宜技术处方"
  2216. );
  2217. });
  2218. let data1 = children[1];
  2219. let isAutoCheck = data1.isAutoCheck;
  2220. data1.bottom_form.zhutuo = data.command;
  2221. data1.preId = data.preId ? data.preId : "";
  2222. if (!!this.getEditPreNo()) {
  2223. data1.bottom_form.radio = data.isdelivery == null ? null : Number(data.isdelivery);
  2224. data1.bottom_form.savename = data.consigneeName;
  2225. data1.bottom_form.phone = data.consigneePhone;
  2226. data1.bottom_form.address = data.address;
  2227. data1.province = data.province;
  2228. data1.city = data.city;
  2229. data1.area = data.district;
  2230. if (data.revierwstate == 1) {
  2231. data1.prescribed = 0; // 是否已开方 0否 1是
  2232. data1.paystate = 0;
  2233. } else {
  2234. data1.prescribed = data.prescribed; // 是否已开方 0否 1是
  2235. data1.paystate = data.paystate;
  2236. }
  2237. } else {
  2238. data1.prescribed = data.prescribed; // 是否已开方 0否 1是
  2239. data1.paystate = data.paystate;
  2240. }
  2241. data1.bottom_form.zhutuo = data.command;
  2242. if (data.province) {
  2243. data1.getArea(data.province, 1);
  2244. }
  2245. if (data.city) {
  2246. data1.getArea(data.city, 2);
  2247. }
  2248. data1.nowRecipeMoney = data.thisRecipePrice;
  2249. data1.allMoney = data.allprice;
  2250. let arr = [];
  2251. data.chengDetail.forEach((item, index) => {
  2252. let obj = {
  2253. id: item.seqn,
  2254. drugList: [],
  2255. search_i: "",
  2256. page: 1,
  2257. loadMore: true,
  2258. usageList: [],
  2259. numList: [],
  2260. timeList: [],
  2261. name: item.drugName,
  2262. spec: item.specification, // 规格
  2263. dose: item.dose, // 剂量
  2264. unit: item.unit, // 单位
  2265. usage: item.usagestr, // 用法
  2266. nums: item.frequency, //频次
  2267. timesQuan: item.secondDose, // 次用量,
  2268. timesUnit: item.zxdw,
  2269. time: item.medicationtime, // 服药时间
  2270. doseUnit: item.bzdw,
  2271. from: item.origin, // 产地
  2272. price: item.price,
  2273. total: item.allprice,
  2274. inventory: item.instock, // 库存
  2275. key: "",
  2276. medid: item.drugid
  2277. };
  2278. data1.getSelectType("中药制剂药品用法", index);
  2279. data1.getSelectType("中药制剂服药时间", index);
  2280. data1.getSelectType("中药制剂频次", index);
  2281. arr.push(obj);
  2282. });
  2283. arr.push({
  2284. key: "",
  2285. page: 1,
  2286. drugList: [],
  2287. usageList: [],
  2288. numList: [],
  2289. timeList: [],
  2290. loadMore: true
  2291. });
  2292. data1.tableData3 = arr;
  2293. data1.tableData3.filter((item, index) => {
  2294. return (item.id = index + 1);
  2295. });
  2296. this.$forceUpdate();
  2297. loading.close();
  2298. }, 1000);
  2299. },
  2300. // 获取数据 赋值给 适宜技术处方
  2301. assignRecipe3(data, loading) {
  2302. setTimeout(() => {
  2303. let children = this.$children.filter(item => {
  2304. return (
  2305. item.name == "中药处方" ||
  2306. item.name == "中药制剂" ||
  2307. item.name == "适宜技术处方"
  2308. );
  2309. });
  2310. let data1 = children[2];
  2311. let isAutoCheck = data1.isAutoCheck;
  2312. data1.preId = data.preId ? data.preId : "";
  2313. data1.bottom_form.doseNum1 = data.num;
  2314. data1.bottom_form.doseType1 = data.technologyType;
  2315. data1.bottom_form.zhutuo = data.command;
  2316. data1.bottom_form.caozuo = data.useexplain;
  2317. data1.allMoney = data.allprice;
  2318. data1.nowMoney = data.thisRecipePrice;
  2319. if (!!this.getEditPreNo()) {
  2320. if (data.revierwstate == 1) {
  2321. data1.prescribed = 0; // 是否已开方 0否 1是
  2322. data1.paystate = 0;
  2323. } else {
  2324. data1.prescribed = data.prescribed; // 是否已开方 0否 1是
  2325. data1.paystate = data.paystate;
  2326. }
  2327. } else {
  2328. data1.prescribed = data.prescribed; // 是否已开方 0否 1是
  2329. data1.paystate = data.paystate;
  2330. }
  2331. let arr = [];
  2332. data.detail.forEach((item, index) => {
  2333. let obj = {
  2334. id: item.sqen,
  2335. name: item.pointname,
  2336. acuname: item.pointname,
  2337. acuid: item.pointid
  2338. };
  2339. arr.push(obj);
  2340. });
  2341. arr.filter((item, index) => {
  2342. return (item.id = index + 1);
  2343. });
  2344. data1.tableData4 = arr;
  2345. loading.close();
  2346. }, 1000);
  2347. },
  2348. // 协定方数据转方 赋值给中药处方
  2349. agreeAssignToTCM(data, loading, request = true) {
  2350. let children = this.$children.filter(item => {
  2351. return (
  2352. item.name == "中药处方" ||
  2353. item.name == "中药制剂" ||
  2354. item.name == "适宜技术处方"
  2355. );
  2356. });
  2357. let data1 = children[0];
  2358. console.log(data1, "打印data1");
  2359. data1.recipe_tabs[data1.recipe_tabs_c].disable = false;
  2360. if (data.isupdate && data.isupdate === "1") {
  2361. // 专家经验 不允许 修改
  2362. data1.recipe_tabs[data1.recipe_tabs_c].disable = true;
  2363. sessionStorage.setItem("isupdateExpre", "1");
  2364. }
  2365. if (data.type && data.type === "1") {
  2366. // 协定方 不允许 修改
  2367. data1.recipe_tabs[data1.recipe_tabs_c].disable = true;
  2368. sessionStorage.setItem("isupdateExpre", "1");
  2369. }
  2370. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.preType = data.type;
  2371. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.disable =
  2372. data.type == "1";
  2373. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.preType = data.type;
  2374. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.doseType =
  2375. data.curetype;
  2376. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.nongjian =
  2377. data.density;
  2378. data1.recipe_tabs[
  2379. data1.recipe_tabs_c
  2380. ].bottom_form.specialDeploymentPrice = data.deploymentfree;
  2381. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.num = data.frequency;
  2382. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.time =
  2383. data.medicationtime;
  2384. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.agencyPrice =
  2385. data.fryingfee;
  2386. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.systemOfCreamPrice =
  2387. data.markfree;
  2388. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.radio =
  2389. data.prescriptiontype;
  2390. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.usege = data.usrage;
  2391. data1.recipe_tabs[data1.recipe_tabs_c].totalTableD = [];
  2392. if (!request) return;
  2393. // 赋值给表格
  2394. data.preStiDetails.forEach((item, index) => {
  2395. let obj1 = {
  2396. drugList: [],
  2397. page: 1,
  2398. loadMore: true,
  2399. usageList: [],
  2400. id: item.seqn,
  2401. name: item.ypmc || item.drugname,
  2402. spec: item.gg || item.specification, // 规格
  2403. dose: item.dose, // 剂量
  2404. unit: item.dw || item.unit, // 单位
  2405. usage: item.usagestr, // 用法
  2406. // usage: "",
  2407. // price: item.lsjg,
  2408. price: item.price ? item.price : 0,
  2409. total: item.price ? item.price * item.dose : 0,
  2410. inventory: item.kc, // 库存
  2411. key: "",
  2412. search_i: index,
  2413. medid: item.ypmc ? item.pid || item.matid : drugid, // 药品id
  2414. originname: item.cdmc, // 产地名称
  2415. showSearch: false
  2416. };
  2417. obj1.ggnum = +item.ggnum || 1;
  2418. obj1.xbzxs = +item.xbzxs || '34'.includes(item.zylx) ? obj1.ggnum : 1;
  2419. data1.recipe_tabs[data1.recipe_tabs_c].totalTableD.push(obj1);
  2420. data1.getSelectType("中药药品用法", index);
  2421. });
  2422. data1.recipe_tabs[data1.recipe_tabs_c].totalTableD.push({
  2423. drugList: [],
  2424. page: 1,
  2425. loadMore: true,
  2426. usageList: [],
  2427. showSearch: false,
  2428. search_i: 0,
  2429. key: "",
  2430. id: 1
  2431. });
  2432. data1.recipe_tabs[data1.recipe_tabs_c].totalTableD.filter(
  2433. (item3, index3) => {
  2434. this.rationalMed = [];
  2435. this.resetRationalMed();
  2436. this.getRationalMed(item3.medid);
  2437. return (item3.id = index3 + 1);
  2438. }
  2439. );
  2440. data1.recipe_tabs[data1.recipe_tabs_c].tableData = data1.recipe_tabs[
  2441. data1.recipe_tabs_c
  2442. ].totalTableD.filter(item2 => {
  2443. return Number(item2.id) % 2 != 0;
  2444. });
  2445. data1.recipe_tabs[data1.recipe_tabs_c].tableData1 = data1.recipe_tabs[
  2446. data1.recipe_tabs_c
  2447. ].totalTableD.filter(item2 => {
  2448. return Number(item2.id) % 2 == 0;
  2449. });
  2450. this.showAgree = false;
  2451. this.showExpr = false;
  2452. this.showPresc = false;
  2453. this.showUnifyPresc = false;
  2454. data1.getPharmacyID();
  2455. data1.changePharmacy();
  2456. },
  2457. // 存为协定方后打开处方
  2458. openRecipeAfterAgree() {
  2459. let zhongPrescriptionVo = this.zhongPrescriptionVo;
  2460. let chengPrescriptionVo = this.chengPrescriptionVo;
  2461. let technologyPrescriptionVo = this.technologyPrescriptionVo;
  2462. this._getRecipePriview(
  2463. zhongPrescriptionVo,
  2464. chengPrescriptionVo,
  2465. technologyPrescriptionVo
  2466. );
  2467. },
  2468. // 提交中药处方
  2469. async submitRecipe1() {
  2470. const cancel = (id) => {
  2471. this.saving = false;
  2472. if (id) this.container_i = this.contentTabs.findIndex(tab => tab.id === id);
  2473. }
  2474. this.saving = true;
  2475. if (!await this.$refs.TCM.saveDiagnosisData()) return cancel();
  2476. let zhongPrescriptionVo = [];
  2477. let chengPrescriptionVo = {};
  2478. let technologyPrescriptionVo = {};
  2479. const selected = this.contentTabs[this.container_i];
  2480. const tabs = this.contentTabs.filter(tab => tab.check && tab.id !== selected.id)
  2481. tabs.unshift(selected);
  2482. for (const tab of tabs) {
  2483. const child = this.$children.find(child => child.name === tab.name);
  2484. if (!(child.saveable || selected.id === tab.id)) continue;
  2485. switch (tab.id) {
  2486. case /*中药处方*/
  2487. '0': {
  2488. zhongPrescriptionVo = this.dealRecipe1(child);
  2489. if (!zhongPrescriptionVo || !zhongPrescriptionVo.length) return cancel(tab.id);
  2490. try {
  2491. const {options, force} = await this.getRationalSafeUse();
  2492. if (options.length) {
  2493. const results = await Promise.all(child.recipe_tabs.map((_, index) => this.getRationalMed2(index, (drugid, type) => {
  2494. if (force && options.includes(type.toString())) try { zhongPrescriptionVo[index].zhongdetail.find(item => item.drugid === drugid).sign = this.getuserinfo.username; } catch (_) { }
  2495. })));
  2496. const tips = results.map((item, index) => {
  2497. const value = options.map(i => item[i] ? `<div class="title">${item[i].title}</div><div class="content">${item[i].collection.join('')}</div>` : '').join('');
  2498. return value ? `<div style="padding-top: ${index ? 12 : 0}px;border-bottom: 1px dashed #dcdcdc;"><h2 style="margin-bottom: 16px;">${item.title}</h2>${value}</div>` : '';
  2499. }).join('');
  2500. if (tips) {
  2501. if (!force) {
  2502. this.$message({
  2503. dangerouslyUseHTMLString: true,
  2504. customClass: 'message-rational-safe-use-wrapper',
  2505. message: tips,
  2506. duration: 1000 * 3,
  2507. showClose: true,
  2508. })
  2509. } else if (await this.$confirm(tips, '温馨提示:是否保存处方?', {
  2510. confirmButtonText: '保存',
  2511. cancelButtonText: '取消',
  2512. dangerouslyUseHTMLString: true,
  2513. customClass: 'message-rational-safe-use-wrapper',
  2514. }).then(() => /* 继续 */ false, () => /* 取消 */ true)) return cancel(tab.id);
  2515. }
  2516. }
  2517. } catch (e) {}
  2518. break;
  2519. }
  2520. case /*中药制剂*/
  2521. '1': {
  2522. if (+child.paystate === 1) continue;
  2523. chengPrescriptionVo = this.dealRecipe2(child);
  2524. if (!chengPrescriptionVo || !Object.keys(chengPrescriptionVo).length) return cancel(tab.id);
  2525. break;
  2526. }
  2527. case /*适宜技术*/
  2528. '2': {
  2529. if (+child.paystate === 1) continue;
  2530. technologyPrescriptionVo = this.dealRecipe3(child);
  2531. if (!technologyPrescriptionVo || !Object.keys(technologyPrescriptionVo).length) return cancel(tab.id);
  2532. break;
  2533. }
  2534. }
  2535. }
  2536. await this._getRecipePriview(
  2537. zhongPrescriptionVo,
  2538. chengPrescriptionVo,
  2539. technologyPrescriptionVo
  2540. );
  2541. return cancel();
  2542. },
  2543. // 修改推荐方剂轮播图下标
  2544. changeRbanner(type) {
  2545. if (type == "add") {
  2546. if (this.r_current == 3) {
  2547. this.r_current = 0;
  2548. } else {
  2549. this.r_current += 1;
  2550. }
  2551. this.$refs.r_banner.setActiveItem(this.r_current);
  2552. } else if (type == "reduce") {
  2553. if (this.r_current == 0) {
  2554. this.r_current = 3;
  2555. } else {
  2556. this.r_current -= 1;
  2557. }
  2558. this.$refs.r_banner.setActiveItem(this.r_current);
  2559. }
  2560. },
  2561. // 修改协定方 tab
  2562. changeAgree(type) {
  2563. this.agree_current = type;
  2564. if (type == 0) {
  2565. // this.activeNames = '0'
  2566. this.collapseData[this.activeNames].page = 1;
  2567. this.collapseData[this.activeNames].loadMore = true;
  2568. this.collapseData[this.activeNames].list = [];
  2569. this.getAgreeRecipe(this.collapseData[this.activeNames].loadMore);
  2570. } else if (type == 1) {
  2571. this.getPrescriptionsList();
  2572. } else if (type == 2) {
  2573. this.getDoctorCaseL();
  2574. }
  2575. },
  2576. // 查看药品信息
  2577. findDrug(scope) {
  2578. console.log(scope, "药品信息");
  2579. // this.showDrug = true
  2580. if (scope.row.color == "red") {
  2581. this.getMedDetail(scope.row.medid);
  2582. } else {
  2583. this.getDrugDetail(scope.row.medid);
  2584. }
  2585. },
  2586. // 查看穴位信息
  2587. find(scope) {
  2588. this.getAcupointD(scope.row.acuid);
  2589. },
  2590. clearContainer(id) {
  2591. try { this.contentTabs.find(tab => tab.id === id).color = ''; } catch (e) {}
  2592. switch (id.toString()) {
  2593. case '0': this.isTuiDaoZy = false; break;
  2594. case '1': this.isTuiDaoZj = false; break;
  2595. case '2': this.isTuiDaoSuit = false; break;
  2596. }
  2597. },
  2598. // 顶部tab 改变
  2599. async changeContainer(item, type) {
  2600. this.container_i = type;
  2601. item.check = true;
  2602. // if (item.id === '1') return;
  2603. // if (this.contentTabs[type].color == 'red') {
  2604. await this.inferRecipe(3, item.businesstype);
  2605. const child = this.$children.find(child => child.name === item.name);
  2606. if (!child) return
  2607. if (item.id === '0') {
  2608. try { this.tjRecipeId = child.recipe_tabs[child.recipe_tabs_c].id; } catch (e) { this.tjRecipeId = "" }
  2609. } else if (item.id === '2') {
  2610. try { this.tjRecipeId = child.recipeId; } catch (e) { this.tjRecipeId = "" }
  2611. }
  2612. // }
  2613. // if (type == 2) {
  2614. // if (!this.isTuiDaoSuit) {
  2615. // this.isTuiDaoSuit = true
  2616. // this.inferRecipe()
  2617. // }
  2618. // }
  2619. // if (type == 0) {
  2620. // if (!this.isTuiDaoZy) {
  2621. // this.isTuiDaoZy = true
  2622. // this.inferRecipe()
  2623. // }
  2624. // }
  2625. },
  2626. checked(item1) {
  2627. this.contentTabs.forEach(item => {
  2628. if (item.name == item1.name) {
  2629. item.check = !item.check;
  2630. }
  2631. });
  2632. let type = this.container_i;
  2633. setTimeout(() => {
  2634. if (type == 0) {
  2635. let arr = this.$refs.chineseM.recipe_tabs;
  2636. let allmoney = 0;
  2637. arr.forEach(item => {
  2638. allmoney += item.bottom_form.allMoney;
  2639. });
  2640. this.chineseM.allMoney = allmoney;
  2641. } else if (type == 1) {
  2642. console.log(this.$refs.medicineC.allMoney);
  2643. this.medicineC.allMoney = this.$refs.medicineC.allMoney;
  2644. } else if (type == 2) {
  2645. this.suitScience.allMoney = this.$refs.suitScience.allMoney;
  2646. }
  2647. }, 500);
  2648. },
  2649. // 名家验案转方
  2650. turnRecipe(item) {
  2651. this.setDrugsInfo(item.verpreitemlist);
  2652. this.setRecipeId('');
  2653. this.changeAndJoin();
  2654. this.addRecipeFrom("5");
  2655. },
  2656. // 就诊记录转方
  2657. turnRecipe1(item) {
  2658. // 病历转方
  2659. this.addRecipeFrom("6");
  2660. this.getRecipeDataByid(item.pid);
  2661. this.showRecord = false;
  2662. this.showAgree = false;
  2663. },
  2664. transposition(recipe) {
  2665. const is = recipe.medicine.every(m => m.matid);
  2666. if (is) {
  2667. // 调用 方剂 换方
  2668. const medicines = recipe.medicine.map((m, i) => {
  2669. const medicine = {
  2670. matid: m.matid,
  2671. matname: m.ypmc,
  2672. dose: m.dose,
  2673. unit: m.dw || m.zxdw || m.bzdw,
  2674. useage: m.usagestr,
  2675. seqn: i + 1,
  2676. }
  2677. medicine.ggnum = +m.ggnum || 1;
  2678. medicine.xbzxs = +m.xbzxs || '34'.includes(m.zylx) ? medicine.ggnum : 1;
  2679. return medicine;
  2680. });
  2681. if (recipe.__RecipeFrom__ === '2') this.agreeAssignToTCM(recipe, void 0, true);
  2682. this.setDrugsInfo(medicines);
  2683. this.setRecipeId('');
  2684. this.changeAndJoin(1);
  2685. } else if (recipe.__RecipeFrom__ === '2') {
  2686. this.agreeInfo = recipe;
  2687. this.changeBasisPre(this.agreeInfo.pid);
  2688. }
  2689. if (recipe.__RecipeFrom__) this.addRecipeFrom(recipe.__RecipeFrom__ /* 2 协定方*/);
  2690. },
  2691. /**
  2692. * 协定方转方
  2693. * @deprecated
  2694. */
  2695. turnRecipe2() {
  2696. this.addRecipeFrom("2");
  2697. this.changeBasisPre(this.agreeInfo.pid);
  2698. // this.showAgree = false
  2699. },
  2700. // 专家经验合方
  2701. joinRecipe3(info) {
  2702. let children = this.$children.filter(item => {
  2703. return (
  2704. item.name == "中药处方" ||
  2705. item.name == "中药制剂" ||
  2706. item.name == "适宜技术处方"
  2707. );
  2708. });
  2709. let data1 = children[0];
  2710. let data = info;
  2711. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.preType = data.type;
  2712. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.disable =
  2713. data.type == "1";
  2714. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.preType = data.type;
  2715. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.doseType =
  2716. data.curetype;
  2717. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.nongjian =
  2718. data.density;
  2719. data1.recipe_tabs[
  2720. data1.recipe_tabs_c
  2721. ].bottom_form.specialDeploymentPrice = data.deploymentfree;
  2722. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.num = data.frequency;
  2723. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.time =
  2724. data.medicationtime;
  2725. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.agencyPrice =
  2726. data.fryingfee;
  2727. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.systemOfCreamPrice =
  2728. data.markfree;
  2729. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.radio =
  2730. data.prescriptiontype;
  2731. data1.recipe_tabs[data1.recipe_tabs_c].bottom_form.usege = data.usrage;
  2732. if (data1.recipe_tabs[data1.recipe_tabs_c].totalTableD.length == 1) {
  2733. data1.recipe_tabs[data1.recipe_tabs_c].totalTableD = [];
  2734. } else {
  2735. data1.recipe_tabs[data1.recipe_tabs_c].totalTableD.pop();
  2736. }
  2737. if (info.isupdate == "1") {
  2738. this.turnRecipe3(info);
  2739. return;
  2740. }
  2741. // 赋值给表格
  2742. data.preStiDetails.forEach((item, index) => {
  2743. let obj1 = {
  2744. drugList: [],
  2745. page: 1,
  2746. loadMore: true,
  2747. usageList: [],
  2748. id: item.seqn,
  2749. name: item.ypmc || item.drugname,
  2750. spec: item.gg || item.specification, // 规格
  2751. dose: item.dose, // 剂量
  2752. unit: item.dw || item.unit, // 单位
  2753. // usage: item.usagestr, // 用法
  2754. usage: "",
  2755. // usage: item.yf,
  2756. // price: item.lsjg,
  2757. price: item.price ? item.price : 0,
  2758. total: item.price ? item.price * item.dose : 0,
  2759. inventory: item.kc, // 库存
  2760. key: "",
  2761. search_i: index,
  2762. medid: item.ypmc ? item.pid : drugid, // 药品id
  2763. originname: item.cdmc, // 产地名称
  2764. showSearch: false
  2765. };
  2766. obj1.ggnum = +item.ggnum || 1;
  2767. obj1.xbzxs = +item.xbzxs || '34'.includes(item.zylx) ? obj1.ggnum : 1;
  2768. data1.recipe_tabs[data1.recipe_tabs_c].totalTableD.push(obj1);
  2769. data1.getSelectType("中药药品用法", index);
  2770. });
  2771. data1.recipe_tabs[data1.recipe_tabs_c].totalTableD.push({
  2772. drugList: [],
  2773. page: 1,
  2774. loadMore: true,
  2775. usageList: [],
  2776. showSearch: false,
  2777. search_i: 0,
  2778. key: "",
  2779. id: 1
  2780. });
  2781. data1.recipe_tabs[data1.recipe_tabs_c].totalTableD.filter(
  2782. (item3, index3) => {
  2783. this.rationalMed = [];
  2784. this.resetRationalMed();
  2785. this.getRationalMed(item3.medid);
  2786. return (item3.id = index3 + 1);
  2787. }
  2788. );
  2789. data1.recipe_tabs[data1.recipe_tabs_c].tableData = data1.recipe_tabs[
  2790. data1.recipe_tabs_c
  2791. ].totalTableD.filter(item2 => {
  2792. return Number(item2.id) % 2 != 0;
  2793. });
  2794. data1.recipe_tabs[data1.recipe_tabs_c].tableData1 = data1.recipe_tabs[
  2795. data1.recipe_tabs_c
  2796. ].totalTableD.filter(item2 => {
  2797. return Number(item2.id) % 2 == 0;
  2798. });
  2799. this.showAgree = false;
  2800. this.showExpr = false;
  2801. data1.getPharmacyID();
  2802. },
  2803. //专家经验转方
  2804. turnRecipe3(info) {
  2805. this.changeExpre(info);
  2806. },
  2807. // 适宜技术处方 专方 和方
  2808. suitChnageOrJoin(type = "", info) {
  2809. // type = '' 专访 type == 1 和方
  2810. if (this.container_i == 1) return;
  2811. const child = this.$children.find(child => child.name === '适宜技术处方');
  2812. if (!child) return;
  2813. const loading = this.$loading({
  2814. lock: true,
  2815. text: "正在处理数据,请稍后",
  2816. spinner: "el-icon-loading",
  2817. background: "rgba(0, 0, 0, 0.7)"
  2818. });
  2819. let drugs = this.getDrugInfo;
  2820. const recipeId = +type !== 1 ? this.getRecipeId : "";
  2821. this.setRecipeId('');
  2822. this.tjRecipeId = recipeId
  2823. const merge = !(info && info.operation)
  2824. if (type == "") {
  2825. child.bottom_form.caozuo = merge || !info ? '' : info.operation;
  2826. // 转方
  2827. child.tableData4 = [];
  2828. drugs.forEach((item, index) => {
  2829. let obj = {
  2830. id: index + 1,
  2831. name: item.acuname,
  2832. acuname: item.acuname,
  2833. acuid: item.acuid
  2834. };
  2835. // 锚点
  2836. if (merge && item.acuoperation) child.bottom_form.caozuo += obj.acuname + ':' + item.acuoperation + ' ';
  2837. child.tableData4.push(obj);
  2838. });
  2839. child.tableData4.push({
  2840. id: "",
  2841. name: "",
  2842. acuname: "",
  2843. acuid: ""
  2844. });
  2845. child.tableData4.filter((item, index) => {
  2846. return (item.id = index + 1);
  2847. });
  2848. } else if (type == 1) {
  2849. child.tableData4.pop();
  2850. for (const item of drugs) {
  2851. if (child.tableData4.find(({acuid}) => acuid === item.acuid)) continue;
  2852. let obj = {
  2853. id: child.tableData4.length + 1,
  2854. name: item.acuname,
  2855. acuname: item.acuname,
  2856. acuid: item.acuid,
  2857. };
  2858. // 锚点
  2859. if (merge && item.acuoperation) child.bottom_form.caozuo += obj.acuname + ':' + item.acuoperation + ' ';
  2860. child.tableData4.push(obj);
  2861. }
  2862. child.tableData4.push({
  2863. id: "",
  2864. name: "",
  2865. acuname: "",
  2866. acuid: ""
  2867. });
  2868. child.tableData4.filter((item, index) => {
  2869. return (item.id = index + 1);
  2870. });
  2871. }
  2872. child.recipeId = recipeId
  2873. this.showDialog = false;
  2874. loading.close();
  2875. },
  2876. // 换方 按钮 直接点击
  2877. inferChange(item, type = "", type1 = "") {
  2878. // type == 1 type1 == 1 不掉详情接口 直接转方 和方
  2879. this.addRecipeFrom("4", 2);
  2880. if (type == 1 && type1 == 1) {
  2881. this.setDrugsInfo(item.items);
  2882. this.setRecipeId('');
  2883. this.suitChnageOrJoin('', item);
  2884. return;
  2885. }
  2886. console.log(item, "item");
  2887. this.getPreDetal(item.preid || item.pried || item.acupreid);
  2888. },
  2889. // 和方按钮直接点击
  2890. inferChange1(item, type = "", type1 = "") {
  2891. let isupdateExpre = sessionStorage.getItem("isupdateExpre");
  2892. if (isupdateExpre == "1") {
  2893. this.$message("请先清空当前处方");
  2894. return;
  2895. }
  2896. this.addRecipeFrom("4", 2);
  2897. if (type == 1 && type1 == 1) {
  2898. this.setDrugsInfo(item.items);
  2899. this.setRecipeId('');
  2900. this.suitChnageOrJoin(1, item);
  2901. return;
  2902. }
  2903. this.getPreDetal(item.preid || item.pried || item.acupreid, 2);
  2904. },
  2905. //方剂合方
  2906. joinRecipe() {
  2907. let isupdateExpre = sessionStorage.getItem("isupdateExpre");
  2908. if (isupdateExpre == "1") {
  2909. this.$message("请先清空当前处方");
  2910. return;
  2911. }
  2912. if (!this.preInfo.prename) {
  2913. this.addRecipeFrom("4", 2);
  2914. this.suitChnageOrJoin(1, this.preInfo);
  2915. return;
  2916. }
  2917. this.addRecipeFrom("4");
  2918. this.setDrugsInfo(this.preInfo.items);
  2919. this.setRecipeId('');
  2920. this.changeAndJoin(2);
  2921. },
  2922. // 方剂换方
  2923. changeRecipe(e) {
  2924. if (e == 1) {
  2925. this.showDialog = false;
  2926. // this.tjRecipeId = ''
  2927. return;
  2928. }
  2929. if (!this.preInfo.prename) {
  2930. this.addRecipeFrom("4", 2);
  2931. // 适宜技术处方
  2932. this.suitChnageOrJoin('', this.preInfo);
  2933. return;
  2934. }
  2935. this.addRecipeFrom("4");
  2936. this.setDrugsInfo(this.preInfo.items);
  2937. this.changeAndJoin(1);
  2938. },
  2939. // 药方是否支付
  2940. async _recipeIsPay(id, type, index) {
  2941. let res = await recipeIsPay({
  2942. preId: id,
  2943. visitId: JSON.parse(sessionStorage.getItem("patiensInfo")).pid
  2944. });
  2945. if (res.ResultCode == 0) {
  2946. // 跟据id 回显
  2947. let children = this.$children.filter(item => {
  2948. return (
  2949. item.name == "中药处方" ||
  2950. item.name == "中药制剂" ||
  2951. item.name == "适宜技术处方"
  2952. );
  2953. });
  2954. let data1 = children[0];
  2955. let data2 = children[1];
  2956. let data3 = children[2];
  2957. if (type == 1) {
  2958. // 根据处方id 回显
  2959. setTimeout(() => {
  2960. if (data1.recipe_tabs[data1.recipe_tabs_c].totalTableD.length > 1) {
  2961. data1.recipe_tabs[data1.recipe_tabs_c].isPay = res.Data;
  2962. }
  2963. if (data2.tableData3.length > 1) {
  2964. data2.isPay = res.Data;
  2965. }
  2966. if (data3.tableData4.length > 1) {
  2967. data3.isPay = res.Data;
  2968. }
  2969. }, 1000);
  2970. }
  2971. if (type == 2) {
  2972. setTimeout(() => {
  2973. // 处方回显
  2974. if (index) {
  2975. data1.recipe_tabs[index].isPay = res.Data;
  2976. }
  2977. if (data2.tableData3.length > 1) {
  2978. data2.isPay = res.Data;
  2979. }
  2980. if (data3.tableData4.length > 1) {
  2981. data3.isPay = res.Data;
  2982. }
  2983. }, 1000);
  2984. }
  2985. }
  2986. },
  2987. // 获取穴位信息
  2988. async getAcupointD(id) {
  2989. let res = await getAcupointD({
  2990. acuid: id
  2991. });
  2992. if (res.code == 0) {
  2993. this.xwinfo = res.data;
  2994. this.showXuewei = true;
  2995. }
  2996. },
  2997. // 获取病人 左侧信息
  2998. async getPatiensBasisM() {
  2999. let res = await getPatiensBasisM({
  3000. patientId: this.getPatiensInfo.pid
  3001. // patientId: '4e9db43d-25aa-4683-9564-5120deac2c56'
  3002. });
  3003. if (res.ResultCode == 0) {
  3004. // res.Data.recordLength = res.Data.patientRecord.length;
  3005. // this.agree_key = res.Data.maindiagnosis ?
  3006. // res.Data.maindiagnosis.namemedicine ?
  3007. // res.Data.maindiagnosis.namemedicine :
  3008. // "" :
  3009. // "";
  3010. this.agree_key1 = res.Data.maindiagnosis
  3011. ? res.Data.maindiagnosis.namemedicine
  3012. ? res.Data.maindiagnosis.namemedicine
  3013. : ""
  3014. : "";
  3015. res.Data.secondarydiagnosis = res.Data.secondarydiagnosis
  3016. ? res.Data.secondarydiagnosis
  3017. : [];
  3018. this.patiensMsg = res.Data;
  3019. this.patiensMsg.outpatientElectronicmedicalrecord.image1 = formatPicture(this.patiensMsg.outpatientElectronicmedicalrecord.image1);
  3020. // if (!this.patiensMsg.maindiagnosis.disid) {
  3021. // this.$message.warning("请先提交一条诊断信息");
  3022. // this.$router.replace({
  3023. // path: "/index/diagnosis"
  3024. // });
  3025. // return;
  3026. // }
  3027. // if (this.patiensMsg.maindiagnosis.disid) {
  3028. // this.inferRecipe();
  3029. // }
  3030. }
  3031. },
  3032. async openTongueAndFaceAnalysis() {
  3033. if (!this.tongueAndFaceAnalysis) await this.getPatientBasisTongueAndFaceAnalysis()
  3034. if (this.tongueAndFaceAnalysis) this.showTongueAnalysis = true;
  3035. },
  3036. // 获取病人 舌面象数据
  3037. async getPatientBasisTongueAndFaceAnalysis() {
  3038. this.tongueAndFaceLoading = true;
  3039. try {
  3040. const get = getTongueAndFaceAnalysisRecords.bind(null, this.getPatiensInfo ? this.getPatiensInfo.pid : "")
  3041. let result = await get(1, 3);
  3042. this.tongueAndFaceAnalysis = result.total > 0 ? {...result, get} : null;
  3043. } catch (e) {
  3044. this.$message.error(e.ResultInfo);
  3045. }
  3046. this.tongueAndFaceLoading = false;
  3047. },
  3048. // 获取处方预览数据
  3049. async _getRecipePriview(zhongyao, zhongchengyao, technology) {
  3050. const loading = this.$loading({
  3051. lock: true,
  3052. text: "正在提交",
  3053. spinner: "el-icon-loading",
  3054. background: "rgba(0, 0, 0, 0.7)"
  3055. });
  3056. let params = {
  3057. recordid: this.getPatiensInfo.pid,
  3058. technology: technology,
  3059. zhongchengyao: zhongchengyao,
  3060. zhongyao: zhongyao
  3061. };
  3062. let res = await getRecipePriview(params).catch(err => {
  3063. loading.close();
  3064. });
  3065. if (res.ResultCode == 0) {
  3066. loading.close();
  3067. res.Data.tcmPrescriptionFormVos.forEach((item, index) => {
  3068. // if(item.)
  3069. item.isdelivery = zhongyao[index].isdelivery;
  3070. });
  3071. this.priviewData = res.Data;
  3072. sessionStorage.setItem(
  3073. "priviewRawData",
  3074. JSON.stringify({
  3075. zhongyao,
  3076. zhongchengyao,
  3077. technology
  3078. })
  3079. );
  3080. this.showPriview = true;
  3081. }
  3082. },
  3083. // 获取处方回显数据
  3084. async getRecipeShowData() {
  3085. const loading = this.$loading({
  3086. lock: true,
  3087. text: "正在加载数据",
  3088. spinner: "el-icon-loading",
  3089. background: "rgba(0, 0, 0, 0.7)"
  3090. });
  3091. let res = await getRecipeShowData(this.getPatiensInfo.pid).catch(err => {
  3092. loading.close();
  3093. });
  3094. if (res.ResultCode == 0) {
  3095. if (!res.Data.flag) {
  3096. loading.close();
  3097. if (this.getPatiensInfo.pid) {
  3098. await this.getPatiensBasisM();
  3099. }
  3100. return;
  3101. }
  3102. this.contentTabs[0].check = res.Data.zhongyao.length > 0;
  3103. this.contentTabs[1].check = res.Data.zhongchengyao.chengDetail !== null;
  3104. this.contentTabs[2].check = res.Data.technology.detail !== null;
  3105. this.container_i = Math.max(this.contentTabs.findIndex(item => item.check), 0);
  3106. this.chineseM.allMoney = res.Data.zhonyaoPrice;
  3107. this.medicineC.allMoney = res.Data.zhonchengPrice;
  3108. this.suitScience.allMoney = res.Data.technologyPrice;
  3109. if (this.contentTabs[0].check) {
  3110. this.assignRecipe1(res.Data.zhongyao, loading);
  3111. res.Data.zhongyao.forEach((item, index) => {
  3112. this._recipeIsPay(item.preId, 2, index);
  3113. });
  3114. }
  3115. if (this.contentTabs[1].check) {
  3116. this.assignRecipe2(res.Data.zhongchengyao, loading);
  3117. this._recipeIsPay(res.Data.zhongchengyao.preId, 2);
  3118. }
  3119. if (this.contentTabs[2].check) {
  3120. this.assignRecipe3(res.Data.technology, loading);
  3121. this._recipeIsPay(res.Data.technology.preId, 2);
  3122. }
  3123. if (this.getPatiensInfo.pid) {
  3124. this.getPatiensBasisM();
  3125. }
  3126. }
  3127. },
  3128. // 跟据id 获取处方回显数据
  3129. async getRecipeDataByid(id) {
  3130. let params = {
  3131. pid: id
  3132. };
  3133. const loading = this.$loading({
  3134. lock: true,
  3135. text: "正在处理转方数据",
  3136. spinner: "el-icon-loading",
  3137. background: "rgba(0, 0, 0, 0.7)"
  3138. });
  3139. let res = await getRecipeDataByid(params).catch(err => {
  3140. loading.close();
  3141. });
  3142. if (res.ResultCode == 0) {
  3143. if (res.Data.type == 0) {
  3144. res.Data.zhongdetail = res.Data.detail;
  3145. let arr = [];
  3146. arr.push(res.Data);
  3147. this.container_i = 0;
  3148. this.contentTabs[0].check = true;
  3149. this.contentTabs[1].check = false;
  3150. this.contentTabs[2].check = false;
  3151. this.assignRecipe1(arr, loading);
  3152. } else if (res.Data.type == 1) {
  3153. res.Data.chengDetail = res.Data.detail;
  3154. this.container_i = 1;
  3155. this.contentTabs[0].check = false;
  3156. this.contentTabs[1].check = true;
  3157. this.contentTabs[2].check = false;
  3158. this.assignRecipe2(res.Data, loading);
  3159. } else if (res.Data.type == 2) {
  3160. this.container_i = 2;
  3161. this.contentTabs[0].check = false;
  3162. this.contentTabs[1].check = false;
  3163. this.contentTabs[2].check = true;
  3164. this.assignRecipe3(res.Data, loading);
  3165. }
  3166. await this._recipeIsPay(id, 1);
  3167. }
  3168. },
  3169. //获取右侧协定方列表
  3170. async getAgreeRecipe(load = true) {
  3171. if (!load) return;
  3172. let params = {
  3173. type: this.activeNames,
  3174. pageId: this.collapseData[this.activeNames].page,
  3175. pageSize: 10
  3176. };
  3177. let res = await getAgreeRecipe(params);
  3178. if (res.ResultCode == 0) {
  3179. if (
  3180. this.collapseData[this.activeNames].list.length <=
  3181. res.Data.TotalRecordCount
  3182. ) {
  3183. this.collapseData[this.activeNames].list = [
  3184. ...this.collapseData[this.activeNames].list,
  3185. ...res.Data.Items
  3186. ];
  3187. if (
  3188. this.collapseData[this.activeNames].list.length >=
  3189. res.Data.TotalRecordCount
  3190. ) {
  3191. this.collapseData[this.activeNames].loadMore = false;
  3192. } else {
  3193. this.collapseData[this.activeNames].page += 1;
  3194. }
  3195. } else {
  3196. this.collapseData[this.activeNames].loadMore = false;
  3197. }
  3198. }
  3199. },
  3200. // 获取方剂列表
  3201. async getPrescriptionsList(load = true) {
  3202. if (!load) return;
  3203. let params = {
  3204. pageid: this.rPrescription.page,
  3205. pagesize: 5,
  3206. searchtype: "",
  3207. keyword: this.agree_key
  3208. };
  3209. let res = await getPrescriptionsList(params);
  3210. if (res.code == 0) {
  3211. if (this.rPrescription.page <= res.data.TotalPageCount) {
  3212. this.rPrescription.list = [
  3213. ...this.rPrescription.list,
  3214. ...res.data.pres
  3215. ];
  3216. if (this.rPrescription.page == res.data.TotalPageCount) {
  3217. this.rPrescription.loadMore = false;
  3218. } else {
  3219. this.rPrescription.page += 1;
  3220. }
  3221. } else {
  3222. this.rPrescription.loadMore = false;
  3223. }
  3224. }
  3225. },
  3226. // 获取参考医案
  3227. async getDoctorCaseL(load = true) {
  3228. if (!load) return;
  3229. let params = {
  3230. pageid: this.rDoctorCase.page,
  3231. pagesize: 5,
  3232. searchtype: "",
  3233. keyword: this.agree_key1
  3234. };
  3235. let res = await getDoctorCaseL(params);
  3236. if (res.code == 0) {
  3237. if (this.rDoctorCase.page <= res.data.TotalPageCount) {
  3238. res.data.verifys.filter(item => {
  3239. return (item.content = item.disname + " " + item.attendingexpert);
  3240. });
  3241. this.rDoctorCase.list = [
  3242. ...this.rDoctorCase.list,
  3243. ...res.data.verifys
  3244. ];
  3245. if (this.rDoctorCase.page == res.data.TotalPageCount) {
  3246. this.rDoctorCase.loadMore = false;
  3247. } else {
  3248. this.rDoctorCase.page += 1;
  3249. }
  3250. } else {
  3251. this.rPrescriprDoctorCasetion = { ...this.rPrescriprDoctorCasetion, loadMore: false, };
  3252. }
  3253. }
  3254. },
  3255. // 获取右侧合理用药信息展示
  3256. async getRationalMed2(index, cb) {
  3257. if (typeof cb !== 'function') cb = () => void 0;
  3258. const child = this.$children.find(item => item.name === "中药处方");
  3259. if (index == null) index = child.recipe_tabs_c;
  3260. const gather = child.recipe_tabs[index].totalTableD.filter(item => item.name && item.medid).map(item => item.medid);
  3261. const request = (id, i, ids) => getRationalMed({
  3262. matID: id,
  3263. matIds: [...ids.slice(0, i), ...ids.slice(i + 1)],
  3264. orgId: this.getuserinfo.organizationid,
  3265. }).then(res => res.code === 0 ? Object.assign({medid: id}, res.data) : null).catch(err => null);
  3266. const get = (medid) => child.recipe_tabs[index].totalTableD.find(item => item.medid === medid);
  3267. const rationalMed = await Promise.all(gather.map(request)).then(data => data.filter(Boolean));
  3268. return rationalMed.reduce((data, item) => {
  3269. const color = 'blue';
  3270. if (item.matdosage && item.showDose) {
  3271. const ref = {}, i = 1;
  3272. const child = data[i] || (data[i] = {title: '', collection: []});
  3273. child.collection.push(`<div>
  3274. <span class="met-name" style="color: ${color};">${item.matname}</span>
  3275. <span class="met-value">${ref[item.matdosage]}</span>
  3276. </div>`);
  3277. cb(item.medid, i);
  3278. }
  3279. if (item.matsjj) {
  3280. const ref = {1: '慎用', 2: '忌用', 3: '禁用'}, i = 2;
  3281. const child = data[i] || (data[i] = {title: '慎忌禁用药', collection: []});
  3282. child.collection.push(`<div>
  3283. <span class="met-name" style="color: ${color};">${item.matname}</span>
  3284. <span class="met-value">${ref[item.matsjj] || item.matsjj}</span>
  3285. </div>`);
  3286. cb(item.medid, i);
  3287. }
  3288. if (item.matyfsjj) {
  3289. const color = item.matyfsjj === '3' ? 'red' : 'blue';
  3290. const ref = {1: '孕妇慎用', 2: '孕妇忌用', 3: '孕妇禁用'}, i = 3;
  3291. const child = data[i] || (data[i] = {title: '孕妇慎忌禁', collection: []});
  3292. child.collection.push(`<div>
  3293. <span class="met-name" style="color: ${color};">${item.matname}</span>
  3294. <span class="met-value">${ref[item.matyfsjj]}</span>
  3295. </div>`);
  3296. cb(item.medid, i);
  3297. }
  3298. if (item.matysjj) {
  3299. const ref = {}, i = 4;
  3300. const child = data[i] || (data[i] = {title: '服药饮食禁忌', collection: []});
  3301. child.collection.push(`<div>
  3302. <span class="met-name" style="color: ${color};">${item.matname}</span>
  3303. <span class="met-value">${item.matysjj || '无'}</span>
  3304. </div>`);
  3305. cb(item.medid, i);
  3306. }
  3307. if (item.matdxsm) {
  3308. const color = 'red';
  3309. const ref = {}, i = 5;
  3310. const child = data[i] || (data[i] = {title: '药物毒性说明', collection: []});
  3311. child.collection.push(`<div>
  3312. <span class="met-name" style="color: ${color};">${item.matname}</span>
  3313. <span class="met-value">${item.matdxsm || '无'}</span>
  3314. </div>`);
  3315. cb(item.medid, i);
  3316. }
  3317. if (item.matbzjj) {
  3318. const ref = {}, i = 6;
  3319. const child = data[i] || (data[i] = {title: '病证用药禁忌', collection: []});
  3320. child.collection.push(`<div>
  3321. <span class="met-name" style="color: ${color};">${item.matname}</span>
  3322. <span class="met-value">${item.matbzjj || '无'}</span>
  3323. </div>`);
  3324. cb(item.medid, i);
  3325. }
  3326. if (item.matsbf) {
  3327. const color = 'red';
  3328. const ref = {}, i = 7;
  3329. const child = data[i] || (data[i] = {title: '十八反', collection: []});
  3330. child.collection.push(`<div>
  3331. <span class="met-name" style="color: ${color};">${item.matname}</span>
  3332. <span class="met-value">反${item.matsbf}</span>
  3333. </div>`);
  3334. cb(item.medid, i);
  3335. }
  3336. if (item.matsjw) {
  3337. const color = 'red';
  3338. const ref = {}, i = 8;
  3339. const child = data[i] || (data[i] = {title: '十九畏', collection: []});
  3340. child.collection.push(`<div>
  3341. <span class="met-name" style="color: ${color};">${item.matname}</span>
  3342. <span class="met-value">畏${item.matsjw}</span>
  3343. </div>`);
  3344. cb(item.medid, i);
  3345. }
  3346. if (item.matby) {
  3347. const ref = {}, i = 9;
  3348. const child = data[i] || (data[i] = {title: '用药不宜', collection: []});
  3349. child.collection.push(`<div>
  3350. <span class="met-name" style="color: ${color};">${item.matname}</span>
  3351. <span class="met-value">不宜与${item.matby}同用</span>
  3352. </div>`);
  3353. cb(item.medid, i);
  3354. }
  3355. if (item.matmindosage && item.matmaxdosage) {
  3356. try {
  3357. const dose = CC_Dosage2Basis(get(item.medid));
  3358. if (dose < item.matmindosage || dose > item.matmaxdosage) {
  3359. const ref = {}, i = 10;
  3360. const child = data[i] || (data[i] = {title: '超剂量药品', collection: []});
  3361. child.collection.push(`<div>
  3362. <span class="met-name" style="color: ${color};">${item.matname}</span>
  3363. <span class="met-value" style="color: red;">(${item.matmindosage}-${item.matmaxdosage})</span>
  3364. </div>`);
  3365. cb(item.medid, i);
  3366. }
  3367. } catch (e) {}
  3368. }
  3369. return data;
  3370. }, {title: `中药处方${index + 1}`});
  3371. },
  3372. async getRationalMed(id) {
  3373. // this.rationalMed = []
  3374. let children = this.$children.filter(item => {
  3375. return (
  3376. item.name == "中药处方" ||
  3377. item.name == "中药制剂" ||
  3378. item.name == "适宜技术处方"
  3379. );
  3380. });
  3381. let child = children[0];
  3382. const medicines = child.recipe_tabs[child.recipe_tabs_c].totalTableD || [];
  3383. const medicine = medicines.find(medicine => medicine.medid === id);
  3384. const ids = medicines.filter(medicine => medicine.name && medicine.medid !== id).map(medicine => medicine.medid);
  3385. // this.rationalMed = []
  3386. let res = await getRationalMed({
  3387. matID: id,
  3388. orgId: this.getuserinfo.organizationid,
  3389. matIds: ids
  3390. });
  3391. if (res.code == 0 && res.message) {
  3392. res.data.reqID = id;
  3393. this.rationalMed.push(Object.assign(res.data, {__medicine__: medicine}));
  3394. // 去重
  3395. const removeRepeat = (arr, key) => {
  3396. let obj = {};
  3397. arr = arr.reduce((pre, next) => {
  3398. obj[next[key]] ? "" : (obj[next[key]] = true && pre.push(next));
  3399. return pre;
  3400. }, []);
  3401. return arr;
  3402. };
  3403. this.resetRationalMed();
  3404. this.rationalMed = removeRepeat(this.rationalMed, "reqID");
  3405. }
  3406. },
  3407. resetRationalMed() {
  3408. const removeRepeat = (arr, key) => {
  3409. let obj = {};
  3410. arr = arr.reduce((pre, next) => {
  3411. obj[next[key]] ? "" : (obj[next[key]] = true && pre.push(next));
  3412. return pre;
  3413. }, []);
  3414. return arr;
  3415. };
  3416. this.rationalMed1 = [];
  3417. this.rationalMed2 = [];
  3418. this.rationalMed3 = [];
  3419. this.rationalMed4 = [];
  3420. this.rationalMed5 = [];
  3421. this.rationalMed6 = [];
  3422. this.rationalMed7 = [];
  3423. this.rationalMed8 = [];
  3424. this.rationalMed9 = [];
  3425. this.rationalMed10 = [];
  3426. this.rationalMed = removeRepeat(this.rationalMed, "reqID");
  3427. this.rationalMed.forEach(item => {
  3428. item.showDose = item.showDose ? true : false;
  3429. if (item.matdosage) {
  3430. // 超剂量药品:
  3431. this.rationalMed1.push(item);
  3432. }
  3433. if (item.matsjj) {
  3434. // 慎忌禁用药:
  3435. this.rationalMed2.push(item);
  3436. }
  3437. if (item.matyfsjj) {
  3438. // 孕妇慎忌禁:
  3439. this.rationalMed3.push(item);
  3440. }
  3441. if (item.matysjj) {
  3442. // 服药饮食禁忌:
  3443. this.rationalMed4.push(item);
  3444. }
  3445. if (item.matdxsm) {
  3446. /// 药物毒性说明:
  3447. this.rationalMed5.push(item);
  3448. }
  3449. if (item.matbzjj) {
  3450. // 病证用药禁忌:
  3451. this.rationalMed6.push(item);
  3452. }
  3453. if (item.matsbf) {
  3454. // 18反
  3455. this.rationalMed7.push(item);
  3456. }
  3457. if (item.matsjw) {
  3458. // 十九畏:
  3459. this.rationalMed8.push(item);
  3460. }
  3461. if (item.matby) {
  3462. // 用药不宜:
  3463. this.rationalMed9.push(item);
  3464. }
  3465. if (item.matmaxdosage && item.matmindosage) {
  3466. try {
  3467. const dose = CC_Dosage2Basis(item.__medicine__);
  3468. if (dose && (dose < item.matmindosage || dose > item.matmaxdosage)) item.showDose = true;
  3469. } catch (e) {}
  3470. this.rationalMed10.push(item);
  3471. }
  3472. });
  3473. this.rationalMed1 = removeRepeat(this.rationalMed1, "matid");
  3474. this.rationalMed2 = removeRepeat(this.rationalMed2, "matid");
  3475. this.rationalMed3 = removeRepeat(this.rationalMed3, "matid");
  3476. this.rationalMed4 = removeRepeat(this.rationalMed4, "matid");
  3477. this.rationalMed5 = removeRepeat(this.rationalMed5, "matid");
  3478. this.rationalMed6 = removeRepeat(this.rationalMed6, "matid");
  3479. this.rationalMed7 = removeRepeat(this.rationalMed7, "matid");
  3480. this.rationalMed8 = removeRepeat(this.rationalMed8, "matid");
  3481. this.rationalMed9 = removeRepeat(this.rationalMed9, "matid");
  3482. this.rationalMed10 = removeRepeat(this.rationalMed10, "matid");
  3483. },
  3484. // 获取合理用药信息 平台
  3485. async getRationalMedForPlat(id) {
  3486. this.rationalMed = [];
  3487. let children = this.$children.filter(item => {
  3488. return (
  3489. item.name == "中药处方" ||
  3490. item.name == "中药制剂" ||
  3491. item.name == "适宜技术处方"
  3492. );
  3493. });
  3494. let child = children[0];
  3495. const medicines = child.recipe_tabs[child.recipe_tabs_c].totalTableD || [];
  3496. const medicine = medicines.find(medicine => medicine.medid === id);
  3497. const ids = medicines.filter(medicine => medicine.name && medicine.medid !== id).map(medicine => medicine.medid);
  3498. let res = await getRationalMedForPlat({
  3499. matID: id,
  3500. // orgId: this.getuserinfo.organizationid
  3501. matIds: ids
  3502. });
  3503. if (res.code == 0 && res.message) {
  3504. res.data.reqID = id;
  3505. this.rationalMed.push(Object.assign(res.data, {__medicine__: medicine}));
  3506. // 去重
  3507. const removeRepeat = (arr, key) => {
  3508. let obj = {};
  3509. arr = arr.reduce((pre, next) => {
  3510. obj[next[key]] ? "" : (obj[next[key]] = true && pre.push(next));
  3511. return pre;
  3512. }, []);
  3513. return arr;
  3514. };
  3515. this.rationalMed = removeRepeat(this.rationalMed, "reqID");
  3516. this.rationalMed.forEach(item => {
  3517. item.showDose = item.showDose ? true : false;
  3518. if (item.matdosage) {
  3519. // 超剂量药品:
  3520. this.rationalMed1.push(item);
  3521. }
  3522. if (item.matsjj) {
  3523. // 慎忌禁用药:
  3524. this.rationalMed2.push(item);
  3525. }
  3526. if (item.matyfsjj) {
  3527. // 孕妇慎忌禁:
  3528. this.rationalMed3.push(item);
  3529. }
  3530. if (item.matysjj) {
  3531. // 服药饮食禁忌:
  3532. this.rationalMed4.push(item);
  3533. }
  3534. if (item.matdxsm) {
  3535. /// 药物毒性说明:
  3536. this.rationalMed5.push(item);
  3537. }
  3538. if (item.matbzjj) {
  3539. // 病证用药禁忌:
  3540. this.rationalMed6.push(item);
  3541. }
  3542. if (item.matsbf) {
  3543. // 18反
  3544. this.rationalMed7.push(item);
  3545. }
  3546. if (item.matsjw) {
  3547. // 十九畏:
  3548. this.rationalMed8.push(item);
  3549. }
  3550. if (item.matby) {
  3551. // 用药不宜:
  3552. this.rationalMed9.push(item);
  3553. }
  3554. if (item.matmaxdosage && item.matmindosage) {
  3555. try {
  3556. const dose = CC_Dosage2Basis(item.__medicine__);
  3557. if (dose < item.matmindosage || dose > item.matmaxdosage) item.showDose = true;
  3558. } catch (e) {}
  3559. this.rationalMed10.push(item);
  3560. }
  3561. });
  3562. // 去重
  3563. this.rationalMed1 = removeRepeat(this.rationalMed1, "matid");
  3564. this.rationalMed2 = removeRepeat(this.rationalMed2, "matid");
  3565. this.rationalMed3 = removeRepeat(this.rationalMed3, "matid");
  3566. this.rationalMed4 = removeRepeat(this.rationalMed4, "matid");
  3567. this.rationalMed5 = removeRepeat(this.rationalMed5, "matid");
  3568. this.rationalMed6 = removeRepeat(this.rationalMed6, "matid");
  3569. this.rationalMed7 = removeRepeat(this.rationalMed7, "matid");
  3570. this.rationalMed8 = removeRepeat(this.rationalMed8, "matid");
  3571. this.rationalMed9 = removeRepeat(this.rationalMed9, "matid");
  3572. this.rationalMed10 = removeRepeat(this.rationalMed10, "matid");
  3573. }
  3574. },
  3575. // 推导处方
  3576. async inferRecipe(type = 1, businesstype) {
  3577. if (!this.patiensMsg.maindiagnosis.disid) {
  3578. return;
  3579. }
  3580. // if (this.container_i == 1) return;
  3581. if (type != 4) {
  3582. // if (!this.patiensMsg.maindiagnosis.disid) {
  3583. // this.$message.warning('请先提交一条诊断信息');
  3584. // this.$router.replace({
  3585. // path: '/index/diagnosis'
  3586. // })
  3587. // return;
  3588. // }
  3589. }
  3590. if (type != 4 && businesstype == null) {
  3591. businesstype =
  3592. this.container_i == 0 ? "1" : this.container_i == 2 ? "3" : "1";
  3593. }
  3594. let params = {
  3595. businesstype: businesstype,
  3596. disid: this.patiensMsg.maindiagnosis.disid,
  3597. symid: this.patiensMsg.maindiagnosis.symptomid,
  3598. therapy: this.patiensMsg.maindiagnosis.treatment
  3599. };
  3600. const loading = this.$loading({
  3601. lock: true,
  3602. text: `正在获取推荐${ +businesstype === 2 ? '制剂' : '方剂' }数据`,
  3603. spinner: "el-icon-loading",
  3604. background: "rgba(0, 0, 0, 0.7)"
  3605. });
  3606. let res = await inferRecipe(params).catch(err => {
  3607. loading.close();
  3608. });
  3609. if (res.code == 0) {
  3610. loading.close();
  3611. let arr = [];
  3612. res.data.expList.forEach(item => {
  3613. item.showType = 1; // 专家经验
  3614. item.book = item.book ? item.book : "(暂无)";
  3615. });
  3616. res.data.schemes[0].pres.forEach(item => {
  3617. item.showType = 0; // 之前的推导出
  3618. item.book = item.book ? item.book : "(暂无)";
  3619. });
  3620. // this.inferRecipeId = res.data.schemes[0].preid
  3621. let arr2 = res.data.expList.concat(res.data.schemes[0].pres);
  3622. if (type == 4) {
  3623. try { this.contentTabs.find(tab => tab.businesstype === businesstype).color = arr2.length > 0 ? "red" : ""; } catch (e) {}
  3624. return;
  3625. } else if (+type === 1) {
  3626. for (const tab of this.contentTabs) { if (!tab.hide) tab.color = "" }
  3627. }
  3628. if (arr2.length > 0) {
  3629. this.tjRecipeId = arr2[0].preid || arr2[0].pid || arr2[0].acupreid;
  3630. } else {
  3631. let children = this.$children.filter(item => {
  3632. return (
  3633. item.name == "中药处方" ||
  3634. item.name == "中药制剂" ||
  3635. item.name == "适宜技术处方"
  3636. );
  3637. });
  3638. let child = children[0];
  3639. if (
  3640. !child.recipe_tabs[child.recipe_tabs_c].isPay ||
  3641. child.recipe_tabs[child.recipe_tabs_c].paystate == 0
  3642. ) {
  3643. // child.clearRecipe();
  3644. }
  3645. }
  3646. this.rRecomendR = arr2;
  3647. if (this.$route.query.type != "tuidao" && type == 1) return;
  3648. if (type === 3) {
  3649. try { if (this.contentTabs[this.container_i].id === '0' && this.isTuiDaoZy) return; } catch (e) {}
  3650. try { if (this.contentTabs[this.container_i].id === '1' && this.isTuiDaoZj) return; } catch (e) {}
  3651. try { if (this.contentTabs[this.container_i].id === '2' && this.isTuiDaoSuit) return; } catch (e) {}
  3652. }
  3653. if (this.rRecomendR.length == 0) return;
  3654. let children = this.$children.filter(item => {
  3655. return (
  3656. item.name == "中药处方" ||
  3657. item.name == "中药制剂" ||
  3658. item.name == "适宜技术处方"
  3659. );
  3660. });
  3661. let child = children[0];
  3662. let child2 = children[2];
  3663. if (
  3664. child.recipe_tabs[child.recipe_tabs_c].isPay ||
  3665. child.recipe_tabs[child.recipe_tabs_c].paystate == 1
  3666. ) {
  3667. // 已付费
  3668. child.addRecipeTba();
  3669. }
  3670. if (child2.isPay || child2.paystate == 1) {
  3671. // 已付费
  3672. this.$message.error("当前为已付费处方,暂不支持推导");
  3673. return;
  3674. }
  3675. setTimeout(() => {
  3676. if (
  3677. // this.$route.query.infer &&
  3678. // this.$route.query.infer == "true" &&
  3679. // && child.recipe_tabs[child.recipe_tabs_c].totalTableD.length == 1
  3680. this.container_i == 0
  3681. ) {
  3682. // console.log(arr, 'res.data');
  3683. this.addRecipeFrom("4");
  3684. if (arr2[0].showType == 1) {
  3685. // 专家经验
  3686. this.turnRecipe3(arr2[0]);
  3687. } else {
  3688. // 推导处方
  3689. this.getPreDetal(arr2[0].preid);
  3690. }
  3691. if (type == 3) {
  3692. this.isTuiDaoZy = true;
  3693. }
  3694. } else if (this.container_i == 2) {
  3695. // && child2.tableData4.length == 1
  3696. let info
  3697. if (arr2.length > 0) {
  3698. this.setDrugsInfo(arr2[0].items);
  3699. this.setRecipeId(arr2[0].acupreid);
  3700. info = arr2[0]
  3701. }
  3702. this.addRecipeFrom("4", 2);
  3703. this.suitChnageOrJoin('', info);
  3704. if (type == 3) {
  3705. this.isTuiDaoSuit = true;
  3706. }
  3707. } else if (this.container_i == 1) {
  3708. if (arr2.length) {
  3709. const info = arr2[0];
  3710. let drugs = Array.isArray(info) ? info : info && typeof info === 'object' ? [info] : [];
  3711. this.setDrugsInfo(drugs.map(item=> {
  3712. return {
  3713. medid: item.drugid,
  3714. name: item.drugname,
  3715. }
  3716. }));
  3717. this.setRecipeId('');
  3718. this.changeAndJoinZJ();
  3719. if (type == 3) this.isTuiDaoZj = true;
  3720. }
  3721. }
  3722. }, 500);
  3723. }
  3724. },
  3725. // 新增处方来源
  3726. async addRecipeFrom(type, isSuit = "") {
  3727. if (type != 3) {
  3728. let children = this.$children.filter(item => {
  3729. return (
  3730. item.name == "中药处方" ||
  3731. item.name == "中药制剂" ||
  3732. item.name == "适宜技术处方"
  3733. );
  3734. });
  3735. let child = children[0];
  3736. let child2 = children[2];
  3737. // debugger;
  3738. child.recipe_tabs[child.recipe_tabs_c].isMyMade = false;
  3739. if (isSuit == 2) {
  3740. child2.isMyMade = false;
  3741. }
  3742. }
  3743. let res = await addRecipeFrom({
  3744. type: type
  3745. });
  3746. },
  3747. // 获取参考医案详情
  3748. async getDCaseDetail(id) {
  3749. let res = await getDCaseDetail({
  3750. verId: id
  3751. });
  3752. if (res.code == 0) {
  3753. this.showTestCase = true;
  3754. res.data.dialist.forEach(item => {
  3755. item.checktime = item.checktime.split(" ");
  3756. item.diatimes = numberToUpperCase(item.diatimes - 1);
  3757. });
  3758. this.testCaseInfo = res.data;
  3759. }
  3760. },
  3761. // 协定方转方 判断
  3762. async changeBasisPre(id) {
  3763. let params = {
  3764. basisPreId: id
  3765. };
  3766. let res = await changeBasisPre(params);
  3767. if (res.ResultCode == 0) {
  3768. this.agreeAssignToTCM(this.agreeInfo);
  3769. }
  3770. },
  3771. // 专家经验转方判断
  3772. async changeExpre(info) {
  3773. let params = {
  3774. basisPreId: info.pid
  3775. };
  3776. let res = await changeExpre(params);
  3777. if (res.ResultCode == 0) {
  3778. // info.preStiDetails = info.prescriptionDetailVos
  3779. this.agreeAssignToTCM(info);
  3780. }
  3781. },
  3782. // 名家验案和 方剂转方/合方
  3783. async changeAndJoin(type = 1) {
  3784. // type == 1 转方 type ==2 合方
  3785. let children = this.$children.filter(item => {
  3786. return (
  3787. item.name == "中药处方" ||
  3788. item.name == "中药制剂" ||
  3789. item.name == "适宜技术处方"
  3790. );
  3791. });
  3792. let child = children[0];
  3793. child.recipe_tabs[child.recipe_tabs_c].disable = false;
  3794. let drugs = this.getDrugInfo;
  3795. const recipeId = +type === 1 ? this.getRecipeId : "";
  3796. this.setRecipeId('');
  3797. this.tjRecipeId = recipeId;
  3798. // let type1 = 0
  3799. let type1 = child.recipe_tabs[child.recipe_tabs_c].radio.split("@")[1];
  3800. let ids = [];
  3801. drugs.forEach(item => {
  3802. item.oldDose = CC_Dosage2Basis(item);
  3803. let idDose = item.matid + "&" + item.oldDose + "&" + (item.useage || "");
  3804. ids.push(idDose);
  3805. });
  3806. if (this.container_i == 1) return;
  3807. const loading = this.$loading({
  3808. lock: true,
  3809. text: "正在处理药品数据,请稍等",
  3810. spinner: "el-icon-loading",
  3811. background: "rgba(0, 0, 0, 0.7)"
  3812. });
  3813. let res = await changeAndJoin({
  3814. pharmacyid: child.recipe_tabs[child.recipe_tabs_c].pharmacyID,
  3815. type: type1, // child.recipe_tabs[child.recipe_tabs_c].radio,
  3816. drugIds: ids
  3817. }).catch(err => {
  3818. loading.close();
  3819. });
  3820. if (this.container_i == 0) {
  3821. // 中药处方
  3822. if (res.ResultCode == 0) {
  3823. const getUsage = (function (list = [], value = '') {
  3824. if (!Array.isArray(list) || list.length === 0) return void 0;
  3825. const option = value && list.find(item => item.value === value || item.key == value);
  3826. return option ? option.key : list[0].key;
  3827. }).bind(null, child.usageList);
  3828. let noDrugs = []; // 查找不到的药品
  3829. let hasDrugs = []; // 查找的到的药品
  3830. res.Data.forEach((item, index) => {
  3831. drugs.forEach((item1, index1) => {
  3832. if (item == item1.matid) {
  3833. // debugger
  3834. item1.color = "red";
  3835. let obj = {
  3836. drugList: [],
  3837. page: 1,
  3838. loadMore: true,
  3839. usageList: [],
  3840. seqn: item1.seqn,
  3841. ypmc: item1.matname,
  3842. gg: "",
  3843. dw: item1.unit,
  3844. lsjg: item1.price ? item1.price : 0,
  3845. price: item1.price ? item1.price : 0,
  3846. kc: 0,
  3847. cdmc: "无",
  3848. pid: item1.matid,
  3849. color: "red",
  3850. dose: item1.dose,
  3851. usage: item1.useage || item1.usagestr, // child.usegeList[0].key,
  3852. showSearch: false,
  3853. matid: item1.matid,
  3854. key: "",
  3855. search_i: index
  3856. };
  3857. obj.oldDose = item1.oldDose;
  3858. /* 修正 */ obj.usage = obj.useage = getUsage(obj.usage);
  3859. noDrugs.push(obj);
  3860. // noDrugs.push(item1.matname)
  3861. }
  3862. if (item instanceof Object && item.oldYpid == item1.matid) {
  3863. item.oldDose = item.placeholderdose || item1.oldDose;
  3864. item.ggnum = +item.ggnum || 1;
  3865. item.xbzxs = +item.xbzxs || '34'.includes(item.zylx) ? item.ggnum : 1;
  3866. if (item.kc > 0) hasDrugs.push(item);
  3867. else {
  3868. item.color = 'red';
  3869. noDrugs.push(item);
  3870. }
  3871. }
  3872. });
  3873. });
  3874. hasDrugs = hasDrugs.concat(noDrugs);
  3875. if (hasDrugs.length > 0 && type == 1) {
  3876. child.recipe_tabs[child.recipe_tabs_c].totalTableD = [];
  3877. // console.log(hasDrugs, 'has');
  3878. // 赋值给表格
  3879. hasDrugs.forEach((item, index) => {
  3880. let obj1 = {
  3881. drugList: [],
  3882. page: 1,
  3883. loadMore: true,
  3884. usageList: [],
  3885. id: item.seqn,
  3886. name: item.ypmc,
  3887. spec: item.gg, // 规格
  3888. dose: item.dose, // 剂量
  3889. unit: item.dw, // 单位
  3890. // usage: item.usagestr, // 用法
  3891. usage: item.useage || item.usagestr, // child.usegeList[0].key,
  3892. // price: item.lsjg,
  3893. price: item.price ? item.price : 0,
  3894. total: item.price * item.dose,
  3895. inventory: item.kc, // 库存
  3896. key: "",
  3897. search_i: index,
  3898. medid: item.pid, // 药品id
  3899. originname: item.cdmc, // 产地名称
  3900. showSearch: false,
  3901. color: item.color ? item.color : "#000"
  3902. };
  3903. /* 修正 */ obj1.usage = obj1.useage = getUsage(obj1.usage);
  3904. obj1.oldDose = +item.oldDose || '';
  3905. obj1.ggnum = +item.ggnum || 1;
  3906. obj1.xbzxs = +item.xbzxs || '34'.includes(item.zylx) ? obj1.ggnum : 1;
  3907. child.recipe_tabs[child.recipe_tabs_c].totalTableD.push(obj1);
  3908. child.getSelectType("中药药品用法", index);
  3909. });
  3910. child.recipe_tabs[child.recipe_tabs_c].totalTableD.push({
  3911. drugList: [],
  3912. page: 1,
  3913. loadMore: true,
  3914. usageList: [],
  3915. showSearch: false,
  3916. search_i: 0,
  3917. id: 1,
  3918. key: ""
  3919. });
  3920. child.recipe_tabs[child.recipe_tabs_c].totalTableD.filter(
  3921. (item3, index3) => {
  3922. if (item3.medid) {
  3923. this.rationalMed = [];
  3924. this.resetRationalMed();
  3925. // if (item3.color != '#000') {
  3926. // this.getRationalMedForPlat(item3.medid)
  3927. // } else {
  3928. // this.getRationalMed(item3.medid)
  3929. // }
  3930. if (item3.medid.indexOf("-") != -1) {
  3931. this.getRationalMed(item3.medid);
  3932. } else {
  3933. this.getRationalMedForPlat(item3.medid);
  3934. }
  3935. }
  3936. return (item3.id = index3 + 1);
  3937. }
  3938. );
  3939. child.recipe_tabs[
  3940. child.recipe_tabs_c
  3941. ].tableData = child.recipe_tabs[
  3942. child.recipe_tabs_c
  3943. ].totalTableD.filter(item2 => {
  3944. return Number(item2.id) % 2 != 0;
  3945. });
  3946. child.recipe_tabs[
  3947. child.recipe_tabs_c
  3948. ].tableData1 = child.recipe_tabs[
  3949. child.recipe_tabs_c
  3950. ].totalTableD.filter(item2 => {
  3951. return Number(item2.id) % 2 == 0;
  3952. });
  3953. } else if (hasDrugs.length > 0 && type == 2) {
  3954. child.recipe_tabs[
  3955. child.recipe_tabs_c
  3956. ].totalTableD = child.recipe_tabs[
  3957. child.recipe_tabs_c
  3958. ].totalTableD.filter(item => {
  3959. return item.name;
  3960. });
  3961. // console.log(hasDrugs, "has");
  3962. // 赋值给表格
  3963. hasDrugs.forEach((item, index) => {
  3964. let obj1 = {
  3965. color: item.color ? item.color : "#000",
  3966. drugList: [],
  3967. page: 1,
  3968. loadMore: true,
  3969. usageList: [],
  3970. id: item.seqn,
  3971. name: item.ypmc,
  3972. spec: item.gg, // 规格
  3973. dose: item.dose, // 剂量
  3974. unit: item.dw, // 单位
  3975. // usage: item.usagestr, // 用法
  3976. usage: item.useage || item.usagestr, // child.usegeList[0].key,
  3977. // price: item.lsjg,
  3978. price: item.price ? item.price : 0,
  3979. total: item.price * item.dose,
  3980. inventory: item.kc, // 库存
  3981. key: "",
  3982. search_i: index,
  3983. medid: item.pid, // 药品id
  3984. originname: item.cdmc, // 产地名称
  3985. showSearch: false
  3986. };
  3987. /* 修正 */ obj1.usage = obj1.useage = getUsage(obj1.usage);
  3988. obj1.oldDose = +item.oldDose || '';
  3989. obj1.ggnum = +item.ggnum || 1;
  3990. obj1.xbzxs = +item.xbzxs || '34'.includes(item.zylx) ? obj1.ggnum : 1;
  3991. child.recipe_tabs[child.recipe_tabs_c].totalTableD.push(obj1);
  3992. child.getSelectType("中药药品用法", index);
  3993. });
  3994. child.recipe_tabs[child.recipe_tabs_c].totalTableD.push({
  3995. drugList: [],
  3996. page: 1,
  3997. loadMore: true,
  3998. usageList: [],
  3999. showSearch: false,
  4000. search_i: 0,
  4001. id: 1,
  4002. key: ""
  4003. });
  4004. child.recipe_tabs[
  4005. child.recipe_tabs_c
  4006. ].totalTableD = this.removeRepeat(
  4007. child.recipe_tabs[child.recipe_tabs_c].totalTableD,
  4008. "medid"
  4009. );
  4010. child.recipe_tabs[child.recipe_tabs_c].totalTableD.filter(
  4011. (item3, index3) => {
  4012. return (item3.id = index3 + 1);
  4013. }
  4014. );
  4015. child.recipe_tabs[
  4016. child.recipe_tabs_c
  4017. ].tableData = child.recipe_tabs[
  4018. child.recipe_tabs_c
  4019. ].totalTableD.filter(item2 => {
  4020. if (item2.medid) {
  4021. // if (item2.color != '#000') {
  4022. // this.getRationalMedForPlat(item2.medid)
  4023. // } else {
  4024. // this.getRationalMed(item2.medid)
  4025. // }
  4026. if (item2.medid.indexOf("-") != -1) {
  4027. this.getRationalMed(item2.medid);
  4028. } else {
  4029. this.getRationalMedForPlat(item2.medid);
  4030. }
  4031. }
  4032. return Number(item2.id) % 2 != 0;
  4033. });
  4034. child.recipe_tabs[
  4035. child.recipe_tabs_c
  4036. ].tableData1 = child.recipe_tabs[
  4037. child.recipe_tabs_c
  4038. ].totalTableD.filter(item2 => {
  4039. return Number(item2.id) % 2 == 0;
  4040. });
  4041. }
  4042. this.showTestCase = false;
  4043. this.showDialog = false;
  4044. this.showPresc = false;
  4045. this.showUnifyPresc = false;
  4046. loading.close();
  4047. try { child.recipe_tabs[child.recipe_tabs_c].id = recipeId; } catch (e) {}
  4048. }
  4049. } else if (this.container_i == 2) {
  4050. // 适宜技术处方
  4051. }
  4052. },
  4053. async changeAndJoinZJ(type = 1) {
  4054. const child = this.$children.find(item => item.name === '中药制剂');
  4055. const drugs = this.getDrugInfo;
  4056. const recipeId = +type === 1 ? this.getRecipeId : '';
  4057. this.setRecipeId('');
  4058. this.tjRecipeId = recipeId;
  4059. const [pharmacyID, val] = child.recipe.radio.split('@');
  4060. const drugIds = drugs.filter(item => item.name).map(item => `${item.medid}&${item.doce || ''}&${item.usage || ''}`);
  4061. const loading = this.$loading({
  4062. lock: true,
  4063. text: '正在处理药品数据,请稍等',
  4064. spinner: 'el-icon-loading',
  4065. background: 'rgba(0, 0, 0, 0.7)',
  4066. });
  4067. try {
  4068. const data = await changeAndJoin({ pharmacyid: pharmacyID, type: val, drugIds }).then(res => {
  4069. if (+res.ResultCode === 0) return res.Data
  4070. else throw res
  4071. });
  4072. const medicines = data.map(item => {
  4073. if (typeof item === 'string') {
  4074. const item1 = drugs.find(item1 => item1.medid === item);
  4075. return item1 ? { ...item1, color: 'red' } : void 0;
  4076. } else if (item && typeof item === 'object') {
  4077. const obj = {
  4078. color: item.kc == 0 ? "red" : "#000",
  4079. name: item.ypmc,
  4080. spec: item.gg, // 规格
  4081. timesQuan: item.timesQuan || item.ycjl || "", // 次用量
  4082. timesUnit: item.timesUnit || item.ycjldw || "", // 次用量单位
  4083. dose: item.dose, // 剂量 数量
  4084. doseUnit: item.doseUnit || item.jldw || '', // 数量单位
  4085. unit: item.dw, // 单位
  4086. // unit: item.bzdw, // 单位
  4087. // usage: item.usagestr, // 用法
  4088. usage: item.usage || "",
  4089. // price: item.lsjg,
  4090. price: item.price,
  4091. total: 0,
  4092. inventory: item.kc, // 库存
  4093. key: "",
  4094. search_i: 0,
  4095. medid: item.pid, // 药品id
  4096. showSearch: false,
  4097. originname: item.cdmc // 产地名称
  4098. };
  4099. return obj;
  4100. }
  4101. }).filter(Boolean);
  4102. if (type === 1) {
  4103. medicines.push({
  4104. search_i: 0,
  4105. key: "",
  4106. page: 1,
  4107. drugList: [],
  4108. usageList: [],
  4109. numList: [],
  4110. timeList: [],
  4111. loadMore: true
  4112. });
  4113. child.tableData3 = medicines;
  4114. }
  4115. } catch (e) {
  4116. console.log(e);
  4117. }
  4118. loading.close();
  4119. },
  4120. // 跟据就诊记录id 获取就诊记录详细信息
  4121. async getSeeDByID(id) {
  4122. let params = {
  4123. recId: id
  4124. };
  4125. const loading = this.$loading({
  4126. lock: true,
  4127. text: "正在查找数据",
  4128. spinner: "el-icon-loading",
  4129. background: "rgba(0, 0, 0, 0.7)"
  4130. });
  4131. let res = await getSeeDByID(params).catch(err => {
  4132. loading.close();
  4133. });
  4134. if (res.ResultCode == 0) {
  4135. loading.close();
  4136. this.recordInfo = res.Data;
  4137. this.showRecord = true;
  4138. }
  4139. },
  4140. // 获取中药详情
  4141. async getMedDetail(id) {
  4142. let res = await getMedDetail({
  4143. matid: id
  4144. });
  4145. if (res.code == 0) {
  4146. res.data.matphoto = res.data.matphoto.split(",");
  4147. // res.data.matphoto = res.data.matphoto.split(',')
  4148. res.data.xiangsi = res.data.relativedata.filter(item => {
  4149. return item.relativetype == 1;
  4150. });
  4151. res.data.changyong = res.data.relativedata.filter(item => {
  4152. return item.relativetype == 2;
  4153. });
  4154. this.drugInfo = res.data;
  4155. this.showDrug = true;
  4156. }
  4157. },
  4158. // 获取药品详细信息并展示
  4159. async getDrugDetail(id) {
  4160. let res = await getDrugDetail({
  4161. stiDrugId: id
  4162. });
  4163. if (res.ResultCode == 0) {
  4164. res.Data.matphoto = res.Data.matphoto.split(",");
  4165. // res.data.matphoto = res.data.matphoto.split(',')
  4166. res.Data.xiangsi = res.Data.relativedata.filter(item => {
  4167. return item.relativetype == 1;
  4168. });
  4169. res.Data.changyong = res.Data.relativedata.filter(item => {
  4170. return item.relativetype == 2;
  4171. });
  4172. this.drugInfo = res.Data;
  4173. this.showDrug = true;
  4174. }
  4175. },
  4176. // 获取方剂详情
  4177. async getPreDetal(id, type = "") {
  4178. if (id instanceof Object) {
  4179. // 适宜技术处方
  4180. this.preInfo = id;
  4181. this.setDrugsInfo(id.items);
  4182. this.setRecipeId(id.acupreid);
  4183. this.showDialog = true;
  4184. return;
  4185. }
  4186. let res = await getPreDetal({
  4187. preid: id
  4188. });
  4189. if (res.code === 0) {
  4190. this.preInfo = res.data;
  4191. /*if (type == 1 || type == "") {
  4192. this.tjRecipeId = id;
  4193. }*/
  4194. this.setDrugsInfo(res.data.items);
  4195. this.setRecipeId(id);
  4196. if (!type || type == 2) {
  4197. // console.log(res.data, 'RES.datas');
  4198. if (type == "") {
  4199. this.changeAndJoin(1);
  4200. } else {
  4201. this.changeAndJoin(2);
  4202. }
  4203. } else {
  4204. this.showDialog = true;
  4205. }
  4206. }
  4207. },
  4208. // 获取协定方详细信息
  4209. async getAccordDetail(id) {
  4210. addRecipeFrom({ type: 2 }).catch();
  4211. let res = await getAccordDetail({
  4212. pid: id
  4213. });
  4214. if (res.ResultCode == 0) {
  4215. this.agreeInfo = res.Data;
  4216. this.showAgree = true;
  4217. }
  4218. },
  4219. // 获取专家经验详细信息
  4220. async getExperinceDetail(id) {
  4221. let res = await getExperinceDetail({
  4222. pid: id
  4223. });
  4224. if (res.ResultCode == 0) {
  4225. this.tjRecipeId = id;
  4226. this.exprInfo = res.Data;
  4227. this.showExpr = true;
  4228. }
  4229. },
  4230. fmatby(val, mat) {
  4231. return mat + "不宜与" + val + "同用" + ",";
  4232. let list = val.split(",");
  4233. let str = "";
  4234. list.forEach(item => {
  4235. str += mat + "不宜与" + item + "同用" + ",";
  4236. });
  4237. return str;
  4238. },
  4239. fsjw(val, mat) {
  4240. return mat + "畏" + val + ",";
  4241. let list = val.split(",");
  4242. let str = "";
  4243. list.forEach(item => {
  4244. str += mat + "畏" + item + ",";
  4245. });
  4246. return str;
  4247. },
  4248. fsbf(val, mat) {
  4249. return '<span style="color:red;">' + mat + "</span>" + "反" + val + ",";
  4250. let list = val.split(",");
  4251. let str = "";
  4252. list.forEach(item => {
  4253. str += mat + "反" + item + ",";
  4254. });
  4255. return str;
  4256. },
  4257. // 去重
  4258. removeRepeat(arr, key) {
  4259. let obj = {};
  4260. arr = arr.reduce((pre, next) => {
  4261. obj[next[key]] ? "" : (obj[next[key]] = true && pre.push(next));
  4262. return pre;
  4263. }, []);
  4264. return arr;
  4265. },
  4266. countDose() {
  4267. let show = false;
  4268. this.rationalMed10.forEach(item => {
  4269. if (item.showDose) {
  4270. show = true;
  4271. }
  4272. });
  4273. this.$forceUpdate();
  4274. this.raDoseShow = show;
  4275. },
  4276. getEditPreNo() {
  4277. return this.$route.query && this.$route.query.recipeType === "edit" ? this.$route.query.recipeID : this.getPreNo;
  4278. },
  4279. ...mapMutations({
  4280. setRecipeId: "drug/setRecipeId",
  4281. setDrugsInfo: "drug/setDrugsInfo"
  4282. })
  4283. },
  4284. computed: {
  4285. // 显示协定方按钮
  4286. showPrec() {
  4287. try { return this.contentTabs[this.container_i].id === '0' } catch (e) { return true }
  4288. },
  4289. // 三种药房合计金额
  4290. totalPrice() {
  4291. return (this.contentTabs[0].check
  4292. ? Number(this.chineseM.allMoney)
  4293. : 0 + this.contentTabs[1].check
  4294. ? Number(this.medicineC.allMoney)
  4295. : 0 + this.contentTabs[2].check
  4296. ? Number(this.suitScience.allMoney)
  4297. : 0
  4298. ).toFixed(2);
  4299. },
  4300. ...mapGetters(["getPatiensInfo", "getuserinfo", "getDrugInfo", "getRecipeId", "getIsSee", "getPreNo"])
  4301. },
  4302. filters: {
  4303. ftsjj(value) {
  4304. if (value == 1) {
  4305. return "慎用";
  4306. }
  4307. if (value == 2) {
  4308. return "忌用";
  4309. }
  4310. if (value == 3) {
  4311. return "禁用";
  4312. }
  4313. },
  4314. fyfsjj(value) {
  4315. if (value == 1) {
  4316. return "孕妇慎用";
  4317. }
  4318. if (value == 2) {
  4319. return "孕妇忌用";
  4320. }
  4321. if (value == 3) {
  4322. return "孕妇禁用";
  4323. }
  4324. }
  4325. }
  4326. };
  4327. </script>
  4328. <style lang="scss" scoped>
  4329. @import "../../style/common.scss";
  4330. @import "../../style/media/diagnosis/prescribing-common.scss";
  4331. .prescribing {
  4332. height: 100%;
  4333. // background: red;
  4334. .pre-title {
  4335. margin-bottom: 10px;
  4336. .title-container {
  4337. span {
  4338. width: 3px;
  4339. height: 14px;
  4340. background: #5386f6;
  4341. border-radius: 1px;
  4342. display: inline-block;
  4343. }
  4344. div {
  4345. font-size: 18px;
  4346. font-family: PingFang SC;
  4347. font-weight: 400;
  4348. color: #5386f6;
  4349. margin-left: 9px;
  4350. }
  4351. }
  4352. .patiens-msg {
  4353. font-size: 14px;
  4354. font-family: PingFang SC;
  4355. font-weight: 400;
  4356. color: #333333;
  4357. .p {
  4358. margin-bottom: 5px;
  4359. cursor: default;
  4360. .patiens-name {
  4361. color: #5386f6;
  4362. font-weight: bold;
  4363. font-size: 16px;
  4364. }
  4365. .patiens-desc {
  4366. display: inline-block;
  4367. .matname {
  4368. color: #5386f6;
  4369. }
  4370. }
  4371. .patiens-cate {
  4372. font-weight: bold;
  4373. }
  4374. }
  4375. }
  4376. }
  4377. .pre-left {
  4378. height: 100%;
  4379. width: 200px;
  4380. padding: 10px 12px;
  4381. background: #fff;
  4382. box-sizing: border-box;
  4383. margin-right: 5px;
  4384. overflow-y: auto;
  4385. height: 470px;
  4386. .patiens-msg {
  4387. font-size: 14px;
  4388. font-family: PingFang SC;
  4389. font-weight: 400;
  4390. color: #333333;
  4391. h4 {
  4392. font-size: 16px;
  4393. font-family: PingFang SC;
  4394. font-weight: 500;
  4395. color: #333333;
  4396. margin-bottom: 5px;
  4397. }
  4398. p {
  4399. span {
  4400. display: inline-block;
  4401. width: 70px;
  4402. text-align: right;
  4403. }
  4404. margin-bottom: 5px;
  4405. }
  4406. }
  4407. .pre-steps {
  4408. .find-more {
  4409. cursor: pointer;
  4410. img {
  4411. width: 12px;
  4412. }
  4413. span {
  4414. font-size: 12px;
  4415. font-family: PingFang SC;
  4416. font-weight: 400;
  4417. color: #ffae45;
  4418. margin-left: 7px;
  4419. }
  4420. }
  4421. .icon {
  4422. width: 22px;
  4423. }
  4424. .step-body:hover {
  4425. background: #d8d8d8;
  4426. }
  4427. .step-name {
  4428. font-size: 14px;
  4429. font-family: PingFang SC;
  4430. font-weight: 400;
  4431. color: #333333;
  4432. cursor: pointer;
  4433. }
  4434. }
  4435. }
  4436. .pre-right {
  4437. overflow: auto;
  4438. height: 100%;
  4439. margin-left: 5px;
  4440. width: 200px;
  4441. padding: 10px 10px;
  4442. background: #fff;
  4443. box-sizing: border-box;
  4444. overflow-y: auto;
  4445. height: 470px;
  4446. .tuidao {
  4447. cursor: pointer;
  4448. width: 70px;
  4449. height: 26px;
  4450. background: #ffae45;
  4451. border-radius: 2px;
  4452. font-size: 14px;
  4453. font-family: PingFang SC;
  4454. font-weight: 400;
  4455. color: #ffffff;
  4456. }
  4457. }
  4458. // 协定方
  4459. .agreement {
  4460. .agree-tab {
  4461. div {
  4462. width: 66px;
  4463. height: 24px;
  4464. background: rgba($color: #5386f6, $alpha: 0.1);
  4465. font-size: 13px;
  4466. font-family: PingFang SC;
  4467. font-weight: 400;
  4468. color: #333333;
  4469. cursor: pointer;
  4470. }
  4471. .agree-active {
  4472. background: #5386f6;
  4473. color: #fff;
  4474. }
  4475. }
  4476. .collapse {
  4477. border: 1px solid #ebeef5;
  4478. // padding: 0 0 0 10px;
  4479. }
  4480. .collapse-item {
  4481. // margin-bottom: 10px;
  4482. padding: 13px;
  4483. border-bottom: 1px dashed #ebeef5;
  4484. .med-name {
  4485. // width: 70px;
  4486. flex: 1;
  4487. overflow: hidden;
  4488. text-overflow: ellipsis;
  4489. white-space: nowrap;
  4490. font-size: 14px;
  4491. font-family: PingFang SC;
  4492. font-weight: 400;
  4493. color: #333333;
  4494. cursor: pointer;
  4495. }
  4496. .med-name:hover {
  4497. background: #d8d8d8;
  4498. }
  4499. .med-btns {
  4500. margin-left: 10px;
  4501. div {
  4502. width: 34px;
  4503. height: 20px;
  4504. background: #5386f6;
  4505. border-radius: 2px;
  4506. color: #fff;
  4507. font-size: 12px;
  4508. font-family: PingFang SC;
  4509. font-weight: 400;
  4510. cursor: pointer;
  4511. color: #ffffff;
  4512. }
  4513. .bg-yellow {
  4514. background: #ffae45;
  4515. margin-left: 10px;
  4516. }
  4517. }
  4518. }
  4519. .collapse-more {
  4520. // margin-top: 10px;
  4521. img {
  4522. width: 26px;
  4523. }
  4524. }
  4525. .basis {
  4526. border: 1px solid #ebeef5;
  4527. .basis-top-search {
  4528. padding: 9px 7px 9px 11px;
  4529. border-bottom: 1px dashed #eaeaea;
  4530. .search-btn {
  4531. width: 37px;
  4532. height: 28px;
  4533. background: #ffb55f;
  4534. border-radius: 0 2px 2px 0;
  4535. cursor: pointer;
  4536. font-size: 12px;
  4537. font-family: Source Han Sans CN;
  4538. font-weight: 400;
  4539. color: #ffffff;
  4540. }
  4541. }
  4542. }
  4543. }
  4544. .pre-center {
  4545. display: flex;
  4546. flex-direction: column;
  4547. flex: 1;
  4548. padding: 5px 5px;
  4549. background: #fff;
  4550. box-sizing: border-box;
  4551. overflow: hidden;
  4552. > div { flex: none; }
  4553. > div.center-table { flex: auto; }
  4554. .center-tab {
  4555. div {
  4556. cursor: default;
  4557. width: 146px;
  4558. height: 26px;
  4559. background: rgba($color: #5386f6, $alpha: 0.1);
  4560. font-size: 16px;
  4561. font-family: PingFang SC;
  4562. font-weight: 400;
  4563. color: #666666;
  4564. margin-right: 2px;
  4565. span {
  4566. margin-right: 9px;
  4567. }
  4568. }
  4569. .active {
  4570. background: #5386f6;
  4571. color: #fff;
  4572. }
  4573. .checked {
  4574. img {
  4575. width: 16px;
  4576. margin-top: 5px;
  4577. }
  4578. }
  4579. }
  4580. .header-total {
  4581. font-size: 12px;
  4582. font-family: PingFang SC;
  4583. font-weight: 500;
  4584. color: #333333;
  4585. div {
  4586. margin-left: 20px;
  4587. }
  4588. span {
  4589. color: #ff3a3a;
  4590. }
  4591. }
  4592. .center-table {
  4593. border: 2px solid #dedede;
  4594. padding: 0px 0 0;
  4595. // min-height: 680px;
  4596. // position: relative;
  4597. .table-header {
  4598. padding-bottom: 0px;
  4599. border-bottom: 2px solid #dedede;
  4600. .table-label {
  4601. .label-item {
  4602. cursor: pointer;
  4603. width: 134px;
  4604. border-right: 2px solid #eaeaea;
  4605. div {
  4606. color: #666;
  4607. transform: rotate(45deg);
  4608. font-size: 28px;
  4609. margin-left: 12px;
  4610. margin-top: 1px;
  4611. }
  4612. }
  4613. span {
  4614. font-size: 14px;
  4615. font-family: PingFang SC;
  4616. font-weight: 400;
  4617. color: #666666;
  4618. }
  4619. .l_active {
  4620. color: #5386f6;
  4621. }
  4622. }
  4623. }
  4624. .add-presc {
  4625. width: 70px;
  4626. height: 26px;
  4627. background: #ffae45;
  4628. border-radius: 4px;
  4629. font-size: 12px;
  4630. font-family: PingFang SC;
  4631. font-weight: 400;
  4632. color: #ffffff;
  4633. cursor: pointer;
  4634. margin-right: 20px;
  4635. }
  4636. .table-container {
  4637. padding: 37px 10px;
  4638. .t-con-header {
  4639. margin-bottom: 20px;
  4640. .t-con-radio {
  4641. flex: 1;
  4642. }
  4643. .t-radio-title {
  4644. width: 82px;
  4645. font-size: 16px;
  4646. font-family: PingFang SC;
  4647. font-weight: 400;
  4648. color: #333333;
  4649. }
  4650. .t-radio-group {
  4651. flex: 1;
  4652. }
  4653. .add-presc1 {
  4654. width: 84px;
  4655. height: 34px;
  4656. background: #ffae45;
  4657. border-radius: 4px;
  4658. font-size: 14px;
  4659. font-family: PingFang SC;
  4660. font-weight: bold;
  4661. color: #ffffff;
  4662. }
  4663. }
  4664. }
  4665. .table-show {
  4666. width: 100%;
  4667. // background: #5386F6;
  4668. // overflow: hidden;
  4669. .table-left-body {
  4670. width: 49.5%;
  4671. position: relative;
  4672. perspective: 100px;
  4673. padding-bottom: 53px;
  4674. }
  4675. .table-left {
  4676. width: 100%;
  4677. overflow-y: auto;
  4678. border: 1px solid #dedede;
  4679. box-sizing: border-box;
  4680. .table-l-hader {
  4681. white-space: nowrap;
  4682. div {
  4683. display: inline-block;
  4684. // padding: 15px 10px;
  4685. background: #f3fffb;
  4686. text-align: center;
  4687. height: 48px;
  4688. line-height: 48px;
  4689. border: 1px solid #dedede;
  4690. border-bottom: 0 !important;
  4691. // border-top: 0 !important;
  4692. }
  4693. .med-name {
  4694. margin-left: 50px;
  4695. }
  4696. .kucun {
  4697. padding-right: 120px;
  4698. }
  4699. .fixed-r {
  4700. position: fixed;
  4701. right: 0;
  4702. }
  4703. .fixed-left {
  4704. position: fixed;
  4705. left: 0;
  4706. }
  4707. }
  4708. .table-l-item {
  4709. white-space: nowrap;
  4710. .bg-green {
  4711. .div1 {
  4712. background: #f3fffb;
  4713. border: 1px solid #dedede;
  4714. }
  4715. }
  4716. .div1 {
  4717. display: inline-block;
  4718. // padding: 15px 10px;
  4719. background: #ffffff;
  4720. text-align: center;
  4721. height: 53px;
  4722. line-height: 53px;
  4723. border: 1px solid #dedede;
  4724. z-index: 9999;
  4725. border-top: 0 !important;
  4726. }
  4727. .med-name {
  4728. margin-left: 50px;
  4729. }
  4730. .kucun {
  4731. padding-right: 120px;
  4732. border-right: 1px solid #dedede;
  4733. }
  4734. .fixed-r {
  4735. position: fixed;
  4736. right: 0;
  4737. }
  4738. .fixed-left {
  4739. position: fixed;
  4740. left: 0;
  4741. // border-left: 1px solid #DEDEDE;
  4742. }
  4743. .no-data {
  4744. width: 100%;
  4745. box-sizing: border-box;
  4746. // border-top: 1px solid #DEDEDE;
  4747. position: relative;
  4748. left: 0;
  4749. right: 0;
  4750. bottom: 0px;
  4751. // float: left;
  4752. }
  4753. }
  4754. }
  4755. }
  4756. .operate {
  4757. width: 100%;
  4758. height: 100%;
  4759. display: flex;
  4760. align-items: center;
  4761. justify-content: space-around;
  4762. img {
  4763. width: 16px;
  4764. }
  4765. }
  4766. .bottom-input {
  4767. background: #fff;
  4768. padding: 12.5px 30px 12.5px 52px;
  4769. position: relative;
  4770. // z-index: 999;
  4771. // perspective: 100px;
  4772. .div {
  4773. width: 154px;
  4774. }
  4775. .table-choose {
  4776. z-index: 9999;
  4777. width: 332px;
  4778. height: 221px;
  4779. background: #ffffff;
  4780. border: 2px solid #d8d8d8;
  4781. position: relative;
  4782. top: 2px;
  4783. left: -48px;
  4784. overflow: auto;
  4785. .table-choose-h {
  4786. background: #f3fffb;
  4787. div {
  4788. height: 36px;
  4789. width: 73px;
  4790. }
  4791. div:first-child {
  4792. width: 115px;
  4793. }
  4794. }
  4795. .t-c-b {
  4796. cursor: pointer;
  4797. .td {
  4798. background: #f3fffb;
  4799. }
  4800. p {
  4801. border: 1px solid #ededed;
  4802. height: 36px;
  4803. width: 73px;
  4804. // flex: 1;
  4805. box-sizing: border-box;
  4806. }
  4807. p:first-child {
  4808. width: 115px;
  4809. }
  4810. }
  4811. }
  4812. }
  4813. .table-bottom {
  4814. // position: absolute;
  4815. // bottom: 0;
  4816. // right: 0;
  4817. // left: 0;\
  4818. padding: 0 37px;
  4819. margin-top: 241px;
  4820. .header-about {
  4821. .item {
  4822. margin-right: 20px;
  4823. margin-bottom: 10px;
  4824. span {
  4825. font-size: 16px;
  4826. font-family: PingFang SC;
  4827. font-weight: 400;
  4828. color: #333333;
  4829. }
  4830. .div1 {
  4831. width: 120px;
  4832. }
  4833. .div2 {
  4834. width: 74px;
  4835. }
  4836. .city1 {
  4837. width: 120px;
  4838. }
  4839. .div3 {
  4840. width: 92px;
  4841. }
  4842. .div4 {
  4843. width: 160px;
  4844. }
  4845. .input-suffix {
  4846. line-height: 36px;
  4847. }
  4848. }
  4849. .right {
  4850. width: 70px;
  4851. height: 26px;
  4852. background: #ffae45;
  4853. border-radius: 4px;
  4854. font-size: 14px;
  4855. font-family: PingFang SC;
  4856. font-weight: 400;
  4857. color: #ffffff;
  4858. margin-bottom: 10px;
  4859. cursor: pointer;
  4860. }
  4861. }
  4862. }
  4863. .table-b-bottom {
  4864. padding: 10px 27px;
  4865. border-top: 2px solid #dedede;
  4866. margin-top: 10px;
  4867. .t-b-l-item {
  4868. font-size: 16px;
  4869. font-family: PingFang SC;
  4870. font-weight: 400;
  4871. color: #333333;
  4872. margin-right: 20px;
  4873. span {
  4874. color: #ff6245;
  4875. }
  4876. }
  4877. .t-b-b-right {
  4878. div {
  4879. width: 130px;
  4880. height: 46px;
  4881. background: #ffae45;
  4882. border-radius: 4px;
  4883. font-size: 16px;
  4884. font-family: PingFang SC;
  4885. font-weight: 500;
  4886. color: #ffffff;
  4887. cursor: pointer;
  4888. }
  4889. .bg-green {
  4890. background: #5386f6;
  4891. margin-left: 20px;
  4892. }
  4893. }
  4894. }
  4895. // 中成药 和适宜技术配方
  4896. .chinese_medicine {
  4897. padding: 0 37px;
  4898. .clearer {
  4899. width: 84px;
  4900. height: 34px;
  4901. background: #ffae45;
  4902. border-radius: 4px;
  4903. font-size: 14px;
  4904. font-family: PingFang SC;
  4905. font-weight: bold;
  4906. color: #ffffff;
  4907. cursor: pointer;
  4908. margin-bottom: 20px;
  4909. }
  4910. .c-m-table {
  4911. width: 100%;
  4912. overflow: hidden;
  4913. .unit {
  4914. font-size: 14px;
  4915. font-family: PingFang SC;
  4916. font-weight: 400;
  4917. color: #000000;
  4918. // margin-left: 10px;
  4919. }
  4920. .input {
  4921. width: 40px;
  4922. }
  4923. }
  4924. }
  4925. }
  4926. }
  4927. }
  4928. .table-choose3 {
  4929. z-index: 99999;
  4930. width: 332px;
  4931. height: 221px;
  4932. background: #ffffff;
  4933. border: 2px solid #d8d8d8;
  4934. // position: absolute;
  4935. position: fixed;
  4936. margin-top: 33px;
  4937. // left: -4px;
  4938. overflow: auto;
  4939. .table-choose-h {
  4940. background: #f3fffb;
  4941. div {
  4942. height: 36px;
  4943. width: 73px;
  4944. }
  4945. div:first-child {
  4946. width: 115px;
  4947. }
  4948. }
  4949. .t-c-b {
  4950. cursor: pointer;
  4951. .td {
  4952. background: #f3fffb;
  4953. }
  4954. p {
  4955. border: 1px solid #ededed;
  4956. height: 36px;
  4957. width: 73px;
  4958. // flex: 1;
  4959. box-sizing: border-box;
  4960. }
  4961. p:first-child {
  4962. width: 115px;
  4963. }
  4964. }
  4965. }
  4966. .drug-body {
  4967. box-sizing: border-box;
  4968. // height: 50vh;
  4969. padding: 0 50px;
  4970. .drug-item {
  4971. font-size: 14px;
  4972. font-family: PingFang SC;
  4973. font-weight: 400;
  4974. color: #333333;
  4975. margin-bottom: 10px;
  4976. .trun-join {
  4977. display: flex;
  4978. align-items: center;
  4979. justify-content: flex-start;
  4980. }
  4981. .bg-yellow {
  4982. margin-left: 10px;
  4983. background: #ffae45 !important;
  4984. }
  4985. span {
  4986. display: inline-block;
  4987. width: 100px;
  4988. text-align-last: justify;
  4989. }
  4990. div {
  4991. flex: 1;
  4992. img {
  4993. width: 126px;
  4994. height: 126px;
  4995. // background: red;
  4996. margin-right: 32px;
  4997. }
  4998. span {
  4999. text-align-last: left;
  5000. }
  5001. }
  5002. .detail {
  5003. flex: 1;
  5004. .btns {
  5005. width: 80px;
  5006. height: 30px;
  5007. background: #5386f6;
  5008. border-radius: 2px 2px 2px 2px;
  5009. font-size: 14px;
  5010. font-family: PingFang SC;
  5011. font-weight: 400;
  5012. color: #ffffff;
  5013. cursor: pointer;
  5014. margin-bottom: 20px;
  5015. }
  5016. .drug-detail {
  5017. span {
  5018. text-align-last: left;
  5019. margin-right: 10px;
  5020. margin-bottom: 10px;
  5021. }
  5022. }
  5023. }
  5024. }
  5025. .drug-item1 {
  5026. font-size: 16px;
  5027. font-family: PingFang SC;
  5028. font-weight: 400;
  5029. color: #333333;
  5030. margin-bottom: 15px;
  5031. margin-right: 50px;
  5032. div {
  5033. flex: 1;
  5034. }
  5035. }
  5036. .mad-cy {
  5037. color: #5386f6;
  5038. font-weight: bold;
  5039. }
  5040. }
  5041. .testCase {
  5042. padding: 0 50px;
  5043. .testCase-item {
  5044. font-size: 14px;
  5045. font-family: PingFang SC;
  5046. font-weight: 400;
  5047. color: #333333;
  5048. margin-bottom: 10px;
  5049. .testCase-left {
  5050. text-align-last: justify;
  5051. width: 112px;
  5052. }
  5053. .testCase-right {
  5054. flex: 1;
  5055. }
  5056. .case-yijian {
  5057. margin-bottom: 15px;
  5058. span {
  5059. margin-right: 5px;
  5060. }
  5061. .testCase-btns {
  5062. width: 80px;
  5063. height: 30px;
  5064. background: #5386f6;
  5065. border-radius: 2px 2px 2px 2px;
  5066. font-size: 14px;
  5067. font-family: PingFang SC;
  5068. font-weight: 400;
  5069. color: #ffffff;
  5070. cursor: pointer;
  5071. }
  5072. }
  5073. .case-detial {
  5074. span {
  5075. margin-right: 20px;
  5076. margin-bottom: 15px;
  5077. }
  5078. }
  5079. }
  5080. .testCase-title {
  5081. font-size: 16px;
  5082. font-family: PingFang SC;
  5083. font-weight: 400;
  5084. color: #5386f6;
  5085. margin-bottom: 15px;
  5086. }
  5087. }
  5088. // 推荐方剂
  5089. .recommend {
  5090. cursor: pointer;
  5091. .arrow-left {
  5092. width: 11px;
  5093. height: 80px;
  5094. background: #d8d8d8;
  5095. border-radius: 6px;
  5096. img {
  5097. width: 6px;
  5098. }
  5099. }
  5100. .banner {
  5101. flex: 1;
  5102. height: 80px;
  5103. margin: 0 0px;
  5104. overflow-y: auto;
  5105. .r-banner-body {
  5106. cursor: pointer;
  5107. .r-body-item {
  5108. margin-bottom: 10px;
  5109. .med-name {
  5110. // width: 70px;
  5111. overflow: hidden;
  5112. text-overflow: ellipsis;
  5113. white-space: nowrap;
  5114. font-size: 14px;
  5115. font-family: PingFang SC;
  5116. font-weight: 400;
  5117. color: #333333;
  5118. span {
  5119. cursor: pointer;
  5120. }
  5121. }
  5122. .icon-expr {
  5123. width: 18px;
  5124. }
  5125. .med-name1 {
  5126. display: flex;
  5127. align-items: center;
  5128. justify-content: flex-start;
  5129. flex: 1;
  5130. img {
  5131. width: 18px;
  5132. margin-right: 5px;
  5133. }
  5134. span {
  5135. display: inline-block;
  5136. // width: 70px;
  5137. width: 100%;
  5138. // flex: 1;
  5139. // background: #5386F6;
  5140. overflow: hidden;
  5141. text-overflow: ellipsis;
  5142. white-space: nowrap;
  5143. font-size: 14px;
  5144. font-family: PingFang SC;
  5145. font-weight: 400;
  5146. // color: #333333;
  5147. color: #5386f6;
  5148. cursor: pointer;
  5149. }
  5150. }
  5151. // .med-name-bg:hover {
  5152. // background: #D8D8D8;
  5153. // }
  5154. .med-name:hover {
  5155. background: #d8d8d8;
  5156. }
  5157. .med-btns {
  5158. div {
  5159. width: 34px;
  5160. height: 20px;
  5161. background: #5386f6;
  5162. border-radius: 2px;
  5163. color: #fff;
  5164. font-size: 12px;
  5165. font-family: PingFang SC;
  5166. font-weight: 400;
  5167. cursor: pointer;
  5168. color: #ffffff;
  5169. }
  5170. .bg-yellow {
  5171. background: #ffae45;
  5172. margin-left: 10px;
  5173. }
  5174. }
  5175. }
  5176. }
  5177. }
  5178. .active {
  5179. color: #5386f6 !important;
  5180. }
  5181. }
  5182. .pre-steps::v-deep .el-step__icon.is-text {
  5183. border: 0;
  5184. }
  5185. .collapse::v-deep .el-collapse-item__header {
  5186. padding: 0 0 0 10px;
  5187. border-bottom: 1px dashed #ebeef5;
  5188. font-size: 14px;
  5189. font-family: PingFang SC;
  5190. font-weight: 500;
  5191. color: #333333;
  5192. }
  5193. .body-msg {
  5194. span {
  5195. font-size: 16px;
  5196. font-family: PingFang SC;
  5197. font-weight: 400;
  5198. color: #333333;
  5199. margin-bottom: 5px;
  5200. }
  5201. }
  5202. .collapse ::v-deep .el-collapse-item__content {
  5203. padding-bottom: 5px;
  5204. }
  5205. .c-m-table::v-deep .el-table .cell {
  5206. text-align: center;
  5207. }
  5208. .table-show::v-deep .el-table .cell {
  5209. text-align: center;
  5210. }
  5211. .c-m-table::v-deep .el-select input {
  5212. padding: 0 15px 0 5px;
  5213. }
  5214. .table-show ::v-deep .el-select input {
  5215. padding: 0 15px 0 5px;
  5216. }
  5217. .t_dose::v-deep .el-input__inner {
  5218. // text-align: left;
  5219. padding: 0 5px !important;
  5220. }
  5221. .city::v-deep .el-select input {
  5222. padding: 0 20px 0 10px;
  5223. // height: 32px;
  5224. }
  5225. .xuewei::v-deep .el-select {
  5226. width: 100%;
  5227. }
  5228. // 滚动条位置
  5229. .prescribing ::v-deep .__bar-is-vertical {
  5230. right: -1px !important;
  5231. }
  5232. // 隐藏横向滚动条
  5233. .prescribing ::v-deep .__bar-is-horizontal {
  5234. display: none !important;
  5235. }
  5236. .table-left-body::v-deep .el-table__empty-text {
  5237. color: #fff;
  5238. }
  5239. </style>
  5240. <style lang="scss" scoped>
  5241. @import "../../style/media/diagnosis/prescribing.scss";
  5242. </style>
  5243. <style lang="scss">
  5244. /* @media screen and (max-width: 768px) {
  5245. body {
  5246. width: 100% !important;
  5247. }
  5248. } */
  5249. .message-rational-safe-use-wrapper {
  5250. align-items: flex-start;
  5251. max-height: 80vh;
  5252. overflow-y: auto;
  5253. &.el-message-box {
  5254. overflow-y: hidden;
  5255. .el-message-box__content {
  5256. max-height: calc(80vh - 45px - 48px);
  5257. overflow: auto;
  5258. }
  5259. }
  5260. .title {
  5261. font-size: 16px;
  5262. font-weight: 700;
  5263. }
  5264. .content {
  5265. margin: 12px 0;
  5266. > div {
  5267. margin: 8px 0;
  5268. }
  5269. }
  5270. .el-message__content {
  5271. width: 100%;
  5272. color: #333;
  5273. }
  5274. }
  5275. </style>