소스 검색

扫描多次点击问题暂时无法解决,先注释,可多次点击

seimin 3 년 전
부모
커밋
992691fc2a

+ 8 - 8
components/bigScreen/bigScreen.vue

@@ -10,16 +10,16 @@ import { post, SM } from "../../http/http.js";
10 10
 export default {
11 11
   data(){
12 12
     return {
13
-      SMFlag:true,
13
+      // SMFlag:true,
14 14
     }
15 15
   },
16 16
   methods: {
17 17
     // 底部扫描
18 18
     Scanning() {
19
-      if (!this.SMFlag) {
20
-        return;
21
-      }
22
-      this.SMFlag = false;
19
+      // if (!this.SMFlag) {
20
+      //   return;
21
+      // }
22
+      // this.SMFlag = false;
23 23
       SM().then((content) => {
24 24
         uni.showLoading({
25 25
           title: "加载中",
@@ -30,7 +30,7 @@ export default {
30 30
           content,
31 31
         })
32 32
           .then((result) => {
33
-            this.SMFlag = true;
33
+            // this.SMFlag = true;
34 34
             // 200检测通过,201没有有效期也通过。
35 35
             if (result.state == 200 || result.state == 201) {
36 36
               let data = {
@@ -114,12 +114,12 @@ export default {
114 114
             }
115 115
           })
116 116
       }).catch(err=>{
117
-        this.SMFlag = true;
117
+        // this.SMFlag = true;
118 118
       });
119 119
     },
120 120
   },
121 121
   onShow(){
122
-    this.SMFlag = true;
122
+    // this.SMFlag = true;
123 123
   }
124 124
 };
125 125
 </script>

+ 8 - 8
components/smallScreen/smallScreen.vue

@@ -25,7 +25,7 @@
25 25
         hosModels: {
26 26
           disjunctor: false,
27 27
         },
28
-        SMFlag:true,
28
+        // SMFlag:true,
29 29
       }
30 30
     },
31 31
     props: {
@@ -220,10 +220,10 @@
220 220
       // type==2  如果不是患者陪检,患者转运,其他
221 221
       // 扫码(小扫描)
222 222
       Scan_ss(data, type) {
223
-        if (!this.SMFlag) {
224
-          return;
225
-        }
226
-        this.SMFlag = false;
223
+        // if (!this.SMFlag) {
224
+        //   return;
225
+        // }
226
+        // this.SMFlag = false;
227 227
         this.currentData = data;
228 228
         console.log(data, 'data');
229 229
         SM().then((ress1) => {
@@ -237,7 +237,7 @@
237 237
             taskTypeId: data.taskType.id,
238 238
             gdState: data.gdState.id,
239 239
           }).then((result) => {
240
-            this.SMFlag = true;
240
+            // this.SMFlag = true;
241 241
             this.currentCode = result.code;
242 242
             if (result.state == 200 || result.state == 201) {
243 243
               if (result.account) {
@@ -273,7 +273,7 @@
273 273
             }
274 274
           });
275 275
         }).catch(err=>{
276
-          this.SMFlag = true;
276
+          // this.SMFlag = true;
277 277
         });
278 278
       },
279 279
       // 填写交接人账号-确认
@@ -350,7 +350,7 @@
350 350
       selectAccount
351 351
     },
352 352
     onShow(){
353
-      this.SMFlag = true;
353
+      // this.SMFlag = true;
354 354
     }
355 355
   };
356 356
 </script>

+ 8 - 8
pages/patientInformationList/patientInformationList.vue

