scanning_ins.vue 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079
  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. sourceId: 4,
  280. "hosId": this.hosId,
  281. "startDept": {
  282. "id": this.options.id
  283. },
  284. "createDept": this.options.id,
  285. "patient": {
  286. "patientCode": this.options.code
  287. },
  288. "worker": {
  289. "id": userId
  290. }
  291. }
  292. };
  293. post("/workerOrder/returnSickRoom", postData).then((res) => {
  294. console.log(res)
  295. uni.hideLoading();
  296. if (res.status == 200) {
  297. uni.showToast({
  298. icon: 'success',
  299. title: '建单成功',
  300. });
  301. } else {
  302. uni.showToast({
  303. icon: "none",
  304. title: "请求失败!",
  305. });
  306. }
  307. })
  308. },
  309. cancel2() {
  310. this.models2.disjunctor = false;
  311. },
  312. // 送回病房-建单
  313. sendBuild() {
  314. let infoDATA = JSON.parse(this.options.infoDATA);
  315. this.models2 = {
  316. disjunctor: true,
  317. title: "提示",
  318. content: `您选择的起点科室为【${this.options.dept}】,您将从【${this.options.dept}】把【${infoDATA.patientName}】送回【${infoDATA.department.dept}】,如您确认请点击“确认建单”。`,
  319. icon: "warn",
  320. operate: {
  321. ok: "确认建单",
  322. cancel: "取消",
  323. },
  324. };
  325. },
  326. // 送回病房-选择起点科室
  327. sendBack() {
  328. let infoDATA = JSON.parse(this.options.infoDATA);
  329. this.models1 = {
  330. disjunctor: true,
  331. title: "提示",
  332. content: `您好,您是要将【${infoDATA.patientName}】送回病房吗?如确认请您点击“选择起点科室”建立工单。`,
  333. icon: "warn",
  334. operate: {
  335. ok: "选择起点科室",
  336. cancel: "取消",
  337. },
  338. };
  339. },
  340. ok1() {
  341. this.models1.disjunctor = false;
  342. uni.navigateTo({
  343. url: `../search/search?type=sendBack&code=${this.options.code}&infoDATA=${this.options.infoDATA}&patientOrders=${this.options.patientOrders}&workData=${this.options.workData}`,
  344. });
  345. },
  346. cancel1() {
  347. this.models1.disjunctor = false;
  348. },
  349. // 查看检查
  350. getInspectList() {
  351. uni.navigateTo({
  352. url: `../inspectList/inspectList?id=${this.infoDATA.department.id}&dept=${this.infoDATA.department.dept}&residenceNo=${this.infoDATA.residenceNo}`,
  353. });
  354. },
  355. // 通知
  356. notice(info) {
  357. let postData = {
  358. userIds: info.worker.id + "",
  359. content: `您负责护送的患者${info.patient.patientName}(${info.patient.bedNum})已经检查完毕,请尽快执行工单的下一步。`,
  360. };
  361. post("/wechat/sendCustomMessage", postData).then((res) => {
  362. if (res.status == 200) {
  363. uni.showToast({
  364. title: "通知成功",
  365. duration: 2000,
  366. });
  367. } else {
  368. uni.showToast({
  369. icon: "none",
  370. title: "请求失败!",
  371. });
  372. }
  373. });
  374. },
  375. //需要帮助、无需帮助
  376. help() {
  377. this.models = {
  378. disjunctor: true,
  379. title: "提示",
  380. content: this.infoDATA.focusPatient == 1 ?
  381. "如设置为“无需帮助”则后期此患者检查将不会自动进行建单,可通过“需要帮助”设置自动建单" : "如设置为“需要帮助”则后期此患者检查会自动进行建单,可通过“无需帮助”取消设置",
  382. icon: "warn",
  383. operate: {
  384. ok: "确定",
  385. cancel: "取消",
  386. },
  387. };
  388. },
  389. //需要帮助,无需帮助确定
  390. ok() {
  391. this.models.disjunctor = false;
  392. post("/nurse/updData/patient", {
  393. patient: {
  394. id: this.infoDATA.id,
  395. focusPatient: this.infoDATA.focusPatient == 1 ? 0 : 1,
  396. },
  397. }).then((res) => {
  398. let msg = "设置失败";
  399. let icon = "error";
  400. if (res.status == 200) {
  401. msg = "设置成功";
  402. icon = "success";
  403. this.infoDATA.focusPatient = res.data.focusPatient;
  404. }
  405. this.models = {
  406. disjunctor: true,
  407. content: msg,
  408. icon: icon,
  409. operate: {
  410. know: "知道了",
  411. },
  412. };
  413. });
  414. },
  415. //需要帮助,无需帮助取消
  416. cancel() {
  417. this.models.disjunctor = false;
  418. },
  419. //知道了
  420. know() {
  421. this.models.disjunctor = false;
  422. },
  423. // 知道了
  424. showAlert() {
  425. uni.navigateTo({
  426. url: "../receiptpage/receiptpage",
  427. });
  428. },
  429. //一键操作
  430. allStart(data) {
  431. let list = {};
  432. if (data) {
  433. let type = "";
  434. if (data.gdState.value == "8") {
  435. SM().then((ress1) => {
  436. // ----------------
  437. uni.showLoading({
  438. title: "加载中",
  439. mask: true,
  440. });
  441. //检验二维码的有效性
  442. post("/dept/scanning", {
  443. content: ress1,
  444. }).then((result) => {
  445. if (result.state == 200 || result.state == 201) {
  446. let ress = result.code;
  447. if (ress) {
  448. var ids = [];
  449. ids.push(data.id);
  450. type = "orderSign/" + ress;
  451. list = ids;
  452. // 科室签到
  453. post("/workerOrder/" + type, list).then((res) => {
  454. uni.hideLoading();
  455. if (res.status == 200) {
  456. // model: JSON.stringify(res), //签到返回的信息
  457. // type: data.taskType.associationType.value, //关联类型
  458. // code: ress, //二维码code
  459. // ids //科室ID数组
  460. uni.navigateTo({
  461. url: `../scanning_djEnd/scanning_djEnd?type=${
  462. data.taskType.associationType.value
  463. }&code=${ress}&ids=${ids}&model=${encodeURIComponent(
  464. JSON.stringify(res)
  465. )}`,
  466. });
  467. } else {
  468. uni.navigateTo({
  469. url: `../scanning_djEnd/scanning_djEnd?model=${encodeURIComponent(
  470. JSON.stringify(res)
  471. )}`,
  472. });
  473. }
  474. });
  475. }
  476. } else {
  477. uni.hideLoading();
  478. uni.showToast({
  479. icon: "none",
  480. title: "请求失败!",
  481. });
  482. }
  483. });
  484. // ------------------------------
  485. });
  486. } else {
  487. if (data.taskType.associationType.value == "patientTransport") {
  488. type = "handleTrans";
  489. let data = {
  490. ids: this.userId.ids,
  491. // "11789558|51131895|7|黄石城乡|陈琛|女|19981003|20180803081051|Z消化内科Ⅰ"
  492. code: this.code,
  493. };
  494. list = data;
  495. }
  496. if (data.taskType.associationType.value == "inspect") {
  497. type = "handleIns";
  498. let data = {
  499. ids: this.userId.ids,
  500. // "11789558|51131895|7|黄石城乡|陈琛|女|19981003|20180803081051|Z消化内科Ⅰ"
  501. code: this.code,
  502. };
  503. list = data;
  504. }
  505. uni.showLoading({
  506. title: "加载中",
  507. mask: true,
  508. });
  509. post("/workerOrder/" + type, list).then((res) => {
  510. uni.hideLoading();
  511. if (res.status == 200) {
  512. uni.navigateTo({
  513. url: `../scanning_insEnd/scanning_insEnd?type=${
  514. data.taskType.associationType.value
  515. }&model=${encodeURIComponent(JSON.stringify(res))}`,
  516. });
  517. } else {
  518. uni.navigateTo({
  519. url: `../scanning_insEnd/scanning_insEnd?model=${encodeURIComponent(
  520. JSON.stringify(res)
  521. )}`,
  522. });
  523. }
  524. });
  525. }
  526. } else {
  527. this.models = {
  528. disjunctor: true,
  529. content: "请选择工单",
  530. icon: "warn",
  531. operate: {
  532. know: "知道了",
  533. },
  534. };
  535. }
  536. },
  537. //选中
  538. ac(data, i, type) {
  539. this.idTYPE = "";
  540. },
  541. //未选中
  542. ac1(data, i, type) {
  543. if (this.idTYPE == data.id) {
  544. //显示
  545. this.isShow = true;
  546. this.idTYPE = "";
  547. this.userId.ids = [];
  548. this.typeData = null;
  549. } else {
  550. if (data.gdState.value >= 5) {
  551. //隐藏
  552. this.isShow = false;
  553. } else {
  554. //显示
  555. this.isShow = true;
  556. }
  557. this.idTYPE = data.id;
  558. this.typeData = data;
  559. this.userId.ids[0] = this.idTYPE;
  560. }
  561. },
  562. texiao() {
  563. if (this.workData && this.workData.length > 0) {
  564. setTimeout(() => {
  565. this.animation.height(0).opacity(0).step();
  566. this.animationData = this.animation.export();
  567. }, 15000);
  568. }
  569. },
  570. // 获取需要帮助权限
  571. getWechatFocusSwitch() {
  572. let postData = {
  573. idx: 0,
  574. sum: 1,
  575. taskType: {
  576. hosIds: this.hosId,
  577. associationType: {
  578. id: 260,
  579. },
  580. },
  581. };
  582. post("/configuration/fetchDataList/taskType", postData).then((res) => {
  583. if (res.status == 200) {
  584. this.wechatFocusSwitch = res.list[0].wechatFocusSwitch || 0;
  585. } else {
  586. uni.showToast({
  587. icon: "none",
  588. title: "请求失败!",
  589. });
  590. }
  591. });
  592. },
  593. },
  594. onLoad(options) {
  595. console.log(options);
  596. this.options = options;
  597. // 送回病房建单 start
  598. if (options.id && options.dept) {
  599. this.sendBuild();
  600. }
  601. // 送回病房建单 end
  602. this.hosId = uni.getStorageSync("userData").infoPermission.hospitals[0].id;
  603. this.getWechatFocusSwitch();
  604. this.infoDATA = JSON.parse(options.infoDATA);
  605. console.log(this.infoDATA);
  606. this.workData = JSON.parse(options.workData);
  607. if (options.patientOrders != 'undefined') {
  608. this.patientOrders = JSON.parse(options.patientOrders);
  609. }
  610. this.code = options.code;
  611. // #ifdef APP-PLUS
  612. webHandle("no", "app");
  613. // #endif
  614. // #ifdef H5
  615. webHandle("no", "wx");
  616. // #endif
  617. },
  618. onShow() {
  619. // 创建动画
  620. this.animation = uni.createAnimation({
  621. duration: 500,
  622. timingFunction: "ease",
  623. delay: 2000,
  624. });
  625. setTimeout(() => {
  626. this.texiao();
  627. }, 500);
  628. },
  629. onHide() {
  630. this.animationData = {};
  631. },
  632. onUnload() {
  633. // 页面关闭后清空数据
  634. this.animationData = {};
  635. },
  636. };
  637. </script>
  638. <style lang="less">
  639. ::-webkit-scrollbar {
  640. width: 0px;
  641. }
  642. ::-webkit-scrollbar-track {
  643. background-color: none;
  644. }
  645. ::-webkit-scrollbar-thumb {
  646. background-color: none;
  647. }
  648. ::-webkit-scrollbar-thumb:hover {
  649. background-color: none;
  650. }
  651. ::-webkit-scrollbar-thumb:active {
  652. background-color: none;
  653. }
  654. .Scanning_ins {
  655. .title {
  656. font-size: 36rpx;
  657. margin-top: 20rpx;
  658. margin-bottom: 20rpx;
  659. font-weight: 700;
  660. position: relative;
  661. height: 40rpx;
  662. .span1 {
  663. position: absolute;
  664. left: 0;
  665. font-weight: 700;
  666. }
  667. .span2 {
  668. position: absolute;
  669. right: 20%;
  670. color: rgb(73, 184, 86);
  671. }
  672. .span3 {
  673. position: absolute;
  674. right: 0;
  675. color: rgb(73, 184, 86);
  676. }
  677. }
  678. .Scanning {
  679. padding: 0 20rpx;
  680. .Scanning_top {
  681. height: 400rpx;
  682. .Scanning_top_icon {
  683. width: 140rpx;
  684. height: 140rpx;
  685. margin: 0 auto;
  686. margin-top: 36rpx;
  687. border-radius: 50%;
  688. line-height: 140rpx;
  689. .cubeic-ok {
  690. font-size: 140rpx;
  691. color: #35b34a;
  692. }
  693. }
  694. .Scanning_top_text {
  695. .text1 {
  696. margin-top: 30rpx;
  697. font-size: 48rpx;
  698. text-align: center;
  699. }
  700. .success_tips{
  701. color: red;
  702. font-size: 30rpx;
  703. }
  704. }
  705. .Scanning_cont {
  706. font-size: 32rpx;
  707. margin-top: 16rpx;
  708. view {
  709. margin-bottom: 8rpx;
  710. display: flex;
  711. justify-content: center;
  712. align-items: center;
  713. button {
  714. font-size: 32rpx;
  715. height: 52rpx;
  716. line-height: 52rpx;
  717. margin: 0;
  718. color: rgb(7, 134, 60);
  719. font-weight: 700;
  720. }
  721. }
  722. .text {
  723. margin-top: 24rpx;
  724. color: #35b34a;
  725. }
  726. .text1 {
  727. margin-top: 24rpx;
  728. color: #ff3b53;
  729. }
  730. }
  731. }
  732. .page_items {
  733. margin-bottom: 110rpx;
  734. .zwsj {
  735. margin-top: 180rpx;
  736. display: flex;
  737. flex-direction: column;
  738. align-items: center;
  739. .zwsj_txt {
  740. font-size: 36rpx;
  741. font-weight: 700;
  742. margin-top: 20rpx;
  743. }
  744. .zwsj_img {
  745. width: 582rpx;
  746. }
  747. }
  748. .page_item {
  749. margin-top: 16rpx;
  750. min-height: 310rpx;
  751. background: #fff;
  752. border-radius: 8rpx;
  753. overflow: hidden;
  754. padding: 0 16rpx;
  755. border: 2rpx solid #e5e9ed;
  756. .L {
  757. width: 40rpx;
  758. height: 40rpx;
  759. border-radius: 50%;
  760. background: #f9fafb;
  761. position: relative;
  762. left: -50rpx;
  763. top: 66rpx;
  764. }
  765. .R {
  766. width: 40rpx;
  767. height: 40rpx;
  768. border-radius: 50%;
  769. background: #f9fafb;
  770. position: relative;
  771. float: right;
  772. right: -50rpx;
  773. top: 26rpx;
  774. }
  775. .starting {
  776. width: 50rpx;
  777. height: 50rpx;
  778. color: #fff;
  779. background: #49b856;
  780. display: inline-block;
  781. border-radius: 50%;
  782. text-align: center;
  783. line-height: 46rpx;
  784. font-size: 32rpx;
  785. margin-right: 6rpx;
  786. }
  787. .End {
  788. width: 50rpx;
  789. height: 50rpx;
  790. color: #fff;
  791. background: #39b199;
  792. display: inline-block;
  793. border-radius: 50%;
  794. text-align: center;
  795. line-height: 46rpx;
  796. font-size: 32rpx;
  797. margin-right: 6rpx;
  798. }
  799. .page_item_top {
  800. height: 86rpx;
  801. border-bottom: 2rpx dashed #e5e9ed;
  802. padding: 0 16rpx;
  803. .page_item_top_L {
  804. height: 100%;
  805. float: left;
  806. line-height: 88rpx;
  807. display: flex;
  808. align-items: center;
  809. .ac {
  810. width: 32rpx;
  811. height: 32rpx;
  812. border: 2rpx solid #ccc;
  813. display: flex;
  814. justify-content: center;
  815. align-items: center;
  816. position: relative;
  817. .acSpan {
  818. width: 24rpx;
  819. height: 24rpx;
  820. background: #39b199;
  821. display: block;
  822. }
  823. }
  824. .ac1 {
  825. width: 32rpx;
  826. height: 32rpx;
  827. border: 2rpx solid #ccc;
  828. display: inline-block;
  829. position: relative;
  830. }
  831. .emergencys {
  832. background: #ff3b53 !important;
  833. width: 124rpx !important;
  834. }
  835. .emergency {
  836. background: #ff3b53 !important;
  837. }
  838. .emergency1 {
  839. background: #49b856 !important;
  840. }
  841. .page_item_cont_start {
  842. text-align: center;
  843. height: 44rpx;
  844. width: 104rpx;
  845. line-height: 44rpx;
  846. border-radius: 8rpx;
  847. background: #49b856;
  848. color: #fff;
  849. display: inline-block;
  850. font-size: 28rpx;
  851. }
  852. .L_time {
  853. color: #6cc076;
  854. font-size: 32rpx;
  855. }
  856. .L_text {
  857. font-size: 32rpx;
  858. display: inline-block;
  859. font-weight: 700;
  860. }
  861. }
  862. .page_item_top_R {
  863. height: 60rpx;
  864. float: right;
  865. padding-top: 20rpx;
  866. font-size: 32rpx;
  867. position: absolute;
  868. right: 50rpx;
  869. .L_iocn {
  870. display: inline-block;
  871. height: 52rpx;
  872. line-height: 48rpx;
  873. color: rgb(7, 134, 60);
  874. font-size: 36rpx;
  875. font-weight: 700;
  876. }
  877. }
  878. }
  879. .page_item_cont {
  880. min-height: 180rpx;
  881. max-height: 424rpx;
  882. padding: 0 16rpx;
  883. text-align: left;
  884. position: relative;
  885. .text_big {
  886. font-size: 32rpx;
  887. position: absolute;
  888. right: 16rpx;
  889. font-weight: 700;
  890. margin-top: 10rpx;
  891. }
  892. .text_big2 {
  893. font-size: 32rpx;
  894. position: absolute;
  895. right: 16rpx;
  896. font-weight: 700;
  897. }
  898. .line {
  899. height: 20rpx;
  900. width: 2rpx;
  901. border-left: 2rpx solid #e5e9ed;
  902. position: absolute;
  903. top: 82rpx;
  904. left: 40rpx;
  905. }
  906. .lines {
  907. height: 40%;
  908. width: 2rpx;
  909. border-left: 2rpx solid #e5e9ed;
  910. position: absolute;
  911. top: 23%;
  912. left: 36rpx;
  913. }
  914. .page_item_cont_T {
  915. padding-top: 28rpx;
  916. font-size: 28rpx;
  917. .page_item_cont_title {
  918. height: 100%;
  919. font-size: 32rpx;
  920. }
  921. }
  922. .page_item_cont_B {
  923. padding-top: 28rpx;
  924. margin-bottom: 28rpx;
  925. .page_item_cont_title {
  926. height: 60rpx;
  927. font-size: 32rpx;
  928. }
  929. .page_item_cont_title1 {
  930. height: 60rpx;
  931. line-height: 60rpx;
  932. font-size: 32rpx;
  933. padding-left: 64rpx;
  934. }
  935. }
  936. }
  937. .page_item_foot {
  938. border-top: 2rpx dashed #e5e9ed;
  939. border-bottom: 2rpx dashed #e5e9ed;
  940. padding: 28rpx 16rpx;
  941. text-align: left;
  942. .page_item_foot_text {
  943. height: 48rpx;
  944. font-size: 32rpx;
  945. line-height: 48rpx;
  946. margin-bottom: 20rpx;
  947. .text1 {
  948. color: rgb(102, 102, 102);
  949. }
  950. .text2 {
  951. float: right;
  952. font-weight: 700;
  953. }
  954. }
  955. }
  956. #infos {
  957. display: none;
  958. }
  959. .page_item_infos {
  960. padding-bottom: 20rpx;
  961. border-bottom: 2rpx dashed #e5e9ed;
  962. .page_item_info2 {
  963. text-align: left;
  964. line-height: 60rpx;
  965. font-size: 32rpx;
  966. padding-left: 16rpx;
  967. .page_item_foot_text {
  968. height: 48rpx;
  969. font-size: 32rpx;
  970. line-height: 48rpx;
  971. margin-bottom: 20rpx;
  972. .text1 {
  973. color: rgb(102, 102, 102);
  974. }
  975. .text2 {
  976. float: right;
  977. font-weight: 700;
  978. }
  979. }
  980. }
  981. }
  982. }
  983. }
  984. .foot_btn2 {
  985. position: fixed;
  986. bottom: 0;
  987. right: 20rpx;
  988. left: 20rpx;
  989. line-height: 66rpx;
  990. height: 100rpx;
  991. border-top: 2rpx solid #e5e9ed;
  992. background: #f9fafb;
  993. display: flex;
  994. justify-content: space-between;
  995. .btn1,
  996. .btn2,
  997. .btn3 {
  998. height: 66rpx;
  999. width: 32%;
  1000. background-image: linear-gradient(to right, #72c172, #3bb197);
  1001. color: #fff;
  1002. border-radius: 8rpx;
  1003. font-size: 32rpx;
  1004. margin-top: 16rpx;
  1005. text-align: center;
  1006. }
  1007. .btn3 {
  1008. width: 100%;
  1009. }
  1010. }
  1011. }
  1012. }
  1013. </style>