XMLWAN 4 vuotta sitten
vanhempi
commit
d452696337

+ 2 - 2
config/dev.env.js Näytä tiedosto

@@ -7,8 +7,8 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
-  BASE_API: '"http://localhost:9531"',
10
+  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  // BASE_API: '"http://localhost:9531"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 1 - 0
src/api/config.js Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -104,6 +104,7 @@
104 104
       :dry_weight="lastDryWeightDislysis"
105 105
       :schedual="temp_schedual"
106 106
       :date='date'
107
+      :stockType="stockType"
107 108
     ></dialysis-prescription-dialog>
108 109
     <treatment-summary-dialog
109 110
       title="治疗小结"
@@ -213,6 +214,7 @@ export default {
213 214
       temp_schedual: null,
214 215
       date:'',
215 216
       modedata:0,
217
+      stockType:"",
216 218
     };
217 219
   },
218 220
   props: {
@@ -379,7 +381,7 @@ export default {
379 381
         var resp = rs.data;
380 382
         if (resp.state == 1) {
381 383
           var patient = resp.data.patient; // 患者信息
382
-          console.log("患者信息",patient)
384
+         
383 385
           var schedual = resp.data.schedual; // 患者排班信息
384 386
           var prescription = resp.data.prescription; // 透析处方
385 387
           if(prescription!=null){
@@ -399,10 +401,10 @@ export default {
399 401
              }
400 402
            }
401 403
           var doctor_advices = resp.data.doctor_advices; // 临时医嘱
402
-          //console.log("力气-------", doctor_advices);
404
+          
403 405
           var double_check = resp.data.double_check; // 双人核对
404 406
           var assessment_after_dislysis = resp.data.assessment_after_dislysis; // 透后评估
405
-          //console.log("透后品谷数", assessment_after_dislysis);
407
+        
406 408
           var treatment_summary = resp.data.treatment_summary; // 治疗小结
407 409
           var monitor_records = resp.data.monitor_records; // 透析监测
408 410
           var dialysis_order = resp.data.dialysis_order; // 透析记录
@@ -435,7 +437,10 @@ export default {
435 437
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis;
436 438
 
437 439
           var system_prescribe = resp.data.system_prescribe;
438
-
440
+          
441
+          var stockType =  resp.data.stockType
442
+          this.stockType = stockType
443
+          console.log("元单快乐222222",this.stockType)
439 444
           
440 445
           this.$refs.prescription.setLastRecord(
441 446
             schedual,
@@ -589,7 +594,7 @@ export default {
589 594
       this.$emit("advice");
590 595
     },
591 596
     open(schedual){
592
-      console.log("中国2222222",this)
597
+     
593 598
      
594 599
       this.date = schedual.schedule_date
595 600
       this.patient_id = schedual.patient_id

+ 56 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue Näytä tiedosto

@@ -62,6 +62,18 @@
62 62
           <span class="unit"></span>
63 63
         </li>
64 64
 
65
+        <li v-if="isShow('透析器')">
66
+          <label>透析器 : </label>
67
+          <span class="content">{{ dialysis_dialyszers }}</span>
68
+          <span class="unit"></span>
69
+        </li>
70
+
71
+        <li v-if="isShow('灌流器')">
72
+          <label>灌流器 : </label>
73
+          <span class="content">{{ dialysis_irrigation }}</span>
74
+          <span class="unit"></span>
75
+        </li>
76
+
65 77
         <li v-if="isShow('透析前使用特殊药物')">
66 78
           <label>透析前使用特殊药物: </label>
67 79
           <span class="content">{{ special_medicine }}</span>
@@ -319,6 +331,9 @@ export default {
319 331
     },
320 332
     device_number_map: {
321 333
       type: Object
334
+    },
335
+    preparestock:{
336
+      type:Array
322 337
     }
323 338
   },
324 339
   computed: {
@@ -481,6 +496,46 @@ export default {
481 496
         'dialyzer_perfusion_apparatus'
482 497
       )
483 498
     },
499
+    dialysis_dialyszers:function(){
500
+
501
+      var str = this.getValueStr('dialysis_dialyszers','dialysis_dialyszers')
502
+       console.log("str",str)
503
+      var arr = str.split(",")
504
+
505
+      if (arr.length >0) {
506
+         for(let i=0;i<arr.length;i++){
507
+           for(let j=0;j<this.preparestock.length;j++){
508
+              if(arr[i] == this.preparestock[j].specification_name){
509
+                 arr[i] = arr[i]+"("+this.preparestock[j].commdity_code+")"
510
+              }
511
+           }
512
+         }
513
+      }
514
+      console.log("arr00000",arr)
515
+      var strs = arr.join(',')
516
+      console.log("strs",strs)
517
+      return strs
518
+    },
519
+    dialysis_irrigation:function(){
520
+        var str = this.getValueStr('dialysis_irrigation','dialysis_irrigation')
521
+       console.log("str",str)
522
+      var arr = str.split(",")
523
+
524
+      if (arr.length >0) {
525
+         for(let i=0;i<arr.length;i++){
526
+           for(let j=0;j<this.preparestock.length;j++){
527
+              if(arr[i] == this.preparestock[j].specification_name){
528
+                 arr[i] = arr[i]+"("+this.preparestock[j].commdity_code+")"
529
+              }
530
+           }
531
+         }
532
+      }
533
+      console.log("arr00000",arr)
534
+      var strs = arr.join(',')
535
+      console.log("strs",strs)
536
+      return strs
537
+      // return this.getValueStr('dialysis_irrigation','dialysis_irrigation')
538
+    },
484 539
     body_fluid: function() {
485 540
       var id = this.getValueStr('body_fluid', 'body_fluid')
486 541
       if (id == 0) {
@@ -553,6 +608,7 @@ export default {
553 608
     }
554 609
   },
555 610
   created() {
611
+
556 612
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
557 613
     var map = {}
558 614
     for (let index = 0; index < perfusion_apparatus.length; index++) {

+ 7 - 0
src/xt_pages/dialysis/details/NavIgation.vue Näytä tiedosto

@@ -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
     ></dialysis-prescription-dialog>
92 93
 
93 94
     <double-check-dialog
@@ -506,6 +507,12 @@ export default {
506 507
       default: () => {
507 508
         return [];
508 509
       }
510
+    },
511
+    stockType:{
512
+      type:Array,
513
+      default:()=>{
514
+        return [];
515
+      }
509 516
     }
510 517
   },
511 518
   methods: {

+ 1 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Näytä tiedosto

@@ -1204,6 +1204,7 @@
1204 1204
       this.humor_excessive_symptom_array = getDataConfig('hemodialysis', 'humor_excessive_symptom')
1205 1205
       // console.log("血管通路部位",this.blood_access_part_opera)
1206 1206
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
1207
+      console.log("内瘘222222",this.internal_fistula)
1207 1208
       this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')
1208 1209
       this.puncture_method = getDataConfig('hemodialysis', 'puncture_method')
1209 1210
       this.machineType = getDataConfig('hemodialysis', 'machine_type')

+ 74 - 294
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Näytä tiedosto

@@ -349,18 +349,18 @@
349 349
             </el-form-item>
350 350
           </el-col>
351 351
 
352
-          <!-- <el-col :span="8" v-if="isShows('透析器')">
352
+          <el-col :span="8" v-if="isShows('透析器')">
353 353
              <el-form-item label="透析器:">
354
-                  <el-input v-model="dialysisPrescription.dialyzers" @focus="showInnerDialog('7')"></el-input>
354
+                  <el-input v-model="dialysisPrescription.dialysis_dialyszers" @focus="showInnerDialog('7')"></el-input>
355 355
              </el-form-item>
356
-          </el-col>
356
+          </el-col> 
357
+
357 358
 
358
359 359
           <el-col :span="8" v-if="isShows('灌流器')">
360 360
              <el-form-item label="灌流器:">
361
-                  <el-input v-model="dialysisPrescription.irrigation" @focus="showInnerDialog('8')"></el-input>
361
+                  <el-input v-model="dialysisPrescription.dialysis_irrigation" @focus="showInnerDialog('8')"></el-input>
362 362
              </el-form-item>
363
-          </el-col> -->
363
+          </el-col> 
364 364
 
365 365
           <el-col :span="8" v-if="isShows('体液过多症状')">
366 366
             <el-form-item label="体液过多症状:">
@@ -381,10 +381,7 @@
381 381
             </el-form-item>
382 382
           </el-col>
383 383
 
384
-          <!-- </el-row>
385
-
386
-
387
-          <el-row :gutter="20" > -->
384
+        
388 385
 
389 386
           <el-col :span="8" v-if="isShows('体液过多其他症状')">
390 387
             <el-form-item label="体液过多其他症状">
@@ -421,9 +418,7 @@
421 418
             </el-form-item>
422 419
           </el-col>
423 420
 
424
-          <!-- </el-row>
425
-
426
-          <el-row :gutter="20" > -->
421
+        
427 422
           <el-col :span="8">
428 423
             <el-form-item
429 424
               label="置换液:"
@@ -511,281 +506,6 @@
511 506
 
512 507
             </el-form-item>
513 508
           </el-col>
514
-
515
-
516
-          <!-- </el-row>
517
-          <el-row :gutter="20" > -->
518
-          <!--          <el-col :span="8" v-if="isShows('实际超滤量')">-->
519
-          <!--            <el-form-item label="实际超滤量(L)">-->
520
-          <!--              <el-input v-model="dialysisPrescription.ultrafiltration"></el-input>-->
521
-          <!--            </el-form-item>-->
522
-          <!--          </el-col>-->
523
-
524
-          <!--透析耗材-->
525
-          <!--<el-col-->
526
-            <!--:span="8"-->
527
-            <!--v-if="isShows('血液透析干粉') && config.is_open == 1"-->
528
-          <!--&gt;-->
529
-            <!--<el-form-item label="血液透析干粉:">-->
530
-              <!--<el-select-->
531
-                <!--v-model="dialysisPrescription.niprocart"-->
532
-                <!--placeholder="请选择"-->
533
-              <!--&gt;-->
534
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
535
-                <!--<el-option-->
536
-                  <!--v-for="(option, index) in niprocart_info"-->
537
-                  <!--:key="index + 'p'"-->
538
-                  <!--:label="option.GoodInfo.specification_name"-->
539
-                  <!--:value="option.GoodInfo.id"-->
540
-                <!--&gt;</el-option>-->
541
-              <!--</el-select>-->
542
-            <!--</el-form-item>-->
543
-          <!--</el-col>-->
544
-
545
-          <!--<el-col-->
546
-            <!--:span="8"-->
547
-            <!--v-if="isShows('一次性使用动静脉穿刺针') && config.is_open == 1"-->
548
-          <!--&gt;-->
549
-            <!--<el-form-item label="一次性使用动静脉穿刺针:">-->
550
-              <!--<el-select-->
551
-                <!--v-model="dialysisPrescription.jms"-->
552
-                <!--placeholder="请选择"-->
553
-              <!--&gt;-->
554
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
555
-
556
-                <!--<el-option-->
557
-                  <!--v-for="(option, index) in jms_info"-->
558
-                  <!--:key="index + 'a'"-->
559
-                  <!--:label="option.GoodInfo.specification_name"-->
560
-                  <!--:value="option.GoodInfo.id"-->
561
-                <!--&gt;</el-option>-->
562
-              <!--</el-select>-->
563
-            <!--</el-form-item>-->
564
-          <!--</el-col>-->
565
-
566
-          <!--<el-col-->
567
-            <!--:span="8"-->
568
-            <!--v-if="isShows('内瘘管翼状针') && config.is_open == 1"-->
569
-          <!--&gt;-->
570
-            <!--<el-form-item label="内瘘管翼状针:">-->
571
-              <!--<el-select-->
572
-                <!--v-model="dialysisPrescription.fistula_needle_set"-->
573
-                <!--placeholder="请选择"-->
574
-              <!--&gt;-->
575
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
576
-
577
-                <!--<el-option-->
578
-                  <!--v-for="(option, index) in fistula_needle_set_info"-->
579
-                  <!--:key="index + 's'"-->
580
-                  <!--:label="option.GoodInfo.specification_name"-->
581
-                  <!--:value="option.GoodInfo.id"-->
582
-                <!--&gt;</el-option>-->
583
-              <!--</el-select>-->
584
-            <!--</el-form-item>-->
585
-          <!--</el-col>-->
586
-
587
-          <!--<el-col-->
588
-            <!--:span="8"-->
589
-            <!--v-if="isShows('内瘘管翼状针16G') && config.is_open == 1"-->
590
-          <!--&gt;-->
591
-            <!--<el-form-item label="内瘘管翼状针16G:">-->
592
-              <!--<el-select-->
593
-                <!--v-model="dialysisPrescription.fistula_needle_set_16"-->
594
-                <!--placeholder="请选择"-->
595
-              <!--&gt;-->
596
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
597
-
598
-                <!--<el-option-->
599
-                  <!--v-for="(option, index) in fistula_needle_set_16_info"-->
600
-                  <!--:key="index + 'd'"-->
601
-                  <!--:label="option.GoodInfo.specification_name"-->
602
-                  <!--:value="option.GoodInfo.id"-->
603
-                <!--&gt;</el-option>-->
604
-              <!--</el-select>-->
605
-            <!--</el-form-item>-->
606
-          <!--</el-col>-->
607
-
608
-          <!--<el-col-->
609
-            <!--:span="8"-->
610
-            <!--v-if="isShows('一次性使用血液灌流器') && config.is_open == 1"-->
611
-          <!--&gt;-->
612
-            <!--<el-form-item label="一次性使用血液灌流器:">-->
613
-              <!--<el-select-->
614
-                <!--v-model="dialysisPrescription.hemoperfusion"-->
615
-                <!--placeholder="请选择"-->
616
-              <!--&gt;-->
617
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
618
-
619
-                <!--<el-option-->
620
-                  <!--v-for="(option, index) in hemoperfusion_info"-->
621
-                  <!--:key="index + 'f'"-->
622
-                  <!--:label="option.GoodInfo.specification_name"-->
623
-                  <!--:value="option.GoodInfo.id"-->
624
-                <!--&gt;</el-option>-->
625
-              <!--</el-select>-->
626
-            <!--</el-form-item>-->
627
-          <!--</el-col>-->
628
-
629
-          <!--<el-col-->
630
-            <!--:span="8"-->
631
-            <!--v-if="isShows('空心纤维血液透析器') && config.is_open == 1"-->
632
-          <!--&gt;-->
633
-            <!--<el-form-item label="空心纤维血液透析器:">-->
634
-              <!--<el-select-->
635
-                <!--v-model="dialysisPrescription.dialyser_sterilised"-->
636
-                <!--placeholder="请选择"-->
637
-              <!--&gt;-->
638
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
639
-
640
-                <!--<el-option-->
641
-                  <!--v-for="(option, index) in dialyser_sterilised_info"-->
642
-                  <!--:key="index + 'g'"-->
643
-                  <!--:label="option.GoodInfo.specification_name"-->
644
-                  <!--:value="option.GoodInfo.id"-->
645
-                <!--&gt;</el-option>-->
646
-              <!--</el-select>-->
647
-            <!--</el-form-item>-->
648
-          <!--</el-col>-->
649
-
650
-          <!--<el-col-->
651
-            <!--:span="8"-->
652
-            <!--v-if="isShows('中空纤维透析器') && config.is_open == 1"-->
653
-          <!--&gt;-->
654
-            <!--<el-form-item label="中空纤维透析器:">-->
655
-              <!--<el-select-->
656
-                <!--v-model="dialysisPrescription.filtryzer"-->
657
-                <!--placeholder="请选择"-->
658
-              <!--&gt;-->
659
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
660
-
661
-                <!--<el-option-->
662
-                  <!--v-for="(option, index) in filtryzer_info"-->
663
-                  <!--:key="index + 'h'"-->
664
-                  <!--:label="option.GoodInfo.specification_name"-->
665
-                  <!--:value="option.GoodInfo.id"-->
666
-                <!--&gt;</el-option>-->
667
-              <!--</el-select>-->
668
-            <!--</el-form-item>-->
669
-          <!--</el-col>-->
670
-
671
-          <!--<el-col :span="8" v-if="isShows('透析器') && config.is_open == 1">-->
672
-            <!--<el-form-item label="透析器:">-->
673
-              <!--<el-select-->
674
-                <!--v-model="dialysisPrescription.dialyzers"-->
675
-                <!--placeholder="请选择"-->
676
-              <!--&gt;-->
677
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
678
-
679
-                <!--<el-option-->
680
-                  <!--v-for="(option, index) in dialyzers_info"-->
681
-                  <!--:key="index + 1"-->
682
-                  <!--:label="option.GoodInfo.specification_name"-->
683
-                  <!--:value="option.GoodInfo.id"-->
684
-                <!--&gt;</el-option>-->
685
-              <!--</el-select>-->
686
-            <!--</el-form-item>-->
687
-          <!--</el-col>-->
688
-
689
-          <!--<el-col :span="8" v-if="isShows('注射器') && config.is_open == 1">-->
690
-            <!--<el-form-item label="注射器:">-->
691
-              <!--<el-select-->
692
-                <!--v-model="dialysisPrescription.injector"-->
693
-                <!--placeholder="请选择"-->
694
-              <!--&gt;-->
695
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
696
-
697
-                <!--<el-option-->
698
-                  <!--v-for="(option, index) in injector_info"-->
699
-                  <!--:key="index + 'j'"-->
700
-                  <!--:label="option.GoodInfo.specification_name"-->
701
-                  <!--:value="option.GoodInfo.id"-->
702
-                <!--&gt;</el-option>-->
703
-              <!--</el-select>-->
704
-            <!--</el-form-item>-->
705
-          <!--</el-col>-->
706
-
707
-          <!--<el-col-->
708
-            <!--:span="8"-->
709
-            <!--v-if="isShows('体外循环血路管') && config.is_open == 1"-->
710
-          <!--&gt;-->
711
-            <!--<el-form-item label="体外循环血路管:">-->
712
-              <!--<el-select-->
713
-                <!--v-model="dialysisPrescription.bloodlines"-->
714
-                <!--placeholder="请选择"-->
715
-              <!--&gt;-->
716
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
717
-
718
-                <!--<el-option-->
719
-                  <!--v-for="(option, index) in bloodlines_info"-->
720
-                  <!--:key="index + 'k'"-->
721
-                  <!--:label="option.GoodInfo.specification_name"-->
722
-                  <!--:value="option.GoodInfo.id"-->
723
-                <!--&gt;</el-option>-->
724
-              <!--</el-select>-->
725
-            <!--</el-form-item>-->
726
-          <!--</el-col>-->
727
-
728
-          <!--<el-col-->
729
-            <!--:span="8"-->
730
-            <!--v-if="isShows('血液净化补液管路(置换管)') && config.is_open == 1"-->
731
-          <!--&gt;-->
732
-            <!--<el-form-item label="血液净化补液管路(置换管):">-->
733
-              <!--<el-select-->
734
-                <!--v-model="dialysisPrescription.tubing_hemodialysis"-->
735
-                <!--placeholder="请选择"-->
736
-              <!--&gt;-->
737
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
738
-
739
-                <!--<el-option-->
740
-                  <!--v-for="(option, index) in tubingHemodialysis_info"-->
741
-                  <!--:key="index + 'x'"-->
742
-                  <!--:label="option.GoodInfo.specification_name"-->
743
-                  <!--:value="option.GoodInfo.id"-->
744
-                <!--&gt;</el-option>-->
745
-              <!--</el-select>-->
746
-            <!--</el-form-item>-->
747
-          <!--</el-col>-->
748
-
749
-          <!--<el-col :span="8" v-if="isShows('护理包') && config.is_open == 1">-->
750
-            <!--<el-form-item label="护理包:">-->
751
-              <!--<el-select-->
752
-                <!--v-model="dialysisPrescription.package"-->
753
-                <!--placeholder="请选择"-->
754
-              <!--&gt;-->
755
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
756
-
757
-                <!--<el-option-->
758
-                  <!--v-for="(option, index) in safe_package_info"-->
759
-                  <!--:key="index + 'z'"-->
760
-                  <!--:label="option.GoodInfo.specification_name"-->
761
-                  <!--:value="option.GoodInfo.id"-->
762
-                <!--&gt;</el-option>-->
763
-              <!--</el-select>-->
764
-            <!--</el-form-item>-->
765
-          <!--</el-col>-->
766
-
767
-          <!--<el-col :span="8" v-if="isShows('A液') && config.is_open == 1">-->
768
-            <!--<el-form-item label="A液:">-->
769
-              <!--<el-select-->
770
-                <!--v-model="dialysisPrescription.a_liquid"-->
771
-                <!--placeholder="请选择"-->
772
-              <!--&gt;-->
773
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
774
-
775
-                <!--<el-option-->
776
-                  <!--v-for="(option, index) in aliquid_info"-->
777
-                  <!--:key="index + 'c'"-->
778
-                  <!--:label="option.GoodInfo.specification_name"-->
779
-                  <!--:value="option.GoodInfo.id"-->
780
-                <!--&gt;</el-option>-->
781
-              <!--</el-select>-->
782
-            <!--</el-form-item>-->
783
-          <!--</el-col>-->
784
-
785
-
786
-
787
-
788
-
789 509
         </el-row>
790 510
 
791 511
         <el-row :gutter="20">
@@ -1142,7 +862,13 @@
1142 862
           return { id: 0 }
1143 863
         }
1144 864
       },
1145
-      scheudle_mode:Number
865
+      scheudle_mode:Number,
866
+     stockType:{
867
+        type:Array,
868
+        default:()=>{
869
+          return [];
870
+        }
871
+      }
1146 872
     },
1147 873
     computed: {
1148 874
       dialysis_date: function() {
@@ -1262,7 +988,8 @@
1262 988
           nucleoprotamine:"",//鱼精蛋白
1263 989
           no_heparin_remarks:"",
1264 990
           blood:"",
1265
-          irrigation:""
991
+          dialysis_dialyszers:"",
992
+          dialysis_irrigation:"",
1266 993
         },
1267 994
 
1268 995
         anticoagulant: {
@@ -1284,7 +1011,7 @@
1284 1011
         doctorAdvices: [],
1285 1012
         dialyzerPerfusionApparatus: [],
1286 1013
         bloods:[],
1287
-        irrigation:[],
1014
+        irrigations:[],
1288 1015
         dialyzers:[],
1289 1016
       }
1290 1017
     },
@@ -1330,7 +1057,25 @@
1330 1057
             this.InnerDialogProps.isShowTextArea = false    
1331 1058
           
1332 1059
            case '7': // 透析器
1333
-          
1060
+            for(let i=0;i<this.dialyzers.length;i++){
1061
+               this.dialyzers[i].name = this.dialyzers[i].specification_name
1062
+            }
1063
+            this.InnerDialogProps.values = this.dialyzers
1064
+            this.InnerDialogProps.titles = '透析器'
1065
+            this.InnerDialogProps.type = 'dialyzers'
1066
+            this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_dialyszers
1067
+            this.InnerDialogProps.isShowTextArea = false
1068
+            break
1069
+           case '8':
1070
+           for(let i=0;i<this.irrigations.length;i++){
1071
+             this.irrigations[i].name = this.irrigations[i].specification_name
1072
+           }
1073
+            this.InnerDialogProps.values = this.irrigations
1074
+            this.InnerDialogProps.titles = '透析器'
1075
+            this.InnerDialogProps.type = 'irrigations'
1076
+            this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
1077
+            this.InnerDialogProps.isShowTextArea = false
1078
+            break
1334 1079
         }
1335 1080
       },
1336 1081
       innerDialogComfirm: function(val) {
@@ -1342,6 +1087,12 @@
1342 1087
           case 'blood':
1343 1088
             this.dialysisPrescription.blood = val.value.join(',')
1344 1089
            break
1090
+          case 'dialyzers':
1091
+           this.dialysisPrescription.dialysis_dialyszers = val.value.join(',')
1092
+          break
1093
+          case 'irrigations':
1094
+           this.dialysisPrescription.dialysis_irrigation = val.value.join(',')
1095
+          break
1345 1096
         }
1346 1097
       },
1347 1098
       innerDialogCancle: function() {
@@ -1443,7 +1194,7 @@
1443 1194
           'hemodialysis',
1444 1195
           'dialyzer_perfusion_apparatus'
1445 1196
         )
1446
-
1197
+        console.log("3333333",this.dialyzerPerfusionApparatus)
1447 1198
         this.bloods = getDataConfig(
1448 1199
           'hemodialysis',
1449 1200
           'blood'
@@ -1571,6 +1322,7 @@
1571 1322
                 ParamsQuery['mode'] = '3'
1572 1323
               }
1573 1324
             }
1325
+            
1574 1326
             postPrescription(ParamsQuery).then(response => {
1575 1327
               if (response.data.state == 0) {
1576 1328
                 this.$message.error(response.data.msg)
@@ -1973,7 +1725,7 @@
1973 1725
             ParamsQuery['record_date'] = this.record_date
1974 1726
             ParamsQuery['mode'] = '1'
1975 1727
 
1976
-            console.log("第一")
1728
+            console.log("第一",ParamsQuery)
1977 1729
             postPrescription(ParamsQuery).then(response => {
1978 1730
               if (response.data.state == 0) {
1979 1731
                 this.$message.error(response.data.msg)
@@ -3686,7 +3438,35 @@
3686 3438
           }
3687 3439
         }
3688 3440
       },
3441
+      stockType:function(){
3442
+        
3443
+        var arr = []
3444
+        var arrTwo = []
3445
+        for(let i=0;i<this.stockType.length;i++){
3446
+          if(this.stockType[i].stock_attribute == 2){
3447
+              arr.push(this.stockType[i])
3448
+          }
3449
+          if(this.stockType[i].stock_attribute == 3){
3450
+              arrTwo.push(this.stockType[i])
3451
+          }
3452
+        }
3453
+        var dialyzator = []
3454
+        var irrigation = []
3455
+        for(let i=0;i<arr.length;i++){
3456
+          for(let j=0;j<arr[i].GoodInfo.length;j++){
3457
+              dialyzator.push(arr[i].GoodInfo[j])
3458
+          }
3459
+        }
3460
+        this.dialyzers = dialyzator
3689 3461
 
3462
+        for(let i=0;i<arrTwo.length;i++){
3463
+           for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
3464
+              irrigation.push(arrTwo[i].GoodInfo[j])
3465
+           }
3466
+        }
3467
+        this.irrigations = irrigation
3468
+       
3469
+      }
3690 3470
     }
3691 3471
   }
3692 3472
 </script>

+ 12 - 6
src/xt_pages/dialysis/details/index.vue Näytä tiedosto

@@ -265,6 +265,7 @@
265 265
         @assessmentAfterDislysis="assessmentAfterDislysisFunc"
266 266
         :system_prescribe="system_prescribe"
267 267
         :his_is_open="his_is_open"
268
+        :stockType="stockType"
268 269
       >
269 270
       </nav-igation>
270 271
 
@@ -279,6 +280,7 @@
279 280
         :prescription="prescription"
280 281
         :solution="solution"
281 282
         :device_map="device_map"
283
+        :preparestock="preparestock"
282 284
         title="透析处方"
283 285
       ></dialysis-prescription>
284 286
 
@@ -676,7 +678,8 @@ export default {
676 678
       curPatient:{},
677 679
 
678 680
       queueConfig:{},
679
-      stockType:[]
681
+      stockType:[],
682
+      preparestock:[]
680 683
     }
681 684
   },
