receiptpage.vue 99 KB

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