Prescribing copy.vue 142 KB

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