|
@@ -63,11 +63,6 @@
|
63
|
63
|
<!-- </el-row>
|
64
|
64
|
|
65
|
65
|
<el-row :gutter="20"> -->
|
66
|
|
- <el-col :span="8" v-if="isShows('透析液温度')">
|
67
|
|
- <el-form-item label="透析液温度(°C):">
|
68
|
|
- <el-input type="number" v-model="dialysisPrescription.dialysate_temperature"></el-input>
|
69
|
|
- </el-form-item>
|
70
|
|
- </el-col>
|
71
|
66
|
|
72
|
67
|
|
73
|
68
|
|
|
@@ -110,6 +105,14 @@
|
110
|
105
|
</el-col>
|
111
|
106
|
|
112
|
107
|
|
|
108
|
+ <el-col :span="8" v-if="isShows('置换量')" v-show="zhiShow">
|
|
109
|
+ <el-form-item label="置换量(L):">
|
|
110
|
+ <el-input type="number" v-model="dialysisPrescription.replacement_total"></el-input>
|
|
111
|
+ </el-form-item>
|
|
112
|
+ </el-col>
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
113
|
116
|
<el-col :span="8" v-if="anticoagulant.gaimingcheng != -1&&isShows('钙名称')">
|
114
|
117
|
<el-form-item label="钙名称 : ">
|
115
|
118
|
<el-input v-model="dialysisPrescription.anticoagulant_gaimingcheng"
|
|
@@ -123,12 +126,6 @@
|
123
|
126
|
</el-form-item>
|
124
|
127
|
</el-col>
|
125
|
128
|
|
126
|
|
- <el-col :span="8" v-if="isShows('置换量')" v-show="zhiShow">
|
127
|
|
- <el-form-item label="置换量(L):">
|
128
|
|
- <el-input type="number" v-model="dialysisPrescription.replacement_total"></el-input>
|
129
|
|
- </el-form-item>
|
130
|
|
- </el-col>
|
131
|
|
-
|
132
|
129
|
|
133
|
130
|
<el-col :span="8" v-if="isShows('钾')">
|
134
|
131
|
<el-form-item label="钾(mmol/L): ">
|
|
@@ -168,6 +165,13 @@
|
168
|
165
|
<el-input type="number" v-model="dialysisPrescription.glucose"></el-input>
|
169
|
166
|
</el-form-item>
|
170
|
167
|
</el-col>
|
|
168
|
+
|
|
169
|
+ <el-col :span="8" v-if="isShows('透析液温度')">
|
|
170
|
+ <el-form-item label="透析液温度(°C):">
|
|
171
|
+ <el-input type="number" v-model="dialysisPrescription.dialysate_temperature"></el-input>
|
|
172
|
+ </el-form-item>
|
|
173
|
+ </el-col>
|
|
174
|
+
|
171
|
175
|
<!-- </el-row>
|
172
|
176
|
|
173
|
177
|
<el-row :gutter="20"> -->
|
|
@@ -507,7 +511,7 @@
|
507
|
511
|
</div>
|
508
|
512
|
<div class="newLine">
|
509
|
513
|
<span>透前体重(kg)</span>
|
510
|
|
- <span>{{ predialysis.weight_before }}</span>
|
|
514
|
+ <span>{{ getBeforeWeight(predialysis)}}</span>
|
511
|
515
|
</div>
|
512
|
516
|
<div class="newLine">
|
513
|
517
|
<span>干体重(kg)</span>
|
|
@@ -525,7 +529,7 @@
|
525
|
529
|
</div>
|
526
|
530
|
<div class="newLine">
|
527
|
531
|
<span>透后体重(kg)</span>
|
528
|
|
- <span>{{ record.weight_after }}</span>
|
|
532
|
+ <span>{{ getAfterWeight(record) }}</span>
|
529
|
533
|
</div>
|
530
|
534
|
<div class="newLine">
|
531
|
535
|
<span>体重减少(kg)</span>
|
|
@@ -870,6 +874,23 @@
|
870
|
874
|
}
|
871
|
875
|
},
|
872
|
876
|
methods: {
|
|
877
|
+ getBeforeWeight(predialysis){
|
|
878
|
+ if(predialysis.id > 0){
|
|
879
|
+ if(predialysis.weight_before > 0) {
|
|
880
|
+ return predialysis.weight_before - predialysis.additional_weight
|
|
881
|
+ }else{
|
|
882
|
+ return ''
|
|
883
|
+ }
|
|
884
|
+ }
|
|
885
|
+ }, getAfterWeight(record){
|
|
886
|
+ if(record.id > 0){
|
|
887
|
+ if(record.weight_after > 0) {
|
|
888
|
+ return record.weight_after - this.predialysis.additional_weight
|
|
889
|
+ }else{
|
|
890
|
+ return ''
|
|
891
|
+ }
|
|
892
|
+ }
|
|
893
|
+ },
|
873
|
894
|
isPermission () {
|
874
|
895
|
if (this.$store.getters.xt_user.user.user_type == 3 && ( this.$store.getters.xt_user.template_info.template_id == 2 || this.$store.getters.xt_user.template_info.template_id == 6)) {
|
875
|
896
|
return false
|
|
@@ -1147,16 +1168,26 @@
|
1147
|
1168
|
return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
|
1148
|
1169
|
},
|
1149
|
1170
|
show() {
|
|
1171
|
+ let last_weight_after = 0
|
|
1172
|
+ let weight_before = 0
|
1150
|
1173
|
|
1151
|
|
- if (
|
1152
|
|
- this.predialysis.weight_before > 0 &&
|
1153
|
|
- this.last_record.weight_after > 0
|
1154
|
|
- ) {
|
1155
|
|
- this.add_weight = parseFloat(
|
1156
|
|
- this.predialysis.weight_before - this.last_record.weight_after
|
1157
|
|
- ).toFixed(2)
|
|
1174
|
+ if(this.last_record == null){
|
|
1175
|
+ last_weight_after = 0
|
|
1176
|
+ }else{
|
|
1177
|
+ last_weight_after = this.last_record.weight_after
|
1158
|
1178
|
}
|
1159
|
1179
|
|
|
1180
|
+ if(this.predialysis == null || this.predialysis.id == 0 ){
|
|
1181
|
+ weight_before = 0
|
|
1182
|
+ }else{
|
|
1183
|
+ weight_before = this.predialysis.weight_before
|
|
1184
|
+ }
|
|
1185
|
+
|
|
1186
|
+ if(weight_before > 0){
|
|
1187
|
+ this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(2)
|
|
1188
|
+ }
|
|
1189
|
+
|
|
1190
|
+
|
1160
|
1191
|
this.isVisibility = true
|
1161
|
1192
|
this.checkedCities = []
|
1162
|
1193
|
for (let i = 0; i < this.targetAdvices.length; i++) {
|
|
@@ -2059,7 +2090,7 @@
|
2059
|
2090
|
dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
|
2060
|
2091
|
|
2061
|
2092
|
}
|
2062
|
|
- duration = parseFloat(dialysis_duration_hour) * 60 + parseFloat(dialysis_duration_minute)
|
|
2093
|
+ duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
2063
|
2094
|
|
2064
|
2095
|
|
2065
|
2096
|
|
|
@@ -2092,7 +2123,7 @@
|
2092
|
2123
|
dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
|
2093
|
2124
|
|
2094
|
2125
|
}
|
2095
|
|
- duration = parseFloat(dialysis_duration_hour) * 60 + parseFloat(dialysis_duration_minute)
|
|
2126
|
+ duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
2096
|
2127
|
|
2097
|
2128
|
|
2098
|
2129
|
|
|
@@ -2123,7 +2154,7 @@
|
2123
|
2154
|
dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
|
2124
|
2155
|
|
2125
|
2156
|
}
|
2126
|
|
- duration = parseFloat(dialysis_duration_hour) * 60 + parseFloat(dialysis_duration_minute)
|
|
2157
|
+ duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
2127
|
2158
|
this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
|
2128
|
2159
|
this.dialysisPrescription.anticoagulant_shouji,
|
2129
|
2160
|
duration,
|
|
@@ -2152,7 +2183,7 @@
|
2152
|
2183
|
dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
|
2153
|
2184
|
|
2154
|
2185
|
}
|
2155
|
|
- duration = parseFloat(dialysis_duration_hour) * 60 + parseFloat(dialysis_duration_minute)
|
|
2186
|
+ duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
2156
|
2187
|
|
2157
|
2188
|
this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
|
2158
|
2189
|
this.dialysisPrescription.anticoagulant_shouji,
|