receiptpage.vue 81 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334
  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" :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. disjunctor: true,
  1091. }
  1092. },
  1093. // 拍照-上传
  1094. uploadToOther(data, accountObj, type){
  1095. // 其他临床服务拍照签到
  1096. console.log(data, 1111);
  1097. let id_seimin;
  1098. let asTypeValue_seimin;
  1099. let gdStateValue_seimin;
  1100. if (data.status != 200 && data.status !== undefined) {
  1101. id_seimin = data.id;
  1102. asTypeValue_seimin = data.type;
  1103. gdStateValue_seimin = JSON.parse(data.model).gdstate2; //type改成gdstate
  1104. } else {
  1105. id_seimin = data.id;
  1106. asTypeValue_seimin = data.taskType.associationType.value;
  1107. gdStateValue_seimin = data.gdState.value;
  1108. }
  1109. //#ifdef H5
  1110. uni.chooseImage({
  1111. count: 1,
  1112. sourceType: ['camera'],
  1113. success: (chooseImageRes) => {
  1114. console.log(chooseImageRes, pathUrl)
  1115. const tempFilePaths = chooseImageRes.tempFilePaths;
  1116. const tempFiles = chooseImageRes.tempFiles;
  1117. let tp = tempFilePaths[0];
  1118. uni.showLoading({
  1119. mask: true,
  1120. title: '加载中'
  1121. });
  1122. post('/workerOrder/findRecordInfoByOrderId', {
  1123. orderId: id_seimin,
  1124. gdOperate: 21,
  1125. }).then(result => {
  1126. console.log(result)
  1127. if (result.state == 200) {
  1128. uni.getImageInfo({
  1129. src: tp,
  1130. success: (res) => {
  1131. console.log('压缩前', res)
  1132. let canvasWidth = res.width //图片原始长宽
  1133. let canvasHeight = res.height
  1134. let img = new Image()
  1135. img.src = res.path
  1136. let canvas = document.createElement('canvas');
  1137. let ctx = canvas.getContext('2d')
  1138. canvas.width = canvasWidth
  1139. canvas.height = canvasHeight
  1140. ctx.drawImage(img, 0, 0, canvasWidth, canvasHeight)
  1141. canvas.toBlob((fileSrc) => {
  1142. tp = window.URL.createObjectURL(fileSrc)
  1143. console.log('压缩后', tp);
  1144. uni.uploadFile({
  1145. url: pathUrl + '/common/common/uploadAttachment/'+(type == 'start' ? 'orderStartPhoto' : 'orderEndPhoto')+'/' + id_seimin + '/' + result.recordId,
  1146. filePath: tp,
  1147. name: 'file',
  1148. formData: {
  1149. 'filename': tempFiles[0].name ? tempFiles[0].name.split('.')[0] + '.jpg' : tempFiles[
  1150. 0].path.split(
  1151. /[\\/]/).reverse()[0].split('.')[0] + '.jpg'
  1152. },
  1153. success: (uploadFileRes) => {
  1154. console.log(uploadFileRes, 10086, asTypeValue_seimin);
  1155. this.nextDeptOrder_ss(data, accountObj, type);
  1156. },
  1157. fail: err => {
  1158. console.error(err);
  1159. uni.hideLoading();
  1160. uni.showToast({
  1161. icon: 'none',
  1162. title: '上传失败',
  1163. duration: 2000
  1164. });
  1165. }
  1166. });
  1167. }, 'image/jpeg', 0.3)
  1168. },
  1169. fail: function () {
  1170. uni.hideLoading();
  1171. uni.showToast({
  1172. icon: 'none',
  1173. title: '上传失败',
  1174. duration: 2000
  1175. });
  1176. }
  1177. })
  1178. } else {
  1179. uni.hideLoading();
  1180. uni.showToast({
  1181. icon: "none",
  1182. title: result.msg || "接口获取数据失败!",
  1183. });
  1184. }
  1185. })
  1186. }
  1187. });
  1188. //#endif
  1189. //#ifdef APP-PLUS
  1190. uni.chooseImage({
  1191. count: 1,
  1192. sourceType: ['camera'],
  1193. sizeType: ['compressed'],
  1194. success: (chooseImageRes) => {
  1195. console.log(chooseImageRes, pathUrl)
  1196. const tempFilePaths = chooseImageRes.tempFilePaths;
  1197. const tempFiles = chooseImageRes.tempFiles;
  1198. let tp = tempFilePaths[0];
  1199. uni.showLoading({
  1200. mask: true,
  1201. title: '加载中'
  1202. });
  1203. post('/workerOrder/findRecordInfoByOrderId', {
  1204. orderId: id_seimin,
  1205. gdOperate: 21,
  1206. }).then(result => {
  1207. console.log(result)
  1208. if (result.state == 200) {
  1209. uni.compressImage({
  1210. src: tp,
  1211. quality: 30,
  1212. success: (res) => {
  1213. console.log('压缩前', res)
  1214. tp = res.tempFilePath;
  1215. console.log('压缩后', tp);
  1216. uni.uploadFile({
  1217. url: pathUrl + '/common/common/uploadAttachment/'+(type == 'start' ? 'orderStartPhoto' : 'orderEndPhoto')+'/' + id_seimin + '/' + result.recordId,
  1218. filePath: tp,
  1219. name: 'file',
  1220. formData: {
  1221. 'filename': tempFiles[0].name ? tempFiles[0].name.split('.')[0] + '.jpg' : tempFiles[
  1222. 0].path.split(
  1223. /[\\/]/).reverse()[0].split('.')[0] + '.jpg'
  1224. },
  1225. success: (uploadFileRes) => {
  1226. console.log(uploadFileRes, 10086, asTypeValue_seimin);
  1227. this.nextDeptOrder_ss(data, accountObj, type);
  1228. },
  1229. fail: err => {
  1230. console.error(err);
  1231. uni.hideLoading();
  1232. uni.showToast({
  1233. icon: 'none',
  1234. title: '上传失败',
  1235. duration: 2000
  1236. });
  1237. }
  1238. });
  1239. },
  1240. fail: function () {
  1241. uni.hideLoading();
  1242. uni.showToast({
  1243. icon: 'none',
  1244. title: '上传失败',
  1245. duration: 2000
  1246. });
  1247. }
  1248. })
  1249. } else {
  1250. uni.hideLoading();
  1251. uni.showToast({
  1252. icon: "none",
  1253. title: result.msg || "接口获取数据失败!",
  1254. });
  1255. }
  1256. })
  1257. }
  1258. });
  1259. //#endif
  1260. },
  1261. // 拍照-其他
  1262. async photographToOther(data, type) {
  1263. this.currentData = data;
  1264. uni.showLoading({
  1265. title: "加载中",
  1266. mask: true,
  1267. });
  1268. // 其他临床服务
  1269. let result = await post("/dept/scanning", {
  1270. content: type === 'start' ? data.startDept.qrcode : data.endDepts[0].qrcode,
  1271. taskTypeId: data.taskType.id,
  1272. gdState: data.gdState.id,
  1273. });
  1274. uni.hideLoading();
  1275. this.currentCode = result.code;
  1276. if (result.state == 200 || result.state == 201) {
  1277. uni.showModal({
  1278. title: '提示',
  1279. content: '请尽量拍摄角度覆盖清洁区域?',
  1280. success: (res) => {
  1281. if (res.confirm) {
  1282. if (result.account) {
  1283. this.uploadToOther(data, {
  1284. account: result.account,
  1285. accountName: result.name,
  1286. accountId: result.id,
  1287. }, type);
  1288. } else {
  1289. this.uploadToOther(data, undefined, type);
  1290. }
  1291. } else if (res.cancel) {
  1292. console.log('用户点击取消');
  1293. }
  1294. }
  1295. });
  1296. } else if (result.state == '0000') {
  1297. this.showSelectAccount();
  1298. } else {
  1299. uni.showToast({
  1300. icon: "none",
  1301. title: result.info || "接口获取数据失败!",
  1302. });
  1303. }
  1304. },
  1305. // 悬浮按钮点击事件
  1306. trigger(e) {
  1307. if (e.item.text === "我的任务") {
  1308. uni.navigateTo({
  1309. url: "../mypage/mypage",
  1310. });
  1311. } else if (e.item.text === "退出登录") {
  1312. // 假登录
  1313. uni.showToast({
  1314. title: "退出成功!",
  1315. });
  1316. let ip = uni.getStorageSync("ip"); //记住域名或ip
  1317. let username = uni.getStorageSync("username"); //记住用户名
  1318. let password = uni.getStorageSync("password"); //记住密码
  1319. let savePasswordTime = uni.getStorageSync("savePasswordTime"); //记住密码的时间戳
  1320. let clientid = uni.getStorageSync("clientid");
  1321. uni.clearStorageSync();
  1322. if (username) {
  1323. uni.setStorageSync("ip", ip); //记住域名或ip
  1324. uni.setStorageSync("username", username); //记住用户名
  1325. uni.setStorageSync("password", password); //记住密码
  1326. uni.setStorageSync("savePasswordTime", savePasswordTime); //记住密码的时间戳
  1327. }
  1328. uni.setStorageSync("clientid", clientid);
  1329. uni.navigateTo({
  1330. url: "../homePage/homePage",
  1331. });
  1332. // 假登录
  1333. deleteIt("/auth/logout2").then((result) => {
  1334. if (result.status == 200) {
  1335. uni.showToast({
  1336. title: "退出成功!",
  1337. });
  1338. let ip = uni.getStorageSync("ip"); //记住域名或ip
  1339. let username = uni.getStorageSync("username"); //记住用户名
  1340. let password = uni.getStorageSync("password"); //记住密码
  1341. let clientid = uni.getStorageSync("clientid");
  1342. uni.clearStorageSync();
  1343. uni.setStorageSync("ip", ip); //记住域名或ip
  1344. uni.setStorageSync("username", username); //记住用户名
  1345. uni.setStorageSync("password", password); //记住密码
  1346. uni.setStorageSync("clientid", clientid);
  1347. uni.navigateTo({
  1348. url: "../homePage/homePage",
  1349. });
  1350. } else {
  1351. uni.showToast({
  1352. icon: "none",
  1353. title: result.msg || "接口获取数据失败!",
  1354. });
  1355. }
  1356. });
  1357. } else if (e.item.text === "药房") {
  1358. uni.navigateTo({
  1359. url: "../pharmacy/pharmacy",
  1360. });
  1361. } else if (e.item.text === "患者信息") {
  1362. uni.navigateTo({
  1363. url: "../patientInformationList/patientInformationList",
  1364. });
  1365. } else if (e.item.text === "负责科室") {
  1366. if (uni.getStorageSync("setDepts")) {
  1367. uni.removeStorageSync("setDepts"); //清空选择的科室,初始化
  1368. }
  1369. let obj = uni.getStorageSync("setDeptConfg");
  1370. uni.navigateTo({
  1371. url: `../setDept/setDept?configName=${obj.configName}&id=${obj.id}&changedept=1`,
  1372. });
  1373. } else if (e.item.text === "检查信息") {
  1374. uni.navigateTo({
  1375. url: "../inspectList/inspectList",
  1376. });
  1377. } else if (e.item.text === "二维码设置") {
  1378. uni.navigateTo({
  1379. url: "../settingCode/settingCode",
  1380. });
  1381. } else if (e.item.text === "标本录入") {
  1382. this.showHandViewSpecimen();
  1383. } else if (e.item.text === "药品录入") {
  1384. this.showHandViewDrugsbag();
  1385. } else if (e.item.text === "摆药取药") {
  1386. this.handleTakeMedicine()
  1387. } else if (e.item.text === "我的二维码") {
  1388. this.myQrcodeHandler()
  1389. } else if (e.item.text === "科室二维码") {
  1390. this.departmentQrcodeHandler()
  1391. } else if (e.item.text === "查看表单") {
  1392. uni.navigateTo({
  1393. url: "../formManagementWechat/formManagementWechat",
  1394. });
  1395. } else if (e.item.text === "快捷接单") {
  1396. uni.navigateTo({
  1397. url: "../quickOrderAcceptanceWx/quickOrderAcceptanceWx",
  1398. });
  1399. }
  1400. },
  1401. // 我的二维码
  1402. myQrcodeHandler(){
  1403. this.showMyQrcodeModel = {
  1404. disjunctor: true,
  1405. };
  1406. },
  1407. closeMyQrcodeModel(){
  1408. this.showMyQrcodeModel.disjunctor = false;
  1409. },
  1410. // 科室二维码
  1411. departmentQrcodeHandler(){
  1412. this.showDepartmentQrcodeModel = {
  1413. disjunctor: true,
  1414. };
  1415. },
  1416. closeDepartmentQrcodeModel(){
  1417. this.showDepartmentQrcodeModel.disjunctor = false;
  1418. },
  1419. // 摆药取药
  1420. handleTakeMedicine() {
  1421. if (!this.SMFlag) {
  1422. return;
  1423. }
  1424. this.SMFlag = false;
  1425. SM().then((content) => {
  1426. uni.showLoading({
  1427. title: "加载中",
  1428. mask: true,
  1429. });
  1430. //检验二维码的有效性(扫码前必须验证)
  1431. post("/dept/scanning", {
  1432. content,
  1433. })
  1434. .then((result) => {
  1435. this.currentCode = result.code;
  1436. this.SMFlag = true;
  1437. // 200检测通过,201没有有效期也通过。
  1438. if (result.state == 200 || result.state == 201) {
  1439. uni.hideLoading();
  1440. uni.navigateTo({
  1441. url: `../promptPage/promptPage?code=${result.code}`,
  1442. });
  1443. } else {
  1444. uni.hideLoading();
  1445. uni.showToast({
  1446. icon: "none",
  1447. title: result.info || "接口获取数据失败!",
  1448. });
  1449. }
  1450. })
  1451. }).catch(err => {
  1452. this.SMFlag = true;
  1453. });
  1454. },
  1455. // 点击tab页切换
  1456. clickHandler(key) {
  1457. this.selectedLabelSlots = key;
  1458. this.idx = 0;
  1459. this.totalNum = -1;
  1460. // this.zxzData = [];
  1461. this.scroll_top = Math.random(); //回到顶部
  1462. if (key === "待接单") {
  1463. this.waitingOrders(0);
  1464. } else if (key === "执行中") {
  1465. this.executingOrders(0);
  1466. }
  1467. },
  1468. // 进入详情页
  1469. itemInfo(workOrder) {
  1470. console.log(workOrder);
  1471. uni.navigateTo({
  1472. url: `../receipt_infopage/receipt_infopage?id=${workOrder.id}&associationTypeValue=${workOrder.taskType.associationType.value}&associationTypeId=${workOrder.taskType.associationType.id}&taskTypeId=${workOrder.taskType.id}`,
  1473. });
  1474. },
  1475. //抢单后知道了
  1476. know() {
  1477. this.models.disjunctor = false;
  1478. this.idx = 0;
  1479. this.totalNum = -1;
  1480. // this.zxzData = [];
  1481. this.executingOrdersGetNum();
  1482. this.waitingOrders(0); //seimin
  1483. this.scroll_top = Math.random(); //回到顶部
  1484. },
  1485. //抢单确定
  1486. ok() {
  1487. this.models.disjunctor = false;
  1488. get("/workerOrder/takeOrder/" + this.qdId.id).then((res) => {
  1489. let msg = "接单失败";
  1490. let icon = "error";
  1491. if (res.status == 200) {
  1492. msg = "接单成功";
  1493. icon = "success";
  1494. }
  1495. this.models = {
  1496. disjunctor: true,
  1497. content: msg,
  1498. icon: icon,
  1499. operate: {
  1500. know: "知道了",
  1501. },
  1502. };
  1503. });
  1504. },
  1505. //抢单取消
  1506. cancel() {
  1507. this.models.disjunctor = false;
  1508. },
  1509. // 抢单
  1510. showAlerts(data) {
  1511. this.qdId = data;
  1512. this.models = {
  1513. disjunctor: true,
  1514. title: "提示",
  1515. content: "是否确定接单?",
  1516. icon: "warn",
  1517. operate: {
  1518. ok: "确定",
  1519. cancel: "取消",
  1520. },
  1521. };
  1522. },
  1523. //执行中列表数据获取
  1524. executingOrders(idx) {
  1525. console.log(this.zxzData.length, this.totalNum);
  1526. if (this.zxzData.length == this.totalNum) {
  1527. uni.showToast({
  1528. icon: "none",
  1529. title: "没有更多数据了!",
  1530. });
  1531. this.freshing = true;
  1532. return;
  1533. }
  1534. let data = {
  1535. idx,
  1536. sum: 20,
  1537. };
  1538. // if (this.arrayKey) {
  1539. // data.keyWord = this.arrayKey;
  1540. // } else {
  1541. // delete data.keyWord;
  1542. // }
  1543. if (this.currentId) {
  1544. data.keyWord = this.currentId;
  1545. } else {
  1546. delete data.keyWord;
  1547. }
  1548. if (this.deptName) {
  1549. data.deptName = this.deptName;
  1550. } else {
  1551. delete data.deptName;
  1552. }
  1553. uni.showLoading({
  1554. title: "加载中",
  1555. mask: true,
  1556. });
  1557. post("/workerOrder/executingOrders", data).then((res) => {
  1558. uni.hideLoading();
  1559. if (res.status == 200) {
  1560. this.triggered = false;
  1561. this.freshing = true;
  1562. this.totalNum = res.data.resultCount;
  1563. res.data.data = res.data.data || [];
  1564. res.data.data.forEach(v => {
  1565. v.clinicalTaskIdsFlag = this.clinicalTaskIds.includes(v.taskType.id.toString());
  1566. })
  1567. if (idx === 0) {
  1568. this.zxzData = res.data.data;
  1569. } else {
  1570. this.zxzData.push(...res.data.data);
  1571. }
  1572. this.tabs[1].num = res.data.resultCount;
  1573. } else {
  1574. uni.showToast({
  1575. icon: "none",
  1576. title: res.msg || "接口获取数据失败!",
  1577. });
  1578. }
  1579. });
  1580. },
  1581. //待抢单列表数据获取
  1582. waitingOrders(idx) {
  1583. if (this.zxzData.length == this.totalNum) {
  1584. uni.showToast({
  1585. icon: "none",
  1586. title: "没有更多数据了!",
  1587. });
  1588. this.freshing = true;
  1589. return;
  1590. }
  1591. let data = {
  1592. idx,
  1593. sum: 20,
  1594. };
  1595. uni.showLoading({
  1596. title: "加载中",
  1597. mask: true,
  1598. });
  1599. // 请求列表数据
  1600. post("/workerOrder/waitingOrders", data).then((res) => {
  1601. uni.hideLoading();
  1602. if (res.status == 200) {
  1603. this.triggered = false;
  1604. this.freshing = true;
  1605. this.totalNum = res.data.resultCount;
  1606. if (idx === 0) {
  1607. this.zxzData = res.data.data;
  1608. } else {
  1609. this.zxzData.push(...res.data.data);
  1610. }
  1611. this.tabs[0].num = res.data.resultCount;
  1612. } else {
  1613. uni.showToast({
  1614. icon: "none",
  1615. title: res.msg || "接口获取数据失败!",
  1616. });
  1617. }
  1618. });
  1619. },
  1620. //刷新
  1621. refresherrefresh() {
  1622. if (this.triggered) {
  1623. return;
  1624. }
  1625. this.triggered = true;
  1626. this.idx = 0;
  1627. this.totalNum = -1;
  1628. if (this.selectedLabelSlots == "待接单") {
  1629. this.waitingOrders(0);
  1630. } else if (this.selectedLabelSlots == "执行中") {
  1631. this.executingOrders(0);
  1632. }
  1633. },
  1634. // 滚动
  1635. scroll(e) {
  1636. if (e.detail.scrollTop < 20) {
  1637. this.scroll_refresher_enabled = true;
  1638. } else {
  1639. this.scroll_refresher_enabled = false;
  1640. }
  1641. },
  1642. // 下拉刷新复位
  1643. refresherrestore() {
  1644. this.triggered = false;
  1645. console.log("下拉刷新复位");
  1646. },
  1647. //下拉刷新中止
  1648. refresherabort() {
  1649. this.triggered = false;
  1650. console.log("下拉刷新中止");
  1651. },
  1652. //分页,上拉加载
  1653. scrolltolower() {
  1654. if (this.freshing) {
  1655. this.freshing = false;
  1656. if (this.selectedLabelSlots == "待接单") {
  1657. this.waitingOrders(++this.idx);
  1658. } else if (this.selectedLabelSlots == "执行中") {
  1659. this.executingOrders(++this.idx);
  1660. }
  1661. }
  1662. },
  1663. // 执行中获取数字
  1664. executingOrdersGetNum() {
  1665. let data = {
  1666. idx: 0,
  1667. sum: 20,
  1668. };
  1669. if (this.arrayKey) {
  1670. data.keyWord = this.arrayKey;
  1671. } else {
  1672. delete data.keyWord;
  1673. }
  1674. post("/workerOrder/executingOrders", data).then((res) => {
  1675. if (res.status == 200) {
  1676. this.tabs[1].num = res.data.resultCount;
  1677. } else {
  1678. uni.showToast({
  1679. icon: "none",
  1680. title: res.msg || "接口获取数据失败!",
  1681. });
  1682. }
  1683. });
  1684. },
  1685. // 待接单获取数字
  1686. waitingOrdersGetNum() {
  1687. let data = {
  1688. idx: 0,
  1689. sum: 20,
  1690. };
  1691. post("/workerOrder/waitingOrders", data).then((res) => {
  1692. if (res.status == 200) {
  1693. this.tabs[0].num = res.data.resultCount;
  1694. } else {
  1695. uni.showToast({
  1696. icon: "none",
  1697. title: res.msg || "接口获取数据失败!",
  1698. });
  1699. }
  1700. });
  1701. },
  1702. // 阻止浏览器滑动
  1703. stop(e) {
  1704. e.preventDefault();
  1705. },
  1706. // 更新用户所在科室
  1707. updateUser(dept) {
  1708. post("/user/data/bindDutyDept", {dutyDept: +dept.id}).then((res) => {
  1709. if (res.status == 200) {
  1710. this.getCurrentUserNow();
  1711. }else{
  1712. uni.showToast({
  1713. icon: "none",
  1714. title: res.msg || "接口获取数据失败!",
  1715. });
  1716. }
  1717. })
  1718. },
  1719. // 重新获取用户信息
  1720. getCurrentUserNow() {
  1721. get("/user/data/getCurrentUser").then((res) => {
  1722. if (res.status == 200) {
  1723. let userData = uni.getStorageSync('userData');
  1724. userData.user = res.data;
  1725. uni.setStorageSync('userData', userData);
  1726. // 显示科室二维码
  1727. this.departmentQrcodeHandler()
  1728. }else{
  1729. uni.showToast({
  1730. icon: "none",
  1731. title: res.msg || "接口获取数据失败!",
  1732. });
  1733. }
  1734. })
  1735. },
  1736. },
  1737. onLoad(options) {
  1738. console.log(options, 'options');
  1739. // 获取菜单权限
  1740. this.getMenu();
  1741. post("/auth/getUserWorkDept", {}).then((ress) => {
  1742. if (ress.status == 200) {
  1743. let userId = uni.getStorageSync("userData").user.id;
  1744. let groupManager = ress.settings && ress.settings.groupManager; //当前工作组合选择的组
  1745. let workType = ress.settings ? ress.settings.workType : -1; //1是综合,2是自主
  1746. let ruleType = ress.settings ? ress.settings.ruleType : -1; //3是科室绑定人员,4是科室绑定分组,2是绑定分组
  1747. if (workType == 2 && (ruleType == 3 || (ruleType == 4 && userId == groupManager.manager))) {
  1748. //自选排班,科室绑定分组,当前登陆人是组长
  1749. this.content.unshift({
  1750. text: "负责科室",
  1751. });
  1752. }
  1753. }
  1754. });
  1755. // let setDeptConfg = uni.getStorageSync("setDeptConfg");
  1756. // let manager = uni.getStorageSync("manager");
  1757. // let userId = uni.getStorageSync("userData").user.id;
  1758. // console.log(setDeptConfg, manager, userId);
  1759. // if (
  1760. // setDeptConfg.workSchemeType == 2 &&
  1761. // (setDeptConfg.ruleType == 3 ||
  1762. // (setDeptConfg.ruleType == 4 && userId == manager))
  1763. // ) {
  1764. // //自选排班,科室绑定人员 || 科室绑定分组 && 组长是当前登陆人
  1765. // this.content.unshift({
  1766. // text: "负责科室",
  1767. // });
  1768. // }
  1769. // #ifdef APP-PLUS
  1770. // this.content.push({
  1771. // text: "退出登录",
  1772. // });
  1773. // #endif
  1774. this.selectedLabelSlots = "执行中";
  1775. this.initList();
  1776. // 科室二维码切换科室回显
  1777. if (options.showDepartmentQrcodeId && options.showDepartmentQrcodeDept) {
  1778. this.updateUser({id: options.showDepartmentQrcodeId, dept: options.showDepartmentQrcodeDept})
  1779. }
  1780. // #ifdef APP-PLUS
  1781. webHandle("no", "app");
  1782. // #endif
  1783. // #ifdef H5
  1784. webHandle("no", "wx");
  1785. // #endif
  1786. },
  1787. onShow() {
  1788. this.SMFlag = true;
  1789. // #ifdef H5
  1790. document.body.addEventListener("touchmove", this.stop, {
  1791. passive: false,
  1792. });
  1793. // #endif
  1794. },
  1795. onHide() {
  1796. // #ifdef H5
  1797. document.body.removeEventListener("touchmove", this.stop, {
  1798. passive: false,
  1799. });
  1800. // #endif
  1801. },
  1802. };
  1803. </script>
  1804. <style lang="less">
  1805. .Receiptpage {
  1806. width: 100%;
  1807. height: 100%;
  1808. position: relative;
  1809. .execFilterMask{
  1810. position: fixed;
  1811. top: 0;
  1812. right: 0;
  1813. bottom: 0;
  1814. left: 0;
  1815. z-index: 9999;
  1816. background-color: rgba(0, 0, 0, 0.5);
  1817. display: flex;
  1818. flex-direction: column;
  1819. justify-content: flex-end;
  1820. .execFilter{
  1821. position: relative;
  1822. background-color: #fff;
  1823. height: 90vh;
  1824. border-radius: 100rpx 100rpx 0 0;
  1825. .execFilterHeader{
  1826. height: 100rpx;
  1827. display: flex;
  1828. justify-content: center;
  1829. align-items: center;
  1830. border-bottom: 2rpx solid #ccc;
  1831. }
  1832. .execFilterBody{
  1833. .execFilterItem{
  1834. padding: 40rpx;
  1835. border-bottom: 2rpx dashed #ccc;
  1836. &:last-of-type{
  1837. border-bottom: none;
  1838. }
  1839. .execFilterItemHeader{}
  1840. .execFilterItemBody{
  1841. display: flex;
  1842. flex-wrap: wrap;
  1843. padding: 40rpx 0 0;
  1844. justify-content: space-between;
  1845. text-align: left;
  1846. .execFilterItemBox{
  1847. width: 200rpx;
  1848. height: 80rpx;
  1849. text-align: center;
  1850. line-height: 80rpx;
  1851. background-color: #f6f6f6;
  1852. margin-bottom: 20rpx;
  1853. border-radius: 80rpx;
  1854. &.active{
  1855. color: #fff;
  1856. background-color: #49b856;
  1857. }
  1858. }
  1859. .deptName {
  1860. height: 80rpx;
  1861. background-color: #f6f6f6;
  1862. border-radius: 20rpx;
  1863. padding: 0 20rpx;
  1864. }
  1865. }
  1866. }
  1867. }
  1868. .execFilterFooter {
  1869. position: absolute;
  1870. bottom: 0;
  1871. right: 0;
  1872. left: 0;
  1873. line-height: 66rpx;
  1874. height: 100rpx;
  1875. display: flex;
  1876. justify-content: space-between;
  1877. .btn {
  1878. height: 66rpx;
  1879. flex: 1;
  1880. margin: 0 1%;
  1881. background-image: linear-gradient(to right, #72c172, #3bb197);
  1882. color: #fff;
  1883. border-radius: 8rpx;
  1884. font-size: 28rpx;
  1885. margin-top: 16rpx;
  1886. text-align: center;
  1887. }
  1888. }
  1889. }
  1890. }
  1891. .more {
  1892. position: absolute;
  1893. right: 20rpx;
  1894. width: 40rpx;
  1895. height: 4rpx;
  1896. border-top: 2px solid #49b856;
  1897. border-bottom: 2px solid #49b856;
  1898. background-color: #49b856;
  1899. padding: 5px 0;
  1900. background-clip: content-box;
  1901. z-index: 9999;
  1902. top: 50%;
  1903. transform: translateY(-50%);
  1904. }
  1905. .more_picker {
  1906. position: absolute;
  1907. right: 0;
  1908. height: 100%;
  1909. opacity: 0;
  1910. z-index: 9999;
  1911. }
  1912. .bigScreenWrap{
  1913. position: fixed;
  1914. left: 0;
  1915. right: 0;
  1916. bottom: 30rpx;
  1917. z-index: 999;
  1918. height: 88rpx;
  1919. }
  1920. .red {
  1921. color: red !important;
  1922. font-weight: bold !important;
  1923. }
  1924. .page_tab {
  1925. width: 100%;
  1926. height: 96rpx;
  1927. display: flex;
  1928. position: fixed;
  1929. left: 0;
  1930. top: 0;
  1931. z-index: 999;
  1932. .page_tab_bar {
  1933. flex: 1;
  1934. font-size: 36rpx;
  1935. background: #fff;
  1936. display: flex;
  1937. justify-content: center;
  1938. align-items: center;
  1939. position: relative;
  1940. &:after {
  1941. content: "";
  1942. position: absolute;
  1943. left: 0;
  1944. bottom: 0;
  1945. height: 2rpx;
  1946. width: 100%;
  1947. background-color: transparent;
  1948. }
  1949. .tab_num {
  1950. color: #ff3b53;
  1951. margin-left: 8rpx;
  1952. }
  1953. &.active {
  1954. color: #49b856;
  1955. &:after {
  1956. background-color: #49b856;
  1957. }
  1958. }
  1959. }
  1960. }
  1961. .zwsj {
  1962. position: absolute;
  1963. left: 50%;
  1964. top: 180rpx;
  1965. transform: translateX(-50%);
  1966. .zwsj-img {
  1967. width: 560rpx;
  1968. }
  1969. .zwsj-txt {
  1970. font-size: 36rpx;
  1971. font-weight: 700;
  1972. margin-top: 20rpx;
  1973. text-align: center;
  1974. }
  1975. }
  1976. .page_items {
  1977. height: calc(100vh - 214rpx);
  1978. padding: 0 20rpx;
  1979. // padding-bottom: 88rpx;
  1980. padding-top: 96rpx;
  1981. .page_items_scroll {
  1982. height: 100%;
  1983. .page_item_wrap {
  1984. position: relative;
  1985. margin-bottom: 32rpx;
  1986. .page_item {
  1987. margin-bottom: 16rpx;
  1988. // min-height: 356rpx;
  1989. background: #fff;
  1990. border-radius: 8rpx;
  1991. overflow: hidden;
  1992. border: 2rpx solid #e5e9ed;
  1993. .L {
  1994. width: 40rpx;
  1995. height: 40rpx;
  1996. border-radius: 50%;
  1997. background: #f9fafb;
  1998. position: absolute;
  1999. left: -24rpx;
  2000. top: 68rpx;
  2001. border: 2rpx solid #e5e9ed;
  2002. }
  2003. .R {
  2004. width: 40rpx;
  2005. height: 40rpx;
  2006. border-radius: 50%;
  2007. background: #f9fafb;
  2008. position: absolute;
  2009. float: right;
  2010. right: -24rpx;
  2011. top: 68rpx;
  2012. border: 2rpx solid #e5e9ed;
  2013. }
  2014. .starting {
  2015. width: 40rpx;
  2016. height: 40rpx;
  2017. color: #fff;
  2018. background: #49b856;
  2019. display: inline-block;
  2020. border-radius: 50%;
  2021. text-align: center;
  2022. line-height: 40rpx;
  2023. font-size: 28rpx;
  2024. }
  2025. .End {
  2026. width: 40rpx;
  2027. height: 40rpx;
  2028. color: #fff;
  2029. background: #39b199;
  2030. display: inline-block;
  2031. border-radius: 50%;
  2032. text-align: center;
  2033. line-height: 40rpx;
  2034. font-size: 28rpx;
  2035. }
  2036. .page_item_top {
  2037. height: 86rpx;
  2038. border-bottom: 2rpx dashed #e5e9ed;
  2039. padding: 0 16rpx;
  2040. .page_item_top_L {
  2041. height: 100%;
  2042. float: left;
  2043. line-height: 88rpx;
  2044. display: flex;
  2045. align-items: center;
  2046. .emergencys {
  2047. background: #ff3b53 !important;
  2048. width: 124rpx !important;
  2049. }
  2050. .emergency {
  2051. background: #ff3b53 !important;
  2052. }
  2053. .emergency1 {
  2054. background: #49b856 !important;
  2055. }
  2056. .page_item_cont_start {
  2057. text-align: center;
  2058. height: 44rpx;
  2059. width: 104rpx;
  2060. line-height: 44rpx;
  2061. border-radius: 8rpx;
  2062. background: #49b856;
  2063. color: #fff;
  2064. .page_item_cont_start-img {
  2065. width: 22rpx;
  2066. position: relative;
  2067. top: 6rpx;
  2068. margin-right: 8rpx;
  2069. }
  2070. }
  2071. .L_iocn {
  2072. display: inline-block;
  2073. width: 44rpx;
  2074. height: 44rpx;
  2075. line-height: 42rpx;
  2076. border-radius: 100rpx;
  2077. color: #6cc076;
  2078. font-size: 32rpx;
  2079. border: 4rpx solid #6cc076;
  2080. background: #f0f6ed;
  2081. text-align: center;
  2082. margin-right: 8rpx;
  2083. }
  2084. .L_time {
  2085. color: #6cc076;
  2086. font-size: 32rpx;
  2087. }
  2088. .L_text {
  2089. font-size: 32rpx;
  2090. }
  2091. }
  2092. .page_item_top_R {
  2093. height: 100%;
  2094. float: right;
  2095. line-height: 88rpx;
  2096. font-size: 32rpx;
  2097. &.type {
  2098. margin-right: 32rpx;
  2099. color: red;
  2100. max-width: 260rpx;
  2101. white-space: nowrap;
  2102. text-overflow: ellipsis;
  2103. overflow: hidden;
  2104. }
  2105. .text_big{
  2106. font-weight: bold;
  2107. }
  2108. }
  2109. }
  2110. .page_item_cont {
  2111. min-height: 180rpx;
  2112. padding: 0 16rpx;
  2113. text-align: left;
  2114. position: relative;
  2115. display: flex;
  2116. flex-direction: column;
  2117. justify-content: space-between;
  2118. .text_big {
  2119. font-size: 32rpx;
  2120. margin-left: 10rpx;
  2121. font-weight: 700;
  2122. }
  2123. .line {
  2124. height: 100%;
  2125. width: 2rpx;
  2126. border-left: 2rpx solid #e5e9ed;
  2127. position: absolute;
  2128. // top: 70rpx;
  2129. top: 50%;
  2130. left: 20rpx;
  2131. transform: translateY(-50%);
  2132. }
  2133. .lines {
  2134. height: 40%;
  2135. width: 2rpx;
  2136. border-left: 2rpx solid #e5e9ed;
  2137. position: absolute;
  2138. top: 23%;
  2139. left: 36rpx;
  2140. }
  2141. .emergencys {
  2142. background: #ff3b53 !important;
  2143. width: 124rpx !important;
  2144. }
  2145. .emergency {
  2146. background: #ff3b53 !important;
  2147. }
  2148. .emergency1 {
  2149. background: #49b856 !important;
  2150. }
  2151. .page_item_cont_T {
  2152. // min-height: 80rpx;
  2153. // max-height: 324rpx;
  2154. font-size: 28rpx;
  2155. margin-top: 16rpx;
  2156. display: flex;
  2157. justify-content: space-between;
  2158. .page_item_cont_title {
  2159. height: 100%;
  2160. // float: left;
  2161. }
  2162. .page_item_cont_start {
  2163. text-align: center;
  2164. // float: right;
  2165. height: 44rpx;
  2166. width: 104rpx;
  2167. line-height: 44rpx;
  2168. border-radius: 8rpx;
  2169. background: #49b856;
  2170. color: #fff;
  2171. .page_item_cont_start-img {
  2172. width: 22rpx;
  2173. position: relative;
  2174. top: 6rpx;
  2175. margin-right: 8rpx;
  2176. }
  2177. }
  2178. }
  2179. .page_item_conts {
  2180. min-height: 30rpx;
  2181. color: rgb(102, 102, 102);
  2182. padding-left: 50rpx;
  2183. font-size: 28rpx;
  2184. margin: 16rpx 0;
  2185. position: relative;
  2186. view:not(.line) {
  2187. line-height: 1.2;
  2188. }
  2189. text {
  2190. color: #49b856;
  2191. }
  2192. }
  2193. .page_item_cont_B {
  2194. // padding-top: 20rpx;
  2195. font-size: 28rpx;
  2196. // overflow: hidden;
  2197. margin-bottom: 16rpx;
  2198. .page_item_cont_title {
  2199. height: 100%;
  2200. float: left;
  2201. }
  2202. }
  2203. }
  2204. .page_item_btn_wrap {
  2205. display: flex;
  2206. justify-content: space-between;
  2207. .page_item_btn {
  2208. height: 88rpx;
  2209. flex: 1;
  2210. margin-left: 1%;
  2211. margin-right: 1%;
  2212. background-image: linear-gradient(to right, #72c172, #3bb197);
  2213. border-radius: 8rpx;
  2214. line-height: 88rpx;
  2215. color: #fff;
  2216. font-size: 36rpx;
  2217. font-weight: 700;
  2218. text-align: center;
  2219. }
  2220. }
  2221. .page_item_btn {
  2222. height: 88rpx;
  2223. background-image: linear-gradient(to right, #72c172, #3bb197);
  2224. border-radius: 8rpx;
  2225. line-height: 88rpx;
  2226. color: #fff;
  2227. font-size: 36rpx;
  2228. font-weight: 700;
  2229. text-align: center;
  2230. }
  2231. }
  2232. .L-l {
  2233. width: 2rpx;
  2234. height: 40rpx;
  2235. background: #f9fafb;
  2236. position: absolute;
  2237. left: 20rpx;
  2238. top: 72rpx;
  2239. display: none;
  2240. }
  2241. .R-l {
  2242. width: 2rpx;
  2243. height: 40rpx;
  2244. background: #f9fafb;
  2245. position: absolute;
  2246. right: 20rpx;
  2247. top: 72rpx;
  2248. display: none;
  2249. }
  2250. }
  2251. }
  2252. }
  2253. .text {
  2254. font-size: 36rpx;
  2255. }
  2256. .wt_icon {
  2257. font-size: 40rpx;
  2258. }
  2259. }
  2260. </style>