@@ -87,7 +87,7 @@
87 87
   export default {
88 88
     data() {
89 89
       return {
90
-        SMFlag:true,
90
+        // SMFlag:true,
91 91
         hosId: uni.getStorageSync("userData").user.currentHospital.id,
92 92
         // 选中的患者项
93 93
         currentItem: {},
@@ -228,10 +228,10 @@
228 228
       },
229 229
       // 送回病房-扫描科室
230 230
       scanDept(item) {
231
-        if (!this.SMFlag) {
232
-          return;
233
-        }
234
-        this.SMFlag = false;
231
+        // if (!this.SMFlag) {
232
+        //   return;
233
+        // }
234
+        // this.SMFlag = false;
235 235
         this.currentItem = item;
236 236
         let code = "";
237 237
         SM().then((ress1) => {
@@ -243,7 +243,7 @@
243 243
           post("/dept/scanning", {
244 244
             content: ress1,
245 245
           }).then((result) => {
246
-            this.SMFlag = true;
246
+            // this.SMFlag = true;
247 247
             if (result.state == 200 || result.state == 201) {
248 248
               let ress = result.code;
249 249
               if (ress) {
@@ -299,7 +299,7 @@
299 299
             }
300 300
           });
301 301
         }).catch(err=>{
302
-          this.SMFlag = true;
302
+          // this.SMFlag = true;
303 303
         });
304 304
       },
305 305
       // 送回病房-选择起点科室
@@ -485,7 +485,7 @@
485 485
       // #endif
486 486
     },
487 487
     onShow() {
488
-      this.SMFlag = true;
488
+      // this.SMFlag = true;
489 489
       // #ifdef H5
490 490
       document.body.addEventListener("touchmove", this.stop, {
491 491
         passive: false,

+ 7 - 7
pages/pharmacy/pharmacy.vue

@@ -107,7 +107,7 @@ import { get, post, SM, webHandle } from "../../http/http.js";
107 107
 export default {
108 108
   data() {
109 109
     return {
110
-      SMFlag:true,
110
+      // SMFlag:true,
111 111
       triggered: false, //下拉刷新状态
112 112
       freshing: false, //上拉加载开关
113 113
       scroll_top: 0, //距离顶部的距离
@@ -188,16 +188,16 @@ export default {
188 188
     },
189 189
     // 扫一扫
190 190
     drugsScanning() {
191
-      if (!this.SMFlag) {
192
-        return;
193
-      }
194
-      this.SMFlag = false;
191
+      // if (!this.SMFlag) {
192
+      //   return;
193
+      // }
194
+      // this.SMFlag = false;
195 195
       SM().then((ress) => {
196 196
         uni.navigateTo({
197 197
           url: "../pharmacyDetails/pharmacyDetails?qrcode=" + ress,
198 198
         });
199 199
       }).catch(err=>{
200
-        this.SMFlag = true;
200
+        // this.SMFlag = true;
201 201
       });
202 202
     },
203 203
     //刷新
@@ -309,7 +309,7 @@ export default {
309 309
     // #endif
310 310
   },
311 311
   onShow() {
312
-    this.SMFlag = true;
312
+    // this.SMFlag = true;
313 313
     // #ifdef H5
314 314
     document.body.addEventListener("touchmove", this.stop, { passive: false });
315 315
     // #endif

+ 8 - 8
pages/scanning_Result/scanning_Result.vue

@@ -236,7 +236,7 @@
236 236
       return {
237 237
         deptId:undefined,
238 238
         handover:undefined,
239
-        SMFlag: true,
239
+        // SMFlag: true,
240 240
         // 交接人信息
241 241
         accountObj: undefined,
242 242
         // 完成扫描的id
@@ -288,10 +288,10 @@
288 288
       },
289 289
       // 继续扫描
290 290
       Scanning_again() {
291
-        if (!this.SMFlag) {
292
-          return;
293
-        }
294
-        this.SMFlag = false;
291
+        // if (!this.SMFlag) {
292
+        //   return;
293
+        // }
294
+        // this.SMFlag = false;
295 295
         SM().then((ress1) => {
296 296
           // ----------------
297 297
           uni.showLoading({
@@ -302,7 +302,7 @@
302 302
           post("/dept/scanning", {
303 303
             content: ress1,
304 304
           }).then((result) => {
305
-            this.SMFlag = true;
305
+            // this.SMFlag = true;
306 306
             if (result.state == 200 || result.state == 201) {
307 307
               let codes = result.code;
308 308
               if (codes) {
@@ -413,7 +413,7 @@
413 413
           });
414 414
           // ------------------------------
415 415
         }).catch(err => {
416
-          this.SMFlag = true;
416
+          // this.SMFlag = true;
417 417
         });
418 418
       },
419 419
       // 正常完成扫描
@@ -693,7 +693,7 @@
693 693
       },
694 694
     },
695 695
     onShow() {
696
-      this.SMFlag = true;
696
+      // this.SMFlag = true;
697 697
       this.gotoFlag = true;
698 698
     },
699 699
     onLoad(options) {

+ 8 - 8
pages/scanning_all/scanning_all.vue

@@ -306,7 +306,7 @@ import { post, SM, webHandle } from "../../http/http.js";
306 306
 export default {
307 307
   data() {
308 308
     return {
309
-      SMFlag: true,
309
+      // SMFlag: true,
310 310
       // 填写交接人账号弹窗model
311 311
       hosModels: {
312 312
         disjunctor: false,
@@ -466,10 +466,10 @@ export default {
466 466
           ) {
467 467
             this.orderDeptHandler(true);
468 468
           } else {
469
-            if (!this.SMFlag) {
470
-              return;
471
-            }
472
-            this.SMFlag = false;
469
+            // if (!this.SMFlag) {
470
+            //   return;
471
+            // }
472
+            // this.SMFlag = false;
473 473
             SM()
474 474
               .then((ress1) => {
475 475
                 uni.showLoading({
@@ -480,7 +480,7 @@ export default {
480 480
                 post("/dept/scanning", {
481 481
                   content: ress1,
482 482
                 }).then((result) => {
483
-                  this.SMFlag = true;
483
+                  // this.SMFlag = true;
484 484
                   if (result.state == 200 || result.state == 201) {
485 485
                     let ress = result.code;
486 486
                     if (ress) {
@@ -568,7 +568,7 @@ export default {
568 568
                 });
569 569
               })
570 570
               .catch((err) => {
571
-                this.SMFlag = true;
571
+                // this.SMFlag = true;
572 572
               });
573 573
           }
574 574
         } else {
@@ -712,7 +712,7 @@ export default {
712 712
     // #endif
713 713
   },
714 714
   onShow() {
715
-    this.SMFlag = true;
715
+    // this.SMFlag = true;
716 716
     this.flag = true;
717 717
     // 创建动画
718 718
     this.animation = uni.createAnimation({

+ 8 - 8
pages/scanning_code/scanning_code.vue

@@ -365,7 +365,7 @@
365 365
   export default {
366 366
     data() {
367 367
       return {
368
-        SMFlag:true,
368
+        // SMFlag:true,
369 369
         // 交接人信息
370 370
         accountObj:undefined,
371 371
         deptId:undefined,
@@ -393,10 +393,10 @@
393 393
       },
394 394
       // 扫描
395 395
       Scanning_again(id) {
396
-        if (!this.SMFlag) {
397
-          return;
398
-        }
399
-        this.SMFlag = false;
396
+        // if (!this.SMFlag) {
397
+        //   return;
398
+        // }
399
+        // this.SMFlag = false;
400 400
         SM().then((ress1) => {
401 401
           // ----------------
402 402
           uni.showLoading({
@@ -407,7 +407,7 @@
407 407
           post("/dept/scanning", {
408 408
             content: ress1,
409 409
           }).then((result) => {
410
-            this.SMFlag = true;
410
+            // this.SMFlag = true;
411 411
             if (result.state == 200 || result.state == 201) {
412 412
               let codes = result.code;
413 413
               if (codes) {
@@ -556,7 +556,7 @@
556 556
           });
557 557
           // ------------------------------
558 558
         }).catch(err=>{
559
-          this.SMFlag = true;
559
+          // this.SMFlag = true;
560 560
         });
561 561
       },
562 562
       show(type) {
@@ -691,7 +691,7 @@
691 691
       },
692 692
     },
693 693
     onShow(){
694
-      this.SMFlag = true;
694
+      // this.SMFlag = true;
695 695
     },
696 696
     onLoad(options) {
697 697
       console.log(options);

+ 8 - 8
pages/scanning_djEnd/scanning_djEnd.vue

@@ -269,7 +269,7 @@ export default {
269 269
       accountObj: undefined,
270 270
       //传给后端查询是否继续扫描
271 271
       deptId: undefined,
272
-      SMFlag: true,
272
+      // SMFlag: true,
273 273
       // 弹窗model
274 274
       models: {
275 275
         disjunctor: false,
@@ -538,10 +538,10 @@ export default {
538 538
     },
539 539
     //继续扫描
540 540
     Scanning_again() {
541
-      if (!this.SMFlag) {
542
-        return;
543
-      }
544
-      this.SMFlag = false;
541
+      // if (!this.SMFlag) {
542
+      //   return;
543
+      // }
544
+      // this.SMFlag = false;
545 545
       SM()
546 546
         .then((ress1) => {
547 547
           uni.showLoading({
@@ -553,7 +553,7 @@ export default {
553 553
           post("/dept/scanning", {
554 554
             content: ress1,
555 555
           }).then((result) => {
556
-            this.SMFlag = true;
556
+            // this.SMFlag = true;
557 557
             if (result.state == 200 || result.state == 201) {
558 558
               let ress = result.code;
559 559
               let speCode = ress;
@@ -640,7 +640,7 @@ export default {
640 640
           // ------------------------------
641 641
         })
642 642
         .catch((err) => {
643
-          this.SMFlag = true;
643
+          // this.SMFlag = true;
644 644
         });
645 645
     },
646 646
     // 知道了
@@ -651,7 +651,7 @@ export default {
651 651
     },
652 652
   },
653 653
   onShow() {
654
-    this.SMFlag = true;
654
+    // this.SMFlag = true;
655 655
     this.gotoFlag = true;
656 656
   },
657 657
   onLoad(options) {

+ 8 - 8
pages/scanning_djInfo/scanning_djInfo.vue

@@ -208,7 +208,7 @@ export default {
208 208
       accountObj: undefined,
209 209
       //传给后端查询是否继续扫描
210 210
       deptId: undefined,
211
-      SMFlag: true,
211
+      // SMFlag: true,
212 212
       // 弹窗model
213 213
       models: {
214 214
         disjunctor: false,
@@ -436,10 +436,10 @@ export default {
436 436
     },
437 437
     // 继续扫描
438 438
     Scanning_again() {
439
-      if (!this.SMFlag) {
440
-        return;
441
-      }
442
-      this.SMFlag = false;
439
+      // if (!this.SMFlag) {
440
+      //   return;
441
+      // }
442
+      // this.SMFlag = false;
443 443
       let list = [];
444 444
       let postType = "";
445 445
       let ids = [];
@@ -465,7 +465,7 @@ export default {
465 465
           post("/dept/scanning", {
466 466
             content: ress1,
467 467
           }).then((result) => {
468
-            this.SMFlag = true;
468
+            // this.SMFlag = true;
469 469
             if (result.state == 200 || result.state == 201) {
470 470
               let ress = result.code;
471 471
               if (ress) {
@@ -593,7 +593,7 @@ export default {
593 593
           // ------------------------------
594 594
         })
595 595
         .catch((err) => {
596
-          this.SMFlag = true;
596
+          // this.SMFlag = true;
597 597
         });
598 598
     },
599 599
     // 知道了
@@ -604,7 +604,7 @@ export default {
604 604
     },
605 605
   },
606 606
   onShow() {
607
-    this.SMFlag = true;
607
+    // this.SMFlag = true;
608 608
   },
609 609
   onLoad(options) {
610 610
     console.log(options, "options");

+ 14 - 14
pages/scanning_ins/scanning_ins.vue

@@ -246,7 +246,7 @@
246 246
   export default {
247 247
     data() {
248 248
       return {
249
-        SMFlag:true,
249
+        // SMFlag:true,
250 250
         options: {},
251 251
         // wechatFocusSwitch: 0,
252 252
         hosId: "",
@@ -384,10 +384,10 @@
384 384
       },
385 385
       // 送回病房-扫描科室
386 386
       scanDept() {
387
-        if (!this.SMFlag) {
388
-          return;
389
-        }
390
-        this.SMFlag = false;
387
+        // if (!this.SMFlag) {
388
+        //   return;
389
+        // }
390
+        // this.SMFlag = false;
391 391
         let infoDATA = JSON.parse(this.options.infoDATA);
392 392
         let code = "";
393 393
         SM().then((ress1) => {
@@ -399,7 +399,7 @@
399 399
           post("/dept/scanning", {
400 400
             content: ress1,
401 401
           }).then((result) => {
402
-            this.SMFlag = true;
402
+            // this.SMFlag = true;
403 403
             if (result.state == 200 || result.state == 201) {
404 404
               let ress = result.code;
405 405
               if (ress) {
@@ -455,7 +455,7 @@
455 455
             }
456 456
           });
457 457
         }).catch(err=>{
458
-          this.SMFlag = true;
458
+          // this.SMFlag = true;
459 459
         });
460 460
       },
461 461
       // 送回病房-选择起点科室
@@ -567,10 +567,10 @@
567 567
         if (data) {
568 568
           let type = "";
569 569
           if (data.gdState.value == "8") {
570
-            if (!this.SMFlag) {
571
-              return;
572
-            }
573
-            this.SMFlag = false;
570
+            // if (!this.SMFlag) {
571
+            //   return;
572
+            // }
573
+            // this.SMFlag = false;
574 574
             SM().then((ress1) => {
575 575
               // ----------------
576 576
               uni.showLoading({
@@ -581,7 +581,7 @@
581 581
               post("/dept/scanning", {
582 582
                 content: ress1,
583 583
               }).then((result) => {
584
-                this.SMFlag = true;
584
+                // this.SMFlag = true;
585 585
                 if (result.state == 200 || result.state == 201) {
586 586
                   let ress = result.code;
587 587
                   if (ress) {
@@ -623,7 +623,7 @@
623 623
               });
624 624
               // ------------------------------
625 625
             }).catch(err=>{
626
-              this.SMFlag = true;
626
+              // this.SMFlag = true;
627 627
             });
628 628
           } else {
629 629
             if (data.taskType.associationType.value == "patientTransport") {
@@ -758,7 +758,7 @@
758 758
       // #endif
759 759
     },
760 760
     onShow() {
761
-      this.SMFlag = true;
761
+      // this.SMFlag = true;
762 762
       // 创建动画
763 763
       this.animation = uni.createAnimation({
764 764
         duration: 500,

+ 8 - 8
pages/settingCode/settingCode.vue

@@ -26,7 +26,7 @@
26 26
   export default {
27 27
     data() {
28 28
       return {
29
-        SMFlag:true,
29
+        // SMFlag:true,
30 30
         queryDept: null, //根据二维码查询到的科室
31 31
         settings: [], //底部按钮设置
32 32
         msg: '', //提示信息
@@ -156,10 +156,10 @@
156 156
       },
157 157
       // 扫一扫
158 158
       drugsScanning() {
159
-        if (!this.SMFlag) {
160
-          return;
161
-        }
162
-        this.SMFlag = false;
159
+        // if (!this.SMFlag) {
160
+        //   return;
161
+        // }
162
+        // this.SMFlag = false;
163 163
         SM().then((ress) => {
164 164
           this.qrCode = ress;
165 165
           let postData = {
@@ -171,7 +171,7 @@
171 171
             mask: true,
172 172
           });
173 173
           post("/dept/scanChangeDept", postData).then((res) => {
174
-            this.SMFlag = true;
174
+            // this.SMFlag = true;
175 175
             uni.hideLoading();
176 176
             if (res.status == 200) {
177 177
               if (res.data) { //替换
@@ -198,12 +198,12 @@
198 198
             }
199 199
           })
200 200
         }).catch(err=>{
201
-          this.SMFlag = true;
201
+          // this.SMFlag = true;
202 202
         });
203 203
       },
204 204
     },
205 205
     onShow(){
206
-      this.SMFlag = true;
206
+      // this.SMFlag = true;
207 207
     },
208 208
     onLoad(options) {
209 209
       console.log(options,'seimin')