receipt_infopage.vue 86 KB

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