PatientBox.vue 139KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884
  1. <template>
  2. <div>
  3. <div
  4. class="patient"
  5. :class="borderColor(patient)"
  6. v-for="(patient, index) in patients"
  7. :key="index"
  8. @click="detailAction(patient)"
  9. >
  10. <div style="overflow: hidden; width: 100%" class="online">
  11. <p
  12. style="
  13. float: right;
  14. height: 0.5rem;
  15. line-height: 0.5rem;
  16. margin-right: 0.28rem;
  17. margin-top: 0.2rem;
  18. "
  19. :class="stateColor(patient)"
  20. >
  21. {{ stateText(patient) }}
  22. </p>
  23. </div>
  24. <!-- <router-link :to="{path:'/details', query: {patient_id: patient.patient_id, date: patient.schedule_date}}"> -->
  25. <div class="kehu">
  26. <div style="position: relative; flex: 2; margin-bottom: 8px" class="tx">
  27. <!-- <img
  28. :src="
  29. patient.patient.avatar.length > 0
  30. ? patient.patient.avatar
  31. : '../../assets/product/test.jpg'
  32. "
  33. alt
  34. /> -->
  35. <div style="display: flex; flex-direction: column">
  36. <img
  37. v-if="patient.patient.gender == 1"
  38. src="../../assets/images/man.png"
  39. alt=""
  40. />
  41. <img v-else src="../../assets/images/woman.png" alt="" />
  42. <span class="redpoint" v-if="getStatus(patient)">
  43. {{
  44. getUnReadNum(patient) > 99
  45. ? getUnReadNum(patient) + "+"
  46. : getUnReadNum(patient)
  47. }}
  48. </span>
  49. <div v-if="patient.prescription != null && patient.prescription.water_machine=='是'" class="water"><span>水</span></div>
  50. </div>
  51. <div class="right">
  52. <h3 class="name">
  53. <span v-if="patient.patient.is_infectious==2" style="color:red">{{ patient.patient.name }}</span>
  54. <span v-if="patient.patient.is_infectious!=2">{{ patient.patient.name }}</span>
  55. <span class="num"
  56. >{{ genderText(patient) }} | {{ age(patient)>200 ? patient.patient.age : age(patient) }}岁</span
  57. >
  58. </h3>
  59. <div class="difficult" v-if="patient.patient.troble_shoot == 1">
  60. 疑难内瘘
  61. </div>
  62. <!-- 性别、年龄 -->
  63. <div class="dislysisInfo" style="color: #1b2631">
  64. <p
  65. v-if="
  66. $store.getters.user.template_info.org_id != 9671 &&
  67. $store.getters.user.template_info.org_id != 9675 &&
  68. $store.getters.user.template_info.org_id != 10340
  69. "
  70. >
  71. 透析号:{{
  72. patient.patient.dialysis_no ? patient.patient.dialysis_no : ""
  73. }}
  74. </p>
  75. <!-- <p
  76. v-if="
  77. $store.getters.user.template_info.org_id == 9671 ||
  78. $store.getters.user.template_info.org_id == 9675 ||
  79. $store.getters.user.template_info.org_id == 10340
  80. "
  81. >
  82. 核酸检测日期:
  83. <span v-if="patient.dialysis_order != null">{{
  84. getTimeOne(patient.dialysis_order.nuclein_date)
  85. }}</span>
  86. </p> -->
  87. <p
  88. v-if="
  89. $store.getters.user.template_info.org_id == 9671 ||
  90. $store.getters.user.template_info.org_id == 9675 ||
  91. $store.getters.user.template_info.org_id == 10340
  92. "
  93. >
  94. 透析时长:
  95. <span
  96. v-if="
  97. patient.prescription != null &&
  98. patient.prescription.dialysis_duration_hour > 0
  99. "
  100. >{{ patient.prescription.dialysis_duration_hour }}时</span
  101. >
  102. <span
  103. v-if="
  104. patient.prescription != null &&
  105. patient.prescription.dialysis_duration_minute > 0
  106. "
  107. >{{ patient.prescription.dialysis_duration_minute }}分</span
  108. >
  109. <span
  110. v-if="
  111. patient.prescription == null &&
  112. patient.dialysis_solution != null
  113. "
  114. >{{
  115. patient.dialysis_solution.dialysis_duration_hour
  116. }}时</span
  117. >
  118. <span
  119. v-if="
  120. patient.prescription == null &&
  121. patient.dialysis_solution != null
  122. "
  123. >{{
  124. patient.dialysis_solution.dialysis_duration_minute
  125. }}分</span
  126. >
  127. </p>
  128. <p
  129. v-if="
  130. $store.getters.user.template_info.org_id != 9671 &&
  131. $store.getters.user.template_info.org_id != 9675 &&
  132. $store.getters.user.template_info.org_id != 10340
  133. "
  134. >
  135. 体重(前/后kg):{{
  136. patient.assessment_before_dislysis
  137. ? patient.assessment_before_dislysis.weight_before
  138. : ""
  139. }}
  140. <span
  141. v-if="
  142. patient.assessment_after_dislysis &&
  143. patient.assessment_after_dislysis.weight_after > 0
  144. "
  145. >/{{
  146. patient.assessment_after_dislysis
  147. ? patient.assessment_after_dislysis.weight_after
  148. : ""
  149. }}</span
  150. >
  151. </p>
  152. <p v-if="$store.getters.user.template_info.org_id == 10693">
  153. 干体重(kg):
  154. {{patient.assessment_before_dislysis? patient.assessment_before_dislysis.dry_weight: ""}}
  155. </p>
  156. <p
  157. v-if="
  158. $store.getters.user.template_info.org_id == 9671 ||
  159. $store.getters.user.template_info.org_id == 9675 ||
  160. $store.getters.user.template_info.org_id == 10340
  161. "
  162. >
  163. 抗凝剂:
  164. <span v-if="patient.prescription != null">
  165. <span v-if="patient.prescription.anticoagulant == 1"
  166. >无肝素</span
  167. >
  168. <span v-if="patient.prescription.anticoagulant == 2"
  169. >普通肝素</span
  170. >
  171. <span v-if="patient.prescription.anticoagulant == 3"
  172. >低分子肝素</span
  173. >
  174. <span v-if="patient.prescription.anticoagulant == 4"
  175. >阿加曲班</span
  176. >
  177. <span v-if="patient.prescription.anticoagulant == 5"
  178. >枸橼酸钠</span
  179. >
  180. <span v-if="patient.prescription.anticoagulant == 6"
  181. >低分子肝素钙</span
  182. >
  183. <span v-if="patient.prescription.anticoagulant == 7"
  184. >低分子肝素钠</span
  185. >
  186. <span v-if="patient.prescription.anticoagulant == 8"
  187. >依诺肝素</span
  188. >
  189. <span v-if="patient.prescription.anticoagulant == 9"
  190. >达肝素</span
  191. >
  192. <span v-if="patient.prescription.anticoagulant == 10"
  193. >体外抗凝</span
  194. >
  195. <span v-if="patient.prescription.anticoagulant == 11"
  196. >那屈肝素</span
  197. >
  198. <span v-if="patient.prescription.anticoagulant == 12"
  199. >无抗凝剂</span
  200. >
  201. <span v-if="patient.prescription.anticoagulant == 13"
  202. >那屈肝素钙</span
  203. >
  204. <span v-if="patient.prescription.anticoagulant == 14"
  205. >肝素钙注射液</span
  206. >
  207. <span v-if="patient.prescription.anticoagulant == 15"
  208. >甲磺酸萘莫司他</span
  209. >
  210. </span>
  211. <span
  212. v-if="
  213. patient.prescription == null &&
  214. patient.dialysis_solution != null
  215. "
  216. >
  217. <span v-if="patient.dialysis_solution.anticoagulant == 1"
  218. >无肝素</span
  219. >
  220. <span v-if="patient.dialysis_solution.anticoagulant == 2"
  221. >普通肝素</span
  222. >
  223. <span v-if="patient.dialysis_solution.anticoagulant == 3"
  224. >低分子肝素</span
  225. >
  226. <span v-if="patient.dialysis_solution.anticoagulant == 4"
  227. >阿加曲班</span
  228. >
  229. <span v-if="patient.dialysis_solution.anticoagulant == 5"
  230. >枸橼酸钠</span
  231. >
  232. <span v-if="patient.dialysis_solution.anticoagulant == 6"
  233. >低分子肝素钙</span
  234. >
  235. <span v-if="patient.dialysis_solution.anticoagulant == 7"
  236. >低分子肝素钠</span
  237. >
  238. <span v-if="patient.dialysis_solution.anticoagulant == 8"
  239. >依诺肝素</span
  240. >
  241. <span v-if="patient.dialysis_solution.anticoagulant == 9"
  242. >达肝素</span
  243. >
  244. <span v-if="patient.dialysis_solution.anticoagulant == 10"
  245. >体外抗凝</span
  246. >
  247. <span v-if="patient.dialysis_solution.anticoagulant == 11"
  248. >那屈肝素</span
  249. >
  250. <span v-if="patient.dialysis_solution.anticoagulant == 12"
  251. >无抗凝剂</span
  252. >
  253. <span v-if="patient.dialysis_solution.anticoagulant == 13"
  254. >那屈肝素钙</span
  255. >
  256. </span>
  257. </p>
  258. <p
  259. v-if="
  260. $store.getters.user.template_info.org_id == 9671 ||
  261. $store.getters.user.template_info.org_id == 9675 ||
  262. $store.getters.user.template_info.org_id == 10340
  263. "
  264. >
  265. 总量:
  266. <span v-if="patient.prescription != null">
  267. <span v-if="patient.prescription.anticoagulant == 1"
  268. >{{ patient.prescription.anticoagulant_zongliang }}iu</span
  269. >
  270. <span v-if="patient.prescription.anticoagulant == 2"
  271. >{{ patient.prescription.anticoagulant_zongliang }}mg</span
  272. >
  273. <span v-if="patient.prescription.anticoagulant == 3"
  274. >{{ patient.prescription.anticoagulant_zongliang }}iu</span
  275. >
  276. <span v-if="patient.prescription.anticoagulant == 4"
  277. >{{ patient.prescription.anticoagulant_zongliang }}iu</span
  278. >
  279. <span v-if="patient.prescription.anticoagulant == 5"
  280. >{{ patient.prescription.anticoagulant_zongliang }}iu</span
  281. >
  282. <span v-if="patient.prescription.anticoagulant == 6"
  283. >{{ patient.prescription.anticoagulant_zongliang }}iu</span
  284. >
  285. <span v-if="patient.prescription.anticoagulant == 7"
  286. >{{ patient.prescription.anticoagulant_zongliang }}iu</span
  287. >
  288. <span v-if="patient.prescription.anticoagulant == 8"
  289. >{{ patient.prescription.anticoagulant_zongliang }}iu</span
  290. >
  291. <span v-if="patient.prescription.anticoagulant == 9"
  292. >{{ patient.prescription.anticoagulant_zongliang }}iu</span
  293. >
  294. <span v-if="patient.prescription.anticoagulant == 10"
  295. >{{ patient.prescription.anticoagulant_zongliang }}iu</span
  296. >
  297. <span v-if="patient.prescription.anticoagulant == 11"
  298. >{{ patient.prescription.anticoagulant_zongliang }}iu</span
  299. >
  300. <span v-if="patient.prescription.anticoagulant == 12"
  301. >{{ patient.prescription.anticoagulant_zongliang }}iu</span
  302. >
  303. <span v-if="patient.prescription.anticoagulant == 13"
  304. >{{ patient.prescription.anticoagulant_zongliang }}iu</span
  305. >
  306. </span>
  307. <span
  308. v-if="
  309. patient.prescription == null &&
  310. patient.dialysis_solution != null
  311. "
  312. >
  313. <span v-if="patient.dialysis_solution.anticoagulant == 1"
  314. >{{
  315. patient.dialysis_solution.anticoagulant_zongliang
  316. }}iu</span
  317. >
  318. <span v-if="patient.dialysis_solution.anticoagulant == 2"
  319. >{{
  320. patient.dialysis_solution.anticoagulant_zongliang
  321. }}mg</span
  322. >
  323. <span v-if="patient.dialysis_solution.anticoagulant == 3"
  324. >{{
  325. patient.dialysis_solution.anticoagulant_zongliang
  326. }}iu</span
  327. >
  328. <span v-if="patient.dialysis_solution.anticoagulant == 4"
  329. >{{
  330. patient.dialysis_solution.anticoagulant_zongliang
  331. }}iu</span
  332. >
  333. <span v-if="patient.dialysis_solution.anticoagulant == 5"
  334. >{{
  335. patient.dialysis_solution.anticoagulant_zongliang
  336. }}iu</span
  337. >
  338. <span v-if="patient.dialysis_solution.anticoagulant == 6"
  339. >{{
  340. patient.dialysis_solution.anticoagulant_zongliang
  341. }}iu</span
  342. >
  343. <span v-if="patient.dialysis_solution.anticoagulant == 7"
  344. >{{
  345. patient.dialysis_solution.anticoagulant_zongliang
  346. }}iu</span
  347. >
  348. <span v-if="patient.dialysis_solution.anticoagulant == 8"
  349. >{{
  350. patient.dialysis_solution.anticoagulant_zongliang
  351. }}iu</span
  352. >
  353. <span v-if="patient.dialysis_solution.anticoagulant == 9"
  354. >{{
  355. patient.dialysis_solution.anticoagulant_zongliang
  356. }}iu</span
  357. >
  358. <span v-if="patient.dialysis_solution.anticoagulant == 10"
  359. >{{
  360. patient.dialysis_solution.anticoagulant_zongliang
  361. }}iu</span
  362. >
  363. <span v-if="patient.dialysis_solution.anticoagulant == 11"
  364. >{{
  365. patient.dialysis_solution.anticoagulant_zongliang
  366. }}iu</span
  367. >
  368. <span v-if="patient.dialysis_solution.anticoagulant == 12"
  369. >{{
  370. patient.dialysis_solution.anticoagulant_zongliang
  371. }}iu</span
  372. >
  373. <span v-if="patient.dialysis_solution.anticoagulant == 13"
  374. >{{
  375. patient.dialysis_solution.anticoagulant_zongliang
  376. }}iu</span
  377. >
  378. </span>
  379. </p>
  380. <p>
  381. 目标超滤量:
  382. <span
  383. v-if="
  384. patient.prescription &&
  385. patient.prescription.target_ultrafiltration > 0
  386. "
  387. >
  388. <span v-if="$store.getters.user.template_info.org_id == 10340"
  389. >{{
  390. patient.prescription
  391. ? patient.prescription.target_ultrafiltration
  392. : ""
  393. }}ml</span
  394. >
  395. <span v-if="$store.getters.user.template_info.org_id == 10597"
  396. >{{
  397. patient.prescription
  398. ? patient.prescription.target_ultrafiltration
  399. : ""
  400. }}L</span
  401. >
  402. <span v-if="$store.getters.user.template_info.org_id == 10612"
  403. >{{
  404. patient.prescription
  405. ? patient.prescription.target_ultrafiltration
  406. : ""
  407. }}L</span
  408. >
  409. <span
  410. v-if="$store.getters.user.template_info.org_id != 10340 && $store.getters.user.template_info.org_id != 10597 && $store.getters.user.template_info.org_id != 10612"
  411. >{{
  412. patient.prescription
  413. ? patient.prescription.target_ultrafiltration
  414. : ""
  415. }}</span
  416. >
  417. </span>
  418. <span
  419. v-if="
  420. patient.prescription == null &&
  421. patient.dialysis_solution != null
  422. "
  423. >
  424. <span
  425. v-if="$store.getters.user.template_info.org_id == 10340"
  426. >
  427. <span
  428. >{{
  429. patient.dialysis_solution
  430. ? patient.dialysis_solution.target_ultrafiltration
  431. : ""
  432. }}ml</span
  433. >
  434. </span>
  435. <span
  436. v-if="$store.getters.user.template_info.org_id == 10597"
  437. >
  438. <span
  439. >{{
  440. patient.dialysis_solution
  441. ? patient.dialysis_solution.target_ultrafiltration
  442. : ""
  443. }}L</span
  444. >
  445. </span>
  446. <span
  447. v-if="$store.getters.user.template_info.org_id != 10340 && $store.getters.user.template_info.org_id != 10597"
  448. >{{
  449. patient.prescription
  450. ? patient.prescription.target_ultrafiltration
  451. : ""
  452. }}</span
  453. >
  454. </span>
  455. </p>
  456. <p v-if="$store.getters.user.template_info.org_id == 10597 || $store.getters.user.template_info.org_id == 10612 || $store.getters.user.template_info.org_id == 10598 || $store.getters.user.template_info.org_id == 10679 || $store.getters.user.template_info.org_id == 10677 || $store.getters.user.template_info.org_id == 10702 ">
  457. 处方脱水量:
  458. <span>{{patient.prescription? patient.prescription.prescription_water: ""}}L</span>
  459. </p>
  460. <p
  461. v-if="
  462. $store.getters.user.template_info.org_id != 9675 &&
  463. $store.getters.user.template_info.org_id != 10340
  464. "
  465. >
  466. 透析器/灌流器:{{patient.prescription ? patient.prescription.dialyzer_perfusion_apparatus: ""}}
  467. <span
  468. v-if="patient.prescription != null &&patient.prescription.dialysis_dialyszers != ''">
  469. {{patient.prescription? patient.prescription.dialysis_dialyszers: ""}}
  470. </span>
  471. <span v-if="patient.prescription == null && patient.dialysis_solution!=null">
  472. {{patient.dialysis_solution? patient.dialysis_solution.dialysis_dialyszers: ""}}
  473. </span>
  474. <span v-if="patient.prescription != null &&patient.prescription.dialysis_irrigation != ''">/</span>
  475. <span v-if="patient.prescription == null &&patient.dialysis_solution!=null">
  476. {{patient.dialysis_solution? patient.dialysis_solution.dialysis_irrigation: ""}}
  477. </span>
  478. <span v-if="patient.prescription != null &&patient.prescription.dialysis_irrigation != ''">
  479. {{patient.prescription? patient.prescription.dialysis_irrigation: ""}}
  480. </span>
  481. <span v-if="patient.prescription == null && patient.dialysis_solution!=null">
  482. {{patient.dialysis_solution? patient.dialysis_solution.dialysis_irrigation: ""}}
  483. </span>
  484. </p>
  485. <p
  486. v-if="
  487. $store.getters.user.template_info.org_id == 9675 ||
  488. $store.getters.user.template_info.org_id == 10340
  489. "
  490. >
  491. 透析器/灌流器:
  492. <span
  493. v-if="
  494. patient.dialysis_order != null &&
  495. patient.dialysis_order.dialysis_dialyszers != ''
  496. "
  497. >
  498. {{
  499. patient.prescription
  500. ? patient.dialysis_order.dialysis_dialyszers
  501. : ""
  502. }}
  503. </span>
  504. <span
  505. v-if="
  506. patient.dialysis_order == null && patient.last_order != null
  507. "
  508. >
  509. {{
  510. patient.last_order
  511. ? patient.last_order.dialysis_dialyszers
  512. : ""
  513. }}
  514. </span>
  515. <span
  516. v-if="
  517. patient.dialysis_order != null &&
  518. patient.dialysis_order.dialysis_irrigation != ''
  519. "
  520. >/{{
  521. patient.dialysis_order
  522. ? patient.dialysis_order.dialysis_irrigation
  523. : ""
  524. }}
  525. </span>
  526. <span
  527. v-if="
  528. patient.dialysis_order == null && patient.last_order != null
  529. "
  530. >
  531. <span v-if="patient.last_order.dialysis_irrigation != ''"
  532. >/{{
  533. patient.last_order
  534. ? patient.last_order.dialysis_irrigation
  535. : ""
  536. }}</span
  537. >
  538. </span>
  539. </p>
  540. <p
  541. v-if="
  542. $store.getters.user.template_info.org_id == 9671 ||
  543. $store.getters.user.template_info.org_id == 10445 ||
  544. $store.getters.user.template_info.org_id ==10597 ||
  545. $store.getters.user.template_info.org_id ==10599 ||
  546. $store.getters.user.template_info.org_id ==10702
  547. "
  548. >
  549. 滤过器:
  550. <span v-if="patient.prescription!=null && patient.prescription.dialysis_strainer!=''">{{patient.prescription? patient.prescription.dialysis_strainer: ""}}</span>
  551. <span v-if="patient.prescription==null && patient.dialysis_solution!=null">{{patient.dialysis_solution? patient.dialysis_solution.dialysis_strainer: ""}}</span>
  552. </p>
  553. <p
  554. v-if="
  555. $store.getters.user.template_info.org_id == 9675 ||
  556. $store.getters.user.template_info.org_id == 10340
  557. "
  558. >
  559. 排班备注:
  560. <span>{{patient.dialysis_order &&patient.dialysis_order.schedule_remark? patient.dialysis_order.schedule_remark:patient.patient.schedule_remark }}</span>
  561. </p>
  562. <p>抗凝剂:
  563. <span v-if="patient.prescription!=null&& patient.prescription&&patient.prescription.anticoagulant ==1">无肝素</span>
  564. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==1">无肝素</span>
  565. <span v-if="patient.prescription==null && patient.prescription&&patient.prescription.anticoagulant ==2">普通肝素</span>
  566. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==2">普通肝素</span>
  567. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==3">低分子肝素</span>
  568. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==3">低分子肝素</span>
  569. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==4">阿加曲班</span>
  570. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==4">阿加曲班</span>
  571. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==5">枸橼酸钠</span>
  572. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==5">枸橼酸钠</span>
  573. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==6">低分子肝素钙</span>
  574. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==6">低分子肝素钙</span>
  575. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==7">低分子肝素钠</span>
  576. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==7">低分子肝素钙</span>
  577. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==8">依诺肝素</span>
  578. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==8">依诺肝素</span>
  579. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==9">达肝素</span>
  580. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==9">达肝素</span>
  581. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==10">体外抗凝</span>
  582. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==10">体外抗凝</span>
  583. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==11">那屈肝素</span>
  584. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==11">那屈肝素</span>
  585. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==12">无抗凝剂</span>
  586. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==12">无抗凝剂</span>
  587. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==13">那曲肝素钙</span>
  588. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==13">那曲肝素钙</span>
  589. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==14">肝素钙注射液</span>
  590. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==14">肝素钙注射液</span>
  591. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==15">甲磺酸萘莫司他</span>
  592. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==15">甲磺酸萘莫司他</span>
  593. <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==16">低分子量肝素钙</span>
  594. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==16">低分子肝素钙</span>
  595. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==17">肝素钠</span>
  596. <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==17">肝素钠</span>
  597. </p>
  598. <p>
  599. 首剂:
  600. {{patient.prescription!=null&& patient.prescription&&patient.prescription.anticoagulant_shouji?patient.prescription&&patient.prescription.anticoagulant_shouji:"" }}
  601. {{patient.prescription==null&& patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_shouji?patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_shouji:"" }}
  602. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 4">iu</span>
  603. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 4">iu</span>
  604. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 3">iu</span>
  605. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 3">iu</span>
  606. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 2">mg</span>
  607. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 2">mg</span>
  608. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 5">ml</span>
  609. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 5">ml</span>
  610. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 6">iu</span>
  611. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 6">iu</span>
  612. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 7">iu</span>
  613. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 7">iu</span>
  614. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 8">iu</span>
  615. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 8">iu</span>
  616. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 9">iu</span>
  617. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 9">iu</span>
  618. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 10">iu</span>
  619. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 10">iu</span>
  620. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 11">iu</span>
  621. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 11">iu</span>
  622. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 13">iu</span>
  623. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 13">iu</span>
  624. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 16">iu</span>
  625. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 16">iu</span>
  626. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 17">
  627. <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
  628. <span v-if="$store.getters.user.template_info.org_id ==10644"> U</span>
  629. </span>
  630. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 17">
  631. <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
  632. <span v-if="$store.getters.user.template_info.org_id ==10644"> U</span>
  633. </span>
  634. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 14">
  635. <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
  636. <span v-if="$store.getters.user.template_info.org_id ==10644"> iu</span>
  637. </span>
  638. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 14">
  639. mg
  640. </span>
  641. 维持: {{patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant_weichi?patient.prescription&&patient.prescription.anticoagulant_weichi:"" }}
  642. {{patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_weichi?patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_weichi:"" }}
  643. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 4">iu</span>
  644. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 4">iu</span>
  645. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 3">iu</span>
  646. <span v-if="patient.dialysis_solution==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 3">iu</span>
  647. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 2">mg</span>
  648. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 2">mg</span>
  649. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 5">ml</span>
  650. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 5">ml</span>
  651. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 6">iu</span>
  652. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 6">iu</span>
  653. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 7">iu</span>
  654. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 7">iu</span>
  655. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 8">iu</span>
  656. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 8">iu</span>
  657. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 9">iu</span>
  658. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 9">iu</span>
  659. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 10">iu</span>
  660. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 10">iu</span>
  661. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 11">iu</span>
  662. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 11">iu</span>
  663. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 13">iu</span>
  664. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 13">iu</span>
  665. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 16">iu</span>
  666. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 16">iu</span>
  667. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 17">
  668. <span v-if="$store.getters.user.template_info.org_id !=10644"> mg/h</span>
  669. <span v-if="$store.getters.user.template_info.org_id ==10644"> U/h</span>
  670. </span>
  671. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 17">
  672. <span v-if="$store.getters.user.template_info.org_id !=10644"> mg/h</span>
  673. <span v-if="$store.getters.user.template_info.org_id ==10644"> U/h</span>
  674. </span>
  675. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 14">
  676. <span v-if="$store.getters.user.template_info.org_id !=10644"> mg/h</span>
  677. <span v-if="$store.getters.user.template_info.org_id ==10644"> iu/h</span>
  678. </span>
  679. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 14">
  680. <span v-if="$store.getters.user.template_info.org_id !=10644"> mg/h</span>
  681. <span v-if="$store.getters.user.template_info.org_id ==10644"> iu/h</span>
  682. </span>
  683. 总量:
  684. {{ patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant_zongliang?patient.prescription&&patient.prescription.anticoagulant_zongliang:"" }}
  685. {{ patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_zongliang?patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_zongliang:"" }}
  686. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 4">iu</span>
  687. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 4">iu</span>
  688. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 3">iu</span>
  689. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 3">iu</span>
  690. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 2">mg</span>
  691. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 2">mg</span>
  692. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 5">ml</span>
  693. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 5">ml</span>
  694. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 6">iu</span>
  695. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 6">iu</span>
  696. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 7">iu</span>
  697. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 7">iu</span>
  698. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 8">iu</span>
  699. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 8">iu</span>
  700. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 9">iu</span>
  701. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 9">iu</span>
  702. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 10">iu</span>
  703. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 10">iu</span>
  704. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 11">iu</span>
  705. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 11">iu</span>
  706. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 13">iu</span>
  707. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 13">iu</span>
  708. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 16">iu</span>
  709. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 16">iu</span>
  710. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 17">
  711. <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
  712. <span v-if="$store.getters.user.template_info.org_id ==10644">U</span>
  713. </span>
  714. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 17">
  715. <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
  716. <span v-if="$store.getters.user.template_info.org_id ==10644">U</span>
  717. </span>
  718. <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 14">
  719. <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
  720. <span v-if="$store.getters.user.template_info.org_id ==10644"> iu</span>
  721. </span>
  722. <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 14">
  723. <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
  724. <span v-if="$store.getters.user.template_info.org_id ==10644"> iu</span>
  725. </span>
  726. </p>
  727. <p>
  728. 钙:<span v-if="patient.prescription!=null&&patient.prescription">{{patient.prescription.calcium }} (mmol/L)</span>
  729. <span v-if="patient.prescription==null&&patient.dialysis_solution!=null">{{patient.dialysis_solution.calcium }}(mmol/L)</span>
  730. </p>
  731. <p v-if="$store.getters.user.template_info.org_id==10644">
  732. 备注:<span style="color:red" v-if="patient.prescription!=null&&patient.prescription">{{patient.prescription.remark }} </span>
  733. </p>
  734. </div>
  735. </div>
  736. </div>
  737. <!-- <div class="online" style="flex:0.5;" v-show="computeState(patient) != 4">
  738. <p :class="stateColor(patient)">{{ stateText(patient) }}</p>
  739. </div> -->
  740. <div v-if="newIndex == 1" style="display: flex; flex-direction: column">
  741. <div
  742. v-if="
  743. (patient.prescription == null ||
  744. patient.prescription.creater == 0) &&
  745. newIndex == 1
  746. "
  747. class="prescription"
  748. @click.stop="open2(patient)"
  749. >
  750. 开处方
  751. </div>
  752. <div
  753. v-if="
  754. patient.dialywater_machineis_order == null &&
  755. newIndex == 1
  756. "
  757. class="prescription"
  758. @click.stop="open10(patient,index)"
  759. >
  760. 透析上机
  761. </div>
  762. <div
  763. v-if="((patient.dobule_check&&patient.dobule_check.creater == 0 || patient.dobule_check&&patient.dobule_check.modifier == 0) && newIndex == 1) "
  764. class="summary"
  765. @click.stop="open11(patient)"
  766. >
  767. 双人核对
  768. </div>
  769. </div>
  770. <div v-if="newIndex == 2" style="display: flex; flex-direction: column">
  771. <div
  772. v-if="patient.treatment_summary == null && newIndex == 2"
  773. class="summary"
  774. @click.stop="open1(patient)"
  775. >
  776. 开小结
  777. </div>
  778. <div
  779. v-if="patient.dobule_check==null && newIndex ==2"
  780. class="summary"
  781. @click.stop="open11(patient)"
  782. >
  783. 双人核对
  784. </div>
  785. <div
  786. v-if="patient.dialysis_order != null && patient.dialysis_order.stage ==1 && newIndex == 2"
  787. class="summary"
  788. @click.stop="open12(patient)"
  789. >
  790. 透析下机
  791. </div>
  792. </div>
  793. <div v-if="information.length == 0">
  794. <div
  795. class="disinfect"
  796. v-if="
  797. patient.dialysis_order != null &&
  798. patient.dialysis_order.stage == 2 &&
  799. is_run == 1
  800. "
  801. @click.stop="toDisInfect(patient)"
  802. >
  803. 消毒
  804. </div>
  805. </div>
  806. <div v-if="information.length > 0">
  807. <div
  808. class="disinfect"
  809. v-if="
  810. patient.dialysis_order != null &&
  811. patient.dialysis_order.stage == 2 &&
  812. is_run == 1 &&
  813. getInformation(
  814. patient.bed_id,
  815. patient.schedule_date,
  816. patient.schedule_type,
  817. patient.patient_id
  818. ) == 0
  819. "
  820. @click.stop="toDisInfect(patient)"
  821. >
  822. 消毒
  823. </div>
  824. <div
  825. class="disinfectOne"
  826. v-if="
  827. patient.dialysis_order != null &&
  828. patient.dialysis_order.stage == 2 &&
  829. is_run == 1 &&
  830. getInformation(
  831. patient.bed_id,
  832. patient.schedule_date,
  833. patient.schedule_type,
  834. patient.patient_id
  835. ) == 1
  836. "
  837. @click.stop="toDisInfect(patient)"
  838. >
  839. 消毒
  840. </div>
  841. </div>
  842. </div>
  843. <!-- </router-link> -->
  844. <div
  845. class="function"
  846. :class="functionColor(patient)"
  847. :id="modeColor(patient.mode_id)"
  848. >
  849. <ul>
  850. <li>
  851. <span class="iconfont">&#xe6f7;</span>
  852. 班次 : {{ timeTypeText(patient) }}
  853. </li>
  854. <li>
  855. <span class="iconfont">&#xe6de;</span>
  856. 床位号 :
  857. <span v-if="$store.getters.user.template_info.org_id ==10340">
  858. <span style="color:blue" v-if="patient.dialysis_order && patient.dialysis_order.device_number!=undefined && (patient.dialysis_order.device_number.id == 4414 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4449 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4456 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4416 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4448 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4468 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4451 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4457 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4495)">
  859. {{
  860. patient.dialysis_order &&
  861. patient.dialysis_order.device_number &&
  862. patient.dialysis_order.device_number.number.length > 0
  863. ? patient.dialysis_order.device_number.number
  864. : patient.device_number.number
  865. }}
  866. </span>
  867. <span v-else>
  868. {{
  869. patient.dialysis_order &&
  870. patient.dialysis_order.device_number &&
  871. patient.dialysis_order.device_number.number.length > 0
  872. ? patient.dialysis_order.device_number.number
  873. : patient.device_number.number
  874. }}
  875. </span>
  876. </span>
  877. <span v-if="$store.getters.user.template_info.org_id!=10340">
  878. {{
  879. patient.dialysis_order &&
  880. patient.dialysis_order.device_number &&
  881. patient.dialysis_order.device_number.number.length > 0
  882. ? patient.dialysis_order.device_number.number
  883. : patient.device_number.number
  884. }}
  885. </span>
  886. </li>
  887. <li>
  888. <span class="iconfont">&#xe6f6;</span>
  889. 透析模式 :
  890. <span v-if="patient.mode_id">{{
  891. $store.getters.treatment_mode[patient.mode_id].name
  892. }}</span>
  893. </li>
  894. </ul>
  895. </div>
  896. </div>
  897. <van-popup
  898. title="透析处方"
  899. v-model="showPopup2"
  900. class="appPopup"
  901. get-container="#app"
  902. :overlay="true"
  903. :close-on-click-overlay="false"
  904. >
  905. <prescription-dialog
  906. v-if="prescription_dialog_reset == true"
  907. :patient_prop="patient"
  908. :solution_prop="solution"
  909. :machines_prop="devices"
  910. :config="config"
  911. :prescription_prop="prescription"
  912. @finish="closePrescriptionDialog"
  913. :operators="operators"
  914. :types="goodTypes"
  915. :info="goodInfos"
  916. :status="status"
  917. :targetAdvices="longAdvices"
  918. :waitUploadAdvices="waitUploadAdvices"
  919. :is_open="is_open"
  920. @close="closePrescriptionDialog"
  921. @prescription="prescriptionFunc"
  922. :admin_users_prop="admin_users"
  923. :predialysis="predialysis_evaluation"
  924. :last_predialysis="last_predialysis_evaluation"
  925. :record="assessment_after_dislysis"
  926. :last_record="last_assessment_after_dislysis"
  927. :last_prescription="last_prescription"
  928. :dry_weight="dryWeight"
  929. :system_prescription="system_prescription"
  930. :schedual="schedual"
  931. :his_is_open="his_is_open"
  932. :prescription_open="prescription_open"
  933. :stockType="stockType"
  934. @longSolution="longSolutionFunc"
  935. :admin_map="admin_user_map"
  936. :admin_staff="admin_staff_map"
  937. :lastDialysisPrescription="lastDialysisPrescription"
  938. ref="prescription_dialog"
  939. ></prescription-dialog>
  940. </van-popup>
  941. <van-popup
  942. title="治疗小结"
  943. v-model="showPopup1"
  944. class="appPopup"
  945. get-container="#app"
  946. :overlay="true"
  947. :close-on-click-overlay="false"
  948. >
  949. <treatment-dialog
  950. :patient_prop="patient"
  951. :record="treatment_summary"
  952. @did_update="updateTreatmentOf"
  953. @close="closeTreatmentOf"
  954. ref="treatment_dialog"
  955. ></treatment-dialog>
  956. </van-popup>
  957. <van-popup
  958. title="透析上机"
  959. v-model="showPopup10"
  960. class="appPopup"
  961. get-container="#app"
  962. :overlay="true"
  963. :close-on-click-overlay="false"
  964. >
  965. <computer-dialog
  966. v-if="computer_dialog_reset == true"
  967. :schedule="schedual"
  968. :patient_prop="patient"
  969. :record="dialysis_order"
  970. :admins="admin_users"
  971. :device_numbers="device_numbers"
  972. :admin_map="admin_user_map"
  973. :admin_staff="admin_staff_map"
  974. :device_number_map="device_number_map"
  975. @did_add_monitor="didAddMonitor"
  976. @close="closeComputerOf"
  977. @open="closeOpen"
  978. :stockType="stockType"
  979. :last_order="lastOrder"
  980. :patient_index="patient_index"
  981. ref="computer_dialog"
  982. ></computer-dialog>
  983. </van-popup>
  984. <van-popup
  985. title="双人核对"
  986. v-model="showPopup11"
  987. class="appPopup"
  988. get-container="#app"
  989. :overlay="true"
  990. :close-on-click-overlay="false"
  991. >
  992. <dobule-dialog
  993. v-if="dobule_dialog_reset == true"
  994. :patient_prop="patient"
  995. :record="double_check"
  996. :admin_users_prop="admin_users"
  997. :admin_map="admin_user_map"
  998. @did_update="closeDoubleCheck"
  999. @close="closeDoubleCheck"
  1000. :admins="admin_users"
  1001. :predialysis="predialysis_evaluation"
  1002. :prescription_prop="prescription"
  1003. :dialysis_order="dialysis_order"
  1004. ></dobule-dialog>
  1005. </van-popup>
  1006. <van-popup
  1007. title="透析下机"
  1008. v-model="showPopup12"
  1009. :overlay="true"
  1010. :close-on-click-overlay="false"
  1011. v-if="dialysis_order_set == true"
  1012. >
  1013. <plane-dialog
  1014. :patient_prop="patient"
  1015. :record="dialysis_order"
  1016. :last_monitor_record="last_monitor_record"
  1017. :admins="admin_users"
  1018. :admin_map="admin_user_map"
  1019. :prescription_prop="prescription"
  1020. @did_off="closeDialysisOffclose"
  1021. @close="closeDialysisOffclose"
  1022. :last_order="lastOrder"
  1023. >
  1024. </plane-dialog>
  1025. </van-popup>
  1026. <!-- 消毒弹窗 -->
  1027. <van-popup
  1028. v-if="$store.getters.user.template_info.org_id==9671"
  1029. title="消毒时间"
  1030. v-model="showPlan"
  1031. class="appPopup"
  1032. get-container="#app"
  1033. :overlay="true"
  1034. :close-on-click-overlay="false"
  1035. >
  1036. <div class="Dialog">
  1037. <div class="DialogTit">
  1038. <span @click="close()" class="iconfont">&#xe6e9;</span>
  1039. <h1 class="name">消毒时间</h1>
  1040. <span class="success" @click="commitInfo" v-show="showOne">保存</span>
  1041. <span class="success" @click="updateInfo" v-show="showTwo">修改</span>
  1042. </div>
  1043. <div class="DialogContent">
  1044. <div class="item">
  1045. <h2 class="name">{{ bed_name }}</h2>
  1046. <div class="content">
  1047. <span class="text" style="width: 100px"></span>
  1048. </div>
  1049. </div>
  1050. <div class="item">
  1051. <h2 class="name">开始消毒时间</h2>
  1052. <div class="content">
  1053. <span
  1054. class="text"
  1055. style="width: 100px"
  1056. @click="selectStartTimeAction"
  1057. >{{ start_time_str }}</span
  1058. >
  1059. <span class="iconfont">&#xe6f9;</span>
  1060. </div>
  1061. </div>
  1062. <div class="item">
  1063. <label class="name" for="dtl">消毒时长</label>
  1064. <div class="content">
  1065. <input
  1066. type="number"
  1067. @click="newClick($event)"
  1068. @focus="inputFocus"
  1069. id="dtl"
  1070. v-model="disinfec_time"
  1071. @change="inputBlur"
  1072. />
  1073. </div>
  1074. </div>
  1075. <div class="item">
  1076. <h2 class="name">结束消毒时间</h2>
  1077. <div class="content">
  1078. <span
  1079. class="text"
  1080. style="width: 100px"
  1081. @click="selectEndTimeAction"
  1082. >{{ select_time_str }}</span
  1083. >
  1084. <span class="iconfont">&#xe6f9;</span>
  1085. </div>
  1086. </div>
  1087. </div>
  1088. <mt-datetime-picker
  1089. class="double_check_dialog"
  1090. ref="start_time_picker"
  1091. type="datetime"
  1092. @confirm="didSelectStartTime"
  1093. v-model="start_time"
  1094. ></mt-datetime-picker>
  1095. <mt-datetime-picker
  1096. class="double_check_dialog"
  1097. ref="select_time_picker"
  1098. type="datetime"
  1099. @confirm="didSelectEndTime"
  1100. v-model="select_time"
  1101. ></mt-datetime-picker>
  1102. </div>
  1103. </van-popup>
  1104. <van-popup
  1105. v-if="$store.getters.user.template_info.org_id!=9671"
  1106. title="消毒时间"
  1107. v-model="showPlan"
  1108. class="appPopup"
  1109. get-container="#app"
  1110. :overlay="true"
  1111. :close-on-click-overlay="false"
  1112. >
  1113. <div class="Dialog">
  1114. <div class="DialogTit">
  1115. <span @click="close()" class="iconfont">&#xe6e9;</span>
  1116. <h1 class="name">消毒时间</h1>
  1117. <span class="success" @click="commitInfoOne" v-show="showOne">保存</span>
  1118. <span class="success" @click="updateInfoOne" v-show="showTwo">修改</span>
  1119. </div>
  1120. <div class="DialogContent">
  1121. <div class="item">
  1122. <h2 class="name">{{ bed_name }}</h2>
  1123. <div class="content">
  1124. <span class="text" style="width: 100px"></span>
  1125. </div>
  1126. </div>
  1127. <div class="item">
  1128. <h2 class="name">开始消毒时间</h2>
  1129. <div class="content">
  1130. <span
  1131. class="text"
  1132. style="width: 100px"
  1133. @click="selectStartTimeAction"
  1134. >{{ start_time_str }}</span
  1135. >
  1136. <span class="iconfont">&#xe6f9;</span>
  1137. </div>
  1138. </div>
  1139. <div class="item">
  1140. <label class="name" for="dtl">消毒时长</label>
  1141. <div class="content">
  1142. <input
  1143. type="number"
  1144. @click="newClick($event)"
  1145. @focus="inputFocus"
  1146. id="dtl"
  1147. v-model="disinfec_time"
  1148. @change="inputBlur"
  1149. />
  1150. </div>
  1151. </div>
  1152. <div class="item">
  1153. <h2 class="name">结束消毒时间</h2>
  1154. <div class="content">
  1155. <span
  1156. class="text"
  1157. style="width: 100px"
  1158. @click="selectEndTimeAction"
  1159. >{{ select_time_str }}</span
  1160. >
  1161. <span class="iconfont">&#xe6f9;</span>
  1162. </div>
  1163. </div>
  1164. <div class="item">
  1165. <h2 class="name">机表(床单元、床旁桌)消毒方式:</h2>
  1166. <div class="content" @click="showPicker = true">
  1167. <span
  1168. class="text"
  1169. style="width: 100px"
  1170. >{{ kuangvalue }}</span
  1171. >
  1172. <span class="iconfont">&#xe6f9;</span>
  1173. </div>
  1174. </div>
  1175. <div class="item">
  1176. <h2 class="name">机表(床单元、床旁桌)消毒液:</h2>
  1177. <div class="content" @click="showPicker2 = true">
  1178. <span
  1179. class="text"
  1180. style="width: 100px"
  1181. >{{ kuangvalue2 }}</span
  1182. >
  1183. <span class="iconfont">&#xe6f9;</span>
  1184. </div>
  1185. </div>
  1186. <div class="item">
  1187. <h2 class="name">液路消毒方式:</h2>
  1188. <div class="content" @click="showPicker3 = true">
  1189. <span
  1190. class="text"
  1191. style="width: 100px"
  1192. >{{ kuangvalue3 }}</span
  1193. >
  1194. <span class="iconfont">&#xe6f9;</span>
  1195. </div>
  1196. </div>
  1197. <div class="item">
  1198. <h2 class="name">液路消毒液:</h2>
  1199. <div class="content" @click="showPicker4 = true">
  1200. <span
  1201. class="text"
  1202. style="width: 100px"
  1203. >{{ kuangvalue4 }}</span
  1204. >
  1205. <span class="iconfont">&#xe6f9;</span>
  1206. </div>
  1207. </div>
  1208. <div class="item">
  1209. <h2 class="name">床单位更换:</h2>
  1210. <div class="content" @click="showPicker5 = true">
  1211. <span
  1212. class="text"
  1213. style="width: 100px"
  1214. >{{ kuangvalue5 }}</span
  1215. >
  1216. <span class="iconfont">&#xe6f9;</span>
  1217. </div>
  1218. </div>
  1219. <div class="item">
  1220. <h2 class="name">透析机消毒液(更换):</h2>
  1221. <div class="content" @click="showPicker6 = true">
  1222. <span
  1223. class="text"
  1224. style="width: 100px"
  1225. >{{ kuangvalue6 }}</span
  1226. >
  1227. <span class="iconfont">&#xe6f9;</span>
  1228. </div>
  1229. </div>
  1230. <div class="item">
  1231. <h2 class="name">空气滤网清洁:</h2>
  1232. <div class="content" @click="showPicker7 = true">
  1233. <span
  1234. class="text"
  1235. style="width: 100px"
  1236. >{{ kuangvalue7 }}</span
  1237. >
  1238. <span class="iconfont">&#xe6f9;</span>
  1239. </div>
  1240. </div>
  1241. <div class="item">
  1242. <h2 class="name">细菌过滤器(更换):</h2>
  1243. <div class="content" @click="showPicker8 = true">
  1244. <span
  1245. class="text"
  1246. style="width: 100px"
  1247. >{{ kuangvalue8 }}</span
  1248. >
  1249. <span class="iconfont">&#xe6f9;</span>
  1250. </div>
  1251. </div>
  1252. </div>
  1253. <mt-datetime-picker
  1254. class="double_check_dialog"
  1255. ref="start_time_picker"
  1256. type="datetime"
  1257. @confirm="didSelectStartTime"
  1258. v-model="start_time"
  1259. ></mt-datetime-picker>
  1260. <mt-datetime-picker
  1261. class="double_check_dialog"
  1262. ref="select_time_picker"
  1263. type="datetime"
  1264. @confirm="didSelectEndTime"
  1265. v-model="select_time"
  1266. ></mt-datetime-picker>
  1267. <!-- 选择框 -->
  1268. <van-popup v-model:show="showPicker" round position="bottom">
  1269. <van-picker
  1270. show-toolbar
  1271. :columns="disinfectType"
  1272. placeholder="请选择"
  1273. @cancel="showPicker=false"
  1274. @confirm="onConfirm"
  1275. />
  1276. </van-popup>
  1277. <van-popup v-model:show="showPicker2" round position="bottom">
  1278. <van-picker
  1279. show-toolbar
  1280. :columns="disinfectantType"
  1281. @cancel="showPicker2=false"
  1282. @confirm="onConfirmOne"
  1283. />
  1284. </van-popup>
  1285. <van-popup v-model:show="showPicker3" round position="bottom">
  1286. <van-picker
  1287. show-toolbar
  1288. :columns="sterilizeType"
  1289. @cancel="showPicker3=false"
  1290. @confirm="onConfirmTwo"
  1291. />
  1292. </van-popup>
  1293. <van-popup v-model:show="showPicker4" round position="bottom">
  1294. <van-picker
  1295. show-toolbar
  1296. :columns="fluidPathType"
  1297. @cancel="showPicker4=false"
  1298. @confirm="onConfirmThree"
  1299. />
  1300. </van-popup>
  1301. <van-popup v-model:show="showPicker5" round position="bottom">
  1302. <van-picker
  1303. show-toolbar
  1304. :columns="bedType"
  1305. @cancel="showPicker5=false"
  1306. @confirm="onConfirmFour"
  1307. />
  1308. </van-popup>
  1309. <van-popup v-model:show="showPicker6" round position="bottom">
  1310. <van-picker
  1311. show-toolbar
  1312. :columns="listOne"
  1313. @cancel="showPicker6=false"
  1314. @confirm="onConfirmFive"
  1315. />
  1316. </van-popup>
  1317. <van-popup v-model:show="showPicker7" round position="bottom">
  1318. <van-picker
  1319. show-toolbar
  1320. :columns="listTwo"
  1321. @cancel="showPicker7=false"
  1322. @confirm="onConfirmSix"
  1323. />
  1324. </van-popup>
  1325. <van-popup v-model:show="showPicker8" round position="bottom">
  1326. <van-picker
  1327. show-toolbar
  1328. :columns="listThree"
  1329. @cancel="showPicker8=false"
  1330. @confirm="onConfirmSeven"
  1331. />
  1332. </van-popup>
  1333. </div>
  1334. </van-popup>
  1335. </div>
  1336. </template>
  1337. <script>
  1338. import { uParseTime, jsGetAge } from '@/utils/tools'
  1339. import { parseTime } from '@/utils'
  1340. import { showToast } from 'vant';
  1341. import { setDialysisOrWaitSelectedConfig } from '@/utils/data_config'
  1342. import TreatmentDialog from './dialog/TreatmentDialog'
  1343. import PrescriptionDialog from './dialog/PrescriptionDialog'
  1344. import ComputerDialog from './dialog/ComputerDialog.vue'
  1345. import DobuleDialog from './dialog/DoubleDialog.vue'
  1346. import PlaneDialog from './dialog/PlaneDialog.vue'
  1347. import {
  1348. CreateGroupAdvice,
  1349. dialysisGlobalConfig,
  1350. getDialysisRecord,
  1351. getPatientId,
  1352. getDialysisRecordOrde
  1353. } from '@/api/dialysis'
  1354. const moment = require('moment')
  1355. import { getDisInfectionTime, SaveDisinfetionInfo,SaveDisinfetionInfoOne } from '@/api/manage'
  1356. import { GetRemindLongAdviceOne } from '@/api/advice'
  1357. import { Console, info } from 'console'
  1358. export default {
  1359. name: 'PatientBox',
  1360. components: {
  1361. TreatmentDialog,
  1362. PrescriptionDialog,
  1363. ComputerDialog,
  1364. DobuleDialog,
  1365. PlaneDialog
  1366. },
  1367. props: {
  1368. patients: Array,
  1369. newIndex: Number,
  1370. is_run: Number,
  1371. information: Array
  1372. },
  1373. data () {
  1374. return {
  1375. date: '',
  1376. parent_id: '',
  1377. showPopup1: false,
  1378. showPopup2: false,
  1379. showPopup3: false,
  1380. showPopup10: false,
  1381. showPopup11: false,
  1382. showPopup12: false,
  1383. config: {}, // 库存自动扣减
  1384. operators: [], // 操作人
  1385. patient: {}, // 患者信息
  1386. schedual: {}, // 患者排班信息
  1387. prescription: {}, // 透析处方
  1388. solution: {}, // 透析方案
  1389. last_prescription: {},
  1390. system_prescription: {}, // 系统透析模版
  1391. thoroug_dialog_reset: true,
  1392. prescription_dialog_reset: true,
  1393. computer_dialog_reset: true,
  1394. dobule_dialog_reset: true,
  1395. monit_dialog_reset: true,
  1396. dialysis_order_set:true,
  1397. showPicker:false,
  1398. showPicker2:false,
  1399. showPicker3:false,
  1400. showPicker4:false,
  1401. showPicker5:false,
  1402. showPicker6:false,
  1403. showPicker7:false,
  1404. showPicker8:false,
  1405. receiver_treatment_access: {}, // 接诊评估
  1406. predialysis_evaluation: {}, // 透前评估
  1407. last_predialysis_evaluation: {}, // 上次透前评估
  1408. doctor_advices: [], // 临时医嘱
  1409. advice_groups: [], // 对 doctor_advices 进行分组后的组列表,元素为 { group_no, start_time, advices:[advice object] }
  1410. double_check: {}, // 双人核对
  1411. assessment_after_dislysis: {}, // 透后评估
  1412. last_assessment_after_dislysis: {}, // 上次透后评估
  1413. lastDialysisPrescription:{},//上次透析处方,不按透析模式
  1414. treatment_summary: {}, // 治疗小结
  1415. monitor_records: [], // 透析监测
  1416. special_premission: [],
  1417. last_monitor_record: {
  1418. id: 0,
  1419. operate_time: new Date().getTime(),
  1420. sodium_concentration: '',
  1421. dialysate_temperature: ''
  1422. }, // 上一次透析的监测记录
  1423. dialysis_order: {}, // 透析记录
  1424. admin_users: [], // 系统用户列表
  1425. devices: [], // 设备
  1426. device_numbers: [], // 床位号
  1427. admin_user_map: {}, // {user_id: admin_user object}
  1428. device_map: {}, // {device_id: device}
  1429. device_number_map: {}, // {device_number_id: device_number}
  1430. scrollTop: '',
  1431. goTopShow: false,
  1432. goodTypes: [],
  1433. goodInfos: [],
  1434. dryWeight: {},
  1435. longAdvices: [],
  1436. waitUploadAdvices: [],
  1437. is_open: 0,
  1438. prescription_open: 0,
  1439. targetAdvices: [],
  1440. status: '',
  1441. patientid: 0,
  1442. dialyzerPerfusionApparatus: [],
  1443. // is_run: 0,
  1444. showPlan: false,
  1445. start_time_str: '',
  1446. start_time: new Date(),
  1447. select_time: new Date(),
  1448. select_time_str: '',
  1449. bed_name: '',
  1450. bed_id: '',
  1451. schedule_type: '',
  1452. schedule_date: '',
  1453. schedule_week: '',
  1454. disinfec_time: '',
  1455. end_time: '',
  1456. zone_id: '',
  1457. patient_id: '',
  1458. mode_id: '',
  1459. planStatus: 0,
  1460. showOne: true,
  1461. showTwo: false,
  1462. end_time_one: '',
  1463. his_is_open: 0,
  1464. stockType: [],
  1465. admin_staff_map: {},
  1466. puncture_point_haematomas: [
  1467. { id: 1, name: '有' },
  1468. { id: 2, name: '无' }
  1469. ],
  1470. lastOrder: {},
  1471. patient_index: 0,
  1472. columns : [
  1473. { text: '杭州', value: 'Hangzhou' },
  1474. { text: '宁波', value: 'Ningbo' },
  1475. { text: '温州', value: 'Wenzhou' },
  1476. { text: '绍兴', value: 'Shaoxing' },
  1477. { text: '湖州', value: 'Huzhou' },
  1478. ],
  1479. kuangvalue:'',
  1480. kuangvalue2:'',
  1481. kuangvalue3:"",
  1482. kuangvalue4:"",
  1483. kuangvalue5:"",
  1484. kuangvalue6:"",
  1485. kuangvalue7:"",
  1486. kuangvalue8:"",
  1487. // 机表消毒方式
  1488. disinfectType: [
  1489. { value: 0, text: "/" },
  1490. { value: 1, text: "擦拭" },
  1491. { value: 2, text: "化学消毒" }
  1492. ],
  1493. // 基表消毒液
  1494. disinfectantType: [
  1495. { value: 0, text: "/" },
  1496. { value: 1, text: "0.22%季铵盐" },
  1497. { value: 2, text: "500mg/l含氯消毒剂" },
  1498. { value: 3, text: "1000mg/l含氯消毒剂" },
  1499. { value: 4, text: "1500mg/l含氯消毒剂" },
  1500. { value: 5, text:"消毒湿巾"},
  1501. { value: 6, text:"1.85g/L季铵盐"},
  1502. { value:7, text:"2000mg/l含氯消毒剂"}
  1503. ],
  1504. // 夜路消毒方式
  1505. sterilizeType: [
  1506. { value: 0, text: "/" },
  1507. { value: 1, text: "热化学消毒" },
  1508. { value: 2, text: "化学消毒 + 除钙" },
  1509. { value: 3, text: "热化学消毒 + 除钙" },
  1510. { value: 4, text: "热消毒" },
  1511. { value: 5, text: "化学消毒" },
  1512. { value: 6, text: "除钙" },
  1513. { value: 7, text: "清洗" }
  1514. ],
  1515. // 夜路消毒液
  1516. fluidPathType: [
  1517. { value: 0, text: "/" },
  1518. { value: 1, text: "20%柠檬酸" },
  1519. { value: 2, text: "25%柠檬酸" },
  1520. { value: 3, text: "50%柠檬酸" },
  1521. { value: 4, text: "50%柠檬酸 + 5%次氯酸钠" },
  1522. { value: 5, text: "20%柠檬酸 + 10%冰醋酸" },
  1523. { value: 6, text: "0.2%过氧化乙酸" },
  1524. { value: 7, text: "10%冰醋酸" },
  1525. { value: 8, text: "50%冰醋酸" },
  1526. { value: 9, text: "5%次氯酸钠" },
  1527. { value: 10,text:"25%的柠檬酸+5%次氯酸钠"},
  1528. { value: 11,text:"20%柠檬酸+5%次氯酸钠"}
  1529. ],
  1530. // 床单位更换
  1531. bedType: [
  1532. { value: 0, text: "/" },
  1533. { value: 1, text: "床单" },
  1534. { value: 2, text: "被套" },
  1535. { value: 3, text: "枕套" },
  1536. ],
  1537. // 床单位更换
  1538. listOne: [
  1539. { value: 1, text: "更换" },
  1540. { value:2,text:"未更换"},
  1541. ],
  1542. listTwo: [
  1543. { value: 1, text: "清洁" },
  1544. { value: 2, text:"未清洁"},
  1545. ],
  1546. listThree: [
  1547. { value: 1, text: "更换" },
  1548. { value: 2, text:"未更换"},
  1549. ],
  1550. timenow:0,
  1551. last_befor:{},
  1552. dryWeightList:[],
  1553. first_monitor:{},
  1554. last_monitor:{},
  1555. }
  1556. },
  1557. methods: {
  1558. getTimeOne (time) {
  1559. return uParseTime(time, '{y}-{m}-{d}')
  1560. },
  1561. getTimeTwo (time) {
  1562. return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
  1563. },
  1564. open1 (patient) {
  1565. let date = patient.schedule_date
  1566. let patient_id = patient.patient_id
  1567. this.date = date
  1568. this.patient_id = patient_id
  1569. this.requestDialysisRecord(date, patient_id, 1)
  1570. },
  1571. open2 (patient) {
  1572. let date = patient.schedule_date
  1573. let patient_id = patient.patient_id
  1574. this.date = date
  1575. this.patient_id = patient_id
  1576. this.requestDialysisRecord(date, patient_id, 2)
  1577. this.requestLongAdvice()
  1578. },
  1579. open10 (patient, index) {
  1580. console.log('patinet23323223', index)
  1581. let date = patient.schedule_date
  1582. let patient_id = patient.patient_id
  1583. this.date = date
  1584. this.patient_id = patient_id
  1585. this.patient_index = index
  1586. this.requestDialysisRecord(date, patient_id, 10)
  1587. },
  1588. open11 (patient) {
  1589. let date = patient.schedule_date
  1590. let patient_id = patient.patient_id
  1591. this.date = date
  1592. this.patient_id = patient_id
  1593. this.requestDialysisRecord(date, patient_id, 11)
  1594. },
  1595. open12 (patient) {
  1596. let date = patient.schedule_date
  1597. let patient_id = patient.patient_id
  1598. this.date = date
  1599. this.patient_id = patient_id
  1600. this.requestDialysisRecord(date, patient_id, 12)
  1601. },
  1602. requestDialysisRecord (date, patient_id, newType) {
  1603. var dateStr = parseTime(date, '{y}-{m}-{d}')
  1604. var params = {
  1605. patient_id: patient_id,
  1606. date: dateStr
  1607. }
  1608. this.advice_groups = []
  1609. this.doctor_advices = []
  1610. getDialysisRecord(params).then((rs) => {
  1611. var resp = rs.data
  1612. if (resp.state == 1) {
  1613. var waitstoredata = this.$store.getters.waitscheduals
  1614. this.stockType = resp.data.stockType
  1615. var lastOrder = resp.data.lastOrder
  1616. this.lastOrder = lastOrder
  1617. var waitscheduals = waitstoredata.waitscheduals
  1618. var storedata = this.$store.getters.scheduals
  1619. var scheduals = storedata.scheduals
  1620. var patient = resp.data.patient // 患者信息
  1621. var schedual = resp.data.schedual // 患者排班信息
  1622. var prescription = resp.data.prescription // 透析处方
  1623. var solution = resp.data.solution // 透析方案
  1624. var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
  1625. var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
  1626. var doctor_advices = resp.data.doctor_advices // 临时医嘱
  1627. // console.log('临时医嘱33233333333333333333333', doctor_advices)
  1628. var his_advices = resp.data.his_advices
  1629. // console.log('his_doctor_advice32232332h2332232332323', his_advices)
  1630. var last_prescription = resp.data.last_prescription
  1631. var system_prescription = resp.data.system_prescription
  1632. this.dryWeight = resp.data.dry_weight
  1633. this.last_befor = resp.data.lastAssesmentBeforDialysis
  1634. this.first_monitor = resp.data.firstMonitor
  1635. this.last_monitor = resp.data.lastMonitor
  1636. if (prescription == null || prescription.creater == 0) {
  1637. this.isPullData = 1
  1638. } else {
  1639. this.isPullData = 2
  1640. }
  1641. this.goodInfos = resp.data.goodInfos
  1642. if (doctor_advices != null) {
  1643. for (let i = 0; i < doctor_advices.length; i++) {
  1644. doctor_advices[i].origin = 1
  1645. doctor_advices[i]['is_selected'] = 0
  1646. }
  1647. }
  1648. var double_check = resp.data.double_check // 双人核对
  1649. var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
  1650. var treatment_summary = resp.data.treatment_summary // 治疗小结
  1651. var monitor_records = resp.data.monitor_records // 透析监测
  1652. var dialysis_order = resp.data.dialysis_order // 透析记录
  1653. var operators = resp.data.operators // 操作人
  1654. var config = resp.data.config // 库存自动扣减配置
  1655. var types = resp.data.types // 所有系统库存商品类型
  1656. var last_predialysis_evaluation = resp.data.last_predialysis_evaluation // 上一次透前评估
  1657. var last_assessment_after_dislysis =
  1658. resp.data.last_assessment_after_dislysis // 上一次透前评估
  1659. var last_monitor_record = resp.data.last_monitor_record
  1660. //上一次透析处方,不按透析模式
  1661. var lastDialysisPrescription = resp.data.lastDialysisPrescription
  1662. this.lastDialysisPrescription = lastDialysisPrescription
  1663. if (Object.keys(waitstoredata).length > 0) {
  1664. for (let index = 0; index < waitscheduals.length; index++) {
  1665. if (waitscheduals[index].patient_id == patient.id) {
  1666. waitscheduals[index].patient = patient
  1667. waitscheduals[index].assessment_before_dislysis =
  1668. predialysis_evaluation
  1669. waitscheduals[index].prescription = prescription
  1670. waitscheduals[index].doctor_advice = doctor_advices
  1671. waitscheduals[index].dialysis_order = dialysis_order
  1672. }
  1673. }
  1674. this.$store.dispatch('SetWaitScheduals', {
  1675. waitscheduals: waitscheduals
  1676. })
  1677. }
  1678. if (Object.keys(storedata).length > 0) {
  1679. for (let index = 0; index < scheduals.length; index++) {
  1680. if (scheduals[index].patient_id == patient.id) {
  1681. scheduals[index].patient = patient
  1682. scheduals[index].assessment_before_dislysis =
  1683. predialysis_evaluation
  1684. scheduals[index].prescription = prescription
  1685. scheduals[index].doctor_advice = doctor_advices
  1686. scheduals[index].dialysis_order = dialysis_order
  1687. }
  1688. }
  1689. this.$store.dispatch('SetScheduals', { scheduals: scheduals })
  1690. }
  1691. this.system_prescription =
  1692. system_prescription == null ? { id: '' } : system_prescription
  1693. this.patient = patient
  1694. this.schedual = schedual == null ? {} : schedual
  1695. this.prescription = prescription == null ? { id: '' } : prescription
  1696. this.solution = solution == null ? { id: '' } : solution
  1697. this.last_prescription = last_prescription == null ? { id: '' } : last_prescription
  1698. this.receiver_treatment_access =
  1699. receiver_treatment_access == null
  1700. ? { id: '' }
  1701. : receiver_treatment_access
  1702. this.predialysis_evaluation =
  1703. predialysis_evaluation == null ? {} : predialysis_evaluation
  1704. this.last_predialysis_evaluation =
  1705. last_predialysis_evaluation == null
  1706. ? {}
  1707. : last_predialysis_evaluation
  1708. this.doctor_advices = doctor_advices == null ? [] : doctor_advices
  1709. this.config = config
  1710. this.goodTypes = types
  1711. if (this.doctor_advices.length > 0) {
  1712. var group = this.newAdviceGroupObject()
  1713. var initGroupBlock = function (group, advice) {
  1714. group.group_no = advice.groupno
  1715. }
  1716. for (let index = 0; index < this.doctor_advices.length; index++) {
  1717. const advice = this.doctor_advices[index]
  1718. if (advice.groupno == 0) {
  1719. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1720. if (advice.parent_id > 0) {
  1721. if (this.advice_groups.length > 0) {
  1722. var parent_group =
  1723. this.advice_groups[this.advice_groups.length - 1]
  1724. if (parent_group.advices.length > 0) {
  1725. if (parent_group.advices[0].id == advice.parent_id) {
  1726. parent_group.advices.push(advice)
  1727. }
  1728. }
  1729. }
  1730. continue
  1731. } else {
  1732. if (group.group_no > 0) {
  1733. this.advice_groups.push(group)
  1734. group = this.newAdviceGroupObject()
  1735. }
  1736. initGroupBlock(group, advice)
  1737. group.advices.push(advice)
  1738. this.advice_groups.push(group)
  1739. group = this.newAdviceGroupObject()
  1740. continue
  1741. }
  1742. }
  1743. if (group.group_no > 0 && group.group_no != advice.groupno) {
  1744. this.advice_groups.push(group)
  1745. group = this.newAdviceGroupObject()
  1746. }
  1747. if (group.group_no == 0) {
  1748. initGroupBlock(group, advice)
  1749. }
  1750. if (group.group_no == advice.groupno) {
  1751. group.advices.push(advice)
  1752. }
  1753. }
  1754. if (group.group_no > 0) {
  1755. // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1756. this.advice_groups.push(group)
  1757. }
  1758. }
  1759. this.double_check = double_check == null ? { id: '' } : double_check
  1760. this.assessment_after_dislysis =
  1761. assessment_after_dislysis == null
  1762. ? { id: '' }
  1763. : assessment_after_dislysis
  1764. this.last_assessment_after_dislysis =
  1765. last_assessment_after_dislysis == null
  1766. ? { id: '' }
  1767. : last_assessment_after_dislysis
  1768. this.treatment_summary =
  1769. treatment_summary == null ? { id: '' } : treatment_summary
  1770. this.monitor_records = monitor_records == null ? [] : monitor_records
  1771. this.last_monitor_record =
  1772. last_monitor_record == null
  1773. ? this.last_monitor_record
  1774. : last_monitor_record
  1775. this.dialysis_order =
  1776. dialysis_order == null ? { id: '' } : dialysis_order
  1777. this.operators = operators
  1778. // 强制刷新子组件
  1779. this.thoroug_dialog_reset = false
  1780. this.$nextTick(() => {
  1781. this.thoroug_dialog_reset = true
  1782. })
  1783. this.prescription_dialog_reset = false
  1784. this.$nextTick(() => {
  1785. this.prescription_dialog_reset = true
  1786. })
  1787. this.monit_dialog_reset = false
  1788. this.$nextTick(() => {
  1789. this.monit_dialog_reset = true
  1790. })
  1791. this.computer_dialog_reset = false
  1792. this.$nextTick(() => {
  1793. this.computer_dialog_reset = true
  1794. })
  1795. this.dobule_dialog_reset = false
  1796. this.$nextTick(() => {
  1797. this.dobule_dialog_reset = true
  1798. })
  1799. this.dialysis_order_set = false
  1800. this.$nextTick(() => {
  1801. this.dialysis_order_set = true
  1802. })
  1803. this.title = patient.name
  1804. dialysisGlobalConfig().then((rs) => {
  1805. var res = rs.data
  1806. if (res.state == 1) {
  1807. this.admin_users = []
  1808. this.admin_users = res.data.admin_users
  1809. this.devices = res.data.devices
  1810. this.device_numbers = res.data.device_numbers
  1811. var device_map = {}
  1812. for (let index = 0; index < this.devices.length; index++) {
  1813. const device = this.devices[index]
  1814. device_map[device.id] = device
  1815. }
  1816. this.device_map = device_map
  1817. var admin_map = {}
  1818. for (let index = 0; index < this.admin_users.length; index++) {
  1819. const admin = this.admin_users[index]
  1820. admin_map[admin.id] = admin
  1821. }
  1822. this.admin_user_map = admin_map
  1823. var device_number_map = {}
  1824. for (let index = 0; index < this.device_numbers.length; index++) {
  1825. const device_number = this.device_numbers[index]
  1826. device_number_map[device_number.id] = device_number
  1827. }
  1828. this.device_number_map = device_number_map
  1829. }
  1830. this.loading = false
  1831. console.log('o2oo33o3o2o32', newType)
  1832. if (newType == 1) {
  1833. this.showPopup1 = true
  1834. } else if (newType == 2) {
  1835. this.showPopup2 = true
  1836. } else if (newType == 10) {
  1837. this.showPopup10 = true
  1838. } else if (newType == 11) {
  1839. this.showPopup11 = true
  1840. } else if (newType == 12) {
  1841. this.showPopup12 = true
  1842. }
  1843. })
  1844. } else {
  1845. this.$toast({
  1846. message: resp.msg
  1847. })
  1848. this.loading = false
  1849. }
  1850. })
  1851. },
  1852. requestLongAdvice () {
  1853. var dateStr = parseTime(this.date, '{y}-{m}-{d}')
  1854. console.log('dateStr2323223322323', dateStr)
  1855. var params = {
  1856. id: this.patient_id,
  1857. schedule_date: dateStr
  1858. }
  1859. GetRemindLongAdviceOne(params).then((rs) => {
  1860. var resp = rs.data
  1861. if (resp.state == 1) {
  1862. var status = parseInt(resp.data.status)
  1863. this.status = status
  1864. switch (status) {
  1865. case 2:
  1866. var totalAdvice = resp.data.advices
  1867. console.log("日期++++++++++++++",moment().weekday())
  1868. console.log("totalADVICE---------------",totalAdvice)
  1869. var total_day = ""
  1870. if(moment().weekday() == 1){
  1871. total_day = "周一"
  1872. }
  1873. if(moment().weekday() == 2){
  1874. total_day = "周二"
  1875. }
  1876. if(moment().weekday() == 3){
  1877. total_day = "周三"
  1878. }
  1879. if(moment().weekday() == 4){
  1880. total_day = "周四"
  1881. }
  1882. if(moment().weekday() == 5){
  1883. total_day = "周五"
  1884. }
  1885. if(moment().weekday() == 6){
  1886. total_day = "周六"
  1887. }
  1888. if(moment().weekday() == 7){
  1889. total_day = "周日"
  1890. }
  1891. var longAdvicesTwo = resp.data.advices_two
  1892. // console.log("longAdvicesTwo--------------------------",longAdvicesTwo)
  1893. var waitUploadAdvices = []
  1894. if (totalAdvice.length != 0) {
  1895. for (let i = 0; i < totalAdvice.length; i++) {
  1896. totalAdvice[i]['isCheck'] = 1
  1897. }
  1898. for (let i = 0; i < totalAdvice.length; i++) {
  1899. for (let a = 0; a < longAdvicesTwo.length; a++) {
  1900. if (totalAdvice[i].template_id ==longAdvicesTwo[a].template_id) {
  1901. totalAdvice[i]['isCheck'] = 0
  1902. }
  1903. }
  1904. }
  1905. for (let i = 0; i < totalAdvice.length; i++) {
  1906. if (totalAdvice[i].isCheck == 1) {
  1907. waitUploadAdvices.push(totalAdvice[i])
  1908. }
  1909. }
  1910. if(this.$store.getters.user.template_info.org_id == 10449 || this.$store.getters.user.template_info.org_id ==10013){
  1911. for(let i = 0; i < totalAdvice.length; i++){
  1912. if(totalAdvice[i].week_day.indexOf(total_day)!=-1){
  1913. totalAdvice[i].isCheck = 1
  1914. }
  1915. }
  1916. }
  1917. }
  1918. //医嘱提醒
  1919. this.is_open = resp.data.is_open_remind
  1920. // eslint-disable-next-line camelcase
  1921. var his_is_open = resp.data.his_config_open
  1922. // eslint-disable-next-line camelcase
  1923. if (his_is_open === 1) {
  1924. this.is_open = 0
  1925. }
  1926. // eslint-disable-next-line camelcase
  1927. var is_advice_open = resp.data.is_advice_open
  1928. // eslint-disable-next-line camelcase
  1929. if (is_advice_open === 1) {
  1930. this.is_open = 1
  1931. }
  1932. this.longAdvices = totalAdvice
  1933. this.waitUploadAdvices = waitUploadAdvices
  1934. // eslint-disable-next-line camelcase
  1935. var prescription_open = resp.data.prescription_open
  1936. // eslint-disable-next-line camelcase
  1937. this.prescription_open = prescription_open
  1938. break
  1939. }
  1940. } else {
  1941. }
  1942. })
  1943. },
  1944. updateTreatmentOf: function (val) {
  1945. this.showPopup1 = false
  1946. this.treatment_summary = val
  1947. },
  1948. closeTreatmentOf: function () {
  1949. this.showPopup1 = false
  1950. },
  1951. closeComputerOf: function () {
  1952. this.showPopup10 = false
  1953. },
  1954. newAdviceGroupObject: function () {
  1955. return Object.assign(
  1956. {},
  1957. {
  1958. group_no: 0,
  1959. // advice_doctor: 0,
  1960. // start_time: 0,
  1961. advices: []
  1962. // exec_staff: 0,
  1963. // exec_time: 0,
  1964. // checker: 0,
  1965. }
  1966. )
  1967. },
  1968. closePrescriptionDialog: function () {
  1969. this.showPopup2 = false
  1970. },
  1971. prescriptionFunc: function (val, advices) {
  1972. this.prescription = val
  1973. this.newRequestDialysisRecord()
  1974. },
  1975. newRequestDialysisRecord () {
  1976. console.log('处罚法2333232')
  1977. var dateStr = parseTime(this.date, '{y}-{m}-{d}')
  1978. var params = {
  1979. patient_id: this.patient_id,
  1980. date: dateStr
  1981. }
  1982. this.advice_groups = []
  1983. this.doctor_advices = []
  1984. getDialysisRecord(params).then((rs) => {
  1985. var resp = rs.data
  1986. if (resp.state == 1) {
  1987. var waitstoredata = this.$store.getters.waitscheduals
  1988. var waitscheduals = waitstoredata.waitscheduals
  1989. var storedata = this.$store.getters.scheduals
  1990. var scheduals = storedata.scheduals
  1991. var patient = resp.data.patient // 患者信息
  1992. var schedual = resp.data.schedual // 患者排班信息
  1993. var lastOrder = resp.data.lastOrder
  1994. // console.log('lastOrder2333232332wo', lastOrder)
  1995. this.lastOrder = lastOrder
  1996. var prescription = resp.data.prescription // 透析处方
  1997. var solution = resp.data.solution // 透析方案
  1998. var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
  1999. var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
  2000. console.log('我的中国', resp.data.predialysis_evaluation)
  2001. var doctor_advices = resp.data.doctor_advices // 临时医嘱
  2002. var last_prescription = resp.data.last_prescription
  2003. var system_prescription = resp.data.system_prescription
  2004. this.dryWeight = resp.data.dry_weight
  2005. if (prescription == null || prescription.creater == 0) {
  2006. this.isPullData = 1
  2007. } else {
  2008. this.isPullData = 2
  2009. }
  2010. this.goodInfos = resp.data.goodInfos
  2011. if (doctor_advices != null) {
  2012. for (let i = 0; i < doctor_advices.length; i++) {
  2013. doctor_advices[i]['is_selected'] = 0
  2014. }
  2015. }
  2016. var double_check = resp.data.double_check // 双人核对
  2017. var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
  2018. var treatment_summary = resp.data.treatment_summary // 治疗小结
  2019. var monitor_records = resp.data.monitor_records // 透析监测
  2020. var dialysis_order = resp.data.dialysis_order // 透析记录
  2021. var operators = resp.data.operators // 操作人
  2022. var special_premission = resp.data.special_premission // 特殊权限
  2023. var config = resp.data.config // 库存自动扣减配置
  2024. var types = resp.data.types // 所有系统库存商品类型
  2025. var last_predialysis_evaluation =
  2026. resp.data.last_predialysis_evaluation // 上一次透前评估
  2027. var last_assessment_after_dislysis =
  2028. resp.data.last_assessment_after_dislysis // 上一次透前评估
  2029. var last_monitor_record = resp.data.last_monitor_record
  2030. if (Object.keys(waitstoredata).length > 0) {
  2031. for (let index = 0; index < waitscheduals.length; index++) {
  2032. if (waitscheduals[index].patient_id == patient.id) {
  2033. waitscheduals[index].patient = patient
  2034. waitscheduals[index].assessment_before_dislysis =
  2035. predialysis_evaluation
  2036. waitscheduals[index].prescription = prescription
  2037. waitscheduals[index].doctor_advice = doctor_advices
  2038. waitscheduals[index].dialysis_order = dialysis_order
  2039. }
  2040. }
  2041. this.$store.dispatch('SetWaitScheduals', {
  2042. waitscheduals: waitscheduals
  2043. })
  2044. }
  2045. if (Object.keys(storedata).length > 0) {
  2046. for (let index = 0; index < scheduals.length; index++) {
  2047. if (scheduals[index].patient_id == patient.id) {
  2048. scheduals[index].patient = patient
  2049. scheduals[index].assessment_before_dislysis =
  2050. predialysis_evaluation
  2051. scheduals[index].prescription = prescription
  2052. scheduals[index].doctor_advice = doctor_advices
  2053. scheduals[index].dialysis_order = dialysis_order
  2054. }
  2055. }
  2056. this.$store.dispatch('SetScheduals', { scheduals: scheduals })
  2057. }
  2058. this.patient = patient
  2059. this.schedual = schedual == null ? {} : schedual
  2060. this.prescription =
  2061. prescription == null ? { id: '' } : prescription
  2062. this.solution = solution == null ? { id: '' } : solution
  2063. this.last_prescription =
  2064. last_prescription == null ? { id: '' } : last_prescription
  2065. this.system_prescription =
  2066. system_prescription == null ? { id: '' } : system_prescription
  2067. this.receiver_treatment_access =
  2068. receiver_treatment_access == null
  2069. ? { id: '' }
  2070. : receiver_treatment_access
  2071. this.predialysis_evaluation =
  2072. predialysis_evaluation == null ? {} : predialysis_evaluation
  2073. this.last_predialysis_evaluation =
  2074. last_predialysis_evaluation == null
  2075. ? {}
  2076. : last_predialysis_evaluation
  2077. this.doctor_advices = doctor_advices == null ? [] : doctor_advices
  2078. this.special_premission = special_premission
  2079. this.config = config
  2080. this.goodTypes = types
  2081. if (this.doctor_advices.length > 0) {
  2082. var group = this.newAdviceGroupObject()
  2083. var initGroupBlock = function (group, advice) {
  2084. group.group_no = advice.groupno
  2085. }
  2086. for (let index = 0; index < this.doctor_advices.length; index++) {
  2087. const advice = this.doctor_advices[index]
  2088. if (advice.groupno == 0) {
  2089. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  2090. if (advice.parent_id > 0) {
  2091. if (this.advice_groups.length > 0) {
  2092. var parent_group =
  2093. this.advice_groups[this.advice_groups.length - 1]
  2094. if (parent_group.advices.length > 0) {
  2095. if (parent_group.advices[0].id == advice.parent_id) {
  2096. parent_group.advices.push(advice)
  2097. }
  2098. }
  2099. }
  2100. continue
  2101. } else {
  2102. if (group.group_no > 0) {
  2103. this.advice_groups.push(group)
  2104. group = this.newAdviceGroupObject()
  2105. }
  2106. initGroupBlock(group, advice)
  2107. group.advices.push(advice)
  2108. this.advice_groups.push(group)
  2109. group = this.newAdviceGroupObject()
  2110. continue
  2111. }
  2112. }
  2113. if (group.group_no > 0 && group.group_no != advice.groupno) {
  2114. this.advice_groups.push(group)
  2115. group = this.newAdviceGroupObject()
  2116. }
  2117. if (group.group_no == 0) {
  2118. initGroupBlock(group, advice)
  2119. }
  2120. if (group.group_no == advice.groupno) {
  2121. group.advices.push(advice)
  2122. }
  2123. }
  2124. if (group.group_no > 0) {
  2125. // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  2126. this.advice_groups.push(group)
  2127. }
  2128. // console.log(this.advice_groups)
  2129. }
  2130. this.double_check =
  2131. double_check == null ? { id: '' } : double_check
  2132. this.assessment_after_dislysis =
  2133. assessment_after_dislysis == null
  2134. ? { id: '' }
  2135. : assessment_after_dislysis
  2136. this.last_assessment_after_dislysis =
  2137. last_assessment_after_dislysis == null
  2138. ? { id: '' }
  2139. : last_assessment_after_dislysis
  2140. this.treatment_summary =
  2141. treatment_summary == null ? { id: '' } : treatment_summary
  2142. this.monitor_records =
  2143. monitor_records == null ? [] : monitor_records
  2144. this.last_monitor_record =
  2145. last_monitor_record == null
  2146. ? this.last_monitor_record
  2147. : last_monitor_record
  2148. this.dialysis_order =
  2149. dialysis_order == null ? { id: '' } : dialysis_order
  2150. this.operators = operators
  2151. this.dryWeightList = resp.data.dryWeightList
  2152. this.title = patient.name
  2153. // 强制刷新子组件
  2154. this.thoroug_dialog_reset = false
  2155. this.$nextTick(() => {
  2156. this.thoroug_dialog_reset = true
  2157. })
  2158. this.prescription_dialog_reset = false
  2159. this.$nextTick(() => {
  2160. this.prescription_dialog_reset = true
  2161. })
  2162. this.monit_dialog_reset = false
  2163. this.$nextTick(() => {
  2164. this.monit_dialog_reset = true
  2165. })
  2166. } else {
  2167. this.$toast({
  2168. message: resp.msg
  2169. })
  2170. this.loading = false
  2171. }
  2172. })
  2173. .catch((error) => {
  2174. this.loading = false
  2175. console.log('error', error)
  2176. this.$toast({
  2177. message: '请求超时'
  2178. })
  2179. })
  2180. },
  2181. longSolutionFunc: function (val) {
  2182. this.solution = val
  2183. },
  2184. //
  2185. getUnReadNum: function (schedual) {
  2186. // console.log('schedual23233232', schedual)
  2187. if (schedual.doctor_advice != null) {
  2188. // his
  2189. if (schedual.doctor_advice.length == 0) {
  2190. let doctorAdvice = []
  2191. if (schedual.his_doctor_advice != null) {
  2192. for (let i = 0; i < schedual.his_doctor_advice.length; i++) {
  2193. if (schedual.his_doctor_advice[i].execution_state == 2) {
  2194. doctorAdvice.push(schedual.his_doctor_advice[i])
  2195. }
  2196. }
  2197. }
  2198. let project = []
  2199. if (schedual.project && schedual.project.length > 0) {
  2200. if (schedual.project != null) {
  2201. for (let i = 0; i < schedual.project.length; i++) {
  2202. if (schedual.project[i].execution_state == 2) {
  2203. project.push(schedual.project[i])
  2204. }
  2205. }
  2206. }
  2207. }
  2208. return doctorAdvice.length + project.length
  2209. } else {
  2210. // 血透
  2211. if (schedual.doctor_advice != null) {
  2212. if (
  2213. schedual.doctor_advice[0] &&
  2214. schedual.doctor_advice[0].origin &&
  2215. schedual.doctor_advice[0].origin == 2
  2216. ) {
  2217. console.log('锦鲤2333233333')
  2218. let doctorAdvice = []
  2219. let adviceList = []
  2220. if (
  2221. schedual.his_doctor_advice &&
  2222. schedual.his_doctor_advice != null
  2223. ) {
  2224. for (let i = 0; i < schedual.his_doctor_advice.length; i++) {
  2225. if (
  2226. schedual.his_doctor_advice[i].execution_state == 2 &&
  2227. schedual.his_doctor_advice[i] &&
  2228. schedual.his_doctor_advice[i].parent_id == 0
  2229. ) {
  2230. adviceList.push(schedual.his_doctor_advice[i])
  2231. }
  2232. }
  2233. }
  2234. let project = []
  2235. if (schedual.project && schedual.project.length > 0) {
  2236. if (schedual.project != null) {
  2237. for (let i = 0; i < schedual.project.length; i++) {
  2238. if (schedual.project[i].execution_state == 2) {
  2239. project.push(schedual.project[i])
  2240. }
  2241. }
  2242. }
  2243. }
  2244. for (let i = 0; i < schedual.doctor_advice.length; i++) {
  2245. if (
  2246. schedual.doctor_advice[i].execution_state == 2 &&
  2247. schedual.doctor_advice[i] &&
  2248. schedual.doctor_advice[i].parent_id == 0
  2249. ) {
  2250. doctorAdvice.push(schedual.doctor_advice[i])
  2251. }
  2252. }
  2253. return doctorAdvice.length + adviceList.length + project.length
  2254. } else {
  2255. let doctorAdvice = []
  2256. let adviceList = []
  2257. let project = []
  2258. if (schedual.project && schedual.project.length > 0) {
  2259. if (schedual.project != null) {
  2260. for (let i = 0; i < schedual.project.length; i++) {
  2261. if (schedual.project[i].execution_state == 2) {
  2262. project.push(schedual.project[i])
  2263. }
  2264. }
  2265. }
  2266. }
  2267. if (schedual && schedual.his_doctor_advice != null) {
  2268. for (let i = 0; i < schedual.his_doctor_advice.length; i++) {
  2269. if (
  2270. schedual.his_doctor_advice[i].execution_state == 2 &&
  2271. schedual.his_doctor_advice[i]
  2272. ) {
  2273. adviceList.push(schedual.his_doctor_advice[i])
  2274. }
  2275. }
  2276. }
  2277. for (let i = 0; i < schedual.doctor_advice.length; i++) {
  2278. if (
  2279. schedual.doctor_advice[i].execution_state == 2 &&
  2280. schedual.doctor_advice[i] &&
  2281. schedual.doctor_advice[i].parent_id == 0
  2282. ) {
  2283. doctorAdvice.push(schedual.doctor_advice[i])
  2284. }
  2285. }
  2286. // console.log('不锦鲤', doctorAdvice.length, '血透', adviceList.length)
  2287. return doctorAdvice.length + adviceList.length + project.length
  2288. }
  2289. }
  2290. }
  2291. }
  2292. },
  2293. getStatus: function (schedual) {
  2294. var isShowDot = false
  2295. if(this.$store.getters.user.template_info.org_id!=10697){
  2296. if (
  2297. schedual.his_doctor_advice &&
  2298. schedual.his_doctor_advice.length != 0
  2299. ) {
  2300. for (let i = 0; i < schedual.his_doctor_advice.length; i++) {
  2301. if (schedual.his_doctor_advice[i].execution_state == 2) {
  2302. isShowDot = true
  2303. }
  2304. }
  2305. return isShowDot
  2306. }
  2307. }
  2308. if (schedual.doctor_advice && schedual.doctor_advice.length != 0) {
  2309. if (schedual.doctor_advice && schedual.doctor_advice.length > 0) {
  2310. if (schedual.doctor_advice != null) {
  2311. for (let i = 0; i < schedual.doctor_advice.length; i++) {
  2312. if (schedual.doctor_advice[i].execution_state == 2) {
  2313. isShowDot = true
  2314. }
  2315. }
  2316. return isShowDot
  2317. }
  2318. } else if (
  2319. schedual.doctor_advice.length == 0 &&
  2320. schedual.his_doctor_advice &&
  2321. schedual.his_doctor_advice.length != 0
  2322. ) {
  2323. if (schedual.his_doctor_advice != null) {
  2324. for (let i = 0; i < schedual.his_doctor_advice.length; i++) {
  2325. if (schedual.his_doctor_advice[i].execution_state == 2) {
  2326. isShowDot = true
  2327. }
  2328. }
  2329. return isShowDot
  2330. }
  2331. } else {
  2332. return false
  2333. }
  2334. }
  2335. },
  2336. stateColor: function (schedual) {
  2337. var state = this.computeState(schedual)
  2338. if (state == 1) {
  2339. return 'blue'
  2340. } else if (state == 2) {
  2341. return 'gray'
  2342. } else if (state == 3) {
  2343. return 'red'
  2344. } else if (state == 5) {
  2345. return 'green1'
  2346. } else if (state == 6) {
  2347. return 'green2'
  2348. } else {
  2349. return 'blue'
  2350. }
  2351. },
  2352. functionColor: function (schedual) {
  2353. var state = this.computeState(schedual)
  2354. if (state == 1 || state == 3) {
  2355. return 'blue'
  2356. } else if (state == 2) {
  2357. return 'gray'
  2358. } else {
  2359. return 'blue'
  2360. }
  2361. },
  2362. borderColor: function (schedual) {
  2363. var yc = this.isAbnormal(schedual)
  2364. if (yc == true) {
  2365. return 'red'
  2366. } else {
  2367. return 'gray'
  2368. }
  2369. },
  2370. stateText: function (schedual) {
  2371. var state = this.computeState(schedual)
  2372. if (state == 1) {
  2373. return '已上机'
  2374. } else if (state == 2) {
  2375. return '已下机'
  2376. } else if (state == 3) {
  2377. return '监测中'
  2378. } else if (state == 5) {
  2379. return '待称重'
  2380. } else if (state == 4) {
  2381. // return schedual.patient.gender == 1 ? "男" : "女"
  2382. return '未上机'
  2383. }
  2384. // else if (state == 6) {
  2385. // return '待开处方'
  2386. // }
  2387. },
  2388. computeState: function (schedual) {
  2389. if (
  2390. schedual.assessment_before_dislysis == null ||
  2391. schedual.assessment_before_dislysis.weight_before == 0
  2392. ) {
  2393. // 未签到称重
  2394. return 5
  2395. }
  2396. // if (schedual.prescription == null || schedual.prescription.creater == 0) {
  2397. // // 未确认处方
  2398. // return 6
  2399. // }
  2400. if (schedual.dialysis_order == null) {
  2401. // 未上机
  2402. return 4
  2403. } else if (schedual.dialysis_order.stage == 2) {
  2404. // 已下机
  2405. return 2
  2406. } else if (
  2407. schedual.dialysis_order.stage == 1 &&
  2408. schedual.monitoring_records != null &&
  2409. schedual.monitoring_records.length > 1
  2410. ) {
  2411. // 监测中
  2412. return 3
  2413. } else {
  2414. return 1
  2415. }
  2416. },
  2417. orderState: function (schedual) {
  2418. if (schedual.dialysis_order == null) {
  2419. // 未上机
  2420. return 4
  2421. } else if (schedual.dialysis_order.stage == 2) {
  2422. // 已下机
  2423. return 2
  2424. } else if (
  2425. schedual.dialysis_order.stage == 1 &&
  2426. schedual.monitoring_records != null &&
  2427. schedual.monitoring_records.length > 1
  2428. ) {
  2429. // 监测中
  2430. return 3
  2431. } else {
  2432. return 1
  2433. }
  2434. },
  2435. isAbnormal: function (schedual) {
  2436. return false // schedual.yc;
  2437. },
  2438. timeTypeText: function (schedual) {
  2439. if (schedual.schedule_type == 1) {
  2440. return '上午'
  2441. } else if (schedual.schedule_type == 2) {
  2442. return '下午'
  2443. } else {
  2444. return '晚上'
  2445. }
  2446. },
  2447. genderText: function (schedual) {
  2448. if (schedual.patient.gender == 0) {
  2449. return '未知'
  2450. } else if (schedual.patient.gender == 1) {
  2451. return '男'
  2452. } else {
  2453. return '女'
  2454. }
  2455. },
  2456. age (schedual) {
  2457. var thisLen = schedual.patient.id_card_no.length
  2458. var birth = ''
  2459. if (thisLen == 15) {
  2460. birth = '19' + schedual.patient.id_card_no.substr(6, 6)
  2461. } else {
  2462. birth = schedual.patient.id_card_no.substr(6, 8)
  2463. }
  2464. birth =
  2465. birth.substr(0, 4) +
  2466. '-' +
  2467. birth.substr(4, 2) +
  2468. '-' +
  2469. birth.substr(6, 2)
  2470. return jsGetAge(birth, '-')
  2471. },
  2472. groupBy (array, f) {
  2473. const groups = {}
  2474. array.forEach(function (o) {
  2475. const group = JSON.stringify(f(o))
  2476. groups[group] = groups[group] || []
  2477. groups[group].push(o)
  2478. })
  2479. return Object.keys(groups).map(function (group) {
  2480. return groups[group]
  2481. })
  2482. },
  2483. detailAction: function (schedual) {
  2484. if (schedual.dialysis_order != null) {
  2485. setDialysisOrWaitSelectedConfig(1)
  2486. } else {
  2487. setDialysisOrWaitSelectedConfig(0)
  2488. }
  2489. var patient_id = schedual.patient_id
  2490. var date = schedual.schedule_date
  2491. this.$router.push({
  2492. path: '/details',
  2493. query: {
  2494. patient_id: patient_id,
  2495. date: date,
  2496. patient_name: schedual.patient.name
  2497. }
  2498. })
  2499. },
  2500. toDisInfect (schedual) {
  2501. this.bed_name =
  2502. schedual.device_number.zone.name +
  2503. '-' +
  2504. schedual.device_number.number +
  2505. '号机'
  2506. this.bed_id = schedual.bed_id
  2507. this.schedule_date = schedual.schedule_date
  2508. this.schedule_type = schedual.schedule_type
  2509. this.schedule_week = schedual.schedule_week
  2510. this.zone_id = schedual.device_number.zone.id
  2511. this.patient_id = schedual.patient_id
  2512. this.mode_id = schedual.mode_id
  2513. if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829 || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10318 || this.$store.getters.user.template_info.org_id == 10721) {
  2514. console.log('下机时间', schedual.dialysis_order.end_time)
  2515. if (schedual && schedual.dialysis_order != null) {
  2516. this.start_time_str = this.getTimeTwo(schedual.dialysis_order.end_time)
  2517. console.log('start_time_str', this.start_time_str)
  2518. }
  2519. }
  2520. var params = {
  2521. patient_id: schedual.patient_id,
  2522. schedule_date: schedual.schedule_date
  2523. }
  2524. console.log('params23232323', params)
  2525. if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829 || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10101 || this.$store.getters.user.template_info.org_id == 10318 || this.$store.getters.user.template_info.org_id == 10721) {
  2526. getDialysisRecordOrde(params).then((response) => {
  2527. if (response.data.state == 1) {
  2528. var order = response.data.data.order
  2529. console.log('order', order)
  2530. if(this.$store.getters.user.template_info.org_id == 10101){
  2531. var end_order_time = 0
  2532. if(order.end_time >0){
  2533. end_order_time = parseInt(order.end_time) + 300
  2534. }
  2535. console.log(order.end_time)
  2536. console.log("end_order_time",end_order_time)
  2537. this.start_time_str = this.getTimeTwo(end_order_time)
  2538. console.log("开始时间",this.start_time_str)
  2539. }else{
  2540. this.start_time_str = this.getTimeTwo(order.end_time)
  2541. }
  2542. this.getDisInfectionTime()
  2543. this.showPlan = true
  2544. }
  2545. })
  2546. } else {
  2547. this.getDisInfectionTime()
  2548. this.showPlan = true
  2549. }
  2550. },
  2551. close () {
  2552. this.showPlan = false
  2553. },
  2554. commitInfo () {
  2555. const params = {
  2556. bed_id: this.bed_id,
  2557. start_time: this.start_time_str,
  2558. disinfec_time: this.disinfec_time,
  2559. end_time: this.select_time_str,
  2560. schedule_date: this.schedule_date,
  2561. zone_id: this.zone_id,
  2562. patient_id: this.patient_id,
  2563. mode_id: this.mode_id,
  2564. schedule_type: this.schedule_type,
  2565. }
  2566. console.log("newoowowo",params)
  2567. if (this.disinfec_time == '') {
  2568. this.$toast('消毒时长不能为空!')
  2569. return false
  2570. }
  2571. if (this.planStatus == 1) {
  2572. this.$toast('该设备无消毒计划,保存失败!')
  2573. return false
  2574. }
  2575. console.log('params', params)
  2576. SaveDisinfetionInfo(params).then((response) => {
  2577. if (response.data.state == 1) {
  2578. var information = response.data.data.information
  2579. this.$toast('保存成功')
  2580. this.showPlan = false
  2581. var msstatus = response.data.data.msstatus
  2582. // console.log('inforstate', msstatus)
  2583. this.$parent.getDeviceInformation()
  2584. if (msstatus == 2) {
  2585. this.showPlan = false
  2586. this.$toast('保存失败,该设备无消毒计划')
  2587. }
  2588. } else {
  2589. this.showPlan = false
  2590. this.$toast('保存失败')
  2591. }
  2592. })
  2593. },
  2594. commitInfoOne () {
  2595. var way = 0
  2596. for(let i=0;i<this.disinfectType.length;i++){
  2597. if(this.kuangvalue == this.disinfectType[i].text){
  2598. way = this.disinfectType[i].value
  2599. }
  2600. }
  2601. var machine_disinfectant =0
  2602. for(let i=0;i<this.disinfectantType.length;i++){
  2603. if(this.kuangvalue2 == this.disinfectantType[i].text){
  2604. machine_disinfectant = this.disinfectantType[i].value
  2605. }
  2606. }
  2607. var disinfectant_way = 0
  2608. for(let i=0;i<this.sterilizeType.length;i++){
  2609. if(this.kuangvalue3 == this.sterilizeType[i].text){
  2610. disinfectant_way = this.sterilizeType[i].value
  2611. }
  2612. }
  2613. var disinfectant=0
  2614. for(let i=0;i<this.fluidPathType.length;i++){
  2615. if(this.kuangvalue4 == this.fluidPathType[i].text){
  2616. disinfectant = this.fluidPathType[i].value
  2617. }
  2618. }
  2619. console.log("bedType",this.bedType)
  2620. var bed_way =0
  2621. for(let i=0;i<this.bedType.length;i++){
  2622. if(this.kuangvalue5 == this.bedType[i].text){
  2623. bed_way = this.bedType[i].value
  2624. }
  2625. }
  2626. var dialysis_checked =0
  2627. if(this.kuangvalue6 == "更换"){
  2628. dialysis_checked = 1
  2629. }
  2630. if(this.kuangvalue6 == "未更换"){
  2631. dialysis_checked = 0
  2632. }
  2633. var clean =0
  2634. if(this.kuangvalue7 == "清洁"){
  2635. clean = 1
  2636. }
  2637. if(this.kuangvalue7 == "未清洁"){
  2638. clean = 0
  2639. }
  2640. var germ_checked =0
  2641. if(this.kuangvalue8 == "更换"){
  2642. germ_checked =1
  2643. }
  2644. if(this.kuangvalue8 == "未更换"){
  2645. germ_checked =0
  2646. }
  2647. console.log("kuangvalue",this.kuangvalue5)
  2648. const params = {
  2649. bed_id: this.bed_id,
  2650. start_time: this.start_time_str,
  2651. disinfec_time: this.disinfec_time,
  2652. end_time: this.select_time_str,
  2653. schedule_date: this.schedule_date,
  2654. zone_id: this.zone_id,
  2655. patient_id: this.patient_id,
  2656. mode_id: this.mode_id,
  2657. schedule_type: this.schedule_type,
  2658. way:way,
  2659. machine_disinfectant:machine_disinfectant,
  2660. disinfectant_way:disinfectant_way,
  2661. disinfectant:disinfectant,
  2662. bed_way:bed_way,
  2663. dialysis_checked:dialysis_checked,
  2664. clean:clean,
  2665. germ_checked:germ_checked,
  2666. }
  2667. if (this.disinfec_time == '') {
  2668. this.$toast('消毒时长不能为空!')
  2669. return false
  2670. }
  2671. if (this.planStatus == 1) {
  2672. this.$toast('该设备无消毒计划,保存失败!')
  2673. return false
  2674. }
  2675. console.log('params', params)
  2676. SaveDisinfetionInfoOne(params).then((response) => {
  2677. if (response.data.state == 1) {
  2678. var information = response.data.data.information
  2679. this.$toast('保存成功')
  2680. this.showPlan = false
  2681. var msstatus = response.data.data.msstatus
  2682. // console.log('inforstate', msstatus)
  2683. this.$parent.getDeviceInformation()
  2684. if (msstatus == 2) {
  2685. this.showPlan = false
  2686. this.$toast('保存失败,该设备无消毒计划')
  2687. }
  2688. } else {
  2689. this.showPlan = false
  2690. this.$toast('保存失败')
  2691. }
  2692. })
  2693. },
  2694. updateInfo () {
  2695. var u = navigator.userAgent
  2696. var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1 // android终端
  2697. var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // ios终端
  2698. const params = {
  2699. bed_id: this.bed_id,
  2700. start_time: this.start_time_str,
  2701. disinfec_time: this.disinfec_time,
  2702. end_time: this.select_time_str,
  2703. schedule_date: this.schedule_date,
  2704. zone_id: this.zone_id,
  2705. patient_id: this.patient_id,
  2706. mode_id: this.mode_id,
  2707. schedule_type: this.schedule_type
  2708. }
  2709. if (this.disinfec_time == '') {
  2710. this.$toast('消毒时长不能为空!')
  2711. return false
  2712. }
  2713. // console.log("params",params)
  2714. SaveDisinfetionInfo(params).then((response) => {
  2715. if (response.data.state == 1) {
  2716. var information = response.data.data.information
  2717. this.$toast('修改成功')
  2718. this.showPlan = false
  2719. } else {
  2720. this.showPlan = false
  2721. this.$toast('修改失败')
  2722. }
  2723. })
  2724. },
  2725. updateInfoOne () {
  2726. var u = navigator.userAgent
  2727. var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1 // android终端
  2728. var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // ios终端
  2729. var way = 0
  2730. for(let i=0;i<this.disinfectType.length;i++){
  2731. if(this.kuangvalue == this.disinfectType[i].text){
  2732. way = this.disinfectType[i].value
  2733. }
  2734. }
  2735. var machine_disinfectant =0
  2736. for(let i=0;i<this.disinfectantType.length;i++){
  2737. if(this.kuangvalue2 == this.disinfectantType[i].text){
  2738. machine_disinfectant = this.disinfectantType[i].value
  2739. }
  2740. }
  2741. var disinfectant_way = 0
  2742. for(let i=0;i<this.sterilizeType.length;i++){
  2743. if(this.kuangvalue3 == this.sterilizeType[i].text){
  2744. disinfectant_way = this.sterilizeType[i].value
  2745. }
  2746. }
  2747. var disinfectant=0
  2748. for(let i=0;i<this.fluidPathType.length;i++){
  2749. if(this.kuangvalue4 == this.fluidPathType[i].text){
  2750. disinfectant = this.fluidPathType[i].value
  2751. }
  2752. }
  2753. console.log("bedType",this.bedType)
  2754. var bed_way =0
  2755. for(let i=0;i<this.bedType.length;i++){
  2756. if(this.kuangvalue5 == this.bedType[i].text){
  2757. bed_way = this.bedType[i].value
  2758. }
  2759. }
  2760. var dialysis_checked =0
  2761. if(this.kuangvalue6 == "更换"){
  2762. dialysis_checked = 1
  2763. }
  2764. if(this.kuangvalue6 == "未更换"){
  2765. dialysis_checked = 0
  2766. }
  2767. var clean =0
  2768. if(this.kuangvalue7 == "清洁"){
  2769. clean = 1
  2770. }
  2771. if(this.kuangvalue7 == "未清洁"){
  2772. clean = 0
  2773. }
  2774. var germ_checked =0
  2775. if(this.kuangvalue8 == "更换"){
  2776. germ_checked =1
  2777. }
  2778. if(this.kuangvalue8 == "未更换"){
  2779. germ_checked =0
  2780. }
  2781. console.log("kuangvalue",this.kuangvalue5)
  2782. const params = {
  2783. bed_id: this.bed_id,
  2784. start_time: this.start_time_str,
  2785. disinfec_time: this.disinfec_time,
  2786. end_time: this.select_time_str,
  2787. schedule_date: this.schedule_date,
  2788. zone_id: this.zone_id,
  2789. patient_id: this.patient_id,
  2790. mode_id: this.mode_id,
  2791. schedule_type: this.schedule_type,
  2792. way:way,
  2793. machine_disinfectant:machine_disinfectant,
  2794. disinfectant_way:disinfectant_way,
  2795. disinfectant:disinfectant,
  2796. bed_way:bed_way,
  2797. dialysis_checked:dialysis_checked,
  2798. clean:clean,
  2799. germ_checked:germ_checked,
  2800. }
  2801. if (this.disinfec_time == '') {
  2802. this.$toast('消毒时长不能为空!')
  2803. return false
  2804. }
  2805. // console.log("params",params)
  2806. SaveDisinfetionInfoOne(params).then((response) => {
  2807. if (response.data.state == 1) {
  2808. var information = response.data.data.information
  2809. this.$toast('修改成功')
  2810. this.showPlan = false
  2811. } else {
  2812. this.showPlan = false
  2813. this.$toast('修改失败')
  2814. }
  2815. })
  2816. },
  2817. selectStartTimeAction: function () {
  2818. this.$refs.start_time_picker.open()
  2819. },
  2820. selectEndTimeAction () {
  2821. this.$refs.select_time_picker.open()
  2822. },
  2823. didSelectStartTime: function (time) {
  2824. var u = navigator.userAgent
  2825. var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1 // android终端
  2826. var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // ios终端
  2827. if (isAndroid == true) {
  2828. this.start_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  2829. let oldTime = this.start_time_str
  2830. var time = new Date(oldTime.replace('-', '/'))
  2831. var b = parseInt(this.disinfec_time) // 分钟数
  2832. time.setMinutes(time.getMinutes() + b)
  2833. this.end_time = ''
  2834. this.end_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  2835. this.end_time_one = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  2836. this.select_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  2837. this.select_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  2838. }
  2839. if (isiOS == true) {
  2840. this.start_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  2841. let oldTime = this.start_time_str
  2842. var time = new Date(oldTime.replace('-', '-'))
  2843. var b = parseInt(this.disinfec_time) // 分钟数
  2844. time.setMinutes(time.getMinutes() + b)
  2845. this.end_time = ''
  2846. this.end_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  2847. this.end_time_one = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  2848. this.select_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  2849. this.select_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  2850. }
  2851. },
  2852. didSelectEndTime (time) {
  2853. this.select_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  2854. this.select_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  2855. },
  2856. getDisInfectionTime () {
  2857. const params = {
  2858. bed_id: this.bed_id,
  2859. schedule_type: this.schedule_type,
  2860. schedule_week: this.schedule_week,
  2861. schedule_date: this.schedule_date
  2862. }
  2863. getDisInfectionTime(params).then((response) => {
  2864. if (response.data.state == 1) {
  2865. var plan = response.data.data.plan
  2866. this.disinfec_time = plan
  2867. var planObj = response.data.data.planObj
  2868. console.log("plaobj",planObj)
  2869. // 机表(床单元、床旁桌)消毒方式
  2870. if(planObj!="" && planObj!=undefined){
  2871. var way = ""
  2872. for(let i=0;i<this.disinfectType.length;i++){
  2873. if(planObj.way == this.disinfectType[i].value){
  2874. way = this.disinfectType[i].text
  2875. }
  2876. }
  2877. this.kuangvalue =way
  2878. //机表(床单元、床旁桌)消毒液
  2879. var machine_disinfectant = ""
  2880. for(let i=0;i<this.disinfectantType.length;i++){
  2881. if(planObj.machine_disinfectant == this.disinfectantType[i].value){
  2882. machine_disinfectant = this.disinfectantType[i].text
  2883. }
  2884. }
  2885. console.log("machine_disinfectant",machine_disinfectant)
  2886. this.kuangvalue2 = machine_disinfectant
  2887. // 夜路消毒方式
  2888. var disinfectant_way = ""
  2889. for(let i=0;i<this.sterilizeType.length;i++){
  2890. if(planObj.disinfectan_way == this.sterilizeType[i].value){
  2891. disinfectant_way = this.sterilizeType[i].text
  2892. }
  2893. }
  2894. console.log("machine_disinfectant",disinfectant_way)
  2895. this.kuangvalue3 = disinfectant_way
  2896. //液路消毒液
  2897. var disinfectant=""
  2898. for(let i=0;i<this.fluidPathType.length;i++){
  2899. if(planObj.disinfectant == this.fluidPathType[i].value){
  2900. disinfectant = this.fluidPathType[i].text
  2901. }
  2902. }
  2903. console.log("machine_disinfectant",disinfectant)
  2904. this.kuangvalue4 = disinfectant
  2905. // 床单位更换
  2906. var bed_type = ""
  2907. for(let i=0;i<this.bedType.length;i++){
  2908. if(planObj.bed_way == this.bedType[i].value){
  2909. bed_type = this.bedType[i].text
  2910. }
  2911. }
  2912. console.log("machine_disinfectant",bed_type)
  2913. this.kuangvalue5 =bed_type
  2914. }
  2915. var total = 60 * parseInt(this.disinfec_time) + new Date(this.start_time_str).valueOf() / 1000
  2916. console.log('total', total)
  2917. this.select_time_str = this.getTimeTwo(total)
  2918. this.select_time = this.getTimeTwo(total)
  2919. if (plan == '') {
  2920. this.end_time = ''
  2921. this.select_time = ''
  2922. this.select_time_str = ''
  2923. }
  2924. var infomation = response.data.data.infomation
  2925. if (infomation != undefined) {
  2926. this.showOne = false
  2927. this.showTwo = true
  2928. if (
  2929. infomation.disinfec_startime == 0 ||
  2930. infomation.disinfec_startime == ''
  2931. ) {
  2932. infomation.disinfec_startime = ''
  2933. }
  2934. if (
  2935. infomation.disinfec_endtime == 0 ||
  2936. infomation.disinfec_endtime == ''
  2937. ) {
  2938. infomation.disinfec_endtime = ''
  2939. }
  2940. this.start_time_str = parseTime(
  2941. infomation.disinfec_startime,
  2942. '{y}-{m}-{d} {h}:{i}'
  2943. )
  2944. this.end_time = parseTime(
  2945. infomation.disinfec_endtime,
  2946. '{y}-{m}-{d} {h}:{i}'
  2947. )
  2948. this.select_time = parseTime(
  2949. infomation.disinfec_endtime,
  2950. '{y}-{m}-{d} {h}:{i}'
  2951. )
  2952. this.select_time_str = parseTime(
  2953. infomation.disinfec_endtime,
  2954. '{y}-{m}-{d} {h}:{i}'
  2955. )
  2956. this.disinfec_time = infomation.long_time
  2957. if(infomation!="" && infomation!=undefined){
  2958. var way = ""
  2959. for(let i=0;i<this.disinfectType.length;i++){
  2960. if(infomation.disinfect_type == this.disinfectType[i].value){
  2961. way = this.disinfectType[i].text
  2962. }
  2963. }
  2964. this.kuangvalue =way
  2965. //机表(床单元、床旁桌)消毒液
  2966. var machine_disinfectant = ""
  2967. for(let i=0;i<this.disinfectantType.length;i++){
  2968. if(infomation.disinfectant_type == this.disinfectantType[i].value){
  2969. machine_disinfectant = this.disinfectantType[i].text
  2970. }
  2971. }
  2972. this.kuangvalue2 = machine_disinfectant
  2973. // 夜路消毒方式
  2974. var disinfectant_way = ""
  2975. for(let i=0;i<this.sterilizeType.length;i++){
  2976. if(infomation.fluid_path == this.sterilizeType[i].value){
  2977. disinfectant_way = this.sterilizeType[i].text
  2978. }
  2979. }
  2980. console.log("machine_disinfectant",disinfectant_way)
  2981. this.kuangvalue3 = disinfectant_way
  2982. //液路消毒液
  2983. var disinfectant=""
  2984. for(let i=0;i<this.fluidPathType.length;i++){
  2985. if(infomation.disinfectant == this.fluidPathType[i].value){
  2986. disinfectant = this.fluidPathType[i].text
  2987. }
  2988. }
  2989. console.log("machine_disinfectant",disinfectant)
  2990. this.kuangvalue4 = disinfectant
  2991. // 床单位更换
  2992. var bed_type = ""
  2993. for(let i=0;i<this.bedType.length;i++){
  2994. if(infomation.bed_way == this.bedType[i].value){
  2995. bed_type = this.bedType[i].text
  2996. }
  2997. }
  2998. console.log("machine_disinfectant",bed_type)
  2999. this.kuangvalue5 =bed_type
  3000. if(infomation.dialysis_checked == 1){
  3001. this.kuangvalue6 = "更换"
  3002. }
  3003. if(infomation.dialysis_checked == 2){
  3004. this.kuangvalue6 = "未更换"
  3005. }
  3006. if(infomation.germ_checked == 1){
  3007. this.kuangvalue8 = "更换"
  3008. }
  3009. if(infomation.germ_checked == 2){
  3010. this.kuangvalue8 = "未更换"
  3011. }
  3012. if(infomation.clean == 1){
  3013. this.kuangvalue7 = "清洁"
  3014. }
  3015. if(infomation.clean == 2){
  3016. this.kuangvalue7 = "未清洁"
  3017. }
  3018. }
  3019. }
  3020. } else {
  3021. this.planStatus = 1
  3022. this.$toast('该设备没有消毒计划')
  3023. }
  3024. })
  3025. },
  3026. inputFocus: function (event) {
  3027. var input = event.target
  3028. setTimeout(function () {
  3029. input.scrollIntoView()
  3030. }, 0)
  3031. if (input.setSelectionRange) {
  3032. setTimeout(function () {
  3033. input.setSelectionRange(0, input.value.length)
  3034. }, 0)
  3035. } else if (input.createTextRange) {
  3036. var rng = input.createTextRange()
  3037. rng.move('character', input.value.length)
  3038. rng.select()
  3039. }
  3040. },
  3041. newClick (event) {
  3042. event.currentTarget.select()
  3043. },
  3044. inputBlur () {
  3045. var total = 60 * parseInt(this.disinfec_time) + new Date(this.start_time_str).valueOf() / 1000
  3046. console.log('total', total)
  3047. this.select_time_str = this.getTimeTwo(total)
  3048. this.select_time = this.getTimeTwo(total)
  3049. // let oldTime = this.start_time_str
  3050. // var time = new Date(oldTime.replace('-', '/'))
  3051. // var b = parseInt(this.disinfec_time) // 分钟数
  3052. // time.setMinutes(time.getMinutes() + b)
  3053. // this.end_time = ''
  3054. // this.end_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  3055. // this.end_time_one = ''
  3056. // this.end_time_one = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  3057. // this.select_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  3058. // console.log('select_time23323233223', this.select_time)
  3059. // this.select_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
  3060. // console.log('select_time_str', this.select_time_str)
  3061. },
  3062. modeColor (id) {
  3063. if (id == 1) {
  3064. } else if (id == 2) {
  3065. return 'modeRed'
  3066. } else if (id == 3) {
  3067. return 'modePurple'
  3068. }
  3069. },
  3070. getInformation (bedId, date, classId, patientid) {
  3071. var name = 0
  3072. for (let i = 0; i < this.information.length; i++) {
  3073. if (
  3074. this.information[i].bed_number == bedId &&
  3075. this.information[i].date == date &&
  3076. this.information[i].class == classId
  3077. ) {
  3078. name = 1
  3079. }
  3080. }
  3081. return name
  3082. },
  3083. didAddMonitor (monitor) {
  3084. this.monitor_records.push(monitor)
  3085. this.monitor_records.sort((a, b) => b.operate_time - a.operate_time)
  3086. this.monitor_records.reverse()
  3087. this.last_monitor_record = monitor
  3088. },
  3089. closeDoubleCheck: function (val) {
  3090. this.showPopup11 = false
  3091. },
  3092. closeDialysisOffclose: function (val) {
  3093. this.showPopup12 = false
  3094. },
  3095. closeOpen (index) {
  3096. this.patients.splice(index, 1)
  3097. },
  3098. onConfirm(val){
  3099. console.log("val2o2o2o2o",val)
  3100. for(let i=0;i<this.disinfectType.length;i++){
  3101. if(val.id==this.disinfectType[i].id){
  3102. this.kuangvalue=val.text
  3103. }
  3104. }
  3105. this.showPicker=false
  3106. },
  3107. onConfirmOne(val){
  3108. for(let i=0;i<this.disinfectantType.length;i++){
  3109. if(val.id==this.disinfectantType[i].id){
  3110. this.kuangvalue2=val.text
  3111. }
  3112. }
  3113. this.showPicker2=false
  3114. },
  3115. onConfirmTwo(val){
  3116. for(let i=0;i<this.sterilizeType.length;i++){
  3117. if(val.id==this.sterilizeType[i].id){
  3118. this.kuangvalue3=val.text
  3119. }
  3120. }
  3121. this.showPicker3=false
  3122. },
  3123. onConfirmThree(val){
  3124. for(let i=0;i<this.fluidPathType.length;i++){
  3125. if(val.id==this.fluidPathType[i].id){
  3126. this.kuangvalue4=val.text
  3127. }
  3128. }
  3129. this.showPicker4=false
  3130. },
  3131. onConfirmFour(val){
  3132. for(let i=0;i<this.bedType.length;i++){
  3133. if(val.id==this.bedType[i].id){
  3134. this.kuangvalue5=val.text
  3135. }
  3136. }
  3137. this.showPicker5=false
  3138. },
  3139. onConfirmFive(val){
  3140. for(let i=0;i<this.listOne.length;i++){
  3141. if(val.id==this.listOne[i].id){
  3142. this.kuangvalue6=val.text
  3143. }
  3144. }
  3145. this.showPicker6=false
  3146. },
  3147. onConfirmSix(val){
  3148. for(let i=0;i<this.listTwo.length;i++){
  3149. if(val.id==this.listTwo[i].id){
  3150. this.kuangvalue7=val.text
  3151. }
  3152. }
  3153. this.showPicker7=false
  3154. },
  3155. onConfirmSeven(val){
  3156. for(let i=0;i<this.listThree.length;i++){
  3157. if(val.id==this.listThree[i].id){
  3158. this.kuangvalue8=val.text
  3159. }
  3160. }
  3161. this.showPicker8=false
  3162. }
  3163. },
  3164. created () {
  3165. if (this.$store.getters.user.template_info.org_id != 10340 && this.$store.getters.user.template_info.org_id != 9829 && this.$store.getters.user.template_info.org_id != 10490) {
  3166. this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}')
  3167. this.select_time_str = parseTime(this.select_time, '{y}-{m}-{d} {h}:{i}')
  3168. console.log('this.select_time_str3232323', this.select_time_str)
  3169. }
  3170. let dateone = moment().format('YYYY-MM-DD')//获取标准时间 //Tue Aug 16 2022 15:06:24 GMT+0800 (中国标准时间)
  3171. //方式一
  3172. let timeStampOne = Date.parse(dateone)
  3173. var arrDateTwo = (timeStampOne/1000)-28800
  3174. // console.log("时间搓2222",arrDateTwo)
  3175. this.timenow = arrDateTwo
  3176. },
  3177. watch: {
  3178. is_run: function () {
  3179. console.log('is_run99999239292323', this.is_run)
  3180. }
  3181. }
  3182. }
  3183. </script>
  3184. <style lang="scss" scoped>
  3185. .difficult {
  3186. width: 60px;
  3187. height: 25px;
  3188. border-radius: 30px;
  3189. background: #78d660;
  3190. text-align: center;
  3191. line-height: 25px;
  3192. position: relative;
  3193. bottom: 25px;
  3194. left: 135px;
  3195. color: #fff;
  3196. }
  3197. .water {
  3198. width: 30px;
  3199. height: 30px;
  3200. line-height: 30px;
  3201. background: #4fc7cb;
  3202. color: white;
  3203. border-radius: 50%;
  3204. font-size: 18px;
  3205. font-weight: bold;
  3206. margin-top: 10px;
  3207. }
  3208. ::v-deep .appPopup {
  3209. .Dialog {
  3210. .van-collapse {
  3211. .van-collapse-item {
  3212. .van-cell {
  3213. padding: 0.25rem 0.5rem !important;
  3214. font-size: 0.5rem !important;
  3215. .van-cell__right-icon {
  3216. font-size: 0.5rem;
  3217. }
  3218. }
  3219. .van-collapse-item__wrapper {
  3220. .van-collapse-item__content {
  3221. padding: 0.25rem 0.5rem;
  3222. font-size: 0.5rem;
  3223. }
  3224. }
  3225. }
  3226. }
  3227. }
  3228. }
  3229. .patient {
  3230. border: 1px #e5e5ee solid;
  3231. // padding: 0.33rem 0;
  3232. padding: 0 0 0.33rem 0;
  3233. width: 47%;
  3234. margin: 0 3% 0.5rem 0;
  3235. float: left;
  3236. border-radius: 5px;
  3237. @media only screen and (max-width: 415px) {
  3238. width: 96% !important;
  3239. }
  3240. @media only screen and (min-width: 415px) and (max-width: 767px) {
  3241. width: 48%;
  3242. margin: 0 1% 0.5rem 0;
  3243. }
  3244. .function {
  3245. padding: 0.3rem 0.32rem 0 0.32rem;
  3246. color: #7b8a97;
  3247. @media only screen and (min-width: 415px) and (max-width: 767px) {
  3248. margin: 0;
  3249. padding: 0.3rem 0.1rem 0 0.1rem;
  3250. }
  3251. ul {
  3252. @include display-flex;
  3253. @include align-items-center;
  3254. @include text-align;
  3255. @include justify-content-between;
  3256. li {
  3257. font-size: 0.3rem;
  3258. @include display-flex;
  3259. @include align-items-center;
  3260. @media only screen and (max-width: 415px) {
  3261. font-size: 0.36rem;
  3262. }
  3263. .iconfont {
  3264. margin: 0 0.1rem 0 0;
  3265. font-size: 0.4rem;
  3266. display: none;
  3267. }
  3268. }
  3269. }
  3270. }
  3271. .blue {
  3272. color: $main-color;
  3273. .iconfont {
  3274. color: $main-color;
  3275. }
  3276. }
  3277. .kehu {
  3278. @include display-flex;
  3279. // @include align-items-center;
  3280. @include text-align;
  3281. @include justify-content-between;
  3282. border-bottom: 1px #e5e5e5 solid;
  3283. // padding: 0 0 0.3rem 0.32rem;
  3284. padding: 0 0 0 0.32rem;
  3285. @media only screen and (min-width: 415px) and (max-width: 767px) {
  3286. padding: 0 0 0.3rem 0.1rem;
  3287. }
  3288. .tx {
  3289. @include display-flex;
  3290. // @include align-items-center;
  3291. margin-top: -0.3rem;
  3292. img {
  3293. width: 1rem;
  3294. height: 1rem;
  3295. border-radius: 50%;
  3296. float: left;
  3297. margin: 0 0.2rem 0 0;
  3298. }
  3299. .right {
  3300. float: left;
  3301. text-align: left;
  3302. .name {
  3303. font-size: 0.34rem;
  3304. color: $title-color;
  3305. font-weight: 600;
  3306. margin-bottom: 0.1rem;
  3307. @media only screen and (max-width: 415px) {
  3308. font-size: 0.45rem;
  3309. }
  3310. @media only screen and (min-width: 416px) and (max-width: 767px) {
  3311. font-size: 0.4rem;
  3312. }
  3313. .yc {
  3314. background: #ff7979;
  3315. color: #fff;
  3316. height: 0.38rem;
  3317. line-height: 0.38rem;
  3318. font-size: 0.24rem;
  3319. width: 0.74rem;
  3320. border-radius: 4px;
  3321. display: inline-block;
  3322. text-align: center;
  3323. margin-left: 0.13rem;
  3324. }
  3325. }
  3326. .num {
  3327. font-size: 0.3rem;
  3328. @media only screen and (max-width: 415px) {
  3329. font-size: 0.36rem;
  3330. }
  3331. }
  3332. }
  3333. }
  3334. .disinfect {
  3335. background: #258ffc;
  3336. color: #fff;
  3337. width: 1.45rem;
  3338. height: 0.8rem;
  3339. line-height: 0.8rem;
  3340. border-radius: 4px;
  3341. margin: 0 auto;
  3342. font-size: 0.32rem;
  3343. margin-right: 0.28rem;
  3344. margin-top: 0.3rem;
  3345. @media only screen and (max-width: 767px) {
  3346. font-size: 0.36rem;
  3347. width: 1.7rem;
  3348. }
  3349. @media only screen and (min-width: 415px) and (max-width: 767px) {
  3350. width: 1.3rem;
  3351. font-size: 0.36rem;
  3352. }
  3353. }
  3354. .disinfectOne {
  3355. background: #a8b3ba;
  3356. color: #fff;
  3357. width: 1.45rem;
  3358. height: 0.8rem;
  3359. line-height: 0.8rem;
  3360. border-radius: 4px;
  3361. margin: 0 auto;
  3362. font-size: 0.32rem;
  3363. margin-right: 0.28rem;
  3364. margin-top: 0.3rem;
  3365. @media only screen and (max-width: 767px) {
  3366. font-size: 0.36rem;
  3367. width: 1.7rem;
  3368. }
  3369. @media only screen and (min-width: 415px) and (max-width: 767px) {
  3370. width: 1.3rem;
  3371. font-size: 0.36rem;
  3372. }
  3373. }
  3374. .summary {
  3375. background: #7bce91;
  3376. color: #fff;
  3377. width: 1.45rem;
  3378. height: 0.8rem;
  3379. line-height: 0.8rem;
  3380. border-radius: 4px;
  3381. margin: 0 auto;
  3382. font-size: 0.32rem;
  3383. margin: 0 0.28rem;
  3384. margin-top: 0.3rem;
  3385. @media only screen and (max-width: 767px) {
  3386. font-size: 0.36rem;
  3387. width: 1.7rem;
  3388. }
  3389. @media only screen and (min-width: 415px) and (max-width: 767px) {
  3390. width: 1.3rem;
  3391. font-size: 0.36rem;
  3392. }
  3393. }
  3394. .prescription {
  3395. background: #4fc7cb;
  3396. color: #fff;
  3397. width: 1.45rem;
  3398. height: 0.8rem;
  3399. line-height: 0.8rem;
  3400. border-radius: 4px;
  3401. margin: 0 auto;
  3402. font-size: 0.32rem;
  3403. margin: 0 0.28rem;
  3404. margin-top: 0.3rem;
  3405. @media only screen and (max-width: 767px) {
  3406. font-size: 0.36rem;
  3407. width: 1.7rem;
  3408. }
  3409. @media only screen and (min-width: 415px) and (max-width: 767px) {
  3410. width: 1.3rem;
  3411. font-size: 0.36rem;
  3412. }
  3413. }
  3414. }
  3415. .online {
  3416. text-align: center;
  3417. width: 50%;
  3418. // border-left: 1px #e5e5e5 solid;
  3419. p {
  3420. background: #c6cdd2;
  3421. color: #fff;
  3422. width: 1.45rem;
  3423. height: 0.8rem;
  3424. line-height: 0.8rem;
  3425. border-radius: 4px;
  3426. margin: 0 auto;
  3427. font-size: 0.32rem;
  3428. @media only screen and (max-width: 767px) {
  3429. font-size: 0.36rem;
  3430. width: 1.7rem;
  3431. }
  3432. @media only screen and (min-width: 415px) and (max-width: 767px) {
  3433. width: 1.3rem;
  3434. font-size: 0.36rem;
  3435. }
  3436. }
  3437. .blue {
  3438. background: $main-color;
  3439. }
  3440. .red {
  3441. background: #f18f68;
  3442. }
  3443. .green {
  3444. background: #5bd18b;
  3445. }
  3446. .green1 {
  3447. background: #258ffc;
  3448. }
  3449. .green2 {
  3450. background: #e6a23c;
  3451. }
  3452. .gray {
  3453. background: #a8b3ba;
  3454. }
  3455. .lightGray {
  3456. background: #c6cdd2;
  3457. }
  3458. .time {
  3459. font-size: 0.26rem;
  3460. color: #34495e;
  3461. }
  3462. }
  3463. }
  3464. .red {
  3465. border: 1px #ff7979 solid;
  3466. }
  3467. .redpoint {
  3468. display: inline-block;
  3469. height: 26px;
  3470. width: 26px;
  3471. line-height: 23px;
  3472. text-align: center;
  3473. font-size: 0.45rem;
  3474. border-radius: 20px;
  3475. color: #fff;
  3476. background: #f56c6c;
  3477. position: absolute;
  3478. top: -6px;
  3479. left: 0.6rem;
  3480. border: 1px solid #fff;
  3481. @media only screen and (max-width: 415px) {
  3482. height: 16px;
  3483. width: 16px;
  3484. line-height: 15px;
  3485. top: -6px;
  3486. left: 0.6rem;
  3487. }
  3488. @media only screen and (min-width: 415px) and (max-width: 767px) {
  3489. height: 20px;
  3490. width: 20px;
  3491. line-height: 19px;
  3492. top: -6px;
  3493. left: 0.6rem;
  3494. font-size: 0.36rem;
  3495. }
  3496. }
  3497. .redPoint1 {
  3498. display: inline-block;
  3499. height: 26px;
  3500. width: 26px;
  3501. line-height: 23px;
  3502. text-align: center;
  3503. font-size: 0.45rem;
  3504. border-radius: 20px;
  3505. color: #fff;
  3506. background: #f56c6c;
  3507. position: absolute;
  3508. top: 20px;
  3509. left: 0.6rem;
  3510. border: 1px solid #fff;
  3511. @media only screen and (max-width: 415px) {
  3512. height: 16px;
  3513. width: 16px;
  3514. line-height: 15px;
  3515. top: 20px;
  3516. left: 0.6rem;
  3517. }
  3518. @media only screen and (min-width: 415px) and (max-width: 767px) {
  3519. height: 20px;
  3520. width: 20px;
  3521. line-height: 19px;
  3522. top: 20px;
  3523. left: 0.6rem;
  3524. font-size: 0.36rem;
  3525. }
  3526. }
  3527. .yztx {
  3528. margin: 0 5px;
  3529. padding: 3px 10px;
  3530. background-color: #f56c6c;
  3531. color: #fff;
  3532. border-radius: 3px;
  3533. font-size: 0.32rem;
  3534. @media only screen and (max-width: 415px) {
  3535. font-size: 0.34rem !important;
  3536. }
  3537. @media only screen and (min-width: 415px) and (max-width: 767px) {
  3538. margin: 0;
  3539. padding: 3px 3px;
  3540. }
  3541. }
  3542. #modeRed {
  3543. color: #ed5555;
  3544. }
  3545. #modePurple {
  3546. color: #53b86e;
  3547. }
  3548. </style>
  3549. <style scoped>
  3550. .double_check_dialog >>> .picker-item{font-size: .475rem ; }
  3551. </style>