Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

XMLWAN 5 years ago
parent
commit
4bdb8ca8c0

+ 1 - 1
src/xt_pages/dialysis/PatientBox.vue View File

@@ -18,7 +18,7 @@
18 18
         <ul>
19 19
           <li><span class="iconfont">&#xe6f5;</span>班次 : {{timeTypeText(schedule)}}</li>
20 20
           <li><span class="iconfont">&#xe6de;</span>床位号 : {{schedule.device_number.number}}</li>
21
-          <li><span class="iconfont">&#xe6f6;</span>透析模式 : {{schedule.mode_id?$store.getters.treatment_mode[schedule.mode_id].name:''}}</li>
21
+          <li><span class="iconfont">&#xe6f6;</span>透析模式 : {{schedule.mode_id&&$store.getters.treatment_mode[schedule.mode_id]?$store.getters.treatment_mode[schedule.mode_id].name:''}}</li>
22 22
         </ul>
23 23
       </div>
24 24
     </div>

+ 7 - 5
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -997,14 +997,15 @@
997 997
             ParamsQuery['patient'] = this.patient.id
998 998
             ParamsQuery['record_date'] = this.record_date
999 999
 
1000
-            console.log(this.prescription)
1001 1000
 
1002 1001
             if (this.prescription.creater <= 0) {
1003
-              mode = 1
1002
+              ParamsQuery['mode'] = "1"
1004 1003
             } else {
1005
-              mode = 2
1004
+              ParamsQuery['mode'] = "2"
1005
+              if (this.$store.getters.xt_user.user.id  != this.dialysisPrescription.creater){
1006
+                ParamsQuery['mode'] = "3"
1007
+              }
1006 1008
             }
