receiptpage.vue 101 KB

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