receiptpage.vue 94 KB

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