1007
-
1008 1009
             postPrescription(ParamsQuery).then(response => {
1009 1010
               if (response.data.state == 0) {
1010 1011
                 this.$message.error(response.data.msg)
@@ -1124,12 +1125,13 @@
1124 1125
             ParamsQuery['patient'] = this.patient.id
1125 1126
             ParamsQuery['record_date'] = this.record_date
1126 1127
             console.log(this.prescription)
1127
-
1128
+            let mode = ""
1128 1129
             if (this.prescription.creater <= 0) {
1129 1130
               mode = 1
1130 1131
             } else {
1131 1132
               mode = 2
1132 1133
             }
1134
+            ParamsQuery['mode'] = mode
1133 1135
 
1134 1136
             postPrescription(ParamsQuery).then(response => {
1135 1137
               if (response.data.state == 0) {

+ 77 - 1
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -990,6 +990,79 @@ export default {
990 990
           }
991 991
           this.reset();
992 992
         } else {
993
+          this.form.systolic_bp =
994
+            parseFloat(this.form.systolic_bp) == NaN
995
+              ? 0
996
+              : parseFloat(this.form.systolic_bp);
997
+          this.form.diastolic_bp =
998
+            parseFloat(this.form.diastolic_bp) == NaN
999
+              ? 0
1000
+              : parseFloat(this.form.diastolic_bp);
1001
+          this.form.temperature =
1002
+            parseFloat(this.form.temperature) == NaN
1003
+              ? 0
1004
+              : parseFloat(this.form.temperature);
1005
+          this.form.pulse_frequency =
1006
+            parseFloat(this.form.pulse_frequency) == NaN
1007
+              ? 0
1008
+              : parseFloat(this.form.pulse_frequency);
1009
+          this.form.breathing_rated =
1010
+            parseFloat(this.form.breathing_rated) == NaN
1011
+              ? 0
1012
+              : parseFloat(this.form.breathing_rated);
1013
+          this.form.blood_flow_volume =
1014
+            parseFloat(this.form.blood_flow_volume) == NaN
1015
+              ? 0
1016
+              : parseFloat(this.form.blood_flow_volume);
1017
+          this.form.venous_pressure =
1018
+            parseFloat(this.form.venous_pressure) == NaN
1019
+              ? 0
1020
+              : parseFloat(this.form.venous_pressure);
1021
+          this.form.transmembrane_pressure =
1022
+            parseFloat(this.form.transmembrane_pressure) == NaN
1023
+              ? 0
1024
+              : parseFloat(this.form.transmembrane_pressure);
1025
+          this.form.ultrafiltration_volume =
1026
+            parseFloat(this.form.ultrafiltration_volume) == NaN
1027
+              ? 0
1028
+              : parseFloat(this.form.ultrafiltration_volume);
1029
+          this.form.ultrafiltration_rate =
1030
+            parseFloat(this.form.ultrafiltration_rate) == NaN
1031
+              ? 0
1032
+              : parseFloat(this.form.ultrafiltration_rate);
1033
+          this.form.arterial_pressure =
1034
+            parseFloat(this.form.arterial_pressure) == NaN
1035
+              ? 0
1036
+              : parseFloat(this.form.arterial_pressure);
1037
+          this.form.sodium_concentration =
1038
+            parseFloat(this.form.sodium_concentration) == NaN
1039
+              ? 0
1040
+              : parseFloat(this.form.sodium_concentration);
1041
+          this.form.dialysate_temperature =
1042
+            parseFloat(this.form.dialysate_temperature) == NaN
1043
+              ? 0
1044
+              : parseFloat(this.form.dialysate_temperature);
1045
+          this.form.replacement_rate =
1046
+            parseFloat(this.form.replacement_rate) == NaN
1047
+              ? 0
1048
+              : parseFloat(this.form.replacement_rate);
1049
+          this.form.displacement_quantity =
1050
+            parseFloat(this.form.displacement_quantity) == NaN
1051
+              ? 0
1052
+              : parseFloat(this.form.displacement_quantity);
1053
+          this.form.conductivity =
1054
+            parseFloat(this.form.conductivity) == NaN
1055
+              ? 0
1056
+              : parseFloat(this.form.conductivity);
1057
+          this.form.displacement_flow_quantity =
1058
+            parseFloat(this.form.displacement_flow_quantity) == NaN
1059
+              ? 0
1060
+              : parseFloat(this.form.displacement_flow_quantity);
1061
+
1062
+          this.form.ktv =
1063
+            parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
1064
+
1065
+
993 1066
           this.$message.error(resp.msg);
994 1067
         }
995 1068
       });
@@ -1059,7 +1132,8 @@ export default {
1059 1132
 
1060 1133
           const params = {
1061 1134
             patient_id: this.patient_id,
1062
-            record_id: this.table_current_row.id
1135
+            record_id: this.table_current_row.id,
1136
+            mode: mode
1063 1137
 
1064 1138
           };
1065 1139
 
@@ -1074,6 +1148,8 @@ export default {
1074 1148
                   this.monitors.splice(i, 1);
1075 1149
                 }
1076 1150
               }
1151
+              this.$message.success("删除成功");
1152
+
1077 1153
             }
1078 1154
           });
1079 1155
         })

+ 66 - 29
src/xt_pages/user/components/EditGroupAdvice.vue View File

