receiptpage.vue 117 KB

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