receiptpage.vue 81 KB

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