Browse Source

扫码错误页面展示扫描内容

seimin 2 years ago
parent
commit
831c36f7a4

+ 18 - 10
App.vue

@@ -90,8 +90,8 @@
90
     width: 100%;
90
     width: 100%;
91
     height: 100%;
91
     height: 100%;
92
     background: #f9fafb;
92
     background: #f9fafb;
93
-    --sk-size: 20rpx!important;
94
-    --sk-color: #49b856!important;
93
+    --sk-size: 20rpx !important;
94
+    --sk-color: #49b856 !important;
95
   }
95
   }
96
 
96
 
97
   body {
97
   body {
@@ -117,16 +117,24 @@
117
   .seimin-btn-hover {
117
   .seimin-btn-hover {
118
     box-shadow: 0px 0px 8px rgba(0, 0, 0, .1) inset !important;
118
     box-shadow: 0px 0px 8px rgba(0, 0, 0, .1) inset !important;
119
   }
119
   }
120
-  .uni-picker-action-confirm{
121
-    color: #49b856!important;
120
+
121
+  .uni-picker-action-confirm {
122
+    color: #49b856 !important;
123
+  }
124
+
125
+  .footerPadding {
126
+    padding-bottom: 50rpx !important;
122
   }
127
   }
123
-  .footerPadding{
124
-    padding-bottom: 50rpx!important;
128
+
129
+  .footerOtherMargin {
130
+    margin-bottom: 174rpx !important;
125
   }
131
   }
126
-  .footerOtherMargin{
127
-    margin-bottom: 174rpx!important;
132
+
133
+  .red {
134
+    color: red !important;
128
   }
135
   }
129
-  .red{
130
-    color: red!important;
136
+
137
+  .f30 {
138
+    font-size: 30rpx !important;
131
   }
139
   }
132
 </style>
140
 </style>

+ 3 - 1
components/bigScreen/bigScreen.vue

@@ -13,6 +13,7 @@
13
   export default {
13
   export default {
14
     data() {
14
     data() {
15
       return {
15
       return {
16
+        currentCode: '', //当前小扫描的科室二维码
16
         SMFlag: true,
17
         SMFlag: true,
17
       }
18
       }
18
     },
19
     },
@@ -33,6 +34,7 @@
33
               content,
34
               content,
34
             })
35
             })
35
             .then((result) => {
36
             .then((result) => {
37
+              this.currentCode = result.code;
36
               this.SMFlag = true;
38
               this.SMFlag = true;
37
               // 200检测通过,201没有有效期也通过。
39
               // 200检测通过,201没有有效期也通过。
38
               if (result.state == 200 || result.state == 201) {
40
               if (result.state == 200 || result.state == 201) {
@@ -102,7 +104,7 @@
102
                       }
104
                       }
103
                     } else {
105
                     } else {
104
                       uni.navigateTo({
106
                       uni.navigateTo({
105
-                        url: `../scanning_Result/scanning_Result?status=${res.status}&msg=${res.msg}`,
107
+                        url: `../scanning_Result/scanning_Result?status=${res.status}&msg=${res.msg}&qrcode=${this.currentCode}`,
106
                       });
108
                       });
107
                     }
109
                     }
108
                   });
110
                   });

