瀏覽代碼

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 4 年之前
父節點
當前提交
257ed35858

+ 1 - 0
src/api/config.js 查看文件

@@ -71,6 +71,7 @@ export function getSystemPrescription(params) {
71 71
 
72 72
 
73 73
 export function postSystemPrescription(params) {
74
+  console.log("params2222222",params)
74 75
   return request({
75 76
     url: '/api/systemprescription/commit',
76 77
     method: 'post',

+ 93 - 6
src/xt_pages/data/prescription.vue 查看文件

@@ -231,12 +231,26 @@
231 231
 
232 232
                   <el-col :span="8">
233 233
                     <el-form-item label="透析器/灌流器:">
234
-
235 234
                       <el-input
236 235
                         v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
237 236
                     </el-form-item>
238 237
                   </el-col>
239 238
 
239
+
240
+                  <el-col :span="8">
241
+                    <el-form-item label="透析器:">
242
+                      <el-input
243
+                        v-model="dialysis_dialyszers" @focus="showInnerDialog('6')"></el-input>
244
+                    </el-form-item>
245
+                  </el-col>
246
+
247
+                  <el-col :span="8">
248
+                    <el-form-item label="灌流器:">
249
+                      <el-input
250
+                        v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
251
+                    </el-form-item>
252
+                  </el-col>
253
+
240 254
                   <el-col :span="8">
241 255
                     <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
242 256
                       <el-input v-model="addPlan.bicarbonate"></el-input>
@@ -803,7 +817,9 @@ export default {
803 817
         displace_liqui_part: "",
804 818
         displace_liqui_value: "",
805 819
         ultrafiltration: "",
806
-        blood_access: ""
820
+        blood_access: "",
821
+        dialysis_dialyszers:"",
822
+        dialysis_irrigation:""
807 823
       },
808 824
       system_prescription: [],
809 825
       isEdit: false,
@@ -831,7 +847,9 @@ export default {
831 847
       body_fluid_option: [],
832 848
       special_medicine_option: [],
833 849
       displace_liqui_part_option: [],
834
-      blood_access_option: []
850
+      blood_access_option: [],
851
+      dialysis_dialyszers:"",
852
+      dialysis_irrigation:"",
835 853
     };
836 854
   },
837 855
   computed: {},
@@ -845,6 +863,28 @@ export default {
845 863
           this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
846 864
           this.InnerDialogProps.selected = this.addPlan.dialyzer_perfusion_apparatus
847 865
           this.InnerDialogProps.isShowTextArea = false
866
+          break
867
+         case '6':
868
+           for(let i=0;i<this.dialyzers.length;i++){
869
+               this.dialyzers[i].name = this.dialyzers[i].specification_name
870
+           }
871
+          this.InnerDialogProps.values = this.dialyzers
872
+          this.InnerDialogProps.titles = '透析器'
873
+          this.InnerDialogProps.type = 'dialyzers'
874
+          this.InnerDialogProps.selected = this.dialysis_dialyszers
875
+          this.InnerDialogProps.isShowTextArea = false
876
+        
877
+          break
878
+        case '7':
879
+          for(let i=0;i<this.irrigations.length;i++){
880
+             this.irrigations[i].name = this.irrigations[i].specification_name
881
+           }
882
+          this.InnerDialogProps.values = this.irrigations
883
+          this.InnerDialogProps.titles = '灌流器'
884
+          this.InnerDialogProps.type = 'irrigations'
885
+          this.InnerDialogProps.selected = this.dialysis_irrigation
886
+          this.InnerDialogProps.isShowTextArea = false
887
+        
848 888
           break
849 889
       }
850 890
     },
@@ -854,7 +894,12 @@ export default {
854 894
         case 'dialyzer_perfusion_apparatus':
855 895
           this.addPlan.dialyzer_perfusion_apparatus = val.value.join(',')
856 896
           break
857
-
897
+        case 'dialyzers':
898
+          this.dialysis_dialyszers = val.value.join(',')
899
+         break
900
+        case 'irrigations':
901
+          this.dialysis_irrigation = val.value.join(',')
902
+        break
858 903
       }
859 904
     },
860 905
     innerDialogCancle: function() {
@@ -915,7 +960,10 @@ export default {
915 960
         displace_liqui_part: "",
916 961
         displace_liqui_value: "",
917 962
         ultrafiltration: "",
918
-        blood_access: ""
963
+        blood_access: "",
964
+        stockType:[],
965
+        irrigations:[],
966
+        dialyzers:[],
919 967
       };
920 968
 
921 969
       for (const key in tempAddPlan) {
@@ -973,6 +1021,10 @@ export default {
973 1021
             }
974 1022
           }
975 1023
           this.addPlan.mode = id;
1024
+          this.addPlan.dialysis_dialyszers = prescription.dialysis_dialyszers
1025
+          this.addPlan.dialysis_irrigation = prescription.dialysis_irrigation
1026
+          this.dialysis_dialyszers = prescription.dialysis_dialyszers
1027
+          this.dialysis_irrigation = prescription.dialysis_irrigation
976 1028
         }
977 1029
       });
978 1030
     },
@@ -991,12 +1043,43 @@ export default {
991 1043
           return false;
992 1044
         } else {
993 1045
           this.system_prescription = response.data.data.prescriptions;
994
-
1046
+          
995 1047
           for (let i = 0; i < this.system_prescription.length; i++) {
996 1048
             if (this.system_prescription[i].mode == 1) {
997 1049
               this.isEdit = true;
998 1050
             }
999 1051
           }
1052
+          this.stockType =  response.data.data.stockType
1053
+          console.log("2333555555555",this.stockType)
1054
+          if(this.stockType.length >0 ){
1055
+               var arr = []
1056
+                var arrTwo = []
1057
+                for(let i=0;i<this.stockType.length;i++){
1058
+                  if(this.stockType[i].stock_attribute == 2){
1059
+                      arr.push(this.stockType[i])
1060
+                  }
1061
+                  if(this.stockType[i].stock_attribute == 3){
1062
+                      arrTwo.push(this.stockType[i])
1063
+                  }
1064
+                }
1065
+                var dialyzator = []
1066
+                var irrigation = []
1067
+                for(let i=0;i<arr.length;i++){
1068
+                  for(let j=0;j<arr[i].GoodInfo.length;j++){
1069
+                      dialyzator.push(arr[i].GoodInfo[j])
1070
+                  }
1071
+                }
1072
+                console.log("透析器",dialyzator)
1073
+                this.dialyzers = dialyzator
1074
+
1075
+                for(let i=0;i<arrTwo.length;i++){
1076
+                  for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
1077
+                      irrigation.push(arrTwo[i].GoodInfo[j])
1078
+                  }
1079
+                }
1080
+                console.log("灌流器",irrigation)
1081
+                this.irrigations = irrigation
1082
+          }
1000 1083
         }
1001 1084
       });
1002 1085
     },
