receipt_infopage.vue 89 KB

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