XMLWAN преди 4 години
родител
ревизия
d452696337

+ 2 - 2
config/dev.env.js Целия файл

7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
8
   ENV_CONFIG: '"dev"',
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"',
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
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 1 - 0
src/api/config.js Целия файл

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

+ 93 - 6
src/xt_pages/data/prescription.vue Целия файл

231
 
231
 
232
                   <el-col :span="8">
232
                   <el-col :span="8">
233
                     <el-form-item label="透析器/灌流器:">
233
                     <el-form-item label="透析器/灌流器:">
234
-
235
                       <el-input
234
                       <el-input
236
                         v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
235
                         v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
237
                     </el-form-item>
236
                     </el-form-item>
238
                   </el-col>
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
                   <el-col :span="8">
254
                   <el-col :span="8">
241
                     <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
255
                     <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
242
                       <el-input v-model="addPlan.bicarbonate"></el-input>
256
                       <el-input v-model="addPlan.bicarbonate"></el-input>
803
         displace_liqui_part: "",
817
         displace_liqui_part: "",
804
         displace_liqui_value: "",
818
         displace_liqui_value: "",
805
         ultrafiltration: "",
819
         ultrafiltration: "",
806
-        blood_access: ""
820
+        blood_access: "",
821
+        dialysis_dialyszers:"",
822
+        dialysis_irrigation:""
807
       },
823
       },
808
       system_prescription: [],
824
       system_prescription: [],
809
       isEdit: false,
825
       isEdit: false,
831
       body_fluid_option: [],
847
       body_fluid_option: [],
832
       special_medicine_option: [],
848
       special_medicine_option: [],
833
       displace_liqui_part_option: [],
849
       displace_liqui_part_option: [],
834
-      blood_access_option: []
850
+      blood_access_option: [],
851
+      dialysis_dialyszers:"",
852
+      dialysis_irrigation:"",
835
     };
853
     };
836
   },
854
   },
837
   computed: {},
855
   computed: {},
845
           this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
863
           this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
846
           this.InnerDialogProps.selected = this.addPlan.dialyzer_perfusion_apparatus
864
           this.InnerDialogProps.selected = this.addPlan.dialyzer_perfusion_apparatus
847
           this.InnerDialogProps.isShowTextArea = false
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
           break
888
           break
849
       }
889
       }
850
     },
890
     },
854
         case 'dialyzer_perfusion_apparatus':
894
         case 'dialyzer_perfusion_apparatus':
855
           this.addPlan.dialyzer_perfusion_apparatus = val.value.join(',')
895
           this.addPlan.dialyzer_perfusion_apparatus = val.value.join(',')
856
           break
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
     innerDialogCancle: function() {
905
     innerDialogCancle: function() {
915
         displace_liqui_part: "",
960
         displace_liqui_part: "",
916
         displace_liqui_value: "",
961
         displace_liqui_value: "",
917
         ultrafiltration: "",
962
         ultrafiltration: "",
918
-        blood_access: ""
963
+        blood_access: "",
964
+        stockType:[],
965
+        irrigations:[],
966
+        dialyzers:[],
919
       };
967
       };
920
 
968
 
921
       for (const key in tempAddPlan) {
969
       for (const key in tempAddPlan) {
973
             }
1021
             }
974
           }
1022
           }
975
           this.addPlan.mode = id;
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
           return false;
1043
           return false;