682 685
   created() {
@@ -971,7 +974,7 @@ export default {
971 974
         if (resp.state == 1) {
972 975
           var patient = resp.data.patient // 患者信息
973 976
           var schedual = resp.data.schedual // 患者排班信息
974
-          console.log("患者排班信息99999999",schedual)
977
+        
975 978
           var prescription = resp.data.prescription // 透析处方
976 979
           if (prescription != null) {
977 980
             if (prescription.body_fluid == -2) {
@@ -1120,10 +1123,13 @@ export default {
1120 1123
           this.his_is_open = resp.data.is_open_config.is_open
1121 1124
           console.log(this.his_is_open)
1122 1125
           
1123
-          // var stockType =  resp.data.stockType
1124
-          // this.stockType = stockType
1125
-          // console.log("stockTYPW",stockType)
1126
-          
1126
+          var stockType =  resp.data.stockType
1127
+          this.stockType = stockType
1128
+          console.log("stockTYPW",stockType)
1129
+           
1130
+          var prepare = resp.data.prepare
1131
+          this.preparestock = prepare
1132
+          console.log("prepare222222",prepare)
1127 1133
           for (let i = 0; i <  this.doctor_advices.length; i++){
1128 1134
             this.doctor_advices[i]['origin'] = 1
1129 1135
           }

+ 38 - 11
src/xt_pages/stock/Dialog/goodTypeDialog.vue Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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="商品信息">-->

+ 106 - 9
src/xt_pages/user/dialysisSolution.vue Näytä tiedosto

@@ -384,6 +384,21 @@
384 384
               v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
385 385
             </el-form-item>
386 386
           </el-col>
387
+         
388
+
389
+
390
+        
391
+          <el-col :span="8" v-if="isShows('透析器')">
392
+            <el-form-item label="透析器:"> 
393
+              <el-input v-model="dialysis_dialyszers" @focus="showInnerDialog('6')"></el-input>
394
+            </el-form-item>
395
+          </el-col>
396
+
397
+          <el-col :span="8" v-if="isShows('灌流器')">
398
+             <el-form-item label="灌流器:">
399
+               <el-input v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
400
+             </el-form-item>
401
+          </el-col>
387 402
 
388 403
           <el-col :span="8" v-if="isShows('碳酸氢盐')">
389 404
             <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
@@ -725,7 +740,9 @@ export default {
725 740
         displace_liqui_part: '',
726 741
         displace_liqui_value: '',
727 742
         ultrafiltration: '',
728
-        blood_access: ''
743
+        blood_access: '',
744
+        dialysis_dialyszers:'',
745
+        dialysis_irrigation:'',
729 746
       },
730 747
       childPlan: {
731 748
         mode: '',
@@ -848,7 +865,12 @@ export default {
848 865
         page: 1,
849 866
         limit: 10,
850 867
         id: 0
851
-      }
868
+      },
869
+     stockType:[],
870
+     irrigations:[],
871
+     dialyzers:[],
872
+     dialysis_dialyszers:'',
873
+     dialysis_irrigation:"",
852 874
     }
853 875
   },
854 876
   watch: {
@@ -892,16 +914,47 @@ export default {
892 914
           this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
893 915
           this.InnerDialogProps.selected = this.addPlan.dialyzer_perfusion_apparatus
894 916
           this.InnerDialogProps.isShowTextArea = false
917
+          break
918
+        case '6':
919
+           for(let i=0;i<this.dialyzers.length;i++){
920
+               this.dialyzers[i].name = this.dialyzers[i].specification_name
921
+           }
922
+          this.InnerDialogProps.values = this.dialyzers
923
+          this.InnerDialogProps.titles = '透析器'
924
+          this.InnerDialogProps.type = 'dialyzers'
925
+          this.InnerDialogProps.selected = this.dialysis_dialyszers
926
+          this.InnerDialogProps.isShowTextArea = false
927
+        
928
+          break
929
+        case '7':
930
+          for(let i=0;i<this.irrigations.length;i++){
931
+             this.irrigations[i].name = this.irrigations[i].specification_name
932
+           }
933
+          this.InnerDialogProps.values = this.irrigations
934
+          this.InnerDialogProps.titles = '灌流器'
935
+          this.InnerDialogProps.type = 'irrigations'
936
+          this.InnerDialogProps.selected = this.dialysis_irrigation
937
+          this.InnerDialogProps.isShowTextArea = false
938
+        
895 939
           break
896 940
       }
897 941
     },
898 942
     innerDialogComfirm: function(val) {
943
+      
899 944
       this.InnerDialogProps.visibility = false
900 945
       switch (val.type) {
901 946
         case 'dialyzer_perfusion_apparatus':
902 947
           this.addPlan.dialyzer_perfusion_apparatus = val.value.join(',')
903 948
           break
904
-
949
+        case 'dialyzers':
950
+          this.dialysis_dialyszers = val.value.join(',')
951
+          console.log("3333333",this.addPlan.dialysis_dialyszers)
952
+          
953
+          break
954
+        case 'irrigations':
955
+          this.dialysis_irrigation = val.value.join(',')
956
+          break
957
+          
905 958
       }
906 959
     },
907 960
     innerDialogCancle: function() {
@@ -1210,7 +1263,9 @@ export default {
1210 1263
           ) {
1211 1264
             mode = '3'
1212 1265
           }
1213
-
1266
+          this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1267
+          this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1268
+          console.log("333333",this.addPlan)
1214 1269
           editPatientDialysisSolution(
1215 1270
             this.patientID,
1216 1271
             this.addPlan.id,
@@ -1254,6 +1309,9 @@ export default {
1254 1309
       this.$refs[formName].validate(valid => {
1255 1310
         if (valid) {
1256 1311
           const mode = '1'
1312
+          this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1313
+          this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1314
+          console.log("add",this.addPlan)
1257 1315
           createPatientDialysisSolution(
1258 1316
             this.patientID,
1259 1317
             this.addPlan,
@@ -1342,7 +1400,10 @@ export default {
1342 1400
       this.addPlan.remark = row.remark
1343 1401
 
1344 1402
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1345
-
1403
+      this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1404
+      this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1405
+      this.dialysis_irrigation = row.dialysis_irrigation
1406
+      this.dialysis_dialyszers = row.dialysis_dialyszers
1346 1407
      if(row.body_fluid == 0){
1347 1408
        this.addPlan.body_fluid = ""
1348 1409
       }else{
@@ -1357,7 +1418,10 @@ export default {
1357 1418
       this.addPlan.blood_access = row.blood_access
1358 1419
 
1359 1420
       this.addPlan.registrars_id = row.registrars_id
1360
-
1421
+      this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1422
+      this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1423
+      this.dialysis_irrigation = row.dialysis_irrigation
1424
+      this.dialysis_dialyszers = row.dialysis_dialyszers
1361 1425
       this.dialogVisible = true
1362 1426
       this.isEdit = true
1363 1427
       if(row.dialysate_formulation==0){
@@ -1491,6 +1555,39 @@ export default {
1491 1555
         if (response.data.state == 1) {
1492 1556
           this.tableData = response.data.data.solutions
1493 1557
           this.total = response.data.data.total
1558
+
1559
+            this.stockType = response.data.data.stockType
1560
+            console.log("2333555555555",this.stockType)
1561
+            if(this.stockType.length >0 ){
1562
+               var arr = []
1563
+                var arrTwo = []
1564
+                for(let i=0;i<this.stockType.length;i++){
1565
+                  if(this.stockType[i].stock_attribute == 2){
1566
+                      arr.push(this.stockType[i])
1567
+                  }
1568
+                  if(this.stockType[i].stock_attribute == 3){
1569
+                      arrTwo.push(this.stockType[i])
1570
+                  }
1571
+                }
1572
+                var dialyzator = []
1573
+                var irrigation = []
1574
+                for(let i=0;i<arr.length;i++){
1575
+                  for(let j=0;j<arr[i].GoodInfo.length;j++){
1576
+                      dialyzator.push(arr[i].GoodInfo[j])
1577
+                  }
1578
+                }
1579
+                console.log("透析器",dialyzator)
1580
+                this.dialyzers = dialyzator
1581
+
1582
+                for(let i=0;i<arrTwo.length;i++){
1583
+                  for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
1584
+                      irrigation.push(arrTwo[i].GoodInfo[j])
1585
+                  }
1586
+                }
1587
+                console.log("灌流器",irrigation)
1588
+                this.irrigations = irrigation
1589
+            }
1590
+           
1494 1591
         }
1495 1592
       })
1496 1593
     },
@@ -1718,7 +1815,8 @@ export default {
1718 1815
     }
1719 1816
 
1720 1817
     this.GetDeviceData()
1721
-
1818
+    this.fetchAllAdminUsers()
1819
+    this.fetchPatientDialysisSolutions()
1722 1820
     this.modeOptions = this.$store.getters.treatment_mode
1723 1821
     this.anticoagulantsSet = this.$store.getters.anticoagulants_set
1724 1822
     this.replacementWays = this.$store.getters.replacement_ways
@@ -1744,8 +1842,7 @@ export default {
1744 1842
 
1745 1843
     this.queryParams.id = this.patientID
1746 1844
     // this.fetchAllDoctorAndNurse();
1747
-    this.fetchAllAdminUsers()
1748
-    this.fetchPatientDialysisSolutions()
1845
+   
1749 1846
   }
1750 1847
 }
1751 1848
 </script>

+ 3 - 2
src/xt_pages/workforce/components/nextTableWeeks.vue Näytä tiedosto

@@ -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">
@@ -244,7 +245,7 @@ export default {
244 245
              scheduleData[i].sort = scheduleData[i].number.sort
245 246
            }
246 247
           var arr =   scheduleData.sort(this.compare('sort'))
247
-          // console.log("元旦快乐",arr)
248
+           console.log("元旦快乐",arr)
248 249
           this.scheduleData = arr
249 250
         
250 251
          

+ 5 - 2
src/xt_pages/workforce/components/tableWeeks.vue Näytä tiedosto

@@ -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>
@@ -241,7 +244,7 @@ export default {
241 244
              scheduleData[i].sort = scheduleData[i].number.sort
242 245
            }
243 246
           var arr =   scheduleData.sort(this.compare('sort'))
244
-          // console.log("元旦快乐",arr)
247
+        //  console.log("元旦快乐",arr)
245 248
           this.scheduleData = arr
246 249
         } else {
247 250
           this.$message.error("网络错误");

+ 2 - 2
src/xt_pages/workforce/next_remind_print.vue Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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">