receipt_infopage.vue 88 KB

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