bigScreen.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. <template>
  2. <view class="toolbar" :class="!isNumberKey?'fixed-class':''" @click="Scanning()" hover-class="seimin-btn-hover">
  3. <text class="toolbar-icon newicon newicon-saoma"></text>
  4. <text class="toolbar-sao">扫一扫</text>
  5. <!-- 填写交接人工号弹窗 -->
  6. <selectAccount @click.stop.native v-if="hosModels.disjunctor" :disjunctor="hosModels.disjunctor" @ok="hosOk"
  7. @cancel="hosCancel">
  8. </selectAccount>
  9. </view>
  10. </template>
  11. <script>
  12. import {
  13. post,
  14. SM
  15. } from "../../http/http.js";
  16. export default {
  17. data() {
  18. return {
  19. hosId: uni.getStorageSync('userData').user.currentHospital.id,
  20. // 填写交接人工号弹窗model
  21. hosModels: {
  22. disjunctor: false,
  23. },
  24. userId: {
  25. ids: [],
  26. },
  27. workData: [],
  28. infoDATA: {},
  29. tabType: "", //当前选中项
  30. selectArr: [], //选中项
  31. code: "",
  32. currentCode: '', //当前小扫描的科室二维码
  33. SMFlag: true,
  34. }
  35. },
  36. props:{
  37. isNumberKey:Boolean
  38. },
  39. methods: {
  40. // 填写交接人工号-确认
  41. hosOk(data) {
  42. console.log(data);
  43. const {
  44. accountName,
  45. account,
  46. accountId
  47. } = data;
  48. if (!accountName && !account) {
  49. //没有填写交接人
  50. uni.showModal({
  51. title: "提示",
  52. content: "请填写交接人工号!",
  53. showCancel: false,
  54. success: function(res) {
  55. if (res.confirm) {
  56. console.log("用户点击确定");
  57. } else if (res.cancel) {
  58. console.log("用户点击取消");
  59. }
  60. },
  61. });
  62. return;
  63. } else if ((!accountName && account) || (accountName && !account)) {
  64. //没有填写交接人
  65. uni.showModal({
  66. title: "提示",
  67. content: "请填写正确的交接人工号!",
  68. showCancel: false,
  69. success: function(res) {
  70. if (res.confirm) {
  71. console.log("用户点击确定");
  72. } else if (res.cancel) {
  73. console.log("用户点击取消");
  74. }
  75. },
  76. });
  77. return;
  78. }
  79. this.hosModels.disjunctor = false;
  80. this.orderDeptHandler(false, data);
  81. },
  82. // 填写交接人工号-取消
  83. hosCancel() {
  84. this.hosModels.disjunctor = false;
  85. this.flag = true;
  86. },
  87. // 填写交接人工号弹窗
  88. showSelectAccount() {
  89. this.hosModels = {
  90. disjunctor: true,
  91. };
  92. },
  93. // 标本配送-待送达-运输过程-标本数字交接,则,科室签到不需要填写交接人
  94. validateHandoverSpecimen(){
  95. return post("/simple/data/fetchDataList/taskType", {
  96. "idx": 0,
  97. "sum": 1,
  98. "taskType": {
  99. "hosId": {
  100. "id": this.hosId
  101. },
  102. "associationType": {
  103. "key": "association_types",
  104. "value": "specimen"
  105. }
  106. }
  107. });
  108. },
  109. //科室签到
  110. //trueBigScanner----判断是否大扫描
  111. //bigScanner----判断是否需要交接人
  112. //accountObj----弹窗填写的交接人信息
  113. async orderDeptHandler(bigScanner, accountObj) {
  114. console.log(this.infoDATA);
  115. uni.showLoading({
  116. title: "加载中",
  117. mask: true,
  118. });
  119. if(this.tabType === 'specimen' && this.infoDATA.specimen && this.infoDATA.specimen[0].gdState.value == 5){
  120. let result = await this.validateHandoverSpecimen();
  121. if (result.status == 200) {
  122. if(result.list.length){
  123. // 标本-运送过程-终点科室-标本数字交接
  124. if(result.list[0].carryingCourses[1].checkoutMethod.value == 3){
  125. bigScanner = false;
  126. }
  127. }else{
  128. uni.showToast({
  129. icon: "none",
  130. title: "请配置标本配送任务类型!",
  131. });
  132. uni.hideLoading();
  133. return;
  134. }
  135. }
  136. }
  137. let type = "orderSign/" + this.code;
  138. let list = {
  139. ids: this.userId.ids,
  140. trueBigScanner: ['666']
  141. };
  142. bigScanner && (list.bigScanner = ['666']);
  143. if (accountObj) {
  144. list.handover = [accountObj.accountId];
  145. }
  146. post("/workerOrder/" + type, list).then((res) => {
  147. console.log(this.tabType)
  148. uni.hideLoading();
  149. if (res.status == 200) {
  150. if (this.tabType == 'specimenPlan') {
  151. // -----------------------------
  152. console.log(this.selectArr, '选中工单')
  153. let gd = this.infoDATA.specimenPlan.find(v => v.id == this.selectArr[0]);
  154. let startDeptId = gd.startDept.id; //起点科室id
  155. let isDigitalHandover = gd.taskType.isDigitalHandover; //是否数字交接开关
  156. let signDeptId = res.deptId; //签到的科室id
  157. let gdId = gd.id;
  158. let gdState = gd.gdState.value;
  159. let endDepts = gd.endDepts.map(v => v.id).toString();
  160. uni.navigateTo({
  161. url: `../scanning_djEnd/scanning_djEnd?type=${
  162. this.tabType
  163. }&type1=${res.type}&code=${this.code}&dept=${
  164. res.dept
  165. }&ids=${encodeURIComponent(
  166. JSON.stringify(this.userId.ids)
  167. )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}&startDeptId=${startDeptId}&isDigitalHandover=${isDigitalHandover}&signDeptId=${signDeptId}&gdId=${gdId}&gdState=${gdState}&endDepts=${endDepts}`,
  168. });
  169. } else if (this.tabType == 'specimen') {
  170. // 同济是false
  171. if (res.deptType && res.deptType.value === 'middleRoom') {
  172. // if (false) {
  173. // 如果是中转科室
  174. uni.navigateTo({
  175. url: `../checkAfterBigScreen/checkAfterBigScreen?type=${
  176. this.tabType
  177. }&type1=${res.type}&code=${this.code}&dept=${
  178. res.dept
  179. }&ids=${encodeURIComponent(
  180. JSON.stringify(this.userId.ids)
  181. )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}`,
  182. });
  183. } else if(res.type === 'spe-dsd-4'){
  184. // 检验方式是标本数字交接
  185. uni.navigateTo({
  186. url: `/pages/specimenHandoverNew/specimenHandoverNew?type=${
  187. this.tabType
  188. }&type1=${res.type}&code=${this.code}&dept=${
  189. res.dept
  190. }&ids=${encodeURIComponent(
  191. JSON.stringify(this.userId.ids)
  192. )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}`,
  193. });
  194. } else{
  195. uni.navigateTo({
  196. url: `../scanning_djEnd/scanning_djEnd?type=${
  197. this.tabType
  198. }&type1=${res.type}&code=${this.code}&dept=${
  199. res.dept
  200. }&ids=${encodeURIComponent(
  201. JSON.stringify(this.userId.ids)
  202. )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}`,
  203. });
  204. }
  205. }
  206. } else if (res.status == "0000") {
  207. this.showSelectAccount();
  208. } else {
  209. this.flag = true;
  210. uni.navigateTo({
  211. url: `../scanning_djEnd/scanning_djEnd?type=${this.tabType}&type1=${
  212. res.type
  213. }&code=${this.code}&dept=${res.dept}&ids=${encodeURIComponent(
  214. JSON.stringify(this.userId.ids)
  215. )}&model=${encodeURIComponent(JSON.stringify(res))}&deptId=${res.deptId}`,
  216. });
  217. }
  218. });
  219. },
  220. //获取药包信息
  221. getInfo(responeseData, code){
  222. console.log(responeseData);
  223. uni.showLoading({
  224. title: "加载中",
  225. mask: true,
  226. });
  227. post(`/transflow/scanInfo`, {type: responeseData.drugsBagType, id: responeseData.drugsBagId, orderStateValue: responeseData.orderStateValue}).then(res => {
  228. uni.hideLoading();
  229. if(res.state == 200){
  230. if(res.data){
  231. let drugsBag = res.data.dto || {};
  232. let orderId = responeseData.orderId;
  233. let config = res.data.taskTypeConfig || {};
  234. console.log(res);
  235. if(responeseData.orderStateValue == 2 || responeseData.orderStateValue == 3 || responeseData.orderStateValue == 4){
  236. // 待抢单、待接单、待到达,进入起点科室流程
  237. uni.navigateTo({
  238. url: `/pages/newDrug/createOrder/createOrder?drugsBagType=${responeseData.drugsBagType}&drugsBagId=${responeseData.drugsBagId}&orderId=${responeseData.orderId || ''}`,
  239. });
  240. }else if(responeseData.orderStateValue == 5){
  241. // 待送达,进入起点科室流程
  242. this.pageNavigateByConfig(config, responeseData, responeseData, code)
  243. }
  244. }
  245. }else{
  246. uni.showToast({
  247. icon: "none",
  248. title: res.msg || "接口获取数据失败!",
  249. });
  250. }
  251. })
  252. },
  253. // 工单完成
  254. completeOrder(responseData, queryObj){
  255. console.log(responseData, queryObj)
  256. uni.showLoading({
  257. title: "加载中",
  258. mask: true,
  259. });
  260. let postData = {
  261. "type": queryObj.drugsBagType,
  262. "orderId": responseData.orderId,
  263. };
  264. post('/transflow/checkComplete', postData).then(res => {
  265. uni.hideLoading();
  266. if(res.state == 200){
  267. uni.showToast({
  268. icon: "none",
  269. title: responseData.orderStateValue == 4 ? "交接成功,请尽快送达科室!" : (responseData.orderStateValue == 5 ? "交接成功,完成配送!" : ""),
  270. duration: 60000,
  271. mask: true,
  272. complete(){
  273. setTimeout(() => {
  274. uni.hideToast();
  275. uni.redirectTo({
  276. url: `/pages/receiptpage/receiptpage`,
  277. });
  278. }, 2000)
  279. }
  280. });
  281. }else{
  282. uni.showToast({
  283. icon: "none",
  284. title: res.msg || "接口获取数据失败!",
  285. });
  286. }
  287. })
  288. },
  289. // 根据配置跳转页面
  290. pageNavigateByConfig(config, responseData, queryObj, code){
  291. let drugsBagType = queryObj.drugsBagType;
  292. let orderId = responseData.orderId;
  293. let drugsBagId = responseData.drugsBagId;
  294. let orderStateValue = responseData.orderStateValue;
  295. if(config.drugsModel === 1){
  296. // 一单一码
  297. if(responseData.orderStateValue == 4){
  298. // 待到达
  299. if(config.drugsStartCheck === 1){
  300. // 起点科室支持核对
  301. uni.navigateTo({
  302. url: `/pages/newDrug/checkPage/checkPage?drugsBagType=${drugsBagType}&orderId=${orderId}`,
  303. });
  304. }else{
  305. // 起点科室不支持核对
  306. if(config.drugsStartPhoto === 1){
  307. // 起点科室支持拍照留存
  308. uni.navigateTo({
  309. url: `/pages/newDrug/photoRetention/photoRetention?drugsBagType=${drugsBagType}&orderId=${orderId}`,
  310. });
  311. }else{
  312. // 起点科室不支持拍照留存
  313. this.completeOrder(responseData, queryObj);
  314. }
  315. }
  316. }else if(responseData.orderStateValue == 5){
  317. // 待送达
  318. if(config.drugsEndCheck === 1){
  319. // 起点科室支持核对
  320. uni.navigateTo({
  321. url: `/pages/newDrug/checkPage/checkPage?drugsBagType=${drugsBagType}&orderId=${orderId}`,
  322. });
  323. }else{
  324. // 起点科室不支持核对
  325. if(config.drugsEndPhoto === 1){
  326. // 起点科室支持拍照留存
  327. uni.navigateTo({
  328. url: `/pages/newDrug/photoRetention/photoRetention?drugsBagType=${drugsBagType}&orderId=${orderId}`,
  329. });
  330. }else{
  331. // 终点科室不支持拍照留存
  332. this.completeOrder(responseData, queryObj);
  333. }
  334. }
  335. }
  336. }else if(config.drugsModel === 2){
  337. // 一单多码
  338. uni.showLoading({
  339. title: "加载中",
  340. mask: true,
  341. });
  342. post("/transflow/scanBind", { type: drugsBagType, orderId, code }).then((ress) => {
  343. uni.hideLoading();
  344. if (ress.state == 200 && ress.data.state != 501 && ress.data.state != 502) {
  345. uni.navigateTo({
  346. url: `/pages/newDrug/continueScanning/continueScanning?drugsBagType=${drugsBagType}&orderId=${orderId}&drugsBagId=${drugsBagId}&orderStateValue=${orderStateValue}`,
  347. });
  348. } else {
  349. uni.showToast({
  350. icon: "none",
  351. title: ress.msg || "接口获取数据失败!",
  352. });
  353. }
  354. });
  355. }
  356. },
  357. // 底部扫描
  358. Scanning(qrcodePrefix = '') {
  359. if (!this.SMFlag) {
  360. return;
  361. }
  362. this.SMFlag = false;
  363. SM().then((content) => {
  364. uni.showLoading({
  365. title: "加载中",
  366. mask: true,
  367. });
  368. //检验二维码的有效性(扫码前必须验证)
  369. post("/dept/scanning", {
  370. content,
  371. })
  372. .then((result) => {
  373. this.currentCode = result.code;
  374. this.SMFlag = true;
  375. // 200检测通过,201没有有效期也通过。
  376. if (result.state == 200 || result.state == 201) {
  377. let data = {
  378. code: result.code, //二维码
  379. };
  380. //微信—大扫描(科室码,患者码,标本码,快捷建单码,药包码)
  381. let code = result.code.includes(qrcodePrefix) ? result.code : qrcodePrefix + result.code;
  382. post("/workerOrder/scanCode", { code, hosId: this.hosId })
  383. .then((res) => {
  384. uni.hideLoading();
  385. if (res.status == 200) {
  386. // 扫描标本码
  387. if (res.type == "specimen") {
  388. let infoDATA = {
  389. stype: res.data.stype,
  390. scode: res.data.scode,
  391. patientName: res.data.patientName,
  392. sickRoom: res.data.sickRoom ?
  393. res.data.sickRoom.dept : "-",
  394. checkDept: res.data.checkDept ?
  395. res.data.checkDept.dept : "-",
  396. bedNum: res.data.bedNum,
  397. };
  398. uni.navigateTo({
  399. url: `../scanning_B/scanning_B?res=${encodeURIComponent(
  400. JSON.stringify(res)
  401. )}&infoDATA=${encodeURIComponent(
  402. JSON.stringify(infoDATA)
  403. )}`,
  404. });
  405. } else if (res.type == "patient") {
  406. //如果是患者腕带码
  407. // code: data.code //二维码
  408. res.workOrder = res.workOrder ? res.workOrder : []; //liao
  409. uni.navigateTo({
  410. url: `../scanning_ins/scanning_ins?code=${
  411. data.code
  412. }&infoDATA=${encodeURIComponent(
  413. JSON.stringify(res.data)
  414. )}&workData=${encodeURIComponent(
  415. JSON.stringify(res.workOrder)
  416. )}&patientOrders=${encodeURIComponent(
  417. JSON.stringify(res.patientOrders)
  418. )}`,
  419. });
  420. } else if (res.type == "quickOrder") {
  421. //快捷建单
  422. if(res.data.isDigitalHandover == 1){
  423. uni.navigateTo({
  424. url: `../specimenChecking/specimenChecking?infoDATA=${encodeURIComponent(
  425. JSON.stringify(res.data)
  426. )}`,
  427. });
  428. }else{
  429. uni.navigateTo({
  430. url: `../shortcutbuildOrders/shortcutbuildOrders?infoDATA=${encodeURIComponent(
  431. JSON.stringify(res.data)
  432. )}`,
  433. });
  434. }
  435. } else if (res.type == "dept") {
  436. // 扫描科室码
  437. // code: data.code //二维码
  438. let infoDATA = res.data;
  439. console.log(infoDATA)
  440. // 判断是否是标本配送,并且仅仅只有这一种业务类型,默认全选,并跳转到下一步;
  441. // 判断是否是标本轮巡 ,并且仅仅只有这一种业务类型,并且只有一个工单,默认选中,并跳转到下一步;
  442. if(Object.keys(infoDATA).length === 1 && (infoDATA.specimen || (infoDATA.specimenPlan && infoDATA.specimenPlan.length === 1))){
  443. this.infoDATA = infoDATA;
  444. this.workData = infoDATA.specimen || infoDATA.specimenPlan;
  445. this.tabType = infoDATA.specimen ? 'specimen' : 'specimenPlan';
  446. this.code = data.code;
  447. this.selectArr = [];
  448. for (var i = 0; i < this.workData.length; i++) {
  449. this.selectArr.push(this.workData[i].id);
  450. }
  451. this.userId.ids = this.selectArr;
  452. this.orderDeptHandler(true);
  453. }else if(res.deptHandoverType && res.deptHandoverType.value == 'clinicalWaste'){
  454. // 医废
  455. uni.navigateTo({
  456. url: `/pages/medicalWaste/medicalWasteSignIn/medicalWasteSignIn?code=${data.code}&deptName=${res.deptName}&deptId=${res.deptId}`,
  457. });
  458. }else{
  459. uni.navigateTo({
  460. url: `../scanning_all/scanning_all?infoDATA=${encodeURIComponent(
  461. JSON.stringify(infoDATA)
  462. )}&code=${data.code}&deptName=${res.deptName}&deptId=${res.deptId}`,
  463. });
  464. }
  465. } else if (res.type == 'drugsBag') {
  466. if (res.drugsBagType == 'drugsJpbag' || res.drugsBagType == 'drugsWestern' || res.drugsBagType == 'drugsReturn' || res.drugsBagType == 'drugsPoison' || res.drugsBagType == 'drugsHerbal') {
  467. //新药品-扫静配|西药|退药|毒麻|中草药
  468. if(res.orderId){
  469. // 有工单
  470. this.getInfo(res, code);
  471. }else{
  472. // 没有工单,进入起点科室流程
  473. uni.navigateTo({
  474. url: `/pages/newDrug/createOrder/createOrder?drugsBagType=${res.drugsBagType}&drugsBagId=${res.drugsBagId}&orderId=${res.orderId || ''}`,
  475. });
  476. }
  477. }else{
  478. //扫药包码
  479. uni.navigateTo({
  480. url: `/pages/scanning_drug/scanning_drug?drugsBagId=${res.drugsBagId}&drugsBagBatchNo=${res.drugsBagBatchNo}`,
  481. });
  482. }
  483. } else if (res.type == 'nucleicAcid') {
  484. //扫核酸码
  485. uni.navigateTo({
  486. url: `/pages/scanning_nucleicAcid/scanning_nucleicAcid?qrcode=${data.code}`,
  487. });
  488. } else if (res.type == 'blood') {
  489. //扫血制品
  490. // 判断size,多个则进入新页面选择
  491. if(res.size > 1){
  492. uni.navigateTo({
  493. url: `/pages/bloodSelect/bloodSelect?qrcode=${data.code}&navigateTo=scanning_blood`,
  494. });
  495. } else {
  496. uni.navigateTo({
  497. url: `/pages/scanning_blood/scanning_blood?qrcode=${data.code}`,
  498. });
  499. }
  500. } else if (res.type == 'receiveOrder') {
  501. //扫快捷接单
  502. uni.showModal({
  503. title: "提示",
  504. content: `您本次接单包括${res.names.join('、')},一共含有${res.data.length}个工单,是否确认接单?`,
  505. success: function(result) {
  506. if (result.confirm) {
  507. uni.showLoading({
  508. title: "加载中",
  509. mask: true,
  510. });
  511. post("/workerOrder/receiveOrders", {ids: res.data.toString()}).then((result) => {
  512. uni.hideLoading();
  513. if (result.status == 200) {
  514. uni.showModal({
  515. title: "提示",
  516. content: `本次接单包括${res.names.join('、')},${res.data.length}个工单已接单完成`,
  517. showCancel: false,
  518. success: function(res) {
  519. if (res.confirm) {
  520. console.log("用户点击确定");
  521. uni.redirectTo({
  522. url: "../receiptpage/receiptpage",
  523. });
  524. } else if (res.cancel) {
  525. console.log("用户点击取消");
  526. }
  527. },
  528. });
  529. } else {
  530. uni.showToast({
  531. icon: "none",
  532. title: result.msg || "接口获取数据失败!",
  533. });
  534. }
  535. });
  536. } else if (result.cancel) {
  537. console.log("用户点击取消");
  538. }
  539. },
  540. });
  541. } else if (res.type == 'bloodTake') {
  542. if(res.data){
  543. //新血制品-扫科室
  544. uni.navigateTo({
  545. url: `/pages/newBlood/startOrderSignBlood/startOrderSignBlood?deptId=${res.deptId}&deptName=${res.deptName}&taskTypeId=${res.taskTypeId}`,
  546. });
  547. }else{
  548. // 走type是dept的流程
  549. // 扫描科室码
  550. // code: data.code //二维码
  551. let infoDATA = res.data;
  552. console.log(infoDATA)
  553. // 判断是否是标本配送,并且仅仅只有这一种业务类型,默认全选,并跳转到下一步;
  554. // 判断是否是标本轮巡 ,并且仅仅只有这一种业务类型,并且只有一个工单,默认选中,并跳转到下一步;
  555. if(Object.keys(infoDATA).length === 1 && (infoDATA.specimen || (infoDATA.specimenPlan && infoDATA.specimenPlan.length === 1))){
  556. this.infoDATA = infoDATA;
  557. this.workData = infoDATA.specimen || infoDATA.specimenPlan;
  558. this.tabType = infoDATA.specimen ? 'specimen' : 'specimenPlan';
  559. this.code = data.code;
  560. this.selectArr = [];
  561. for (var i = 0; i < this.workData.length; i++) {
  562. this.selectArr.push(this.workData[i].id);
  563. }
  564. this.userId.ids = this.selectArr;
  565. this.orderDeptHandler(true);
  566. }else{
  567. uni.navigateTo({
  568. url: `../scanning_all/scanning_all?infoDATA=${encodeURIComponent(
  569. JSON.stringify(infoDATA)
  570. )}&code=${data.code}&deptName=${res.deptName}&deptId=${res.deptId}`,
  571. });
  572. }
  573. }
  574. } else if(res.type == 'clinicalWaste'){
  575. // 医废
  576. if(res.wasteDetails){
  577. uni.navigateTo({
  578. url: `/pages/medicalWaste/medicalWasteDetail/medicalWasteDetail?qrcode=${res.code}`,
  579. });
  580. }else{
  581. uni.navigateTo({
  582. url: `/pages/medicalWaste/medicalWasteBind/medicalWasteBind?qrcode=${res.code}`,
  583. });
  584. }
  585. }
  586. } else {
  587. if(res.bigScanSpecialMsg){
  588. uni.navigateTo({
  589. url: `../scanning_big_Result/scanning_big_Result?msg=${res.msg || ''}&qrcode=${this.currentCode}&bigScanSpecialMsg=${encodeURIComponent(JSON.stringify(res.bigScanSpecialMsg))}`,
  590. });
  591. }else{
  592. uni.navigateTo({
  593. url: `../scanning_Result/scanning_Result?status=${res.status}&msg=${res.msg}&qrcode=${this.currentCode}`,
  594. });
  595. }
  596. }
  597. });
  598. } else {
  599. uni.hideLoading();
  600. uni.showToast({
  601. icon: "none",
  602. title: result.info || "接口获取数据失败!",
  603. });
  604. }
  605. })
  606. }).catch(err => {
  607. this.SMFlag = true;
  608. });
  609. },
  610. },
  611. onShow() {
  612. this.SMFlag = true;
  613. }
  614. };
  615. </script>
  616. <style lang="less">
  617. // 底部扫一扫
  618. .fixed-class{
  619. position: fixed;
  620. }
  621. .toolbar {
  622. // position: fixed;
  623. left: 0;
  624. right: 0;
  625. bottom: 30rpx;
  626. z-index: 999;
  627. height: 88rpx;
  628. display: flex;
  629. justify-content: center;
  630. align-items: center;
  631. box-sizing: border-box;
  632. border-radius: 4rpx;
  633. // box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.24);
  634. // background-color: #e5e9ed;
  635. .toolbar-icon {
  636. font-size: 52rpx;
  637. margin-right: 16rpx;
  638. color: #07863c;
  639. }
  640. .toolbar-sao {
  641. font-size: 36rpx;
  642. color: #333;
  643. }
  644. }
  645. </style>