scanning_code.vue 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273
  1. <template>
  2. <view class="Scanning_code" v-if="infoDATA.emergencyType">
  3. <view class="Scanning_top">
  4. <view class="Scanning_top_icon">
  5. <text class="cubeic-ok icon_transport transport-duigou"></text>
  6. </view>
  7. <view class="Scanning_top_text">
  8. <view class="text1" v-if="infoDATA.gdState.value != '6'">签到成功</view>
  9. <view class="text1" v-if="infoDATA.gdState.value == '6'">扫描成功</view>
  10. <!-- 工单状态->value -->
  11. <!-- 待抢单-2,待接单-3,带到达-4,待送达-5,待评价-6,已完成-7,执行中-8 -->
  12. <view class="text2">
  13. 您已到达
  14. <text style="font-weight: 600" v-if="
  15. infoType == 'plan-spe-ddd-1' ||
  16. infoType == 'spe-ddd-1' ||
  17. infoType == 'plan-spe-ddd-2' ||
  18. infoType == 'spe-ddd-2' ||
  19. infoType == 'drug-ddd-2' ||
  20. infoType == 'jp-ddd-2'
  21. ">{{ infoDATA.startDept.dept }}</text>
  22. <text style="font-weight: 600"
  23. v-if="infoType == 'drug-dsd-2' || infoType == 'jp-dsd-2'">{{ infoDATA.endDepts[0].dept }}</text>
  24. <text style="font-weight: 600" v-if="
  25. infoType == 'plan-spe-dsd-2' ||
  26. infoType == 'plan-spe-dsd-3' ||
  27. infoType == 'plan-spe-dsd-1' ||
  28. infoType == 'spe-dsd-2' ||
  29. infoType == 'spe-dsd-3' ||
  30. infoType == 'spe-dsd-1' ||
  31. infoType == 'ins-zxz-1' ||
  32. infoType == 'ins-dsd-1' ||
  33. infoType == 'trans-dsd-1' ||
  34. (infoType == 'qt-ddd-1' && infoDATA.gdState.value == '5') ||
  35. infoDATA.gdState.value == '6' ||
  36. infoDATA.gdState.value == '8'
  37. ">{{ DEPT }}</text>
  38. <text v-if="
  39. infoType == 'ins-zxz-1' ||
  40. infoType == 'ins-dsd-1' ||
  41. infoType == 'trans-dsd-1'
  42. ">, 请扫描患者腕带</text>
  43. <text v-if="
  44. infoType == 'plan-spe-ddd-2' ||
  45. infoType == 'spe-ddd-2' ||
  46. infoType == 'spe-ddd-1' ||
  47. infoType == 'plan-spe-ddd-1'
  48. ">,请取标本</text>
  49. <text v-if="infoType == 'drug-ddd-2' || infoType == 'jp-ddd-2'">, 请取药包</text>
  50. <text v-if="infoType == 'drug-dsd-2' || infoType == 'jp-dsd-2'">, 请放置药包</text>
  51. <text v-if="
  52. (infoType == 'spe-dsd-3' && infoDATA.gdState.value == '5') ||
  53. (infoType == 'plan-spe-dsd-3' && infoDATA.gdState.value == '5')
  54. ">,请扫描标本</text>
  55. <text v-if="
  56. infoType == 'plan-spe-dsd-1' ||
  57. infoType == 'plan-spe-dsd-2' ||
  58. (infoType == 'plan-spe-dsd-2' && infoDATA.gdState.value == '5') ||
  59. infoType == 'spe-dsd-1' ||
  60. infoType == 'spe-dsd-2' ||
  61. (infoType == 'spe-dsd-2' && infoDATA.gdState.value == '5')
  62. ">,请放置标本</text>
  63. </view>
  64. <text v-if="infoType == 'qt-dsd-1'">工单已完成。</text>
  65. </view>
  66. </view>
  67. <view class="page_item footerOtherMargin">
  68. <view class="page_item_top">
  69. <view class="page_item_top_L">
  70. <text class="L_text">单号:{{ infoDATA.gdcode }}</text>
  71. <view class="page_item_cont_start emergency1" v-if="infoDATA.emergencyType.value == 1">
  72. <text class="page_item_cont_start_txt">
  73. <text class="cubeic-star icon_transport transport-shiwujiaoxing" style="font-size: 14px"></text>
  74. {{ infoDATA.emergencyType.name }}
  75. </text>
  76. </view>
  77. <view class="page_item_cont_start emergency" v-if="infoDATA.emergencyType.value == 2">
  78. <text class="page_item_cont_start_txt">
  79. <text class="cubeic-star icon_transport transport-shiwujiaoxing" style="font-size: 14px"></text>
  80. {{ infoDATA.emergencyType.name }}
  81. </text>
  82. </view>
  83. <view class="page_item_cont_start emergencys" v-if="infoDATA.emergencyType.value == 3">
  84. <text class="page_item_cont_start_txt">
  85. <text class="cubeic-star icon_transport transport-shiwujiaoxing" style="font-size: 14px"></text>
  86. {{ infoDATA.emergencyType.name }}
  87. </text>
  88. </view>
  89. </view>
  90. <view class="page_item_top_R">
  91. <text class="L_iocn"
  92. v-if="!(infoDATA.gdState.value == '5'&&infoDATA.taskType.associationType.value == 'inspect')">{{ infoDATA.gdState.name }}</text>
  93. <text class="L_iocn"
  94. v-if="infoDATA.gdState.value == '5'&&infoDATA.taskType.associationType.value == 'inspect'">待送回</text>
  95. </view>
  96. <view class="L"></view>
  97. <view class="R"></view>
  98. </view>
  99. <view class="page_item_cont">
  100. <view class="page_item_cont_T">
  101. <view class="page_item_cont_title">
  102. <text> <text class="starting">起</text> 点科室 </text>
  103. <text class="text_big">{{ infoDATA.startDept.dept }}</text>
  104. </view>
  105. </view>
  106. <view class="line"></view>
  107. <view class="page_item_cont_B">
  108. <view class="page_item_cont_title" v-for="(dept, i) in infoDATA.middleDept" :key="'middleDept-' + i">
  109. <view v-if="infoDATA.taskType.associationType.value == 'inspect'">
  110. <text> <text class="End">检</text> 查科室 </text>
  111. <text class="text_big">{{ dept.dept }}</text>
  112. </view>
  113. </view>
  114. <view class="page_item_cont_title" v-for="(dept, i) in infoDATA.endDepts" :key="'endDepts-' + i">
  115. <view v-if="infoDATA.taskType.associationType.value != 'inspect'">
  116. <text> <text class="End">终</text> 点科室 </text>
  117. <text class="text_big">{{ dept.dept }}</text>
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. <view class="page_item_foot">
  123. <view class="page_item_foot_text" v-if="accountObj && (infoType === 'drug-ddd-1' || infoType === 'drug-dsd-1')">
  124. <text class="text1">交接人账号</text>
  125. <text class="text2">{{ accountObj.account }}</text>
  126. </view>
  127. <view class="page_item_foot_text" v-if="accountObj && (infoType === 'drug-ddd-1' || infoType === 'drug-dsd-1')">
  128. <text class="text1">交接人姓名</text>
  129. <text class="text2">{{ accountObj.accountName }}</text>
  130. </view>
  131. <view class="page_item_foot_text">
  132. <text class="text1">状态</text>
  133. <text class="text2"
  134. v-if="!(infoDATA.gdState.value == '5'&&infoDATA.taskType.associationType.value == 'inspect')">{{ infoDATA.gdState.name }}</text>
  135. <text class="text2"
  136. v-if="infoDATA.gdState.value == '5'&&infoDATA.taskType.associationType.value == 'inspect'">待送回</text>
  137. </view>
  138. <view class="page_item_foot_text">
  139. <text class="text1">关联类型</text>
  140. <text class="text2">{{ infoDATA.taskType.associationType.name }}</text>
  141. </view>
  142. <view class="page_item_foot_text">
  143. <text class="text1">任务类型</text>
  144. <text class="text2">{{ infoDATA.taskType.taskName }}</text>
  145. </view>
  146. <view class="page_item_foot_text" v-if="infoDATA.taskType.associationType.value==='inspect'">
  147. <text class="text1">是否半程陪检</text>
  148. <text class="text2">{{ infoDATA.isHalfInspect===1?'是':'否' }}</text>
  149. </view>
  150. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '2'">
  151. <text class="text1">预计响应时间</text>
  152. <text class="text2">{{ infoDATA.estimeResponseTime || 0 }}</text>
  153. </view>
  154. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '5'">
  155. <text class="text1" v-if="!(infoDATA.taskType.associationType.value == 'inspect')">预计送达时间</text>
  156. <text class="text1" v-if="infoDATA.taskType.associationType.value == 'inspect'">预计送回时间</text>
  157. <text class="text2">{{ infoDATA.estimeCompleteTime || 0 }}</text>
  158. </view>
  159. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '4'">
  160. <text class="text1">预计到达时间</text>
  161. <text class="text2">{{ infoDATA.estimateArriveTime || 0 }}</text>
  162. </view>
  163. <view class="page_item_foot_text">
  164. <text class="text1">创建时间</text>
  165. <text class="text2">{{ infoDATA.startTime }}</text>
  166. </view>
  167. <view class="page_item_foot_text" v-if="
  168. infoDATA.taskType.associationType.value == 'inspect' ||
  169. infoDATA.taskType.associationType.value == 'patientTransport'
  170. ">
  171. <text class="text1">携带设备</text>
  172. <text class="text2">{{ infoDATA.goods || "暂无" }}</text>
  173. </view>
  174. <view class="page_item_foot_text" v-if="
  175. infoDATA.taskType.associationType.value == 'inspect' ||
  176. infoDATA.taskType.associationType.value == 'patientTransport'
  177. ">
  178. <text class="text1">患者姓名</text>
  179. <text class="text2">{{ infoDATA.patient.patientName }}({{
  180. infoDATA.patient.patientCode
  181. }})</text>
  182. </view>
  183. </view>
  184. <!-- 药包 -->
  185. <view class="page_item_info" v-if="infoDATA.taskType.associationType.value == 'drugsBag'">
  186. <text class="page_item_info_title">药包信息</text>
  187. <text class="text">#{{ infoDATA.drugs.packid }}</text>
  188. </view>
  189. <!-- 标本 送达-->
  190. <view class="page_item_info" v-if="
  191. infoDATA.taskType.associationType.value == 'specimen' ||
  192. infoDATA.taskType.associationType.value == 'specimenPlan'
  193. ">
  194. <text class="page_item_info_title">标本信息</text>
  195. <!-- <text class="text" v-if="infoType=='plan-spe-ddd-1'||infoType=='plan-spe-dsd-2'||infoType=='plan-spe-dsd-3'&&infoDATA.gdState.value=='5'||infoType=='spe-ddd-1'||infoType=='spe-dsd-2'||infoType=='spe-dsd-3'&&infoDATA.gdState.value=='5'"> -->
  196. <!-- <text class="text" v-if="infoType=='plan-spe-ddd-1'||infoType=='plan-spe-dsd-2'||infoType=='plan-spe-dsd-3'&&infoDATA.gdState.value=='5'||infoType=='spe-ddd-1'||infoType=='spe-dsd-2'"> -->
  197. <text class="text" v-if="
  198. infoType == 'plan-spe-ddd-1' ||
  199. infoType == 'plan-spe-dsd-2' ||
  200. infoType == 'spe-ddd-1' ||
  201. infoType == 'spe-dsd-2'
  202. ">
  203. 预计标本总数
  204. <text class="text_span">{{ infoDATA.expectReceiveNum || 0 }}</text>
  205. </text>
  206. <text class="text" v-if="
  207. (infoType == 'plan-spe-ddd-2' && infoDATA.gdState.value == '4') ||
  208. (infoType == 'spe-ddd-2' && infoDATA.gdState.value == '4')
  209. ">
  210. 预计标本总数
  211. <text>{{ infoDATA.expectReceiveNum || 0 }}</text>
  212. </text>
  213. <text class="text" v-if="
  214. (infoType == 'plan-spe-dsd-2' && infoDATA.gdState.value == '6') ||
  215. (infoType == 'spe-dsd-2' && infoDATA.gdState.value == '6')
  216. ">
  217. 已扫描标本总数
  218. <text>{{ infoDATA.actualReceiveNum || 0 }}</text>
  219. </text>
  220. <text class="text" v-if="
  221. (infoType == 'plan-spe-dsd-3' && infoDATA.gdState.value == '5') ||
  222. (infoType == 'spe-dsd-3' && infoDATA.gdState.value == '5')
  223. ">
  224. 已收取标本总数
  225. <text>{{ infoDATA.actualReceiveNum || 0 }}</text>
  226. </text>
  227. </view>
  228. <!-- 静配 -->
  229. <view class="page_item_info" v-if="infoDATA.taskType.associationType.value == 'jPBag'">
  230. <text class="page_item_info_title">静配信息</text>
  231. <text class="text">#{{ infoDATA.staticDistri.packid }}</text>
  232. </view>
  233. <!-- 陪检 -->
  234. <view v-if="infoDATA.taskType.associationType.value == 'inspect'">
  235. <view class="page_item_info">
  236. <text class="page_item_info_title">检查信息</text>
  237. </view>
  238. <view id="infos" :animation="animationData">
  239. <view class="page_item_infos" v-for="(item, i) of infoDATA.checkList" :key="i">
  240. <view class="page_item_info2">
  241. <view class="page_item_foot_text">
  242. <text class="text1">检查科室</text>
  243. <text class="text2">{{ item.execDept.dept }}</text>
  244. </view>
  245. <view class="page_item_foot_text">
  246. <text class="text1">检查项</text>
  247. <text class="text2">{{ item.inspectName }}</text>
  248. </view>
  249. <view class="page_item_foot_text">
  250. <text class="text1">预约时间</text>
  251. <text class="text2">{{ item.yyTime || "-" }}</text>
  252. </view>
  253. </view>
  254. </view>
  255. </view>
  256. <view id="pulldown" @click="show('show')" v-if="showType == 'hiddle'">
  257. 点击可查看检查详情
  258. <text class="cubeic-pulldown icon_transport transport-paixujiantouxia"></text>
  259. </view>
  260. <view id="pullup" @click="show('hiddle')" v-if="showType == 'show'">
  261. 点击可收起检查详情
  262. <text class="cubeic-pullup icon_transport transport-paixujiantoushang"></text>
  263. </view>
  264. </view>
  265. </view>
  266. <view class="foot_btn2 footerPadding" v-if="infoType == 'plan-spe-ddd-1' || infoType == 'spe-ddd-1'">
  267. <view class="btn2" @click="Scanning_complete(dataId)">知道了</view>
  268. </view>
  269. <view class="foot_btn1 footerPadding" v-if="
  270. (infoType == 'plan-spe-dsd-1' && infoDATA.gdState.value == '5') ||
  271. (infoType == 'spe-dsd-1' && infoDATA.gdState.value == '5')
  272. ">
  273. <view class="btn1" @click="Scanning_complete(dataId)">工单完成</view>
  274. <view class="btn2" @click="showAlert">继续配送</view>
  275. </view>
  276. <view class="foot_btn1 footerPadding" v-if="
  277. (infoType == 'plan-spe-ddd-2' && infoDATA.gdState.value == '4') ||
  278. (infoType == 'spe-ddd-2' && infoDATA.gdState.value == '4')
  279. ">
  280. <view class="btn1" @click="Scanning_again(dataId)" v-if="
  281. infoDATA.taskType.associationType.value == 'specimen' ||
  282. infoDATA.taskType.associationType.value == 'specimenPlan'
  283. ">扫描标本</view>
  284. <view class="btn1" @click="Scanning_again(dataId)" v-if="
  285. infoDATA.taskType.associationType.value == 'jPBag' ||
  286. infoDATA.taskType.associationType.value == 'drugsBag'
  287. ">扫描药包</view>
  288. </view>
  289. <view class="foot_btn1 footerPadding" v-if="
  290. (infoType == 'plan-spe-dsd-3' && infoDATA.gdState.value == '5') ||
  291. (infoType == 'spe-dsd-3' && infoDATA.gdState.value == '5')
  292. ">
  293. <view class="btn1" @click="Scanning_again(dataId)" v-if="
  294. infoDATA.taskType.associationType.value == 'specimen' ||
  295. infoDATA.taskType.associationType.value == 'specimenPlan'
  296. ">扫描标本</view>
  297. <view class="btn1" @click="Scanning_again(dataId)" v-if="
  298. infoDATA.taskType.associationType.value == 'jPBag' ||
  299. infoDATA.taskType.associationType.value == 'drugsBag'
  300. ">扫描药包</view>
  301. <view class="btn2" @click="Scanning_complete1(dataId)">完成工单</view>
  302. </view>
  303. <view class="foot_btn2 footerPadding" v-if="
  304. infoType == 'plan-spe-ddd-2' ||
  305. infoType == 'plan-spe-dsd-2' ||
  306. (infoType == 'plan-spe-dsd-3' && infoDATA.gdState.value == '5') ||
  307. infoType == 'spe-ddd-2' ||
  308. infoType == 'spe-dsd-2' ||
  309. (infoType == 'spe-dsd-3' && infoDATA.gdState.value == '5')
  310. ">
  311. <view class="btn3" @click="Scanning_again(dataId)">继续扫描</view>
  312. <view class="btn3" @click="showHandViewSpecimen()">手动录入</view>
  313. <view class="btn3" v-if="infoDATA.taskType.isDigitalHandover==1" @click="checkNumber(infoDATA)">数量核对</view>
  314. <view class="btn3" @click="next()" v-if="queryObj.fromSpecimenBuild">下一步</view>
  315. </view>
  316. <view class="foot_btn2 footerPadding" v-if="
  317. infoType == 'ins-dsd-1' ||
  318. infoType == 'ins-zxz-1' ||
  319. infoType == 'trans-dsd-1'
  320. ">
  321. <view class="btn3" @click="Scanning_again(dataId)">继续扫描患者腕带</view>
  322. <view class="btn3" @click="photograph(infoDATA, { DEPTCode, DEPT, infoType })">拍照</view>
  323. </view>
  324. <view class="foot_btn2 footerPadding" v-if="
  325. infoType == 'plan-spe-ddd-1' ||
  326. infoType == 'spe-ddd-1' ||
  327. infoDATA.gdState.value == '6'
  328. ">
  329. <view class="btn2" @click="showAlert">知道了</view>
  330. </view>
  331. <view class="foot_btn2 footerPadding" v-if="
  332. infoType == 'drug-ddd-2' ||
  333. infoType == 'drug-dsd-2' ||
  334. infoType == 'jp-ddd-2' ||
  335. infoType == 'jp-dsd-2'
  336. ">
  337. <view class="btn2" @click="Scanning_again(dataId)">继续扫描</view>
  338. <view class="btn3" @click="showHandViewDrugsbag()">手动录入</view>
  339. </view>
  340. <view class="foot_btn2 footerPadding" v-if="
  341. infoType == 'drug-ddd-1' ||
  342. infoType == 'drug-dsd-1' ||
  343. infoType == 'jp-ddd-1' ||
  344. infoType == 'jp-dsd-1'
  345. ">
  346. <view class="btn2" @click="showAlert">知道了</view>
  347. </view>
  348. <view class="foot_btn2 footerPadding" v-if="infoType == 'qt-ddd-1' && infoDATA.gdState.value == '5'">
  349. <view class="btn2" @click="showAlert">知道了</view>
  350. </view>
  351. <!-- 弹窗 -->
  352. <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
  353. @ok="ok" @cancel="cancel" :operate="models.operate"></showModel>
  354. <!-- 手动查询标本弹窗 -->
  355. <handViewSpecimen v-if="speModels.disjunctor" :title="speModels.title" :disjunctor="speModels.disjunctor"
  356. @ok="speOk" @cancel="speCancel">
  357. </handViewSpecimen>
  358. <!-- 手动查询药品弹窗 -->
  359. <handViewDrugsBag v-if="drugbagModels.disjunctor" :title="drugbagModels.title"
  360. :disjunctor="drugbagModels.disjunctor" @ok="drugbagOk" @cancel="drugbagCancel">
  361. </handViewDrugsBag>
  362. </view>
  363. </template>
  364. <script>
  365. import showModel from "../../components/showModel/showModel.vue";
  366. import {
  367. get,
  368. post,
  369. SM,
  370. webHandle
  371. } from "../../http/http.js";
  372. import {
  373. photographTool
  374. } from "../../tools/photograph.js";
  375. export default {
  376. data() {
  377. return {
  378. currentCode: '', //当前小扫描的科室二维码
  379. // 手动查询标本弹窗model
  380. speModels: {
  381. disjunctor: false,
  382. },
  383. // 手动查询药品弹窗model
  384. drugbagModels: {
  385. disjunctor: false,
  386. },
  387. SMFlag: true,
  388. // 交接人信息
  389. accountObj: undefined,
  390. deptId: undefined,
  391. // 完成工单的id
  392. wcId: "",
  393. // 弹窗model
  394. models: {
  395. disjunctor: false,
  396. },
  397. modelFlag: "", //完成工单标识
  398. animationData: {},
  399. showType: "hiddle",
  400. infoDATA: {},
  401. infoType: "",
  402. DEPTCode: "",
  403. DEPT: "",
  404. dataId: "",
  405. queryObj: {}, //路由传过来的对象
  406. };
  407. },
  408. methods: {
  409. // 数量核对
  410. checkNumber(infoDATA) {
  411. let deptId = this.queryObj.deptId;
  412. let endDepts = this.queryObj.endDepts;
  413. console.log(endDepts,'scanning_code')
  414. if (deptId) {
  415. // 小扫描
  416. uni.navigateTo({
  417. url: `/pages/specimenCheckingDetail/specimenCheckingDetail?infoDATA=${encodeURIComponent(JSON.stringify({startDept:this.infoDATA.startDept.id,uuid:this.infoDATA.id}))}&id=${deptId}&t=small&gdState=${this.infoDATA.gdState.value}&endDepts=${endDepts}`
  418. })
  419. } else {
  420. // 快捷建单进入小扫描
  421. uni.navigateTo({
  422. url: `/pages/specimenCheckingDetail/specimenCheckingDetail?infoDATA=${encodeURIComponent(JSON.stringify({startDept:this.infoDATA.startDept.id,uuid:this.infoDATA.id}))}&id=${deptId}&t=small&endDepts=${endDepts}`
  423. })
  424. }
  425. },
  426. // 手动查询药品-确认
  427. drugbagOk(data) {
  428. console.log(data);
  429. if (!data.id) {
  430. //没有查询到药品
  431. uni.showModal({
  432. title: '提示',
  433. content: "没有查询到发药单号!",
  434. showCancel: false,
  435. success: function(res) {
  436. if (res.confirm) {
  437. console.log('用户点击确定');
  438. } else if (res.cancel) {
  439. console.log('用户点击取消');
  440. }
  441. }
  442. });
  443. return;
  444. }
  445. this.drugbagModels.disjunctor = false;
  446. this.hand_scanning_common(data.packid, 'hand');
  447. },
  448. // 手动查询药品-取消
  449. drugbagCancel() {
  450. this.drugbagModels.disjunctor = false;
  451. },
  452. // 手动查询药品弹窗
  453. showHandViewDrugsbag() {
  454. this.drugbagModels = {
  455. title: '填写发药单号',
  456. disjunctor: true,
  457. }
  458. },
  459. // 手动查询标本-确认
  460. speOk(data) {
  461. console.log(data);
  462. if (!data.id) {
  463. //没有查询到标本
  464. uni.showModal({
  465. title: '提示',
  466. content: "没有查询到标本!",
  467. showCancel: false,
  468. success: function(res) {
  469. if (res.confirm) {
  470. console.log('用户点击确定');
  471. } else if (res.cancel) {
  472. console.log('用户点击取消');
  473. }
  474. }
  475. });
  476. return;
  477. }
  478. this.speModels.disjunctor = false;
  479. this.hand_scanning_common(data.scode, 'hand');
  480. },
  481. // 手动查询标本-取消
  482. speCancel() {
  483. this.speModels.disjunctor = false;
  484. },
  485. // 手动查询标本弹窗
  486. showHandViewSpecimen() {
  487. this.speModels = {
  488. title: '填写标本编码',
  489. disjunctor: true,
  490. }
  491. },
  492. // 下一步
  493. next() {
  494. uni.showLoading({
  495. title: '加载中',
  496. mask: true,
  497. })
  498. post('/workerOrder/getSpecimenCount', {
  499. gdId: this.queryObj.id
  500. }).then(res => {
  501. get('/api/fetchData/specimen/' + this.queryObj.specimenId).then(ress => {
  502. uni.hideLoading();
  503. console.log(ress);
  504. ress.msg = '成功';
  505. ress.specimenCount = res.specimenCount;
  506. ress.type = this.queryObj.type1;
  507. uni.navigateTo({
  508. url: `../scanning_Result/scanning_Result?type=${
  509. this.queryObj.type
  510. }&type1=${
  511. this.queryObj.type1
  512. }&infoData=${encodeURIComponent(
  513. JSON.stringify(ress.data)
  514. )}&status=${ress.status}&msg=${ress.msg}&deptCode=${
  515. this.queryObj.deptCode
  516. }&dept=${
  517. this.queryObj.dept
  518. }&id=${this.dataId}&model=${encodeURIComponent(
  519. JSON.stringify(ress)
  520. )}&speNum=${res.specimenCount}`,
  521. });
  522. })
  523. })
  524. },
  525. // 拍照
  526. photograph(data, obj) {
  527. photographTool(data, obj);
  528. },
  529. // 手动输入标本和扫码公共方法,type----scan是扫码,hand是手动录入
  530. hand_scanning_common(ress1, type) {
  531. // ----------------
  532. uni.showLoading({
  533. title: "加载中",
  534. mask: true,
  535. });
  536. //检验二维码的有效性
  537. post("/dept/scanning", {
  538. content: ress1,
  539. }).then((result) => {
  540. this.SMFlag = true;
  541. if (result.state == 200 || result.state == 201) {
  542. this.currentCode = result.code;
  543. let codes = result.code;
  544. if (codes) {
  545. let speCode = codes;
  546. let data = {
  547. code: speCode,
  548. type: this.infoType,
  549. deptCode: this.DEPTCode,
  550. ids: [this.dataId],
  551. };
  552. let postType = "";
  553. if (
  554. this.infoDATA.taskType.associationType.value == "jPBag" ||
  555. this.infoDATA.taskType.associationType.value == "drugsBag"
  556. ) {
  557. postType = "handleDrugsAndJp";
  558. delete data.ids;
  559. if (this.accountObj) {
  560. data.handover = this.accountObj.accountId;
  561. }
  562. if (this.queryObj.grabOrders) {
  563. data.grabOrders = '666';
  564. }
  565. data.deptId = this.deptId;
  566. }
  567. if (this.infoDATA.taskType.associationType.value == "specimen") {
  568. data["speCode"] = data.code;
  569. delete data.code;
  570. postType = "handleSpes";
  571. }
  572. if (
  573. this.infoDATA.taskType.associationType.value == "specimenPlan"
  574. ) {
  575. data["speCode"] = data.code;
  576. delete data.code;
  577. postType = "handlePlanSpes";
  578. }
  579. if (this.infoDATA.taskType.associationType.value == "inspect") {
  580. // delete data.type;//seimin
  581. postType = "handleIns";
  582. }
  583. if (
  584. this.infoDATA.taskType.associationType.value ==
  585. "patientTransport"
  586. ) {
  587. postType = "handleTrans";
  588. }
  589. //扫描
  590. post("/workerOrder/" + postType, data).then((ress) => {
  591. console.log(ress, 1111)
  592. if (ress.status == 200) {
  593. //标本和标本轮巡工单,扫描标本后会自动调用摄像头,继续扫描,直到status不是200
  594. if (this.infoDATA.taskType.associationType.value == 'specimen' || this.infoDATA.taskType
  595. .associationType.value == 'specimenPlan') {
  596. if (type === 'scan') {
  597. setTimeout(() => {
  598. this.Scanning_again(this.dataId);
  599. }, 500)
  600. }
  601. }
  602. if (
  603. this.infoDATA.taskType.associationType.value == "drugsBag"
  604. ) {
  605. uni.hideLoading();
  606. // --------start----------
  607. uni.navigateTo({
  608. url: `../scanning_Result/scanning_Result?type=${
  609. this.queryObj.type
  610. }&type1=${
  611. this.queryObj.type1
  612. }&infoData=${encodeURIComponent(
  613. JSON.stringify(ress.data)
  614. )}&status=${ress.status}&msg=${ress.msg}&deptCode=${
  615. this.queryObj.deptCode
  616. }&dept=${
  617. this.queryObj.dept
  618. }&id=${this.dataId}&model=${encodeURIComponent(
  619. JSON.stringify(ress)
  620. )}&accountObj=${encodeURIComponent(JSON.stringify(this.accountObj))}&deptId=${this.deptId}&handover=${this.handover}`,
  621. });
  622. // ------------end------------
  623. } else {
  624. uni.hideLoading();
  625. // --------start----------
  626. // 患者陪检执行中或待送达,患者转运待送达
  627. if (
  628. ress.type == "ins-zxz-1" ||
  629. ress.type == "ins-dsd-1" ||
  630. ress.type == "trans-dsd-1"
  631. ) {
  632. console.log(ress.patientName, "code");
  633. uni.navigateTo({
  634. url: `../scanning_Result/scanning_Result?type=${
  635. this.queryObj.type
  636. }&type1=${
  637. this.queryObj.type1
  638. }&infoData=${encodeURIComponent(
  639. JSON.stringify(ress.data)
  640. )}&status=${ress.status}&msg=${ress.msg}&patient=${
  641. ress.patient
  642. }&patientCode=${ress.patientCode}&deptName=${
  643. ress.deptName
  644. }&bedNum=${ress.bedNum}&deptCode=${
  645. this.queryObj.deptCode
  646. }&dept=${
  647. this.queryObj.dept
  648. }&id=${this.dataId}&model=${encodeURIComponent(
  649. JSON.stringify(ress)
  650. )}`,
  651. });
  652. } else {
  653. uni.navigateTo({
  654. url: `../scanning_Result/scanning_Result?type=${
  655. this.queryObj.type
  656. }&type1=${
  657. this.queryObj.type1
  658. }&infoData=${encodeURIComponent(
  659. JSON.stringify(ress.data)
  660. )}&status=${ress.status}&msg=${ress.msg}&deptCode=${
  661. this.queryObj.deptCode
  662. }&dept=${
  663. this.queryObj.dept
  664. }&id=${this.dataId}&model=${encodeURIComponent(
  665. JSON.stringify(ress)
  666. )}&speNum=${ress.specimenCount}&scanOrHand=${type}`,
  667. });
  668. }
  669. // ------------end------------
  670. }
  671. } else {
  672. uni.hideLoading();
  673. uni.navigateTo({
  674. url: `../scanning_Result/scanning_Result?type=${
  675. this.queryObj.type
  676. }&type1=${this.queryObj.type1}&status=${ress.status}&msg=${
  677. ress.msg
  678. }&deptCode=${this.queryObj.deptCode}&dept=${
  679. this.queryObj.dept
  680. }&id=${this.dataId}&model=${encodeURIComponent(
  681. JSON.stringify(ress)
  682. )}&accountObj=${encodeURIComponent(JSON.stringify(this.accountObj))}&deptId=${this.deptId}&handover=${this.handover}&scanOrHand=${type}&qrcode=${this.currentCode}`,
  683. });
  684. }
  685. });
  686. }
  687. } else {
  688. uni.hideLoading();
  689. uni.showToast({
  690. icon: "none",
  691. title: "请求失败!",
  692. });
  693. }
  694. });
  695. // ------------------------------
  696. },
  697. // 扫描
  698. Scanning_again(id) {
  699. if (!this.SMFlag) {
  700. return;
  701. }
  702. this.SMFlag = false;
  703. SM().then((ress1) => {
  704. this.hand_scanning_common(ress1, 'scan');
  705. }).catch(err => {
  706. this.SMFlag = true;
  707. });
  708. },
  709. show(type) {
  710. this.showType = type;
  711. if (type === "show") {
  712. //展开
  713. // 计算高度
  714. const query = uni.createSelectorQuery().in(this);
  715. query
  716. .selectAll(".page_item_infos")
  717. .boundingClientRect((data) => {
  718. let len = data.reduce((prev, current) => {
  719. return prev + current.height;
  720. }, 0);
  721. this.animation.height(len).step();
  722. this.animationData = this.animation.export();
  723. })
  724. .exec();
  725. } else if (type === "hiddle") {
  726. this.animation.height(0).step();
  727. this.animationData = this.animation.export();
  728. }
  729. },
  730. // 确定
  731. ok() {
  732. this.models.disjunctor = false;
  733. if (this.modelFlag == "complete1") {
  734. //一对多完成扫描
  735. let ids = [];
  736. ids.push(this.wcId);
  737. let data = {
  738. type: this.infoType,
  739. ids,
  740. };
  741. uni.showLoading({
  742. title: '加载中',
  743. mask: true,
  744. });
  745. post("/workerOrder/finishSpes", data).then((res) => {
  746. if (res.status == 200) {
  747. uni.reLaunch({
  748. url: "../receiptpage/receiptpage",
  749. });
  750. } else {
  751. uni.hideLoading();
  752. uni.showToast({
  753. icon: "none",
  754. title: "请求失败!",
  755. });
  756. }
  757. });
  758. } else if (this.modelFlag == "complete") {
  759. //一对一完成扫描
  760. let ids = [];
  761. ids.push(this.wcId);
  762. uni.showLoading({
  763. title: '加载中',
  764. mask: true,
  765. });
  766. post("/workerOrder/finishSpeOrder", ids).then((res) => {
  767. if (res.status == 200) {
  768. uni.reLaunch({
  769. url: "../receiptpage/receiptpage",
  770. });
  771. } else {
  772. uni.hideLoading();
  773. uni.showToast({
  774. icon: "none",
  775. title: "请求失败!",
  776. });
  777. }
  778. });
  779. }
  780. },
  781. // 取消
  782. cancel() {
  783. this.models.disjunctor = false;
  784. },
  785. //一对多完成扫描
  786. Scanning_complete1(id) {
  787. this.wcId = id;
  788. this.modelFlag = "complete1";
  789. this.models = {
  790. disjunctor: true,
  791. title: "提示",
  792. content: "是否确定标本配送完成?",
  793. icon: "warn",
  794. operate: {
  795. ok: "确定",
  796. cancel: "取消",
  797. },
  798. };
  799. },
  800. //一对一完成扫描
  801. Scanning_complete(id) {
  802. this.wcId = id;
  803. this.modelFlag = "complete";
  804. this.models = {
  805. disjunctor: true,
  806. title: "提示",
  807. content: "是否确定标本配送完成?",
  808. icon: "warn",
  809. operate: {
  810. ok: "确定",
  811. cancel: "取消",
  812. },
  813. };
  814. },
  815. // 知道了
  816. showAlert() {
  817. uni.navigateTo({
  818. url: "../receiptpage/receiptpage",
  819. });
  820. },
  821. // 工单详情
  822. getInfo(id) {
  823. uni.showLoading({
  824. title: "加载中",
  825. mask: true,
  826. });
  827. get("/api/fetchData/workOrder/" + id).then((res) => {
  828. uni.hideLoading();
  829. if (res.status == 200) {
  830. this.infoDATA = res.data;
  831. } else {
  832. uni.showToast({
  833. icon: "none",
  834. title: "请求失败!",
  835. });
  836. }
  837. });
  838. },
  839. },
  840. onShow() {
  841. this.SMFlag = true;
  842. },
  843. onLoad(options) {
  844. console.log(options);
  845. if (options.accountObj && options.accountObj != "undefined") {
  846. this.accountObj = JSON.parse(options.accountObj);
  847. }
  848. if (options.deptId && options.deptId != "undefined") {
  849. this.deptId = options.deptId;
  850. }
  851. this.queryObj = options;
  852. let id = options.id;
  853. this.dataId = id; //工单ID
  854. this.infoType = options.type1; //type类型
  855. this.DEPTCode = options.deptCode; //二维码
  856. this.DEPT = options.dept; //科室名称
  857. this.getInfo(this.dataId);
  858. // 创建动画
  859. this.animation = uni.createAnimation({
  860. duration: 500,
  861. timingFunction: "ease",
  862. });
  863. // #ifdef APP-PLUS
  864. webHandle("no", "app");
  865. // #endif
  866. // #ifdef H5
  867. webHandle("no", "wx");
  868. // #endif
  869. },
  870. onUnload() {
  871. // 页面关闭后清空数据
  872. this.animationData = {};
  873. },
  874. };
  875. </script>
  876. <style lang="less">
  877. .Scanning_code {
  878. padding: 0 20rpx;
  879. padding-bottom: 124rpx;
  880. .Scanning_top {
  881. height: 340rpx;
  882. .Scanning_top_icon {
  883. width: 140rpx;
  884. height: 140rpx;
  885. margin: 0 auto;
  886. margin-top: 36rpx;
  887. border-radius: 50%;
  888. line-height: 140rpx;
  889. .cubeic-ok {
  890. font-size: 140rpx;
  891. color: #35b34a;
  892. }
  893. }
  894. .Scanning_top_text {
  895. text-align: center;
  896. .text1 {
  897. margin-top: 40rpx;
  898. font-size: 48rpx;
  899. }
  900. .text2 {
  901. margin-top: 16rpx;
  902. font-size: 36rpx;
  903. }
  904. }
  905. }
  906. .page_item {
  907. margin-top: 16rpx;
  908. min-height: 356rpx;
  909. background: #fff;
  910. border-radius: 8rpx;
  911. overflow: hidden;
  912. padding: 0 16rpx;
  913. border: 2rpx solid #e5e9ed;
  914. .L {
  915. width: 40rpx;
  916. height: 40rpx;
  917. border-radius: 50%;
  918. background: #f9fafb;
  919. position: relative;
  920. left: -50rpx;
  921. top: 66rpx;
  922. }
  923. .R {
  924. width: 40rpx;
  925. height: 40rpx;
  926. border-radius: 50%;
  927. background: #f9fafb;
  928. position: relative;
  929. float: right;
  930. right: -50rpx;
  931. top: 26rpx;
  932. }
  933. .starting {
  934. width: 50rpx;
  935. height: 50rpx;
  936. color: #fff;
  937. background: #49b856;
  938. display: inline-block;
  939. border-radius: 50%;
  940. text-align: center;
  941. line-height: 46rpx;
  942. font-size: 32rpx;
  943. margin-right: 6rpx;
  944. }
  945. .End {
  946. width: 50rpx;
  947. height: 50rpx;
  948. color: #fff;
  949. background: #39b199;
  950. display: inline-block;
  951. border-radius: 50%;
  952. text-align: center;
  953. line-height: 46rpx;
  954. font-size: 32rpx;
  955. margin-right: 6rpx;
  956. }
  957. .page_item_top {
  958. height: 86rpx;
  959. border-bottom: 2rpx dashed #e5e9ed;
  960. padding: 0 16rpx;
  961. .page_item_top_L {
  962. height: 100%;
  963. float: left;
  964. line-height: 88rpx;
  965. .emergencys {
  966. background: #ff3b53 !important;
  967. width: 124rpx !important;
  968. }
  969. .emergency {
  970. background: #ff3b53 !important;
  971. }
  972. .emergency1 {
  973. background: #49b856 !important;
  974. }
  975. .page_item_cont_start {
  976. text-align: center;
  977. height: 44rpx;
  978. width: 104rpx;
  979. line-height: 44rpx;
  980. border-radius: 8rpx;
  981. background: #49b856;
  982. color: #fff;
  983. display: inline-block;
  984. .page_item_cont_start_txt {
  985. font-size: 28rpx;
  986. display: flex;
  987. align-items: center;
  988. justify-content: center;
  989. }
  990. }
  991. .L_time {
  992. color: #6cc076;
  993. font-size: 32rpx;
  994. }
  995. .L_text {
  996. font-size: 32rpx;
  997. display: inline-block;
  998. font-weight: 700;
  999. margin-right: 8rpx;
  1000. }
  1001. }
  1002. .page_item_top_R {
  1003. height: 60rpx;
  1004. float: right;
  1005. padding-top: 20rpx;
  1006. font-size: 32rpx;
  1007. position: absolute;
  1008. right: 50rpx;
  1009. .L_iocn {
  1010. display: inline-block;
  1011. height: 52rpx;
  1012. line-height: 48rpx;
  1013. color: rgb(7, 134, 60);
  1014. font-size: 36rpx;
  1015. font-weight: 700;
  1016. }
  1017. }
  1018. }
  1019. .page_item_cont {
  1020. min-height: 180rpx;
  1021. padding: 0 16rpx;
  1022. text-align: left;
  1023. position: relative;
  1024. .text_big {
  1025. font-size: 32rpx;
  1026. position: absolute;
  1027. right: 16rpx;
  1028. font-weight: 700;
  1029. margin-top: 10rpx;
  1030. }
  1031. .text_big2 {
  1032. font-size: 32rpx;
  1033. position: absolute;
  1034. right: 16rpx;
  1035. font-weight: 700;
  1036. }
  1037. .line {
  1038. height: 20rpx;
  1039. width: 2rpx;
  1040. border-left: 2rpx solid #e5e9ed;
  1041. position: absolute;
  1042. top: 82rpx;
  1043. left: 40rpx;
  1044. }
  1045. .lines {
  1046. height: 40%;
  1047. width: 2rpx;
  1048. border-left: 2rpx solid #e5e9ed;
  1049. position: absolute;
  1050. top: 23%;
  1051. left: 36rpx;
  1052. }
  1053. .page_item_cont_T {
  1054. padding-top: 28rpx;
  1055. font-size: 28rpx;
  1056. .page_item_cont_title {
  1057. height: 100%;
  1058. font-size: 32rpx;
  1059. }
  1060. }
  1061. .page_item_cont_B {
  1062. padding-top: 28rpx;
  1063. margin-bottom: 28rpx;
  1064. .page_item_cont_title {
  1065. height: 60rpx;
  1066. font-size: 32rpx;
  1067. }
  1068. .page_item_cont_title1 {
  1069. height: 60rpx;
  1070. line-height: 60rpx;
  1071. font-size: 32rpx;
  1072. padding-left: 64rpx;
  1073. }
  1074. }
  1075. }
  1076. .page_item_foot {
  1077. border-top: 2rpx dashed #e5e9ed;
  1078. border-bottom: 2rpx dashed #e5e9ed;
  1079. padding: 28rpx 16rpx;
  1080. text-align: left;
  1081. .page_item_foot_text {
  1082. font-size: 32rpx;
  1083. margin-bottom: 20rpx;
  1084. display: flex;
  1085. justify-content: space-between;
  1086. align-items: center;
  1087. .text1 {
  1088. color: rgb(102, 102, 102);
  1089. }
  1090. .text2 {
  1091. font-weight: 700;
  1092. }
  1093. }
  1094. .text_padd {
  1095. padding: 0 10% 0 10%;
  1096. }
  1097. }
  1098. .page_item_info {
  1099. padding: 20rpx 16rpx;
  1100. text-align: left;
  1101. line-height: 60rpx;
  1102. font-size: 32rpx;
  1103. .page_item_info_title {
  1104. font-weight: 700;
  1105. }
  1106. .text {
  1107. float: right;
  1108. font-weight: 700;
  1109. .text_span {
  1110. color: #49b856;
  1111. }
  1112. }
  1113. }
  1114. #infos {
  1115. height: 0;
  1116. overflow: hidden;
  1117. }
  1118. .page_item_infos {
  1119. padding-bottom: 20rpx;
  1120. border-bottom: 2rpx dashed #e5e9ed;
  1121. .page_item_info2 {
  1122. text-align: left;
  1123. line-height: 60rpx;
  1124. font-size: 32rpx;
  1125. padding-left: 16rpx;
  1126. .page_item_foot_text {
  1127. font-size: 32rpx;
  1128. margin-bottom: 20rpx;
  1129. .text1 {
  1130. color: rgb(102, 102, 102);
  1131. }
  1132. .text2 {
  1133. float: right;
  1134. font-weight: 700;
  1135. }
  1136. }
  1137. }
  1138. }
  1139. #pulldown {
  1140. color: #49b856;
  1141. font-size: 36rpx;
  1142. height: 60rpx;
  1143. text-align: center;
  1144. .cubeic-pulldown {
  1145. font-size: 48rpx;
  1146. position: relative;
  1147. bottom: 6rpx;
  1148. }
  1149. }
  1150. #pullup {
  1151. color: #49b856;
  1152. font-size: 36rpx;
  1153. height: 60rpx;
  1154. text-align: center;
  1155. .cubeic-pullup {
  1156. font-size: 48rpx;
  1157. position: relative;
  1158. top: 12rpx;
  1159. }
  1160. }
  1161. }
  1162. .foot_btn2 {
  1163. position: fixed;
  1164. bottom: 0;
  1165. right: 20rpx;
  1166. left: 20rpx;
  1167. line-height: 66rpx;
  1168. height: 100rpx;
  1169. border-top: 2rpx solid #e5e9ed;
  1170. background: #f9fafb;
  1171. display: flex;
  1172. justify-content: space-between;
  1173. .btn2,
  1174. .btn3 {
  1175. height: 66rpx;
  1176. flex: 1;
  1177. background-image: linear-gradient(to right, #72c172, #3bb197);
  1178. color: #fff;
  1179. border-radius: 8rpx;
  1180. font-size: 32rpx;
  1181. margin-top: 16rpx;
  1182. margin-right: 16rpx;
  1183. text-align: center;
  1184. &:last-of-type {
  1185. margin-right: 0;
  1186. }
  1187. }
  1188. }
  1189. .foot_btn1 {
  1190. position: fixed;
  1191. bottom: 0;
  1192. right: 20rpx;
  1193. left: 20rpx;
  1194. line-height: 66rpx;
  1195. height: 100rpx;
  1196. border-top: 2rpx solid #e5e9ed;
  1197. background: #f9fafb;
  1198. display: flex;
  1199. .btn1,
  1200. .btn2 {
  1201. height: 66rpx;
  1202. flex: 1;
  1203. margin: 0 1%;
  1204. background-image: linear-gradient(to right, #72c172, #3bb197);
  1205. color: #fff;
  1206. border-radius: 8rpx;
  1207. font-size: 32rpx;
  1208. margin-top: 16rpx;
  1209. text-align: center;
  1210. }
  1211. }
  1212. }
  1213. </style>