992
         } else {
1044
         } else {
993
           this.system_prescription = response.data.data.prescriptions;
1045
           this.system_prescription = response.data.data.prescriptions;
994
-
1046
+          
995
           for (let i = 0; i < this.system_prescription.length; i++) {
1047
           for (let i = 0; i < this.system_prescription.length; i++) {
996
             if (this.system_prescription[i].mode == 1) {
1048
             if (this.system_prescription[i].mode == 1) {
997
               this.isEdit = true;
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
     savePrescription: function() {
1107
     savePrescription: function() {
1025
       this.addPlan.anticoagulant_zongliang = this.addPlan.anticoagulant_zongliang.toString();
1108
       this.addPlan.anticoagulant_zongliang = this.addPlan.anticoagulant_zongliang.toString();
1026
       if (!this.isEdit) {
1109
       if (!this.isEdit) {
1110
+        this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1111
+        this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1027
         postSystemPrescription(this.addPlan).then(response => {
1112
         postSystemPrescription(this.addPlan).then(response => {
1028
           if (response.data.state == 0) {
1113
           if (response.data.state == 0) {
1029
             this.$message.error(response.data.msg);
1114
             this.$message.error(response.data.msg);
1043
           }
1128
           }
1044
         });
1129
         });
1045
       } else {
1130
       } else {
1131
+          this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1132
+          this.addPlan.dialysis_dialyszers  = this.dialysis_dialyszers
1046
         updateSystemPrescription(this.addPlan.id, this.addPlan).then(
1133
         updateSystemPrescription(this.addPlan.id, this.addPlan).then(
1047
           response => {
1134
           response => {
1048
             if (response.data.state == 0) {
1135
             if (response.data.state == 0) {

+ 1 - 1
src/xt_pages/data/showConfig.vue Целия файл

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

+ 10 - 5
src/xt_pages/dialysis/PatientBox.vue Целия файл

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

+ 56 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue Целия файл

62
           <span class="unit"></span>
62
           <span class="unit"></span>
63
         </li>
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
         <li v-if="isShow('透析前使用特殊药物')">
77
         <li v-if="isShow('透析前使用特殊药物')">
66
           <label>透析前使用特殊药物: </label>
78
           <label>透析前使用特殊药物: </label>
67
           <span class="content">{{ special_medicine }}</span>
79
           <span class="content">{{ special_medicine }}</span>
319
     },
331
     },
320
     device_number_map: {
332
     device_number_map: {
321
       type: Object
333
       type: Object
334
+    },
335
+    preparestock:{
336
+      type:Array
322
     }
337
     }
323
   },
338
   },
324
   computed: {
339
   computed: {
481
         'dialyzer_perfusion_apparatus'
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
     body_fluid: function() {
539
     body_fluid: function() {
485
       var id = this.getValueStr('body_fluid', 'body_fluid')
540
       var id = this.getValueStr('body_fluid', 'body_fluid')
486
       if (id == 0) {
541
       if (id == 0) {
553
     }
608
     }
554
   },
609
   },
555
   created() {
610
   created() {
611
+
556
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
612
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
557
     var map = {}
613
     var map = {}
558
     for (let index = 0; index < perfusion_apparatus.length; index++) {
614
     for (let index = 0; index < perfusion_apparatus.length; index++) {

+ 7 - 0
src/xt_pages/dialysis/details/NavIgation.vue Целия файл

88
       :last_prescription="last_dialysis_prescribe"
88
       :last_prescription="last_dialysis_prescribe"
89
       :dry_weight="last_dryWeight_dislysis"
89
       :dry_weight="last_dryWeight_dislysis"
90
       :schedual="temp_schedual"
90
       :schedual="temp_schedual"
91
+      :stockType="stockType"
91
     ></dialysis-prescription-dialog>
92
     ></dialysis-prescription-dialog>
92
 
93
 
93
     <double-check-dialog
94
     <double-check-dialog
506
       default: () => {
507
       default: () => {
507
         return [];
508
         return [];
508
       }
509
       }
510
+    },
511
+    stockType:{
512
+      type:Array,
513
+      default:()=>{
514
+        return [];
515
+      }
509
     }
516
     }
510
   },
517
   },
511
   methods: {
518
   methods: {

+ 1 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Целия файл

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

+ 74 - 294
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Целия файл

349
             </el-form-item>
349
             </el-form-item>
350
           </el-col>
350
           </el-col>
351
 
351
 
352
-          <!-- <el-col :span="8" v-if="isShows('透析器')">
352
+          <el-col :span="8" v-if="isShows('透析器')">
353
              <el-form-item label="透析器:">
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
              </el-form-item>
355
              </el-form-item>
356
-          </el-col>
356
+          </el-col> 
357
+
357
 
358
 
358
359
           <el-col :span="8" v-if="isShows('灌流器')">
359
           <el-col :span="8" v-if="isShows('灌流器')">
360
              <el-form-item label="灌流器:">
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
              </el-form-item>
362
              </el-form-item>
363
-          </el-col> -->
363
+          </el-col> 
364
 
364
 
365
           <el-col :span="8" v-if="isShows('体液过多症状')">
365
           <el-col :span="8" v-if="isShows('体液过多症状')">
366
             <el-form-item label="体液过多症状:">
366
             <el-form-item label="体液过多症状:">
381
             </el-form-item>
381
             </el-form-item>
382
           </el-col>
382
           </el-col>
383
 
383
 
384
-          <!-- </el-row>
385
-
386
-
387
-          <el-row :gutter="20" > -->
384
+        
388
 
385
 
389
           <el-col :span="8" v-if="isShows('体液过多其他症状')">
386
           <el-col :span="8" v-if="isShows('体液过多其他症状')">
390
             <el-form-item label="体液过多其他症状">
387
             <el-form-item label="体液过多其他症状">
421
             </el-form-item>
418
             </el-form-item>
422
           </el-col>
419
           </el-col>
423
 
420
 
424
-          <!-- </el-row>
425
-
426
-          <el-row :gutter="20" > -->
421
+        
427
           <el-col :span="8">
422
           <el-col :span="8">
428
             <el-form-item
423
             <el-form-item
429
               label="置换液:"
424
               label="置换液:"
511
 
506
 
512
             </el-form-item>
507
             </el-form-item>
513
           </el-col>
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
         </el-row>
509
         </el-row>
790
 
510
 
791
         <el-row :gutter="20">
511
         <el-row :gutter="20">
1142
           return { id: 0 }
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
     computed: {
873
     computed: {
1148
       dialysis_date: function() {
874
       dialysis_date: function() {
1262
           nucleoprotamine:"",//鱼精蛋白
988
           nucleoprotamine:"",//鱼精蛋白
1263
           no_heparin_remarks:"",
989
           no_heparin_remarks:"",
1264
           blood:"",
990
           blood:"",
1265
-          irrigation:""
991
+          dialysis_dialyszers:"",
992
+          dialysis_irrigation:"",
1266
         },
993
         },
1267
 
994
 
1268
         anticoagulant: {
995
         anticoagulant: {
1284
         doctorAdvices: [],
1011
         doctorAdvices: [],
1285
         dialyzerPerfusionApparatus: [],
1012
         dialyzerPerfusionApparatus: [],
1286
         bloods:[],
1013
         bloods:[],
1287
-        irrigation:[],
1014
+        irrigations:[],
1288
         dialyzers:[],
1015
         dialyzers:[],
1289
       }
1016
       }
1290
     },
1017
     },
1330
             this.InnerDialogProps.isShowTextArea = false    
1057
             this.InnerDialogProps.isShowTextArea = false    
1331
           
1058
           
1332
            case '7': // 透析器
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
       innerDialogComfirm: function(val) {
1081
       innerDialogComfirm: function(val) {
1342
           case 'blood':
1087
           case 'blood':
1343
             this.dialysisPrescription.blood = val.value.join(',')
1088
             this.dialysisPrescription.blood = val.value.join(',')
1344
            break
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
       innerDialogCancle: function() {
1098
       innerDialogCancle: function() {
1443
           'hemodialysis',
1194
           'hemodialysis',
1444
           'dialyzer_perfusion_apparatus'
1195
           'dialyzer_perfusion_apparatus'
1445
         )
1196
         )
1446
-
1197
+        console.log("3333333",this.dialyzerPerfusionApparatus)
1447
         this.bloods = getDataConfig(
1198
         this.bloods = getDataConfig(
1448
           'hemodialysis',
1199
           'hemodialysis',
1449
           'blood'
1200
           'blood'
1571
                 ParamsQuery['mode'] = '3'
1322
                 ParamsQuery['mode'] = '3'
1572
               }
1323
               }
1573
             }
1324
             }
1325
+            
1574
             postPrescription(ParamsQuery).then(response => {
1326
             postPrescription(ParamsQuery).then(response => {
1575
               if (response.data.state == 0) {
1327
               if (response.data.state == 0) {
1576
                 this.$message.error(response.data.msg)
1328
                 this.$message.error(response.data.msg)
1973
             ParamsQuery['record_date'] = this.record_date
1725
             ParamsQuery['record_date'] = this.record_date
1974
             ParamsQuery['mode'] = '1'
1726
             ParamsQuery['mode'] = '1'
1975
 
1727
 
1976
-            console.log("第一")
1728
+            console.log("第一",ParamsQuery)
1977
             postPrescription(ParamsQuery).then(response => {
1729
             postPrescription(ParamsQuery).then(response => {
1978
               if (response.data.state == 0) {
1730
               if (response.data.state == 0) {
1979
                 this.$message.error(response.data.msg)
1731
                 this.$message.error(response.data.msg)
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
 </script>
3472
 </script>

+ 12 - 6
src/xt_pages/dialysis/details/index.vue Целия файл

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

+ 38 - 11
src/xt_pages/stock/Dialog/goodTypeDialog.vue Целия файл

12
       <el-row>
12
       <el-row>
13
         <el-col>
13
         <el-col>
14
           <el-form-item label="耗材属性">
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
           </el-form-item>
21
           </el-form-item>
19
         </el-col>
22
         </el-col>
20
       </el-row>
23
       </el-row>
21
       <el-row>
24
       <el-row>
22
         <el-col>
25
         <el-col>
23
-          <el-form-item label="耗材出库" prop="out_stock">
26
+          <el-form-item label="耗材出库" prop="out_stock" v-show="showAttribute">
24
              <el-radio v-model="formValue.out_stock" label="1">是</el-radio>
27
              <el-radio v-model="formValue.out_stock" label="1">是</el-radio>
25
              <el-radio v-model="formValue.out_stock" label="2">否</el-radio>
28
              <el-radio v-model="formValue.out_stock" label="2">否</el-radio>
26
           </el-form-item>     
29
           </el-form-item>     
67
         ]
70
         ]
68
       },
71
       },
69
        out_stock: '1',
72
        out_stock: '1',
70
-       stock_attribute:"1"
73
+       stock_attribute:"1",
74
+       showAttribute:false
71
     };
75
     };
72
   },
76
   },
73
   props: {
77
   props: {
84
     }
88
     }
85
   },
89
   },
86
   methods: {
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
       this.visibility = true
100
       this.visibility = true
89
 
101
 
90
     },hide:function(){
102
     },hide:function(){
109
       form['out_stock'] = this.formValue.out_stock;
121
       form['out_stock'] = this.formValue.out_stock;
110
       form["stock_attribute"] = this.formValue.stock_attribute
122
       form["stock_attribute"] = this.formValue.stock_attribute
111
       return form;
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
   watch: {
136
   watch: {
115
     visibility(val) {
137
     visibility(val) {
116
-      !val &&
117
-        setTimeout(() => {
138
+      
139
+      !val && setTimeout(() => {
140
+        
118
           this.$refs["formValue"].resetFields();
141
           this.$refs["formValue"].resetFields();
119
           this.formValue.remark = "";
142
           this.formValue.remark = "";
120
           this.formValue.type_name = "";
143
           this.formValue.type_name = "";
121
           this.formValue.stock_attribute="1";
144
           this.formValue.stock_attribute="1";
122
           this.formValue.out_stock = "1"
145
           this.formValue.out_stock = "1"
123
-        }, 0);
124
-    }
125
-  }
146
+       }, 0);
147
+    },
148
+    
149
+   
150
+  },
151
+
152
+ 
126
 };
153
 };
127
 </script>
154
 </script>
128
 
155
 

+ 3 - 2
src/xt_pages/stock/config/goodType.vue Целия файл

339
         });
339
         });
340
       } else if (val.isCreated == 1) {
340
       } else if (val.isCreated == 1) {
341
         //新增
341
         //新增
342
-        console.log("val22222",val)
342
+        
343
        
343
        
344
         createGoodType(val).then(response => {
344
         createGoodType(val).then(response => {
345
           
345
           
346
           if (response.data.state == 0) {
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
             return false;
349
             return false;
349
           } else {
350
           } else {
350
             this.$refs.dialog.hide();
351
             this.$refs.dialog.hide();

+ 1 - 1
src/xt_pages/stock/index.vue Целия файл

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

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

384
               v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
384
               v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
385
             </el-form-item>
385
             </el-form-item>
386
           </el-col>
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
           <el-col :span="8" v-if="isShows('碳酸氢盐')">
403
           <el-col :span="8" v-if="isShows('碳酸氢盐')">
389
             <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
404
             <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
725
         displace_liqui_part: '',
740
         displace_liqui_part: '',
726
         displace_liqui_value: '',
741
         displace_liqui_value: '',
727
         ultrafiltration: '',
742
         ultrafiltration: '',
728
-        blood_access: ''
743
+        blood_access: '',
744
+        dialysis_dialyszers:'',
745
+        dialysis_irrigation:'',
729
       },
746
       },
730
       childPlan: {
747
       childPlan: {
731
         mode: '',
748
         mode: '',
848
         page: 1,
865
         page: 1,
849
         limit: 10,
866
         limit: 10,
850
         id: 0
867
         id: 0
851
-      }
868
+      },
869
+     stockType:[],
870
+     irrigations:[],
871
+     dialyzers:[],
872
+     dialysis_dialyszers:'',
873
+     dialysis_irrigation:"",
852
     }
874
     }
853
   },
875
   },
854
   watch: {
876
   watch: {
892
           this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
914
           this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
893
           this.InnerDialogProps.selected = this.addPlan.dialyzer_perfusion_apparatus
915
           this.InnerDialogProps.selected = this.addPlan.dialyzer_perfusion_apparatus
894
           this.InnerDialogProps.isShowTextArea = false
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
           break
939
           break
896
       }
940
       }
897
     },
941
     },
898
     innerDialogComfirm: function(val) {
942
     innerDialogComfirm: function(val) {
943
+      
899
       this.InnerDialogProps.visibility = false
944
       this.InnerDialogProps.visibility = false
900
       switch (val.type) {
945
       switch (val.type) {
901
         case 'dialyzer_perfusion_apparatus':
946
         case 'dialyzer_perfusion_apparatus':
902
           this.addPlan.dialyzer_perfusion_apparatus = val.value.join(',')
947
           this.addPlan.dialyzer_perfusion_apparatus = val.value.join(',')
903
           break
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
     innerDialogCancle: function() {
960
     innerDialogCancle: function() {
1210
           ) {
1263
           ) {
1211
             mode = '3'
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
           editPatientDialysisSolution(
1269
           editPatientDialysisSolution(
1215
             this.patientID,
1270
             this.patientID,
1216
             this.addPlan.id,
1271
             this.addPlan.id,
1254
       this.$refs[formName].validate(valid => {
1309
       this.$refs[formName].validate(valid => {
1255
         if (valid) {
1310
         if (valid) {
1256
           const mode = '1'
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
           createPatientDialysisSolution(
1315
           createPatientDialysisSolution(
1258
             this.patientID,
1316
             this.patientID,
1259
             this.addPlan,
1317
             this.addPlan,
1342
       this.addPlan.remark = row.remark
1400
       this.addPlan.remark = row.remark
1343
 
1401
 
1344
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
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
      if(row.body_fluid == 0){
1407
      if(row.body_fluid == 0){
1347
        this.addPlan.body_fluid = ""
1408
        this.addPlan.body_fluid = ""
1348
       }else{
1409
       }else{
1357
       this.addPlan.blood_access = row.blood_access
1418
       this.addPlan.blood_access = row.blood_access
1358
 
1419
 
1359
       this.addPlan.registrars_id = row.registrars_id
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
       this.dialogVisible = true
1425
       this.dialogVisible = true
1362
       this.isEdit = true
1426
       this.isEdit = true
1363
       if(row.dialysate_formulation==0){
1427
       if(row.dialysate_formulation==0){
1491
         if (response.data.state == 1) {
1555
         if (response.data.state == 1) {
1492
           this.tableData = response.data.data.solutions
1556
           this.tableData = response.data.data.solutions
1493
           this.total = response.data.data.total
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
     }
1815
     }
1719
 
1816
 
1720
     this.GetDeviceData()
1817
     this.GetDeviceData()
1721
-
1818
+    this.fetchAllAdminUsers()
1819
+    this.fetchPatientDialysisSolutions()
1722
     this.modeOptions = this.$store.getters.treatment_mode
1820
     this.modeOptions = this.$store.getters.treatment_mode
1723
     this.anticoagulantsSet = this.$store.getters.anticoagulants_set
1821
     this.anticoagulantsSet = this.$store.getters.anticoagulants_set
1724
     this.replacementWays = this.$store.getters.replacement_ways
1822
     this.replacementWays = this.$store.getters.replacement_ways
1744
 
1842
 
1745
     this.queryParams.id = this.patientID
1843
     this.queryParams.id = this.patientID
1746
     // this.fetchAllDoctorAndNurse();
1844
     // this.fetchAllDoctorAndNurse();
1747
-    this.fetchAllAdminUsers()
1748
-    this.fetchPatientDialysisSolutions()
1845
+   
1749
   }
1846
   }
1750
 }
1847
 }
1751
 </script>
1848
 </script>

+ 3 - 2
src/xt_pages/workforce/components/nextTableWeeks.vue Целия файл

79
           }}
79
           }}
80
         </template>
80
         </template>
81
       </el-table-column>
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
         <template slot-scope="scope">
83
         <template slot-scope="scope">
84
           {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
84
           {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
85
+          {{scope.row.prescription.dialysis_dialyszers}} / {{scope.row.prescription.dialysis_irrigation}}
85
         </template>
86
         </template>
86
       </el-table-column>
87
       </el-table-column>
87
       <el-table-column label="抗凝剂" min-width="100" align="center">
88
       <el-table-column label="抗凝剂" min-width="100" align="center">
244
              scheduleData[i].sort = scheduleData[i].number.sort
245
              scheduleData[i].sort = scheduleData[i].number.sort
245
            }
246
            }
246
           var arr =   scheduleData.sort(this.compare('sort'))
247
           var arr =   scheduleData.sort(this.compare('sort'))
247
-          // console.log("元旦快乐",arr)
248
+           console.log("元旦快乐",arr)
248
           this.scheduleData = arr
249
           this.scheduleData = arr
249
         
250
         
250
          
251
          

+ 5 - 2
src/xt_pages/workforce/components/tableWeeks.vue Целия файл

79
           }}
79
           }}
80
         </template>
80
         </template>
81
       </el-table-column>
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
         <template slot-scope="scope">
83
         <template slot-scope="scope">
84
           {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
84
           {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
85
+
86
+          {{scope.row.prescription.dialysis_dialyszers}}/{{scope.row.prescription.dialysis_irrigation}}
85
         </template>
87
         </template>
86
       </el-table-column>
88
       </el-table-column>
89
+      
87
       <el-table-column label="抗凝剂" min-width="100" align="center">
90
       <el-table-column label="抗凝剂" min-width="100" align="center">
88
         <template slot-scope="scope">
91
         <template slot-scope="scope">
89
           <span v-if="scope.row.prescription.anticoagulant === 1">无肝素</span>
92
           <span v-if="scope.row.prescription.anticoagulant === 1">无肝素</span>
241
              scheduleData[i].sort = scheduleData[i].number.sort
244
              scheduleData[i].sort = scheduleData[i].number.sort
242
            }
245
            }
243
           var arr =   scheduleData.sort(this.compare('sort'))
246
           var arr =   scheduleData.sort(this.compare('sort'))
244
-          // console.log("元旦快乐",arr)
247
+        //  console.log("元旦快乐",arr)
245
           this.scheduleData = arr
248
           this.scheduleData = arr
246
         } else {
249
         } else {
247
           this.$message.error("网络错误");
250
           this.$message.error("网络错误");

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

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

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

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