28169 před 2 dny
rodič
revize
48dd9ba45a
1 změnil soubory, kde provedl 103 přidání a 5 odebrání
  1. 103 5
      src/xt_pages/user/dialysisSolution.vue

+ 103 - 5
src/xt_pages/user/dialysisSolution.vue Zobrazit soubor

@@ -522,18 +522,31 @@
522 522
 
523 523
 
524 524
 
525
-          <el-col :span="8" v-if="isShows('透析器')">
525
+          <el-col :span="8" v-if="isShows('透析器')&& this.$store.getters.xt_user.template_info.org_id != 10164">
526 526
             <el-form-item label="透析器:">
527 527
               <el-input v-model="dialysis_dialyszers" @focus="showInnerDialog('6')"></el-input>
528 528
             </el-form-item>
529 529
           </el-col>
530 530
 
531
-          <el-col :span="8" v-if="isShows('灌流器')">
531
+          <el-col :span="8" v-if="isShows('透析器')&& this.$store.getters.xt_user.template_info.org_id == 10164">
532
+              <el-form-item label="透析器:" prop="dialysis_dialyszers" >
533
+                  <el-input v-model="dialysis_dialyszers"
534
+                            @focus="showInnerDialog('20')"></el-input>
535
+              </el-form-item>
536
+         </el-col>
537
+
538
+          <el-col :span="8" v-if="isShows('灌流器')&& this.$store.getters.xt_user.template_info.org_id != 10164" >
532 539
             <el-form-item label="灌流器:">
533 540
               <el-input v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
534 541
             </el-form-item>
535 542
           </el-col>
536 543
 
544
+          <el-col :span="8" v-if="isShows('灌流器')&& this.$store.getters.xt_user.template_info.org_id == 10164" >
545
+            <el-form-item label="灌流器:">
546
+              <el-input v-model="dialysis_irrigation" @focus="showInnerDialog('21')"></el-input>
547
+            </el-form-item>
548
+          </el-col>
549
+
537 550
 
538 551
 
539 552
           <el-col :span="8" v-if="isShows('滤过器')">
@@ -846,6 +859,14 @@
846 859
       v-on:dialog-cancle="innerDialogCancle">
847 860
     </multi-select-box>
848 861
 
862
+
863
+    
864
+    <radio-select-box
865
+         :propsForm="InnerDialogPropsOne"
866
+         v-on:dialog-comfirm="innerDialogComfirmOne"
867
+         v-on:dialog-cancle="innerDialogCancleOne">
868
+   </radio-select-box>
869
+
849 870
     <el-dialog
850 871
       :visible.sync="startDialogVisible"
851 872
       width="1010px"
@@ -980,7 +1001,7 @@
980 1001
 
981 1002
   import { GetDeviceInfo } from '@/api/dialysis'
982 1003
   import MultiSelectBox from '../dialysis/details/dialog/MultiSelectBox/index'
983
-
1004
+  import RadioSelectBox from '../dialysis/details/dialog/RadioSelectBox/index'
984 1005
   const periodWeek = [
985 1006
     { value: '每周', label: '每周' },
986 1007
     { value: '两周', label: '两周' },
@@ -1038,6 +1059,14 @@
1038 1059
           titles: '',
1039 1060
           type: '' // 不同弹框类型,用来匹配数据
1040 1061
         },
1062
+        InnerDialogPropsOne: {
1063
+          values: [],
1064
+          visibility: false,
1065
+          isShowTextArea: true,
1066
+          customContent: '',
1067
+          titles: '',
1068
+          type: '' // 不同弹框类型,用来匹配数据
1069
+        },
1041 1070
         deviceList: [],
1042 1071
         dialysisTimeShow: new Date(2018, 1, 1, 3, 0),
1043 1072
         isEdit: false,
@@ -1409,11 +1438,16 @@
1409 1438
     components: {
1410 1439
       MultiSelectBox,
1411 1440
       tableTitle,
1412
-      PatientSidebar
1441
+      PatientSidebar,
1442
+      RadioSelectBox
1413 1443
     },
