scanning_ins.vue 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078
  1. <template>
  2. <view class="Scanning_ins">
  3. <view class="Scanning">
  4. <view class="Scanning_top" id="Scanning_tops" :animation="animationData">
  5. <view class="Scanning_top_icon">
  6. <text class="cubeic-ok icon_transport transport-duigou"></text>
  7. </view>
  8. <view class="Scanning_top_text">
  9. <view class="text1">扫描成功</view>
  10. <view class="success_tips">
  11. (请您评估患者的意识状况、生命体征、配合程度,如有异常请及时联系护士!)
  12. </view>
  13. </view>
  14. <view class="Scanning_cont">
  15. <view>
  16. <text>患者姓名 : {{ infoDATA.patientName || "-" }}({{
  17. infoDATA.bedNum || "-"
  18. }})</text>
  19. <button @click="getInspectList()">查看检查</button>
  20. </view>
  21. <view>患者编号 : {{ infoDATA.patientCode || "-" }}</view>
  22. <view>住院科室 :
  23. {{ infoDATA.department ? infoDATA.department.dept : "-" }}</view>
  24. </view>
  25. </view>
  26. <!-- ------------------未完成工单 start----------------- -->
  27. <view class="page_items" v-if="
  28. workData.length === 0 && patientOrders && patientOrders.length > 0
  29. ">
  30. <view class="page_item" v-for="(infoDATA, i) of patientOrders" :key="i">
  31. <view class="page_item_top">
  32. <view class="page_item_top_L">
  33. <text class="L_text">单号:{{ infoDATA.gdcode }}</text>
  34. </view>
  35. <view class="page_item_top_R">
  36. <button class="L_iocn" @click="notice(infoDATA)">通知</button>
  37. </view>
  38. <view class="L"></view>
  39. <view class="R"></view>
  40. </view>
  41. <view class="page_item_cont">
  42. <view class="page_item_cont_T">
  43. <view class="page_item_cont_title">
  44. <text> <text class="starting">起</text> 点科室 </text>
  45. <text class="text_big">{{ infoDATA.startDept.dept }}</text>
  46. </view>
  47. </view>
  48. <view class="line"></view>
  49. <view class="page_item_cont_B">
  50. <template v-if="infoDATA.taskType.associationType.value == 'inspect'">
  51. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.middleDept" :key="i">
  52. <text> <text class="End">检</text> 查科室 </text>
  53. <text class="text_big">{{ dept.dept }}</text>
  54. <view></view>
  55. </view>
  56. </template>
  57. <template v-if="infoDATA.taskType.associationType.value != 'inspect'">
  58. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.endDepts" :key="i">
  59. <text> <text class="End">终</text> 点科室 </text>
  60. <text class="text_big">{{ dept.dept }}</text>
  61. </view>
  62. </template>
  63. </view>
  64. </view>
  65. <view class="page_item_foot">
  66. <view class="page_item_foot_text">
  67. <text class="text1">状态</text>
  68. <text class="text2" v-if="
  69. !(
  70. infoDATA.gdState.value == '5' &&
  71. infoDATA.taskType.associationType.value == 'inspect'
  72. )
  73. ">{{ infoDATA.gdState.name }}</text>
  74. <text class="text2" v-if="
  75. infoDATA.gdState.value == '5' &&
  76. infoDATA.taskType.associationType.value == 'inspect'
  77. ">待送回</text>
  78. </view>
  79. <view class="page_item_foot_text" v-if="infoDATA.taskType.associationType.value == 'inspect'">
  80. <text class="text1">预约时间</text>
  81. <text class="text2">{{
  82. infoDATA.checkList &&
  83. infoDATA.checkList[0] &&
  84. infoDATA.checkList[0].yyTime
  85. ? infoDATA.checkList[0].yyTime
  86. : "-"
  87. }}</text>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. <!-- ------------------未完成工单 end----------------- -->
  93. <view class="title" v-if="workData && workData.length > 0">
  94. <text class="span1">工单信息</text>
  95. </view>
  96. <view class="page_items" v-if="!workData" style="font-size: 18px; margin-top: 15%">
  97. <view class="zwsj">
  98. <image class="zwsj_img" mode="widthFix" src="../../static/img/zanwushuju.png"></image>
  99. <view class="zwsj_txt">暂无工单</view>
  100. </view>
  101. </view>
  102. <view class="page_items" v-if="workData && workData.length > 0">
  103. <view class="page_item" v-for="(infoDATA, i) of workData" :key="i">
  104. <view class="page_item_top">
  105. <view class="page_item_top_L" @click="ac1(infoDATA, i, acType)">
  106. <text class="ac">
  107. <text :class="{ acSpan: idTYPE == infoDATA.id }"></text>
  108. </text>
  109. <text class="L_text">单号:{{ infoDATA.gdcode }}</text>
  110. <!-- emergencyType.value 1是正常,2是急,3是加急 -->
  111. <view class="page_item_cont_start emergency1" v-if="infoDATA.emergencyType.value == 1">
  112. <text>
  113. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  114. {{ infoDATA.emergencyType.name }}
  115. </text>
  116. </view>
  117. <view class="page_item_cont_start emergency" v-if="infoDATA.emergencyType.value == 2">
  118. <text>
  119. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  120. {{ infoDATA.emergencyType.name }}
  121. </text>
  122. </view>
  123. <view class="page_item_cont_start emergencys" v-if="infoDATA.emergencyType.value == 3">
  124. <text>
  125. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  126. {{ infoDATA.emergencyType.name }}
  127. </text>
  128. </view>
  129. </view>
  130. <view class="page_item_top_R">
  131. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'inspect'">患者陪检</text>
  132. <text class="L_iocn" v-if="
  133. infoDATA.taskType.associationType.value == 'patientTransport'
  134. ">患者转运</text>
  135. </view>
  136. <view class="L"></view>
  137. <view class="R"></view>
  138. </view>
  139. <view class="page_item_cont">
  140. <view class="page_item_cont_T">
  141. <view class="page_item_cont_title">
  142. <text> <text class="starting">起</text> 点科室 </text>
  143. <text class="text_big">{{ infoDATA.startDept.dept }}</text>
  144. </view>
  145. </view>
  146. <view class="line"></view>
  147. <view class="page_item_cont_B">
  148. <template v-if="infoDATA.taskType.associationType.value == 'inspect'">
  149. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.middleDept" :key="i">
  150. <text> <text class="End">检</text> 查科室 </text>
  151. <text class="text_big">{{ dept.dept }}</text>
  152. <view></view>
  153. </view>
  154. </template>
  155. <template v-if="infoDATA.taskType.associationType.value != 'inspect'">
  156. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.endDepts" :key="i">
  157. <text> <text class="End">终</text> 点科室 </text>
  158. <text class="text_big">{{ dept.dept }}</text>
  159. </view>
  160. </template>
  161. </view>
  162. </view>
  163. <view class="page_item_foot">
  164. <view class="page_item_foot_text">
  165. <text class="text1">状态</text>
  166. <text class="text2" v-if="
  167. !(
  168. infoDATA.gdState.value == '5' &&
  169. infoDATA.taskType.associationType.value == 'inspect'
  170. )
  171. ">{{ infoDATA.gdState.name }}</text>
  172. <text class="text2" v-if="
  173. infoDATA.gdState.value == '5' &&
  174. infoDATA.taskType.associationType.value == 'inspect'
  175. ">待送回</text>
  176. </view>
  177. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '2'">
  178. <text class="text1">预计响应时间</text>
  179. <text class="text2">{{ infoDATA.estimeResponseTime || 0 }}</text>
  180. </view>
  181. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '5'">
  182. <text class="text1" v-if="!(infoDATA.taskType.associationType.value == 'inspect')">预计送达时间</text>
  183. <text class="text1" v-if="infoDATA.taskType.associationType.value == 'inspect'">预计送回时间</text>
  184. <text class="text2">{{ infoDATA.estimeCompleteTime || 0 }}</text>
  185. </view>
  186. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '4'">
  187. <text class="text1">预计到达时间</text>
  188. <text class="text2">{{ infoDATA.estimateArriveTime || 0 }}</text>
  189. </view>
  190. <view class="page_item_foot_text">
  191. <text class="text1">创建时间</text>
  192. <text class="text2">{{ infoDATA.startTime }}</text>
  193. </view>
  194. </view>
  195. </view>
  196. </view>
  197. <view class="foot_btn2" v-if="workData && workData.length > 0 && isShow">
  198. <view class="btn1" @click="allStart(typeData)">一键操作</view>
  199. <view class="btn1" @click="sendBack()">送回病房</view>
  200. <view class="btn2" @click="showAlert">知道了</view>
  201. </view>
  202. <view class="foot_btn2" v-if="
  203. workData && workData.length === 0 && isShow && wechatFocusSwitch == 1
  204. ">
  205. <view class="btn1" @click="help">{{
  206. infoDATA.focusPatient == 1 ? "无需帮助" : "需要帮助"
  207. }}</view>
  208. <view class="btn1" @click="sendBack()">送回病房</view>
  209. <view class="btn2" @click="showAlert">知道了</view>
  210. </view>
  211. <view class="foot_btn2" v-if="!isShow">
  212. <view class="btn1" @click="sendBack()">送回病房</view>
  213. <view class="btn2" @click="showAlert">知道了</view>
  214. </view>
  215. </view>
  216. <!-- 弹窗 -->
  217. <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
  218. @know="know" :operate="models.operate" @ok="ok" @cancel="cancel"></showModel>
  219. <!-- 送回病房弹窗 -->
  220. <showModel :title="models1.title" :icon="models1.icon" :disjunctor="models1.disjunctor" :content="models1.content"
  221. :operate="models1.operate" @ok="ok1" @cancel="cancel1"></showModel>
  222. <!-- 送回病房建单弹窗 -->
  223. <showModel :title="models2.title" :icon="models2.icon" :disjunctor="models2.disjunctor" :content="models2.content"
  224. :operate="models2.operate" @ok="ok2" @cancel="cancel2"></showModel>
  225. </view>
  226. </template>
  227. <script>
  228. import showModel from "../../components/showModel/showModel.vue";
  229. import {
  230. get,
  231. post,
  232. SM,
  233. webHandle
  234. } from "../../http/http.js";
  235. export default {
  236. data() {
  237. return {
  238. options: {},
  239. wechatFocusSwitch: 0,
  240. hosId: "",
  241. // 弹窗model
  242. models: {
  243. disjunctor: false,
  244. },
  245. // 送回病房弹窗model
  246. models1: {
  247. disjunctor: false,
  248. },
  249. // 送回病房建单弹窗model
  250. models2: {
  251. disjunctor: false,
  252. },
  253. infoDATA: {},
  254. workData: [],
  255. patientOrders: [],
  256. acType: Number,
  257. tabType: 1,
  258. idTYPE: "",
  259. userId: {
  260. ids: [],
  261. },
  262. typeData: null,
  263. types: false,
  264. code: "",
  265. animationData: {}, //动画
  266. isShow: true, //是否显示“一键操作”
  267. };
  268. },
  269. methods: {
  270. ok2() {
  271. this.models2.disjunctor = false;
  272. uni.showLoading({
  273. mask: true,
  274. title: '加载中'
  275. })
  276. let userId = uni.getStorageSync("userData").user.id;
  277. let postData = {
  278. "workOrder": {
  279. "hosId": this.hosId,
  280. "startDept": {
  281. "id": this.options.id
  282. },
  283. "createDept": this.options.id,
  284. "patient": {
  285. "patientCode": this.options.code
  286. },
  287. "worker": {
  288. "id": userId
  289. }
  290. }
  291. };
  292. post("/workerOrder/returnSickRoom", postData).then((res) => {
  293. console.log(res)
  294. uni.hideLoading();
  295. if (res.status == 200) {
  296. uni.showToast({
  297. icon: 'success',
  298. title: '建单成功',
  299. });
  300. } else {
  301. uni.showToast({
  302. icon: "none",
  303. title: "请求失败!",
  304. });
  305. }
  306. })
  307. },
  308. cancel2() {
  309. this.models2.disjunctor = false;
  310. },
  311. // 送回病房-建单
  312. sendBuild() {
  313. let infoDATA = JSON.parse(this.options.infoDATA);
  314. this.models2 = {
  315. disjunctor: true,
  316. title: "提示",
  317. content: `您选择的起点科室为【${this.options.dept}】,您将从【${this.options.dept}】把【${infoDATA.patientName}】送回【${infoDATA.department.dept}】,如您确认请点击“确认建单”。`,
  318. icon: "warn",
  319. operate: {
  320. ok: "确认建单",
  321. cancel: "取消",
  322. },
  323. };
  324. },
  325. // 送回病房-选择起点科室
  326. sendBack() {
  327. let infoDATA = JSON.parse(this.options.infoDATA);
  328. this.models1 = {
  329. disjunctor: true,
  330. title: "提示",
  331. content: `您好,您是要将【${infoDATA.patientName}】送回病房吗?如确认请您点击“选择起点科室”建立工单。`,
  332. icon: "warn",
  333. operate: {
  334. ok: "选择起点科室",
  335. cancel: "取消",
  336. },
  337. };
  338. },
  339. ok1() {
  340. this.models1.disjunctor = false;
  341. uni.navigateTo({
  342. url: `../search/search?type=sendBack&code=${this.options.code}&infoDATA=${this.options.infoDATA}&patientOrders=${this.options.patientOrders}&workData=${this.options.workData}`,
  343. });
  344. },
  345. cancel1() {
  346. this.models1.disjunctor = false;
  347. },
  348. // 查看检查
  349. getInspectList() {
  350. uni.navigateTo({
  351. url: `../inspectList/inspectList?id=${this.infoDATA.department.id}&dept=${this.infoDATA.department.dept}&residenceNo=${this.infoDATA.residenceNo}`,
  352. });
  353. },
  354. // 通知
  355. notice(info) {
  356. let postData = {
  357. userIds: info.worker.id + "",
  358. content: `您负责护送的患者${info.patient.patientName}(${info.patient.bedNum})已经检查完毕,请尽快执行工单的下一步。`,
  359. };
  360. post("/wechat/sendCustomMessage", postData).then((res) => {
  361. if (res.status == 200) {
  362. uni.showToast({
  363. title: "通知成功",
  364. duration: 2000,
  365. });
  366. } else {
  367. uni.showToast({
  368. icon: "none",
  369. title: "请求失败!",
  370. });
  371. }
  372. });
  373. },
  374. //需要帮助、无需帮助
  375. help() {
  376. this.models = {
  377. disjunctor: true,
  378. title: "提示",
  379. content: this.infoDATA.focusPatient == 1 ?
  380. "如设置为“无需帮助”则后期此患者检查将不会自动进行建单,可通过“需要帮助”设置自动建单" : "如设置为“需要帮助”则后期此患者检查会自动进行建单,可通过“无需帮助”取消设置",
  381. icon: "warn",
  382. operate: {
  383. ok: "确定",
  384. cancel: "取消",
  385. },
  386. };
  387. },
  388. //需要帮助,无需帮助确定
  389. ok() {
  390. this.models.disjunctor = false;
  391. post("/nurse/updData/patient", {
  392. patient: {
  393. id: this.infoDATA.id,
  394. focusPatient: this.infoDATA.focusPatient == 1 ? 0 : 1,
  395. },
  396. }).then((res) => {
  397. let msg = "设置失败";
  398. let icon = "error";
  399. if (res.status == 200) {
  400. msg = "设置成功";
  401. icon = "success";
  402. this.infoDATA.focusPatient = res.data.focusPatient;
  403. }
  404. this.models = {
  405. disjunctor: true,
  406. content: msg,
  407. icon: icon,
  408. operate: {
  409. know: "知道了",
  410. },
  411. };
  412. });
  413. },
  414. //需要帮助,无需帮助取消
  415. cancel() {
  416. this.models.disjunctor = false;
  417. },
  418. //知道了
  419. know() {
  420. this.models.disjunctor = false;
  421. },
  422. // 知道了
  423. showAlert() {
  424. uni.navigateTo({
  425. url: "../receiptpage/receiptpage",
  426. });
  427. },
  428. //一键操作
  429. allStart(data) {
  430. let list = {};
  431. if (data) {
  432. let type = "";
  433. if (data.gdState.value == "8") {
  434. SM().then((ress1) => {
  435. // ----------------
  436. uni.showLoading({
  437. title: "加载中",
  438. mask: true,
  439. });
  440. //检验二维码的有效性
  441. post("/dept/scanning", {
  442. content: ress1,
  443. }).then((result) => {
  444. if (result.state == 200 || result.state == 201) {
  445. let ress = result.code;
  446. if (ress) {
  447. var ids = [];
  448. ids.push(data.id);
  449. type = "orderSign/" + ress;
  450. list = ids;
  451. // 科室签到
  452. post("/workerOrder/" + type, list).then((res) => {
  453. uni.hideLoading();
  454. if (res.status == 200) {
  455. // model: JSON.stringify(res), //签到返回的信息
  456. // type: data.taskType.associationType.value, //关联类型
  457. // code: ress, //二维码code
  458. // ids //科室ID数组
  459. uni.navigateTo({
  460. url: `../scanning_djEnd/scanning_djEnd?type=${
  461. data.taskType.associationType.value
  462. }&code=${ress}&ids=${ids}&model=${encodeURIComponent(
  463. JSON.stringify(res)
  464. )}`,
  465. });
  466. } else {
  467. uni.navigateTo({
  468. url: `../scanning_djEnd/scanning_djEnd?model=${encodeURIComponent(
  469. JSON.stringify(res)
  470. )}`,
  471. });
  472. }
  473. });
  474. }
  475. } else {
  476. uni.hideLoading();
  477. uni.showToast({
  478. icon: "none",
  479. title: "请求失败!",
  480. });
  481. }
  482. });
  483. // ------------------------------
  484. });
  485. } else {
  486. if (data.taskType.associationType.value == "patientTransport") {
  487. type = "handleTrans";
  488. let data = {
  489. ids: this.userId.ids,
  490. // "11789558|51131895|7|黄石城乡|陈琛|女|19981003|20180803081051|Z消化内科Ⅰ"
  491. code: this.code,
  492. };
  493. list = data;
  494. }
  495. if (data.taskType.associationType.value == "inspect") {
  496. type = "handleIns";
  497. let data = {
  498. ids: this.userId.ids,
  499. // "11789558|51131895|7|黄石城乡|陈琛|女|19981003|20180803081051|Z消化内科Ⅰ"
  500. code: this.code,
  501. };
  502. list = data;
  503. }
  504. uni.showLoading({
  505. title: "加载中",
  506. mask: true,
  507. });
  508. post("/workerOrder/" + type, list).then((res) => {
  509. uni.hideLoading();
  510. if (res.status == 200) {
  511. uni.navigateTo({
  512. url: `../scanning_insEnd/scanning_insEnd?type=${
  513. data.taskType.associationType.value
  514. }&model=${encodeURIComponent(JSON.stringify(res))}`,
  515. });
  516. } else {
  517. uni.navigateTo({
  518. url: `../scanning_insEnd/scanning_insEnd?model=${encodeURIComponent(
  519. JSON.stringify(res)
  520. )}`,
  521. });
  522. }
  523. });
  524. }
  525. } else {
  526. this.models = {
  527. disjunctor: true,
  528. content: "请选择工单",
  529. icon: "warn",
  530. operate: {
  531. know: "知道了",
  532. },
  533. };
  534. }
  535. },
  536. //选中
  537. ac(data, i, type) {
  538. this.idTYPE = "";
  539. },
  540. //未选中
  541. ac1(data, i, type) {
  542. if (this.idTYPE == data.id) {
  543. //显示
  544. this.isShow = true;
  545. this.idTYPE = "";
  546. this.userId.ids = [];
  547. this.typeData = null;
  548. } else {
  549. if (data.gdState.value >= 5) {
  550. //隐藏
  551. this.isShow = false;
  552. } else {
  553. //显示
  554. this.isShow = true;
  555. }
  556. this.idTYPE = data.id;
  557. this.typeData = data;
  558. this.userId.ids[0] = this.idTYPE;
  559. }
  560. },
  561. texiao() {
  562. if (this.workData && this.workData.length > 0) {
  563. setTimeout(() => {
  564. this.animation.height(0).opacity(0).step();
  565. this.animationData = this.animation.export();
  566. }, 15000);
  567. }
  568. },
  569. // 获取需要帮助权限
  570. getWechatFocusSwitch() {
  571. let postData = {
  572. idx: 0,
  573. sum: 1,
  574. taskType: {
  575. hosIds: this.hosId,
  576. associationType: {
  577. id: 260,
  578. },
  579. },
  580. };
  581. post("/configuration/fetchDataList/taskType", postData).then((res) => {
  582. if (res.status == 200) {
  583. this.wechatFocusSwitch = res.list[0].wechatFocusSwitch || 0;
  584. } else {
  585. uni.showToast({
  586. icon: "none",
  587. title: "请求失败!",
  588. });
  589. }
  590. });
  591. },
  592. },
  593. onLoad(options) {
  594. console.log(options);
  595. this.options = options;
  596. // 送回病房建单 start
  597. if (options.id && options.dept) {
  598. this.sendBuild();
  599. }
  600. // 送回病房建单 end
  601. this.hosId = uni.getStorageSync("userData").infoPermission.hospitals[0].id;
  602. this.getWechatFocusSwitch();
  603. this.infoDATA = JSON.parse(options.infoDATA);
  604. console.log(this.infoDATA);
  605. this.workData = JSON.parse(options.workData);
  606. if (options.patientOrders != 'undefined') {
  607. this.patientOrders = JSON.parse(options.patientOrders);
  608. }
  609. this.code = options.code;
  610. // #ifdef APP-PLUS
  611. webHandle("no", "app");
  612. // #endif
  613. // #ifdef H5
  614. webHandle("no", "wx");
  615. // #endif
  616. },
  617. onShow() {
  618. // 创建动画
  619. this.animation = uni.createAnimation({
  620. duration: 500,
  621. timingFunction: "ease",
  622. delay: 2000,
  623. });
  624. setTimeout(() => {
  625. this.texiao();
  626. }, 500);
  627. },
  628. onHide() {
  629. this.animationData = {};
  630. },
  631. onUnload() {
  632. // 页面关闭后清空数据
  633. this.animationData = {};
  634. },
  635. };
  636. </script>
  637. <style lang="less">
  638. ::-webkit-scrollbar {
  639. width: 0px;
  640. }
  641. ::-webkit-scrollbar-track {
  642. background-color: none;
  643. }
  644. ::-webkit-scrollbar-thumb {
  645. background-color: none;
  646. }
  647. ::-webkit-scrollbar-thumb:hover {
  648. background-color: none;
  649. }
  650. ::-webkit-scrollbar-thumb:active {
  651. background-color: none;
  652. }
  653. .Scanning_ins {
  654. .title {
  655. font-size: 36rpx;
  656. margin-top: 20rpx;
  657. margin-bottom: 20rpx;
  658. font-weight: 700;
  659. position: relative;
  660. height: 40rpx;
  661. .span1 {
  662. position: absolute;
  663. left: 0;
  664. font-weight: 700;
  665. }
  666. .span2 {
  667. position: absolute;
  668. right: 20%;
  669. color: rgb(73, 184, 86);
  670. }
  671. .span3 {
  672. position: absolute;
  673. right: 0;
  674. color: rgb(73, 184, 86);
  675. }
  676. }
  677. .Scanning {
  678. padding: 0 20rpx;
  679. .Scanning_top {
  680. height: 400rpx;
  681. .Scanning_top_icon {
  682. width: 140rpx;
  683. height: 140rpx;
  684. margin: 0 auto;
  685. margin-top: 36rpx;
  686. border-radius: 50%;
  687. line-height: 140rpx;
  688. .cubeic-ok {
  689. font-size: 140rpx;
  690. color: #35b34a;
  691. }
  692. }
  693. .Scanning_top_text {
  694. .text1 {
  695. margin-top: 30rpx;
  696. font-size: 48rpx;
  697. text-align: center;
  698. }
  699. .success_tips{
  700. color: red;
  701. font-size: 30rpx;
  702. }
  703. }
  704. .Scanning_cont {
  705. font-size: 32rpx;
  706. margin-top: 16rpx;
  707. view {
  708. margin-bottom: 8rpx;
  709. display: flex;
  710. justify-content: center;
  711. align-items: center;
  712. button {
  713. font-size: 32rpx;
  714. height: 52rpx;
  715. line-height: 52rpx;
  716. margin: 0;
  717. color: rgb(7, 134, 60);
  718. font-weight: 700;
  719. }
  720. }
  721. .text {
  722. margin-top: 24rpx;
  723. color: #35b34a;
  724. }
  725. .text1 {
  726. margin-top: 24rpx;
  727. color: #ff3b53;
  728. }
  729. }
  730. }
  731. .page_items {
  732. margin-bottom: 110rpx;
  733. .zwsj {
  734. margin-top: 180rpx;
  735. display: flex;
  736. flex-direction: column;
  737. align-items: center;
  738. .zwsj_txt {
  739. font-size: 36rpx;
  740. font-weight: 700;
  741. margin-top: 20rpx;
  742. }
  743. .zwsj_img {
  744. width: 582rpx;
  745. }
  746. }
  747. .page_item {
  748. margin-top: 16rpx;
  749. min-height: 310rpx;
  750. background: #fff;
  751. border-radius: 8rpx;
  752. overflow: hidden;
  753. padding: 0 16rpx;
  754. border: 2rpx solid #e5e9ed;
  755. .L {
  756. width: 40rpx;
  757. height: 40rpx;
  758. border-radius: 50%;
  759. background: #f9fafb;
  760. position: relative;
  761. left: -50rpx;
  762. top: 66rpx;
  763. }
  764. .R {
  765. width: 40rpx;
  766. height: 40rpx;
  767. border-radius: 50%;
  768. background: #f9fafb;
  769. position: relative;
  770. float: right;
  771. right: -50rpx;
  772. top: 26rpx;
  773. }
  774. .starting {
  775. width: 50rpx;
  776. height: 50rpx;
  777. color: #fff;
  778. background: #49b856;
  779. display: inline-block;
  780. border-radius: 50%;
  781. text-align: center;
  782. line-height: 46rpx;
  783. font-size: 32rpx;
  784. margin-right: 6rpx;
  785. }
  786. .End {
  787. width: 50rpx;
  788. height: 50rpx;
  789. color: #fff;
  790. background: #39b199;
  791. display: inline-block;
  792. border-radius: 50%;
  793. text-align: center;
  794. line-height: 46rpx;
  795. font-size: 32rpx;
  796. margin-right: 6rpx;
  797. }
  798. .page_item_top {
  799. height: 86rpx;
  800. border-bottom: 2rpx dashed #e5e9ed;
  801. padding: 0 16rpx;
  802. .page_item_top_L {
  803. height: 100%;
  804. float: left;
  805. line-height: 88rpx;
  806. display: flex;
  807. align-items: center;
  808. .ac {
  809. width: 32rpx;
  810. height: 32rpx;
  811. border: 2rpx solid #ccc;
  812. display: flex;
  813. justify-content: center;
  814. align-items: center;
  815. position: relative;
  816. .acSpan {
  817. width: 24rpx;
  818. height: 24rpx;
  819. background: #39b199;
  820. display: block;
  821. }
  822. }
  823. .ac1 {
  824. width: 32rpx;
  825. height: 32rpx;
  826. border: 2rpx solid #ccc;
  827. display: inline-block;
  828. position: relative;
  829. }
  830. .emergencys {
  831. background: #ff3b53 !important;
  832. width: 124rpx !important;
  833. }
  834. .emergency {
  835. background: #ff3b53 !important;
  836. }
  837. .emergency1 {
  838. background: #49b856 !important;
  839. }
  840. .page_item_cont_start {
  841. text-align: center;
  842. height: 44rpx;
  843. width: 104rpx;
  844. line-height: 44rpx;
  845. border-radius: 8rpx;
  846. background: #49b856;
  847. color: #fff;
  848. display: inline-block;
  849. font-size: 28rpx;
  850. }
  851. .L_time {
  852. color: #6cc076;
  853. font-size: 32rpx;
  854. }
  855. .L_text {
  856. font-size: 32rpx;
  857. display: inline-block;
  858. font-weight: 700;
  859. }
  860. }
  861. .page_item_top_R {
  862. height: 60rpx;
  863. float: right;
  864. padding-top: 20rpx;
  865. font-size: 32rpx;
  866. position: absolute;
  867. right: 50rpx;
  868. .L_iocn {
  869. display: inline-block;
  870. height: 52rpx;
  871. line-height: 48rpx;
  872. color: rgb(7, 134, 60);
  873. font-size: 36rpx;
  874. font-weight: 700;
  875. }
  876. }
  877. }
  878. .page_item_cont {
  879. min-height: 180rpx;
  880. max-height: 424rpx;
  881. padding: 0 16rpx;
  882. text-align: left;
  883. position: relative;
  884. .text_big {
  885. font-size: 32rpx;
  886. position: absolute;
  887. right: 16rpx;
  888. font-weight: 700;
  889. margin-top: 10rpx;
  890. }
  891. .text_big2 {
  892. font-size: 32rpx;
  893. position: absolute;
  894. right: 16rpx;
  895. font-weight: 700;
  896. }
  897. .line {
  898. height: 20rpx;
  899. width: 2rpx;
  900. border-left: 2rpx solid #e5e9ed;
  901. position: absolute;
  902. top: 82rpx;
  903. left: 40rpx;
  904. }
  905. .lines {
  906. height: 40%;
  907. width: 2rpx;
  908. border-left: 2rpx solid #e5e9ed;
  909. position: absolute;
  910. top: 23%;
  911. left: 36rpx;
  912. }
  913. .page_item_cont_T {
  914. padding-top: 28rpx;
  915. font-size: 28rpx;
  916. .page_item_cont_title {
  917. height: 100%;
  918. font-size: 32rpx;
  919. }
  920. }
  921. .page_item_cont_B {
  922. padding-top: 28rpx;
  923. margin-bottom: 28rpx;
  924. .page_item_cont_title {
  925. height: 60rpx;
  926. font-size: 32rpx;
  927. }
  928. .page_item_cont_title1 {
  929. height: 60rpx;
  930. line-height: 60rpx;
  931. font-size: 32rpx;
  932. padding-left: 64rpx;
  933. }
  934. }
  935. }
  936. .page_item_foot {
  937. border-top: 2rpx dashed #e5e9ed;
  938. border-bottom: 2rpx dashed #e5e9ed;
  939. padding: 28rpx 16rpx;
  940. text-align: left;
  941. .page_item_foot_text {
  942. height: 48rpx;
  943. font-size: 32rpx;
  944. line-height: 48rpx;
  945. margin-bottom: 20rpx;
  946. .text1 {
  947. color: rgb(102, 102, 102);
  948. }
  949. .text2 {
  950. float: right;
  951. font-weight: 700;
  952. }
  953. }
  954. }
  955. #infos {
  956. display: none;
  957. }
  958. .page_item_infos {
  959. padding-bottom: 20rpx;
  960. border-bottom: 2rpx dashed #e5e9ed;
  961. .page_item_info2 {
  962. text-align: left;
  963. line-height: 60rpx;
  964. font-size: 32rpx;
  965. padding-left: 16rpx;
  966. .page_item_foot_text {
  967. height: 48rpx;
  968. font-size: 32rpx;
  969. line-height: 48rpx;
  970. margin-bottom: 20rpx;
  971. .text1 {
  972. color: rgb(102, 102, 102);
  973. }
  974. .text2 {
  975. float: right;
  976. font-weight: 700;
  977. }
  978. }
  979. }
  980. }
  981. }
  982. }
  983. .foot_btn2 {
  984. position: fixed;
  985. bottom: 0;
  986. right: 20rpx;
  987. left: 20rpx;
  988. line-height: 66rpx;
  989. height: 100rpx;
  990. border-top: 2rpx solid #e5e9ed;
  991. background: #f9fafb;
  992. display: flex;
  993. justify-content: space-between;
  994. .btn1,
  995. .btn2,
  996. .btn3 {
  997. height: 66rpx;
  998. width: 32%;
  999. background-image: linear-gradient(to right, #72c172, #3bb197);
  1000. color: #fff;
  1001. border-radius: 8rpx;
  1002. font-size: 32rpx;
  1003. margin-top: 16rpx;
  1004. text-align: center;
  1005. }
  1006. .btn3 {
  1007. width: 100%;
  1008. }
  1009. }
  1010. }
  1011. }
  1012. </style>