Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 month ago
parent
commit
4a5830aa04

+ 2 - 2
src/xt_pages/Pharmacy/PatientDispensing.vue View File

@@ -435,7 +435,7 @@ export default {
435 435
   methods: {
436 436
     openDialog(){
437 437
       this.$nextTick(() => {
438
-        this.$refs.inputRef.$refs.input.focus()
438
+        this.$refs.inputRef.focus()
439 439
       });
440 440
     },
441 441
     changevalue(row){
@@ -1357,7 +1357,7 @@ export default {
1357 1357
     },
1358 1358
     changeText(event){
1359 1359
 
1360
-     
1360
+     console.log("event------------",event.key)
1361 1361
       // 检查是否为特定的按键,例如回车键,来确认扫码枪输入完成
1362 1362
       if (event.key === 'Enter') {
1363 1363
        

+ 8 - 0
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue View File

@@ -437,10 +437,13 @@
437 437
 
438 438
     <el-dialog
439 439
       title="药品追溯码"
440
+      @open="openDialog"
440 441
       :visible.sync="dialogVisible"
441 442
       width="40%">
442 443
       <span>
443 444
         <el-input
445
+        
446
+         ref="inputRef"
444 447
          @keyup.native="changeText"
445 448
           type="textarea"
446 449
           placeholder="请输入内容"
@@ -596,6 +599,11 @@ export default {
596 599
     };
597 600
   },
598 601
   methods: {
602
+    openDialog(){
603
+      this.$nextTick(() => {
604
+        this.$refs.inputRef.focus()
605
+      });
606
+    },
599 607
     changeDrugCode(row,index){
600 608
       this.textarea=""
601 609
       this.textarea = row.drug_code

+ 7 - 0
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue View File

@@ -399,11 +399,13 @@
399 399
     </div>
400 400
 
401 401
     <el-dialog
402
+     @open="openDialog"
402 403
       title="药品追溯码"
403 404
       :visible.sync="dialogVisible"
404 405
       width="40%">
405 406
       <span>
406 407
         <el-input
408
+         ref="inputRef"
407 409
          @keyup.native="changeText"
408 410
           type="textarea"
409 411
           placeholder="请输入内容"
@@ -532,6 +534,11 @@ export default {
532 534
     };
533 535
   },
534 536
   methods: {
537
+    openDialog(){
538
+      this.$nextTick(() => {
539
+        this.$refs.inputRef.focus()
540
+      });
541
+    },
535 542
     changeText(event){
536 543
       // 检查是否为特定的按键,例如回车键,来确认扫码枪输入完成
537 544
       if (event.key === 'Enter') {

+ 56 - 4
src/xt_pages/user/dialysisSolution.vue View File

@@ -1556,14 +1556,66 @@
1556 1556
         console.log("value",val)
1557 1557
         this.InnerDialogProps.visibility = false
1558 1558
         switch (val.type) {
1559
-          case 'dialyzer_perfusion_apparatus':
1560
-            this.addPlan.dialyzer_perfusion_apparatus = val.value.join(',')
1559
+
1560
+            case 'dialyzer_perfusion_apparatus':
1561
+            var newArr = []
1562
+            if(this.dialyzerPerfusionApparatus!=null && this.dialyzerPerfusionApparatus.length>0){
1563
+              for(let i=0;i<this.dialyzerPerfusionApparatus.length;i++){
1564
+                for(let j=0;j<val.value.length;j++){
1565
+                   if(this.dialyzerPerfusionApparatus[i].name == val.value[j]){
1566
+                     newArr.push(val.value[j])
1567
+                   }
1568
+                }
1569
+              }
1570
+            }
1571
+            if(newArr!=null && newArr.length>0){
1572
+
1573
+              this.addPlan.dialyzer_perfusion_apparatus = newArr.join(',')
1574
+            }else{
1575
+              this.addPlan.dialyzer_perfusion_apparatus = ""
1576
+            }
1577
+
1561 1578
             break
1562 1579
           case 'dialyzers':
1563
-            this.dialysis_dialyszers = val.value.join(',')
1580
+            
1581
+            // this.dialysis_dialyszers = val.value.join(',')
1582
+            // break
1583
+            var newArr = []
1584
+            if(this.dialyzers!=null && this.dialyzers.length >0){
1585
+              for(let i=0;i<this.dialyzers.length;i++){
1586
+                for(let j=0;j<val.value.length;j++){
1587
+                  if(this.dialyzers[i].specification_name == val.value[j]){
1588
+                      newArr.push(val.value[j])
1589
+                  }
1590
+                }
1591
+              }
1592
+            }
1593
+            if(newArr!=null && newArr.length >0){
1594
+             this.dialysis_dialyszers = newArr.join(',')
1595
+            }else{
1596
+              this.dialysis_dialyszers = ""
1597
+            }
1598
+
1564 1599
             break
1565 1600
           case 'irrigations':
1566
-            this.dialysis_irrigation = val.value.join(',')
1601
+            // this.dialysis_irrigation = val.value.join(',')
1602
+            // break
1603
+            var newArr = []
1604
+            if(this.irrigations!=null && this.irrigations.length >0){
1605
+              for(let i=0;i<this.irrigations.length;i++){
1606
+                for(let j=0;j<val.value.length;j++){
1607
+                  if(this.irrigations[i].specification_name == val.value[j]){
1608
+                     newArr.push(val.value[j])
1609
+                  }
1610
+                }
1611
+              }
1612
+            }
1613
+            if(newArr!=null && newArr.length>0){
1614
+             this.dialysis_irrigation = newArr.join(',')
1615
+            }else{
1616
+              this.dialysis_irrigation = ""
1617
+            }
1618
+
1567 1619
             break
1568 1620
           case 'plasma_separator':
1569 1621
             this.addPlan.plasma_separator = val.value.join(',')