|
@@ -27,7 +27,7 @@
|
27
|
27
|
<div class="item">
|
28
|
28
|
<label class="name" for="txms">干体重(kg)</label>
|
29
|
29
|
<div class="content">
|
30
|
|
- <span class="text" id="txms">{{ last_predialysis.dry_weight }}</span>
|
|
30
|
+ <span class="text" id="txms">{{ getDryWeight() }}</span>
|
31
|
31
|
</div>
|
32
|
32
|
</div>
|
33
|
33
|
<div class="item">
|
|
@@ -115,7 +115,9 @@ export default {
|
115
|
115
|
},
|
116
|
116
|
prescription_prop: {
|
117
|
117
|
type: Object
|
118
|
|
- }
|
|
118
|
+ },dry_weight: {
|
|
119
|
+ type: Object
|
|
120
|
+ },
|
119
|
121
|
},
|
120
|
122
|
computed: {
|
121
|
123
|
dialysis_date: function() {
|
|
@@ -123,6 +125,17 @@ export default {
|
123
|
125
|
}
|
124
|
126
|
},
|
125
|
127
|
methods: {
|
|
128
|
+ getDryWeight() {
|
|
129
|
+ if (this.dry_weight != null && this.dry_weight.id > 0) {
|
|
130
|
+ return this.dry_weight.dry_weight
|
|
131
|
+ } else {
|
|
132
|
+ if (this.last_predialysis != null && this.last_predialysis.id > 0) {
|
|
133
|
+ return this.last_predialysis.dry_weight
|
|
134
|
+ } else {
|
|
135
|
+ return ''
|
|
136
|
+ }
|
|
137
|
+ }
|
|
138
|
+ },
|
126
|
139
|
getBeforeWeight(predialysis){
|
127
|
140
|
if(predialysis.id > 0){
|
128
|
141
|
if(predialysis.weight_before > 0) {
|