receipt_infopage.vue 90 KB

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