seimin лет назад: 3
Родитель
Сommit
a49a37149b

+ 1 - 1
components/bigScreen/bigScreen.vue

@@ -133,7 +133,7 @@
133
     position: fixed;
133
     position: fixed;
134
     left: 0;
134
     left: 0;
135
     right: 0;
135
     right: 0;
136
-    bottom: 0;
136
+    bottom: 30rpx;
137
     z-index: 999;
137
     z-index: 999;
138
     height: 88rpx;
138
     height: 88rpx;
139
     display: flex;
139
     display: flex;

+ 4 - 4
components/uni-fab/uni-fab.vue

@@ -228,9 +228,9 @@
228
 
228
 
229
 	.uni-fab--leftBottom {
229
 	.uni-fab--leftBottom {
230
 		left: 5px;
230
 		left: 5px;
231
-		bottom: 40px;
231
+		bottom: 55px;//oppp
232
 		/* #ifdef H5 */
232
 		/* #ifdef H5 */
233
-		bottom: calc(40px + var(--window-bottom));
233
+		bottom: calc(55px + var(--window-bottom));
234
 		/* #endif */
234
 		/* #endif */
235
 		padding: 10px;
235
 		padding: 10px;
236
 	}
236
 	}
@@ -278,9 +278,9 @@
278
 
278
 
279
 	.uni-fab__circle--leftBottom {
279
 	.uni-fab__circle--leftBottom {
280
 		left: 15px;
280
 		left: 15px;
281
-		bottom: 50px;
281
+		bottom: 65px;
282
 		/* #ifdef H5 */
282
 		/* #ifdef H5 */
283
-		bottom: calc(50px + var(--window-bottom));
283
+		bottom: calc(65px + var(--window-bottom));
284
 		/* #endif */
284
 		/* #endif */
285
 	}
285
 	}
286
 
286
 

+ 50 - 0
pages/receiptpage/receiptpage.vue

@@ -240,6 +240,10 @@
240
     <handViewSpecimen v-if="speModels.disjunctor" :title="speModels.title" :disjunctor="speModels.disjunctor"
240
     <handViewSpecimen v-if="speModels.disjunctor" :title="speModels.title" :disjunctor="speModels.disjunctor"
241
       @ok="speOk" @cancel="speCancel">
241
       @ok="speOk" @cancel="speCancel">
242
     </handViewSpecimen>
242
     </handViewSpecimen>
243
+    <!-- 手动查询药品弹窗 -->
244
+    <handViewDrugsBag v-if="drugbagModels.disjunctor" :title="drugbagModels.title" :disjunctor="drugbagModels.disjunctor"
245
+      @ok="drugbagOk" @cancel="drugbagCancel">
246
+    </handViewDrugsBag>
243
   </view>
247
   </view>
244
 </template>
248
 </template>
245
 <script>
249
 <script>
@@ -265,6 +269,10 @@
265
         speModels: {
269
         speModels: {
266
           disjunctor: false,
270
           disjunctor: false,
267
         },
271
         },
272
+        // 手动查询药品弹窗model
273
+        drugbagModels: {
274
+          disjunctor: false,
275
+        },
268
         // 筛选条件
276
         // 筛选条件
269
         array: [{
277
         array: [{
270
             id: 0,
278
             id: 0,
@@ -358,6 +366,42 @@
358
       bigScreen,
366
       bigScreen,
359
     },
367
     },
360
     methods: {
368
     methods: {
369
+      // 手动查询药品-确认
370
+      drugbagOk(data) {
371
+        console.log(data);
372
+        if (!data.id) {
373
+          //没有查询到药品
374
+          uni.showModal({
375
+            title: '提示',
376
+            content: "没有查询到发药单号!",
377
+            showCancel: false,
378
+            success: function(res) {
379
+              if (res.confirm) {
380
+                console.log('用户点击确定');
381
+              } else if (res.cancel) {
382
+                console.log('用户点击取消');
383
+              }
384
+            }
385
+          });
386
+          return;
387
+        }
388
+        this.drugbagModels.disjunctor = false;
389
+        uni.navigateTo({
390
+          url: `/pages/scanning_drug/scanning_drug?drugsBagId=${data.id}`,
391
+        });
392
+      },
393
+      // 手动查询药品-取消
394
+      drugbagCancel() {
395
+        this.drugbagModels.disjunctor = false;
396
+      },
397
+      // 手动查询药品弹窗
398
+      showHandViewDrugsbag() {
399
+        console.log(1)
400
+        this.drugbagModels = {
401
+          title: '填写发药单号',
402
+          disjunctor: true,
403
+        }
404
+      },
361
       // 手动查询标本-确认
405
       // 手动查询标本-确认
362
       speOk(data) {
406
       speOk(data) {
363
         console.log(data);
407
         console.log(data);
@@ -455,6 +499,10 @@
455
             this.content.push({
499
             this.content.push({
456
               text: "标本录入",
500
               text: "标本录入",
457
             });
501
             });
502
+          } else if (item.link === "wxDrugsbagEntry") {
503
+            this.content.push({
504
+              text: "药品录入",
505
+            });
458
           }
506
           }
459
         });
507
         });
460
       },
508
       },
@@ -540,6 +588,8 @@
540
           });
588
           });
541
         } else if (e.item.text === "标本录入") {
589
         } else if (e.item.text === "标本录入") {
542
           this.showHandViewSpecimen();
590
           this.showHandViewSpecimen();
591
+        } else if (e.item.text === "药品录入") {
592
+          this.showHandViewDrugsbag();
543
         }
