|
@@ -930,6 +930,17 @@ export default {
|
930
|
930
|
return false;
|
931
|
931
|
} else {
|
932
|
932
|
var prescription = response.data.data.prescription
|
|
933
|
+ console.log("prescription",prescription)
|
|
934
|
+ prescription.dialysis_duration = parseFloat(prescription.dialysis_duration_hour) + parseFloat((prescription.dialysis_duration_minute / 60).toFixed(2))
|
|
935
|
+ if(prescription.dialysate_formulation == 0){
|
|
936
|
+ prescription.dialysate_formulation = ""
|
|
937
|
+ }
|
|
938
|
+ if(prescription.body_fluid ==0 ){
|
|
939
|
+ prescription.body_fluid = ""
|
|
940
|
+ }
|
|
941
|
+ if(prescription.anticoagulant == 0){
|
|
942
|
+ prescription.anticoagulant = ""
|
|
943
|
+ }
|
933
|
944
|
if(prescription.anticoagulant == 3){
|
934
|
945
|
prescription.anticoagulant = "低分子肝素"
|
935
|
946
|
}
|
|
@@ -969,7 +980,6 @@ export default {
|
969
|
980
|
return false;
|
970
|
981
|
} else {
|
971
|
982
|
this.system_prescription = response.data.data.prescriptions;
|
972
|
|
- console.log("为什么",this.system_prescription)
|
973
|
983
|
|
974
|
984
|
for (let i = 0; i < this.system_prescription.length; i++) {
|
975
|
985
|
if (this.system_prescription[i].mode == 1) {
|
|
@@ -1017,7 +1027,6 @@ export default {
|
1017
|
1027
|
this.isEdit = true;
|
1018
|
1028
|
this.system_prescription = [];
|
1019
|
1029
|
this.system_prescription = response.data.data.prescriptions;
|
1020
|
|
- console.log("触发了吗",this.system_prescription)
|
1021
|
1030
|
this.addPlan.id = response.data.data.prescription.id;
|
1022
|
1031
|
return false;
|
1023
|
1032
|
}
|
|
@@ -1056,6 +1065,7 @@ export default {
|
1056
|
1065
|
|
1057
|
1066
|
this.blood_filters = this.$store.getters.blood_filters;
|
1058
|
1067
|
this.dialysate_formulation = this.$store.getters.dialysate_formulation;
|
|
1068
|
+
|
1059
|
1069
|
this.body_fluid_option = this.$store.getters.body_fluid;
|
1060
|
1070
|
this.special_medicine_option = this.$store.getters.special_medicine;
|
1061
|
1071
|
this.displace_liqui_part_option = this.$store.getters.displace_liqui;
|
|
@@ -1071,9 +1081,9 @@ export default {
|
1071
|
1081
|
},
|
1072
|
1082
|
watch: {
|
1073
|
1083
|
"addPlan.dialysis_duration": function() {
|
1074
|
|
- console.log(this.addPlan.anticoagulant_shouji);
|
1075
|
|
- console.log(this.addPlan.dialysis_duration);
|
1076
|
|
- console.log(this.addPlan.anticoagulant_weichi);
|
|
1084
|
+ // console.log(this.addPlan.anticoagulant_shouji);
|
|
1085
|
+ // console.log(this.addPlan.dialysis_duration);
|
|
1086
|
+ // console.log(this.addPlan.anticoagulant_weichi);
|
1077
|
1087
|
|
1078
|
1088
|
this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
|
1079
|
1089
|
1,
|
|
@@ -1083,21 +1093,21 @@ export default {
|
1083
|
1093
|
);
|
1084
|
1094
|
},
|
1085
|
1095
|
"addPlan.anticoagulant_shouji": function() {
|
1086
|
|
- console.log("首剂", this.addPlan.anticoagulant_shouji);
|
1087
|
|
- console.log("维持", this.addPlan.anticoagulant_weichi);
|
1088
|
|
- console.log("总量", this.addPlan.dialysis_duration);
|
|
1096
|
+ // console.log("首剂", this.addPlan.anticoagulant_shouji);
|
|
1097
|
+ // console.log("维持", this.addPlan.anticoagulant_weichi);
|
|
1098
|
+ // console.log("总量", this.addPlan.dialysis_duration);
|
1089
|
1099
|
this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
|
1090
|
1100
|
1,
|
1091
|
1101
|
this.addPlan.anticoagulant_shouji,
|
1092
|
1102
|
this.addPlan.dialysis_duration,
|
1093
|
1103
|
this.addPlan.anticoagulant_weichi
|
1094
|
1104
|
);
|
1095
|
|
- console.log("总量----", this.addPlan.anticoagulant_zongliang);
|
|
1105
|
+ // console.log("总量----", this.addPlan.anticoagulant_zongliang);
|
1096
|
1106
|
},
|
1097
|
1107
|
"addPlan.anticoagulant_weichi": function() {
|
1098
|
|
- console.log(this.addPlan.anticoagulant_shouji);
|
1099
|
|
- console.log(this.addPlan.dialysis_duration);
|
1100
|
|
- console.log(this.addPlan.anticoagulant_weichi);
|
|
1108
|
+ // console.log(this.addPlan.anticoagulant_shouji);
|
|
1109
|
+ // console.log(this.addPlan.dialysis_duration);
|
|
1110
|
+ // console.log(this.addPlan.anticoagulant_weichi);
|
1101
|
1111
|
this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
|
1102
|
1112
|
1,
|
1103
|
1113
|
this.addPlan.anticoagulant_shouji,
|