receiptpage.vue 129 KB

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