+ 14 - 13
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: {
@@ -40,6 +40,7 @@
40
       // 如果不是静配,药配,标本配送,标本轮巡
40
       // 如果不是静配,药配,标本配送,标本轮巡
41
       // 科室签到(小扫描)
41
       // 科室签到(小扫描)
42
       nextDeptOrder_ss(data, accountObj) {
42
       nextDeptOrder_ss(data, accountObj) {
43
+        console.log(this.currentCode);
43
         let isKs = 0;
44
         let isKs = 0;
44
         let ids = [];
45
         let ids = [];
45
         let id = data.id;
46
         let id = data.id;
@@ -158,7 +159,7 @@
158
                 if (res.type == "trans-ddd-1") {
159
                 if (res.type == "trans-ddd-1") {
159
                   //起点科室扫描腕带码失败
160
                   //起点科室扫描腕带码失败
160
                   uni.navigateTo({
161
                   uni.navigateTo({
161
-                    url: `../../pages/scanning_Result/scanning_Result?type=${associationTypeValue}&type1=${res.type}&id=${data.id}&status=600&msg=${res.msg}`,
162
+                    url: `../../pages/scanning_Result/scanning_Result?type=${associationTypeValue}&type1=${res.type}&id=${data.id}&status=600&msg=${res.msg}&qrcode=${this.currentCode}`,
162
                   });
163
                   });
163
                 } else {
164
                 } else {
164
                   uni.navigateTo({
165
                   uni.navigateTo({
@@ -168,13 +169,13 @@
168
                     res.msg
169
                     res.msg
169
                   }&isKs=${isKs}&model=${encodeURIComponent(
170
                   }&isKs=${isKs}&model=${encodeURIComponent(
170
                     JSON.stringify(res)
171
                     JSON.stringify(res)
171
-                  )}`,
172
+                  )}&qrcode=${this.currentCode}`,
172
                   });
173
                   });
173
                 }
174
                 }
174
               }
175
               }
175
             } else {
176
             } else {
176
               uni.navigateTo({
177
               uni.navigateTo({
177
-                url: `../../pages/scanning_Result/scanning_Result?id=${data.id}&status=600&msg=扫码失败!请扫描正确的二维码!&isKs=${isKs}`,
178
+                url: `../../pages/scanning_Result/scanning_Result?id=${data.id}&status=600&msg=扫码失败!请扫描正确的二维码!&isKs=${isKs}&qrcode=${this.currentCode}`,
178
               });
179
               });
179
             }
180
             }
180
           });
181
           });
@@ -183,7 +184,7 @@
183
       // 如果不是患者陪检或患者转运或其他
184
       // 如果不是患者陪检或患者转运或其他
184
       // 科室签到
185
       // 科室签到
185
       nextDeptOrder_s(data, accountObj) {
186
       nextDeptOrder_s(data, accountObj) {
186
-        console.log(data, accountObj)
187
+        console.log(this.currentCode);
187
         let ids = [];
188
         let ids = [];
188
         let id = data.id;
189
         let id = data.id;
189
         ids.push(id);
190
         ids.push(id);
@@ -210,7 +211,7 @@
210
               });
211
               });
211
             } else {
212
             } else {
212
               uni.navigateTo({
213
               uni.navigateTo({
213
-                url: `../../pages/scanning_Result/scanning_Result?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&status=600&msg=${res.msg}&isKs=1`,
214
+                url: `../../pages/scanning_Result/scanning_Result?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&status=600&msg=${res.msg}&isKs=1&qrcode=${this.currentCode}`,
214
               });
215
               });
215
             }
216
             }
216
           });
217
           });
@@ -220,10 +221,10 @@
220
       // type==2  如果不是患者陪检,患者转运,其他
221
       // type==2  如果不是患者陪检,患者转运,其他
221
       // 扫码(小扫描)
222
       // 扫码(小扫描)
222
       Scan_ss(data, type) {
223
       Scan_ss(data, type) {
223
-        // if (!this.SMFlag) {
224
-        //   return;
225
-        // }
226
-        // this.SMFlag = false;
224
+        if (!this.SMFlag) {
225
+          return;
226
+        }
227
+        this.SMFlag = false;
227
         this.currentData = data;
228
         this.currentData = data;
228
         console.log(data, 'data');
229
         console.log(data, 'data');
229
         SM().then((ress1) => {
230
         SM().then((ress1) => {
@@ -237,7 +238,7 @@
237
             taskTypeId: data.taskType.id,
238
             taskTypeId: data.taskType.id,
238
             gdState: data.gdState.id,
239
             gdState: data.gdState.id,
239
           }).then((result) => {
240
           }).then((result) => {
240
-            // this.SMFlag = true;
241
+            this.SMFlag = true;
241
             this.currentCode = result.code;
242
             this.currentCode = result.code;
242
             if (result.state == 200 || result.state == 201) {
243
             if (result.state == 200 || result.state == 201) {
243
               if (result.account) {
244
               if (result.account) {
@@ -273,7 +274,7 @@
273
             }
274
             }
274
           });
275
           });
275
         }).catch(err=>{
276
         }).catch(err=>{
276
-          // this.SMFlag = true;
277
+          this.SMFlag = true;
277
         });
278
         });
