receiptpage.vue 89 KB

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