@@ -821,33 +821,65 @@
821 821
         this.$refs[formName].validate(valid => {
822 822
           if (valid) {
823 823
             if (_this.nameForm.isEdit) {
824
-              var submitForm = {
825
-                advice_type: _this.groupForm.advice_type,
826
-                advice_date: _this.groupForm.advice_date,
827
-                start_time: _this.groupForm.start_time,
828
-                advice_name: _this.nameForm.advice_name,
829
-                advice_desc: _this.nameForm.advice_desc,
830
-                single_dose: '' + _this.nameForm.single_dose,
831
-                single_dose_unit: _this.nameForm.single_dose_unit,
832
-                drug_spec: '' + _this.nameForm.drug_spec,
833
-                drug_spec_unit: _this.nameForm.drug_spec_unit,
834
-                prescribing_number: '' + _this.nameForm.prescribing_number,
835
-                prescribing_number_unit: _this.nameForm.prescribing_number_unit,
836
-                delivery_way: _this.nameForm.delivery_way,
837
-                execution_frequency: _this.nameForm.execution_frequency,
838
-                isEdit: 0,
839
-                id: 0,
840
-                advice_doctor: '',
841
-                remark: _this.groupForm.remark,
842
-                parent_id: _this.groupSelectRow.parent_id,
843
-                groupno: _this.groupForm.groupno,
844
-                frequency_type: _this.nameForm.frequency_type,
845
-                day_count: _this.nameForm.day_count.toString(),
846
-                week_days: this.weeks
847
-                  .filter(function(s) {
848
-                    return s && s.trim()
849
-                  })
850
-                  .join(',')
824
+              var submitForm = null
825
+              if(!this.isChild){
826
+
827
+                 submitForm = {
828
+                  advice_type: _this.groupForm.advice_type,
829
+                  advice_date: _this.groupForm.advice_date,
830
+                  start_time: _this.groupForm.start_time,
831
+                  advice_name: _this.nameForm.advice_name,
832
+                  advice_desc: _this.nameForm.advice_desc,
833
+                  single_dose: '' + _this.nameForm.single_dose,
834
+                  single_dose_unit: _this.nameForm.single_dose_unit,
835
+                  drug_spec: '' + _this.nameForm.drug_spec,
836
+                  drug_spec_unit: _this.nameForm.drug_spec_unit,
837
+                  prescribing_number: '' + _this.nameForm.prescribing_number,
838
+                  prescribing_number_unit: _this.nameForm.prescribing_number_unit,
839
+                  delivery_way: _this.nameForm.delivery_way,
840
+                  execution_frequency: _this.nameForm.execution_frequency,
841
+                  isEdit: 0,
842
+                  id: 0,
843
+                  advice_doctor: '',
844
+                  remark: _this.groupForm.remark,
845
+                  parent_id: _this.groupSelectRow.parent_id,
846
+                  groupno: _this.groupForm.groupno,
847
+                  frequency_type: _this.nameForm.frequency_type,
848
+                  day_count: _this.nameForm.day_count.toString(),
849
+                  week_days: this.weeks
850
+                    .filter(function(s) {
851
+                      return s && s.trim()
852
+                    })
853
+                    .join(',')
854
+                }
855
+
856
+              }else{
857
+                 submitForm = {
858
+                  advice_type: _this.groupForm.advice_type,
859
+                  advice_date: _this.groupForm.advice_date,
860
+                  start_time: _this.groupForm.start_time,
861
+                  advice_name: _this.nameForm.advice_name,
862
+                  advice_desc: _this.nameForm.advice_desc,
863
+                  single_dose: '' + _this.nameForm.single_dose,
864
+                  single_dose_unit: _this.nameForm.single_dose_unit,
865
+                  drug_spec: '' + _this.nameForm.drug_spec,
866
+                  drug_spec_unit: _this.nameForm.drug_spec_unit,
867
+                  prescribing_number: '' + _this.nameForm.prescribing_number,
868
+                  prescribing_number_unit: _this.nameForm.prescribing_number_unit,
869
+                  delivery_way: _this.nameForm.delivery_way,
870
+                  execution_frequency: _this.nameForm.execution_frequency,
871
+                  isEdit: 0,
872
+                  id: 0,
873
+                  advice_doctor: '',
874
+                  remark: _this.groupForm.remark,
875
+                  parent_id: _this.groupSelectRow.parent_id,
876
+                  groupno: _this.groupForm.groupno,
877
+                  frequency_type: 0,
878
+                  day_count: "0",
879
+                  week_days: "",
880
+                }
881
+
882
+
851 883
               }
852 884
               let mode = ''
853 885
 
@@ -1402,8 +1434,13 @@
1402 1434
             week_days: this.groupSelectRow.week_day,
1403 1435
             frequency_type: this.groupSelectRow.frequency_type
1404 1436
           }
1405
-          // console.log(this.nameForm.week_days)
1406
-          this.weeks = this.groupSelectRow.week_day.split(',')
1437
+
1438
+          if(!this.isChild){
1439
+            this.weeks = this.groupSelectRow.week_day.split(',')
1440
+
1441
+          }
1442
+
1443
+
1407 1444
           this.nameFormTitle = '修改医嘱内容'
1408 1445
         } else {
1409 1446
           this.nameForm = {