@@ -1024,6 +1107,8 @@ export default {
1024 1107
     savePrescription: function() {
1025 1108
       this.addPlan.anticoagulant_zongliang = this.addPlan.anticoagulant_zongliang.toString();
1026 1109
       if (!this.isEdit) {
1110
+        this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1111
+        this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1027 1112
         postSystemPrescription(this.addPlan).then(response => {
1028 1113
           if (response.data.state == 0) {
1029 1114
             this.$message.error(response.data.msg);
@@ -1043,6 +1128,8 @@ export default {
1043 1128
           }
1044 1129
         });
1045 1130
       } else {
1131
+          this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1132
+          this.addPlan.dialysis_dialyszers  = this.dialysis_dialyszers
1046 1133
         updateSystemPrescription(this.addPlan.id, this.addPlan).then(
1047 1134
           response => {
1048 1135
             if (response.data.state == 0) {

+ 1 - 1
src/xt_pages/data/showConfig.vue 查看文件

@@ -150,7 +150,7 @@ export default {
150 150
   },
151 151
   created() {
152 152
     var filedList = store.getters.xt_user.fileds;
153
-
153
+    
154 154
     for (let i = 0; i < filedList.length; i++) {
155 155
       switch (filedList[i].module) {
156 156
         case 1:

+ 10 - 5
src/xt_pages/dialysis/PatientBox.vue 查看文件

@@ -115,6 +115,7 @@
115 115
       :dry_weight="lastDryWeightDislysis"
116 116
       :schedual="temp_schedual"
117 117
       :date='date'
118
+      :stockType="stockType"
118 119
     ></dialysis-prescription-dialog>
119 120
     <treatment-summary-dialog
120 121
       title="治疗小结"
@@ -225,6 +226,7 @@ export default {
225 226
       temp_schedual: null,
226 227
       date:'',
227 228
       modedata:0,
229
+      stockType:"",
228 230
     };
229 231
   },
230 232
   props: {
@@ -391,7 +393,7 @@ export default {
391 393
         var resp = rs.data;
392 394
         if (resp.state == 1) {
393 395
           var patient = resp.data.patient; // 患者信息
394
-          console.log("患者信息",patient)
396
+         
395 397
           var schedual = resp.data.schedual; // 患者排班信息
396 398
           var prescription = resp.data.prescription; // 透析处方
397 399
           if(prescription!=null){
@@ -411,10 +413,10 @@ export default {
411 413
              }
412 414
            }
413 415
           var doctor_advices = resp.data.doctor_advices; // 临时医嘱
414
-          //console.log("力气-------", doctor_advices);
416
+          
415 417
           var double_check = resp.data.double_check; // 双人核对
416 418
           var assessment_after_dislysis = resp.data.assessment_after_dislysis; // 透后评估
417
-          //console.log("透后品谷数", assessment_after_dislysis);
419
+        
418 420
           var treatment_summary = resp.data.treatment_summary; // 治疗小结
419 421
           var monitor_records = resp.data.monitor_records; // 透析监测
420 422
           var dialysis_order = resp.data.dialysis_order; // 透析记录
@@ -447,7 +449,10 @@ export default {
447 449
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis;
448 450
 
449 451
           var system_prescribe = resp.data.system_prescribe;
450
-
452
+          
453
+          var stockType =  resp.data.stockType
454
+          this.stockType = stockType
455
+          console.log("元单快乐222222",this.stockType)
451 456
           
452 457
           this.$refs.prescription.setLastRecord(
453 458
             schedual,
@@ -601,7 +606,7 @@ export default {
601 606
       this.$emit("advice");
602 607
     },
603 608
     open(schedual){
604
-      console.log("中国2222222",this)
609
+     
605 610
      
606 611
       this.date = schedual.schedule_date
607 612
       this.patient_id = schedual.patient_id

+ 56 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

@@ -75,6 +75,18 @@
75 75
           <span class="unit"></span>
76 76
         </li>
77 77
 
78
+        <li v-if="isShow('透析器')">
79
+          <label>透析器 : </label>
80
+          <span class="content">{{ dialysis_dialyszers }}</span>
81
+          <span class="unit"></span>
82
+        </li>
83
+
84
+        <li v-if="isShow('灌流器')">
85
+          <label>灌流器 : </label>
86
+          <span class="content">{{ dialysis_irrigation }}</span>
87
+          <span class="unit"></span>
88
+        </li>
89
+
78 90
         <li v-if="isShow('透析前使用特殊药物')">
79 91
           <label>透析前使用特殊药物: </label>
80 92
           <span class="content">{{ special_medicine }}</span>
@@ -332,6 +344,9 @@ export default {
332 344
     },
333 345
     device_number_map: {
334 346
       type: Object
347
+    },
348
+    preparestock:{
349
+      type:Array
335 350
     }
336 351
   },
337 352
   computed: {
@@ -494,6 +509,46 @@ export default {
494 509
         'dialyzer_perfusion_apparatus'
495 510
       )
496 511
     },
512
+    dialysis_dialyszers:function(){
513
+
514
+      var str = this.getValueStr('dialysis_dialyszers','dialysis_dialyszers')
515
+       console.log("str",str)
516
+      var arr = str.split(",")
517
+
518
+      if (arr.length >0) {
519
+         for(let i=0;i<arr.length;i++){
520
+           for(let j=0;j<this.preparestock.length;j++){
521
+              if(arr[i] == this.preparestock[j].specification_name){
522
+                 arr[i] = arr[i]+"("+this.preparestock[j].commdity_code+")"
523
+              }
524
+           }
525
+         }
526
+      }
527
+      console.log("arr00000",arr)
528
+      var strs = arr.join(',')
529
+      console.log("strs",strs)
530
+      return strs
531
+    },
532
+    dialysis_irrigation:function(){
533
+        var str = this.getValueStr('dialysis_irrigation','dialysis_irrigation')
534
+       console.log("str",str)
535
+      var arr = str.split(",")
536
+
537
+      if (arr.length >0) {
538
+         for(let i=0;i<arr.length;i++){
539
+           for(let j=0;j<this.preparestock.length;j++){
540
+              if(arr[i] == this.preparestock[j].specification_name){
541
+                 arr[i] = arr[i]+"("+this.preparestock[j].commdity_code+")"
542
+              }
543
+           }
544
+         }
545
+      }
546
+      console.log("arr00000",arr)
547
+      var strs = arr.join(',')
548
+      console.log("strs",strs)
549
+      return strs
550
+      // return this.getValueStr('dialysis_irrigation','dialysis_irrigation')
551
+    },
497 552
     body_fluid: function() {
498 553
       var id = this.getValueStr('body_fluid', 'body_fluid')
499 554
       if (id == 0) {
@@ -572,6 +627,7 @@ export default {
572 627
     }
573 628
   },
574 629
   created() {
630
+
575 631
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
576 632
     var map = {}
577 633
     for (let index = 0; index < perfusion_apparatus.length; index++) {

+ 8 - 1
src/xt_pages/dialysis/details/NavIgation.vue 查看文件

@@ -88,6 +88,7 @@
88 88
       :last_prescription="last_dialysis_prescribe"
89 89
       :dry_weight="last_dryWeight_dislysis"
90 90
       :schedual="temp_schedual"
91
+      :stockType="stockType"
91 92
       :lastAssessment="lastAssessment"
92 93
     ></dialysis-prescription-dialog>
93 94
 
@@ -99,7 +100,7 @@
99 100
       :prescription="prescription"
100 101
       :double_check="double_check"
101 102
       :admin_users="admin_users"
102
-    
103
+
103 104
     ></double-check-dialog>
104 105
 
105 106
     <accepts-treatment-dialog
@@ -512,6 +513,12 @@ export default {
512 513
         return [];
513 514
       }
514 515
     },
516
+    stockType:{
517
+      type:Array,
518
+      default:()=>{
519
+        return [];
520
+      }
521
+    },
515 522
     lastAssessment:{
516 523
      // 最后一条血管通路(处理今天录的)
517 524
      type: Object,

+ 1 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

@@ -1262,6 +1262,7 @@
1262 1262
       this.humor_excessive_symptom_array = getDataConfig('hemodialysis', 'humor_excessive_symptom')
1263 1263
       // console.log("血管通路部位",this.blood_access_part_opera)
1264 1264
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
1265
+      console.log("内瘘222222",this.internal_fistula)
1265 1266
       this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')
1266 1267
       this.puncture_method = getDataConfig('hemodialysis', 'puncture_method')
1267 1268
       this.machineType = getDataConfig('hemodialysis', 'machine_type')

+ 78 - 296
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -252,7 +252,7 @@
252 252
               ></el-input>
253 253
             </el-form-item>
254 254
           </el-col>
255
-          
255
+
256 256
 
257 257
            <el-col :span="8" v-if="isShows('置换速度')" v-show="totalShow">
258 258
             <el-form-item label="置换速度(ml/min)">
@@ -262,7 +262,7 @@
262 262
             </el-form-item>
263 263
           </el-col>
264 264
 
265
- 
265
+
266 266
           <el-col
267 267
             :span="8"
268 268
             v-if="anticoagulant.gaimingcheng != -1 && isShows('钙名称')"
@@ -368,18 +368,18 @@
368 368
             </el-form-item>
369 369
           </el-col>
370 370
 
371
-          <!-- <el-col :span="8" v-if="isShows('透析器')">
371
+          <el-col :span="8" v-if="isShows('透析器')">
372 372
              <el-form-item label="透析器:">
373
-                  <el-input v-model="dialysisPrescription.dialyzers" @focus="showInnerDialog('7')"></el-input>
373
+                  <el-input v-model="dialysisPrescription.dialysis_dialyszers" @focus="showInnerDialog('7')"></el-input>
374 374
              </el-form-item>
375 375
           </el-col>
376 376
 
377
-ß
377
+
378 378
           <el-col :span="8" v-if="isShows('灌流器')">
379 379
              <el-form-item label="灌流器:">
380
-                  <el-input v-model="dialysisPrescription.irrigation" @focus="showInnerDialog('8')"></el-input>
380
+                  <el-input v-model="dialysisPrescription.dialysis_irrigation" @focus="showInnerDialog('8')"></el-input>
381 381
              </el-form-item>
382
-          </el-col> -->
382
+          </el-col>
383 383
 
384 384
           <el-col :span="8" v-if="isShows('体液过多症状')">
385 385
             <el-form-item label="体液过多症状:">
@@ -400,10 +400,7 @@
400 400
             </el-form-item>
401 401
           </el-col>
402 402
 
403
-          <!-- </el-row>
404
-
405 403
 
406
-          <el-row :gutter="20" > -->
407 404
 
408 405
           <el-col :span="8" v-if="isShows('体液过多其他症状')">
409 406
             <el-form-item label="体液过多其他症状">
@@ -440,9 +437,7 @@
440 437
             </el-form-item>
441 438
           </el-col>
442 439
 
443
-          <!-- </el-row>
444 440
 
445
-          <el-row :gutter="20" > -->
446 441
           <el-col :span="8">
447 442
             <el-form-item
448 443
               label="置换液:"
@@ -530,281 +525,6 @@
530 525
 
531 526
             </el-form-item>
532 527
           </el-col>
533
-
534
-
535
-          <!-- </el-row>
536
-          <el-row :gutter="20" > -->
537
-          <!--          <el-col :span="8" v-if="isShows('实际超滤量')">-->
538
-          <!--            <el-form-item label="实际超滤量(L)">-->
539
-          <!--              <el-input v-model="dialysisPrescription.ultrafiltration"></el-input>-->
540
-          <!--            </el-form-item>-->
541
-          <!--          </el-col>-->
542
-
543
-          <!--透析耗材-->
544
-          <!--<el-col-->
545
-            <!--:span="8"-->
546
-            <!--v-if="isShows('血液透析干粉') && config.is_open == 1"-->
547
-          <!--&gt;-->
548
-            <!--<el-form-item label="血液透析干粉:">-->
549
-              <!--<el-select-->
550
-                <!--v-model="dialysisPrescription.niprocart"-->
551
-                <!--placeholder="请选择"-->
552
-              <!--&gt;-->
553
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
554
-                <!--<el-option-->
555
-                  <!--v-for="(option, index) in niprocart_info"-->
556
-                  <!--:key="index + 'p'"-->
557
-                  <!--:label="option.GoodInfo.specification_name"-->
558
-                  <!--:value="option.GoodInfo.id"-->
559
-                <!--&gt;</el-option>-->
560
-              <!--</el-select>-->
561
-            <!--</el-form-item>-->
562
-          <!--</el-col>-->
563
-
564
-          <!--<el-col-->
565
-            <!--:span="8"-->
566
-            <!--v-if="isShows('一次性使用动静脉穿刺针') && config.is_open == 1"-->
567
-          <!--&gt;-->
568
-            <!--<el-form-item label="一次性使用动静脉穿刺针:">-->
569
-              <!--<el-select-->
570
-                <!--v-model="dialysisPrescription.jms"-->
571
-                <!--placeholder="请选择"-->
572
-              <!--&gt;-->
573
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
574
-
575
-                <!--<el-option-->
576
-                  <!--v-for="(option, index) in jms_info"-->
577
-                  <!--:key="index + 'a'"-->
578
-                  <!--:label="option.GoodInfo.specification_name"-->
579
-                  <!--:value="option.GoodInfo.id"-->
580
-                <!--&gt;</el-option>-->
581
-              <!--</el-select>-->
582
-            <!--</el-form-item>-->
583
-          <!--</el-col>-->
584
-
585
-          <!--<el-col-->
586
-            <!--:span="8"-->
587
-            <!--v-if="isShows('内瘘管翼状针') && config.is_open == 1"-->
588
-          <!--&gt;-->
589
-            <!--<el-form-item label="内瘘管翼状针:">-->
590
-              <!--<el-select-->
591
-                <!--v-model="dialysisPrescription.fistula_needle_set"-->
592
-                <!--placeholder="请选择"-->
593
-              <!--&gt;-->
594
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
595
-
596
-                <!--<el-option-->
597
-                  <!--v-for="(option, index) in fistula_needle_set_info"-->
598
-                  <!--:key="index + 's'"-->
599
-                  <!--:label="option.GoodInfo.specification_name"-->
600
-                  <!--:value="option.GoodInfo.id"-->
601
-                <!--&gt;</el-option>-->
602
-              <!--</el-select>-->
603
-            <!--</el-form-item>-->
604
-          <!--</el-col>-->
605
-
606
-          <!--<el-col-->
607
-            <!--:span="8"-->
608
-            <!--v-if="isShows('内瘘管翼状针16G') && config.is_open == 1"-->
609
-          <!--&gt;-->
610
-            <!--<el-form-item label="内瘘管翼状针16G:">-->
611
-              <!--<el-select-->
612
-                <!--v-model="dialysisPrescription.fistula_needle_set_16"-->
613
-                <!--placeholder="请选择"-->
614
-              <!--&gt;-->
615
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
616
-
617
-                <!--<el-option-->
618
-                  <!--v-for="(option, index) in fistula_needle_set_16_info"-->
619
-                  <!--:key="index + 'd'"-->
620
-                  <!--:label="option.GoodInfo.specification_name"-->
621
-                  <!--:value="option.GoodInfo.id"-->
622
-                <!--&gt;</el-option>-->
623
-              <!--</el-select>-->
624
-            <!--</el-form-item>-->
625
-          <!--</el-col>-->
626
-
627
-          <!--<el-col-->
628
-            <!--:span="8"-->
629
-            <!--v-if="isShows('一次性使用血液灌流器') && config.is_open == 1"-->
630
-          <!--&gt;-->
631
-            <!--<el-form-item label="一次性使用血液灌流器:">-->
632
-              <!--<el-select-->
633
-                <!--v-model="dialysisPrescription.hemoperfusion"-->
634
-                <!--placeholder="请选择"-->
635
-              <!--&gt;-->
636
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
637
-
638
-                <!--<el-option-->
639
-                  <!--v-for="(option, index) in hemoperfusion_info"-->
640
-                  <!--:key="index + 'f'"-->
641
-                  <!--:label="option.GoodInfo.specification_name"-->
642
-                  <!--:value="option.GoodInfo.id"-->
643
-                <!--&gt;</el-option>-->
644
-              <!--</el-select>-->
645
-            <!--</el-form-item>-->
646
-          <!--</el-col>-->
647
-
648
-          <!--<el-col-->
649
-            <!--:span="8"-->
650
-            <!--v-if="isShows('空心纤维血液透析器') && config.is_open == 1"-->
651
-          <!--&gt;-->
652
-            <!--<el-form-item label="空心纤维血液透析器:">-->
653
-              <!--<el-select-->
654
-                <!--v-model="dialysisPrescription.dialyser_sterilised"-->
655
-                <!--placeholder="请选择"-->
656
-              <!--&gt;-->
657
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
658
-
659
-                <!--<el-option-->
660
-                  <!--v-for="(option, index) in dialyser_sterilised_info"-->
661
-                  <!--:key="index + 'g'"-->
662
-                  <!--:label="option.GoodInfo.specification_name"-->
663
-                  <!--:value="option.GoodInfo.id"-->
664
-                <!--&gt;</el-option>-->
665
-              <!--</el-select>-->
666
-            <!--</el-form-item>-->
667
-          <!--</el-col>-->
668
-
669
-          <!--<el-col-->
670
-            <!--:span="8"-->
671
-            <!--v-if="isShows('中空纤维透析器') && config.is_open == 1"-->
672
-          <!--&gt;-->
673
-            <!--<el-form-item label="中空纤维透析器:">-->
674
-              <!--<el-select-->
675
-                <!--v-model="dialysisPrescription.filtryzer"-->
676
-                <!--placeholder="请选择"-->
677
-              <!--&gt;-->
678
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
679
-
680
-                <!--<el-option-->
681
-                  <!--v-for="(option, index) in filtryzer_info"-->
682
-                  <!--:key="index + 'h'"-->
683
-                  <!--:label="option.GoodInfo.specification_name"-->
684
-                  <!--:value="option.GoodInfo.id"-->
685
-                <!--&gt;</el-option>-->
686
-              <!--</el-select>-->
687
-            <!--</el-form-item>-->
688
-          <!--</el-col>-->
689
-
690
-          <!--<el-col :span="8" v-if="isShows('透析器') && config.is_open == 1">-->
691
-            <!--<el-form-item label="透析器:">-->
692
-              <!--<el-select-->
693
-                <!--v-model="dialysisPrescription.dialyzers"-->
694
-                <!--placeholder="请选择"-->
695
-              <!--&gt;-->
696
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
697
-
698
-                <!--<el-option-->
699
-                  <!--v-for="(option, index) in dialyzers_info"-->
700
-                  <!--:key="index + 1"-->
701
-                  <!--:label="option.GoodInfo.specification_name"-->
702
-                  <!--:value="option.GoodInfo.id"-->
703
-                <!--&gt;</el-option>-->
704
-              <!--</el-select>-->
705
-            <!--</el-form-item>-->
706
-          <!--</el-col>-->
707
-
708
-          <!--<el-col :span="8" v-if="isShows('注射器') && config.is_open == 1">-->
709
-            <!--<el-form-item label="注射器:">-->
710
-              <!--<el-select-->
711
-                <!--v-model="dialysisPrescription.injector"-->
712
-                <!--placeholder="请选择"-->
713
-              <!--&gt;-->
714
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
715
-
716
-                <!--<el-option-->
717
-                  <!--v-for="(option, index) in injector_info"-->
718
-                  <!--:key="index + 'j'"-->
719
-                  <!--:label="option.GoodInfo.specification_name"-->
720
-                  <!--:value="option.GoodInfo.id"-->
721
-                <!--&gt;</el-option>-->
722
-              <!--</el-select>-->
723
-            <!--</el-form-item>-->
724
-          <!--</el-col>-->
725
-
726
-          <!--<el-col-->
727
-            <!--:span="8"-->
728
-            <!--v-if="isShows('体外循环血路管') && config.is_open == 1"-->
729
-          <!--&gt;-->
730
-            <!--<el-form-item label="体外循环血路管:">-->
731
-              <!--<el-select-->
732
-                <!--v-model="dialysisPrescription.bloodlines"-->
733
-                <!--placeholder="请选择"-->
734
-              <!--&gt;-->
735
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
736
-
737
-                <!--<el-option-->
738
-                  <!--v-for="(option, index) in bloodlines_info"-->
739
-                  <!--:key="index + 'k'"-->
740
-                  <!--:label="option.GoodInfo.specification_name"-->
741
-                  <!--:value="option.GoodInfo.id"-->
742
-                <!--&gt;</el-option>-->
743
-              <!--</el-select>-->
744
-            <!--</el-form-item>-->
745
-          <!--</el-col>-->
746
-
747
-          <!--<el-col-->
748
-            <!--:span="8"-->
749
-            <!--v-if="isShows('血液净化补液管路(置换管)') && config.is_open == 1"-->
750
-          <!--&gt;-->
751
-            <!--<el-form-item label="血液净化补液管路(置换管):">-->
752
-              <!--<el-select-->
753
-                <!--v-model="dialysisPrescription.tubing_hemodialysis"-->
754
-                <!--placeholder="请选择"-->
755
-              <!--&gt;-->
756
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
757
-
758
-                <!--<el-option-->
759
-                  <!--v-for="(option, index) in tubingHemodialysis_info"-->
760
-                  <!--:key="index + 'x'"-->
761
-                  <!--:label="option.GoodInfo.specification_name"-->
762
-                  <!--:value="option.GoodInfo.id"-->
763
-                <!--&gt;</el-option>-->
764
-              <!--</el-select>-->
765
-            <!--</el-form-item>-->
766
-          <!--</el-col>-->
767
-
768
-          <!--<el-col :span="8" v-if="isShows('护理包') && config.is_open == 1">-->
769
-            <!--<el-form-item label="护理包:">-->
770
-              <!--<el-select-->
771
-                <!--v-model="dialysisPrescription.package"-->
772
-                <!--placeholder="请选择"-->
773
-              <!--&gt;-->
774
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
775
-
776
-                <!--<el-option-->
777
-                  <!--v-for="(option, index) in safe_package_info"-->
778
-                  <!--:key="index + 'z'"-->
779
-                  <!--:label="option.GoodInfo.specification_name"-->
780
-                  <!--:value="option.GoodInfo.id"-->
781
-                <!--&gt;</el-option>-->
782
-              <!--</el-select>-->
783
-            <!--</el-form-item>-->
784
-          <!--</el-col>-->
785
-
786
-          <!--<el-col :span="8" v-if="isShows('A液') && config.is_open == 1">-->
787
-            <!--<el-form-item label="A液:">-->
788
-              <!--<el-select-->
789
-                <!--v-model="dialysisPrescription.a_liquid"-->
790
-                <!--placeholder="请选择"-->
791
-              <!--&gt;-->
792
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
793
-
794
-                <!--<el-option-->
795
-                  <!--v-for="(option, index) in aliquid_info"-->
796
-                  <!--:key="index + 'c'"-->
797
-                  <!--:label="option.GoodInfo.specification_name"-->
798
-                  <!--:value="option.GoodInfo.id"-->
799
-                <!--&gt;</el-option>-->
800
-              <!--</el-select>-->
801
-            <!--</el-form-item>-->
802
-          <!--</el-col>-->
803
-
804
-
805
-
806
-
807
-
808 528
         </el-row>
809 529
 
810 530
         <el-row :gutter="20">
@@ -1162,6 +882,12 @@
1162 882
         }
1163 883
       },
1164 884
       scheudle_mode:Number,
885
+     stockType:{
886
+        type:Array,
887
+        default:()=>{
888
+          return [];
889
+        }
890
+      },
1165 891
       lastAssessment: {
1166 892
         type: Object,
1167 893
         default: () => {
@@ -1287,6 +1013,8 @@
1287 1013
           nucleoprotamine:"",//鱼精蛋白
1288 1014
           no_heparin_remarks:"",
1289 1015
           blood:"",
1016
+          dialysis_dialyszers:"",
1017
+          dialysis_irrigation:"",
1290 1018
           irrigation:"",
1291 1019
           antioxidant_commodity_name:"",
1292 1020
           displace_speed:"",
@@ -1311,7 +1039,7 @@
1311 1039
         doctorAdvices: [],
1312 1040
         dialyzerPerfusionApparatus: [],
1313 1041
         bloods:[],
1314
-        irrigation:[],
1042
+        irrigations:[],
1315 1043
         dialyzers:[],
1316 1044
       }
1317 1045
     },
@@ -1378,6 +1106,25 @@
1378 1106
 
1379 1107
            case '7': // 透析器
1380 1108
 
1109
+            for(let i=0;i<this.dialyzers.length;i++){
1110
+               this.dialyzers[i].name = this.dialyzers[i].specification_name
1111
+            }
1112
+            this.InnerDialogProps.values = this.dialyzers
1113
+            this.InnerDialogProps.titles = '透析器'
1114
+            this.InnerDialogProps.type = 'dialyzers'
1115
+            this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_dialyszers
1116
+            this.InnerDialogProps.isShowTextArea = false
1117
+            break
1118
+           case '8':
1119
+           for(let i=0;i<this.irrigations.length;i++){
1120
+             this.irrigations[i].name = this.irrigations[i].specification_name
1121
+           }
1122
+            this.InnerDialogProps.values = this.irrigations
1123
+            this.InnerDialogProps.titles = '透析器'
1124
+            this.InnerDialogProps.type = 'irrigations'
1125
+            this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
1126
+            this.InnerDialogProps.isShowTextArea = false
1127
+            break
1381 1128
         }
1382 1129
       },
1383 1130
       innerDialogComfirm: function(val) {
@@ -1389,6 +1136,12 @@
1389 1136
           case 'blood':
1390 1137
             this.dialysisPrescription.blood = val.value.join(',')
1391 1138
            break
1139
+          case 'dialyzers':
1140
+           this.dialysisPrescription.dialysis_dialyszers = val.value.join(',')
1141
+          break
1142
+          case 'irrigations':
1143
+           this.dialysisPrescription.dialysis_irrigation = val.value.join(',')
1144
+          break
1392 1145
         }
1393 1146
       },
1394 1147
       innerDialogCancle: function() {
@@ -1490,7 +1243,7 @@
1490 1243
           'hemodialysis',
1491 1244
           'dialyzer_perfusion_apparatus'
1492 1245
         )
1493
-
1246
+        console.log("3333333",this.dialyzerPerfusionApparatus)
1494 1247
         this.bloods = getDataConfig(
1495 1248
           'hemodialysis',
1496 1249
           'blood'
@@ -1618,6 +1371,7 @@
1618 1371
                 ParamsQuery['mode'] = '3'
1619 1372
               }
1620 1373
             }
1374
+
1621 1375
             postPrescription(ParamsQuery).then(response => {
1622 1376
               if (response.data.state == 0) {
1623 1377
                 this.$message.error(response.data.msg)
@@ -1838,7 +1592,7 @@
1838 1592
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1839 1593
       },
1840 1594
       show(pre,schedual,last,his_is_open) {
1841
-     
1595
+
1842 1596
         if(his_is_open == 1){
1843 1597
           this.is_open = 0
1844 1598
         }
@@ -1911,8 +1665,8 @@
1911 1665
         } else {
1912 1666
           last_weight_after = this.last_record.weight_after
1913 1667
         }
1914
-        
1915
- 
1668
+
1669
+
1916 1670
 
1917 1671
         if (this.predialysis == null || this.predialysis.id == 0) {
1918 1672
           if(last != null) {
@@ -1934,7 +1688,7 @@
1934 1688
 
1935 1689
             weight_before = 0
1936 1690
 
1937
-           
1691
+
1938 1692
           }
1939 1693
 
1940 1694
         } else {
@@ -1960,11 +1714,11 @@
1960 1714
         //               if(this.last_prescription.blood_access_part_opera_id == this.blood_access_option[i].name){
1961 1715
         //                 blood_id = this.blood_access_option[i].id
1962 1716
         //               }
1963
-        //           }   
1717
+        //           }
1964 1718
         //            this.dialysisPrescription.blood_access = blood_id
1965 1719
         //       }
1966 1720
         //     }
1967
-           
1721
+
1968 1722
         //  }
1969 1723
 
1970 1724
         if (weight_before > 0 && last_weight_after > 0) {
@@ -2050,7 +1804,7 @@
2050 1804
             ParamsQuery['record_date'] = this.record_date
2051 1805
             ParamsQuery['mode'] = '1'
2052 1806
 
2053
-            console.log("第一")
1807
+            console.log("第一",ParamsQuery)
2054 1808
             postPrescription(ParamsQuery).then(response => {
2055 1809
               if (response.data.state == 0) {
2056 1810
                 this.$message.error(response.data.msg)
@@ -3738,7 +3492,35 @@
3738 3492
           }
3739 3493
         }
3740 3494
       },
3495
+      stockType:function(){
3741 3496
 
3497
+        var arr = []
3498
+        var arrTwo = []
3499
+        for(let i=0;i<this.stockType.length;i++){
3500
+          if(this.stockType[i].stock_attribute == 2){
3501
+              arr.push(this.stockType[i])
3502
+          }
3503
+          if(this.stockType[i].stock_attribute == 3){
3504
+              arrTwo.push(this.stockType[i])
3505
+          }
3506
+        }
3507
+        var dialyzator = []
3508
+        var irrigation = []
3509
+        for(let i=0;i<arr.length;i++){
3510
+          for(let j=0;j<arr[i].GoodInfo.length;j++){
3511
+              dialyzator.push(arr[i].GoodInfo[j])
3512
+          }
3513
+        }
3514
+        this.dialyzers = dialyzator
3515
+
3516
+        for(let i=0;i<arrTwo.length;i++){
3517
+           for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
3518
+              irrigation.push(arrTwo[i].GoodInfo[j])
3519
+           }
3520
+        }
3521
+        this.irrigations = irrigation
3522
+
3523
+      }
3742 3524
     }
3743 3525
   }
3744 3526
 </script>

+ 23 - 13
src/xt_pages/dialysis/details/index.vue 查看文件

@@ -267,6 +267,7 @@
267 267
         :system_prescribe="system_prescribe"
268 268
         :his_is_open="his_is_open"
269 269
         :lastAssessment="lastAssessment"
270
+        :stockType="stockType"
270 271
       >
271 272
       </nav-igation>
272 273
 
@@ -283,6 +284,7 @@
283 284
         :prescription="prescription"
284 285
         :solution="solution"
285 286
         :device_map="device_map"
287
+        :preparestock="preparestock"
286 288
         title="透析处方"
287 289
       ></dialysis-prescription>
288 290
 
@@ -681,7 +683,8 @@ export default {
681 683
       curPatient:{},
682 684
 
683 685
       queueConfig:{},
684
-      stockType:[]
686
+      stockType:[],
687
+      preparestock:[]
685 688
     }
686 689
   },
687 690
   created() {
@@ -971,22 +974,22 @@ export default {
971 974
 
972 975
       this.doctor_advices = []
973 976
       getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
974
-        
977
+
975 978
         var resp = rs.data
976 979
         if (resp.state == 1) {
977 980
           var patient = resp.data.patient // 患者信息
978 981
           var schedual = resp.data.schedual // 患者排班信息
979
-        
982
+
980 983
           var prescription = resp.data.prescription // 透析处方
981 984
           if (prescription != null) {
982 985
             if (prescription.body_fluid == -2) {
983 986
               prescription.body_fluid = 0
984 987
             }
985 988
           }
986
-        
989
+
987 990
           var solution = resp.data.solution // 透析方案
988 991
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
989
-         
992
+
990 993
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
991 994
            console.log("透器评估",predialysis_evaluation)
992 995
           if (predialysis_evaluation != null) {
@@ -1018,7 +1021,7 @@ export default {
1018 1021
           var aliquid_info = resp.data.aliquid_info
1019 1022
 
1020 1023
           var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
1021
-        
1024
+
1022 1025
           if (lastPredialysisEvaluation != null) {
1023 1026
             if (lastPredialysisEvaluation.blood_access_part_id == -2) {
1024 1027
               lastPredialysisEvaluation.blood_access_part_id = 0
@@ -1028,9 +1031,9 @@ export default {
1028 1031
           var lastAssessmentAfterDislysis = resp.data.lastAssessmentAfterDislysis
1029 1032
           var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
1030 1033
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
1031
-         
1034
+
1032 1035
           var system_prescribe = resp.data.system_prescribe
1033
-           
1036
+
1034 1037
           var lastAssessment =  resp.data.lastAssessment
1035 1038
           console.log("最后一次血管通路",lastAssessment)
1036 1039
           this.$refs.nav.setLastRecord(
@@ -1115,19 +1118,26 @@ export default {
1115 1118
           this.dialysis_order =
1116 1119
             dialysis_order == null ? { id: 0 } : dialysis_order
1117 1120
 
1118
-         
1121
+
1119 1122
 
1120 1123
           this.admin_users = resp.data.doctors
1121 1124
           this.devices = resp.data.devices
1122 1125
           this.device_numbers = resp.data.device_numbers
1123 1126
 
1124 1127
           var his_doctor_advices = resp.data.his_advices
1125
-          
1128
+
1126 1129
           this.his_is_open = resp.data.is_open_config.is_open
1127 1130
           console.log(this.his_is_open)
1128
-          
1129
-      
1130
-          
1131
+
1132
+
1133
+
1134
+          var stockType =  resp.data.stockType
1135
+          this.stockType = stockType
1136
+          console.log("stockTYPW",stockType)
1137
+
1138
+          var prepare = resp.data.prepare
1139
+          this.preparestock = prepare
1140
+          console.log("prepare222222",prepare)
1131 1141
           for (let i = 0; i <  this.doctor_advices.length; i++){
1132 1142
             this.doctor_advices[i]['origin'] = 1
1133 1143
           }

+ 38 - 11
src/xt_pages/stock/Dialog/goodTypeDialog.vue 查看文件

@@ -12,15 +12,18 @@
12 12
       <el-row>
13 13
         <el-col>
14 14
           <el-form-item label="耗材属性">
15
-              <el-radio v-model="formValue.stock_attribute" label="1">无</el-radio>
16
-              <el-radio v-model="formValue.stock_attribute" label="2">透析器</el-radio>
17
-              <el-radio v-model="formValue.stock_attribute" label="3">灌流器</el-radio>
15
+            
16
+              <el-radio-group v-model="formValue.stock_attribute" @change="changeRadio">
17
+                  <el-radio label="1">无</el-radio>
18
+                  <el-radio label="2">透析器</el-radio>
19
+                  <el-radio label="3">灌流器</el-radio>
20
+              </el-radio-group>
18 21
           </el-form-item>
19 22
         </el-col>
20 23
       </el-row>
21 24
       <el-row>
22 25
         <el-col>
23
-          <el-form-item label="耗材出库" prop="out_stock">
26
+          <el-form-item label="耗材出库" prop="out_stock" v-show="showAttribute">
24 27
              <el-radio v-model="formValue.out_stock" label="1">是</el-radio>
25 28
              <el-radio v-model="formValue.out_stock" label="2">否</el-radio>
26 29
           </el-form-item>     
@@ -67,7 +70,8 @@ export default {
67 70
         ]
68 71
       },
69 72
        out_stock: '1',
70
-       stock_attribute:"1"
73
+       stock_attribute:"1",
74
+       showAttribute:false
71 75
     };
72 76
   },
73 77
   props: {
@@ -84,7 +88,15 @@ export default {
84 88
     }
85 89
   },
86 90
   methods: {
87
-    show:function(){
91
+    show:function(val){
92
+      console.log("val22222222",this.formValue)
93
+      if(this.formValue.stock_attribute == "1"){
94
+        this.showAttribute = false
95
+      }
96
+      if(this.formValue.stock_attribute == "2" || this.formValue.stock_attribute =="3"){
97
+        this.showAttribute = true
98
+      }
99
+   
88 100
       this.visibility = true
89 101
 
90 102
     },hide:function(){
@@ -109,20 +121,35 @@ export default {
109 121
       form['out_stock'] = this.formValue.out_stock;
110 122
       form["stock_attribute"] = this.formValue.stock_attribute
111 123
       return form;
124
+    },
125
+
126
+    changeRadio(val){
127
+      if(val == 1){
128
+        this.showAttribute = false
129
+      }
130
+      if(val == 2 || val == 3){
131
+        this.showAttribute = true
132
+      }
112 133
     }
113 134
   },
135
+  
114 136
   watch: {
115 137
     visibility(val) {
116
-      !val &&
117
-        setTimeout(() => {
138
+      
139
+      !val && setTimeout(() => {
140
+        
118 141
           this.$refs["formValue"].resetFields();
119 142
           this.formValue.remark = "";
120 143
           this.formValue.type_name = "";
121 144
           this.formValue.stock_attribute="1";
122 145
           this.formValue.out_stock = "1"
123
-        }, 0);
124
-    }
125
-  }
146
+       }, 0);
147
+    },
148
+    
149
+   
150
+  },
151
+
152
+ 
126 153
 };
127 154
 </script>
128 155
 

+ 3 - 2
src/xt_pages/stock/config/goodType.vue 查看文件

@@ -339,12 +339,13 @@ export default {
339 339
         });
340 340
       } else if (val.isCreated == 1) {
341 341
         //新增
342
-        console.log("val22222",val)
342
+        
343 343
        
344 344
         createGoodType(val).then(response => {
345 345
           
346 346
           if (response.data.state == 0) {
347
-            this.$message.error(response.data.msg);
347
+            // this.$message.error(response.data.msg);
348
+            this.$message.error("透析器或灌流器商品类型已存在!")
348 349
             return false;
349 350
           } else {
350 351
             this.$refs.dialog.hide();

+ 1 - 1
src/xt_pages/stock/index.vue 查看文件

@@ -13,7 +13,7 @@
13 13
           <!--<el-tab-pane label="经销商">-->
14 14
             <!--<dealer></dealer>-->
15 15
           <!--</el-tab-pane>-->
16
-          <el-tab-pane label="商品类型" name="first">
16
+          <el-tab-pane label="耗材类型" name="first">
17 17
             <good-type></good-type>
18 18
           </el-tab-pane>
19 19
           <!--<el-tab-pane label="商品信息">-->

+ 117 - 18
src/xt_pages/user/dialysisSolution.vue 查看文件

@@ -85,7 +85,7 @@
85 85
             <span>{{ getAdminUserName(scope.row.registrars_id) }}</span>
86 86
           </template>
87 87
         </el-table-column>
88
-        
88
+
89 89
         <el-table-column
90 90
           prop="created_time"
91 91
           align="center"
@@ -215,7 +215,7 @@
215 215
               <el-input v-model="addPlan.blood_flow_volume"></el-input>
216 216
             </el-form-item>
217 217
           </el-col>
218
-       
218
+
219 219
 
220 220
           <el-col :span="8" v-if="isShows('透析液配方')">
221 221
             <el-form-item label="透析液配方:">
@@ -229,7 +229,7 @@
229 229
               </el-select>
230 230
             </el-form-item>
231 231
           </el-col>
232
-         
232
+
233 233
           <el-col :span="8" v-if="isShows('抗凝剂')">
234 234
             <el-form-item label="抗凝剂:" prop="anticoagulant">
235 235
               <el-select
@@ -349,6 +349,21 @@
349 349
             </el-form-item>
350 350
           </el-col>
351 351
 
352
+
353
+
354
+
355
+          <el-col :span="8" v-if="isShows('透析器')">
356
+            <el-form-item label="透析器:">
357
+              <el-input v-model="dialysis_dialyszers" @focus="showInnerDialog('6')"></el-input>
358
+            </el-form-item>
359
+          </el-col>
360
+
361
+          <el-col :span="8" v-if="isShows('灌流器')">
362
+             <el-form-item label="灌流器:">
363
+               <el-input v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
364
+             </el-form-item>
365
+          </el-col>
366
+
352 367
           <el-col :span="8" v-if="isShows('碳酸氢盐')">
353 368
             <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
354 369
               <el-input v-model="addPlan.bicarbonate"></el-input>
@@ -689,7 +704,9 @@ export default {
689 704
         displace_liqui_part: '',
690 705
         displace_liqui_value: '',
691 706
         ultrafiltration: '',
692
-        blood_access: ''
707
+        blood_access: '',
708
+        dialysis_dialyszers:'',
709
+        dialysis_irrigation:'',
693 710
       },
694 711
       childPlan: {
695 712
         mode: '',
@@ -812,11 +829,16 @@ export default {
812 829
         page: 1,
813 830
         limit: 10,
814 831
         id: 0
815
-      }
832
+      },
833
+     stockType:[],
834
+     irrigations:[],
835
+     dialyzers:[],
836
+     dialysis_dialyszers:'',
837
+     dialysis_irrigation:"",
816 838
     }
817 839
   },
818 840
   watch: {
819
-   
841
+
820 842
    'dialysisTimeShow':function(){
821 843
       var val = this.addPlan.dialysis_duration_hour+":"+this.addPlan.dialysis_duration_minute
822 844
       var valTime = val.split(':')
@@ -826,7 +848,7 @@ export default {
826 848
    },
827 849
 
828 850
     'addPlan.dialysis_duration': function() {
829
-    
851
+
830 852
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
831 853
         this.addPlan.anticoagulant_shouji,
832 854
         this.addPlan.dialysis_duration,
@@ -834,7 +856,7 @@ export default {
834 856
       )
835 857
     },
836 858
     'addPlan.anticoagulant_shouji': function() {
837
-      
859
+
838 860
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
839 861
         this.addPlan.anticoagulant_shouji,
840 862
         this.addPlan.dialysis_duration,
@@ -852,7 +874,7 @@ export default {
852 874
   },
853 875
 
854 876
 
855
-  
877
+
856 878
   components: {
857 879
     MultiSelectBox,
858 880
     tableTitle,
@@ -868,15 +890,47 @@ export default {
868 890
           this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
869 891
           this.InnerDialogProps.selected = this.addPlan.dialyzer_perfusion_apparatus
870 892
           this.InnerDialogProps.isShowTextArea = false
893
+          break
894
+        case '6':
895
+           for(let i=0;i<this.dialyzers.length;i++){
896
+               this.dialyzers[i].name = this.dialyzers[i].specification_name
897
+           }
898
+           console.log("2222222",this.dialyzers)
899
+          this.InnerDialogProps.values = this.dialyzers
900
+          this.InnerDialogProps.titles = '透析器'
901
+          this.InnerDialogProps.type = 'dialyzers'
902
+          this.InnerDialogProps.selected = this.dialysis_dialyszers
903
+          this.InnerDialogProps.isShowTextArea = false
904
+
905
+          break
906
+        case '7':
907
+          for(let i=0;i<this.irrigations.length;i++){
908
+             this.irrigations[i].name = this.irrigations[i].specification_name
909
+           }
910
+          this.InnerDialogProps.values = this.irrigations
911
+          this.InnerDialogProps.titles = '灌流器'
912
+          this.InnerDialogProps.type = 'irrigations'
913
+          this.InnerDialogProps.selected = this.dialysis_irrigation
914
+          this.InnerDialogProps.isShowTextArea = false
915
+
871 916
           break
872 917
       }
873 918
     },
874 919
     innerDialogComfirm: function(val) {
920
+
875 921
       this.InnerDialogProps.visibility = false
876 922
       switch (val.type) {
877 923
         case 'dialyzer_perfusion_apparatus':
878 924
           this.addPlan.dialyzer_perfusion_apparatus = val.value.join(',')
879 925
           break
926
+        case 'dialyzers':
927
+          this.dialysis_dialyszers = val.value.join(',')
928
+          console.log("3333333",this.addPlan.dialysis_dialyszers)
929
+
930
+          break
931
+        case 'irrigations':
932
+          this.dialysis_irrigation = val.value.join(',')
933
+          break
880 934
 
881 935
       }
882 936
     },
@@ -892,7 +946,7 @@ export default {
892 946
     },
893 947
 
894 948
     selectnDialysisTime(val) {
895
-     
949
+
896 950
       var valTime = val.split(':')
897 951
       this.addPlan.dialysis_duration = parseFloat(valTime[0]) + parseFloat((valTime[1] / 60).toFixed(2))
898 952
       console.log("透析时长",this.addPlan.dialysis_duration)
@@ -1177,7 +1231,7 @@ export default {
1177 1231
         }
1178 1232
       })
1179 1233
     },
1180
-    submitEditSolution(formName) {
1234
+      submitEditSolution(formName) {
1181 1235
       this.$refs[formName].validate(valid => {
1182 1236
         if (valid) {
1183 1237
           let mode = '2'
@@ -1187,6 +1241,8 @@ export default {
1187 1241
           ) {
1188 1242
             mode = '3'
1189 1243
           }
1244
+          this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1245
+          this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1190 1246
           console.log("2233333",this.addPlan)
1191 1247
           
1192 1248
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
@@ -1223,11 +1279,14 @@ export default {
1223 1279
       })
1224 1280
     },
1225 1281
     submitNewSolution(formName) {
1226
-     
1282
+
1227 1283
       this.addPlan.anticoagulant_zongliang = this.addPlan.anticoagulant_zongliang.toString()
1228 1284
       this.$refs[formName].validate(valid => {
1229 1285
         if (valid) {
1230 1286
           const mode = '1'
1287
+          this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1288
+          this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1289
+          console.log("add",this.addPlan)
1231 1290
           createPatientDialysisSolution(
1232 1291
             this.patientID,
1233 1292
             this.addPlan,
@@ -1291,13 +1350,13 @@ export default {
1291 1350
         }else{
1292 1351
           this.addPlan.anticoagulant = row.anticoagulant
1293 1352
         }
1294
-        
1353
+
1295 1354
       }
1296 1355
       this.addPlan.replacement_total = row.replacement_total
1297 1356
 
1298 1357
       this.addPlan.target_ktv = row.target_ktv.toString()
1299 1358
       this.addPlan.target_ultrafiltration = row.target_ultrafiltration.toString()
1300
-      
1359
+
1301 1360
       this.addPlan.dialysis_duration = parseFloat(row.dialysis_duration_hour) + parseFloat((row.dialysis_duration_minute / 60).toFixed(2))
1302 1361
       this.addPlan.dialysis_duration_hour = row.dialysis_duration_hour
1303 1362
       this.addPlan.dialysis_duration_minute = row.dialysis_duration_minute
@@ -1317,7 +1376,10 @@ export default {
1317 1376
       this.addPlan.remark = row.remark
1318 1377
 
1319 1378
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1320
-
1379
+      this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1380
+      this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1381
+      this.dialysis_irrigation = row.dialysis_irrigation
1382
+      this.dialysis_dialyszers = row.dialysis_dialyszers
1321 1383
      if(row.body_fluid == 0){
1322 1384
        this.addPlan.body_fluid = ""
1323 1385
       }else{
@@ -1333,6 +1395,10 @@ export default {
1333 1395
 
1334 1396
       this.addPlan.registrars_id = row.registrars_id
1335 1397
       this.addPlan.created_time =  row.created_time
1398
+      this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1399
+      this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1400
+      this.dialysis_irrigation = row.dialysis_irrigation
1401
+      this.dialysis_dialyszers = row.dialysis_dialyszers
1336 1402
       this.dialogVisible = true
1337 1403
       this.isEdit = true
1338 1404
       if(row.dialysate_formulation==0){
@@ -1461,6 +1527,39 @@ export default {
1461 1527
         if (response.data.state == 1) {
1462 1528
           this.tableData = response.data.data.solutions
1463 1529
           this.total = response.data.data.total
1530
+
1531
+            this.stockType = response.data.data.stockType
1532
+            console.log("2333555555555",this.stockType)
1533
+            if(this.stockType.length >0 ){
1534
+               var arr = []
1535
+                var arrTwo = []
1536
+                for(let i=0;i<this.stockType.length;i++){
1537
+                  if(this.stockType[i].stock_attribute == 2){
1538
+                      arr.push(this.stockType[i])
1539
+                  }
1540
+                  if(this.stockType[i].stock_attribute == 3){
1541
+                      arrTwo.push(this.stockType[i])
1542
+                  }
1543
+                }
1544
+                var dialyzator = []
1545
+                var irrigation = []
1546
+                for(let i=0;i<arr.length;i++){
1547
+                  for(let j=0;j<arr[i].GoodInfo.length;j++){
1548
+                      dialyzator.push(arr[i].GoodInfo[j])
1549
+                  }
1550
+                }
1551
+                console.log("透析器",dialyzator)
1552
+                this.dialyzers = dialyzator
1553
+
1554
+                for(let i=0;i<arrTwo.length;i++){
1555
+                  for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
1556
+                      irrigation.push(arrTwo[i].GoodInfo[j])
1557
+                  }
1558
+                }
1559
+                console.log("灌流器",irrigation)
1560
+                this.irrigations = irrigation
1561
+            }
1562
+
1464 1563
         }
1465 1564
       })
1466 1565
     },
@@ -1688,7 +1787,8 @@ export default {
1688 1787
     }
1689 1788
 
1690 1789
     this.GetDeviceData()
1691
-
1790
+    this.fetchAllAdminUsers()
1791
+    this.fetchPatientDialysisSolutions()
1692 1792
     this.modeOptions = this.$store.getters.treatment_mode
1693 1793
     this.anticoagulantsSet = this.$store.getters.anticoagulants_set
1694 1794
     this.replacementWays = this.$store.getters.replacement_ways
@@ -1714,8 +1814,7 @@ export default {
1714 1814
 
1715 1815
     this.queryParams.id = this.patientID
1716 1816
     // this.fetchAllDoctorAndNurse();
1717
-    this.fetchAllAdminUsers()
1718
-    this.fetchPatientDialysisSolutions()
1817
+
1719 1818
   }
1720 1819
 }
1721 1820
 </script>

+ 3 - 2
src/xt_pages/workforce/components/nextTableWeeks.vue 查看文件

@@ -79,9 +79,10 @@
79 79
           }}
80 80
         </template>
81 81
       </el-table-column>
82
-      <el-table-column label="透析器" min-width="100" align="center">
82
+      <el-table-column label="透析器/灌流器" min-width="100" align="center">
83 83
         <template slot-scope="scope">
84 84
           {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
85
+          {{scope.row.prescription.dialysis_dialyszers}} / {{scope.row.prescription.dialysis_irrigation}}
85 86
         </template>
86 87
       </el-table-column>
87 88
       <el-table-column label="抗凝剂" min-width="100" align="center">
@@ -254,7 +255,7 @@ export default {
254 255
              scheduleData[i].sort = scheduleData[i].number.sort
255 256
            }
256 257
           var arr =   scheduleData.sort(this.compare('sort'))
257
-          // console.log("元旦快乐",arr)
258
+           console.log("元旦快乐",arr)
258 259
           this.scheduleData = arr
259 260
         
260 261
          

+ 10 - 5
src/xt_pages/workforce/components/tableWeeks.vue 查看文件

@@ -25,7 +25,7 @@
25 25
           </li>
26 26
         </ul>
27 27
       </div>
28
-      
28
+
29 29
       <div  class="title"><span class="name">班 次</span> :</div>
30 30
       <div class="time">
31 31
         <ul class>
@@ -79,11 +79,14 @@
79 79
           }}
80 80
         </template>
81 81
       </el-table-column>
82
-      <el-table-column label="透析器" min-width="100" align="center">
82
+      <el-table-column label="透析器/灌流器" min-width="100" align="center">
83 83
         <template slot-scope="scope">
84 84
           {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
85
+
86
+          {{scope.row.prescription.dialysis_dialyszers}}/{{scope.row.prescription.dialysis_irrigation}}
85 87
         </template>
86 88
       </el-table-column>
89
+
87 90
       <el-table-column label="抗凝剂" min-width="100" align="center">
88 91
         <template slot-scope="scope">
89 92
           <span v-if="scope.row.prescription.anticoagulant === 1">无肝素</span>
@@ -208,7 +211,7 @@ export default {
208 211
   },
209 212
   watch: {
210 213
     weekTime: function() {
211
-     
214
+
212 215
       var theType = this.weekType(this.weekTime);
213 216
       this.getSchedules(theType);
214 217
     }
@@ -232,7 +235,7 @@ export default {
232 235
           week_type:this.week_type,
233 236
           week_time:this.week_time,
234 237
         }
235
-       
238
+
236 239
       getScheduleWeekDay(params).then(response => {
237 240
         this.scheduleData = [];
238 241
         if (response.data.state == 1) {
@@ -241,7 +244,9 @@ export default {
241 244
              scheduleData[i].sort = scheduleData[i].number.sort
242 245
            }
243 246
           var arr = scheduleData.sort(this.compare('sort'))
244
-          
247
+
248
+          var arr =   scheduleData.sort(this.compare('sort'))
249
+        //  console.log("元旦快乐",arr)
245 250
           this.scheduleData = arr
246 251
         } else {
247 252
           this.$message.error("网络错误");

+ 2 - 2
src/xt_pages/workforce/next_remind_print.vue 查看文件

@@ -38,7 +38,7 @@
38 38
                   <td width="70">班次</td>
39 39
                   <td width="70">机号</td>
40 40
                   <td width="120">透析模式</td>
41
-                  <td width="100">透析器</td>
41
+                  <td width="100">透析器/灌流器</td>
42 42
                   <td width="120">抗凝剂</td>
43 43
                   <td width="100">总量</td>
44 44
                   <td width="300">长期医嘱</td>
@@ -60,7 +60,7 @@
60 60
                 </td>
61 61
                 <td :width="td_1_width">
62 62
                   {{main_collection.prescription.dialyzer_perfusion_apparatus}}
63
-
63
+                  {{main_collection.prescription.dialysis_dialyszers}} / {{main_collection.prescription.dialysis_irrigation}}
64 64
 
65 65
                 </td>
66 66
                 <td :width="td_1_width">

+ 2 - 2
src/xt_pages/workforce/remind_print.vue 查看文件

@@ -38,7 +38,7 @@
38 38
                   <td width="70">班次</td>
39 39
                   <td width="70">机号</td>
40 40
                   <td width="120">透析模式</td>
41
-                  <td width="100">透析器</td>
41
+                  <td width="100">透析器/灌流器</td>
42 42
                   <td width="120">抗凝剂</td>
43 43
                   <td width="100">总量</td>
44 44
                   <td width="300">长期医嘱</td>
@@ -60,7 +60,7 @@
60 60
                 </td>
61 61
                 <td :width="td_1_width">
62 62
                   {{main_collection.prescription.dialyzer_perfusion_apparatus}}
63
-
63
+                  {{main_collection.prescription.dialysis_dialyszers}} / {{main_collection.prescription.dialysis_irrigation}}
64 64
 
65 65
                 </td>
66 66
                 <td :width="td_1_width">