278
       },
279
       },
279
       // 填写交接人账号-确认
280
       // 填写交接人账号-确认
@@ -350,7 +351,7 @@
350
       selectAccount
351
       selectAccount
351
     },
352
     },
352
     onShow(){
353
     onShow(){
353
-      // this.SMFlag = true;
354
+      this.SMFlag = true;
354
     }
355
     }
355
   };
356
   };
356
 </script>
357
 </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

@@ -94,7 +94,7 @@
94
         drugModels: {
94
         drugModels: {
95
           disjunctor: false,
95
           disjunctor: false,
96
         },
96
         },
97
-        // SMFlag:true,
97
+        SMFlag:true,
98
         triggered: false, //下拉刷新状态
98
         triggered: false, //下拉刷新状态
99
         freshing: false, //上拉加载开关
99
         freshing: false, //上拉加载开关
100
         scroll_top: 0, //距离顶部的距离
100
         scroll_top: 0, //距离顶部的距离
@@ -210,16 +210,16 @@
210
       },
210
       },
211
       // 扫一扫
211
       // 扫一扫
212
       drugsScanning() {
212
       drugsScanning() {
213
-        // if (!this.SMFlag) {
214
-        //   return;
215
-        // }
216
-        // this.SMFlag = false;
213
+        if (!this.SMFlag) {
214
+          return;
215
+        }
216
+        this.SMFlag = false;
217
         SM().then((ress) => {
217
         SM().then((ress) => {
218
           uni.navigateTo({
218
           uni.navigateTo({
219
             url: "../pharmacyDetails/pharmacyDetails?qrcode=" + ress,
219
             url: "../pharmacyDetails/pharmacyDetails?qrcode=" + ress,
220
           });
220
           });
221
         }).catch(err => {
221
         }).catch(err => {
222
-          // this.SMFlag = true;
222
+          this.SMFlag = true;
223
         });
223
         });
224
       },
224
       },
225
       //刷新
225
       //刷新
@@ -331,7 +331,7 @@
331
       // #endif
331
       // #endif
332
     },
332
     },
333
     onShow() {
333
     onShow() {
334
-      // this.SMFlag = true;
334
+      this.SMFlag = true;
335
       // #ifdef H5
335
       // #ifdef H5
336
       document.body.addEventListener("touchmove", this.stop, {
336
       document.body.addEventListener("touchmove", this.stop, {
337
         passive: false
337
         passive: false

+ 1 - 1
pages/scanning_B/scanning_B.vue

@@ -102,7 +102,7 @@
102
               });
102
               });
103
             } else {
103
             } else {
104
               uni.navigateTo({
104
               uni.navigateTo({
105
-                url: `/pages/scanning_Result/scanning_Result?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&status=600&msg=${res.msg}&isKs=1`,
105
+                url: `/pages/scanning_Result/scanning_Result?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&status=600&msg=${res.msg}&isKs=1&qrcode=${this.currentCode}`,
106
               });
106
               });
107
             }
107
             }
108
           });
108
           });

+ 10 - 7
pages/scanning_Result/scanning_Result.vue

@@ -18,6 +18,7 @@
18
       </view>
18
       </view>
19
       <view class="Scanning_top_text">
19
       <view class="Scanning_top_text">
20
         <view class="text1"> 操作失败 </view>
20
         <view class="text1"> 操作失败 </view>
21
+        <view class="text1 f30" v-if="queryObj.qrcode !== undefined"> 扫描内容:{{queryObj.qrcode}} </view>
21
       </view>
22
       </view>
22
     </view>
23
     </view>
23
 
24
 
