Kaynağa Gözat

药品录入,手动输入

seimin 2 yıl önce
ebeveyn
işleme
a49a37149b

+ 1 - 1
components/bigScreen/bigScreen.vue

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

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

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

+ 50 - 0
pages/receiptpage/receiptpage.vue

@@ -240,6 +240,10 @@
240 240
     <handViewSpecimen v-if="speModels.disjunctor" :title="speModels.title" :disjunctor="speModels.disjunctor"
241 241
       @ok="speOk" @cancel="speCancel">
242 242
     </handViewSpecimen>
243
+    <!-- 手动查询药品弹窗 -->
244
+    <handViewDrugsBag v-if="drugbagModels.disjunctor" :title="drugbagModels.title" :disjunctor="drugbagModels.disjunctor"
245
+      @ok="drugbagOk" @cancel="drugbagCancel">
246
+    </handViewDrugsBag>
243 247
   </view>
244 248
 </template>
245 249
 <script>
@@ -265,6 +269,10 @@
265 269
         speModels: {
266 270
           disjunctor: false,
267 271
         },
272
+        // 手动查询药品弹窗model
273
+        drugbagModels: {
274
+          disjunctor: false,
275
+        },
268 276
         // 筛选条件
269 277
         array: [{
270 278
             id: 0,
@@ -358,6 +366,42 @@
358 366
       bigScreen,
359 367
     },
360 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 406
       speOk(data) {
363 407
         console.log(data);
@@ -455,6 +499,10 @@
455 499
             this.content.push({
456 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 589
         } else if (e.item.text === "标本录入") {
542 590
           this.showHandViewSpecimen();
591
+        } else if (e.item.text === "药品录入") {
592
+          this.showHandViewDrugsbag();
543 593
         }
544 594
       },
545 595
       // 点击tab页切换

+ 43 - 7
pages/scanning_code/scanning_code.vue

@@ -311,7 +311,7 @@
311 311
         (infoType == 'spe-dsd-3' && infoDATA.gdState.value == '5')
312 312
       ">
313 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 315
     </view>
316 316
     <view class="foot_btn2 footerPadding" v-if="
317 317
         infoType == 'ins-dsd-1' ||
@@ -335,6 +335,7 @@
335 335
         infoType == 'jp-dsd-2'
336 336
       ">
337 337
       <view class="btn2" @click="Scanning_again(dataId)">继续扫描</view>
338
+      <view class="btn3" @click="showHandViewDrugsbag()">手动录入</view>
338 339
     </view>
339 340
     <view class="foot_btn2 footerPadding" v-if="
340 341
         infoType == 'drug-ddd-1' ||
@@ -354,6 +355,10 @@
354 355
     <handViewSpecimen v-if="speModels.disjunctor" :title="speModels.title" :disjunctor="speModels.disjunctor"
355 356
       @ok="speOk" @cancel="speCancel">
356 357
     </handViewSpecimen>
358
+    <!-- 手动查询药品弹窗 -->
359
+    <handViewDrugsBag v-if="drugbagModels.disjunctor" :title="drugbagModels.title"
360
+      :disjunctor="drugbagModels.disjunctor" @ok="drugbagOk" @cancel="drugbagCancel">
361
+    </handViewDrugsBag>
357 362
   </view>
358 363
 </template>
359 364
 <script>
@@ -375,6 +380,10 @@
375 380
         speModels: {
376 381
           disjunctor: false,
377 382
         },
383
+        // 手动查询药品弹窗model
384
+        drugbagModels: {
385
+          disjunctor: false,
386
+        },
378 387
         SMFlag: true,
379 388
         // 交接人信息
380 389
         accountObj: undefined,
@@ -397,6 +406,39 @@
397 406
       };
398 407
     },
399 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 443
       speOk(data) {
402 444
         console.log(data);
@@ -430,10 +472,6 @@
430 472
           disjunctor: true,
431 473
         }
432 474
       },
433
-      // 手动录入标本
434
-      hand_again(id) {
435
-        this.showHandViewSpecimen();
436
-      },
437 475
       // 拍照
438 476
       photograph(data, obj) {
439 477
         photographTool(data, obj);
@@ -507,8 +545,6 @@
507 545
                     .associationType.value == 'specimenPlan') {
508 546
                     if (type === 'scan') {
509 547
                       this.Scanning_again(this.dataId);
510
-                    } else if (type === 'hand') {
511
-                      // this.hand_again(this.dataId);
512 548
                     }
513 549
                   }
514 550
                   if (