1414 1444
     methods: {
1415 1445
       showInnerDialog: function(val) {
1416
-        this.InnerDialogProps.visibility = true
1446
+        if(val == 20 || val == 21){
1447
+          this.InnerDialogPropsOne.visibility = true
1448
+        }else{
1449
+          this.InnerDialogProps.visibility = true
1450
+        }
1417 1451
         switch (val) {
1418 1452
           case '5': // 透析器/灌流器
1419 1453
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
@@ -1493,6 +1527,29 @@
1493 1527
             this.InnerDialogProps.isShowTextArea = false
1494 1528
 
1495 1529
             break
1530
+
1531
+            case '20': // 透析器
1532
+            
1533
+             for (let i = 0; i < this.dialyzers.length; i++) {
1534
+               this.dialyzers[i].name = this.dialyzers[i].specification_name
1535
+             }
1536
+             console.log("0000000000000000000000000000000000000000000000000")
1537
+             this.InnerDialogPropsOne.values = this.dialyzers
1538
+             this.InnerDialogPropsOne.titles = '透析器'
1539
+             this.InnerDialogPropsOne.type = 'dialyzers'
1540
+             this.InnerDialogPropsOne.selected = this.dialysis_dialyszers
1541
+             this.InnerDialogPropsOne.isShowTextArea = false
1542
+             break
1543
+          case '21':
1544
+            for (let i = 0; i < this.irrigations.length; i++) {
1545
+              this.irrigations[i].name = this.irrigations[i].specification_name
1546
+            }
1547
+            this.InnerDialogPropsOne.values = this.irrigations
1548
+            this.InnerDialogPropsOne.titles = '灌流器'
1549
+            this.InnerDialogPropsOne.type = 'irrigations'
1550
+            this.InnerDialogPropsOne.selected = this.dialysis_irrigation
1551
+            this.InnerDialogPropsOne.isShowTextArea = false
1552
+           break
1496 1553
         }
1497 1554
       },
1498 1555
       innerDialogComfirm: function(val) {
@@ -1530,6 +1587,47 @@
1530 1587
       innerDialogCancle: function() {
1531 1588
         this.InnerDialogProps.visibility = false
1532 1589
       },
1590
+      innerDialogComfirmOne: function(val) {
1591
+       console.log("val===============",val)
1592
+      this.InnerDialogPropsOne.visibility = false
1593
+       switch (val.type) {
1594
+         case 'dialyzers':
1595
+           var newArr = []
1596
+           if(this.dialyzers!=null && this.dialyzers.length >0){
1597
+             for(let i=0;i<this.dialyzers.length;i++){
1598
+               if(this.dialyzers[i].specification_name == val.value){
1599
+                 newArr.push(val.value)
1600
+               }
1601
+             }
1602
+           }
1603
+           if(newArr!=null && newArr.length >0){
1604
+            this.dialysis_dialyszers = newArr.join(',')
1605
+           }else{
1606
+             this.dialysis_dialyszers = ""
1607
+           }
1608
+
1609
+           break
1610
+         case 'irrigations':
1611
+           var newArr = []
1612
+          
1613
+           if(this.irrigations!=null && this.irrigations.length >0){
1614
+             for(let i=0;i<this.irrigations.length;i++){
1615
+               if(this.irrigations[i].specification_name == val.value){
1616
+                 newArr.push(val.value)
1617
+               }
1618
+             }
1619
+           }
1620
+           if(newArr!=null && newArr.length>0){
1621
+            this.dialysis_irrigation = newArr.join(',')
1622
+           }else{
1623
+             this.dialysis_irrigation = ""
1624
+           }
1625
+           break
1626
+       }
1627
+     },
1628
+      innerDialogCancleOne: function() {
1629
+        this.InnerDialogPropsOne.visibility = false
1630
+      },
1533 1631
       changeBodyFluid: function() {},
1534 1632
       GetDeviceData: function() {
1535 1633
         const params = {}