593
         }
544
       },
594
       },
545
       // 点击tab页切换
595
       // 点击tab页切换

+ 43 - 7
pages/scanning_code/scanning_code.vue

@@ -311,7 +311,7 @@
311
         (infoType == 'spe-dsd-3' && infoDATA.gdState.value == '5')
311
         (infoType == 'spe-dsd-3' && infoDATA.gdState.value == '5')
312
       ">
312
       ">
313
       <view class="btn3" @click="Scanning_again(dataId)">继续扫描</view>
313
       <view class="btn3" @click="Scanning_again(dataId)">继续扫描</view>
314
-      <view class="btn3" @click="hand_again(dataId)">手动录入</view>
314
+      <view class="btn3" @click="showHandViewSpecimen()">手动录入</view>
315
     </view>
315
     </view>
316
     <view class="foot_btn2 footerPadding" v-if="
316
     <view class="foot_btn2 footerPadding" v-if="
317
         infoType == 'ins-dsd-1' ||
317
         infoType == 'ins-dsd-1' ||
@@ -335,6 +335,7 @@
335
         infoType == 'jp-dsd-2'
335
         infoType == 'jp-dsd-2'
336
       ">
336
       ">
337
       <view class="btn2" @click="Scanning_again(dataId)">继续扫描</view>
337
       <view class="btn2" @click="Scanning_again(dataId)">继续扫描</view>
338
+      <view class="btn3" @click="showHandViewDrugsbag()">手动录入</view>
338
     </view>
339
     </view>
339
     <view class="foot_btn2 footerPadding" v-if="
340
     <view class="foot_btn2 footerPadding" v-if="
340
         infoType == 'drug-ddd-1' ||
341
         infoType == 'drug-ddd-1' ||
@@ -354,6 +355,10 @@
354
     <handViewSpecimen v-if="speModels.disjunctor" :title="speModels.title" :disjunctor="speModels.disjunctor"
355
     <handViewSpecimen v-if="speModels.disjunctor" :title="speModels.title" :disjunctor="speModels.disjunctor"
355
       @ok="speOk" @cancel="speCancel">
356
       @ok="speOk" @cancel="speCancel">
356
     </handViewSpecimen>
357
     </handViewSpecimen>
358
+    <!-- 手动查询药品弹窗 -->
359
+    <handViewDrugsBag v-if="drugbagModels.disjunctor" :title="drugbagModels.title"
360
+      :disjunctor="drugbagModels.disjunctor" @ok="drugbagOk" @cancel="drugbagCancel">
361
+    </handViewDrugsBag>
357
   </view>
362
   </view>
358
 </template>
363
 </template>
359
 <script>
364
 <script>
@@ -375,6 +380,10 @@
375
         speModels: {
380
         speModels: {
376
           disjunctor: false,
381
           disjunctor: false,
377
         },
382
         },
383
+        // 手动查询药品弹窗model
384
+        drugbagModels: {
385
+          disjunctor: false,
386
+        },
378
         SMFlag: true,
387
         SMFlag: true,
379
         // 交接人信息
388
         // 交接人信息
380
         accountObj: undefined,
389
         accountObj: undefined,
@@ -397,6 +406,39 @@
397
       };
406
       };
398
     },
407
     },
399
     methods: {
408
     methods: {
409
+      // 手动查询药品-确认
410
+      drugbagOk(data) {
411
+        console.log(data);
412
+        if (!data.id) {
413
+          //没有查询到药品
414
+          uni.showModal({
415
+            title: '提示',
416
+            content: "没有查询到发药单号!",
417
+            showCancel: false,
418
+            success: function(res) {
419
+              if (res.confirm) {
420
+                console.log('用户点击确定');
421
+              } else if (res.cancel) {
422
+                console.log('用户点击取消');
423
+              }
424
+            }
425
+          });
426
+          return;
427
+        }
428
+        this.drugbagModels.disjunctor = false;
429
+        this.hand_scanning_common(data.packid, 'hand');
430
+      },
431
+      // 手动查询药品-取消
432
+      drugbagCancel() {
433
+        this.drugbagModels.disjunctor = false;
434
+      },
435
+      // 手动查询药品弹窗
436
+      showHandViewDrugsbag() {
437
+        this.drugbagModels = {
438
+          title: '填写发药单号',
439
+          disjunctor: true,
440
+        }
441
+      },
400
       // 手动查询标本-确认
442
       // 手动查询标本-确认
401
       speOk(data) {
443
       speOk(data) {
402
         console.log(data);
444
         console.log(data);
@@ -430,10 +472,6 @@
430
           disjunctor: true,
472
           disjunctor: true,
431
         }
473
         }
432
       },
474
       },
433
-      // 手动录入标本
434
-      hand_again(id) {
435
-        this.showHandViewSpecimen();
436
-      },
437
       // 拍照
475
       // 拍照
438
       photograph(data, obj) {
476
       photograph(data, obj) {
439
         photographTool(data, obj);
477
         photographTool(data, obj);
@@ -507,8 +545,6 @@
507
                     .associationType.value == 'specimenPlan') {
545
                     .associationType.value == 'specimenPlan') {
508
                     if (type === 'scan') {
546
                     if (type === 'scan') {
509
                       this.Scanning_again(this.dataId);
547
                       this.Scanning_again(this.dataId);
510
-                    } else if (type === 'hand') {
511
-                      // this.hand_again(this.dataId);
512
                     }
548
                     }
513
                   }
549
                   }
514
                   if (
550
                   if (