receiptpage.vue 89 KB

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