receipt_infopage.vue 90 KB

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