@@ -239,6 +240,7 @@
239
   export default {
240
   export default {
240
     data() {
241
     data() {
241
       return {
242
       return {
243
+        currentCode: '', //当前小扫描的科室二维码
242
         // 手动查询标本弹窗model
244
         // 手动查询标本弹窗model
243
         speModels: {
245
         speModels: {
244
           disjunctor: false,
246
           disjunctor: false,
@@ -330,6 +332,7 @@
330
           content: ress1,
332
           content: ress1,
331
         }).then((result) => {
333
         }).then((result) => {
332
           this.SMFlag = true;
334
           this.SMFlag = true;
335
+          this.currentCode = result.code;
333
           if (result.state == 200 || result.state == 201) {
336
           if (result.state == 200 || result.state == 201) {
334
             let codes = result.code;
337
             let codes = result.code;
335
             if (codes) {
338
             if (codes) {
@@ -431,7 +434,7 @@
431
                     this.queryObj.dept
434
                     this.queryObj.dept
432
                   }&id=${this.dataId}&model=${encodeURIComponent(
435
                   }&id=${this.dataId}&model=${encodeURIComponent(
433
                     JSON.stringify(this.infoDATA)
436
                     JSON.stringify(this.infoDATA)
434
-                  )}&accountObj=${encodeURIComponent(JSON.stringify(this.accountObj))}&deptId=${this.deptId}&handover=${this.handover}&scanOrHand=${type}`,
437
+                  )}&accountObj=${encodeURIComponent(JSON.stringify(this.accountObj))}&deptId=${this.deptId}&handover=${this.handover}&scanOrHand=${type}&qrcode=${this.currentCode}`,
435
                   });
438
                   });
436
                 }
439
                 }
437
               });
440
               });
@@ -464,14 +467,14 @@
464
       },
467
       },
465
       // 继续扫描
468
       // 继续扫描
466
       Scanning_again() {
469
       Scanning_again() {
467
-        // if (!this.SMFlag) {
468
-        //   return;
469
-        // }
470
-        // this.SMFlag = false;
470
+        if (!this.SMFlag) {
471
+          return;
472
+        }
473
+        this.SMFlag = false;
471
         SM().then((ress1) => {
474
         SM().then((ress1) => {
472
           this.hand_scanning_common(ress1, 'scan');
475
           this.hand_scanning_common(ress1, 'scan');
473
         }).catch(err => {
476
         }).catch(err => {
474
-          // this.SMFlag = true;
477
+          this.SMFlag = true;
475
         });
478
         });
476
       },
479
       },
477
       // 正常完成扫描
480
       // 正常完成扫描
@@ -752,7 +755,7 @@
752
       },
755
       },
753
     },
756
     },
754
     onShow() {
757
     onShow() {
755
-      // this.SMFlag = true;
758
+      this.SMFlag = true;
756
       this.gotoFlag = true;
759
       this.gotoFlag = true;
757
     },
760
     },
