receipt_infopage.vue 87 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463
  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">{{infoDATA.taskType.closeOrderCheckDept == 1 ? '扫描科室码关闭' : '特殊情况关闭'}}</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">{{infoDATA.taskType.closeOrderCheckDept == 1 ? '扫描科室码关闭' : '特殊情况关闭'}}</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.specialCloseClickValidate(content);
  1530. }).catch(err => {
  1531. this.SMFlag = true;
  1532. });
  1533. },
  1534. // 校验科室
  1535. specialCloseClickValidate(content){
  1536. uni.showLoading({
  1537. title: "加载中",
  1538. mask: true,
  1539. });
  1540. post("/workerOrder/scanCheck", {
  1541. type: 'workOrderDept', //匹配工单的起点科室或终点科室
  1542. workOrderId: this.dataId,
  1543. scanCode: content,
  1544. }).then((result) => {
  1545. uni.hideLoading();
  1546. if (result.state == 200) {
  1547. this.specialCloseClickText(content);
  1548. } else {
  1549. uni.showToast({
  1550. icon: "none",
  1551. title: result.msg || "接口获取数据失败!",
  1552. });
  1553. }
  1554. });
  1555. },
  1556. // 特殊情况填写内容
  1557. specialCloseClickText(content) {
  1558. this.deptCodeScan = content;
  1559. this.textareaFlag = true;
  1560. this.models = {
  1561. title: "特殊情况关闭",
  1562. disjunctor: true,
  1563. content: "",
  1564. icon: "",
  1565. operate: {
  1566. cancel: "取消",
  1567. },
  1568. };
  1569. },
  1570. ok() {
  1571. uni.showLoading({
  1572. title: "加载中",
  1573. mask: true,
  1574. });
  1575. post("/workerOrder/specialCaseClose", {
  1576. workOrderId: this.dataId,
  1577. reason: this.textareaText.trim(),
  1578. deptCode: this.deptCodeScan || undefined,
  1579. }).then((result) => {
  1580. this.models.disjunctor = false;
  1581. this.textareaFlag = false;
  1582. this.textareaText = "";
  1583. if (result.state == 200) {
  1584. uni.hideLoading();
  1585. this.models = {
  1586. disjunctor: true,
  1587. content: "工单关闭成功",
  1588. icon: "success",
  1589. operate: {
  1590. know: "返回",
  1591. },
  1592. };
  1593. } else {
  1594. uni.hideLoading();
  1595. this.models = {
  1596. disjunctor: true,
  1597. content: result.msg || '工单关闭失败',
  1598. icon: "error",
  1599. operate: {
  1600. know: "返回",
  1601. },
  1602. };
  1603. }
  1604. });
  1605. },
  1606. cancel() {
  1607. this.models.disjunctor = false;
  1608. this.textareaFlag = false;
  1609. this.textareaText = "";
  1610. },
  1611. // 点击可查看检查详情
  1612. show(type) {
  1613. this.showType = type;
  1614. if (type === "show") {
  1615. //展开
  1616. // 计算高度
  1617. const query = uni.createSelectorQuery().in(this);
  1618. query
  1619. .selectAll(".page_item_infos")
  1620. .boundingClientRect((data) => {
  1621. let len = data.reduce((prev, current) => {
  1622. return prev + current.height;
  1623. }, 0);
  1624. this.animation.height(len).step();
  1625. this.animationData = this.animation.export();
  1626. })
  1627. .exec();
  1628. } else if (type === "hiddle") {
  1629. this.animation.height(0).step();
  1630. this.animationData = this.animation.export();
  1631. }
  1632. },
  1633. // 抢单->返回
  1634. know() {
  1635. this.models.disjunctor = false;
  1636. uni.navigateTo({
  1637. url: "../receiptpage/receiptpage",
  1638. });
  1639. },
  1640. // 抢单
  1641. showAlert() {
  1642. get("/workerOrder/takeOrder/" + this.infoDATA.id).then((res) => {
  1643. if (res.status == 200) {
  1644. this.models = {
  1645. disjunctor: true,
  1646. content: "接单成功",
  1647. icon: "success",
  1648. operate: {
  1649. know: "返回",
  1650. },
  1651. };
  1652. } else {
  1653. uni.showToast({
  1654. icon: "none",
  1655. title: res.msg || "接口获取数据失败!",
  1656. });
  1657. }
  1658. });
  1659. },
  1660. // 请求详细页面的数据(除标本轮巡和标本配送)
  1661. getInfo(id) {
  1662. uni.showLoading({
  1663. title: "加载中",
  1664. mask: true,
  1665. });
  1666. get("/api/fetchData/workOrder/" + id).then((res) => {
  1667. uni.hideLoading();
  1668. if (res.status == 200) {
  1669. this.infoDATA = res.data;
  1670. // 计算高度
  1671. setTimeout(() => {
  1672. const query = uni.createSelectorQuery().in(this);
  1673. query
  1674. .selectAll(".page_item_infos")
  1675. .boundingClientRect((data) => {
  1676. let len = data.reduce((prev, current) => {
  1677. return prev + current.height;
  1678. }, 0);
  1679. this.animation.height(len).step();
  1680. this.animationData = this.animation.export();
  1681. })
  1682. .exec();
  1683. }, 500)
  1684. } else {
  1685. uni.showToast({
  1686. icon: "none",
  1687. title: res.msg || "接口获取数据失败!",
  1688. });
  1689. }
  1690. });
  1691. },
  1692. // 请求详细页面的数据
  1693. getInfoBySpecimen(id) {
  1694. uni.showLoading({
  1695. title: "加载中",
  1696. mask: true,
  1697. });
  1698. post("/api/getWechatItem", {
  1699. id
  1700. }).then((res) => {
  1701. uni.hideLoading();
  1702. if (res.state == 200) {
  1703. this.actualDelivery = res.actualDelivery;
  1704. this.infoDATA = res.data;
  1705. // 计算高度
  1706. setTimeout(() => {
  1707. const query = uni.createSelectorQuery().in(this);
  1708. query
  1709. .selectAll(".page_item_infos")
  1710. .boundingClientRect((data) => {
  1711. let len = data.reduce((prev, current) => {
  1712. return prev + current.height;
  1713. }, 0);
  1714. this.animation.height(len).step();
  1715. this.animationData = this.animation.export();
  1716. })
  1717. .exec();
  1718. }, 500)
  1719. } else {
  1720. uni.showToast({
  1721. icon: "none",
  1722. title: res.msg || "接口获取数据失败!",
  1723. });
  1724. }
  1725. });
  1726. },
  1727. // 获取标本是否转派配置
  1728. getSpeTaskConfig(){
  1729. let postData = {
  1730. idx: 0,
  1731. sum: 10,
  1732. taskType: {
  1733. simpleQuery: true,
  1734. hosId: {
  1735. id: this.hosId
  1736. },
  1737. associationType: {
  1738. key:"association_types",
  1739. value: "specimen"
  1740. }
  1741. }
  1742. };
  1743. post("/simple/data/fetchDataList/taskType", postData).then((result) => {
  1744. if (result.status == 200) {
  1745. this.tasktype = result.list[0] || {};
  1746. this.getSpeConfig();
  1747. }
  1748. });
  1749. },
  1750. // 获取配置
  1751. getSpeConfig() {
  1752. let postData = {
  1753. idx: 0,
  1754. sum: 10,
  1755. taskTypeConfig: {
  1756. taskTypeDTO: {
  1757. hosId: {
  1758. id: this.hosId
  1759. },
  1760. associationType: this.tasktype.associationType
  1761. }
  1762. }
  1763. };;
  1764. post("/simple/data/fetchDataList/taskTypeConfig", postData).then((result) => {
  1765. if (result.status == 200) {
  1766. this.configs = result.list[0] || {};
  1767. this.sPehandoverOrder = this.configs.handoverOrder || null;
  1768. }
  1769. });
  1770. },
  1771. // 获取检查页面控制开关
  1772. getTaskConfig(){
  1773. post("/simple/data/fetchDataList/taskTypeConfig", {
  1774. "idx": 0,
  1775. "sum": 10,
  1776. "taskTypeConfig": {
  1777. "taskTypeDTO": {
  1778. "hosId": {
  1779. "id": this.hosId
  1780. },
  1781. "associationType": {
  1782. "key": "association_types",
  1783. "value": "inspect"
  1784. }
  1785. }
  1786. }
  1787. }).then((result) => {
  1788. if (result.status == 200) {
  1789. if(result.list && result.list[0]){
  1790. this.multiplayerMode = result.list[0].multiplayerMode;
  1791. this.handoverOrder = result.list[0].handoverOrder;
  1792. this.hideInspectScan = result.list[0].hideInspectScan;
  1793. }else{
  1794. this.multiplayerMode = 0;
  1795. this.handoverOrder = 0;
  1796. this.hideInspectScan = 0;
  1797. }
  1798. } else {
  1799. this.multiplayerMode = 0;
  1800. this.handoverOrder = 0;
  1801. this.hideInspectScan = 0;
  1802. }
  1803. });
  1804. },
  1805. // 获取临床服务页面控制开关
  1806. getTaskOtherConfig(options){
  1807. post("/simple/data/fetchDataList/taskTypeConfig", {
  1808. "idx": 0,
  1809. "sum": 10,
  1810. "taskTypeConfig": {
  1811. "hosId": this.hosId,
  1812. "associationType": options.associationTypeId,
  1813. }
  1814. }).then((result) => {
  1815. if (result.status == 200) {
  1816. if(result.list && result.list[0]){
  1817. this.clinicalMultiplayerMode = result.list[0].clinicalMultiplayerMode;
  1818. let clinicalTaskIds = result.list[0].clinicalTaskIds ? result.list[0].clinicalTaskIds.split(',') : [] ;
  1819. this.clinicalTaskIdsFlag = clinicalTaskIds.includes(options.taskTypeId);
  1820. console.log(clinicalTaskIds, options.taskTypeId)
  1821. }else{
  1822. this.clinicalMultiplayerMode = 0;
  1823. this.clinicalTaskIdsFlag = false;
  1824. }
  1825. } else {
  1826. this.clinicalMultiplayerMode = 0;
  1827. this.clinicalTaskIdsFlag = false;
  1828. }
  1829. });
  1830. },
  1831. // 获取是否需要选择陪检方式
  1832. getInspectAndPatientTransform(content){
  1833. let sData = this.infoDATA
  1834. let sType = null
  1835. if(((!sData.worker)||(sData.worker&&sData.worker.id == this.currentUserId))&&sData.gdState.value != 6&&sData.gdState.value != 7&&sData.gdState.value != 11){
  1836. if(sData.gdState.value != 2 &&
  1837. sData.taskType.associationType.value != 'jPBag' &&
  1838. sData.taskType.associationType.value != 'drugsBag' &&
  1839. sData.taskType.associationType.value != 'specimen' &&
  1840. sData.taskType.associationType.value != 'specimenPlan' &&
  1841. sData.taskType.associationType.value != 'ordinary' &&
  1842. !(sData.taskType.associationType.value == 'other' && (sData.gdState.value == 4 && sData.taskType.carryingCourses[0].actionsSwitch || sData.gdState.value == 5 && sData.taskType.carryingCourses[1].actionsSwitch))){
  1843. sType = 1
  1844. }
  1845. }
  1846. if(sData.gdState.value != 2 &&
  1847. sData.taskType.associationType.value != 'patientTransport' &&
  1848. sData.taskType.associationType.value != 'inspect' &&
  1849. sData.taskType.associationType.value != 'other' &&
  1850. sData.taskType.associationType.value != 'ordinary'){
  1851. sType = 2
  1852. }
  1853. // 患者陪检,患者其他服务,工单状态是待到达
  1854. if((sData.taskType.associationType.value === 'inspect' || sData.taskType.associationType.value === 'patientTransport') && sData.gdState.value == 4){
  1855. const postData = {
  1856. "idx":0,
  1857. "sum":1,
  1858. "taskTypeConfig":{
  1859. "taskTypeDTO":{
  1860. "hosId": {"id": this.hosId},
  1861. "associationType": {
  1862. "key": "association_types",
  1863. "value":"inspect",
  1864. },
  1865. },
  1866. },
  1867. };
  1868. uni.showLoading({
  1869. mask: true,
  1870. title: '加载中'
  1871. })
  1872. post("/simple/data/fetchDataList/taskTypeConfig", postData).then((res) => {
  1873. console.log(res)
  1874. if (res.status == 200) {
  1875. res.list = res.list || [];
  1876. if(res.list[0] && res.list[0].signTypeIds){
  1877. // 如果开启
  1878. const postData = {
  1879. "idx":0,
  1880. "sum":9999,
  1881. "workOrderInspectScore":{
  1882. "hosId": this.hosId,
  1883. },
  1884. };
  1885. post("/simple/data/fetchDataList/workOrderInspectScore", postData).then((res) => {
  1886. console.log(res)
  1887. uni.hideLoading();
  1888. if (res.status == 200) {
  1889. res.list = res.list || [];
  1890. let radioInspectionDistanceItem = res.list.map(v => ({id: v.id + "__" + v.inspectMode, inspectMode: v.inspectMode}));
  1891. console.log(radioInspectionDistanceItem)
  1892. this.models4 = {
  1893. disjunctor: true,
  1894. title: "请选择陪检方式",
  1895. radioInspectionDistanceItem,
  1896. icon: "",
  1897. operate: {
  1898. ok: "确定",
  1899. cancel: "取消",
  1900. },
  1901. };
  1902. } else {
  1903. uni.showToast({
  1904. icon: "none",
  1905. title: res.msg || "接口获取数据失败!",
  1906. });
  1907. }
  1908. })
  1909. }else{
  1910. uni.hideLoading();
  1911. this.Scan_ss(content,sData,sType);
  1912. }
  1913. } else {
  1914. uni.hideLoading();
  1915. uni.showToast({
  1916. icon: "none",
  1917. title: res.msg || "接口获取数据失败!",
  1918. });
  1919. }
  1920. })
  1921. }else{
  1922. this.Scan_ss(content,sData,sType);
  1923. }
  1924. },
  1925. Scan_ss(content, data, type) {
  1926. if (!this.SMFlag) {
  1927. return;
  1928. }
  1929. this.SMFlag = false;
  1930. this.currentData = data;
  1931. if(content){
  1932. content = content.replace('\n','')
  1933. uni.showLoading({
  1934. title: "加载中",
  1935. mask: true,
  1936. });
  1937. //检验二维码的有效性
  1938. post("/dept/scanning", {
  1939. content: content,
  1940. taskTypeId: data.taskType.id,
  1941. gdState: data.gdState.id,
  1942. }).then((result) => {
  1943. this.SMFlag = true;
  1944. this.currentCode = result.code;
  1945. if (result.state == 200 || result.state == 201) {
  1946. if (result.account) {
  1947. if (type == 1) {
  1948. this.isOpenTransportationProcessRemarks(this.currentData, {
  1949. account: result.account,
  1950. accountName: result.name,
  1951. accountId: result.id,
  1952. }, 'nextDeptOrder_ss');
  1953. } else if (type == 2) {
  1954. this.nextDeptOrder_s(this.currentData, {
  1955. account: result.account,
  1956. accountName: result.name,
  1957. accountId: result.id,
  1958. });
  1959. }
  1960. } else {
  1961. if (type == 1) {
  1962. this.isOpenTransportationProcessRemarks(this.currentData, undefined, 'nextDeptOrder_ss');
  1963. } else if (type == 2) {
  1964. this.nextDeptOrder_s(this.currentData);
  1965. }
  1966. }
  1967. } else if (result.state == '0000') {
  1968. uni.hideLoading();
  1969. // this.showSelectAccount(); //yeye
  1970. } else {
  1971. uni.hideLoading();
  1972. uni.showToast({
  1973. icon: "none",
  1974. title: result.info || "接口获取数据失败!",
  1975. });
  1976. }
  1977. });
  1978. }
  1979. },
  1980. // 其他临床服务-运输过程-终点科室是否开通备注填写
  1981. isOpenTransportationProcessRemarks(data, accountObj, funName){
  1982. const tasktype = data.taskType;
  1983. console.log(tasktype, data);
  1984. if(tasktype.associationType.value === 'other' && tasktype.carryingCourses[1].logSwitch && data.gdState.value == 5){
  1985. uni.navigateTo({
  1986. 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)) : ''}`
  1987. })
  1988. }else{
  1989. this[funName](data, accountObj);
  1990. }
  1991. },
  1992. // 如果不是患者陪检或患者转运或其他
  1993. // 科室签到
  1994. nextDeptOrder_s(data, accountObj) {
  1995. console.log(this.currentCode);
  1996. let ids = [];
  1997. let id = data.id;
  1998. ids.push(id);
  1999. let code = "";
  2000. let postData = {
  2001. ids
  2002. };
  2003. if (accountObj) {
  2004. postData.handover = [accountObj.accountId];
  2005. }
  2006. if (this.currentCode) {
  2007. code = this.currentCode;
  2008. // 科室签到
  2009. post("/workerOrder/orderSign/" + code, postData).then((res) => {
  2010. uni.hideLoading();
  2011. if (res.status == 200) {
  2012. // 跳转到扫描科室
  2013. // type1: res.type, //type类型
  2014. // id: data.id, //工单ID
  2015. // deptCode: code, //二维码
  2016. // dept: res.dept //科室名称
  2017. console.log(data,'工单')
  2018. let endDepts = data.endDepts.map(v=>v.id).toString();
  2019. console.log(endDepts,'smallScreen');
  2020. uni.navigateTo({
  2021. 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}`,
  2022. });
  2023. } else {
  2024. uni.navigateTo({
  2025. 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}`,
  2026. });
  2027. }
  2028. });
  2029. }
  2030. },
  2031. },
  2032. onShow(){
  2033. this.SMFlag = true;
  2034. let that = this
  2035. // #ifdef APP-PLUS
  2036. uni.$off('scan') // 每次进来先 移除全局自定义事件监听器
  2037. uni.$on('scan', function(data) {
  2038. that.getInspectAndPatientTransform(data)
  2039. })
  2040. // #endif
  2041. },
  2042. onLoad(options) {
  2043. console.log(options, 'options');
  2044. options.associationTypeValue === 'drugsBag' && this.isShowDrugsBatchInfo();
  2045. this.currentUserId = uni.getStorageSync('userData').user.id;
  2046. let id = options.id;
  2047. this.dataId = id;
  2048. if (
  2049. options.associationTypeValue == 'specimen' ||
  2050. options.associationTypeValue == 'specimenPlan'
  2051. ) {
  2052. // 到达 送达 执行中
  2053. this.getSpeTaskConfig();
  2054. this.getInfoBySpecimen(id);
  2055. } else {
  2056. this.getInfo(id);
  2057. }
  2058. if (
  2059. options.associationTypeValue == 'inspect' ||
  2060. options.associationTypeValue == 'patientTransport'
  2061. ) {
  2062. this.getTaskConfig();
  2063. }else if(options.associationTypeValue == 'other'){
  2064. this.getTaskOtherConfig(options);
  2065. }
  2066. // 创建动画
  2067. this.animation = uni.createAnimation({
  2068. duration: 500,
  2069. timingFunction: "ease",
  2070. });
  2071. // #ifdef APP-PLUS
  2072. webHandle("no", "app");
  2073. // #endif
  2074. // #ifdef H5
  2075. webHandle("no", "wx");
  2076. // #endif
  2077. },
  2078. onUnload() {
  2079. // 页面关闭后清空数据
  2080. this.animationData = {};
  2081. },
  2082. };
  2083. </script>
  2084. <style lang="less">
  2085. .Receipt_infopage {
  2086. padding: 0 20rpx;
  2087. overflow: hidden;
  2088. .red {
  2089. color: red !important;
  2090. font-weight: bold !important;
  2091. }
  2092. .green {
  2093. color: #49b856 !important;
  2094. font-weight: bold !important;
  2095. }
  2096. .title {
  2097. font-size: 48rpx;
  2098. margin-top: 24rpx;
  2099. margin-bottom: 24rpx;
  2100. text-align: center;
  2101. }
  2102. .page_item {
  2103. margin-top: 16rpx;
  2104. margin-bottom: 124rpx;
  2105. background: #fff;
  2106. border-radius: 8rpx;
  2107. padding: 0 16rpx;
  2108. border: 2rpx solid #e5e9ed;
  2109. .L {
  2110. width: 40rpx;
  2111. height: 40rpx;
  2112. border-radius: 50%;
  2113. background: #f9fafb;
  2114. position: relative;
  2115. left: -50rpx;
  2116. top: 66rpx;
  2117. }
  2118. .R {
  2119. width: 40rpx;
  2120. height: 40rpx;
  2121. border-radius: 50%;
  2122. background: #f9fafb;
  2123. position: relative;
  2124. float: right;
  2125. right: -50rpx;
  2126. top: 26rpx;
  2127. }
  2128. .starting {
  2129. width: 50rpx;
  2130. height: 50rpx;
  2131. color: #fff;
  2132. background: #49b856;
  2133. display: inline-block;
  2134. border-radius: 50%;
  2135. text-align: center;
  2136. line-height: 46rpx;
  2137. font-size: 32rpx;
  2138. margin-right: 6rpx;
  2139. }
  2140. .End {
  2141. width: 50rpx;
  2142. height: 50rpx;
  2143. color: #fff;
  2144. background: #39b199;
  2145. display: inline-block;
  2146. border-radius: 50%;
  2147. text-align: center;
  2148. line-height: 46rpx;
  2149. font-size: 32rpx;
  2150. margin-right: 6rpx;
  2151. }
  2152. .page_item_top {
  2153. height: 86rpx;
  2154. border-bottom: 2rpx dashed #666;
  2155. padding: 0 16rpx;
  2156. .page_item_top_L {
  2157. height: 100%;
  2158. float: left;
  2159. line-height: 88rpx;
  2160. .emergencys {
  2161. background: #ff3b53 !important;
  2162. width: 124rpx !important;
  2163. }
  2164. .emergency {
  2165. background: #ff3b53 !important;
  2166. }
  2167. .emergency1 {
  2168. background: #49b856 !important;
  2169. }
  2170. .page_item_cont_start {
  2171. text-align: center;
  2172. height: 44rpx;
  2173. width: 104rpx;
  2174. line-height: 44rpx;
  2175. border-radius: 8rpx;
  2176. background: #49b856;
  2177. color: #fff;
  2178. display: inline-block;
  2179. font-size: 28rpx;
  2180. .cubeic-star {
  2181. margin-right: 8rpx;
  2182. }
  2183. }
  2184. .L_time {
  2185. color: #6cc076;
  2186. font-size: 32rpx;
  2187. }
  2188. .L_text {
  2189. font-size: 32rpx;
  2190. display: inline-block;
  2191. font-weight: 700;
  2192. margin-right: 16rpx;
  2193. }
  2194. }
  2195. .page_item_top_R {
  2196. height: 60rpx;
  2197. float: right;
  2198. padding-top: 20rpx;
  2199. font-size: 32rpx;
  2200. position: absolute;
  2201. right: 50rpx;
  2202. .L_iocn {
  2203. display: inline-block;
  2204. height: 52rpx;
  2205. line-height: 48rpx;
  2206. color: rgb(7, 134, 60);
  2207. font-size: 36rpx;
  2208. font-weight: 700;
  2209. }
  2210. }
  2211. }
  2212. .page_item_cont {
  2213. min-height: 180rpx;
  2214. // max-height: 424rpx;
  2215. padding: 0 16rpx;
  2216. text-align: left;
  2217. position: relative;
  2218. .text_big {
  2219. font-size: 32rpx;
  2220. position: absolute;
  2221. right: 16rpx;
  2222. font-weight: 700;
  2223. margin-top: 10rpx;
  2224. }
  2225. .text_big2 {
  2226. font-size: 32rpx;
  2227. position: absolute;
  2228. right: 16rpx;
  2229. font-weight: 700;
  2230. }
  2231. .line {
  2232. height: 20rpx;
  2233. width: 2rpx;
  2234. border-left: 2rpx solid #666;
  2235. position: absolute;
  2236. top: 82rpx;
  2237. left: 40rpx;
  2238. }
  2239. .lines {
  2240. height: 40%;
  2241. width: 2rpx;
  2242. border-left: 2rpx solid #666;
  2243. position: absolute;
  2244. top: 23%;
  2245. left: 36rpx;
  2246. }
  2247. .page_item_cont_T {
  2248. padding-top: 28rpx;
  2249. font-size: 28rpx;
  2250. .page_item_cont_title {
  2251. height: 100%;
  2252. font-size: 32rpx;
  2253. }
  2254. }
  2255. .page_item_cont_B {
  2256. padding-top: 28rpx;
  2257. margin-bottom: 28rpx;
  2258. .page_item_cont_title {
  2259. height: 60rpx;
  2260. font-size: 32rpx;
  2261. }
  2262. .page_item_cont_title1 {
  2263. height: 60rpx;
  2264. line-height: 60rpx;
  2265. font-size: 32rpx;
  2266. padding-left: 64rpx;
  2267. }
  2268. }
  2269. }
  2270. .page_item_foot {
  2271. border-top: 2rpx dashed #666;
  2272. border-bottom: 2rpx dashed #666;
  2273. padding: 28rpx 16rpx;
  2274. text-align: left;
  2275. .page_item_foot_text {
  2276. font-size: 32rpx;
  2277. margin-bottom: 20rpx;
  2278. .text1 {
  2279. color: rgb(102, 102, 102);
  2280. }
  2281. .text2 {
  2282. float: right;
  2283. font-weight: 700;
  2284. }
  2285. }
  2286. }
  2287. .page_item_info {
  2288. padding: 20rpx 16rpx;
  2289. text-align: left;
  2290. line-height: 60rpx;
  2291. font-size: 32rpx;
  2292. .spe_list {
  2293. padding: 32rpx 0;
  2294. border-top: 2rpx solid #666;
  2295. .page_item_info_title {
  2296. color: #666;
  2297. }
  2298. }
  2299. .page_item_info_title {
  2300. font-weight: 700;
  2301. }
  2302. .text {
  2303. float: right;
  2304. font-weight: 700;
  2305. .page_item_info_txt {
  2306. color: #49b856;
  2307. margin-left: 8rpx;
  2308. margin-right: 8rpx;
  2309. }
  2310. }
  2311. }
  2312. #infos {
  2313. height: 0;
  2314. overflow: hidden;
  2315. }
  2316. .page_item_infos {
  2317. padding-top: 20rpx;
  2318. padding-bottom: 20rpx;
  2319. border-bottom: 2rpx dashed #666;
  2320. .page_item_info2 {
  2321. text-align: left;
  2322. line-height: 60rpx;
  2323. font-size: 32rpx;
  2324. padding-left: 16rpx;
  2325. .page_item_foot_text {
  2326. font-size: 32rpx;
  2327. margin-bottom: 20rpx;
  2328. &:last-of-type {
  2329. margin-bottom: 0;
  2330. }
  2331. .text1 {
  2332. color: rgb(102, 102, 102);
  2333. }
  2334. .text2 {
  2335. float: right;
  2336. font-weight: 700;
  2337. }
  2338. .btn {
  2339. height: 66rpx;
  2340. width: 132rpx;
  2341. margin: 0 auto;
  2342. background-color: #49b856;
  2343. color: #fff;
  2344. border-radius: 8rpx;
  2345. font-size: 32rpx;
  2346. margin-top: 20rpx;
  2347. text-align: center;
  2348. }
  2349. }
  2350. }
  2351. }
  2352. #pulldown {
  2353. color: #49b856;
  2354. font-size: 36rpx;
  2355. height: 60rpx;
  2356. text-align: center;
  2357. .cubeic-pulldown {
  2358. font-size: 48rpx;
  2359. position: relative;
  2360. bottom: 6rpx;
  2361. }
  2362. }
  2363. #pullup {
  2364. color: #49b856;
  2365. font-size: 36rpx;
  2366. height: 60rpx;
  2367. text-align: center;
  2368. .cubeic-pullup {
  2369. font-size: 48rpx;
  2370. position: relative;
  2371. top: 12rpx;
  2372. }
  2373. }
  2374. }
  2375. .foot_btn2 {
  2376. position: fixed;
  2377. bottom: 0;
  2378. right: 20rpx;
  2379. left: 20rpx;
  2380. line-height: 66rpx;
  2381. height: 100rpx;
  2382. border-top: 2rpx solid #e5e9ed;
  2383. background: #f9fafb;
  2384. display: flex;
  2385. justify-content: space-between;
  2386. .btn2,
  2387. .btn3 {
  2388. height: 66rpx;
  2389. flex: 1;
  2390. margin: 0 1%;
  2391. background-image: linear-gradient(to right, #72c172, #3bb197);
  2392. color: #fff;
  2393. border-radius: 8rpx;
  2394. font-size: 28rpx;
  2395. margin-top: 8rpx;
  2396. margin-bottom: 8rpx;
  2397. text-align: center;
  2398. }
  2399. }
  2400. }
  2401. </style>