receipt_infopage.vue 88 KB

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