receiptpage.vue 129 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657
  1. <template>
  2. <view class="Receiptpage">
  3. <view class="page_tab">
  4. <view class="page_tab_bar" :class="{ active: item.label === selectedLabelSlots }" v-for="item in tabs"
  5. :key="item.value" @click.prevent="clickHandler(item.label)">
  6. {{ item.label }}
  7. <text class="tab_num">( {{ item.num }} )</text>
  8. <view class="more" v-if="item.label === '执行中'" @click.stop="execFilter"></view>
  9. <!-- <picker class="more_picker" v-if="item.label === '执行中'" @click.stop @change="execFilter($event)" :value="index"
  10. :range="array" range-key="name">
  11. <view class="uni-input">{{ array[index].name }}</view>
  12. </picker> -->
  13. </view>
  14. </view>
  15. <view v-if="zxzData.length == 0" class="zwsj">
  16. <image class="zwsj-img" mode="widthFix" src="../../static/img/zanwushuju.png"></image>
  17. <view class="zwsj-txt">暂无数据</view>
  18. </view>
  19. <view class="page_items">
  20. <scroll-view class="page_items_scroll" scroll-y :refresher-enabled="scroll_refresher_enabled"
  21. :refresher-triggered="triggered" @refresherrefresh="refresherrefresh" @refresherrestore="refresherrestore"
  22. @scroll="scroll" @scrolltolower="scrolltolower" :scroll-top="scroll_top" @refresherabort="refresherabort">
  23. <view class="page_item_wrap" v-for="(item, index) of zxzData" :key="index">
  24. <view class="page_item">
  25. <view class="L"></view>
  26. <view class="R"></view>
  27. <view class="page_item_top">
  28. <view class="page_item_top_L">
  29. <!-- <text class="L_iocn" v-if="item.taskType.associationType.value == 'specimen'">标</text>
  30. <text class="L_iocn" v-if="item.taskType.associationType.value == 'drugsBag'">药</text>
  31. <text class="L_iocn" v-if="item.taskType.associationType.value == 'specimenPlan'">巡</text>
  32. <text class="L_iocn" v-if="item.taskType.associationType.value == 'jPBag'">静</text>
  33. <text class="L_iocn" v-if="item.taskType.associationType.value == 'inspect'">病</text>
  34. <text class="L_iocn" v-if="
  35. item.taskType.associationType.value == 'patientTransport'
  36. ">病</text>
  37. <text class="L_iocn" v-if="item.taskType.associationType.value == 'other'">其</text> -->
  38. <view class="page_item_cont_start emergency1" v-if="item.emergencyType.value == 1">
  39. <image mode="widthFix" class="page_item_cont_start-img" src="../../static/img/icon_shandian.png">
  40. </image>
  41. {{ item.emergencyType.name }}</text>
  42. </view>
  43. <view class="page_item_cont_start emergency" v-if="item.emergencyType.value == 2">
  44. <image mode="widthFix" class="page_item_cont_start-img" src="../../static/img/icon_shandian.png">
  45. </image>
  46. {{ item.emergencyType.name }}</text>
  47. </view>
  48. <view class="page_item_cont_start emergencys" v-if="item.emergencyType.value == 3">
  49. <image mode="widthFix" class="page_item_cont_start-img" src="../../static/img/icon_shandian.png">
  50. </image>
  51. {{ item.emergencyType.name }}</text>
  52. </view>
  53. <view class="page_item_top_R type" :style="{color: item.taskType?item.taskType.renderColors:'#333'}" style="margin-left: 16rpx;">
  54. {{ item.taskType.taskName }}<template v-if="item.goodsRemark">-{{item.goodsRemark}}</template>
  55. </view>
  56. <!-- <text class="L_time" v-if="item.overdueTime">{{ item.overdueTime }}前送达</text> -->
  57. </view>
  58. <view class="page_item_top_R" v-if="
  59. !(
  60. item.taskType.associationType.value == 'inspect' &&
  61. item.gdState.value == 5
  62. )
  63. ">
  64. <text class="text_big">{{ item.gdState.name }}</text>
  65. </view>
  66. <view class="page_item_top_R" v-if="
  67. item.taskType.associationType.value == 'inspect' &&
  68. item.gdState.value == 5
  69. ">
  70. <text class="text_big">待送回</text>
  71. </view>
  72. <!-- <view class="page_item_top_R type">
  73. {{ item.taskType.taskName }}<template v-if="item.goodsRemark">-{{item.goodsRemark}}</template>
  74. </view> -->
  75. </view>
  76. <view class="page_item_cont" @click="itemInfo(item)">
  77. <view class="page_item_cont_T">
  78. <view class="page_item_cont_title">
  79. <text> <text class="starting">起</text> 点科室 </text>
  80. <text class="text_big">{{ item.startDept.dept }}</text>
  81. </view>
  82. <!-- <view class="page_item_cont_start emergency1" v-if="item.emergencyType.value == 1">
  83. <image mode="widthFix" class="page_item_cont_start-img" src="../../static/img/icon_shandian.png">
  84. </image>
  85. {{ item.emergencyType.name }}</text>
  86. </view>
  87. <view class="page_item_cont_start emergency" v-if="item.emergencyType.value == 2">
  88. <image mode="widthFix" class="page_item_cont_start-img" src="../../static/img/icon_shandian.png">
  89. </image>
  90. {{ item.emergencyType.name }}</text>
  91. </view>
  92. <view class="page_item_cont_start emergencys" v-if="item.emergencyType.value == 3">
  93. <image mode="widthFix" class="page_item_cont_start-img" src="../../static/img/icon_shandian.png">
  94. </image>
  95. {{ item.emergencyType.name }}</text>
  96. </view> -->
  97. </view>
  98. <view class="page_item_conts" v-if="item.taskType.associationType.value == 'specimen'">
  99. <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
  100. <view>扫描标本数量 : {{ item.actualReceiveNum || '无'}}</view>
  101. <view style="word-break: break-all;" v-if="item.workOrderRemark">
  102. 备注信息 :
  103. <text>{{ item.workOrderRemark || "暂无" }}</text>
  104. </view>
  105. <view class="line"></view>
  106. </view>
  107. <view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'ordinary' && item.taskType.ordinaryField.value == 'blood'">
  108. <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
  109. <view>接收数量 : {{ item.actualReceiveNum || '无'}}</view>
  110. <view class="line"></view>
  111. </view>
  112. <view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'inspect'">
  113. <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
  114. <view>
  115. 预约时间 : {{ item.yyTime | yyTimeFilter}}<text v-if="item.reservationNumber">({{ item.reservationNumber }})</text>
  116. </view>
  117. <view style="font-weight: bold;">
  118. 患者信息 : {{ item.patient ? item.patient.patientName : "" }}({{ item.patient ? item.patient.bedNum : "" }})-{{ item.patient ? item.patient.residenceNo : "" }}
  119. </view>
  120. <view v-if="item.inspectScore">
  121. 陪检方式 :
  122. <text>{{ item.inspectScore ? item.inspectScore.inspectMode : "暂无" }}</text>
  123. </view>
  124. <view v-if="item.goods">
  125. 携带设备 :
  126. <text>{{ item.goods || "暂无" }}</text>
  127. </view>
  128. <view style="word-break: break-all;" v-if="item.workOrderRemark">
  129. 注意事项 :
  130. <text>{{ item.workOrderRemark || "" }}</text>
  131. </view>
  132. <view v-if="item.patient.careLevel || item.patient.illnessState">
  133. 护理信息 :
  134. <template v-if="item.patient.careLevel"><text :class="[ item.patient.careLevel.value == 0 || item.patient.careLevel.value == 1 ? 'red' : 'green']">{{ item.patient.careLevel.name }}</text></template> <template v-if="item.patient.illnessState"><text :class="{ red: item.patient.illnessState.value == 2 || item.patient.illnessState.value == 3}">{{ item.patient.illnessState.name }}</text></template>
  135. </view>
  136. <view v-if="item.isAccompany === 1 || item.isAccompany === 0">
  137. 陪同情况 :
  138. <text :class="{ red: item.isAccompany === 1 }">{{
  139. item.isAccompany === 1 ? "需要医护陪同" : "无需医护陪同"
  140. }}</text>
  141. </view>
  142. <view class="line"></view>
  143. </view>
  144. <view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'patientTransport'">
  145. <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
  146. <view>
  147. 预约时间 : {{ item.yyjdTime | yyTimeFilter }}<text v-if="item.reservationNumber">({{ item.reservationNumber }})</text>
  148. </view>
  149. <view style="font-weight: bold;">
  150. 患者信息 : {{ item.patient ? item.patient.patientName : "" }}({{ item.patient ? item.patient.bedNum : "" }})-{{ item.patient ? item.patient.residenceNo : "" }}
  151. </view>
  152. <view v-if="item.inspectScore">
  153. 陪检方式 :
  154. <text>{{ item.inspectScore ? item.inspectScore.inspectMode : "暂无" }}</text>
  155. </view>
  156. <view v-if="item.goods">
  157. 携带设备 :
  158. <text>{{ item.goods || "暂无" }}</text>
  159. </view>
  160. <view style="word-break: break-all;" v-if="item.workOrderRemark">
  161. 注意事项 :
  162. <text>{{ item.workOrderRemark || "暂无" }}</text>
  163. </view>
  164. <view v-if="item.patient.careLevel || item.patient.illnessState">
  165. 护理信息 :
  166. <template v-if="item.patient.careLevel"><text :class="[ item.patient.careLevel.value == 0 || item.patient.careLevel.value == 1 ? 'red' : 'green']">{{ item.patient.careLevel.name }}</text></template> <template v-if="item.patient.illnessState"><text :class="{ red: item.patient.illnessState.value == 2 || item.patient.illnessState.value == 3}">{{ item.patient.illnessState.name }}</text></template>
  167. </view>
  168. <view v-if="item.isAccompany === 1 || item.isAccompany === 0">
  169. 陪同情况 :
  170. <text :class="{ red: item.isAccompany === 1 }">{{
  171. item.isAccompany === 1 ? "需要医护陪同" : "无需医护陪同"
  172. }}</text>
  173. </view>
  174. <view class="line"></view>
  175. </view>
  176. <view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'drugsBag'">
  177. <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
  178. <view>
  179. 药包编码 : {{ item.drugs ? item.drugs.packid : "无" }}
  180. </view>
  181. <view class="line"></view>
  182. </view>
  183. <view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'jPBag'">
  184. <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
  185. <view>
  186. 药包编码 :
  187. {{ item.staticDistri ? item.staticDistri.packid : "无" }}
  188. </view>
  189. <view class="line"></view>
  190. </view>
  191. <view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'ordinary' && (item.taskType.ordinaryField.value == 'drugsJpbag' || item.taskType.ordinaryField.value == 'drugsWestern' || item.taskType.ordinaryField.value == 'drugsReturn' || item.taskType.ordinaryField.value == 'drugsPoison' || item.taskType.ordinaryField.value == 'drugsHerbal')">
  192. <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
  193. <view style="word-break: break-all;" v-if="item.workOrderRemark">
  194. 备注信息 :
  195. <text>{{ item.workOrderRemark || "暂无" }}</text>
  196. </view>
  197. <view class="line"></view>
  198. </view>
  199. <view class="page_item_conts" v-else>
  200. <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
  201. <view>
  202. 预约时间 : {{ item.yyjdTime | yyTimeFilter}}
  203. </view>
  204. <view style="word-break: break-all;" v-if="item.workOrderRemark">
  205. 备注信息 :
  206. <text>{{ item.workOrderRemark || "暂无" }}</text>
  207. </view>
  208. <view class="line"></view>
  209. </view>
  210. <view class="page_item_cont_B">
  211. <view class="page_item_cont_title" v-if="item.taskType.associationType.value != 'inspect'">
  212. <text> <text class="End">终</text> 点科室 </text>
  213. <text class="text_big" v-for="(dept, i) of item.endDepts" :key="i">{{ dept.dept }}</text>
  214. </view>
  215. <view class="page_item_cont_title page_item_cont_title_display" v-if="item.middleDept&&item.middleDept.length==1 && item.taskType.associationType.value == 'inspect'">
  216. <view>
  217. <text> <text class="End">检</text> 查科室 </text>
  218. <text class="text_big">{{ item.middleDept[0].dept }}</text>
  219. </view>
  220. <view style="text-align: right;">
  221. {{ item.middleDept[0].yyTime | yyTimeFilter}}
  222. </view>
  223. </view>
  224. <view class="page_item_cont_title" v-if="item.middleDept&&item.middleDept.length>1 && item.taskType.associationType.value == 'inspect'">
  225. <view class="page_item_cont_title_display" v-for="(dept, i) of item.middleDept" :key="i">
  226. <view>
  227. <text> <text class="End">检</text> 查科室 </text>
  228. <text class="text_big" :class="dept.signIn ? 'green': ''">{{ dept.dept }}</text>
  229. </view>
  230. <view style="text-align: right;">
  231. {{ dept.yyTime | yyTimeFilter}}
  232. </view>
  233. </view>
  234. </view>
  235. </view>
  236. </view>
  237. <!-- <view v-if="item.taskType.associationType.value == 'inspect' || item.taskType.associationType.value == 'patientTransport'"> -->
  238. <!-- 待抢单 -->
  239. <!-- <text class="red" v-if="item.gdState.value == 2">请扫描患者腕带,或者请扫描科室码</text> -->
  240. <!-- 待到达 -->
  241. <!-- <text class="red" v-if="item.gdState.value == 4">请扫描患者腕带</text> -->
  242. <!-- 执行中 -->
  243. <!-- <text class="red" v-if="item.gdState.value == 8">请扫描检查科室码,并扫描患者腕带</text> -->
  244. <!-- 待送达 -->
  245. <!-- <text class="red" v-if="item.gdState.value == 5">请扫描终点科室码,并扫描患者腕带</text> -->
  246. <!-- </view> -->
  247. <!-- <view v-if="item.taskType.associationType.value == 'ordinary' && item.taskType.ordinaryField.value == 'clothingGet'"> -->
  248. <!-- 待送达 -->
  249. <!-- <text class="red" v-if="item.gdState.value == 5">请扫描终点科室二维码</text> -->
  250. <!-- </view> -->
  251. <!-- <view v-if="item.taskType.associationType.value == 'ordinary' && item.taskType.ordinaryField.value == 'clothingSend'"> -->
  252. <!-- 待到达 -->
  253. <!-- <text class="red" v-if="item.gdState.value == 4">请扫描起点科室二维码</text> -->
  254. <!-- 待送达 -->
  255. <!-- <text class="red" v-if="item.gdState.value == 5">请扫描终点科室二维码</text> -->
  256. <!-- </view> -->
  257. <!-- <view v-else-if="item.taskType.associationType.value == 'other'"> -->
  258. <!-- 待到达 -->
  259. <!-- <text class="red" v-if="item.gdState.value == 4 && item.taskType.carryingCourses[0].checkoutMethod.value == 1">可通过扫描科室码或者拍照进行签到</text> -->
  260. <!-- <text class="red" v-if="item.gdState.value == 4 && item.taskType.carryingCourses[0].checkoutMethod.value == 2">扫描交接人员二维码进行交接</text> -->
  261. <!-- </view> -->
  262. <!-- 如果不是患者陪检,患者转运,其他,万能交接,标本配送,标本轮巡 -->
  263. <view class="page_item_btn" v-if="
  264. selectedLabelSlots == '执行中' &&
  265. item.taskType.associationType.value != 'patientTransport' &&
  266. item.taskType.associationType.value != 'inspect' &&
  267. item.taskType.associationType.value != 'other' &&
  268. item.taskType.associationType.value != 'specimen' &&
  269. item.taskType.associationType.value != 'specimenPlan' &&
  270. item.taskType.associationType.value != 'ordinary'
  271. " hover-class="seimin-btn-hover">
  272. <smallScreen :sData="item" :sType="2">扫码</smallScreen>
  273. </view>
  274. <!-- 如果不是静配,药配,万能交接,标本配送,标本轮巡-->
  275. <view class="page_item_btn_wrap" v-if="
  276. selectedLabelSlots == '执行中' &&
  277. item.taskType.associationType.value != 'jPBag' &&
  278. item.taskType.associationType.value != 'drugsBag' &&
  279. item.taskType.associationType.value != 'specimen' &&
  280. item.taskType.associationType.value != 'specimenPlan' &&
  281. item.taskType.associationType.value != 'ordinary'
  282. ">
  283. <view v-if="(hideInspectScan != 1 || !(hideInspectScan == 1 && item.gdState.value != 4 && (item.taskType.associationType.value == 'patientTransport' || item.taskType.associationType.value == 'inspect'))) && !(item.taskType.associationType.value == 'other' && (item.gdState.value == 4 && item.taskType.carryingCourses[0].actionsSwitch || item.gdState.value == 5 && item.taskType.carryingCourses[1].actionsSwitch))" class="page_item_btn" hover-class="seimin-btn-hover">
  284. <smallScreen :sData="item" :sType="1">扫码</smallScreen>
  285. </view>
  286. <!-- 其他临床服务-完成工单-待到达 -->
  287. <view v-if="item.taskType.associationType.value == 'other' && item.gdState.value == 4 && item.taskType.carryingCourses[0].actionsSwitch" class="page_item_btn" @click="otherCompleteOrder(item)" hover-class="seimin-btn-hover">确认到达</view>
  288. <!-- 其他临床服务-完成工单-待送达 -->
  289. <view v-if="item.taskType.associationType.value == 'other' && item.gdState.value == 5 && item.taskType.carryingCourses[1].actionsSwitch" class="page_item_btn" @click="otherCompleteOrder(item)" hover-class="seimin-btn-hover">完成工单</view>
  290. <!-- 其他临床服务-拍照 -->
  291. <view v-if="item.taskType.associationType.value == 'other' && item.gdState.value == 4 && item.taskType.carryingCourses[0].photoSwitch" class="page_item_btn" @click="photographToOther(item, 'start')" hover-class="seimin-btn-hover">拍照</view>
  292. <view v-if="(hideInspectScan != 1 || !(hideInspectScan == 1 && item.gdState.value != 4 && (item.taskType.associationType.value == 'patientTransport' || item.taskType.associationType.value == 'inspect'))) && item.taskType.associationType.value != 'other' && item.gdState.value == 4" class="page_item_btn" @click="photograph(item)" hover-class="seimin-btn-hover">拍照</view>
  293. <!-- 其他临床服务-追加 -->
  294. <view v-if="item.taskType.associationType.value == 'other' && item.worker && item.worker.id && clinicalMultiplayerMode === 1 && showAppendUser === 1 && item.clinicalTaskIdsFlag && !item.copyBy" class="page_item_btn" @click="additionalUser(item)" hover-class="seimin-btn-hover">追加</view>
  295. </view>
  296. <!-- 如果是万能交接-血制品 -->
  297. <view class="page_item_btn_wrap" v-if="selectedLabelSlots == '执行中' && item.taskType.associationType.value == 'ordinary' && signType4 && item.taskType.ordinaryField.value == 'blood'">
  298. <!-- 送达交接 -->
  299. <view class="page_item_btn" @click="goTobloodEnd(item)" hover-class="seimin-btn-hover" v-if="delivery === 1 && item.gdState.value == 5">送达交接</view>
  300. <!-- 领血证 -->
  301. <view class="page_item_btn" @click="certificatHandler(item)" hover-class="seimin-btn-hover" v-if="useTakeCode == 1">领血证</view>
  302. </view>
  303. <!-- 如果是万能交接-被服洗涤送回 -->
  304. <view class="page_item_btn" v-if="item.taskType.associationType.value == 'ordinary' && item.taskType.ordinaryField.value == 'clothingSend' && item.gdState.value == 5" hover-class="seimin-btn-hover">
  305. <view class="page_item_btn" @click="goToWashingEnd(item)" hover-class="seimin-btn-hover">核对被服</view>
  306. </view>
  307. <view class="page_item_btn" v-if="selectedLabelSlots == '待接单'" @click="showAlerts(item)" hover-class="seimin-btn-hover">接单</view>
  308. </view>
  309. <view class="L-l"></view>
  310. <view class="R-l"></view>
  311. </view>
  312. </scroll-view>
  313. </view>
  314. <view class="bigScreenWrap">
  315. <view class="left" @click="isShowKey" v-if="isNumberKey">
  316. <text class="left-icon newicon newicon-miyue"></text>
  317. <view class="left-title">数字密钥</view>
  318. </view>
  319. <!-- 底部扫一扫 -->
  320. <view class="right" :class="!isNumberKey?'right-100':''">
  321. <bigScreen ref="bigscreen" :isNumberKey="isNumberKey"></bigScreen>
  322. <view class="more" v-if="arrayBigScreen.length"></view>
  323. <picker class="more_picker" @cancel="cancelPicker" @click.stop @change="execFilterBigScreen($event)" :value="indexBigScreen"
  324. :range="arrayBigScreen" range-key="name" v-if="arrayBigScreen.length">
  325. <view class="uni-input">{{ arrayBigScreen[indexBigScreen].name }}</view>
  326. </picker>
  327. </view>
  328. </view>
  329. <!-- 悬浮按钮 -->
  330. <view>
  331. <uni-fab :pattern="pattern" :content="content" :direction="direction" @fabClick="fabClick" @trigger="trigger"></uni-fab>
  332. </view>
  333. <!-- 弹窗 -->
  334. <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
  335. @ok="ok" @cancel="cancel" @know="know" :operate="models.operate"></showModel>
  336. <!-- 我的二维码-弹窗 -->
  337. <showMyQrcode v-if="showMyQrcodeModel.disjunctor" :disjunctor="showMyQrcodeModel.disjunctor" @know="closeMyQrcodeModel"></showMyQrcode>
  338. <!-- 领血证-弹窗 -->
  339. <showCertificat v-if="showCertificatModel.disjunctor" :disjunctor="showCertificatModel.disjunctor" :id="showCertificatModel.id" @know="closeCertificatModel"></showCertificat>
  340. <!-- 科室二维码-弹窗 -->
  341. <showDepartmentQrcode v-if="showDepartmentQrcodeModel.disjunctor" :disjunctor="showDepartmentQrcodeModel.disjunctor" @know="closeDepartmentQrcodeModel"></showDepartmentQrcode>
  342. <!-- 手动查询标本弹窗 -->
  343. <handViewSpecimen v-if="speModels.disjunctor" :title="speModels.title" :disjunctor="speModels.disjunctor"
  344. @ok="speOk" @cancel="speCancel">
  345. </handViewSpecimen>
  346. <!-- 手动查询药品弹窗 -->
  347. <handViewDrugsBag v-if="drugbagModels.disjunctor" :title="drugbagModels.title"
  348. :disjunctor="drugbagModels.disjunctor" @ok="drugbagOk" @cancel="drugbagCancel">
  349. </handViewDrugsBag>
  350. <!-- 填写交接人工号弹窗 -->
  351. <selectAccount v-if="hosModels.disjunctor" :disjunctor="hosModels.disjunctor" @ok="hosOk"
  352. @cancel="hosCancel">
  353. </selectAccount>
  354. <!-- 手动查询弹窗 -->
  355. <checkboxModal v-if="checkboxModels.disjunctor" :content="checkboxModels.content" :disjunctor="checkboxModels.disjunctor"
  356. @ok="checkboxOk" @cancel="checkboxCancel">
  357. </checkboxModal>
  358. <!-- 执行中筛选 -->
  359. <uni-drawer width="400px" :visible="isShowExecFilter" mode="right" @close="closeDrawer()">
  360. <view class="execFilterMask">
  361. <view class="execFilter" @click.stop>
  362. <view class="execFilterHeader">
  363. 全部筛选
  364. </view>
  365. <view class="execFilterBody">
  366. <view class="execFilterItem">
  367. <view class="execFilterItemHeader">
  368. 工单状态
  369. </view>
  370. <view class="execFilterItemBody">
  371. <view class="execFilterItemBox" @click="currentId = item.id" :class="{active: item.id == currentId}" v-for="item in array" :key="item.id">
  372. {{item.name}}
  373. </view>
  374. </view>
  375. </view>
  376. <view class="execFilterItem">
  377. <view class="execFilterItemHeader">
  378. 申请科室
  379. </view>
  380. <view class="execFilterItemBody">
  381. <input class="deptName" @click="searchAdm" v-model.trim="deptName" placeholder="请选择科室名称" placeholder-style="color:#cecece" />
  382. </view>
  383. </view>
  384. <view class="execFilterItem">
  385. <view class="execFilterItemHeader">
  386. 任务类型
  387. </view>
  388. <view class="execFilterItemBody">
  389. <uni-data-picker class="value" placeholder="请选择任务类型"
  390. :localdata="taskData" v-model="taskTypeId" :clear-icon="false">
  391. </uni-data-picker>
  392. </view>
  393. </view>
  394. </view>
  395. <view class="execFilterFooter">
  396. <view class="btn" @click="execFilterReset()">重置</view>
  397. <view class="btn" @click="execFilterOk()">完成</view>
  398. </view>
  399. </view>
  400. </view>
  401. </uni-drawer>
  402. <!-- </view> -->
  403. <!-- 被服洗涤弹窗 -->
  404. <showModel :title="models1.title" :icon="models1.icon" :disjunctor="models1.disjunctor" :content="models1.content"
  405. @ok="ok1" @cancel="cancel1" :operate="models1.operate"></showModel>
  406. <!-- 父级科室弹窗 -->
  407. <showModel :title="models2.title" icon="" :disjunctor="models2.disjunctor" :content="models2.content" @ok="ok2" @cancel="cancel2" :operate="models2.operate" :childrenDeptList="models2.list"></showModel>
  408. <!-- 父级科室弹窗 -->
  409. <showModel :title="models3.title" icon="" :disjunctor="models3.disjunctor" :content="models3.content" @know="know3" @ok="ok3" @cancel="cancel3" :operate="models3.operate" :busyContentList="models3.list"></showModel>
  410. <!-- 示闲弹窗 -->
  411. <showModel :title="models4.title" icon="models4.icon" :disjunctor="models4.disjunctor" :content="models4.content" @know="know4" @ok="ok4" @cancel="cancel4" :operate="models4.operate"></showModel>
  412. <!-- 是否覆盖弹窗 -->
  413. <showModel :title="models5.title" icon="models5.icon" :disjunctor="models5.disjunctor" :content="models5.content" @know="know5" @ok="ok5" @cancel="cancel5" :operate="models5.operate"></showModel>
  414. <scanner></scanner>
  415. <!-- 动态密钥 -->
  416. <numberKeyModel v-if="showKey" :keyArr="keyArr" @cancel="showKey = false" @confirm="confirmKey($event)"></numberKeyModel>
  417. <!-- apk自动更新 -->
  418. <appUpdata v-if="isApp && isUpdate" @getUpdate="isUpdate=false"></appUpdata>
  419. </view>
  420. </template>
  421. <script>
  422. import selectAccount from "../../components/selectAccount/selectAccount.vue";
  423. import smallScreen from "../../components/smallScreen/smallScreen.vue";
  424. import scanner from "../../components/scanner/scanner.vue";
  425. import showModel from "../../components/showModel/showModel.vue";
  426. import bigScreen from "../../components/bigScreen/bigScreen.vue";
  427. import numberKeyModel from "../../components/numberKeyModel/numberKeyModel.vue";
  428. // https://ext.dcloud.net.cn/plugin?id=144
  429. import uniFab from "@/components/uni-fab/uni-fab.vue";
  430. import uniDrawer from "@/components/uni-drawer/uni-drawer.vue";
  431. import ldSelect from "@/components/ld-select/ld-select.vue";
  432. import MxDatePicker from "@/components/mx-datepicker/mx-datepicker.vue";
  433. import appUpdata from "../../components/appUpdata/appUpdata.vue";
  434. import {
  435. get,
  436. post,
  437. SM,
  438. deleteIt,
  439. webHandle
  440. } from "../../http/http.js";
  441. import {
  442. photographTool,
  443. pathUrl
  444. } from "../../tools/photograph.js";
  445. export default {
  446. data() {
  447. return {
  448. dutyDept: {},
  449. workStateList: [],
  450. clothingType: '',//被服回收扫码的类型,dept|user
  451. isShowExecFilter: false,
  452. deptName: '',//科室名称
  453. deptId:null,//科室id
  454. taskTypeId:null,//任务类型id
  455. taskData:[], //任务类型数据
  456. currentId: 0,
  457. otherAssociationTypeId: null,
  458. inspectAssociationTypeId: null,
  459. hosId: uni.getStorageSync('userData').user.currentHospital.id,
  460. workState: '1',
  461. hideInspectScan: 0,
  462. clinicalMultiplayerMode: 0,
  463. showAppendUser: 0,
  464. signType4: false,
  465. delivery: 0,
  466. useTakeCode: 0,
  467. takeCodeType: {},
  468. clinicalTaskIds: [],
  469. other: {
  470. user: {},
  471. data: {},
  472. },
  473. // 手动查询弹窗model
  474. checkboxModels: {
  475. disjunctor: false,
  476. },
  477. // 填写交接人工号弹窗model
  478. hosModels: {
  479. disjunctor: false,
  480. },
  481. currentCode: '', //当前拍照使用的科室二维码
  482. currentData: {}, //当前小扫描的工单对象
  483. // 弹窗model
  484. showMyQrcodeModel: {
  485. disjunctor: false,
  486. },
  487. // 弹窗model
  488. showCertificatModel: {
  489. disjunctor: false,
  490. },
  491. // 弹窗model
  492. showDepartmentQrcodeModel: {
  493. disjunctor: false,
  494. },
  495. SMFlag: true,
  496. // 手动查询标本弹窗model
  497. speModels: {
  498. disjunctor: false,
  499. },
  500. // 手动查询药品弹窗model
  501. drugbagModels: {
  502. disjunctor: false,
  503. },
  504. // 筛选条件
  505. array: [{
  506. id: 0,
  507. name: "全部",
  508. },
  509. {
  510. id: 71,
  511. name: "待到达",
  512. },
  513. {
  514. id: 72,
  515. name: "待送达",
  516. },
  517. {
  518. id: 75,
  519. name: "执行中",
  520. },
  521. ],
  522. // 筛选条件
  523. arrayBigScreen: [],
  524. index: 0,
  525. indexBigScreen: 0,
  526. arrayKey: 0,
  527. arrayKeyBigScreen: 0,
  528. // 当前登录人是否是药房角色
  529. pharmacistFlag: false,
  530. // 抢单的id
  531. qdId: "",
  532. quiltData: {},
  533. // 弹窗model
  534. models: {
  535. disjunctor: false,
  536. },
  537. // 弹窗model
  538. models1: {
  539. disjunctor: false,
  540. },
  541. // 弹窗model
  542. models2: {
  543. disjunctor: false,
  544. },
  545. // 弹窗model
  546. models3: {
  547. disjunctor: false,
  548. },
  549. // 弹窗model
  550. models4: {
  551. disjunctor: false,
  552. },
  553. // 弹窗model
  554. models5: {
  555. disjunctor: false,
  556. },
  557. // 悬浮按钮样式
  558. pattern: {
  559. buttonColor: "#6cc076",
  560. },
  561. // 悬浮按钮展开菜单显示方式
  562. direction: "vertical",
  563. // 悬浮按钮展开菜单内容配置项
  564. content: [{
  565. text: "我的任务",
  566. },],
  567. // 当前选中tab页名称
  568. selectedLabelSlots: "待接单",
  569. // tab页信息
  570. tabs: [{
  571. label: "待接单", //tab页名称
  572. value: "1", //值
  573. num: 0, //数量
  574. },
  575. {
  576. label: "执行中",
  577. value: "2",
  578. num: 0,
  579. },
  580. ],
  581. //列表数据
  582. zxzData: [],
  583. //分页页码
  584. idx: 0,
  585. // 列表项总数
  586. totalNum: -1,
  587. triggered: false, //下拉刷新状态
  588. freshing: false, //上拉加载开关
  589. scroll_top: 0, //距离顶部的距离
  590. scroll_refresher_enabled: true, //是否开启自定义下拉刷新
  591. quiltCode: '',
  592. tabType: "", //当前选中项
  593. selectArr: [], //选中项
  594. workData: [],
  595. userId: {
  596. ids: [],
  597. },
  598. code: "",
  599. showKey:false,
  600. keyNum:4, //密钥位数
  601. isNumberKey:false, //是否开启动态密钥
  602. keyArr: [],
  603. isApp:false,
  604. isUpdate:false,
  605. taskTypeList:[]
  606. };
  607. },
  608. components: {
  609. uniDrawer,
  610. MxDatePicker,
  611. ldSelect
  612. },
  613. filters: {
  614. // 自定义管道 yyTime
  615. yyTimeFilter: function(data) {
  616. if (data) {
  617. let nDate = null;
  618. if (typeof data == 'string') {
  619. let arr = data.split(/[-:\s]/);
  620. nDate = new Date(
  621. arr[0] - 0,
  622. arr[1] - 1,
  623. arr[2] - 0,
  624. arr[3] - 0,
  625. arr[4] - 0,
  626. 0
  627. );
  628. } else if (typeof data == 'number') {
  629. nDate = new Date(data);
  630. }
  631. const month = (nDate.getMonth() + 1).toString().padStart(2, 0);
  632. const date = nDate.getDate().toString().padStart(2, 0);
  633. const hour = nDate.getHours().toString().padStart(2, 0);
  634. const minute = nDate.getMinutes().toString().padStart(2, 0);
  635. return `${month}-${date} ${hour}:${minute}`;
  636. } else {
  637. return "";
  638. }
  639. }
  640. },
  641. components: {
  642. uniFab,
  643. showModel,
  644. bigScreen,
  645. numberKeyModel,
  646. scanner,
  647. selectAccount,
  648. appUpdata
  649. },
  650. methods: {
  651. // 获取任务类型
  652. getTaskType(){
  653. let postData = {
  654. idx: 0,
  655. sum: 9999,
  656. taskType:{
  657. hosIds:this.hosId,
  658. simpleQuery: true
  659. }
  660. };
  661. post("/configuration/fetchDataList/taskType",postData).then((res) => {
  662. if (res.status == 200) {
  663. this.taskTypeList = res.list
  664. console.log(444,this.taskTypeList)
  665. }
  666. });
  667. },
  668. confirmKey(data){
  669. this.padChange(data)
  670. this.showKey = false
  671. },
  672. isShowKey(){
  673. this.showKey = true
  674. },
  675. // 获取配置
  676. getConfig() {
  677. let postData = {
  678. idx: 0,
  679. sum: 9999,
  680. hospitalConfig:{
  681. hosId:this.hosId,
  682. model:"all"
  683. }
  684. };
  685. post("/simple/data/fetchDataList/hospitalConfig",postData).then((result) => {
  686. if (result.status == 200) {
  687. this.keyArr = []
  688. for(let i of result.list){
  689. if(i.key=='digitalSecretKey'){
  690. if(i.value==1){
  691. this.isNumberKey = true
  692. }else{
  693. this.isNumberKey = false
  694. }
  695. }else if(i.key=='numberDigitalSecretKey'){
  696. this.keyNum = Number(i.value)
  697. }
  698. }
  699. for(let i = 0; i < this.keyNum; i++){
  700. this.keyArr.push({
  701. value:null
  702. })
  703. }
  704. console.log(444,this.keyArr)
  705. }
  706. });
  707. },
  708. // 标本配送-待送达-运输过程-标本数字交接,则,科室签到不需要填写交接人
  709. validateHandoverSpecimen(){
  710. return post("/simple/data/fetchDataList/taskType", {
  711. "idx": 0,
  712. "sum": 1,
  713. "taskType": {
  714. "hosId": {
  715. "id": this.hosId
  716. },
  717. "associationType": {
  718. "key": "association_types",
  719. "value": "specimen"
  720. }
  721. }
  722. });
  723. },
  724. //科室签到
  725. //trueBigScanner----判断是否大扫描
  726. //bigScanner----判断是否需要交接人
  727. //accountObj----弹窗填写的交接人信息
  728. async orderDeptHandler(bigScanner, accountObj) {
  729. console.log(this.infoDATA);
  730. uni.showLoading({
  731. title: "加载中",
  732. mask: true,
  733. });
  734. if(this.tabType === 'specimen' && this.infoDATA.specimen && this.infoDATA.specimen[0].gdState.value == 5){
  735. let result = await this.validateHandoverSpecimen();
  736. if (result.status == 200) {
  737. if(result.list.length){
  738. // 标本-运送过程-终点科室-标本数字交接
  739. if(result.list[0].carryingCourses[1].checkoutMethod.value == 3){
  740. bigScanner = false;
  741. }
  742. }else{
  743. uni.showToast({
  744. icon: "none",
  745. title: "请配置标本配送任务类型!",
  746. });
  747. uni.hideLoading();
  748. return;
  749. }
  750. }
  751. }
  752. let type = "orderSign/" + this.code;
  753. let list = {
  754. ids: this.userId.ids,
  755. trueBigScanner: ['666']
  756. };
  757. bigScanner && (list.bigScanner = ['666']);
  758. if (accountObj) {
  759. list.handover = [accountObj.accountId];
  760. }
  761. post("/workerOrder/" + type, list).then((res) => {
  762. console.log(this.tabType)
  763. uni.hideLoading();
  764. if (res.status == 200) {
  765. if (this.tabType == 'specimenPlan') {
  766. // -----------------------------
  767. console.log(this.selectArr, '选中工单')
  768. let gd = this.infoDATA.specimenPlan.find(v => v.id == this.selectArr[0]);
  769. let startDeptId = gd.startDept.id; //起点科室id
  770. let isDigitalHandover = gd.taskType.isDigitalHandover; //是否数字交接开关
  771. let signDeptId = res.deptId; //签到的科室id
  772. let gdId = gd.id;
  773. let gdState = gd.gdState.value;
  774. let endDepts = gd.endDepts.map(v => v.id).toString();
  775. uni.navigateTo({
  776. url: `../scanning_djEnd/scanning_djEnd?type=${
  777. this.tabType
  778. }&type1=${res.type}&code=${this.code}&dept=${
  779. res.dept
  780. }&ids=${encodeURIComponent(
  781. JSON.stringify(this.userId.ids)
  782. )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}&startDeptId=${startDeptId}&isDigitalHandover=${isDigitalHandover}&signDeptId=${signDeptId}&gdId=${gdId}&gdState=${gdState}&endDepts=${endDepts}`,
  783. });
  784. } else if (this.tabType == 'specimen') {
  785. // 同济是false
  786. if (res.deptType && res.deptType.value === 'middleRoom') {
  787. // if (false) {
  788. // 如果是中转科室
  789. uni.navigateTo({
  790. url: `../checkAfterBigScreen/checkAfterBigScreen?type=${
  791. this.tabType
  792. }&type1=${res.type}&code=${this.code}&dept=${
  793. res.dept
  794. }&ids=${encodeURIComponent(
  795. JSON.stringify(this.userId.ids)
  796. )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}`,
  797. });
  798. } else if(res.type === 'spe-dsd-4'){
  799. // 检验方式是标本数字交接
  800. uni.navigateTo({
  801. url: `/pages/specimenHandoverNew/specimenHandoverNew?type=${
  802. this.tabType
  803. }&type1=${res.type}&code=${this.code}&dept=${
  804. res.dept
  805. }&ids=${encodeURIComponent(
  806. JSON.stringify(this.userId.ids)
  807. )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}`,
  808. });
  809. } else{
  810. uni.navigateTo({
  811. url: `../scanning_djEnd/scanning_djEnd?type=${
  812. this.tabType
  813. }&type1=${res.type}&code=${this.code}&dept=${
  814. res.dept
  815. }&ids=${encodeURIComponent(
  816. JSON.stringify(this.userId.ids)
  817. )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}`,
  818. });
  819. }
  820. }
  821. } else if (res.status == "0000") {
  822. this.showSelectAccount();
  823. } else {
  824. this.flag = true;
  825. uni.navigateTo({
  826. url: `../scanning_djEnd/scanning_djEnd?type=${this.tabType}&type1=${
  827. res.type
  828. }&code=${this.code}&dept=${res.dept}&ids=${encodeURIComponent(
  829. JSON.stringify(this.userId.ids)
  830. )}&model=${encodeURIComponent(JSON.stringify(res))}&deptId=${res.deptId}`,
  831. });
  832. }
  833. });
  834. },
  835. padChange(scannerCode){
  836. if(!this.isNumberKey){
  837. scannerCode = scannerCode.replace('\n','')
  838. }
  839. this.$refs.bigscreen.ScanningCommon('', scannerCode);
  840. },
  841. // 搜索科室
  842. searchAdm(){
  843. let data = {
  844. currentId:this.currentId, //工单状态
  845. taskType:this.taskTypeId, //任务类型
  846. selectedLabelSlots:this.selectedLabelSlots, //tab选中状态
  847. taskData:JSON.stringify(this.taskData)
  848. }
  849. uni.setStorageSync("admStore",data)
  850. let setDeptConfg = uni.getStorageSync("setDeptConfg") || {};
  851. uni.navigateTo({
  852. url: `../search/search?type=takeOrder&id=${this.id}&changedept=${this.changedept}&quickCombinationId=${setDeptConfg.id || ''}`,
  853. });
  854. },
  855. goTobloodEnd(order){
  856. uni.navigateTo({
  857. url: `/pages/newBlood/endOrderSignBlood/endOrderSignBlood?orderIds=${order.id}&deptName=${order.endDepts[0].dept}&deptId=${order.endDepts[0].id}&type=delivery`,
  858. });
  859. },
  860. goToWashingEnd(order){
  861. uni.navigateTo({
  862. url: `../quiltWashing/quiltWashingSendSignIn/quiltWashingSendSignIn?orderId=${order.id}&endDeptId=${order.endDepts[0].id}&endDeptName=${order.endDepts[0].dept}`,
  863. });
  864. },
  865. async initList(){
  866. uni.showLoading({
  867. title: "加载中",
  868. mask: true,
  869. });
  870. let res = await this.getAssociationTypes();
  871. //获取其他临床服务业务类型
  872. let otherAssociationType = res.find(v => v.value === 'other');
  873. this.otherAssociationTypeId = otherAssociationType ? otherAssociationType.id : null;
  874. if(this.otherAssociationTypeId){
  875. // 获取临床服务页面控制开关
  876. let result = await this.getTaskOtherConfig();
  877. if (result.status == 200) {
  878. if(result.list && result.list[0]){
  879. this.clinicalMultiplayerMode = result.list[0].clinicalMultiplayerMode;
  880. this.showAppendUser = result.list[0].showAppendUser;
  881. this.clinicalTaskIds = result.list[0].clinicalTaskIds ? result.list[0].clinicalTaskIds.split(',') : [] ;
  882. }else{
  883. this.clinicalMultiplayerMode = 0;
  884. this.showAppendUser = 0;
  885. }
  886. } else {
  887. this.clinicalMultiplayerMode = 0;
  888. this.showAppendUser = 0;
  889. }
  890. }else{
  891. uni.showToast({
  892. icon: 'none',
  893. title: '未设置其他临床服务业务类型!'
  894. })
  895. }
  896. //获取患者陪检业务类型
  897. let inspectAssociationType = res.find(v => v.value === 'inspect');
  898. this.inspectAssociationTypeId = inspectAssociationType ? inspectAssociationType.id : null;
  899. if(this.inspectAssociationTypeId){
  900. // 获取检查页面控制开关
  901. let result = await this.getTaskInspectConfig();
  902. if (result.status == 200) {
  903. if(result.list && result.list[0]){
  904. this.hideInspectScan = result.list[0].hideInspectScan;
  905. }else{
  906. this.hideInspectScan = 0;
  907. }
  908. } else {
  909. this.hideInspectScan = 0;
  910. }
  911. }
  912. this.getBloodPageConfig()
  913. this.waitingOrdersGetNum();
  914. this.executingOrders(0);
  915. this.getWorkStateList();
  916. },
  917. getWorkStateList(){
  918. post('/common/common/getDictionary', {
  919. "type": "list",
  920. "key": "user_work_state"
  921. }).then(res => {
  922. this.workStateList = res;
  923. });
  924. },
  925. // 获取血制品页面控制开关
  926. async getBloodPageConfig(){
  927. let result = await this.getTaskBloodConfig();
  928. if (result.status == 200) {
  929. if(result.list && result.list[0]){
  930. let signTypeList = result.list[0].signTypeList || [];
  931. this.signType4 = signTypeList.some(v => v.value == 4);
  932. this.delivery = result.list[0].delivery;
  933. this.useTakeCode = result.list[0].useTakeCode;
  934. this.takeCodeType = result.list[0].takeCodeType;
  935. }else{
  936. this.signType4 = false;
  937. this.delivery = 0;
  938. this.useTakeCode = 0;
  939. this.takeCodeType = {};
  940. }
  941. } else {
  942. this.signType4 = false;
  943. this.delivery = 0;
  944. this.useTakeCode = 0;
  945. this.takeCodeType = {};
  946. }
  947. },
  948. //获取s业务类型
  949. getAssociationTypes(){
  950. return post('/common/common/getDictionary', {
  951. "type": "list",
  952. "key": "association_types"
  953. });
  954. },
  955. // 获取临床服务页面控制开关
  956. getTaskOtherConfig(){
  957. return post("/simple/data/fetchDataList/taskTypeConfig", {
  958. "idx": 0,
  959. "sum": 10,
  960. "taskTypeConfig": {
  961. "hosId": this.hosId,
  962. "associationType": this.otherAssociationTypeId,
  963. }
  964. });
  965. },
  966. // 获取检查页面控制开关
  967. getTaskInspectConfig(){
  968. return post("/simple/data/fetchDataList/taskTypeConfig", {
  969. "idx": 0,
  970. "sum": 10,
  971. "taskTypeConfig": {
  972. "taskTypeDTO": {
  973. "hosId": { id: this.hosId },
  974. "associationType": { key: "association_types", value: "inspect" },
  975. }
  976. }
  977. });
  978. },
  979. // 获取血制品页面控制开关
  980. getTaskBloodConfig(){
  981. return post("/simple/data/fetchDataList/taskTypeConfig", {
  982. "idx": 0,
  983. "sum": 10,
  984. "taskTypeConfig": {
  985. "taskTypeDTO": {
  986. "hosId": {
  987. "id": this.hosId
  988. },
  989. "ordinaryField": {
  990. "key": "ordinary_field",
  991. "value": "blood"
  992. }
  993. }
  994. }
  995. });
  996. },
  997. // 手动查询-确认
  998. checkboxOk(bulkCopy) {
  999. console.log(bulkCopy);
  1000. this.checkboxModels.disjunctor = false;
  1001. let { user, data } = this.other;
  1002. this.additionalUserCommon(user, data.id, data.worker.id, bulkCopy);
  1003. },
  1004. // 手动查询-取消
  1005. checkboxCancel() {
  1006. this.checkboxModels.disjunctor = false;
  1007. },
  1008. // 手动查询弹窗
  1009. showCheckboxModal(user, data) {
  1010. this.other = {
  1011. user,
  1012. data,
  1013. };
  1014. this.checkboxModels = {
  1015. content: `您要最追加的人员为${user.name},您确认要追加吗?`,
  1016. disjunctor: true,
  1017. }
  1018. },
  1019. // 追加陪检人/执行人按钮
  1020. additionalUser(data) {
  1021. if (!this.SMFlag) {
  1022. return;
  1023. }
  1024. this.SMFlag = false;
  1025. console.log(data, 'data');
  1026. SM().then((ress1) => {
  1027. uni.showLoading({
  1028. title: "加载中",
  1029. mask: true,
  1030. });
  1031. //检验二维码的有效性
  1032. post("/dept/scanning", {
  1033. content: ress1,
  1034. taskTypeId: data.taskType.id,
  1035. gdState: data.gdState.id,
  1036. }).then((result) => {
  1037. this.SMFlag = true;
  1038. // this.currentCode = result.code;
  1039. if (result.state == 200 || result.state == 201) {
  1040. console.log(result);
  1041. let user;
  1042. try{
  1043. // json对象字符串
  1044. user = JSON.parse(result.code);
  1045. // 不是json对象字符串
  1046. if(Object.prototype.toString.call(user).slice(8, -1).toLowerCase() !== 'object'){
  1047. user = result.code;
  1048. }
  1049. }catch(e){
  1050. user = result.code;
  1051. }
  1052. if(Object.prototype.toString.call(user).slice(8, -1).toLowerCase() === 'object' && user.type == 'myQrCode' && user.id && user.name){
  1053. user.qrcode = ress1;
  1054. uni.hideLoading();
  1055. if(data.taskType.associationType.value == 'other'){
  1056. this.showCheckboxModal(user, data);
  1057. }else{
  1058. uni.showModal({
  1059. title: "提示",
  1060. content: `您要最追加的人员为${user.name},您确认要追加吗?`,
  1061. success: (res) => {
  1062. if (res.confirm) {
  1063. console.log("用户点击确定");
  1064. this.additionalUserCommon(user, data.id, data.worker.id, false);
  1065. } else if (res.cancel) {
  1066. console.log("用户点击取消");
  1067. }
  1068. },
  1069. });
  1070. }
  1071. }else if(Object.prototype.toString.call(user).slice(8, -1).toLowerCase() === 'string'){
  1072. let identityCardNumber = user;
  1073. // 根据身份证获取name
  1074. post("/data/fetchDataList/user", {idx: 0, sum: 1, user: { identityCardNumber }}).then((result) => {
  1075. uni.hideLoading();
  1076. if(result.status == 200){
  1077. result.list = result.list || [];
  1078. if(result.list.length){
  1079. let user = {name: result.list[0].name, identityCardNumber, qrcode: ress1};
  1080. if(data.taskType.associationType.value == 'other'){
  1081. this.showCheckboxModal(user, data);
  1082. }else{
  1083. uni.showModal({
  1084. title: "提示",
  1085. content: `您要最追加的人员为${user.name},您确认要追加吗?`,
  1086. success: (res) => {
  1087. if (res.confirm) {
  1088. console.log("用户点击确定");
  1089. this.additionalUserCommon(user, data.id, data.worker.id, false);
  1090. } else if (res.cancel) {
  1091. console.log("用户点击取消");
  1092. }
  1093. },
  1094. });
  1095. }
  1096. }else{
  1097. uni.navigateTo({
  1098. url: `../result_error/result_error?qrcode=${ress1}&msg=扫描二维码无法找到用户!`,
  1099. });
  1100. }
  1101. }else{
  1102. uni.navigateTo({
  1103. url: `../result_error/result_error?qrcode=${ress1}&msg=请扫描正确的二维码!`,
  1104. });
  1105. }
  1106. })
  1107. }else{
  1108. uni.hideLoading();
  1109. uni.navigateTo({
  1110. url: `../result_error/result_error?qrcode=${ress1}&msg=请扫描正确的二维码!`,
  1111. });
  1112. }
  1113. } else {
  1114. uni.hideLoading();
  1115. uni.navigateTo({
  1116. url: `../result_error/result_error?qrcode=${ress1}&msg=${result.info || '接口获取数据失败!'}`,
  1117. });
  1118. }
  1119. });
  1120. }).catch(err=>{
  1121. this.SMFlag = true;
  1122. });
  1123. },
  1124. // 追加陪检人/执行人
  1125. additionalUserCommon(user, gdId, workerId, bulkCopy) {
  1126. console.log(user, gdId, workerId, bulkCopy);
  1127. uni.showLoading({
  1128. title: "加载中",
  1129. mask: true,
  1130. });
  1131. // 二维码里有id则传userid,没有则传identityCardNumber
  1132. post("/workerOrder/additionalAccompanyingPersonnel", {
  1133. userId: user.id || undefined,
  1134. identityCardNumber: !user.id ? user.identityCardNumber : undefined,
  1135. gdId,
  1136. workerId,
  1137. bulkCopy: bulkCopy ? 1 : undefined,
  1138. }).then((result) => {
  1139. uni.hideLoading();
  1140. if (result.state == 200) {
  1141. uni.showToast({
  1142. icon: 'none',
  1143. duration: 4000,
  1144. title: '操作成功!'
  1145. })
  1146. uni.redirectTo({
  1147. url: `../receiptpage/receiptpage`,
  1148. });
  1149. } else {
  1150. uni.navigateTo({
  1151. url: `../result_error/result_error?qrcode=${user.qrcode}&msg=${result.msg || '接口获取数据失败!'}`,
  1152. });
  1153. }
  1154. });
  1155. },
  1156. // 前往其他临床服务完成工单确认页面
  1157. otherCompleteOrder(data){
  1158. console.log(data);
  1159. uni.navigateTo({
  1160. url: `../otherCompleteOrder/otherCompleteOrder?orderId=${data.id}&taskType=${data.taskType ? encodeURIComponent(JSON.stringify(data.taskType)) : ''}&order=${data ? encodeURIComponent(JSON.stringify(data)) : ''}`,
  1161. });
  1162. },
  1163. // 手动查询药品-确认
  1164. drugbagOk(data) {
  1165. console.log(data);
  1166. if (!data.id) {
  1167. //没有查询到药品
  1168. uni.showModal({
  1169. title: '提示',
  1170. content: "没有查询到发药单号!",
  1171. showCancel: false,
  1172. success: function(res) {
  1173. if (res.confirm) {
  1174. console.log('用户点击确定');
  1175. } else if (res.cancel) {
  1176. console.log('用户点击取消');
  1177. }
  1178. }
  1179. });
  1180. return;
  1181. }
  1182. this.drugbagModels.disjunctor = false;
  1183. if ( data.drugsBagType && (data.drugsBagType.value == 'drugsJpbag' || data.drugsBagType.value == 'drugsWestern' || data.drugsBagType.value == 'drugsReturn' || data.drugsBagType.value == 'drugsPoison' || data.drugsBagType.value == 'drugsHerbal')) {
  1184. //新药品-扫静配|西药|退药|毒麻|中草药
  1185. if(data.gdId){
  1186. // 有工单
  1187. this.getInfo(data, data.packid);
  1188. }else{
  1189. // 没有工单,进入起点科室流程
  1190. uni.navigateTo({
  1191. url: `/pages/newDrug/createOrder/createOrder?drugsBagType=${data.drugsBagType.value}&drugsBagId=${data.id}&type=build`,
  1192. });
  1193. }
  1194. }else{
  1195. //扫药包码
  1196. uni.navigateTo({
  1197. url: `/pages/scanning_drug/scanning_drug?drugsBagId=${data.id}&drugsBagBatchNo=${data.batchNo}`,
  1198. });
  1199. }
  1200. // uni.navigateTo({
  1201. // url: `/pages/scanning_drug/scanning_drug?drugsBagId=${data.id}`,
  1202. // });
  1203. },
  1204. //获取药包信息
  1205. getInfo(responeseData, code){
  1206. console.log(responeseData);
  1207. let gdValue = responeseData.workOrderDTO ? responeseData.workOrderDTO.gdState.value : null;
  1208. uni.showLoading({
  1209. title: "加载中",
  1210. mask: true,
  1211. });
  1212. post(`/transflow/scanInfo`, {type: responeseData.drugsBagType.value, id: responeseData.id, orderStateValue: gdValue}).then(res => {
  1213. uni.hideLoading();
  1214. if(res.state == 200){
  1215. if(res.data){
  1216. let drugsBag = res.data.dto || {};
  1217. let orderId = responeseData.gdId;
  1218. let config = res.data.taskTypeConfig || {};
  1219. console.log(res);
  1220. if(gdValue == 2 || gdValue == 3 || (gdValue == 4 && responeseData.workOrderDTO.worker.id == uni.getStorageSync('userData').user.id)){
  1221. // 待抢单、待接单、待到达(本人),进入起点科室流程
  1222. uni.navigateTo({
  1223. url: `/pages/newDrug/createOrder/createOrder?drugsBagType=${responeseData.drugsBagType.value}&drugsBagId=${responeseData.id}&orderId=${responeseData.gdId || ''}&type=receive`,
  1224. });
  1225. }else if(gdValue == 5 && responeseData.workOrderDTO.worker.id == uni.getStorageSync('userData').user.id){
  1226. // 待送达(本人),进入终点科室流程
  1227. this.pageNavigateByConfig(config, responeseData, responeseData, code)
  1228. }else{
  1229. // 查看药包信息
  1230. uni.navigateTo({
  1231. url: `/pages/newDrug/createOrder/createOrder?drugsBagType=${responeseData.drugsBagType.value}&drugsBagId=${responeseData.id}&type=view`,
  1232. });
  1233. }
  1234. }
  1235. }else{
  1236. uni.showToast({
  1237. icon: "none",
  1238. title: res.msg || "接口获取数据失败!",
  1239. });
  1240. }
  1241. })
  1242. },
  1243. // 根据配置跳转页面
  1244. pageNavigateByConfig(config, responseData, queryObj, code){
  1245. let drugsBagType = queryObj.drugsBagType.value;
  1246. let orderId = responseData.gdId;
  1247. let drugsBagId = responseData.id;
  1248. let orderStateValue = responseData.workOrderDTO ? responseData.workOrderDTO.gdState.value : null;
  1249. if(config.drugsModel === 1){
  1250. // 一单一码
  1251. if(orderStateValue == 4){
  1252. // 待到达
  1253. if(config.drugsStartCheck === 1){
  1254. // 起点科室支持核对
  1255. uni.navigateTo({
  1256. url: `/pages/newDrug/checkPage/checkPage?drugsBagType=${drugsBagType}&orderId=${orderId}`,
  1257. });
  1258. }else{
  1259. // 起点科室不支持核对
  1260. if(config.drugsStartPhoto === 1){
  1261. // 起点科室支持拍照留存
  1262. uni.navigateTo({
  1263. url: `/pages/newDrug/photoRetention/photoRetention?drugsBagType=${drugsBagType}&orderId=${orderId}`,
  1264. });
  1265. }else{
  1266. // 起点科室不支持拍照留存
  1267. this.completeOrder(responseData, queryObj);
  1268. }
  1269. }
  1270. }else if(orderStateValue == 5){
  1271. // 待送达
  1272. uni.showLoading({
  1273. title: "加载中",
  1274. mask: true,
  1275. });
  1276. post("/transflow/scanBind", { type: drugsBagType, orderId, code }).then((ress) => {
  1277. uni.hideLoading();
  1278. if (ress.state == 200) {
  1279. if(ress.data.msg){
  1280. uni.showToast({
  1281. icon: "none",
  1282. title: ress.data.msg || "接口获取数据失败!",
  1283. });
  1284. }else{
  1285. if(config.drugsEndCheck === 1){
  1286. // 起点科室支持核对
  1287. uni.navigateTo({
  1288. url: `/pages/newDrug/checkPage/checkPage?drugsBagType=${drugsBagType}&orderId=${orderId}`,
  1289. });
  1290. }else{
  1291. // 起点科室不支持核对
  1292. if(config.drugsEndPhoto === 1){
  1293. // 起点科室支持拍照留存
  1294. uni.navigateTo({
  1295. url: `/pages/newDrug/photoRetention/photoRetention?drugsBagType=${drugsBagType}&orderId=${orderId}`,
  1296. });
  1297. }else{
  1298. // 终点科室不支持拍照留存
  1299. this.completeOrder(responseData, queryObj);
  1300. }
  1301. }
  1302. }
  1303. } else {
  1304. uni.showToast({
  1305. icon: "none",
  1306. title: ress.msg || "接口获取数据失败!",
  1307. });
  1308. }
  1309. });
  1310. }
  1311. }else if(config.drugsModel === 2){
  1312. // 一单多码
  1313. uni.showLoading({
  1314. title: "加载中",
  1315. mask: true,
  1316. });
  1317. post("/transflow/scanBind", { type: drugsBagType, orderId, code }).then((ress) => {
  1318. uni.hideLoading();
  1319. if (ress.state == 200) {
  1320. if(ress.data.msg){
  1321. uni.showToast({
  1322. icon: "none",
  1323. title: ress.data.msg || "接口获取数据失败!",
  1324. });
  1325. }else{
  1326. uni.navigateTo({
  1327. url: `/pages/newDrug/continueScanning/continueScanning?drugsBagType=${drugsBagType}&orderId=${orderId}&drugsBagId=${drugsBagId}&orderStateValue=${orderStateValue}`,
  1328. });
  1329. }
  1330. } else {
  1331. uni.showToast({
  1332. icon: "none",
  1333. title: ress.msg || "接口获取数据失败!",
  1334. });
  1335. }
  1336. });
  1337. }
  1338. },
  1339. // 工单完成
  1340. completeOrder(responseData, queryObj){
  1341. console.log(responseData, queryObj)
  1342. uni.showLoading({
  1343. title: "加载中",
  1344. mask: true,
  1345. });
  1346. let postData = {
  1347. "type": queryObj.drugsBagType.value,
  1348. "orderId": responseData.gdId,
  1349. };
  1350. post('/transflow/checkComplete', postData).then(res => {
  1351. uni.hideLoading();
  1352. if(res.state == 200){
  1353. uni.showToast({
  1354. icon: "none",
  1355. title: orderStateValue == 4 ? "交接成功,请尽快送达科室!" : (orderStateValue == 5 ? "交接成功,完成配送!" : ""),
  1356. duration: 60000,
  1357. mask: true,
  1358. complete(){
  1359. setTimeout(() => {
  1360. uni.hideToast();
  1361. uni.redirectTo({
  1362. url: `/pages/receiptpage/receiptpage`,
  1363. });
  1364. }, 2000)
  1365. }
  1366. });
  1367. }else{
  1368. uni.showToast({
  1369. icon: "none",
  1370. title: res.msg || "接口获取数据失败!",
  1371. });
  1372. }
  1373. })
  1374. },
  1375. // 手动查询药品-取消
  1376. drugbagCancel() {
  1377. this.drugbagModels.disjunctor = false;
  1378. },
  1379. // 手动查询药品弹窗
  1380. showHandViewDrugsbag() {
  1381. console.log(1)
  1382. this.drugbagModels = {
  1383. title: '填写发药单号',
  1384. disjunctor: true,
  1385. }
  1386. },
  1387. //确定
  1388. ok4() {
  1389. this.models4.disjunctor = false;
  1390. uni.showLoading({
  1391. title: "加载中",
  1392. mask: true,
  1393. });
  1394. post("/user/data/changeWorkState", {
  1395. workState: this.workStateList.find(v => v.value == 1).id,
  1396. }).then((res) => {
  1397. uni.hideLoading();
  1398. if (res.status == 200) {
  1399. this.getCurrentUserNow();
  1400. this.models4 = {
  1401. disjunctor: true,
  1402. title: "提示",
  1403. content: `示闲成功`,
  1404. icon: "warn",
  1405. operate: {
  1406. know: "返回",
  1407. },
  1408. };
  1409. }else{
  1410. uni.showToast({
  1411. icon: "none",
  1412. title: res.msg || "接口获取数据失败!",
  1413. });
  1414. }
  1415. });
  1416. },
  1417. //取消
  1418. cancel4() {
  1419. this.models4.disjunctor = false;
  1420. },
  1421. //取消
  1422. know4() {
  1423. this.models4.disjunctor = false;
  1424. },
  1425. // 示闲
  1426. showLeisure(){
  1427. this.models4 = {
  1428. disjunctor: true,
  1429. title: "提示",
  1430. content: "您确认要示闲吗?",
  1431. icon: "warn",
  1432. operate: {
  1433. ok: "确定",
  1434. cancel: "取消",
  1435. },
  1436. };
  1437. },
  1438. // 示忙
  1439. showBusy(){
  1440. uni.showLoading({
  1441. title: "加载中",
  1442. mask: true,
  1443. });
  1444. let postData = {"idx":0,"workScheme":{"status":1,"hosId":this.hosId},"sum":1};
  1445. post("/simple/data/fetchDataList/workScheme", postData).then((res) => {
  1446. uni.hideLoading();
  1447. if (res.status == 200) {
  1448. let config = res.list.length ? res.list[0] : {};
  1449. let list = [];
  1450. for (let key in config) {
  1451. if(key.includes('busyContent') && config[key]){
  1452. list.push({
  1453. busyContent: config[key],
  1454. busyMinute: config['busyMinute' + key.replace('busyContent', '')],
  1455. });
  1456. }
  1457. }
  1458. this.models3 = {
  1459. disjunctor: true,
  1460. title: "提示",
  1461. content: "请选择暂停工作的原因。",
  1462. icon: "warn",
  1463. list,
  1464. operate: {
  1465. cancel: "取消",
  1466. },
  1467. };
  1468. } else {
  1469. uni.showToast({
  1470. icon: "none",
  1471. title: res.msg || "接口获取数据失败!",
  1472. });
  1473. }
  1474. });
  1475. },
  1476. // 手动查询标本-确认
  1477. speOk(data) {
  1478. console.log(data);
  1479. if (!data.id) {
  1480. //没有查询到标本
  1481. uni.showModal({
  1482. title: '提示',
  1483. content: "没有查询到标本!",
  1484. showCancel: false,
  1485. success: function(res) {
  1486. if (res.confirm) {
  1487. console.log('用户点击确定');
  1488. } else if (res.cancel) {
  1489. console.log('用户点击取消');
  1490. }
  1491. }
  1492. });
  1493. return;
  1494. }
  1495. this.speModels.disjunctor = false;
  1496. let infoDATA = {
  1497. stype: data.stype,
  1498. scode: data.scode,
  1499. patientName: data.patientName,
  1500. sickRoom: data.sickRoom ?
  1501. data.sickRoom.dept : "-",
  1502. checkDept: data.checkDept ?
  1503. data.checkDept.dept : "-",
  1504. bedNum: data.bedNum,
  1505. };
  1506. uni.navigateTo({
  1507. url: `../scanning_B/scanning_B?res=${encodeURIComponent(
  1508. JSON.stringify({data,status:666,scanCodeSpecimenOrderSign:data.scanCodeSpecimenOrderSign,workOrder:data.workOrderDTO})
  1509. )}&infoDATA=${encodeURIComponent(
  1510. JSON.stringify(infoDATA)
  1511. )}`,
  1512. });
  1513. },
  1514. // 手动查询标本-取消
  1515. speCancel() {
  1516. this.speModels.disjunctor = false;
  1517. },
  1518. // 手动查询标本弹窗
  1519. showHandViewSpecimen() {
  1520. this.speModels = {
  1521. title: '填写标本编码',
  1522. disjunctor: true,
  1523. }
  1524. },
  1525. // 执行中筛选
  1526. // execFilter({
  1527. // detail: {
  1528. // value
  1529. // }
  1530. // }) {
  1531. // this.index = value;
  1532. // this.arrayKey = this.array[value].id;
  1533. // this.zxzData = [];
  1534. // this.totalNum = -1;
  1535. // this.idx = 0;
  1536. // this.selectedLabelSlots = "执行中";
  1537. // this.executingOrders(0);
  1538. // },
  1539. // 获取任务类型
  1540. getTaskData(){
  1541. let data = {
  1542. idx:0,
  1543. sum: 9999,
  1544. };
  1545. let url = null
  1546. if(this.selectedLabelSlots=='待接单'){
  1547. url = '/workerOrder/waitingOrdersByTaskType'
  1548. }else{
  1549. url = '/workerOrder/executingOrdersByTaskType'
  1550. }
  1551. post(url, data).then(res => {
  1552. this.taskData = res.data.map(i=>{
  1553. return {
  1554. text:i.name+'('+i.count+')',
  1555. value:i.id
  1556. }
  1557. })
  1558. });
  1559. },
  1560. closeDrawer() {
  1561. this.isShowExecFilter = false;
  1562. let data = uni.getStorageSync("admStore")
  1563. data.isSearch = false
  1564. uni.setStorageSync("admStore",data)
  1565. },
  1566. // 执行中筛选
  1567. execFilter() {
  1568. this.getTaskData()
  1569. this.isShowExecFilter = true;
  1570. },
  1571. // 筛选确定之后数据操作
  1572. setScreenData(){
  1573. let data = {
  1574. deptName:this.deptName,
  1575. deptId:this.deptId,
  1576. currentId:this.currentId, //工单状态
  1577. taskType:this.taskTypeId, //任务类型
  1578. selectedLabelSlots:this.selectedLabelSlots, //tab选中状态
  1579. taskData:JSON.stringify(this.taskData),
  1580. isSearch:false
  1581. }
  1582. uni.setStorageSync("admStore",data)
  1583. },
  1584. // 执行中确定
  1585. execFilterOk() {
  1586. this.isShowExecFilter = false;
  1587. this.zxzData = [];
  1588. this.totalNum = -1;
  1589. this.idx = 0;
  1590. this.setScreenData()
  1591. if (this.selectedLabelSlots == "待接单") {
  1592. this.waitingOrders(0);
  1593. } else if (this.selectedLabelSlots == "执行中") {
  1594. this.executingOrders(0);
  1595. }
  1596. },
  1597. // 执行中重置
  1598. execFilterReset() {
  1599. this.currentId = 0;
  1600. this.deptName = '';
  1601. this.deptId = ''//科室id
  1602. this.taskTypeId = '' //任务类型
  1603. uni.setStorageSync("admStore",{})
  1604. },
  1605. cancelPicker(){
  1606. },
  1607. // 大扫描筛选
  1608. execFilterBigScreen({
  1609. detail: {
  1610. value
  1611. }
  1612. }) {
  1613. this.indexBigScreen = value;
  1614. this.arrayKeyBigScreen = this.arrayBigScreen[value].id;
  1615. console.log(this.arrayKeyBigScreen);
  1616. console.log(this.$refs.bigscreen);
  1617. this.$refs.bigscreen.Scanning(this.arrayKeyBigScreen);
  1618. },
  1619. // 获取科室二维码设置开关
  1620. getMenu() {
  1621. let menu = uni.getStorageSync("userData").menu;
  1622. //判断当前登陆人具体角色 start
  1623. let roles = uni.getStorageSync("userData").user.role;
  1624. this.pharmacistFlag = roles.some(
  1625. (item) => item.rolecode === "pharmacist"
  1626. );
  1627. //判断当前登陆人具体角色 end
  1628. // console.log(menu);
  1629. this.arrayBigScreen = [];
  1630. menu.forEach((item) => {
  1631. if (item.link === "wxInspect") {
  1632. this.content.push({
  1633. text: "检查信息",
  1634. });
  1635. } else if (item.link === "wxPatient") {
  1636. this.content.push({
  1637. text: "患者信息",
  1638. });
  1639. } else if (item.link === "wxPharmacy") {
  1640. // 如果是配药师人员,则增加药房
  1641. if (this.pharmacistFlag) {
  1642. this.content.push({
  1643. text: "药房",
  1644. });
  1645. }
  1646. } else if (item.link === "wxCode") {
  1647. this.content.push({
  1648. text: "二维码设置",
  1649. });
  1650. } else if (item.link === "wxSpecimenEntry") {
  1651. this.content.push({
  1652. text: "标本录入",
  1653. });
  1654. } else if (item.link === "wxDrugsbagEntry") {
  1655. this.content.push({
  1656. text: "药品录入",
  1657. });
  1658. } else if (item.link === "workState" && this.workState == 1) {
  1659. this.content.push({
  1660. text: "示闲",
  1661. });
  1662. } else if (item.link === "workState" && this.workState == 2) {
  1663. this.content.push({
  1664. text: "示忙",
  1665. });
  1666. } else if (item.link === "sendBuild") {
  1667. this.content.push({
  1668. text: "送回发起",
  1669. });
  1670. } else if (item.link === "sendHandover") {
  1671. this.content.push({
  1672. text: "领取交接",
  1673. });
  1674. } else if (item.link === "medicalWasteOut") {
  1675. this.content.push({
  1676. text: "医废出库",
  1677. });
  1678. } else if (item.link === "wxTakeMedicine") {
  1679. this.content.push({
  1680. text: "摆药取药",
  1681. });
  1682. } else if (item.link === "myQrcode") {
  1683. this.content.push({
  1684. text: "我的二维码",
  1685. });
  1686. } else if (item.link === "departmentQrcode") {
  1687. this.content.push({
  1688. text: "科室二维码",
  1689. });
  1690. } else if (item.link === "formManagementWechat") {
  1691. this.content.push({
  1692. text: "查看表单",
  1693. });
  1694. } else if (item.link === "BIAOBEN") {
  1695. this.arrayBigScreen.push({
  1696. id: 'BIAOBEN|$|',
  1697. name: "标本",
  1698. });
  1699. } else if (item.link === "YAOPING") {
  1700. this.arrayBigScreen.push({
  1701. id: 'YAOPING|$|',
  1702. name: "药品",
  1703. });
  1704. } else if (item.link === "HUANZHE") {
  1705. this.arrayBigScreen.push({
  1706. id: 'HUANZHE|$|',
  1707. name: "患者",
  1708. });
  1709. } else if (item.link === "XIEZHIPING") {
  1710. this.arrayBigScreen.push({
  1711. id: 'XIEZHIPING|$|',
  1712. name: "血制品",
  1713. });
  1714. } else if (item.link === "KJJD") {
  1715. this.arrayBigScreen.push({
  1716. id: 'KJJD|$|',
  1717. name: "快捷建单",
  1718. });
  1719. } else if (item.link === "kuaijiejiedan") {
  1720. this.arrayBigScreen.push({
  1721. id: 'kuaijiejiedan|$|',
  1722. name: "快捷接单",
  1723. });
  1724. } else if (item.link === "quickOrderAcceptanceWx") {
  1725. this.content.push({
  1726. text: "快捷接单",
  1727. });
  1728. } else if (item.link === "wxQuiltRecovery") {
  1729. this.content.push({
  1730. text: "被服回收",
  1731. });
  1732. } else if (item.link === "transferWorkOrder") {
  1733. this.content.push({
  1734. text: "患者交接",
  1735. });
  1736. } else if (item.link === "wxPatientInspectLog") {
  1737. this.content.push({
  1738. text: "陪检闭环",
  1739. });
  1740. } else if (item.link === "sponsorTask") {
  1741. this.content.push({
  1742. text: "发起任务",
  1743. });
  1744. }
  1745. });
  1746. },
  1747. // 拍照
  1748. photograph(data) {
  1749. photographTool(data);
  1750. },
  1751. // 如果不是静配,药配,标本配送,标本轮巡
  1752. // 科室签到(小扫描)-拍照
  1753. nextDeptOrder_ss(data, accountObj) {
  1754. console.log(this.currentCode);
  1755. let isKs = 0;
  1756. let ids = [];
  1757. let id = data.id;
  1758. ids.push(id);
  1759. let list = {
  1760. code: "",
  1761. ids: ids,
  1762. };
  1763. let code = "";
  1764. let type = "";
  1765. if (this.currentCode) {
  1766. let gdStateValue = data.gdState.value; //工单状态value
  1767. let associationTypeValue = data.taskType.associationType.value; //关联类型value
  1768. // 其他临床服务,并且工单状态是待到达||工单状态待送达
  1769. if (
  1770. (associationTypeValue == "other" &&
  1771. gdStateValue == "4") ||
  1772. gdStateValue == "5"
  1773. ) {
  1774. code = this.currentCode;
  1775. type = "orderSign/" + code;
  1776. list = {
  1777. ids
  1778. };
  1779. if (accountObj) {
  1780. list.handover = [accountObj.accountId];
  1781. }
  1782. isKs = 1;
  1783. }
  1784. uni.showLoading({
  1785. title: "加载中",
  1786. mask: true,
  1787. });
  1788. post("/workerOrder/" + type, list).then((res) => {
  1789. uni.hideLoading();
  1790. if (res) {
  1791. if (res.status == 200) {
  1792. if (
  1793. gdStateValue == "4" &&
  1794. associationTypeValue == "other"
  1795. ) {
  1796. uni.navigateTo({
  1797. url: `../../pages/scanning_code/scanning_code?type=${associationTypeValue}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}`,
  1798. });
  1799. }
  1800. if (gdStateValue == "5") {
  1801. uni.navigateTo({
  1802. url: `../../pages/scanning_code/scanning_code?type=${associationTypeValue}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}`,
  1803. });
  1804. }
  1805. } else {
  1806. uni.navigateTo({
  1807. url: `../../pages/scanning_Result/scanning_Result?type=${
  1808. associationTypeValue
  1809. }&type1=${res.type}&id=${data.id}&status=600&msg=${
  1810. res.msg
  1811. }&taskTypeId=${
  1812. this.infoDATA.taskType.id
  1813. }&isKs=${isKs}&model=${encodeURIComponent(
  1814. JSON.stringify(res)
  1815. )}&qrcode=${this.currentCode}`,
  1816. });
  1817. }
  1818. } else {
  1819. uni.navigateTo({
  1820. url: `../../pages/scanning_Result/scanning_Result?id=${data.id}&status=600&msg=扫码失败!请扫描正确的二维码!&isKs=${isKs}&qrcode=${this.currentCode}`,
  1821. });
  1822. }
  1823. });
  1824. }
  1825. },
  1826. // 填写交接人工号-确认
  1827. hosOk(data) {
  1828. console.log(data);
  1829. const {
  1830. accountName,
  1831. account,
  1832. accountId
  1833. } = data;
  1834. if (!accountName && !account) {
  1835. //没有填写交接人
  1836. uni.showModal({
  1837. title: '提示',
  1838. content: "请填写交接人工号!",
  1839. showCancel: false,
  1840. success: function(res) {
  1841. if (res.confirm) {
  1842. console.log('用户点击确定');
  1843. } else if (res.cancel) {
  1844. console.log('用户点击取消');
  1845. }
  1846. }
  1847. });
  1848. return;
  1849. } else if (!accountName && account || accountName && !account) {
  1850. //没有填写交接人
  1851. uni.showModal({
  1852. title: '提示',
  1853. content: "请填写正确的交接人工号!",
  1854. showCancel: false,
  1855. success: function(res) {
  1856. if (res.confirm) {
  1857. console.log('用户点击确定');
  1858. } else if (res.cancel) {
  1859. console.log('用户点击取消');
  1860. }
  1861. }
  1862. });
  1863. return;
  1864. }
  1865. this.hosModels.disjunctor = false;
  1866. let associationTypeValue = this.currentData.taskType.associationType.value;
  1867. console.log(associationTypeValue)
  1868. this.uploadToOther(this.currentData, data, 'start');
  1869. },
  1870. // 填写交接人工号-取消
  1871. hosCancel() {
  1872. this.hosModels.disjunctor = false;
  1873. },
  1874. // 填写交接人工号弹窗
  1875. showSelectAccount() {
  1876. this.hosModels = {
  1877. disjunctor: true,
  1878. }
  1879. },
  1880. // 拍照-上传
  1881. uploadToOther(data, accountObj, type){
  1882. // 其他临床服务拍照签到
  1883. console.log(data, 1111);
  1884. let id_seimin;
  1885. let asTypeValue_seimin;
  1886. let gdStateValue_seimin;
  1887. if (data.status != 200 && data.status !== undefined) {
  1888. id_seimin = data.id;
  1889. asTypeValue_seimin = data.type;
  1890. gdStateValue_seimin = JSON.parse(data.model).gdstate2; //type改成gdstate
  1891. } else {
  1892. id_seimin = data.id;
  1893. asTypeValue_seimin = data.taskType.associationType.value;
  1894. gdStateValue_seimin = data.gdState.value;
  1895. }
  1896. //#ifdef H5
  1897. uni.chooseImage({
  1898. count: 1,
  1899. sourceType: ['camera'],
  1900. success: (chooseImageRes) => {
  1901. console.log(chooseImageRes, pathUrl)
  1902. const tempFilePaths = chooseImageRes.tempFilePaths;
  1903. const tempFiles = chooseImageRes.tempFiles;
  1904. let tp = tempFilePaths[0];
  1905. uni.showLoading({
  1906. mask: true,
  1907. title: '加载中'
  1908. });
  1909. post('/workerOrder/findRecordInfoByOrderId', {
  1910. orderId: id_seimin,
  1911. gdOperate: 21,
  1912. }).then(result => {
  1913. console.log(result)
  1914. if (result.state == 200) {
  1915. uni.getImageInfo({
  1916. src: tp,
  1917. success: (res) => {
  1918. console.log('压缩前', res)
  1919. let canvasWidth = res.width //图片原始长宽
  1920. let canvasHeight = res.height
  1921. let img = new Image()
  1922. img.src = res.path
  1923. let canvas = document.createElement('canvas');
  1924. let ctx = canvas.getContext('2d')
  1925. canvas.width = canvasWidth
  1926. canvas.height = canvasHeight
  1927. ctx.drawImage(img, 0, 0, canvasWidth, canvasHeight)
  1928. canvas.toBlob((fileSrc) => {
  1929. tp = window.URL.createObjectURL(fileSrc)
  1930. console.log('压缩后', tp);
  1931. uni.uploadFile({
  1932. url: pathUrl + '/common/common/uploadAttachment/'+(type == 'start' ? 'orderStartPhoto' : 'orderEndPhoto')+'/' + id_seimin + '/' + result.recordId,
  1933. filePath: tp,
  1934. name: 'file',
  1935. formData: {
  1936. 'filename': tempFiles[0].name ? tempFiles[0].name.split('.')[0] + '.jpg' : tempFiles[
  1937. 0].path.split(
  1938. /[\\/]/).reverse()[0].split('.')[0] + '.jpg'
  1939. },
  1940. success: (uploadFileRes) => {
  1941. console.log(uploadFileRes, 10086, asTypeValue_seimin);
  1942. this.nextDeptOrder_ss(data, accountObj, type);
  1943. },
  1944. fail: err => {
  1945. console.error(err);
  1946. uni.hideLoading();
  1947. uni.showToast({
  1948. icon: 'none',
  1949. title: '上传失败',
  1950. duration: 2000
  1951. });
  1952. }
  1953. });
  1954. }, 'image/jpeg', 0.3)
  1955. },
  1956. fail: function () {
  1957. uni.hideLoading();
  1958. uni.showToast({
  1959. icon: 'none',
  1960. title: '上传失败',
  1961. duration: 2000
  1962. });
  1963. }
  1964. })
  1965. } else {
  1966. uni.hideLoading();
  1967. uni.showToast({
  1968. icon: "none",
  1969. title: result.msg || "接口获取数据失败!",
  1970. });
  1971. }
  1972. })
  1973. }
  1974. });
  1975. //#endif
  1976. //#ifdef APP-PLUS
  1977. uni.chooseImage({
  1978. count: 1,
  1979. sourceType: ['camera'],
  1980. sizeType: ['compressed'],
  1981. success: (chooseImageRes) => {
  1982. console.log(chooseImageRes, pathUrl)
  1983. const tempFilePaths = chooseImageRes.tempFilePaths;
  1984. const tempFiles = chooseImageRes.tempFiles;
  1985. let tp = tempFilePaths[0];
  1986. uni.showLoading({
  1987. mask: true,
  1988. title: '加载中'
  1989. });
  1990. post('/workerOrder/findRecordInfoByOrderId', {
  1991. orderId: id_seimin,
  1992. gdOperate: 21,
  1993. }).then(result => {
  1994. console.log(result)
  1995. if (result.state == 200) {
  1996. uni.compressImage({
  1997. src: tp,
  1998. quality: 30,
  1999. success: (res) => {
  2000. console.log('压缩前', res)
  2001. tp = res.tempFilePath;
  2002. console.log('压缩后', tp);
  2003. uni.uploadFile({
  2004. url: pathUrl + '/common/common/uploadAttachment/'+(type == 'start' ? 'orderStartPhoto' : 'orderEndPhoto')+'/' + id_seimin + '/' + result.recordId,
  2005. filePath: tp,
  2006. name: 'file',
  2007. formData: {
  2008. 'filename': tempFiles[0].name ? tempFiles[0].name.split('.')[0] + '.jpg' : tempFiles[
  2009. 0].path.split(
  2010. /[\\/]/).reverse()[0].split('.')[0] + '.jpg'
  2011. },
  2012. success: (uploadFileRes) => {
  2013. console.log(uploadFileRes, 10086, asTypeValue_seimin);
  2014. this.nextDeptOrder_ss(data, accountObj, type);
  2015. },
  2016. fail: err => {
  2017. console.error(err);
  2018. uni.hideLoading();
  2019. uni.showToast({
  2020. icon: 'none',
  2021. title: '上传失败',
  2022. duration: 2000
  2023. });
  2024. }
  2025. });
  2026. },
  2027. fail: function () {
  2028. uni.hideLoading();
  2029. uni.showToast({
  2030. icon: 'none',
  2031. title: '上传失败',
  2032. duration: 2000
  2033. });
  2034. }
  2035. })
  2036. } else {
  2037. uni.hideLoading();
  2038. uni.showToast({
  2039. icon: "none",
  2040. title: result.msg || "接口获取数据失败!",
  2041. });
  2042. }
  2043. })
  2044. }
  2045. });
  2046. //#endif
  2047. },
  2048. // 拍照-其他
  2049. async photographToOther(data, type) {
  2050. this.currentData = data;
  2051. uni.showLoading({
  2052. title: "加载中",
  2053. mask: true,
  2054. });
  2055. // 其他临床服务
  2056. let result = await post("/dept/scanning", {
  2057. content: type === 'start' ? data.startDept.qrcode : data.endDepts[0].qrcode,
  2058. taskTypeId: data.taskType.id,
  2059. gdState: data.gdState.id,
  2060. });
  2061. uni.hideLoading();
  2062. this.currentCode = result.code;
  2063. if (result.state == 200 || result.state == 201) {
  2064. uni.showModal({
  2065. title: '提示',
  2066. content: '请尽量拍摄角度覆盖清洁区域?',
  2067. success: (res) => {
  2068. if (res.confirm) {
  2069. if (result.account) {
  2070. this.uploadToOther(data, {
  2071. account: result.account,
  2072. accountName: result.name,
  2073. accountId: result.id,
  2074. }, type);
  2075. } else {
  2076. this.uploadToOther(data, undefined, type);
  2077. }
  2078. } else if (res.cancel) {
  2079. console.log('用户点击取消');
  2080. }
  2081. }
  2082. });
  2083. } else if (result.state == '0000') {
  2084. this.showSelectAccount();
  2085. } else {
  2086. uni.showToast({
  2087. icon: "none",
  2088. title: result.info || "接口获取数据失败!",
  2089. });
  2090. }
  2091. },
  2092. fabClick(){
  2093. },
  2094. // 悬浮按钮点击事件
  2095. trigger(e) {
  2096. if (e.item.text === "我的任务") {
  2097. uni.navigateTo({
  2098. url: "../mypage/mypage",
  2099. });
  2100. } else if (e.item.text === "退出登录") {
  2101. // 假登录
  2102. uni.showToast({
  2103. title: "退出成功!",
  2104. });
  2105. let ip = uni.getStorageSync("ip"); //记住域名或ip
  2106. let username = uni.getStorageSync("username"); //记住用户名
  2107. let password = uni.getStorageSync("password"); //记住密码
  2108. let savePasswordTime = uni.getStorageSync("savePasswordTime"); //记住密码的时间戳
  2109. let clientid = uni.getStorageSync("clientid");
  2110. uni.clearStorageSync();
  2111. if (username) {
  2112. uni.setStorageSync("ip", ip); //记住域名或ip
  2113. uni.setStorageSync("username", username); //记住用户名
  2114. uni.setStorageSync("password", password); //记住密码
  2115. uni.setStorageSync("savePasswordTime", savePasswordTime); //记住密码的时间戳
  2116. }
  2117. uni.setStorageSync("clientid", clientid);
  2118. uni.navigateTo({
  2119. url: "../homePage/homePage",
  2120. });
  2121. // 假登录
  2122. deleteIt("/auth/logout2").then((result) => {
  2123. if (result.status == 200) {
  2124. uni.showToast({
  2125. title: "退出成功!",
  2126. });
  2127. let ip = uni.getStorageSync("ip"); //记住域名或ip
  2128. let username = uni.getStorageSync("username"); //记住用户名
  2129. let password = uni.getStorageSync("password"); //记住密码
  2130. let clientid = uni.getStorageSync("clientid");
  2131. uni.clearStorageSync();
  2132. uni.setStorageSync("ip", ip); //记住域名或ip
  2133. uni.setStorageSync("username", username); //记住用户名
  2134. uni.setStorageSync("password", password); //记住密码
  2135. uni.setStorageSync("clientid", clientid);
  2136. uni.navigateTo({
  2137. url: "../homePage/homePage",
  2138. });
  2139. } else {
  2140. uni.showToast({
  2141. icon: "none",
  2142. title: result.msg || "接口获取数据失败!",
  2143. });
  2144. }
  2145. });
  2146. } else if (e.item.text === "药房") {
  2147. uni.navigateTo({
  2148. url: "../pharmacy/pharmacy",
  2149. });
  2150. } else if (e.item.text === "患者信息") {
  2151. uni.navigateTo({
  2152. url: "../patientInformationList/patientInformationList",
  2153. });
  2154. } else if (e.item.text === "负责科室") {
  2155. if (uni.getStorageSync("setDepts")) {
  2156. uni.removeStorageSync("setDepts"); //清空选择的科室,初始化
  2157. }
  2158. let obj = uni.getStorageSync("setDeptConfg");
  2159. uni.navigateTo({
  2160. url: `../setDept/setDept?configName=${obj.configName}&id=${obj.id}&changedept=1`,
  2161. });
  2162. } else if (e.item.text === "检查信息") {
  2163. uni.navigateTo({
  2164. url: "../inspectList/inspectList",
  2165. });
  2166. } else if (e.item.text === "二维码设置") {
  2167. uni.navigateTo({
  2168. url: "../settingCode/settingCode",
  2169. });
  2170. } else if (e.item.text === "标本录入") {
  2171. this.showHandViewSpecimen();
  2172. } else if (e.item.text === "药品录入") {
  2173. this.showHandViewDrugsbag();
  2174. } else if (e.item.text === "示忙") {
  2175. this.showLeisure();
  2176. } else if (e.item.text === "示闲") {
  2177. this.showBusy();
  2178. } else if (e.item.text === "摆药取药") {
  2179. this.handleTakeMedicine()
  2180. } else if (e.item.text === "我的二维码") {
  2181. this.myQrcodeHandler()
  2182. } else if (e.item.text === "科室二维码") {
  2183. this.departmentQrcodeHandler()
  2184. } else if (e.item.text === "查看表单") {
  2185. uni.navigateTo({
  2186. url: "../formManagementWechat/formManagementWechat",
  2187. });
  2188. } else if (e.item.text === "快捷接单") {
  2189. uni.navigateTo({
  2190. url: "../quickOrderAcceptanceWx/quickOrderAcceptanceWx",
  2191. });
  2192. } else if (e.item.text === "被服回收") {
  2193. this.quiltScan();
  2194. } else if (e.item.text === "送回发起") {
  2195. uni.navigateTo({
  2196. url: "/pages/quiltWashing/quiltWashingSendSelectDept/quiltWashingSendSelectDept",
  2197. });
  2198. } else if (e.item.text === "领取交接") {
  2199. this.quiltScan_send();
  2200. } else if (e.item.text === "医废出库") {
  2201. uni.navigateTo({
  2202. url: "/pages/medicalWaste/medicalWasteSelect/medicalWasteSelect",
  2203. });
  2204. } else if (e.item.text === "患者交接") {
  2205. uni.navigateTo({
  2206. url: "/pages/transferWorkOrder/transferWorkOrderUser",
  2207. });
  2208. } else if (e.item.text === "陪检闭环") {
  2209. uni.removeStorageSync('patientInspectLogEvtFilter');//清除缓存
  2210. uni.removeStorageSync('patientInspectLogTabActiveId');//清除缓存
  2211. uni.navigateTo({
  2212. url: "/pages/patientInspectLog/patientInspectLogList",
  2213. });
  2214. } else if (e.item.text === "发起任务") {
  2215. uni.navigateTo({
  2216. url: "/pages/sponsorTask/sponsorTask",
  2217. });
  2218. }
  2219. },
  2220. //确定
  2221. ok1() {
  2222. this.models1.disjunctor = false;
  2223. uni.showLoading({
  2224. title: "加载中",
  2225. mask: true,
  2226. });
  2227. let startDeptId, startDeptName, handoverId, handoverName;
  2228. if(this.clothingType === 'user'){
  2229. startDeptId = this.quiltData.dept.id;
  2230. startDeptName = this.quiltData.dept.dept;
  2231. handoverId = this.quiltData.id;
  2232. handoverName = this.quiltData.name;
  2233. }else if(this.clothingType === 'dept'){
  2234. startDeptId = this.quiltData.id;
  2235. startDeptName = this.quiltData.dept;
  2236. handoverId = undefined;
  2237. handoverName = '';
  2238. }
  2239. post("/transflow/createOrTakeOrder", {
  2240. type: 'clothingGet',
  2241. id: 0,
  2242. startDeptId,
  2243. hosId: this.hosId,
  2244. handoverId,
  2245. }).then((res) => {
  2246. uni.hideLoading();
  2247. if (res.data && res.data.state == 200) {
  2248. uni.navigateTo({
  2249. url: `../quiltWashing/quiltWashingGetSignIn/quiltWashingGetSignIn?quiltCode=${this.quiltCode}&startDeptId=${startDeptId}&startDeptName=${startDeptName}&orderId=${res.data.orderId}&name=${handoverName}`,
  2250. });
  2251. }else{
  2252. uni.showToast({
  2253. icon: "none",
  2254. title: res.data ? res.data.msg : "接口获取数据失败!",
  2255. });
  2256. }
  2257. });
  2258. },
  2259. //取消
  2260. cancel1() {
  2261. this.models1.disjunctor = false;
  2262. },
  2263. // 被服回收弹窗
  2264. showQuiltData(data) {
  2265. this.quiltData = data;
  2266. let content = '';
  2267. if(this.clothingType === 'user'){
  2268. content = `您扫描的是<strong class="red">${data.name}</strong>的工号,是否建立<strong class="red">${data.dept.dept}</strong>的被服回收工单吗?`;
  2269. }else if(this.clothingType === 'dept'){
  2270. content = `您扫描的科室码,是否建立<strong class="red">${data.dept}</strong>的被服回收工单吗?`;
  2271. }
  2272. this.models1 = {
  2273. disjunctor: true,
  2274. title: "提示",
  2275. content,
  2276. icon: "warn",
  2277. operate: {
  2278. ok: "建立工单",
  2279. cancel: "取消",
  2280. },
  2281. };
  2282. },
  2283. //确定
  2284. ok2(deptDto) {
  2285. console.log(deptDto);
  2286. this.models2.disjunctor = false;
  2287. uni.showLoading({
  2288. title: "加载中",
  2289. mask: true,
  2290. });
  2291. let startDeptId, startDeptName, handoverId, handoverName;
  2292. if(this.clothingType === 'user'){
  2293. startDeptId = deptDto.id;
  2294. startDeptName = deptDto.dept;
  2295. handoverId = this.quiltData.id;
  2296. handoverName = this.quiltData.name;
  2297. }else if(this.clothingType === 'dept'){
  2298. startDeptId = deptDto.id;
  2299. startDeptName = deptDto.dept;
  2300. handoverId = undefined;
  2301. handoverName = '';
  2302. }
  2303. post("/transflow/createOrTakeOrder", {
  2304. type: 'clothingGet',
  2305. id: 0,
  2306. startDeptId,
  2307. hosId: this.hosId,
  2308. handoverId,
  2309. }).then((res) => {
  2310. uni.hideLoading();
  2311. if (res.data && res.data.state == 200) {
  2312. uni.navigateTo({
  2313. url: `../quiltWashing/quiltWashingGetSignIn/quiltWashingGetSignIn?quiltCode=${this.quiltCode}&startDeptId=${startDeptId}&startDeptName=${startDeptName}&orderId=${res.data.orderId}&name=${handoverName}`,
  2314. });
  2315. }else{
  2316. uni.showToast({
  2317. icon: "none",
  2318. title: res.data ? res.data.msg : "接口获取数据失败!",
  2319. });
  2320. }
  2321. });
  2322. },
  2323. //取消
  2324. cancel2() {
  2325. this.models2.disjunctor = false;
  2326. },
  2327. showParentQuiltData(data){
  2328. this.quiltData = data;
  2329. // 判断是否是父级科室
  2330. let startDeptId, startDeptName, handoverId, handoverName, content;
  2331. if(this.clothingType === 'user'){
  2332. startDeptId = this.quiltData.dept.id;
  2333. startDeptName = this.quiltData.dept.dept;
  2334. handoverId = this.quiltData.id;
  2335. handoverName = this.quiltData.name;
  2336. content = `您扫描的是<strong class="red">${handoverName}</strong>的工号,科室为<strong class="red">${startDeptName}</strong>,需要选择相应的子级科室建单。`;
  2337. }else if(this.clothingType === 'dept'){
  2338. startDeptId = this.quiltData.id;
  2339. startDeptName = this.quiltData.dept;
  2340. handoverId = undefined;
  2341. handoverName = '';
  2342. content = `您扫描的是科室为<strong class="red">${startDeptName}</strong>,需要选择相应的子级科室建单。`;
  2343. }
  2344. uni.showLoading({
  2345. title: "加载中",
  2346. mask: true,
  2347. });
  2348. post("/data/fetchDataList/department", {
  2349. "idx": 0,
  2350. "sum": 9999,
  2351. "department": {
  2352. "cascadeHosId": this.hosId,
  2353. "parent": {
  2354. "id": startDeptId
  2355. },
  2356. "searchType": 1,// 简单查询
  2357. }
  2358. }).then((res) => {
  2359. uni.hideLoading();
  2360. if (res.status == 200) {
  2361. if(res.list.length > 0){
  2362. this.models2 = {
  2363. disjunctor: true,
  2364. title: "提示",
  2365. content,
  2366. icon: "warn",
  2367. list: res.list,
  2368. operate: {
  2369. cancel: "取消",
  2370. },
  2371. };
  2372. }else{
  2373. this.showQuiltData(data)
  2374. }
  2375. }else{
  2376. uni.showToast({
  2377. icon: "none",
  2378. title: res.data ? res.data.msg : "接口获取数据失败!",
  2379. });
  2380. }
  2381. });
  2382. },
  2383. //确定
  2384. ok3(busyContent) {
  2385. console.log(busyContent);
  2386. this.models3.disjunctor = false;
  2387. uni.showLoading({
  2388. title: "加载中",
  2389. mask: true,
  2390. });
  2391. post("/user/data/changeWorkState", {
  2392. workState: this.workStateList.find(v => v.value == 2).id,
  2393. minute: busyContent.busyMinute,
  2394. workStateRemark: busyContent.busyContent,
  2395. }).then((res) => {
  2396. uni.hideLoading();
  2397. if (res.status == 200) {
  2398. this.getCurrentUserNow();
  2399. this.models3 = {
  2400. disjunctor: true,
  2401. title: "提示",
  2402. content: `您上班状态修改为<strong class="red">${busyContent.busyContent}</strong>,<strong class="red">${busyContent.busyMinute}</strong>分钟后自动恢复`,
  2403. icon: "warn",
  2404. operate: {
  2405. know: "返回",
  2406. },
  2407. };
  2408. }else{
  2409. uni.showToast({
  2410. icon: "none",
  2411. title: res.msg || "接口获取数据失败!",
  2412. });
  2413. }
  2414. });
  2415. },
  2416. //取消
  2417. cancel3() {
  2418. this.models3.disjunctor = false;
  2419. },
  2420. //返回
  2421. know3() {
  2422. this.models3.disjunctor = false;
  2423. },
  2424. // 扫描工牌-被服洗涤
  2425. quiltScan() {
  2426. if (!this.SMFlag) {
  2427. return;
  2428. }
  2429. this.SMFlag = false;
  2430. SM().then((content) => {
  2431. uni.showLoading({
  2432. title: "加载中",
  2433. mask: true,
  2434. });
  2435. //检验二维码的有效性(扫码前必须验证)
  2436. post("/dept/scanning", {
  2437. content,
  2438. })
  2439. .then((result) => {
  2440. this.quiltCode = result.code;
  2441. this.SMFlag = true;
  2442. // 200检测通过,201没有有效期也通过。
  2443. if (result.state == 200 || result.state == 201) {
  2444. let data = {
  2445. code: this.quiltCode, //二维码
  2446. };
  2447. post("/transflow/bigScan", { type: 'clothingGet', code: this.quiltCode })
  2448. .then((res) => {
  2449. uni.hideLoading();
  2450. if (res.state == 200) {
  2451. this.clothingType = res.type;
  2452. // 如果当前科室有回收单,并且配送人员是当前登陆人
  2453. if(res.orderId){
  2454. if(res.type == 'user'){
  2455. uni.navigateTo({
  2456. url: `../quiltWashing/quiltWashingGetSignIn/quiltWashingGetSignIn?quiltCode=${this.quiltCode}&startDeptId=${res.data.dept.id}&startDeptName=${res.data.dept.dept}&orderId=${res.orderId}&name=${res.data.name}&nameId=${res.data.id}`,
  2457. });
  2458. } else if(res.type == 'dept'){
  2459. uni.navigateTo({
  2460. url: `../quiltWashing/quiltWashingGetSignIn/quiltWashingGetSignIn?quiltCode=${this.quiltCode}&startDeptId=${res.data.id}&startDeptName=${res.data.dept}&orderId=${res.orderId}&name=`,
  2461. });
  2462. }
  2463. }else{
  2464. this.showParentQuiltData(res.data);
  2465. }
  2466. } else {
  2467. uni.navigateTo({
  2468. url: `../scanning_Result/scanning_Result?status=${res.state}&msg=${res.msg}&qrcode=${this.quiltCode}`,
  2469. });
  2470. }
  2471. });
  2472. } else {
  2473. uni.hideLoading();
  2474. uni.showToast({
  2475. icon: "none",
  2476. title: result.info || "接口获取数据失败!",
  2477. });
  2478. }
  2479. })
  2480. }).catch(err => {
  2481. this.SMFlag = true;
  2482. });
  2483. },
  2484. // 扫描工牌-被服洗涤
  2485. quiltScan_send() {
  2486. if (!this.SMFlag) {
  2487. return;
  2488. }
  2489. this.SMFlag = false;
  2490. SM().then((content) => {
  2491. uni.showLoading({
  2492. title: "加载中",
  2493. mask: true,
  2494. });
  2495. //检验二维码的有效性(扫码前必须验证)
  2496. post("/dept/scanning", {
  2497. content,
  2498. })
  2499. .then((result) => {
  2500. this.quiltCode = result.code;
  2501. this.SMFlag = true;
  2502. // 200检测通过,201没有有效期也通过。
  2503. if (result.state == 200 || result.state == 201) {
  2504. let data = {
  2505. code: this.quiltCode, //二维码
  2506. };
  2507. post("/transflow/extra", { type: 'clothingSend', receiveAndHandover: true, code: this.quiltCode }).then((res) => {
  2508. uni.hideLoading();
  2509. if (res.data && res.data.state == 200) {
  2510. uni.navigateTo({
  2511. url: `../quiltWashing/quiltWashingSendsendHandover/quiltWashingSendsendHandover?quiltCode=${this.quiltCode}`,
  2512. });
  2513. } else {
  2514. uni.navigateTo({
  2515. url: `../scanning_Result/scanning_Result?status=${res.data ? res.data.state : 500}&msg=${res.data ? res.data.msg : ''}&qrcode=${this.quiltCode}`,
  2516. });
  2517. }
  2518. });
  2519. } else {
  2520. uni.hideLoading();
  2521. uni.showToast({
  2522. icon: "none",
  2523. title: result.info || "接口获取数据失败!",
  2524. });
  2525. }
  2526. })
  2527. }).catch(err => {
  2528. this.SMFlag = true;
  2529. });
  2530. },
  2531. // 我的二维码
  2532. myQrcodeHandler(){
  2533. this.showMyQrcodeModel = {
  2534. disjunctor: true,
  2535. };
  2536. },
  2537. closeMyQrcodeModel(){
  2538. this.showMyQrcodeModel.disjunctor = false;
  2539. },
  2540. // 领血证二维码
  2541. certificatHandler(data){
  2542. this.showCertificatModel = {
  2543. disjunctor: true,
  2544. id: data.id,
  2545. };
  2546. },
  2547. closeCertificatModel(){
  2548. this.showCertificatModel.disjunctor = false;
  2549. },
  2550. // 科室二维码
  2551. departmentQrcodeHandler(){
  2552. this.showDepartmentQrcodeModel = {
  2553. disjunctor: true,
  2554. };
  2555. },
  2556. closeDepartmentQrcodeModel(){
  2557. this.showDepartmentQrcodeModel.disjunctor = false;
  2558. },
  2559. // 摆药取药
  2560. handleTakeMedicine() {
  2561. if (!this.SMFlag) {
  2562. return;
  2563. }
  2564. this.SMFlag = false;
  2565. SM().then((content) => {
  2566. uni.showLoading({
  2567. title: "加载中",
  2568. mask: true,
  2569. });
  2570. //检验二维码的有效性(扫码前必须验证)
  2571. post("/dept/scanning", {
  2572. content,
  2573. })
  2574. .then((result) => {
  2575. this.currentCode = result.code;
  2576. this.SMFlag = true;
  2577. // 200检测通过,201没有有效期也通过。
  2578. if (result.state == 200 || result.state == 201) {
  2579. uni.hideLoading();
  2580. uni.navigateTo({
  2581. url: `../promptPage/promptPage?code=${result.code}`,
  2582. });
  2583. } else {
  2584. uni.hideLoading();
  2585. uni.showToast({
  2586. icon: "none",
  2587. title: result.info || "接口获取数据失败!",
  2588. });
  2589. }
  2590. })
  2591. }).catch(err => {
  2592. this.SMFlag = true;
  2593. });
  2594. },
  2595. // 点击tab页切换
  2596. clickHandler(key) {
  2597. this.selectedLabelSlots = key;
  2598. this.idx = 0;
  2599. this.totalNum = -1;
  2600. this.scroll_top = Math.random(); //回到顶部
  2601. this.execFilterReset()
  2602. if (key === "待接单") {
  2603. this.waitingOrders(0);
  2604. } else if (key === "执行中") {
  2605. this.executingOrders(0);
  2606. }
  2607. },
  2608. // 进入详情页
  2609. itemInfo(workOrder) {
  2610. console.log(workOrder);
  2611. uni.navigateTo({
  2612. url: `../receipt_infopage/receipt_infopage?id=${workOrder.id}&associationTypeValue=${workOrder.taskType.associationType.value}&associationTypeId=${workOrder.taskType.associationType.id}&taskTypeId=${workOrder.taskType.id}`,
  2613. });
  2614. },
  2615. //抢单后返回
  2616. know() {
  2617. this.models.disjunctor = false;
  2618. this.idx = 0;
  2619. this.totalNum = -1;
  2620. // this.zxzData = [];
  2621. this.executingOrdersGetNum();
  2622. this.waitingOrders(0); //seimin
  2623. this.scroll_top = Math.random(); //回到顶部
  2624. },
  2625. //抢单确定
  2626. ok() {
  2627. this.models.disjunctor = false;
  2628. get("/workerOrder/takeOrder/" + this.qdId.id).then((res) => {
  2629. let msg = "接单失败";
  2630. let icon = "error";
  2631. if (res.status == 200) {
  2632. msg = "接单成功";
  2633. icon = "success";
  2634. }
  2635. this.models = {
  2636. disjunctor: true,
  2637. content: msg,
  2638. icon: icon,
  2639. operate: {
  2640. know: "返回",
  2641. },
  2642. };
  2643. });
  2644. },
  2645. //抢单取消
  2646. cancel() {
  2647. this.models.disjunctor = false;
  2648. },
  2649. // 抢单
  2650. showAlerts(data) {
  2651. this.qdId = data;
  2652. this.models = {
  2653. disjunctor: true,
  2654. title: "提示",
  2655. content: "是否确定接单?",
  2656. icon: "warn",
  2657. operate: {
  2658. ok: "确定",
  2659. cancel: "取消",
  2660. },
  2661. };
  2662. },
  2663. //执行中列表数据获取
  2664. executingOrders(idx,type) {
  2665. console.log(this.zxzData.length, this.totalNum);
  2666. if (this.zxzData.length == this.totalNum) {
  2667. uni.showToast({
  2668. icon: "none",
  2669. title: "没有更多数据了!",
  2670. });
  2671. this.freshing = true;
  2672. return;
  2673. }
  2674. let data = {
  2675. idx,
  2676. sum: 20,
  2677. };
  2678. if (this.currentId) {
  2679. data.keyWord = this.currentId;
  2680. } else {
  2681. delete data.keyWord;
  2682. }
  2683. if (this.deptId) {
  2684. data.deptId = this.deptId;
  2685. } else {
  2686. delete data.deptId;
  2687. }
  2688. if (this.taskTypeId) {
  2689. data.taskTypeId = this.taskTypeId;
  2690. } else {
  2691. delete data.taskTypeId;
  2692. }
  2693. uni.showLoading({
  2694. title: "加载中",
  2695. mask: true,
  2696. });
  2697. post("/workerOrder/executingOrders", data).then((res) => {
  2698. uni.hideLoading();
  2699. if (res.status == 200) {
  2700. this.triggered = false;
  2701. this.freshing = true;
  2702. if(res.data){
  2703. this.totalNum = res.data.resultCount;
  2704. res.data.data = res.data.data || [];
  2705. res.data.data.forEach(v => {
  2706. v.taskTypeConfig = this.taskTypeList.find(i=>i.id == v.taskType.id)
  2707. v.clinicalTaskIdsFlag = this.clinicalTaskIds.includes(v.taskType.id.toString());
  2708. })
  2709. if (idx === 0) {
  2710. this.zxzData = res.data.data;
  2711. } else {
  2712. this.zxzData.push(...res.data.data);
  2713. }
  2714. console.log(4444,res.data.data)
  2715. this.tabs[1].num = res.data.resultCount;
  2716. }
  2717. } else {
  2718. uni.showToast({
  2719. icon: "none",
  2720. title: res.msg || "接口获取数据失败!",
  2721. });
  2722. }
  2723. });
  2724. },
  2725. //待抢单列表数据获取
  2726. waitingOrders(idx) {
  2727. if (this.zxzData.length == this.totalNum) {
  2728. uni.showToast({
  2729. icon: "none",
  2730. title: "没有更多数据了!",
  2731. });
  2732. this.freshing = true;
  2733. return;
  2734. }
  2735. let data = {
  2736. idx,
  2737. sum: 20,
  2738. };
  2739. if (this.deptId) {
  2740. data.deptId = this.deptId;
  2741. } else {
  2742. delete data.deptId;
  2743. }
  2744. if (this.taskTypeId) {
  2745. data.taskTypeId = this.taskTypeId;
  2746. } else {
  2747. delete data.taskTypeId;
  2748. }
  2749. uni.showLoading({
  2750. title: "加载中",
  2751. mask: true,
  2752. });
  2753. // 请求列表数据
  2754. post("/workerOrder/waitingOrders", data).then((res) => {
  2755. uni.hideLoading();
  2756. if (res.status == 200) {
  2757. this.triggered = false;
  2758. this.freshing = true;
  2759. if(res.data){
  2760. this.totalNum = res.data.resultCount;
  2761. res.data.data.forEach(v => {
  2762. v.taskTypeConfig = this.taskTypeList.find(i=>i.id == v.taskType.id)
  2763. v.clinicalTaskIdsFlag = this.clinicalTaskIds.includes(v.taskType.id.toString());
  2764. })
  2765. if (idx === 0) {
  2766. this.zxzData = res.data.data;
  2767. } else {
  2768. this.zxzData.push(...res.data.data);
  2769. }
  2770. this.tabs[0].num = res.data.resultCount;
  2771. }
  2772. } else {
  2773. uni.showToast({
  2774. icon: "none",
  2775. title: res.msg || "接口获取数据失败!",
  2776. });
  2777. }
  2778. });
  2779. },
  2780. //刷新
  2781. refresherrefresh() {
  2782. if (this.triggered) {
  2783. return;
  2784. }
  2785. this.triggered = true;
  2786. this.idx = 0;
  2787. this.totalNum = -1;
  2788. if (this.selectedLabelSlots == "待接单") {
  2789. this.waitingOrders(0);
  2790. } else if (this.selectedLabelSlots == "执行中") {
  2791. this.executingOrders(0);
  2792. }
  2793. },
  2794. // 滚动
  2795. scroll(e) {
  2796. if (e.detail.scrollTop < 20) {
  2797. this.scroll_refresher_enabled = true;
  2798. } else {
  2799. this.scroll_refresher_enabled = false;
  2800. }
  2801. },
  2802. // 下拉刷新复位
  2803. refresherrestore() {
  2804. this.triggered = false;
  2805. console.log("下拉刷新复位");
  2806. },
  2807. //下拉刷新中止
  2808. refresherabort() {
  2809. this.triggered = false;
  2810. console.log("下拉刷新中止");
  2811. },
  2812. //分页,上拉加载
  2813. scrolltolower() {
  2814. if (this.freshing) {
  2815. this.freshing = false;
  2816. if (this.selectedLabelSlots == "待接单") {
  2817. this.waitingOrders(++this.idx);
  2818. } else if (this.selectedLabelSlots == "执行中") {
  2819. this.executingOrders(++this.idx);
  2820. }
  2821. }
  2822. },
  2823. // 执行中获取数字
  2824. executingOrdersGetNum() {
  2825. let data = {
  2826. idx: 0,
  2827. sum: 20,
  2828. };
  2829. if (this.arrayKey) {
  2830. data.keyWord = this.arrayKey;
  2831. } else {
  2832. delete data.keyWord;
  2833. }
  2834. post("/workerOrder/executingOrders", data).then((res) => {
  2835. if (res.status == 200) {
  2836. this.tabs[1].num = res.data ? res.data.resultCount : 0;
  2837. } else {
  2838. uni.showToast({
  2839. icon: "none",
  2840. title: res.msg || "接口获取数据失败!",
  2841. });
  2842. }
  2843. });
  2844. },
  2845. // 待接单获取数字
  2846. waitingOrdersGetNum() {
  2847. let data = {
  2848. idx: 0,
  2849. sum: 20,
  2850. };
  2851. post("/workerOrder/waitingOrders", data).then((res) => {
  2852. if (res.status == 200) {
  2853. this.tabs[0].num = res.data ? res.data.resultCount : 0;
  2854. } else {
  2855. uni.showToast({
  2856. icon: "none",
  2857. title: res.msg || "接口获取数据失败!",
  2858. });
  2859. }
  2860. });
  2861. },
  2862. // 阻止浏览器滑动
  2863. stop(e) {
  2864. e.preventDefault();
  2865. },
  2866. // 更新用户所在科室
  2867. updateUser(dept) {
  2868. let userData = uni.getStorageSync('userData');
  2869. this.dutyDept = dept;
  2870. post("/user/data/bindDutyDept", {dutyDept: +this.dutyDept.id}).then((res) => {
  2871. if (res.status == 200) {
  2872. this.getCurrentUserNow(true);
  2873. }else if (res.status == 501) {
  2874. if(this.dutyDept.id == userData.user.dutyDept){
  2875. // 选择的科室与绑定科室一样
  2876. this.getCurrentUserNow(true);
  2877. }else{
  2878. // 覆盖
  2879. this.models5 = {
  2880. disjunctor: true,
  2881. title: "提示",
  2882. content: res.msg,
  2883. icon: "warn",
  2884. operate: {
  2885. ok: "确定",
  2886. cancel: "取消",
  2887. },
  2888. };
  2889. }
  2890. }else{
  2891. uni.showToast({
  2892. icon: "none",
  2893. title: res.msg || "接口获取数据失败!",
  2894. });
  2895. }
  2896. })
  2897. },
  2898. //确定
  2899. ok5() {
  2900. this.models5.disjunctor = false;
  2901. uni.showLoading({
  2902. title: "加载中",
  2903. mask: true,
  2904. });
  2905. post("/user/data/bindDutyDept", {dutyDept: +this.dutyDept.id, confirm: 1}).then((res) => {
  2906. uni.hideLoading();
  2907. if (res.status == 200) {
  2908. this.getCurrentUserNow(true);
  2909. }else{
  2910. uni.showToast({
  2911. icon: "none",
  2912. title: res.msg || "接口获取数据失败!",
  2913. });
  2914. }
  2915. });
  2916. },
  2917. //取消
  2918. cancel5() {
  2919. this.models5.disjunctor = false;
  2920. },
  2921. //取消
  2922. know5() {
  2923. this.models5.disjunctor = false;
  2924. },
  2925. // 重新获取用户信息
  2926. getCurrentUserNow(updateDept = false) {
  2927. get("/user/data/getCurrentUser").then((res) => {
  2928. if (res.status == 200) {
  2929. let userData = uni.getStorageSync('userData');
  2930. userData.user = res.data;
  2931. uni.setStorageSync('userData', userData);
  2932. // 显示科室二维码
  2933. if(updateDept){
  2934. this.departmentQrcodeHandler()
  2935. }else{
  2936. this.workState = uni.getStorageSync('userData').user.workState ? uni.getStorageSync('userData').user.workState.value : '1';
  2937. this.content.forEach(v => {
  2938. if(v.text == '示忙' || v.text == '示闲'){
  2939. v.text = this.workState == 1 ? '示闲' : '示忙';
  2940. }
  2941. })
  2942. }
  2943. }else{
  2944. uni.showToast({
  2945. icon: "none",
  2946. title: res.msg || "接口获取数据失败!",
  2947. });
  2948. }
  2949. })
  2950. },
  2951. onLoad(options) {
  2952. let admStore = uni.getStorageSync("admStore");
  2953. if(admStore.type=='searchAdm'){
  2954. if(Object.keys(admStore).length != 0){
  2955. this.$nextTick(_=>{
  2956. if(admStore.isSearch){
  2957. this.isShowExecFilter = true
  2958. }else{
  2959. this.isShowExecFilter = false
  2960. }
  2961. this.deptName = admStore.dept //科室名称
  2962. this.deptId = admStore.deptId //科室id
  2963. this.currentId = admStore.currentId //工单状态
  2964. this.taskTypeId = admStore.taskType //任务类型
  2965. this.selectedLabelSlots = admStore.selectedLabelSlots //tab选中状态
  2966. this.taskData = JSON.parse(admStore.taskData) //任务类型数据
  2967. })
  2968. }
  2969. }
  2970. this.workState = uni.getStorageSync('userData').user.workState ? uni.getStorageSync('userData').user.workState.value : '1';
  2971. // 获取菜单权限
  2972. this.getMenu();
  2973. post("/auth/getUserWorkDept", {}).then((ress) => {
  2974. if (ress.status == 200) {
  2975. let userId = uni.getStorageSync("userData").user.id;
  2976. let groupManager = ress.settings && ress.settings.groupManager; //当前工作组合选择的组
  2977. let workType = ress.settings ? ress.settings.workType : -1; //1是综合,2是自主
  2978. let ruleType = ress.settings ? ress.settings.ruleType : -1; //3是科室绑定人员,4是科室绑定分组,2是绑定分组
  2979. if (workType == 2 && (ruleType == 3 || (ruleType == 4 && userId == groupManager.manager))) {
  2980. //自选排班,科室绑定分组,当前登陆人是组长
  2981. this.content.unshift({
  2982. text: "负责科室",
  2983. });
  2984. }
  2985. }
  2986. });
  2987. // let setDeptConfg = uni.getStorageSync("setDeptConfg");
  2988. // let manager = uni.getStorageSync("manager");
  2989. // let userId = uni.getStorageSync("userData").user.id;
  2990. // console.log(setDeptConfg, manager, userId);
  2991. // if (
  2992. // setDeptConfg.workSchemeType == 2 &&
  2993. // (setDeptConfg.ruleType == 3 ||
  2994. // (setDeptConfg.ruleType == 4 && userId == manager))
  2995. // ) {
  2996. // //自选排班,科室绑定人员 || 科室绑定分组 && 组长是当前登陆人
  2997. // this.content.unshift({
  2998. // text: "负责科室",
  2999. // });
  3000. // }
  3001. // #ifdef APP-PLUS
  3002. // this.content.push({
  3003. // text: "退出登录",
  3004. // });
  3005. // #endif
  3006. this.selectedLabelSlots = "执行中";
  3007. // this.getTaskType();
  3008. this.initList();
  3009. this.getConfig();
  3010. // 科室二维码切换科室回显
  3011. if (options.showDepartmentQrcodeId && options.showDepartmentQrcodeDept) {
  3012. this.updateUser({id: options.showDepartmentQrcodeId, dept: options.showDepartmentQrcodeDept})
  3013. }
  3014. // #ifdef APP-PLUS
  3015. webHandle("no", "app");
  3016. this.isUpdate = true
  3017. this.isApp = true
  3018. // #endif
  3019. // #ifdef H5
  3020. webHandle("no", "wx");
  3021. // #endif
  3022. },
  3023. onShow() {
  3024. uni.removeStorageSync('startDept')
  3025. uni.removeStorageSync('checkoutDept')
  3026. uni.removeStorageSync('testTube')
  3027. uni.removeStorageSync('speState')
  3028. uni.removeStorageSync('gdData')
  3029. this.getConfig();
  3030. let that = this
  3031. // #ifdef APP-PLUS
  3032. this.isUpdate = true
  3033. this.isApp = true
  3034. uni.$off('scan') // 每次进来先 移除全局自定义事件监听器
  3035. uni.$on('scan', function(data) {
  3036. that.padChange(data)
  3037. })
  3038. // #endif
  3039. this.SMFlag = true;
  3040. // #ifdef H5
  3041. document.body.addEventListener("touchmove", this.stop, {
  3042. passive: false,
  3043. });
  3044. // #endif
  3045. },
  3046. onHide() {
  3047. // #ifdef H5
  3048. document.body.removeEventListener("touchmove", this.stop, {
  3049. passive: false,
  3050. });
  3051. // #endif
  3052. },
  3053. }
  3054. };
  3055. </script>
  3056. <style scoped>
  3057. >>>.uni-fab--leftBottom{
  3058. bottom: calc(65px + var(--window-bottom)) !important;
  3059. }
  3060. >>>.uni-fab__circle--leftBottom{
  3061. bottom: calc(75px + var(--window-bottom)) !important;
  3062. }
  3063. </style>
  3064. <style lang="less">
  3065. .hideInput{
  3066. height: 40px;
  3067. position: absolute;
  3068. width: 100px;
  3069. top: 100px;
  3070. left: 100px;
  3071. z-index: 99999;
  3072. border: 1px solid;
  3073. padding-left: 10px;
  3074. }
  3075. /deep/ .uni-drawer__content{
  3076. width: 600rpx !important;
  3077. }
  3078. /deep/ .selected-item-active{
  3079. border-bottom: 4rpx solid #49b856;
  3080. }
  3081. .Receiptpage {
  3082. width: 100%;
  3083. height: 100%;
  3084. position: relative;
  3085. .execFilterMask{
  3086. // position: fixed;
  3087. // top: 0;
  3088. // right: 0;
  3089. // bottom: 0;
  3090. // left: 0;
  3091. // z-index: 9999;
  3092. // background-color: rgba(0, 0, 0, 0.5);
  3093. // display: flex;
  3094. // flex-direction: column;
  3095. // justify-content: flex-end;
  3096. .execFilter{
  3097. position: relative;
  3098. background-color: #fff;
  3099. height: 100vh;
  3100. border-radius: 100rpx 100rpx 0 0;
  3101. .execFilterHeader{
  3102. height: 70rpx;
  3103. display: flex;
  3104. justify-content: center;
  3105. align-items: center;
  3106. border-bottom: 2rpx solid #ccc;
  3107. }
  3108. .execFilterBody{
  3109. .execFilterItem{
  3110. padding: 32rpx;
  3111. border-bottom: 2rpx dashed #ccc;
  3112. &:last-of-type{
  3113. border-bottom: none;
  3114. }
  3115. .execFilterItemHeader{}
  3116. .execFilterItemBody{
  3117. display: flex;
  3118. flex-wrap: wrap;
  3119. padding: 32rpx 0 0;
  3120. justify-content: space-between;
  3121. text-align: left;
  3122. .execFilterItemBox{
  3123. width: 200rpx;
  3124. height: 80rpx;
  3125. text-align: center;
  3126. line-height: 80rpx;
  3127. background-color: #f6f6f6;
  3128. margin-bottom: 20rpx;
  3129. border-radius: 80rpx;
  3130. &.active{
  3131. color: #fff;
  3132. background-color: #49b856;
  3133. }
  3134. }
  3135. .deptName {
  3136. height: 80rpx;
  3137. background-color: #f6f6f6;
  3138. border-radius: 20rpx;
  3139. padding: 0 20rpx;
  3140. width: 100%;
  3141. }
  3142. }
  3143. }
  3144. }
  3145. .execFilterFooter {
  3146. position: absolute;
  3147. bottom: 0;
  3148. right: 0;
  3149. left: 0;
  3150. line-height: 66rpx;
  3151. height: 100rpx;
  3152. display: flex;
  3153. justify-content: space-between;
  3154. .btn {
  3155. height: 66rpx;
  3156. flex: 1;
  3157. margin: 0 1%;
  3158. background-image: linear-gradient(to right, #72c172, #3bb197);
  3159. color: #fff;
  3160. border-radius: 8rpx;
  3161. font-size: 28rpx;
  3162. margin-top: 16rpx;
  3163. text-align: center;
  3164. }
  3165. }
  3166. }
  3167. }
  3168. .more {
  3169. position: absolute;
  3170. right: 20rpx;
  3171. width: 40rpx;
  3172. height: 4rpx;
  3173. border-top: 2px solid #49b856;
  3174. border-bottom: 2px solid #49b856;
  3175. background-color: #49b856;
  3176. padding: 5px 0;
  3177. background-clip: content-box;
  3178. z-index: 9999;
  3179. top: 50%;
  3180. transform: translateY(-50%);
  3181. }
  3182. .more_picker {
  3183. position: absolute;
  3184. right: 0;
  3185. top: 0;
  3186. height: 100%;
  3187. opacity: 0;
  3188. z-index: 9999;
  3189. }
  3190. .bigScreenWrap{
  3191. position: fixed;
  3192. left: 0;
  3193. right: 0;
  3194. bottom: 30rpx;
  3195. z-index: 999;
  3196. height: 88rpx;
  3197. padding: 0 8rpx;
  3198. display: flex;
  3199. .left{
  3200. width: 25%;
  3201. background-color: #e5e9ed;
  3202. margin-right: 8rpx;
  3203. display: flex;
  3204. align-items: center;
  3205. justify-content: center;
  3206. .left-title{
  3207. font-size: 34rpx;
  3208. }
  3209. .left-icon{
  3210. font-size: 34rpx;
  3211. color: #07863c;
  3212. }
  3213. }
  3214. .right{
  3215. width: 75%;
  3216. background-color: #e5e9ed;
  3217. }
  3218. .right-100{
  3219. width: 100% !important;
  3220. }
  3221. }
  3222. .red {
  3223. color: red !important;
  3224. font-weight: bold !important;
  3225. }
  3226. .page_tab {
  3227. width: 100%;
  3228. height: 96rpx;
  3229. display: flex;
  3230. position: fixed;
  3231. left: 0;
  3232. top: 0;
  3233. z-index: 999;
  3234. .page_tab_bar {
  3235. flex: 1;
  3236. font-size: 36rpx;
  3237. background: #fff;
  3238. display: flex;
  3239. justify-content: center;
  3240. align-items: center;
  3241. position: relative;
  3242. &:after {
  3243. content: "";
  3244. position: absolute;
  3245. left: 0;
  3246. bottom: 0;
  3247. height: 2rpx;
  3248. width: 100%;
  3249. background-color: transparent;
  3250. }
  3251. .tab_num {
  3252. color: #ff3b53;
  3253. margin-left: 8rpx;
  3254. }
  3255. &.active {
  3256. color: #49b856;
  3257. &:after {
  3258. background-color: #49b856;
  3259. }
  3260. }
  3261. }
  3262. }
  3263. .zwsj {
  3264. position: absolute;
  3265. left: 50%;
  3266. top: 180rpx;
  3267. transform: translateX(-50%);
  3268. .zwsj-img {
  3269. width: 560rpx;
  3270. }
  3271. .zwsj-txt {
  3272. font-size: 36rpx;
  3273. font-weight: 700;
  3274. margin-top: 20rpx;
  3275. text-align: center;
  3276. }
  3277. }
  3278. .page_items {
  3279. height: calc(100vh - 214rpx);
  3280. padding: 0 20rpx;
  3281. // padding-bottom: 88rpx;
  3282. padding-top: 96rpx;
  3283. .page_items_scroll {
  3284. height: 100%;
  3285. .page_item_wrap {
  3286. position: relative;
  3287. margin-bottom: 32rpx;
  3288. .page_item {
  3289. margin-bottom: 16rpx;
  3290. // min-height: 356rpx;
  3291. background: #fff;
  3292. border-radius: 8rpx;
  3293. overflow: hidden;
  3294. border: 2rpx solid #e5e9ed;
  3295. .L {
  3296. width: 40rpx;
  3297. height: 40rpx;
  3298. border-radius: 50%;
  3299. background: #f9fafb;
  3300. position: absolute;
  3301. left: -24rpx;
  3302. top: 68rpx;
  3303. border: 2rpx solid #e5e9ed;
  3304. }
  3305. .R {
  3306. width: 40rpx;
  3307. height: 40rpx;
  3308. border-radius: 50%;
  3309. background: #f9fafb;
  3310. position: absolute;
  3311. float: right;
  3312. right: -24rpx;
  3313. top: 68rpx;
  3314. border: 2rpx solid #e5e9ed;
  3315. }
  3316. .starting {
  3317. width: 40rpx;
  3318. height: 40rpx;
  3319. color: #fff;
  3320. background: #49b856;
  3321. display: inline-block;
  3322. border-radius: 50%;
  3323. text-align: center;
  3324. line-height: 40rpx;
  3325. font-size: 28rpx;
  3326. }
  3327. .End {
  3328. width: 40rpx;
  3329. height: 40rpx;
  3330. color: #fff;
  3331. background: #39b199;
  3332. display: inline-block;
  3333. border-radius: 50%;
  3334. text-align: center;
  3335. line-height: 40rpx;
  3336. font-size: 28rpx;
  3337. }
  3338. .page_item_top {
  3339. height: 86rpx;
  3340. border-bottom: 2rpx dashed #e5e9ed;
  3341. padding: 0 16rpx;
  3342. .page_item_top_L {
  3343. height: 100%;
  3344. float: left;
  3345. line-height: 88rpx;
  3346. display: flex;
  3347. align-items: center;
  3348. .emergencys {
  3349. background: #ff3b53 !important;
  3350. width: 124rpx !important;
  3351. }
  3352. .emergency {
  3353. background: #ff3b53 !important;
  3354. }
  3355. .emergency1 {
  3356. background: #49b856 !important;
  3357. }
  3358. .page_item_cont_start {
  3359. text-align: center;
  3360. height: 44rpx;
  3361. width: 104rpx;
  3362. line-height: 44rpx;
  3363. border-radius: 8rpx;
  3364. background: #49b856;
  3365. color: #fff;
  3366. .page_item_cont_start-img {
  3367. width: 22rpx;
  3368. position: relative;
  3369. top: 6rpx;
  3370. margin-right: 8rpx;
  3371. }
  3372. }
  3373. .L_iocn {
  3374. display: inline-block;
  3375. width: 44rpx;
  3376. height: 44rpx;
  3377. line-height: 42rpx;
  3378. border-radius: 100rpx;
  3379. color: #6cc076;
  3380. font-size: 32rpx;
  3381. border: 4rpx solid #6cc076;
  3382. background: #f0f6ed;
  3383. text-align: center;
  3384. margin-right: 8rpx;
  3385. }
  3386. .L_time {
  3387. color: #6cc076;
  3388. font-size: 32rpx;
  3389. }
  3390. .L_text {
  3391. font-size: 32rpx;
  3392. }
  3393. }
  3394. .page_item_top_R {
  3395. height: 100%;
  3396. float: right;
  3397. line-height: 88rpx;
  3398. font-size: 32rpx;
  3399. &.type {
  3400. margin-right: 32rpx;
  3401. // color: red;
  3402. max-width: 260rpx;
  3403. white-space: nowrap;
  3404. text-overflow: ellipsis;
  3405. overflow: hidden;
  3406. }
  3407. .text_big{
  3408. font-weight: bold;
  3409. }
  3410. }
  3411. }
  3412. .page_item_cont {
  3413. min-height: 180rpx;
  3414. padding: 0 16rpx;
  3415. text-align: left;
  3416. position: relative;
  3417. display: flex;
  3418. flex-direction: column;
  3419. justify-content: space-between;
  3420. .text_big {
  3421. font-size: 32rpx;
  3422. margin-left: 10rpx;
  3423. font-weight: 700;
  3424. }
  3425. .line {
  3426. height: 100%;
  3427. width: 2rpx;
  3428. border-left: 2rpx solid #e5e9ed;
  3429. position: absolute;
  3430. // top: 70rpx;
  3431. top: 50%;
  3432. left: 20rpx;
  3433. transform: translateY(-50%);
  3434. }
  3435. .lines {
  3436. height: 40%;
  3437. width: 2rpx;
  3438. border-left: 2rpx solid #e5e9ed;
  3439. position: absolute;
  3440. top: 23%;
  3441. left: 36rpx;
  3442. }
  3443. .emergencys {
  3444. background: #ff3b53 !important;
  3445. width: 124rpx !important;
  3446. }
  3447. .emergency {
  3448. background: #ff3b53 !important;
  3449. }
  3450. .emergency1 {
  3451. background: #49b856 !important;
  3452. }
  3453. .page_item_cont_T {
  3454. // min-height: 80rpx;
  3455. // max-height: 324rpx;
  3456. font-size: 28rpx;
  3457. margin-top: 16rpx;
  3458. display: flex;
  3459. justify-content: space-between;
  3460. .page_item_cont_title {
  3461. height: 100%;
  3462. // float: left;
  3463. }
  3464. .page_item_cont_start {
  3465. text-align: center;
  3466. // float: right;
  3467. height: 44rpx;
  3468. width: 104rpx;
  3469. line-height: 44rpx;
  3470. border-radius: 8rpx;
  3471. background: #49b856;
  3472. color: #fff;
  3473. .page_item_cont_start-img {
  3474. width: 22rpx;
  3475. position: relative;
  3476. top: 6rpx;
  3477. margin-right: 8rpx;
  3478. }
  3479. }
  3480. }
  3481. .page_item_conts {
  3482. min-height: 30rpx;
  3483. color: rgb(102, 102, 102);
  3484. padding-left: 50rpx;
  3485. font-size: 28rpx;
  3486. margin: 16rpx 0;
  3487. position: relative;
  3488. view:not(.line) {
  3489. line-height: 1.2;
  3490. }
  3491. text {
  3492. color: #49b856;
  3493. }
  3494. }
  3495. .page_item_cont_B {
  3496. // padding-top: 20rpx;
  3497. font-size: 28rpx;
  3498. // overflow: hidden;
  3499. margin-bottom: 16rpx;
  3500. .page_item_cont_title {
  3501. height: 100%;
  3502. // float: left;
  3503. }
  3504. }
  3505. }
  3506. .page_item_btn_wrap {
  3507. display: flex;
  3508. justify-content: space-between;
  3509. .page_item_btn {
  3510. height: 88rpx;
  3511. flex: 1;
  3512. margin-left: 1%;
  3513. background-image: linear-gradient(to right, #72c172, #3bb197);
  3514. border-radius: 8rpx;
  3515. line-height: 88rpx;
  3516. color: #fff;
  3517. font-size: 36rpx;
  3518. font-weight: 700;
  3519. text-align: center;
  3520. &:first-of-type{
  3521. margin-left: 0;
  3522. }
  3523. }
  3524. }
  3525. .page_item_btn {
  3526. height: 88rpx;
  3527. background-image: linear-gradient(to right, #72c172, #3bb197);
  3528. border-radius: 8rpx;
  3529. line-height: 88rpx;
  3530. color: #fff;
  3531. font-size: 36rpx;
  3532. font-weight: 700;
  3533. text-align: center;
  3534. }
  3535. }
  3536. .L-l {
  3537. width: 2rpx;
  3538. height: 40rpx;
  3539. background: #f9fafb;
  3540. position: absolute;
  3541. left: 20rpx;
  3542. top: 72rpx;
  3543. display: none;
  3544. }
  3545. .R-l {
  3546. width: 2rpx;
  3547. height: 40rpx;
  3548. background: #f9fafb;
  3549. position: absolute;
  3550. right: 20rpx;
  3551. top: 72rpx;
  3552. display: none;
  3553. }
  3554. }
  3555. }
  3556. }
  3557. .text {
  3558. font-size: 36rpx;
  3559. }
  3560. .wt_icon {
  3561. font-size: 40rpx;
  3562. }
  3563. }
  3564. </style>