Browse Source

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

seimin 3 years ago
parent
commit
992691fc2a

+ 8 - 8
components/bigScreen/bigScreen.vue

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

+ 8 - 8
components/smallScreen/smallScreen.vue

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

+ 8 - 8
pages/patientInformationList/patientInformationList.vue

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

+ 7 - 7
pages/pharmacy/pharmacy.vue

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

+ 8 - 8
pages/scanning_Result/scanning_Result.vue

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

+ 8 - 8
pages/scanning_all/scanning_all.vue

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

+ 8 - 8
pages/scanning_code/scanning_code.vue

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

+ 8 - 8
pages/scanning_djEnd/scanning_djEnd.vue

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

+ 8 - 8
pages/scanning_djInfo/scanning_djInfo.vue

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

+ 14 - 14
pages/scanning_ins/scanning_ins.vue

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

+ 8 - 8
pages/settingCode/settingCode.vue

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