receipt_infopage.vue 86 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416
  1. <template>
  2. <view class="Receipt_infopage" v-if="Object.keys(infoDATA).length > 0">
  3. <view class="title">工单信息</view>
  4. <view class="page_item footerOtherMargin">
  5. <view class="page_item_top">
  6. <view class="page_item_top_L">
  7. <text class="L_text">单号:{{ infoDATA.gdcode }}</text>
  8. <view class="page_item_cont_start emergency1" v-if="infoDATA.emergencyType.value == 1">
  9. <text>
  10. <text class="cubeic-star newicon newicon-shiwujiaoxing"></text>
  11. {{ infoDATA.emergencyType.name }}
  12. </text>
  13. </view>
  14. <view class="page_item_cont_start emergency" v-if="infoDATA.emergencyType.value == 2">
  15. <text>
  16. <text class="cubeic-star newicon newicon-shiwujiaoxing"></text>
  17. {{ infoDATA.emergencyType.name }}
  18. </text>
  19. </view>
  20. <view class="page_item_cont_start emergencys" v-if="infoDATA.emergencyType.value == 3">
  21. <text>
  22. <text class="cubeic-star newicon newicon-shiwujiaoxing"></text>
  23. {{ infoDATA.emergencyType.name }}
  24. </text>
  25. </view>
  26. </view>
  27. <view class="page_item_top_R">
  28. <text class="L_iocn" v-if="
  29. !(
  30. infoDATA.gdState.value == 5 &&
  31. infoDATA.taskType.associationType.value == 'inspect'
  32. )
  33. ">{{ infoDATA.gdState.name }}</text>
  34. <text class="L_iocn" v-if="
  35. infoDATA.gdState.value == 5 &&
  36. infoDATA.taskType.associationType.value == 'inspect'
  37. ">待送回</text>
  38. </view>
  39. <view class="L"></view>
  40. <view class="R"></view>
  41. </view>
  42. <view class="page_item_cont">
  43. <view class="page_item_cont_T">
  44. <view class="page_item_cont_title">
  45. <text> <text class="starting">起</text> 点科室 </text>
  46. <text class="text_big">{{ infoDATA.startDept.dept }}</text>
  47. </view>
  48. </view>
  49. <view class="line"></view>
  50. <view class="page_item_cont_B">
  51. <view class="page_item_cont_title" v-for="(dept, index) of infoDATA.middleDept" :key="'ico' + index">
  52. <view v-if="infoDATA.taskType.associationType.value == 'inspect'">
  53. <text> <text class="End">检</text> 查科室 </text>
  54. <text class="text_big" :class="dept.signIn ? 'green': ''">{{ dept.dept }}</text>
  55. <view></view>
  56. </view>
  57. </view>
  58. <template v-if="infoDATA.taskType.associationType.value != 'inspect'">
  59. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.endDepts" :key="i">
  60. <view>
  61. <text> <text class="End">终</text> 点科室 </text>
  62. <text class="text_big">{{ dept.dept }}</text>
  63. </view>
  64. </view>
  65. </template>
  66. <view v-if="
  67. infoDATA.taskType.associationType.value == 'inspect' ||
  68. infoDATA.taskType.associationType.value == 'patientTransport'
  69. ">
  70. <!-- 待抢单 -->
  71. <text class="red" v-if="infoDATA.gdState.value == 2">请扫描患者腕带,或者请扫描科室码</text>
  72. <!-- 待到达 -->
  73. <text class="red" v-if="infoDATA.gdState.value == 4">请扫描患者腕带</text>
  74. <!-- 执行中 -->
  75. <text class="red" v-if="infoDATA.gdState.value == 8">请扫描检查科室码,并扫描患者腕带</text>
  76. <!-- 待送达 -->
  77. <text class="red" v-if="infoDATA.gdState.value == 5">请扫描终点科室码,并扫描患者腕带</text>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="page_item_foot">
  82. <view class="page_item_foot_text">
  83. <text class="text1">状态</text>
  84. <text class="text2" v-if="
  85. !(
  86. infoDATA.gdState.value == 5 &&
  87. infoDATA.taskType.associationType.value == 'inspect'
  88. )
  89. ">{{ infoDATA.gdState.name }}</text>
  90. <text class="text2" v-if="
  91. infoDATA.gdState.value == 5 &&
  92. infoDATA.taskType.associationType.value == 'inspect'
  93. ">待送回</text>
  94. </view>
  95. <!-- <view class="page_item_foot_text">
  96. <text class="text1">关联类型</text>
  97. <text class="text2">{{ infoDATA.taskType.associationType.name }}</text>
  98. </view> -->
  99. <view class="page_item_foot_text">
  100. <text class="text1">任务类型</text>
  101. <text class="text2">{{ infoDATA.taskType.taskName }}<template
  102. v-if="infoDATA.goodsRemark">-{{infoDATA.goodsRemark}}</template></text>
  103. </view>
  104. <view class="page_item_foot_text" v-if="infoDATA.taskType.associationType.value==='inspect'">
  105. <text class="text1">是否半程陪检</text>
  106. <text class="text2">{{ infoDATA.isHalfInspect===1?'是':'否' }}</text>
  107. </view>
  108. <view class="page_item_foot_text">
  109. <text class="text1">执行人员</text>
  110. <text class="text2">{{ infoDATA.worker?infoDATA.worker.name:'-' }}</text>
  111. </view>
  112. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '2'">
  113. <text class="text1">预计响应时间</text>
  114. <text class="text2">{{ infoDATA.estimeResponseTime || '无' }}</text>
  115. </view>
  116. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '5'">
  117. <text class="text1" v-if="!(infoDATA.taskType.associationType.value == 'inspect')">预计送达时间</text>
  118. <text class="text1" v-if="infoDATA.taskType.associationType.value == 'inspect'">预计送回时间</text>
  119. <text class="text2">{{ infoDATA.estimeCompleteTime || '无' }}</text>
  120. </view>
  121. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '4'">
  122. <text class="text1">预计到达时间</text>
  123. <text class="text2">{{ infoDATA.estimateArriveTime || '无' }}</text>
  124. </view>
  125. <view class="page_item_foot_text">
  126. <text class="text1">创建时间</text>
  127. <text class="text2">{{ infoDATA.startTime || '无' }}</text>
  128. </view>
  129. <view class="page_item_foot_text" v-if="!(infoDATA.taskType.associationType.value == 'ordinary' && (infoDATA.taskType.ordinaryField.value == 'drugsJpbag' || infoDATA.taskType.ordinaryField.value == 'drugsWestern' || infoDATA.taskType.ordinaryField.value == 'drugsReturn' || infoDATA.taskType.ordinaryField.value == 'drugsPoison' || infoDATA.taskType.ordinaryField.value == 'drugsHerbal'))">
  130. <text class="text1">预约时间</text>
  131. <text class="text2" v-if="infoDATA.taskType.associationType.value == 'inspect'">{{ infoDATA.yyTime }}</text>
  132. <text class="text2"
  133. v-if="infoDATA.taskType.associationType.value == 'patientTransport' || infoDATA.taskType.associationType.value == 'other'">{{ infoDATA.yyjdTime|yyTimeFilter }}</text>
  134. </view>
  135. <view class="page_item_foot_text" v-if="
  136. infoDATA.taskType.associationType.value == 'inspect' ||
  137. infoDATA.taskType.associationType.value == 'patientTransport'
  138. ">
  139. <text class="text1" v-if="infoDATA.patient.residenceNo">床号</text>
  140. <text class="text2" v-if="infoDATA.patient.residenceNo">{{
  141. infoDATA.patient ? infoDATA.patient.bedNum : "-"
  142. }}</text>
  143. <text class="text1" v-if="!infoDATA.patient.residenceNo">身份证号</text>
  144. <text class="text2" v-if="!infoDATA.patient.residenceNo">{{
  145. infoDATA.patient ? infoDATA.patient.identityCardNo : "-"
  146. }}</text>
  147. </view>
  148. <view class="page_item_foot_text" v-if="
  149. infoDATA.taskType.associationType.value == 'inspect' ||
  150. infoDATA.taskType.associationType.value == 'patientTransport'
  151. ">
  152. <text class="text1">携带设备</text>
  153. <text class="text2">{{ infoDATA.goods || "暂无" }}</text>
  154. </view>
  155. <view class="page_item_info" style="padding: 0;" v-if="infoDATA.workOrderRemark !== undefined">
  156. <view class="page_item_foot_text">
  157. <view class="text1" v-if="infoDATA.taskType.associationType.value == 'inspect' || infoDATA.taskType.associationType.value == 'patientTransport'">注意事项</view>
  158. <view class="text1" v-else>工单备注</view>
  159. <view class="text2" style="float: none;word-break: break-all;">{{ infoDATA.workOrderRemark }}</view>
  160. </view>
  161. </view>
  162. <view class="page_item_foot_text" v-if="
  163. infoDATA.taskType.associationType.value == 'inspect' ||
  164. infoDATA.taskType.associationType.value == 'patientTransport'
  165. ">
  166. <text class="text1">患者姓名</text>
  167. <text class="text2">{{ infoDATA.patient.patientName }}
  168. <text v-if="infoDATA.patient.residenceNo">
  169. ({{
  170. infoDATA.patient.residenceNo
  171. }})
  172. </text>
  173. <text v-if="!infoDATA.patient.residenceNo">
  174. ({{
  175. infoDATA.patient.cardNo
  176. }})
  177. </text>
  178. </text>
  179. </view>
  180. <view class="page_item_foot_text" v-if="
  181. (infoDATA.taskType.associationType.value == 'inspect' ||
  182. infoDATA.taskType.associationType.value == 'patientTransport')&&infoDATA.patient.careLevel
  183. ">
  184. <text class="text1">{{infoDATA.patient.careLevel.desc}}</text>
  185. <text class="text2"
  186. :class="[(infoDATA.patient.careLevel.value==0||infoDATA.patient.careLevel.value==1)?'red':'green']">{{infoDATA.patient.careLevel.name}}</text>
  187. </view>
  188. <view class="page_item_foot_text" v-if="
  189. (infoDATA.taskType.associationType.value == 'inspect' ||
  190. infoDATA.taskType.associationType.value == 'patientTransport')&&infoDATA.patient.illnessState
  191. ">
  192. <text class="text1">{{infoDATA.patient.illnessState.desc}}</text>
  193. <text class="text2"
  194. :class="{red:infoDATA.patient.illnessState.value==2||infoDATA.patient.illnessState.value==3}">{{infoDATA.patient.illnessState.name}}</text>
  195. </view>
  196. <view class="page_item_foot_text"
  197. v-if="
  198. (infoDATA.taskType.associationType.value == 'inspect' ||
  199. infoDATA.taskType.associationType.value == 'patientTransport')&&(infoDATA.isAccompany===1||infoDATA.isAccompany===0)">
  200. <text class="text1">陪同情况</text>
  201. <text class="text2"
  202. :class="{red:infoDATA.isAccompany===1}">{{ infoDATA.isAccompany===1?'需要医护陪同':'无需医护陪同'}}</text>
  203. </view>
  204. <view class="page_item_foot_text"
  205. v-if="(infoDATA.taskType.associationType.value == 'inspect' || infoDATA.taskType.associationType.value == 'patientTransport') && infoDATA.inspectScore">
  206. <text class="text1">陪检方式</text>
  207. <text class="text2">{{ infoDATA.inspectScore.inspectMode }}</text>
  208. </view>
  209. <view class="page_item_foot_text"
  210. v-if="(infoDATA.taskType.associationType.value == 'inspect' || infoDATA.taskType.associationType.value == 'patientTransport') && infoDATA.inspectUsers">
  211. <text class="text1">陪检人员</text>
  212. <text class="text2">{{ infoDATA.inspectUsers }}</text>
  213. </view>
  214. <view class="page_item_foot_text"
  215. v-if="(infoDATA.taskType.associationType.value == 'inspect' || infoDATA.taskType.associationType.value == 'patientTransport') && infoDATA.inspectUsersNum">
  216. <text class="text1">陪检人数</text>
  217. <text class="text2">{{ infoDATA.inspectUsersNum }}</text>
  218. </view>
  219. <view class="page_item_foot_text" v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.inspectUsers">
  220. <text class="text1">执行人员</text>
  221. <text class="text2">{{ infoDATA.inspectUsers }}</text>
  222. </view>
  223. <view class="page_item_foot_text"
  224. v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.inspectUsersNum">
  225. <text class="text1">执行人数</text>
  226. <text class="text2">{{ infoDATA.inspectUsersNum }}</text>
  227. </view>
  228. </view>
  229. <!-- 药包 -->
  230. <view class="page_item_info" v-if="infoDATA.taskType.associationType.value == 'drugsBag'">
  231. <text class="page_item_info_title">药包编码</text>
  232. <text class="text">{{ infoDATA.drugs?infoDATA.drugs.packid:'无' }}</text>
  233. </view>
  234. <!-- 血制品 -->
  235. <view class="page_item_info" v-if="
  236. infoDATA.taskType.associationType.value == 'ordinary' &&
  237. infoDATA.taskType.ordinaryField.value == 'blood'
  238. ">
  239. <view>
  240. <text class="page_item_info_title">·</text>
  241. <text class="text">
  242. 送达数量
  243. <text class="page_item_info_txt">{{infoDATA.deliveryNum || '无'}}</text>
  244. </text>
  245. <text class="text">
  246. 实收数量
  247. <text class="page_item_info_txt">{{infoDATA.actualReceiveNum || '无'}}</text>
  248. </text>
  249. <text class="text">
  250. 应收数量
  251. <text class="page_item_info_txt">{{infoDATA.expectReceiveNum || '无'}}</text>
  252. </text>
  253. </view>
  254. </view>
  255. <!-- 标本打包 -->
  256. <view class="page_item_info" v-if="infoDATA.taskType.associationType.value == 'ordinary' && infoDATA.taskType.ordinaryField.value == 'specimenPackage'">
  257. <view>
  258. <text class="page_item_info_title">打包码</text>
  259. <text class="text">{{infoDATA.pathologyPackInfoDTO ? infoDATA.pathologyPackInfoDTO.packCode : ''}}</text>
  260. </view>
  261. <view>
  262. <text class="page_item_info_title">标本数量</text>
  263. <text class="text">{{infoDATA.pathologyPackInfoDTO ? infoDATA.pathologyPackInfoDTO.specimenNum : ''}}</text>
  264. </view>
  265. </view>
  266. <!-- 标本 -->
  267. <view class="page_item_info" v-if="
  268. infoDATA.taskType.associationType.value == 'specimen' ||
  269. infoDATA.taskType.associationType.value == 'specimenPlan'
  270. ">
  271. <view>
  272. <text class="page_item_info_title">标本信息</text>
  273. <text class="text">
  274. 预计接收
  275. <text class="page_item_info_txt">{{
  276. infoDATA.expectReceiveNum || '无'
  277. }}</text>
  278. </text>
  279. <text class="text"
  280. v-if="infoDATA.gdState.value == 5 || infoDATA.gdState.value == 6 || infoDATA.gdState.value == 7">
  281. 扫描接收
  282. <text class="page_item_info_txt">{{infoDATA.actualReceiveNum || '无'}}</text>
  283. </text>
  284. <text class="text" v-if="infoDATA.gdState.value == 6 || infoDATA.gdState.value == 7">
  285. 实际送达
  286. <text class="page_item_info_txt">{{actualDelivery || '无'}}</text>
  287. </text>
  288. </view>
  289. <view v-for="spe in infoDATA.specimenSet" :key="spe.id" class="spe_list">
  290. <view>
  291. <text class="page_item_info_title">标本类型</text>
  292. <text class="text">{{ spe.stype ? spe.stype.name : "-" }}({{
  293. spe.urgent == 1 ? "急" : "普"
  294. }})</text>
  295. </view>
  296. <view>
  297. <text class="page_item_info_title">标本编码</text>
  298. <text class="text">{{ spe.scode }}</text>
  299. </view>
  300. <view>
  301. <text class="page_item_info_title">患者姓名</text>
  302. <text class="text">{{ spe.patientName }}<text v-if="spe.bedNum">({{spe.bedNum}})</text></text>
  303. </view>
  304. <view>
  305. <text class="page_item_info_title">目标科室</text>
  306. <text class="text">{{
  307. spe.checkDept ? spe.checkDept.dept : "-"
  308. }}</text>
  309. </view>
  310. </view>
  311. </view>
  312. <!-- 静配 -->
  313. <view class="page_item_info" v-if="infoDATA.taskType.associationType.value == 'jPBag'">
  314. <text class="page_item_info_title">药包编码</text>
  315. <text class="text">{{ infoDATA.staticDistri?infoDATA.staticDistri.packid:'无' }}</text>
  316. </view>
  317. <!-- 陪检 -->
  318. <view v-if="infoDATA.taskType.associationType.value == 'inspect'">
  319. <view class="page_item_info">
  320. <text class="page_item_info_title">检查信息</text>
  321. </view>
  322. <view id="infos" :animation="animationData">
  323. <view class="page_item_infos" v-for="(item, index) of infoDATA.checkList" :key="index">
  324. <view class="page_item_info2">
  325. <view class="page_item_foot_text">
  326. <text class="text1">检查科室</text>
  327. <text class="text2">{{ item.execDept?item.execDept.dept:'-' }}</text>
  328. </view>
  329. <view class="page_item_foot_text">
  330. <text class="text1">检查项</text>
  331. <text class="text2">{{ item.inspectName||'-' }}</text>
  332. </view>
  333. <view class="page_item_foot_text">
  334. <text class="text1">叫号信息</text>
  335. <text class="text2">{{ item.reservationNumber||'-' }}</text>
  336. </view>
  337. <view class="page_item_foot_text">
  338. <text class="text1">预约时间</text>
  339. <text class="text2">{{ item.yyTime || "-" }}</text>
  340. </view>
  341. <view class="page_item_foot_text">
  342. <text class="text1">是否送达</text>
  343. <text class="text2">{{ item.inspectState && item.inspectState.value=='3' ? '是':'否'}}</text>
  344. </view>
  345. <!-- <view class="page_item_foot_text"
  346. v-show="item.inspectState.value==1||item.inspectState.value==2||item.inspectState.value==4">
  347. <view class="btn" @click.stop="remove(item)">移除</view>
  348. </view> -->
  349. <view class="page_item_foot_text" v-if="item.inspectState.value!=3">
  350. <view class="btn" @click.stop="remove(item)">移除</view>
  351. </view>
  352. </view>
  353. </view>
  354. </view>
  355. <view id="pulldown" @click="show('show')" v-if="showType == 'hiddle'">
  356. 点击可查看检查详情
  357. <text class="cubeic-pulldown newicon newicon-paixujiantouxia"></text>
  358. </view>
  359. <view id="pullup" @click="show('hiddle')" v-if="showType == 'show'">
  360. 点击可收起检查详情
  361. <text class="cubeic-pullup newicon newicon-paixujiantoushang"></text>
  362. </view>
  363. </view>
  364. </view>
  365. <view class="foot_btn2 footerPadding" style="flex-wrap: wrap;">
  366. <view class="btn2" @click="showAlert" v-if="infoDATA.gdState.value == 2">接单</view>
  367. <!-- 如果不是静配,药配,标本配送,标本轮巡,万能交接 -->
  368. <template
  369. v-if="((!infoDATA.worker)||(infoDATA.worker&&infoDATA.worker.id == currentUserId))&&infoDATA.gdState.value != 6&&infoDATA.gdState.value != 7&&infoDATA.gdState.value != 11">
  370. <!-- <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']" v-if="
  371. (hideInspectScan != 1 || (hideInspectScan == 1 && infoDATA.gdState.value == 4)) &&
  372. infoDATA.gdState.value != 2 &&
  373. infoDATA.taskType.associationType.value != 'jPBag' &&
  374. infoDATA.taskType.associationType.value != 'drugsBag' &&
  375. infoDATA.taskType.associationType.value != 'specimen' &&
  376. infoDATA.taskType.associationType.value != 'specimenPlan' &&
  377. infoDATA.taskType.associationType.value != 'ordinary' &&
  378. !(infoDATA.taskType.associationType.value == 'other' && (infoDATA.gdState.value == 4 && infoDATA.taskType.carryingCourses[0].actionsSwitch || infoDATA.gdState.value == 5 && infoDATA.taskType.carryingCourses[1].actionsSwitch))
  379. " hover-class="seimin-btn-hover">
  380. <smallScreen :sData="infoDATA" :sType="1">扫码</smallScreen>
  381. </view> -->
  382. <!-- 其他临床服务-完成工单-待到达 -->
  383. <view v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.gdState.value == 4 && infoDATA.taskType.carryingCourses[0].actionsSwitch" class="btn2 page_item_btn" @click="otherCompleteOrder(infoDATA)" hover-class="seimin-btn-hover">确认到达</view>
  384. <!-- 其他临床服务-完成工单-待送达 -->
  385. <view v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.gdState.value == 5 && infoDATA.taskType.carryingCourses[1].actionsSwitch" class="btn2 page_item_btn" @click="otherCompleteOrder(infoDATA)" hover-class="seimin-btn-hover">完成工单</view>
  386. <!-- 其他临床服务-拍照 -->
  387. <!-- <view v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.gdState.value == 4 && infoDATA.taskType.carryingCourses[0].photoSwitch" class="btn2 page_item_btn" @click="photographToOther(infoDATA, 'start')" hover-class="seimin-btn-hover">拍照</view> -->
  388. <!-- <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']" @click="photograph(infoDATA)" v-if="
  389. infoDATA.taskType.associationType.value != 'jPBag' &&
  390. infoDATA.taskType.associationType.value != 'drugsBag' &&
  391. infoDATA.taskType.associationType.value != 'specimen' &&
  392. infoDATA.taskType.associationType.value != 'specimenPlan' &&
  393. infoDATA.taskType.associationType.value != 'other' &&
  394. infoDATA.taskType.associationType.value != 'ordinary' &&
  395. infoDATA.gdState.value == 4
  396. " hover-class="seimin-btn-hover">拍照</view> -->
  397. <view class="btn3" @click="specialCloseClick()" v-if="
  398. infoDATA.gdState.value != 2 &&
  399. infoDATA.taskType.associationType.value != 'jPBag' &&
  400. infoDATA.taskType.associationType.value != 'drugsBag' &&
  401. infoDATA.taskType.associationType.value != 'specimen' &&
  402. infoDATA.taskType.associationType.value != 'specimenPlan' &&
  403. infoDATA.taskType.associationType.value != 'ordinary' &&
  404. infoDATA.taskType.specialCloseButton == 1
  405. " hover-class="seimin-btn-hover">特殊情况关闭</view>
  406. </template>
  407. <!-- 如果不是患者陪检或患者转运或其他,万能交接 -->
  408. <!-- <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']" v-if="
  409. infoDATA.gdState.value != 2 &&
  410. infoDATA.taskType.associationType.value != 'patientTransport' &&
  411. infoDATA.taskType.associationType.value != 'inspect' &&
  412. infoDATA.taskType.associationType.value != 'other' &&
  413. infoDATA.taskType.associationType.value != 'ordinary'
  414. " hover-class="seimin-btn-hover">
  415. <smallScreen :sData="infoDATA" :sType="2">扫码</smallScreen>
  416. </view> -->
  417. <!-- 如果是万能交接 -->
  418. <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']"
  419. v-if="infoDATA.taskType.associationType.value == 'ordinary'"
  420. hover-class="seimin-btn-hover" @click="goBack()">
  421. 返回
  422. </view>
  423. <view class="btn3" @click="specialCloseClick()" v-if="
  424. infoDATA.gdState.value != 2 &&
  425. infoDATA.taskType.associationType.value != 'patientTransport' &&
  426. infoDATA.taskType.associationType.value != 'inspect' &&
  427. infoDATA.taskType.associationType.value != 'other' &&
  428. infoDATA.taskType.specialCloseButton == 1
  429. " hover-class="seimin-btn-hover">特殊情况关闭</view>
  430. <view class="btn3" @click="viewSpecimen(infoDATA)" v-if="
  431. infoDATA.taskType.associationType.value == 'specimen' ||
  432. infoDATA.taskType.associationType.value == 'specimenPlan'
  433. " hover-class="seimin-btn-hover">查看标本</view>
  434. <view class="btn3" @click="redeployScan(infoDATA)" v-if="(infoDATA.taskType.associationType.value == 'specimen' ||
  435. infoDATA.taskType.associationType.value == 'specimenPlan') && sPehandoverOrder==1 && (infoDATA.gdState.value==4 || infoDATA.gdState.value==5 || infoDATA.gdState.value==8)" hover-class="seimin-btn-hover">转派</view>
  436. <view class="btn3" @click="viewDrugsBag(infoDATA)" v-if="infoDATA.taskType.associationType.value == 'drugsBag'" hover-class="seimin-btn-hover">查看业务流程</view>
  437. <view class="btn3" @click="toDrugBatches(infoDATA.drugs.batchNo)" v-if="infoDATA.taskType.associationType.value == 'drugsBag' && taskTypeConfig.drugsBatchInfo == 1" hover-class="seimin-btn-hover">药品批次</view>
  438. <view class="btn3" @click="viewBlood(infoDATA)" v-if="infoDATA.taskType.associationType.value == 'ordinary' && infoDATA.taskType.ordinaryField.value == 'blood'" hover-class="seimin-btn-hover">查看血制品</view>
  439. <view class="btn3" @click="viewNewDrugsBag(infoDATA, infoDATA.taskType.ordinaryField.value)" v-if="infoDATA.taskType.associationType.value == 'ordinary' && (infoDATA.taskType.ordinaryField.value == 'drugsJpbag' || infoDATA.taskType.ordinaryField.value == 'drugsWestern' || infoDATA.taskType.ordinaryField.value == 'drugsReturn' || infoDATA.taskType.ordinaryField.value == 'drugsPoison' || infoDATA.taskType.ordinaryField.value == 'drugsHerbal')" hover-class="seimin-btn-hover">业务数据</view>
  440. <view class="btn3" @click="additionalUser(infoDATA)" v-if="(infoDATA.taskType.associationType.value == 'inspect' || infoDATA.taskType.associationType.value == 'patientTransport') && infoDATA.worker && infoDATA.worker.id && multiplayerMode === 1" hover-class="seimin-btn-hover">追加陪检人员</view>
  441. <view class="btn3" @click="additionalUser(infoDATA)" v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.worker && infoDATA.worker.id && clinicalMultiplayerMode === 1 && clinicalTaskIdsFlag && !infoDATA.copyBy" hover-class="seimin-btn-hover">追加执行人员</view>
  442. <view class="btn3" style="flex-basis: 100%;" @click="patientHandover(infoDATA)" v-if="infoDATA.taskType.associationType.value == 'patientTransport' && infoDATA.worker && infoDATA.worker.id && handoverOrder === 1" hover-class="seimin-btn-hover">扫描交接</view>
  443. </view>
  444. <!-- 弹窗 -->
  445. <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
  446. @know="know" :operate="models.operate" @ok="ok" @cancel="cancel" :textareaFlag="textareaFlag"
  447. @textareaInput="textareaInput"></showModel>
  448. <!-- 弹窗 -->
  449. <inspectRemoveModel :title="models1.title" :icon="models1.icon" :disjunctor="models1.disjunctor"
  450. :content="models1.content" @know="know1" :operate="models1.operate" @ok="ok1" @cancel="cancel1" :remove="true">
  451. </inspectRemoveModel>
  452. <!-- 弹窗 -->
  453. <showModel :title="models2.title" :icon="models2.icon" :disjunctor="models2.disjunctor" :content="models2.content"
  454. :operate="models2.operate" @ok="ok2" @cancel="cancel2"></showModel>
  455. <!-- 填写交接人工号弹窗 -->
  456. <selectAccount v-if="hosModels.disjunctor" :disjunctor="hosModels.disjunctor" @ok="hosOk"
  457. @cancel="hosCancel">
  458. </selectAccount>
  459. <!-- 手动查询弹窗 -->
  460. <checkboxModal v-if="checkboxModels.disjunctor" :content="checkboxModels.content" :disjunctor="checkboxModels.disjunctor"
  461. @ok="checkboxOk" @cancel="checkboxCancel">
  462. </checkboxModal>
  463. <!-- PDA扫描 -->
  464. <scanner></scanner>
  465. <!-- 标本转派 -->
  466. <uni-popup ref="alertDialog" type="dialog" :mask-click="false">
  467. <uni-popup-dialog type="info" cancelText="否" confirmText="是" title="提示" @confirm="dialogConfirm"
  468. @close="dialogClose">
  469. <text v-html="speContent"></text>
  470. </uni-popup-dialog>
  471. </uni-popup>
  472. </view>
  473. </template>
  474. <script>
  475. import scanner from "../../components/scanner/scanner.vue";
  476. import selectAccount from "../../components/selectAccount/selectAccount.vue";
  477. import smallScreen from "../../components/smallScreen/smallScreen.vue";
  478. import {
  479. get,
  480. post,
  481. SM,
  482. webHandle
  483. } from "../../http/http.js";
  484. import {
  485. pathUrl,
  486. photographTool
  487. } from "../../tools/photograph.js";
  488. export default {
  489. components: {
  490. selectAccount,
  491. scanner
  492. },
  493. data() {
  494. return {
  495. patientHandoverData: {},
  496. patientHandoverCode: '',
  497. other: {
  498. user: {},
  499. data: {},
  500. },
  501. // 手动查询弹窗model
  502. checkboxModels: {
  503. disjunctor: false,
  504. },
  505. taskTypeConfig: {},
  506. // 填写交接人工号弹窗model
  507. hosModels: {
  508. disjunctor: false,
  509. },
  510. currentCode: '', //当前拍照使用的科室二维码
  511. currentData: {}, //当前小扫描的工单对象
  512. multiplayerMode: 0,
  513. handoverOrder: 0,
  514. hideInspectScan: 0,
  515. clinicalMultiplayerMode: 0,
  516. clinicalTaskIdsFlag: false,
  517. hosId: uni.getStorageSync('userData').user.currentHospital.id,
  518. SMFlag:true,
  519. actualDelivery: 0,
  520. currentUserId: 0,
  521. // 弹窗model
  522. models: {
  523. disjunctor: false,
  524. },
  525. // 弹窗model1
  526. models1: {
  527. disjunctor: false,
  528. },
  529. // 弹窗model1
  530. models2: {
  531. disjunctor: false,
  532. },
  533. currentInspect: null,
  534. showType: "show",
  535. infoDATA: {},
  536. dataId: "",
  537. animationData: {},
  538. // 特殊情况关闭原因开关
  539. textareaFlag: false,
  540. textareaText: "",
  541. tasktype: null,
  542. sPehandoverOrder: null ,//是否转派
  543. speContent: null,
  544. };
  545. },
  546. filters: {
  547. // 自定义管道 yyTime
  548. yyTimeFilter: function(data) {
  549. if (data) {
  550. let nDate = null;
  551. if (typeof data == 'string') {
  552. let arr = data.split(/[-:\s]/);
  553. nDate = new Date(
  554. arr[0] - 0,
  555. arr[1] - 1,
  556. arr[2] - 0,
  557. arr[3] - 0,
  558. arr[4] - 0,
  559. 0
  560. );
  561. } else if (typeof data == 'number') {
  562. nDate = new Date(data);
  563. }
  564. const month = (nDate.getMonth() + 1).toString().padStart(2, 0);
  565. const date = nDate.getDate().toString().padStart(2, 0);
  566. const hour = nDate.getHours().toString().padStart(2, 0);
  567. const minute = nDate.getMinutes().toString().padStart(2, 0);
  568. return `${month}-${date} ${hour}:${minute}`;
  569. } else {
  570. return "-";
  571. }
  572. },
  573. },
  574. methods: {
  575. ok2() {
  576. uni.showLoading({
  577. title: "加载中",
  578. mask: true,
  579. });
  580. post("/patient/patientHandover", {
  581. id: this.patientHandoverCode.id,
  582. patientCodes: this.patientHandoverData.patient.patientCode,
  583. }).then((result) => {
  584. this.models2.disjunctor = false;
  585. if (result.state == 200) {
  586. uni.hideLoading();
  587. uni.showToast({
  588. icon: "none",
  589. mask: true,
  590. title: "交接成功!",
  591. });
  592. setTimeout(() => {
  593. uni.navigateTo({
  594. url: `/pages/receiptpage/receiptpage`,
  595. });
  596. },300)
  597. } else {
  598. uni.hideLoading();
  599. uni.showToast({
  600. icon: "none",
  601. title: result.msg || "接口获取数据失败!",
  602. });
  603. }
  604. });
  605. },
  606. cancel2() {
  607. this.models2.disjunctor = false;
  608. },
  609. // 门诊患者交接
  610. patientHandover(infoDATA){
  611. console.log(infoDATA);
  612. this.patientHandoverData = infoDATA;
  613. if (!this.SMFlag) {
  614. return;
  615. }
  616. this.SMFlag = false;
  617. SM().then((content) => {
  618. uni.showLoading({
  619. title: "加载中",
  620. mask: true,
  621. });
  622. //检验二维码的有效性(扫码前必须验证)
  623. post("/dept/scanning", {
  624. content,
  625. })
  626. .then((result) => {
  627. try{
  628. this.patientHandoverCode = JSON.parse(result.code);
  629. }catch(e){
  630. this.patientHandoverCode = '';
  631. }
  632. this.SMFlag = true;
  633. // 200检测通过,201没有有效期也通过。
  634. if (result.state == 200 || result.state == 201) {
  635. uni.hideLoading();
  636. if(Object.prototype.toString.call(this.patientHandoverCode) === '[object Object]' && this.patientHandoverCode.name){
  637. this.models2 = {
  638. disjunctor: true,
  639. title: "提示",
  640. content: `您确认要与<span class="red">${this.patientHandoverCode.name}</span>交接吗?`,
  641. icon: "warn",
  642. operate: {
  643. ok: "确定",
  644. cancel: "取消",
  645. },
  646. };
  647. }else{
  648. uni.showToast({
  649. icon: "none",
  650. title: "请扫描正确的二维码!",
  651. });
  652. }
  653. } else {
  654. uni.hideLoading();
  655. uni.showToast({
  656. icon: "none",
  657. title: result.info || "接口获取数据失败!",
  658. });
  659. }
  660. })
  661. }).catch(err => {
  662. this.SMFlag = true;
  663. });
  664. },
  665. // 手动查询-确认
  666. checkboxOk(bulkCopy) {
  667. console.log(bulkCopy);
  668. this.checkboxModels.disjunctor = false;
  669. let { user, data } = this.other;
  670. this.additionalUserCommon(user, data.id, data.worker.id, bulkCopy);
  671. },
  672. // 手动查询-取消
  673. checkboxCancel() {
  674. this.checkboxModels.disjunctor = false;
  675. },
  676. // 手动查询弹窗
  677. showCheckboxModal(user, data) {
  678. this.other = {
  679. user,
  680. data,
  681. };
  682. this.checkboxModels = {
  683. content: `您要最追加的人员为${user.name},您确认要追加吗?`,
  684. disjunctor: true,
  685. }
  686. },
  687. // 判断药品页面控制-是否显示关联批次药品
  688. isShowDrugsBatchInfo(){
  689. post("/simple/data/fetchDataList/taskType", {
  690. "idx": 0,
  691. "sum": 10,
  692. "taskType": {
  693. "simpleQuery": true,
  694. "hosId": {
  695. "id": this.hosId
  696. },
  697. "associationType": {
  698. "key": "association_types",
  699. "value": "drugsBag"
  700. }
  701. }
  702. }).then((res) => {
  703. if (res.status == 200) {
  704. res.list = res.list || [];
  705. let taskType = res.list[0] || {};
  706. if(taskType.id){
  707. post("/simple/data/fetchDataList/taskTypeConfig", {
  708. "idx": 0,
  709. "sum": 10,
  710. "taskTypeConfig": {
  711. "taskTypeDTO": {
  712. "hosId": {
  713. "id": this.hosId
  714. },
  715. "associationType": taskType.associationType
  716. }
  717. }
  718. }).then((res) => {
  719. if (res.status == 200) {
  720. res.list = res.list || [];
  721. this.taskTypeConfig = res.list[0] || {};
  722. } else {
  723. uni.showToast({
  724. icon: "none",
  725. title: res.msg || "接口获取数据失败!",
  726. });
  727. }
  728. });
  729. }else{
  730. uni.showToast({
  731. icon: "none",
  732. title: "请配置药品任务类型!",
  733. });
  734. }
  735. } else {
  736. uni.showToast({
  737. icon: "none",
  738. title: res.msg || "接口获取数据失败!",
  739. });
  740. }
  741. });
  742. },
  743. // 跳转到药品批次页面
  744. toDrugBatches(batchNo){
  745. uni.navigateTo({
  746. url: `../drugBatches/drugBatches?batchNo=${batchNo}`,
  747. });
  748. },
  749. // 前往其他临床服务完成工单确认页面
  750. otherCompleteOrder(data){
  751. console.log(data);
  752. uni.navigateTo({
  753. url: `../otherCompleteOrder/otherCompleteOrder?orderId=${data.id}&taskType=${data.taskType ? encodeURIComponent(JSON.stringify(data.taskType)) : ''}&order=${data ? encodeURIComponent(JSON.stringify(data)) : ''}`,
  754. });
  755. },
  756. // 如果不是静配,药配,标本配送,标本轮巡
  757. // 科室签到(小扫描)-拍照
  758. nextDeptOrder_ss(data, accountObj) {
  759. console.log(this.currentCode);
  760. let isKs = 0;
  761. let ids = [];
  762. let id = data.id;
  763. ids.push(id);
  764. let list = {
  765. code: "",
  766. ids: ids,
  767. };
  768. let code = "";
  769. let type = "";
  770. if (this.currentCode) {
  771. let gdStateValue = data.gdState.value; //工单状态value
  772. let associationTypeValue = data.taskType.associationType.value; //关联类型value
  773. // 其他临床服务,并且工单状态是待到达||工单状态待送达
  774. if (
  775. (associationTypeValue == "other" &&
  776. gdStateValue == "4") ||
  777. gdStateValue == "5"
  778. ) {
  779. code = this.currentCode;
  780. type = "orderSign/" + code;
  781. list = {
  782. ids
  783. };
  784. if (accountObj) {
  785. list.handover = [accountObj.accountId];
  786. }
  787. isKs = 1;
  788. }
  789. uni.showLoading({
  790. title: "加载中",
  791. mask: true,
  792. });
  793. post("/workerOrder/" + type, list).then((res) => {
  794. uni.hideLoading();
  795. if (res) {
  796. if (res.status == 200) {
  797. if (
  798. gdStateValue == "4" &&
  799. associationTypeValue == "other"
  800. ) {
  801. uni.navigateTo({
  802. url: `../../pages/scanning_code/scanning_code?type=${associationTypeValue}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}`,
  803. });
  804. }
  805. if (gdStateValue == "5") {
  806. uni.navigateTo({
  807. url: `../../pages/scanning_code/scanning_code?type=${associationTypeValue}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}`,
  808. });
  809. }
  810. } else {
  811. uni.navigateTo({
  812. url: `../../pages/scanning_Result/scanning_Result?type=${
  813. associationTypeValue
  814. }&type1=${res.type}&id=${data.id}&status=600&msg=${
  815. res.msg
  816. }&isKs=${isKs}&model=${encodeURIComponent(
  817. JSON.stringify(res)
  818. )}&qrcode=${this.currentCode}`,
  819. });
  820. }
  821. } else {
  822. uni.navigateTo({
  823. url: `../../pages/scanning_Result/scanning_Result?id=${data.id}&status=600&msg=扫码失败!请扫描正确的二维码!&isKs=${isKs}&qrcode=${this.currentCode}`,
  824. });
  825. }
  826. });
  827. }
  828. },
  829. // 填写交接人工号-确认
  830. hosOk(data) {
  831. console.log(data);
  832. const {
  833. accountName,
  834. account,
  835. accountId
  836. } = data;
  837. if (!accountName && !account) {
  838. //没有填写交接人
  839. uni.showModal({
  840. title: '提示',
  841. content: "请填写交接人工号!",
  842. showCancel: false,
  843. success: function(res) {
  844. if (res.confirm) {
  845. console.log('用户点击确定');
  846. } else if (res.cancel) {
  847. console.log('用户点击取消');
  848. }
  849. }
  850. });
  851. return;
  852. } else if (!accountName && account || accountName && !account) {
  853. //没有填写交接人
  854. uni.showModal({
  855. title: '提示',
  856. content: "请填写正确的交接人工号!",
  857. showCancel: false,
  858. success: function(res) {
  859. if (res.confirm) {
  860. console.log('用户点击确定');
  861. } else if (res.cancel) {
  862. console.log('用户点击取消');
  863. }
  864. }
  865. });
  866. return;
  867. }
  868. this.hosModels.disjunctor = false;
  869. let associationTypeValue = this.currentData.taskType.associationType.value;
  870. console.log(associationTypeValue)
  871. this.uploadToOther(this.currentData, data, 'start');
  872. },
  873. // 填写交接人工号-取消
  874. hosCancel() {
  875. this.hosModels.disjunctor = false;
  876. },
  877. // 填写交接人工号弹窗
  878. showSelectAccount() {
  879. this.hosModels = {
  880. disjunctor: true,
  881. }
  882. },
  883. // 拍照-上传
  884. uploadToOther(data, accountObj, type){
  885. // 其他临床服务拍照签到
  886. console.log(data, 1111);
  887. let id_seimin;
  888. let asTypeValue_seimin;
  889. let gdStateValue_seimin;
  890. if (data.status != 200 && data.status !== undefined) {
  891. id_seimin = data.id;
  892. asTypeValue_seimin = data.type;
  893. gdStateValue_seimin = JSON.parse(data.model).gdstate2; //type改成gdstate
  894. } else {
  895. id_seimin = data.id;
  896. asTypeValue_seimin = data.taskType.associationType.value;
  897. gdStateValue_seimin = data.gdState.value;
  898. }
  899. //#ifdef H5
  900. uni.chooseImage({
  901. count: 1,
  902. sourceType: ['camera'],
  903. success: (chooseImageRes) => {
  904. console.log(chooseImageRes, pathUrl)
  905. const tempFilePaths = chooseImageRes.tempFilePaths;
  906. const tempFiles = chooseImageRes.tempFiles;
  907. let tp = tempFilePaths[0];
  908. uni.showLoading({
  909. mask: true,
  910. title: '加载中'
  911. });
  912. post('/workerOrder/findRecordInfoByOrderId', {
  913. orderId: id_seimin,
  914. gdOperate: 21,
  915. }).then(result => {
  916. console.log(result)
  917. if (result.state == 200) {
  918. uni.getImageInfo({
  919. src: tp,
  920. success: (res) => {
  921. console.log('压缩前', res)
  922. let canvasWidth = res.width //图片原始长宽
  923. let canvasHeight = res.height
  924. let img = new Image()
  925. img.src = res.path
  926. let canvas = document.createElement('canvas');
  927. let ctx = canvas.getContext('2d')
  928. canvas.width = canvasWidth
  929. canvas.height = canvasHeight
  930. ctx.drawImage(img, 0, 0, canvasWidth, canvasHeight)
  931. canvas.toBlob((fileSrc) => {
  932. tp = window.URL.createObjectURL(fileSrc)
  933. console.log('压缩后', tp);
  934. uni.uploadFile({
  935. url: pathUrl + '/common/common/uploadAttachment/'+(type == 'start' ? 'orderStartPhoto' : 'orderEndPhoto')+'/' + id_seimin + '/' + result.recordId,
  936. filePath: tp,
  937. name: 'file',
  938. formData: {
  939. 'filename': tempFiles[0].name ? tempFiles[0].name.split('.')[0] + '.jpg' : tempFiles[
  940. 0].path.split(
  941. /[\\/]/).reverse()[0].split('.')[0] + '.jpg'
  942. },
  943. success: (uploadFileRes) => {
  944. console.log(uploadFileRes, 10086, asTypeValue_seimin);
  945. this.nextDeptOrder_ss(data, accountObj, type);
  946. },
  947. fail: err => {
  948. console.error(err);
  949. uni.hideLoading();
  950. uni.showToast({
  951. icon: 'none',
  952. title: '上传失败',
  953. duration: 2000
  954. });
  955. }
  956. });
  957. }, 'image/jpeg', 0.3)
  958. },
  959. fail: function () {
  960. uni.hideLoading();
  961. uni.showToast({
  962. icon: 'none',
  963. title: '上传失败',
  964. duration: 2000
  965. });
  966. }
  967. })
  968. } else {
  969. uni.hideLoading();
  970. uni.showToast({
  971. icon: "none",
  972. title: result.msg || "接口获取数据失败!",
  973. });
  974. }
  975. })
  976. }
  977. });
  978. //#endif
  979. //#ifdef APP-PLUS
  980. uni.chooseImage({
  981. count: 1,
  982. sourceType: ['camera'],
  983. sizeType: ['compressed'],
  984. success: (chooseImageRes) => {
  985. console.log(chooseImageRes, pathUrl)
  986. const tempFilePaths = chooseImageRes.tempFilePaths;
  987. const tempFiles = chooseImageRes.tempFiles;
  988. let tp = tempFilePaths[0];
  989. uni.showLoading({
  990. mask: true,
  991. title: '加载中'
  992. });
  993. post('/workerOrder/findRecordInfoByOrderId', {
  994. orderId: id_seimin,
  995. gdOperate: 21,
  996. }).then(result => {
  997. console.log(result)
  998. if (result.state == 200) {
  999. uni.compressImage({
  1000. src: tp,
  1001. quality: 30,
  1002. success: (res) => {
  1003. console.log('压缩前', res)
  1004. tp = res.tempFilePath;
  1005. console.log('压缩后', tp);
  1006. uni.uploadFile({
  1007. url: pathUrl + '/common/common/uploadAttachment/'+(type == 'start' ? 'orderStartPhoto' : 'orderEndPhoto')+'/' + id_seimin + '/' + result.recordId,
  1008. filePath: tp,
  1009. name: 'file',
  1010. formData: {
  1011. 'filename': tempFiles[0].name ? tempFiles[0].name.split('.')[0] + '.jpg' : tempFiles[
  1012. 0].path.split(
  1013. /[\\/]/).reverse()[0].split('.')[0] + '.jpg'
  1014. },
  1015. success: (uploadFileRes) => {
  1016. console.log(uploadFileRes, 10086, asTypeValue_seimin);
  1017. this.nextDeptOrder_ss(data, accountObj, type);
  1018. },
  1019. fail: err => {
  1020. console.error(err);
  1021. uni.hideLoading();
  1022. uni.showToast({
  1023. icon: 'none',
  1024. title: '上传失败',
  1025. duration: 2000
  1026. });
  1027. }
  1028. });
  1029. },
  1030. fail: function () {
  1031. uni.hideLoading();
  1032. uni.showToast({
  1033. icon: 'none',
  1034. title: '上传失败',
  1035. duration: 2000
  1036. });
  1037. }
  1038. })
  1039. } else {
  1040. uni.hideLoading();
  1041. uni.showToast({
  1042. icon: "none",
  1043. title: result.msg || "接口获取数据失败!",
  1044. });
  1045. }
  1046. })
  1047. }
  1048. });
  1049. //#endif
  1050. },
  1051. // 拍照-其他
  1052. async photographToOther(data, type) {
  1053. this.currentData = data;
  1054. uni.showLoading({
  1055. title: "加载中",
  1056. mask: true,
  1057. });
  1058. // 其他临床服务
  1059. let result = await post("/dept/scanning", {
  1060. content: type === 'start' ? data.startDept.qrcode : data.endDepts[0].qrcode,
  1061. taskTypeId: data.taskType.id,
  1062. gdState: data.gdState.id,
  1063. });
  1064. uni.hideLoading();
  1065. this.currentCode = result.code;
  1066. if (result.state == 200 || result.state == 201) {
  1067. uni.showModal({
  1068. title: '提示',
  1069. content: '请尽量拍摄角度覆盖清洁区域?',
  1070. success: (res) => {
  1071. if (res.confirm) {
  1072. if (result.account) {
  1073. this.uploadToOther(data, {
  1074. account: result.account,
  1075. accountName: result.name,
  1076. accountId: result.id,
  1077. }, type);
  1078. } else {
  1079. this.uploadToOther(data, undefined, type);
  1080. }
  1081. } else if (res.cancel) {
  1082. console.log('用户点击取消');
  1083. }
  1084. }
  1085. });
  1086. } else if (result.state == '0000') {
  1087. this.showSelectAccount();
  1088. } else {
  1089. uni.showToast({
  1090. icon: "none",
  1091. title: result.info || "接口获取数据失败!",
  1092. });
  1093. }
  1094. },
  1095. goBack() {
  1096. uni.navigateTo({
  1097. url: "../receiptpage/receiptpage",
  1098. });
  1099. },
  1100. // 转派
  1101. redeployScan(workOrder){
  1102. if (!this.SMFlag) {
  1103. return;
  1104. }
  1105. this.SMFlag = false;
  1106. SM().then((content) => {
  1107. uni.showLoading({
  1108. title: "加载中",
  1109. mask: true,
  1110. });
  1111. const regex = /^[^{}]+$/; // 验证是否是json对象
  1112. let code = null
  1113. console.log(12345,regex.test(content))
  1114. if(!regex.test(content)){
  1115. code = JSON.parse(content)
  1116. }else{
  1117. code = null
  1118. uni.hideLoading();
  1119. uni.showToast({
  1120. icon: "none",
  1121. title: '请扫描正确的二维码',
  1122. });
  1123. this.SMFlag = true;
  1124. return
  1125. }
  1126. post("/workerOrder/transfer ", {
  1127. handoverId: code.id ? code.id : null,
  1128. orderId: workOrder.id
  1129. })
  1130. .then((result) => {
  1131. this.SMFlag = true;
  1132. uni.hideLoading();
  1133. if (result.state == 205) {
  1134. this.speContent = result.msg
  1135. this.handoverId = code.id ? code.id : null
  1136. this.$refs.alertDialog.open()
  1137. }else{
  1138. uni.showToast({
  1139. icon: "none",
  1140. title: result.msg,
  1141. });
  1142. }
  1143. })
  1144. }).catch(err => {
  1145. this.SMFlag = true;
  1146. });
  1147. },
  1148. dialogConfirm() {
  1149. uni.showLoading({
  1150. title: "加载中",
  1151. mask: true,
  1152. });
  1153. post("/workerOrder/transfer ", {
  1154. handoverId: this.handoverId,
  1155. orderId: this.infoDATA.id,
  1156. transferOrder: 1
  1157. })
  1158. .then((result) => {
  1159. this.SMFlag = true;
  1160. uni.hideLoading();
  1161. if (result.state == 200) {
  1162. uni.showToast({
  1163. icon: "none",
  1164. title: result.info || "转派成功",
  1165. });
  1166. setTimeout(_=>{
  1167. this.goBack()
  1168. },2000)
  1169. }
  1170. })
  1171. },
  1172. dialogClose() {
  1173. this.$refs.alertDialog.close()
  1174. this.speContent = null
  1175. },
  1176. // 查看标本
  1177. viewSpecimen(workOrder) {
  1178. uni.navigateTo({
  1179. url: `../specimenDetail/specimenDetail?workOrderId=${workOrder.id}&associationTypeValue=${workOrder.taskType.associationType.value}`,
  1180. });
  1181. },
  1182. // 查看药品业务数据
  1183. viewDrugsBag(workOrder) {
  1184. uni.navigateTo({
  1185. url: `../drugsBagHistory/drugsBagHistory?id=${workOrder.drugs.id}&packid=${workOrder.drugs.packid}`,
  1186. });
  1187. },
  1188. // 查看血制品
  1189. viewBlood(workOrder) {
  1190. uni.showLoading({
  1191. title: "加载中",
  1192. mask: true,
  1193. });
  1194. post('/transflow/checkData', {
  1195. "type": "blood",
  1196. "orderId": workOrder.id
  1197. }).then(res => {
  1198. uni.hideLoading();
  1199. if(res.state == 200){
  1200. uni.navigateTo({
  1201. url: `../blood_list/blood_list?bloods=${encodeURIComponent(JSON.stringify(res.data.all))}`,
  1202. });
  1203. }else{
  1204. uni.showToast({
  1205. icon: "none",
  1206. title: res.msg || "接口获取数据失败!",
  1207. });
  1208. }
  1209. })
  1210. },
  1211. // 查看新药品
  1212. viewNewDrugsBag(workOrder, type) {
  1213. uni.showLoading({
  1214. title: "加载中",
  1215. mask: true,
  1216. });
  1217. let postData = {
  1218. "idx": 0,
  1219. "sum": 1,
  1220. "taskTypeConfig": {
  1221. "taskTypeDTO": {
  1222. "hosId": {
  1223. "id": this.hosId
  1224. },
  1225. "ordinaryField": {
  1226. "key": "ordinary_field",
  1227. "value": type
  1228. }
  1229. }
  1230. }
  1231. };
  1232. post('/simple/data/fetchDataList/taskTypeConfig', postData).then(res => {
  1233. uni.hideLoading();
  1234. if(res.status == 200){
  1235. let list = res.list || [];
  1236. if(list.length){
  1237. let config = list[0];
  1238. if(config.drugsModel === 1){
  1239. uni.navigateTo({
  1240. url: `/pages/newDrug/detail?drugsBagType=${type}&orderId=${workOrder.id}&showPatientInfo=${config.showPatientInfo}`,
  1241. });
  1242. } else if(config.drugsModel === 2){
  1243. uni.navigateTo({
  1244. url: `/pages/newDrug/list?drugsBagType=${type}&orderId=${workOrder.id}&showPatientInfo=${config.showPatientInfo}`,
  1245. });
  1246. }
  1247. }else{
  1248. uni.showToast({
  1249. icon: "none",
  1250. title: "未查询到配置!",
  1251. });
  1252. }
  1253. }else{
  1254. uni.showToast({
  1255. icon: "none",
  1256. title: res.msg || "接口获取数据失败!",
  1257. });
  1258. }
  1259. })
  1260. },
  1261. // 移除检查->返回
  1262. know1() {
  1263. this.models1.disjunctor = false;
  1264. // this.getInfo(this.dataId);
  1265. uni.navigateTo({
  1266. url: '../receiptpage/receiptpage',
  1267. });
  1268. },
  1269. // 移除检查->确定
  1270. ok1(data) {
  1271. console.log(data);
  1272. const {
  1273. value,
  1274. yyTime
  1275. } = data;
  1276. if (!value) {
  1277. //没有选择移除原因
  1278. uni.showModal({
  1279. title: "提示",
  1280. content: "请选择移除原因!",
  1281. showCancel: false,
  1282. success: function(res) {
  1283. if (res.confirm) {
  1284. console.log("用户点击确定");
  1285. } else if (res.cancel) {
  1286. console.log("用户点击取消");
  1287. }
  1288. },
  1289. });
  1290. return;
  1291. } else if (value == 2 && !yyTime) {
  1292. //没有填写预约时间
  1293. uni.showModal({
  1294. title: "提示",
  1295. content: "请填写预约时间!",
  1296. showCancel: false,
  1297. success: function(res) {
  1298. if (res.confirm) {
  1299. console.log("用户点击确定");
  1300. } else if (res.cancel) {
  1301. console.log("用户点击取消");
  1302. }
  1303. },
  1304. });
  1305. return;
  1306. }
  1307. this.models1.disjunctor = false;
  1308. let postData = {
  1309. gdId: this.infoDATA.id,
  1310. inspectId: this.currentInspect.id,
  1311. reason: value == 1 ? 'checkDone' : value == 2 ? 'modificationTime' : 'wrongOrder',
  1312. yyTime: value == 2 ? yyTime : undefined,
  1313. };
  1314. uni.showLoading({
  1315. title: '移除中',
  1316. mask: true,
  1317. })
  1318. post('/workerOrder/removeInspectByOderId', postData).then(res => {
  1319. uni.hideLoading();
  1320. if (res.state == 200) {
  1321. uni.showToast({
  1322. icon: 'none',
  1323. title: '移除成功!',
  1324. success() {
  1325. setTimeout(() => {
  1326. uni.navigateTo({
  1327. url: '../receiptpage/receiptpage',
  1328. });
  1329. }, 1500)
  1330. }
  1331. })
  1332. } else {
  1333. uni.showToast({
  1334. icon: 'none',
  1335. title: '移除失败!',
  1336. })
  1337. }
  1338. })
  1339. },
  1340. // 移除检查->取消
  1341. cancel1() {
  1342. this.models1.disjunctor = false;
  1343. },
  1344. // 移除
  1345. remove(item) {
  1346. this.currentInspect = item;
  1347. this.models1 = {
  1348. disjunctor: true,
  1349. content: "请选择您移除检查的原因?检查移除后将会自动完成或删除工单!",
  1350. icon: "warn",
  1351. operate: {
  1352. ok: "确定",
  1353. cancel: "取消",
  1354. },
  1355. };
  1356. },
  1357. // 拍照
  1358. photograph(data) {
  1359. photographTool(data);
  1360. },
  1361. // 特殊情况输入文字
  1362. textareaInput(value) {
  1363. this.textareaText = value;
  1364. if (value.trim().length >= 5) {
  1365. this.models.operate = {
  1366. ok: "确定",
  1367. cancel: "取消",
  1368. };
  1369. } else {
  1370. this.models.operate = {
  1371. cancel: "取消",
  1372. };
  1373. }
  1374. },
  1375. // 追加陪检人/执行人按钮
  1376. additionalUser(data) {
  1377. if (!this.SMFlag) {
  1378. return;
  1379. }
  1380. this.SMFlag = false;
  1381. console.log(data, 'data');
  1382. SM().then((ress1) => {
  1383. uni.showLoading({
  1384. title: "加载中",
  1385. mask: true,
  1386. });
  1387. //检验二维码的有效性
  1388. post("/dept/scanning", {
  1389. content: ress1,
  1390. taskTypeId: data.taskType.id,
  1391. gdState: data.gdState.id,
  1392. }).then((result) => {
  1393. this.SMFlag = true;
  1394. // this.currentCode = result.code;
  1395. if (result.state == 200 || result.state == 201) {
  1396. console.log(result);
  1397. let user;
  1398. try{
  1399. // json对象字符串
  1400. user = JSON.parse(result.code);
  1401. // 不是json对象字符串
  1402. if(Object.prototype.toString.call(user).slice(8, -1).toLowerCase() !== 'object'){
  1403. user = result.code;
  1404. }
  1405. }catch(e){
  1406. user = result.code;
  1407. }
  1408. if(Object.prototype.toString.call(user).slice(8, -1).toLowerCase() === 'object' && user.type == 'myQrCode' && user.id && user.name){
  1409. user.qrcode = ress1;
  1410. uni.hideLoading();
  1411. if(data.taskType.associationType.value == 'other'){
  1412. this.showCheckboxModal(user, data);
  1413. }else{
  1414. uni.showModal({
  1415. title: "提示",
  1416. content: `您要最追加的人员为${user.name},您确认要追加吗?`,
  1417. success: (res) => {
  1418. if (res.confirm) {
  1419. console.log("用户点击确定");
  1420. this.additionalUserCommon(user, data.id, data.worker.id, false);
  1421. } else if (res.cancel) {
  1422. console.log("用户点击取消");
  1423. }
  1424. },
  1425. });
  1426. }
  1427. }else if(Object.prototype.toString.call(user).slice(8, -1).toLowerCase() === 'string'){
  1428. let identityCardNumber = user;
  1429. // 根据身份证获取name
  1430. // todo
  1431. post("/data/fetchDataList/user", {idx: 0, sum: 1, user: { identityCardNumber }}).then((result) => {
  1432. uni.hideLoading();
  1433. if(result.status == 200){
  1434. result.list = result.list || [];
  1435. if(result.list.length){
  1436. let user = {name: result.list[0].name, identityCardNumber, qrcode: ress1};
  1437. if(data.taskType.associationType.value == 'other'){
  1438. this.showCheckboxModal(user, data);
  1439. }else{
  1440. uni.showModal({
  1441. title: "提示",
  1442. content: `您要最追加的人员为${user.name},您确认要追加吗?`,
  1443. success: (res) => {
  1444. if (res.confirm) {
  1445. console.log("用户点击确定");
  1446. this.additionalUserCommon(user, data.id, data.worker.id, false);
  1447. } else if (res.cancel) {
  1448. console.log("用户点击取消");
  1449. }
  1450. },
  1451. });
  1452. }
  1453. }else{
  1454. uni.navigateTo({
  1455. url: `../result_error/result_error?qrcode=${ress1}&msg=扫描二维码无法找到用户!`,
  1456. });
  1457. }
  1458. }else{
  1459. uni.navigateTo({
  1460. url: `../result_error/result_error?qrcode=${ress1}&msg=请扫描正确的二维码!`,
  1461. });
  1462. }
  1463. })
  1464. }else{
  1465. uni.hideLoading();
  1466. uni.navigateTo({
  1467. url: `../result_error/result_error?qrcode=${ress1}&msg=请扫描正确的二维码!`,
  1468. });
  1469. }
  1470. } else {
  1471. uni.hideLoading();
  1472. uni.navigateTo({
  1473. url: `../result_error/result_error?qrcode=${ress1}&msg=${result.info || '接口获取数据失败!'}`,
  1474. });
  1475. }
  1476. });
  1477. }).catch(err=>{
  1478. this.SMFlag = true;
  1479. });
  1480. },
  1481. // 追加陪检人/执行人
  1482. additionalUserCommon(user, gdId, workerId, bulkCopy) {
  1483. console.log(user, gdId, workerId, bulkCopy);
  1484. uni.showLoading({
  1485. title: "加载中",
  1486. mask: true,
  1487. });
  1488. // 二维码里有id则传userid,没有则传identityCardNumber
  1489. post("/workerOrder/additionalAccompanyingPersonnel", {
  1490. userId: user.id || undefined,
  1491. identityCardNumber: !user.id ? user.identityCardNumber : undefined,
  1492. gdId,
  1493. workerId,
  1494. bulkCopy: bulkCopy ? 1 : undefined,
  1495. }).then((result) => {
  1496. uni.hideLoading();
  1497. if (result.state == 200) {
  1498. this.getInfo(gdId);
  1499. uni.showToast({
  1500. icon: 'none',
  1501. duration: 4000,
  1502. title: '操作成功!'
  1503. })
  1504. } else {
  1505. uni.navigateTo({
  1506. url: `../result_error/result_error?qrcode=${user.qrcode}&msg=${result.msg || '接口获取数据失败!'}`,
  1507. });
  1508. }
  1509. });
  1510. },
  1511. // 特殊情况关闭按钮
  1512. specialCloseClick() {
  1513. this.textareaFlag = true;
  1514. this.models = {
  1515. title: "特殊情况关闭",
  1516. disjunctor: true,
  1517. content: "",
  1518. icon: "",
  1519. operate: {
  1520. cancel: "取消",
  1521. },
  1522. };
  1523. },
  1524. ok() {
  1525. uni.showLoading({
  1526. title: "加载中",
  1527. mask: true,
  1528. });
  1529. post("/workerOrder/specialCaseClose", {
  1530. workOrderId: this.dataId,
  1531. reason: this.textareaText.trim(),
  1532. }).then((result) => {
  1533. this.models.disjunctor = false;
  1534. this.textareaFlag = false;
  1535. this.textareaText = "";
  1536. if (result.state == 200) {
  1537. uni.hideLoading();
  1538. this.models = {
  1539. disjunctor: true,
  1540. content: "工单关闭成功",
  1541. icon: "success",
  1542. operate: {
  1543. know: "返回",
  1544. },
  1545. };
  1546. } else {
  1547. uni.hideLoading();
  1548. this.models = {
  1549. disjunctor: true,
  1550. content: "工单关闭失败",
  1551. icon: "error",
  1552. operate: {
  1553. know: "返回",
  1554. },
  1555. };
  1556. }
  1557. });
  1558. },
  1559. cancel() {
  1560. this.models.disjunctor = false;
  1561. this.textareaFlag = false;
  1562. this.textareaText = "";
  1563. },
  1564. // 点击可查看检查详情
  1565. show(type) {
  1566. this.showType = type;
  1567. if (type === "show") {
  1568. //展开
  1569. // 计算高度
  1570. const query = uni.createSelectorQuery().in(this);
  1571. query
  1572. .selectAll(".page_item_infos")
  1573. .boundingClientRect((data) => {
  1574. let len = data.reduce((prev, current) => {
  1575. return prev + current.height;
  1576. }, 0);
  1577. this.animation.height(len).step();
  1578. this.animationData = this.animation.export();
  1579. })
  1580. .exec();
  1581. } else if (type === "hiddle") {
  1582. this.animation.height(0).step();
  1583. this.animationData = this.animation.export();
  1584. }
  1585. },
  1586. // 抢单->返回
  1587. know() {
  1588. this.models.disjunctor = false;
  1589. uni.navigateTo({
  1590. url: "../receiptpage/receiptpage",
  1591. });
  1592. },
  1593. // 抢单
  1594. showAlert() {
  1595. get("/workerOrder/takeOrder/" + this.infoDATA.id).then((res) => {
  1596. if (res.status == 200) {
  1597. this.models = {
  1598. disjunctor: true,
  1599. content: "接单成功",
  1600. icon: "success",
  1601. operate: {
  1602. know: "返回",
  1603. },
  1604. };
  1605. } else {
  1606. uni.showToast({
  1607. icon: "none",
  1608. title: res.msg || "接口获取数据失败!",
  1609. });
  1610. }
  1611. });
  1612. },
  1613. // 请求详细页面的数据(除标本轮巡和标本配送)
  1614. getInfo(id) {
  1615. uni.showLoading({
  1616. title: "加载中",
  1617. mask: true,
  1618. });
  1619. get("/api/fetchData/workOrder/" + id).then((res) => {
  1620. uni.hideLoading();
  1621. if (res.status == 200) {
  1622. this.infoDATA = res.data;
  1623. // 计算高度
  1624. setTimeout(() => {
  1625. const query = uni.createSelectorQuery().in(this);
  1626. query
  1627. .selectAll(".page_item_infos")
  1628. .boundingClientRect((data) => {
  1629. let len = data.reduce((prev, current) => {
  1630. return prev + current.height;
  1631. }, 0);
  1632. this.animation.height(len).step();
  1633. this.animationData = this.animation.export();
  1634. })
  1635. .exec();
  1636. }, 500)
  1637. } else {
  1638. uni.showToast({
  1639. icon: "none",
  1640. title: res.msg || "接口获取数据失败!",
  1641. });
  1642. }
  1643. });
  1644. },
  1645. // 请求详细页面的数据
  1646. getInfoBySpecimen(id) {
  1647. uni.showLoading({
  1648. title: "加载中",
  1649. mask: true,
  1650. });
  1651. post("/api/getWechatItem", {
  1652. id
  1653. }).then((res) => {
  1654. uni.hideLoading();
  1655. if (res.state == 200) {
  1656. this.actualDelivery = res.actualDelivery;
  1657. this.infoDATA = res.data;
  1658. // 计算高度
  1659. setTimeout(() => {
  1660. const query = uni.createSelectorQuery().in(this);
  1661. query
  1662. .selectAll(".page_item_infos")
  1663. .boundingClientRect((data) => {
  1664. let len = data.reduce((prev, current) => {
  1665. return prev + current.height;
  1666. }, 0);
  1667. this.animation.height(len).step();
  1668. this.animationData = this.animation.export();
  1669. })
  1670. .exec();
  1671. }, 500)
  1672. } else {
  1673. uni.showToast({
  1674. icon: "none",
  1675. title: res.msg || "接口获取数据失败!",
  1676. });
  1677. }
  1678. });
  1679. },
  1680. // 获取标本是否转派配置
  1681. getSpeTaskConfig(){
  1682. let postData = {
  1683. idx: 0,
  1684. sum: 10,
  1685. taskType: {
  1686. simpleQuery: true,
  1687. hosId: {
  1688. id: this.hosId
  1689. },
  1690. associationType: {
  1691. key:"association_types",
  1692. value: "specimen"
  1693. }
  1694. }
  1695. };
  1696. post("/simple/data/fetchDataList/taskType", postData).then((result) => {
  1697. if (result.status == 200) {
  1698. this.tasktype = result.list[0] || {};
  1699. this.getSpeConfig();
  1700. }
  1701. });
  1702. },
  1703. // 获取配置
  1704. getSpeConfig() {
  1705. let postData = {
  1706. idx: 0,
  1707. sum: 10,
  1708. taskTypeConfig: {
  1709. taskTypeDTO: {
  1710. hosId: {
  1711. id: this.hosId
  1712. },
  1713. associationType: this.tasktype.associationType
  1714. }
  1715. }
  1716. };;
  1717. post("/simple/data/fetchDataList/taskTypeConfig", postData).then((result) => {
  1718. if (result.status == 200) {
  1719. this.configs = result.list[0] || {};
  1720. this.sPehandoverOrder = this.configs.handoverOrder || null;
  1721. }
  1722. });
  1723. },
  1724. // 获取检查页面控制开关
  1725. getTaskConfig(){
  1726. post("/simple/data/fetchDataList/taskTypeConfig", {
  1727. "idx": 0,
  1728. "sum": 10,
  1729. "taskTypeConfig": {
  1730. "taskTypeDTO": {
  1731. "hosId": {
  1732. "id": this.hosId
  1733. },
  1734. "associationType": {
  1735. "key": "association_types",
  1736. "value": "inspect"
  1737. }
  1738. }
  1739. }
  1740. }).then((result) => {
  1741. if (result.status == 200) {
  1742. if(result.list && result.list[0]){
  1743. this.multiplayerMode = result.list[0].multiplayerMode;
  1744. this.handoverOrder = result.list[0].handoverOrder;
  1745. this.hideInspectScan = result.list[0].hideInspectScan;
  1746. }else{
  1747. this.multiplayerMode = 0;
  1748. this.handoverOrder = 0;
  1749. this.hideInspectScan = 0;
  1750. }
  1751. } else {
  1752. this.multiplayerMode = 0;
  1753. this.handoverOrder = 0;
  1754. this.hideInspectScan = 0;
  1755. }
  1756. });
  1757. },
  1758. // 获取临床服务页面控制开关
  1759. getTaskOtherConfig(options){
  1760. post("/simple/data/fetchDataList/taskTypeConfig", {
  1761. "idx": 0,
  1762. "sum": 10,
  1763. "taskTypeConfig": {
  1764. "hosId": this.hosId,
  1765. "associationType": options.associationTypeId,
  1766. }
  1767. }).then((result) => {
  1768. if (result.status == 200) {
  1769. if(result.list && result.list[0]){
  1770. this.clinicalMultiplayerMode = result.list[0].clinicalMultiplayerMode;
  1771. let clinicalTaskIds = result.list[0].clinicalTaskIds ? result.list[0].clinicalTaskIds.split(',') : [] ;
  1772. this.clinicalTaskIdsFlag = clinicalTaskIds.includes(options.taskTypeId);
  1773. console.log(clinicalTaskIds, options.taskTypeId)
  1774. }else{
  1775. this.clinicalMultiplayerMode = 0;
  1776. this.clinicalTaskIdsFlag = false;
  1777. }
  1778. } else {
  1779. this.clinicalMultiplayerMode = 0;
  1780. this.clinicalTaskIdsFlag = false;
  1781. }
  1782. });
  1783. },
  1784. // 获取是否需要选择陪检方式
  1785. getInspectAndPatientTransform(content){
  1786. let sData = this.infoDATA
  1787. let sType = null
  1788. if(((!sData.worker)||(sData.worker&&sData.worker.id == this.currentUserId))&&sData.gdState.value != 6&&sData.gdState.value != 7&&sData.gdState.value != 11){
  1789. if(sData.gdState.value != 2 &&
  1790. sData.taskType.associationType.value != 'jPBag' &&
  1791. sData.taskType.associationType.value != 'drugsBag' &&
  1792. sData.taskType.associationType.value != 'specimen' &&
  1793. sData.taskType.associationType.value != 'specimenPlan' &&
  1794. sData.taskType.associationType.value != 'ordinary' &&
  1795. !(sData.taskType.associationType.value == 'other' && (sData.gdState.value == 4 && sData.taskType.carryingCourses[0].actionsSwitch || sData.gdState.value == 5 && sData.taskType.carryingCourses[1].actionsSwitch))){
  1796. sType = 1
  1797. }
  1798. }
  1799. if(sData.gdState.value != 2 &&
  1800. sData.taskType.associationType.value != 'patientTransport' &&
  1801. sData.taskType.associationType.value != 'inspect' &&
  1802. sData.taskType.associationType.value != 'other' &&
  1803. sData.taskType.associationType.value != 'ordinary'){
  1804. sType = 2
  1805. }
  1806. // 患者陪检,患者其他服务,工单状态是待到达
  1807. if((sData.taskType.associationType.value === 'inspect' || sData.taskType.associationType.value === 'patientTransport') && sData.gdState.value == 4){
  1808. const postData = {
  1809. "idx":0,
  1810. "sum":1,
  1811. "taskTypeConfig":{
  1812. "taskTypeDTO":{
  1813. "hosId": {"id": this.hosId},
  1814. "associationType": {
  1815. "key": "association_types",
  1816. "value":"inspect",
  1817. },
  1818. },
  1819. },
  1820. };
  1821. uni.showLoading({
  1822. mask: true,
  1823. title: '加载中'
  1824. })
  1825. post("/simple/data/fetchDataList/taskTypeConfig", postData).then((res) => {
  1826. console.log(res)
  1827. if (res.status == 200) {
  1828. res.list = res.list || [];
  1829. if(res.list[0] && res.list[0].signTypeIds){
  1830. // 如果开启
  1831. const postData = {
  1832. "idx":0,
  1833. "sum":9999,
  1834. "workOrderInspectScore":{
  1835. "hosId": this.hosId,
  1836. },
  1837. };
  1838. post("/simple/data/fetchDataList/workOrderInspectScore", postData).then((res) => {
  1839. console.log(res)
  1840. uni.hideLoading();
  1841. if (res.status == 200) {
  1842. res.list = res.list || [];
  1843. let radioInspectionDistanceItem = res.list.map(v => ({id: v.id + "__" + v.inspectMode, inspectMode: v.inspectMode}));
  1844. console.log(radioInspectionDistanceItem)
  1845. this.models4 = {
  1846. disjunctor: true,
  1847. title: "请选择陪检方式",
  1848. radioInspectionDistanceItem,
  1849. icon: "",
  1850. operate: {
  1851. ok: "确定",
  1852. cancel: "取消",
  1853. },
  1854. };
  1855. } else {
  1856. uni.showToast({
  1857. icon: "none",
  1858. title: res.msg || "接口获取数据失败!",
  1859. });
  1860. }
  1861. })
  1862. }else{
  1863. uni.hideLoading();
  1864. this.Scan_ss(content,sData,sType);
  1865. }
  1866. } else {
  1867. uni.hideLoading();
  1868. uni.showToast({
  1869. icon: "none",
  1870. title: res.msg || "接口获取数据失败!",
  1871. });
  1872. }
  1873. })
  1874. }else{
  1875. this.Scan_ss(content,sData,sType);
  1876. }
  1877. },
  1878. Scan_ss(content, data, type) {
  1879. if (!this.SMFlag) {
  1880. return;
  1881. }
  1882. this.SMFlag = false;
  1883. this.currentData = data;
  1884. if(content){
  1885. content = content.replace('\n','')
  1886. uni.showLoading({
  1887. title: "加载中",
  1888. mask: true,
  1889. });
  1890. //检验二维码的有效性
  1891. post("/dept/scanning", {
  1892. content: content,
  1893. taskTypeId: data.taskType.id,
  1894. gdState: data.gdState.id,
  1895. }).then((result) => {
  1896. this.SMFlag = true;
  1897. this.currentCode = result.code;
  1898. if (result.state == 200 || result.state == 201) {
  1899. if (result.account) {
  1900. if (type == 1) {
  1901. this.isOpenTransportationProcessRemarks(this.currentData, {
  1902. account: result.account,
  1903. accountName: result.name,
  1904. accountId: result.id,
  1905. }, 'nextDeptOrder_ss');
  1906. } else if (type == 2) {
  1907. this.nextDeptOrder_s(this.currentData, {
  1908. account: result.account,
  1909. accountName: result.name,
  1910. accountId: result.id,
  1911. });
  1912. }
  1913. } else {
  1914. if (type == 1) {
  1915. this.isOpenTransportationProcessRemarks(this.currentData, undefined, 'nextDeptOrder_ss');
  1916. } else if (type == 2) {
  1917. this.nextDeptOrder_s(this.currentData);
  1918. }
  1919. }
  1920. } else if (result.state == '0000') {
  1921. uni.hideLoading();
  1922. // this.showSelectAccount(); //yeye
  1923. } else {
  1924. uni.hideLoading();
  1925. uni.showToast({
  1926. icon: "none",
  1927. title: result.info || "接口获取数据失败!",
  1928. });
  1929. }
  1930. });
  1931. }
  1932. },
  1933. // 其他临床服务-运输过程-终点科室是否开通备注填写
  1934. isOpenTransportationProcessRemarks(data, accountObj, funName){
  1935. const tasktype = data.taskType;
  1936. console.log(tasktype, data);
  1937. if(tasktype.associationType.value === 'other' && tasktype.carryingCourses[1].logSwitch && data.gdState.value == 5){
  1938. uni.navigateTo({
  1939. url: `../../pages/transportationProcessRemarks/transportationProcessRemarks?data=${data ? encodeURIComponent(JSON.stringify(data)) : ''}&accountObj=${accountObj ? encodeURIComponent(JSON.stringify(accountObj)) : ''}&currentCode=${this.currentCode}&funName=${funName}&actions=${this.actions ? encodeURIComponent(JSON.stringify(this.actions)) : ''}&imageValue=${this.imageValue ? encodeURIComponent(JSON.stringify(this.imageValue)) : ''}`
  1940. })
  1941. }else{
  1942. this[funName](data, accountObj);
  1943. }
  1944. },
  1945. // 如果不是患者陪检或患者转运或其他
  1946. // 科室签到
  1947. nextDeptOrder_s(data, accountObj) {
  1948. console.log(this.currentCode);
  1949. let ids = [];
  1950. let id = data.id;
  1951. ids.push(id);
  1952. let code = "";
  1953. let postData = {
  1954. ids
  1955. };
  1956. if (accountObj) {
  1957. postData.handover = [accountObj.accountId];
  1958. }
  1959. if (this.currentCode) {
  1960. code = this.currentCode;
  1961. // 科室签到
  1962. post("/workerOrder/orderSign/" + code, postData).then((res) => {
  1963. uni.hideLoading();
  1964. if (res.status == 200) {
  1965. // 跳转到扫描科室
  1966. // type1: res.type, //type类型
  1967. // id: data.id, //工单ID
  1968. // deptCode: code, //二维码
  1969. // dept: res.dept //科室名称
  1970. console.log(data,'工单')
  1971. let endDepts = data.endDepts.map(v=>v.id).toString();
  1972. console.log(endDepts,'smallScreen');
  1973. uni.navigateTo({
  1974. url: `../../pages/scanning_code/scanning_code?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}&endDepts=${endDepts}`,
  1975. });
  1976. } else {
  1977. uni.navigateTo({
  1978. url: `../../pages/scanning_Result/scanning_Result?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&status=600&msg=${res.msg}&isKs=1&qrcode=${this.currentCode}`,
  1979. });
  1980. }
  1981. });
  1982. }
  1983. },
  1984. },
  1985. onShow(){
  1986. this.SMFlag = true;
  1987. let that = this
  1988. // #ifdef APP-PLUS
  1989. uni.$off('scan') // 每次进来先 移除全局自定义事件监听器
  1990. uni.$on('scan', function(data) {
  1991. that.getInspectAndPatientTransform(data)
  1992. })
  1993. // #endif
  1994. },
  1995. onLoad(options) {
  1996. console.log(options, 'options');
  1997. options.associationTypeValue === 'drugsBag' && this.isShowDrugsBatchInfo();
  1998. this.currentUserId = uni.getStorageSync('userData').user.id;
  1999. let id = options.id;
  2000. this.dataId = id;
  2001. if (
  2002. options.associationTypeValue == 'specimen' ||
  2003. options.associationTypeValue == 'specimenPlan'
  2004. ) {
  2005. // 到达 送达 执行中
  2006. this.getSpeTaskConfig();
  2007. this.getInfoBySpecimen(id);
  2008. } else {
  2009. this.getInfo(id);
  2010. }
  2011. if (
  2012. options.associationTypeValue == 'inspect' ||
  2013. options.associationTypeValue == 'patientTransport'
  2014. ) {
  2015. this.getTaskConfig();
  2016. }else if(options.associationTypeValue == 'other'){
  2017. this.getTaskOtherConfig(options);
  2018. }
  2019. // 创建动画
  2020. this.animation = uni.createAnimation({
  2021. duration: 500,
  2022. timingFunction: "ease",
  2023. });
  2024. // #ifdef APP-PLUS
  2025. webHandle("no", "app");
  2026. // #endif
  2027. // #ifdef H5
  2028. webHandle("no", "wx");
  2029. // #endif
  2030. },
  2031. onUnload() {
  2032. // 页面关闭后清空数据
  2033. this.animationData = {};
  2034. },
  2035. };
  2036. </script>
  2037. <style lang="less">
  2038. .Receipt_infopage {
  2039. padding: 0 20rpx;
  2040. overflow: hidden;
  2041. .red {
  2042. color: red !important;
  2043. font-weight: bold !important;
  2044. }
  2045. .green {
  2046. color: #49b856 !important;
  2047. font-weight: bold !important;
  2048. }
  2049. .title {
  2050. font-size: 48rpx;
  2051. margin-top: 24rpx;
  2052. margin-bottom: 24rpx;
  2053. text-align: center;
  2054. }
  2055. .page_item {
  2056. margin-top: 16rpx;
  2057. margin-bottom: 124rpx;
  2058. background: #fff;
  2059. border-radius: 8rpx;
  2060. padding: 0 16rpx;
  2061. border: 2rpx solid #e5e9ed;
  2062. .L {
  2063. width: 40rpx;
  2064. height: 40rpx;
  2065. border-radius: 50%;
  2066. background: #f9fafb;
  2067. position: relative;
  2068. left: -50rpx;
  2069. top: 66rpx;
  2070. }
  2071. .R {
  2072. width: 40rpx;
  2073. height: 40rpx;
  2074. border-radius: 50%;
  2075. background: #f9fafb;
  2076. position: relative;
  2077. float: right;
  2078. right: -50rpx;
  2079. top: 26rpx;
  2080. }
  2081. .starting {
  2082. width: 50rpx;
  2083. height: 50rpx;
  2084. color: #fff;
  2085. background: #49b856;
  2086. display: inline-block;
  2087. border-radius: 50%;
  2088. text-align: center;
  2089. line-height: 46rpx;
  2090. font-size: 32rpx;
  2091. margin-right: 6rpx;
  2092. }
  2093. .End {
  2094. width: 50rpx;
  2095. height: 50rpx;
  2096. color: #fff;
  2097. background: #39b199;
  2098. display: inline-block;
  2099. border-radius: 50%;
  2100. text-align: center;
  2101. line-height: 46rpx;
  2102. font-size: 32rpx;
  2103. margin-right: 6rpx;
  2104. }
  2105. .page_item_top {
  2106. height: 86rpx;
  2107. border-bottom: 2rpx dashed #666;
  2108. padding: 0 16rpx;
  2109. .page_item_top_L {
  2110. height: 100%;
  2111. float: left;
  2112. line-height: 88rpx;
  2113. .emergencys {
  2114. background: #ff3b53 !important;
  2115. width: 124rpx !important;
  2116. }
  2117. .emergency {
  2118. background: #ff3b53 !important;
  2119. }
  2120. .emergency1 {
  2121. background: #49b856 !important;
  2122. }
  2123. .page_item_cont_start {
  2124. text-align: center;
  2125. height: 44rpx;
  2126. width: 104rpx;
  2127. line-height: 44rpx;
  2128. border-radius: 8rpx;
  2129. background: #49b856;
  2130. color: #fff;
  2131. display: inline-block;
  2132. font-size: 28rpx;
  2133. .cubeic-star {
  2134. margin-right: 8rpx;
  2135. }
  2136. }
  2137. .L_time {
  2138. color: #6cc076;
  2139. font-size: 32rpx;
  2140. }
  2141. .L_text {
  2142. font-size: 32rpx;
  2143. display: inline-block;
  2144. font-weight: 700;
  2145. margin-right: 16rpx;
  2146. }
  2147. }
  2148. .page_item_top_R {
  2149. height: 60rpx;
  2150. float: right;
  2151. padding-top: 20rpx;
  2152. font-size: 32rpx;
  2153. position: absolute;
  2154. right: 50rpx;
  2155. .L_iocn {
  2156. display: inline-block;
  2157. height: 52rpx;
  2158. line-height: 48rpx;
  2159. color: rgb(7, 134, 60);
  2160. font-size: 36rpx;
  2161. font-weight: 700;
  2162. }
  2163. }
  2164. }
  2165. .page_item_cont {
  2166. min-height: 180rpx;
  2167. // max-height: 424rpx;
  2168. padding: 0 16rpx;
  2169. text-align: left;
  2170. position: relative;
  2171. .text_big {
  2172. font-size: 32rpx;
  2173. position: absolute;
  2174. right: 16rpx;
  2175. font-weight: 700;
  2176. margin-top: 10rpx;
  2177. }
  2178. .text_big2 {
  2179. font-size: 32rpx;
  2180. position: absolute;
  2181. right: 16rpx;
  2182. font-weight: 700;
  2183. }
  2184. .line {
  2185. height: 20rpx;
  2186. width: 2rpx;
  2187. border-left: 2rpx solid #666;
  2188. position: absolute;
  2189. top: 82rpx;
  2190. left: 40rpx;
  2191. }
  2192. .lines {
  2193. height: 40%;
  2194. width: 2rpx;
  2195. border-left: 2rpx solid #666;
  2196. position: absolute;
  2197. top: 23%;
  2198. left: 36rpx;
  2199. }
  2200. .page_item_cont_T {
  2201. padding-top: 28rpx;
  2202. font-size: 28rpx;
  2203. .page_item_cont_title {
  2204. height: 100%;
  2205. font-size: 32rpx;
  2206. }
  2207. }
  2208. .page_item_cont_B {
  2209. padding-top: 28rpx;
  2210. margin-bottom: 28rpx;
  2211. .page_item_cont_title {
  2212. height: 60rpx;
  2213. font-size: 32rpx;
  2214. }
  2215. .page_item_cont_title1 {
  2216. height: 60rpx;
  2217. line-height: 60rpx;
  2218. font-size: 32rpx;
  2219. padding-left: 64rpx;
  2220. }
  2221. }
  2222. }
  2223. .page_item_foot {
  2224. border-top: 2rpx dashed #666;
  2225. border-bottom: 2rpx dashed #666;
  2226. padding: 28rpx 16rpx;
  2227. text-align: left;
  2228. .page_item_foot_text {
  2229. font-size: 32rpx;
  2230. margin-bottom: 20rpx;
  2231. .text1 {
  2232. color: rgb(102, 102, 102);
  2233. }
  2234. .text2 {
  2235. float: right;
  2236. font-weight: 700;
  2237. }
  2238. }
  2239. }
  2240. .page_item_info {
  2241. padding: 20rpx 16rpx;
  2242. text-align: left;
  2243. line-height: 60rpx;
  2244. font-size: 32rpx;
  2245. .spe_list {
  2246. padding: 32rpx 0;
  2247. border-top: 2rpx solid #666;
  2248. .page_item_info_title {
  2249. color: #666;
  2250. }
  2251. }
  2252. .page_item_info_title {
  2253. font-weight: 700;
  2254. }
  2255. .text {
  2256. float: right;
  2257. font-weight: 700;
  2258. .page_item_info_txt {
  2259. color: #49b856;
  2260. margin-left: 8rpx;
  2261. margin-right: 8rpx;
  2262. }
  2263. }
  2264. }
  2265. #infos {
  2266. height: 0;
  2267. overflow: hidden;
  2268. }
  2269. .page_item_infos {
  2270. padding-top: 20rpx;
  2271. padding-bottom: 20rpx;
  2272. border-bottom: 2rpx dashed #666;
  2273. .page_item_info2 {
  2274. text-align: left;
  2275. line-height: 60rpx;
  2276. font-size: 32rpx;
  2277. padding-left: 16rpx;
  2278. .page_item_foot_text {
  2279. font-size: 32rpx;
  2280. margin-bottom: 20rpx;
  2281. &:last-of-type {
  2282. margin-bottom: 0;
  2283. }
  2284. .text1 {
  2285. color: rgb(102, 102, 102);
  2286. }
  2287. .text2 {
  2288. float: right;
  2289. font-weight: 700;
  2290. }
  2291. .btn {
  2292. height: 66rpx;
  2293. width: 132rpx;
  2294. margin: 0 auto;
  2295. background-color: #49b856;
  2296. color: #fff;
  2297. border-radius: 8rpx;
  2298. font-size: 32rpx;
  2299. margin-top: 20rpx;
  2300. text-align: center;
  2301. }
  2302. }
  2303. }
  2304. }
  2305. #pulldown {
  2306. color: #49b856;
  2307. font-size: 36rpx;
  2308. height: 60rpx;
  2309. text-align: center;
  2310. .cubeic-pulldown {
  2311. font-size: 48rpx;
  2312. position: relative;
  2313. bottom: 6rpx;
  2314. }
  2315. }
  2316. #pullup {
  2317. color: #49b856;
  2318. font-size: 36rpx;
  2319. height: 60rpx;
  2320. text-align: center;
  2321. .cubeic-pullup {
  2322. font-size: 48rpx;
  2323. position: relative;
  2324. top: 12rpx;
  2325. }
  2326. }
  2327. }
  2328. .foot_btn2 {
  2329. position: fixed;
  2330. bottom: 0;
  2331. right: 20rpx;
  2332. left: 20rpx;
  2333. line-height: 66rpx;
  2334. height: 100rpx;
  2335. border-top: 2rpx solid #e5e9ed;
  2336. background: #f9fafb;
  2337. display: flex;
  2338. justify-content: space-between;
  2339. .btn2,
  2340. .btn3 {
  2341. height: 66rpx;
  2342. flex: 1;
  2343. margin: 0 1%;
  2344. background-image: linear-gradient(to right, #72c172, #3bb197);
  2345. color: #fff;
  2346. border-radius: 8rpx;
  2347. font-size: 28rpx;
  2348. margin-top: 8rpx;
  2349. margin-bottom: 8rpx;
  2350. text-align: center;
  2351. }
  2352. }
  2353. }
  2354. </style>