28169 преди 4 месеца
родител
ревизия
f5f3c7105a

+ 2 - 2
src/xt_pages/Pharmacy/PatientDispensing.vue Целия файл

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

+ 8 - 0
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Целия файл

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

+ 7 - 0
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue Целия файл

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

+ 56 - 4
src/xt_pages/user/dialysisSolution.vue Целия файл

1556
         console.log("value",val)
1556
         console.log("value",val)
1557
         this.InnerDialogProps.visibility = false
1557
         this.InnerDialogProps.visibility = false
1558
         switch (val.type) {
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
             break
1578
             break
1562
           case 'dialyzers':
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
             break
1599
             break
1565
           case 'irrigations':
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
             break
1619
             break
1568
           case 'plasma_separator':
1620
           case 'plasma_separator':
1569
             this.addPlan.plasma_separator = val.value.join(',')
1621
             this.addPlan.plasma_separator = val.value.join(',')