758
     onLoad(options) {
761
     onLoad(options) {

+ 11 - 9
pages/scanning_all/scanning_all.vue

@@ -306,7 +306,8 @@ 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
+      currentCode: '', //当前小扫描的科室二维码
310
+      SMFlag: true,
310
       // 填写交接人账号弹窗model
311
       // 填写交接人账号弹窗model
311
       hosModels: {
312
       hosModels: {
312
         disjunctor: false,
313
         disjunctor: false,
@@ -466,10 +467,10 @@ export default {
466
           ) {
467
           ) {
467
             this.orderDeptHandler(true);
468
             this.orderDeptHandler(true);
468
           } else {
469
           } else {
469
-            // if (!this.SMFlag) {
470
-            //   return;
471
-            // }
472
-            // this.SMFlag = false;
470
+            if (!this.SMFlag) {
471
+              return;
472
+            }
473
+            this.SMFlag = false;
473
             SM()
474
             SM()
474
               .then((ress1) => {
475
               .then((ress1) => {
475
                 uni.showLoading({
476
                 uni.showLoading({
@@ -480,7 +481,8 @@ export default {
480
                 post("/dept/scanning", {
481
                 post("/dept/scanning", {
481
                   content: ress1,
482
                   content: ress1,
482
                 }).then((result) => {
483
                 }).then((result) => {
483
-                  // this.SMFlag = true;
484
+                  this.SMFlag = true;
485
+                  this.currentCode = result.code;
484
                   if (result.state == 200 || result.state == 201) {
486
                   if (result.state == 200 || result.state == 201) {
485
                     let ress = result.code;
487
                     let ress = result.code;
486
                     if (ress) {
488
                     if (ress) {
@@ -552,7 +554,7 @@ export default {
552
                               JSON.stringify(this.userId.ids)
554
                               JSON.stringify(this.userId.ids)
553
                             )}&model=${encodeURIComponent(
555
                             )}&model=${encodeURIComponent(
554
                               JSON.stringify(res)
556
                               JSON.stringify(res)
555
-                            )}&code=${this.code}`,
557
+                            )}&code=${this.code}&qrcode=${this.currentCode}`,
556
                           });
558
                           });
557
                         }
559
                         }
558
                       });
560
                       });
@@ -568,7 +570,7 @@ export default {
568
                 });
570
                 });
569
               })
571
               })
570
               .catch((err) => {
572
               .catch((err) => {
571
-                // this.SMFlag = true;
573
+                this.SMFlag = true;
572
               });
574
               });
573
           }
575
           }
574
         } else {
576
         } else {
@@ -712,7 +714,7 @@ export default {
712
     // #endif
714
     // #endif
713
   },
715
   },
714
   onShow() {
716
   onShow() {
715
-    // this.SMFlag = true;
717
+    this.SMFlag = true;
716
     this.flag = true;
718
     this.flag = true;
717
     // 创建动画
719
     // 创建动画
718
     this.animation = uni.createAnimation({
720
     this.animation = uni.createAnimation({

+ 3 - 1
pages/scanning_code/scanning_code.vue

@@ -370,6 +370,7 @@
370
   export default {
370
   export default {
371
     data() {
371
     data() {
372
       return {
372
       return {
373
+        currentCode: '', //当前小扫描的科室二维码
373
         // 手动查询标本弹窗model
374
         // 手动查询标本弹窗model
374
         speModels: {
375
         speModels: {
375
           disjunctor: false,
376
           disjunctor: false,
@@ -450,6 +451,7 @@
450
         }).then((result) => {
451
         }).then((result) => {
451
           this.SMFlag = true;
452
           this.SMFlag = true;
452
           if (result.state == 200 || result.state == 201) {
453
           if (result.state == 200 || result.state == 201) {
454
+            this.currentCode = result.code;
453
             let codes = result.code;
455
             let codes = result.code;
454
             if (codes) {
456
             if (codes) {
455
               let speCode = codes;
457
               let speCode = codes;
@@ -590,7 +592,7 @@
590
                     this.queryObj.dept
592
                     this.queryObj.dept
591
                   }&id=${this.dataId}&model=${encodeURIComponent(
593
                   }&id=${this.dataId}&model=${encodeURIComponent(
592
                     JSON.stringify(ress)
594
                     JSON.stringify(ress)
593
-                  )}&accountObj=${encodeURIComponent(JSON.stringify(this.accountObj))}&deptId=${this.deptId}&handover=${this.handover}&scanOrHand=${type}`,
595
+                  )}&accountObj=${encodeURIComponent(JSON.stringify(this.accountObj))}&deptId=${this.deptId}&handover=${this.handover}&scanOrHand=${type}&qrcode=${this.currentCode}`,
594
                   });
596
                   });
595
                 }
597
                 }
596
               });
598
               });

+ 4 - 1
pages/scanning_djEnd/scanning_djEnd.vue

@@ -22,6 +22,7 @@
22
       </view>
22
       </view>
23
       <view class="Scanning_top_text">
23
       <view class="Scanning_top_text">
24
         <view class="text1">操作失败</view>
24
         <view class="text1">操作失败</view>
25
+        <view class="text1 f30" v-if="queryObj.qrcode !== undefined">扫描内容:{{queryObj.qrcode}}</view>
25
       </view>
26
       </view>
26
     </view>
27
     </view>
27
 
28
 
@@ -201,6 +202,7 @@
201
   export default {
202
   export default {
202
     data() {
203
     data() {
203
       return {
204
       return {
205
+        currentCode: '', //当前小扫描的科室二维码
204
         // 手动查询标本弹窗model
206
         // 手动查询标本弹窗model
205
         speModels: {
207
         speModels: {
206
           disjunctor: false,
208
           disjunctor: false,
@@ -281,6 +283,7 @@
281
           content: ress1,
283
           content: ress1,
282
         }).then((result) => {
284
         }).then((result) => {
283
           this.SMFlag = true;
285
           this.SMFlag = true;
286
+          this.currentCode = result.code;
284
           if (result.state == 200 || result.state == 201) {
287
           if (result.state == 200 || result.state == 201) {
285
             let ress = result.code;
288
             let ress = result.code;
286
             let speCode = ress;
289
             let speCode = ress;
@@ -366,7 +369,7 @@
366
                   JSON.stringify(ress)
369
                   JSON.stringify(ress)
367
                 )}&accountObj=${encodeURIComponent(
370
                 )}&accountObj=${encodeURIComponent(
368
                   JSON.stringify(this.accountObj)
371
                   JSON.stringify(this.accountObj)
369
-                )}&deptId=${this.deptId}&scanOrHand=${type}`,
372
+                )}&deptId=${this.deptId}&scanOrHand=${type}&qrcode=${this.currentCode}`,
370
                 });
373
                 });
371
               }
374
               }
372
             });
375
             });

+ 4 - 1
pages/scanning_djInfo/scanning_djInfo.vue

@@ -24,6 +24,7 @@
24
       </view>
24
       </view>
25
       <view class="Scanning_top_text">
25
       <view class="Scanning_top_text">
26
         <view class="text1">操作失败</view>
26
         <view class="text1">操作失败</view>
27
+        <view class="text1 f30" v-if="queryObj.qrcode !== undefined">扫描内容:{{queryObj.qrcode}}</view>
27
       </view>
28
       </view>
28
     </view>
29
     </view>
29
     <view class="Scanning_cont" v-if="res.status != 200 || res.msg != '成功!'">
30
     <view class="Scanning_cont" v-if="res.status != 200 || res.msg != '成功!'">
@@ -152,6 +153,7 @@
152
   export default {
153
   export default {
153
     data() {
154
     data() {
154
       return {
155
       return {
156
+        currentCode: '', //当前小扫描的科室二维码
155
         // 手动查询标本弹窗model
157
         // 手动查询标本弹窗model
156
         speModels: {
158
         speModels: {
157
           disjunctor: false,
159
           disjunctor: false,
@@ -255,6 +257,7 @@
255
           content: ress1,
257
           content: ress1,
256
         }).then((result) => {
258
         }).then((result) => {
257
           this.SMFlag = true;
259
           this.SMFlag = true;
260
+          this.currentCode = result.code;
258
           if (result.state == 200 || result.state == 201) {
261
           if (result.state == 200 || result.state == 201) {
259
             let ress = result.code;
262
             let ress = result.code;
260
             if (ress) {
263
             if (ress) {
@@ -374,7 +377,7 @@
374
                     JSON.stringify(res)
377
                     JSON.stringify(res)
375
                   )}&speNum=${this.speNum}&accountObj=${encodeURIComponent(
378
                   )}&speNum=${this.speNum}&accountObj=${encodeURIComponent(
376
                     JSON.stringify(this.accountObj)
379
                     JSON.stringify(this.accountObj)
377
-                  )}&deptId=${this.deptId}&scanOrHand=${type}`,
380
+                  )}&deptId=${this.deptId}&scanOrHand=${type}&qrcode=${this.currentCode}`,
378
                   });
381
                   });
379
                 }
382
                 }
380
               });
383
               });

+ 1 - 1
pages/scanning_drug/scanning_drug.vue

@@ -181,7 +181,7 @@ export default {
181
             uni.navigateTo(urlObj);
181
             uni.navigateTo(urlObj);
182
           } else {
182
           } else {
183
             uni.navigateTo({
183
             uni.navigateTo({
184
-              url: `/pages/scanning_Result/scanning_Result?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&status=600&msg=${res.msg}&isKs=1`,
184
+              url: `/pages/scanning_Result/scanning_Result?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&status=600&msg=${res.msg}&isKs=1&qrcode=${this.currentCode}`,
185
             });
185
             });
186
           }
186
           }
187
         });
187
         });

+ 17 - 15
pages/scanning_ins/scanning_ins.vue

@@ -246,7 +246,8 @@
246
   export default {
246
   export default {
247
     data() {
247
     data() {
248
       return {
248
       return {
249
-        // SMFlag:true,
249
+        currentCode: '', //当前小扫描的科室二维码
250
+        SMFlag:true,
250
         options: {},
251
         options: {},
251
         // wechatFocusSwitch: 0,
252
         // wechatFocusSwitch: 0,
252
         hosId: "",
253
         hosId: "",
@@ -384,10 +385,10 @@
384
       },
385
       },
385
       // 送回病房-扫描科室
386
       // 送回病房-扫描科室
386
       scanDept() {
387
       scanDept() {
387
-        // if (!this.SMFlag) {
388
-        //   return;
389
-        // }
390
-        // this.SMFlag = false;
388
+        if (!this.SMFlag) {
389
+          return;
390
+        }
391
+        this.SMFlag = false;
391
         let infoDATA = JSON.parse(this.options.infoDATA);
392
         let infoDATA = JSON.parse(this.options.infoDATA);
392
         let code = "";
393
         let code = "";
393
         SM().then((ress1) => {
394
         SM().then((ress1) => {
@@ -399,7 +400,7 @@
399
           post("/dept/scanning", {
400
           post("/dept/scanning", {
400
             content: ress1,
401
             content: ress1,
401
           }).then((result) => {
402
           }).then((result) => {
402
-            // this.SMFlag = true;
403
+            this.SMFlag = true;
403
             if (result.state == 200 || result.state == 201) {
404
             if (result.state == 200 || result.state == 201) {
404
               let ress = result.code;
405
               let ress = result.code;
405
               if (ress) {
406
               if (ress) {
@@ -455,7 +456,7 @@
455
             }
456
             }
456
           });
457
           });
457
         }).catch(err=>{
458
         }).catch(err=>{
458
-          // this.SMFlag = true;
459
+          this.SMFlag = true;
459
         });
460
         });
460
       },
461
       },
461
       // 送回病房-选择起点科室
462
       // 送回病房-选择起点科室
@@ -567,10 +568,10 @@
567
         if (data) {
568
         if (data) {
568
           let type = "";
569
           let type = "";
569
           if (data.gdState.value == "8") {
570
           if (data.gdState.value == "8") {
570
-            // if (!this.SMFlag) {
571
-            //   return;
572
-            // }
573
-            // this.SMFlag = false;
571
+            if (!this.SMFlag) {
572
+              return;
573
+            }
574
+            this.SMFlag = false;
574
             SM().then((ress1) => {
575
             SM().then((ress1) => {
575
               // ----------------
576
               // ----------------
576
               uni.showLoading({
577
               uni.showLoading({
@@ -581,7 +582,8 @@
581
               post("/dept/scanning", {
582
               post("/dept/scanning", {
582
                 content: ress1,
583
                 content: ress1,
583
               }).then((result) => {
584
               }).then((result) => {
584
-                // this.SMFlag = true;
585
+                this.SMFlag = true;
586
+                this.currentCode = result.code;
585
                 if (result.state == 200 || result.state == 201) {
587
                 if (result.state == 200 || result.state == 201) {
586
                   let ress = result.code;
588
                   let ress = result.code;
587
                   if (ress) {
589
                   if (ress) {
@@ -608,7 +610,7 @@
608
                         uni.navigateTo({
610
                         uni.navigateTo({
609
                           url: `../scanning_djEnd/scanning_djEnd?model=${encodeURIComponent(
611
                           url: `../scanning_djEnd/scanning_djEnd?model=${encodeURIComponent(
610
                           JSON.stringify(res)
612
                           JSON.stringify(res)
611
-                        )}`,
613
+                        )}&qrcode=${this.currentCode}`,
612
                         });
614
                         });
613
                       }
615
                       }
614
                     });
616
                     });
@@ -623,7 +625,7 @@
623
               });
625
               });
624
               // ------------------------------
626
               // ------------------------------
625
             }).catch(err=>{
627
             }).catch(err=>{
626
-              // this.SMFlag = true;
628
+              this.SMFlag = true;
627
             });
629
             });
628
           } else {
630
           } else {
629
             if (data.taskType.associationType.value == "patientTransport") {
631
             if (data.taskType.associationType.value == "patientTransport") {
@@ -758,7 +760,7 @@
758
       // #endif
760
       // #endif
759
     },
761
     },
760
     onShow() {
762
     onShow() {
761
-      // this.SMFlag = true;
763
+      this.SMFlag = true;
762
       // 创建动画
764
       // 创建动画
763
       this.animation = uni.createAnimation({
765
       this.animation = uni.createAnimation({
764
         duration: 500,
766
         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')