|
@@ -65,7 +65,6 @@
|
65
|
65
|
<el-row :gutter="20"> -->
|
66
|
66
|
|
67
|
67
|
|
68
|
|
-
|
69
|
68
|
<el-col :span="8" v-if="isShows('抗凝剂')">
|
70
|
69
|
<el-form-item label="抗凝剂:">
|
71
|
70
|
<el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择" style="width:100%;"
|
|
@@ -81,8 +80,10 @@
|
81
|
80
|
|
82
|
81
|
<el-col :span="8" v-if="anticoagulant.shouji != -1&&isShows('首剂')">
|
83
|
82
|
<el-form-item :label="'首剂('+anticoagulant.shouji_unit+') : '">
|
84
|
|
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1" v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
|
85
|
|
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1" v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
|
|
83
|
+ <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
|
|
84
|
+ v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
|
|
85
|
+ <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
|
|
86
|
+ v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
|
86
|
87
|
|
87
|
88
|
</el-form-item>
|
88
|
89
|
</el-col>
|
|
@@ -90,16 +91,20 @@
|
90
|
91
|
|
91
|
92
|
<el-col :span="8" v-if="anticoagulant.weichi != -1&&isShows('维持')">
|
92
|
93
|
<el-form-item :label="'维持('+anticoagulant.weichi_unit+') : '" v-if="anticoagulant.weichi != -1">
|
93
|
|
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1" v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
|
94
|
|
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1" v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
|
|
94
|
+ <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
|
|
95
|
+ v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
|
|
96
|
+ <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
|
|
97
|
+ v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
|
95
|
98
|
|
96
|
99
|
</el-form-item>
|
97
|
100
|
</el-col>
|
98
|
101
|
|
99
|
102
|
<el-col :span="8" v-if="anticoagulant.zongliang != -1&&isShows('总量')">
|
100
|
103
|
<el-form-item :label="'总量('+anticoagulant.zongliang_unit+') : '">
|
101
|
|
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1" v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
|
102
|
|
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1" v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
|
|
104
|
+ <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
|
|
105
|
+ v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
|
|
106
|
+ <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
|
|
107
|
+ v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
|
103
|
108
|
|
104
|
109
|
</el-form-item>
|
105
|
110
|
</el-col>
|
|
@@ -112,7 +117,6 @@
|
112
|
117
|
</el-col>
|
113
|
118
|
|
114
|
119
|
|
115
|
|
-
|
116
|
120
|
<el-col :span="8" v-if="anticoagulant.gaimingcheng != -1&&isShows('钙名称')">
|
117
|
121
|
<el-form-item label="钙名称 : ">
|
118
|
122
|
<el-input v-model="dialysisPrescription.anticoagulant_gaimingcheng"
|
|
@@ -147,9 +151,6 @@
|
147
|
151
|
</el-col>
|
148
|
152
|
|
149
|
153
|
|
150
|
|
-
|
151
|
|
-
|
152
|
|
-
|
153
|
154
|
<el-col :span="8" v-if="isShows('碳酸氢盐')">
|
154
|
155
|
<el-form-item label="碳酸氢盐(mmol/L):">
|
155
|
156
|
<el-input type="number" v-model="dialysisPrescription.bicarbonate"></el-input>
|
|
@@ -174,7 +175,6 @@
|
174
|
175
|
</el-col>
|
175
|
176
|
|
176
|
177
|
|
177
|
|
-
|
178
|
178
|
<el-col :span="8" v-if="isShows('电导度')">
|
179
|
179
|
<el-form-item label="电导度(mS/m): ">
|
180
|
180
|
<el-input type="number" v-model="dialysisPrescription.conductivity"></el-input>
|
|
@@ -280,7 +280,6 @@
|
280
|
280
|
</el-col>
|
281
|
281
|
|
282
|
282
|
|
283
|
|
-
|
284
|
283
|
<!--透析耗材-->
|
285
|
284
|
<el-col :span="8" v-if="isShows('血液透析干粉')&&config.is_open == 1">
|
286
|
285
|
<el-form-item label="血液透析干粉:">
|
|
@@ -466,7 +465,7 @@
|
466
|
465
|
>
|
467
|
466
|
|
468
|
467
|
<el-checkbox-group v-model="checkedCities">
|
469
|
|
- <el-checkbox style="display: flex;align-items: center" v-for="(advice, index) in targetAdvices"
|
|
468
|
+ <el-checkbox style="display: flex;align-items: center" v-for="(advice, index) in targetAdvices"
|
470
|
469
|
:label="advice.id"
|
471
|
470
|
:key="index"
|
472
|
471
|
:value="advice.id"
|
|
@@ -508,7 +507,7 @@
|
508
|
507
|
</div>
|
509
|
508
|
<div class="newLine">
|
510
|
509
|
<span>干体重(kg)</span>
|
511
|
|
- <span>{{ last_predialysis?last_predialysis.dry_weight:''}}</span>
|
|
510
|
+ <span>{{ getDryWeight()}}</span>
|
512
|
511
|
</div>
|
513
|
512
|
<div class="newLine">
|
514
|
513
|
<span>衣物重(kg)</span>
|
|
@@ -546,10 +545,9 @@
|
546
|
545
|
<script>
|
547
|
546
|
import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution } from '@/api/dialysis'
|
548
|
547
|
import { getDataConfig } from '@/utils/data'
|
549
|
|
- import { uParseTime } from '@/utils/tools'
|
|
548
|
+ import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
|
550
|
549
|
import store from '@/store'
|
551
|
550
|
import MsgTip from './MsgTip'
|
552
|
|
- import { calculateAnticoagulantZL} from '@/utils/tools'
|
553
|
551
|
|
554
|
552
|
export default {
|
555
|
553
|
name: 'dialysisPrescriptionDialog',
|
|
@@ -675,7 +673,6 @@
|
675
|
673
|
}
|
676
|
674
|
},
|
677
|
675
|
|
678
|
|
-
|
679
|
676
|
prescription: { // 透析处方
|
680
|
677
|
type: Object,
|
681
|
678
|
default: () => {
|
|
@@ -738,12 +735,12 @@
|
738
|
735
|
default: () => {
|
739
|
736
|
return { id: 0 }
|
740
|
737
|
}
|
741
|
|
- },last_prescription: {
|
|
738
|
+ }, last_prescription: {
|
742
|
739
|
type: Object,
|
743
|
740
|
default: () => {
|
744
|
741
|
return { id: 0 }
|
745
|
742
|
}
|
746
|
|
- },
|
|
743
|
+ }
|
747
|
744
|
|
748
|
745
|
},
|
749
|
746
|
computed: {
|
|
@@ -756,7 +753,7 @@
|
756
|
753
|
zhiShow: false,
|
757
|
754
|
totalShow: false,
|
758
|
755
|
huShow: false,
|
759
|
|
- showName:'',
|
|
756
|
+ showName: '',
|
760
|
757
|
isShowRemindAdvice: false,
|
761
|
758
|
checkedCities: [],
|
762
|
759
|
isVisibility: false,
|
|
@@ -771,7 +768,7 @@
|
771
|
768
|
replacement_ways: [],
|
772
|
769
|
anticoagulantsConfit: {},
|
773
|
770
|
dialysate_formulation_options: [],
|
774
|
|
- add_weight:0,
|
|
771
|
+ add_weight: 0,
|
775
|
772
|
body_fluid_option: [],
|
776
|
773
|
special_medicine_option: [],
|
777
|
774
|
displace_liqui_part_option: [],
|
|
@@ -837,12 +834,9 @@
|
837
|
834
|
package: '',
|
838
|
835
|
a_liquid: '',
|
839
|
836
|
|
840
|
|
-
|
841
|
837
|
no_anticoagulant_shouji: '0',
|
842
|
838
|
no_anticoagulant_weichi: '0',
|
843
|
|
- no_anticoagulant_zongliang: '0',
|
844
|
|
-
|
845
|
|
-
|
|
839
|
+ no_anticoagulant_zongliang: '0'
|
846
|
840
|
|
847
|
841
|
},
|
848
|
842
|
|
|
@@ -867,46 +861,63 @@
|
867
|
861
|
}
|
868
|
862
|
},
|
869
|
863
|
methods: {
|
870
|
|
- getLastAfterWeight(record){
|
871
|
|
- if(record != null&& record.id > 0){
|
872
|
|
- if(record.weight_after > 0) {
|
|
864
|
+ getDryWeight() {
|
|
865
|
+ if (this.dry_weight != null && this.dry_weight.id > 0) {
|
|
866
|
+
|
|
867
|
+ return this.dry_weight.dry_weight
|
|
868
|
+
|
|
869
|
+ } else {
|
|
870
|
+
|
|
871
|
+ if (this.last_predialysis != null && this.last_predialysis.id > 0) {
|
|
872
|
+
|
|
873
|
+ return this.last_predialysis.dry_weight
|
|
874
|
+
|
|
875
|
+ } else {
|
|
876
|
+
|
|
877
|
+ return ''
|
|
878
|
+ }
|
|
879
|
+
|
|
880
|
+ }
|
|
881
|
+
|
|
882
|
+ },
|
|
883
|
+ getLastAfterWeight(record) {
|
|
884
|
+ if (record != null && record.id > 0) {
|
|
885
|
+ if (record.weight_after > 0) {
|
873
|
886
|
let additional_weight = 0
|
874
|
|
- if(this.predialysis.additional_weight != undefined){
|
|
887
|
+ if (this.predialysis.additional_weight != undefined) {
|
875
|
888
|
additional_weight = this.predialysis.additional_weight
|
876
|
889
|
}
|
877
|
|
- return parseFloat(record.weight_after - additional_weight).toFixed(1);
|
878
|
|
- }else{
|
|
890
|
+ return parseFloat(record.weight_after - additional_weight).toFixed(1)
|
|
891
|
+ } else {
|
879
|
892
|
return ''
|
880
|
893
|
}
|
881
|
894
|
}
|
882
|
895
|
},
|
883
|
|
- getBeforeWeight(predialysis){
|
884
|
|
- if(predialysis.id > 0){
|
885
|
|
- if(predialysis.weight_before > 0) {
|
|
896
|
+ getBeforeWeight(predialysis) {
|
|
897
|
+ if (predialysis.id > 0) {
|
|
898
|
+ if (predialysis.weight_before > 0) {
|
886
|
899
|
return predialysis.weight_before - predialysis.additional_weight
|
887
|
|
- }else{
|
|
900
|
+ } else {
|
888
|
901
|
return ''
|
889
|
902
|
}
|
890
|
903
|
}
|
891
|
|
- }, getAfterWeight(record){
|
892
|
|
- if(record.id > 0){
|
893
|
|
- if(record.weight_after > 0) {
|
|
904
|
+ }, getAfterWeight(record) {
|
|
905
|
+ if (record.id > 0) {
|
|
906
|
+ if (record.weight_after > 0) {
|
894
|
907
|
return record.weight_after - this.predialysis.additional_weight
|
895
|
|
- }else{
|
|
908
|
+ } else {
|
896
|
909
|
return ''
|
897
|
910
|
}
|
898
|
911
|
}
|
899
|
912
|
},
|
900
|
|
- isPermission () {
|
901
|
|
- 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)) {
|
|
913
|
+ isPermission() {
|
|
914
|
+ 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)) {
|
902
|
915
|
return false
|
903
|
916
|
} else {
|
904
|
917
|
return true
|
905
|
918
|
}
|
906
|
919
|
},
|
907
|
|
- setLastRecord:function(schedual,lastAssessmentAfterDislysis,lastPredialysisEvaluation,lastDialysisPrescribe,lastDryWeightDislysis){
|
908
|
|
-
|
909
|
|
-
|
|
920
|
+ setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis) {
|
910
|
921
|
|
911
|
922
|
this.treatment_mode = this.$store.getters.treatment_mode
|
912
|
923
|
this.perfusion_apparatus = getDataConfig('hemodialysis', 'perfusion_apparatus')
|
|
@@ -923,8 +934,6 @@
|
923
|
934
|
var date = this.$route.query && this.$route.query.date
|
924
|
935
|
this.record_date = uParseTime(date, '{y}-{m}-{d}')
|
925
|
936
|
|
926
|
|
-
|
927
|
|
-
|
928
|
937
|
if (this.prescription != null && typeof (this.prescription.id) != 'undefined' && this.prescription.id > 0) {
|
929
|
938
|
for (const key in this.prescription) {
|
930
|
939
|
this.dialysisPrescription[key] = this.prescription[key]
|
|
@@ -938,7 +947,7 @@
|
938
|
947
|
for (const key in lastDialysisPrescribe) {
|
939
|
948
|
this.dialysisPrescription[key] = lastDialysisPrescribe[key]
|
940
|
949
|
}
|
941
|
|
- } else{
|
|
950
|
+ } else {
|
942
|
951
|
|
943
|
952
|
this.dialysisPrescription.mode_id = schedual.mode_id
|
944
|
953
|
}
|
|
@@ -954,8 +963,6 @@
|
954
|
963
|
}
|
955
|
964
|
this.anticoagulant = this.anticoagulantsConfit[thismode]
|
956
|
965
|
|
957
|
|
-
|
958
|
|
-
|
959
|
966
|
},
|
960
|
967
|
menuMsgTip: function() {
|
961
|
968
|
this.msgtip_visibility = false
|
|
@@ -1177,23 +1184,22 @@
|
1177
|
1184
|
let last_weight_after = 0
|
1178
|
1185
|
let weight_before = 0
|
1179
|
1186
|
|
1180
|
|
- if(this.last_record == null){
|
|
1187
|
+ if (this.last_record == null) {
|
1181
|
1188
|
last_weight_after = 0
|
1182
|
|
- }else{
|
|
1189
|
+ } else {
|
1183
|
1190
|
last_weight_after = this.last_record.weight_after
|
1184
|
1191
|
}
|
1185
|
1192
|
|
1186
|
|
- if(this.predialysis == null || this.predialysis.id == 0 ){
|
|
1193
|
+ if (this.predialysis == null || this.predialysis.id == 0) {
|
1187
|
1194
|
weight_before = 0
|
1188
|
|
- }else{
|
|
1195
|
+ } else {
|
1189
|
1196
|
weight_before = this.predialysis.weight_before
|
1190
|
1197
|
}
|
1191
|
1198
|
|
1192
|
|
- if(weight_before > 0 && last_weight_after > 0){
|
|
1199
|
+ if (weight_before > 0 && last_weight_after > 0) {
|
1193
|
1200
|
this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(2)
|
1194
|
1201
|
}
|
1195
|
1202
|
|
1196
|
|
-
|
1197
|
1203
|
this.isVisibility = true
|
1198
|
1204
|
this.checkedCities = []
|
1199
|
1205
|
for (let i = 0; i < this.targetAdvices.length; i++) {
|
|
@@ -1215,7 +1221,7 @@
|
1215
|
1221
|
}
|
1216
|
1222
|
this.anticoagulant = this.anticoagulantsConfit[thismode]
|
1217
|
1223
|
}, handleCommit: function() {
|
1218
|
|
- if(this.dialysisPrescription.anticoagulant == 1){
|
|
1224
|
+ if (this.dialysisPrescription.anticoagulant == 1) {
|
1219
|
1225
|
this.dialysisPrescription.anticoagulant_weichi = '0'
|
1220
|
1226
|
this.dialysisPrescription.anticoagulant_shouji = '0'
|
1221
|
1227
|
this.dialysisPrescription.anticoagulant_zongliang = '0'
|
|
@@ -1229,7 +1235,6 @@
|
1229
|
1235
|
}
|
1230
|
1236
|
}
|
1231
|
1237
|
|
1232
|
|
-
|
1233
|
1238
|
this.is_pre = 1
|
1234
|
1239
|
if (this.prescription.id == 0) {
|
1235
|
1240
|
if (this.is_open == 0) {
|
|
@@ -1583,7 +1588,7 @@
|
1583
|
1588
|
}, handleCancle: function() {
|
1584
|
1589
|
this.hide()
|
1585
|
1590
|
}, handleSolution: function() {
|
1586
|
|
- if(this.dialysisPrescription.anticoagulant == 1){
|
|
1591
|
+ if (this.dialysisPrescription.anticoagulant == 1) {
|
1587
|
1592
|
this.dialysisPrescription.anticoagulant_weichi = '0'
|
1588
|
1593
|
this.dialysisPrescription.anticoagulant_shouji = '0'
|
1589
|
1594
|
this.dialysisPrescription.anticoagulant_zongliang = '0'
|
|
@@ -2097,7 +2102,7 @@
|
2097
|
2102
|
}, handlePatientInfo() {
|
2098
|
2103
|
this.isVisibility = false
|
2099
|
2104
|
this.msgtip_visibility = true
|
2100
|
|
- },cancleMsg(){
|
|
2105
|
+ }, cancleMsg() {
|
2101
|
2106
|
|
2102
|
2107
|
this.isVisibility = true
|
2103
|
2108
|
this.msgtip_visibility = false
|
|
@@ -2105,126 +2110,121 @@
|
2105
|
2110
|
},
|
2106
|
2111
|
|
2107
|
2112
|
watch: {
|
2108
|
|
- "dialysisPrescription.dialysis_duration_hour":function(){
|
2109
|
|
- let dialysis_duration_minute = 0
|
|
2113
|
+ 'dialysisPrescription.dialysis_duration_hour': function() {
|
|
2114
|
+ let dialysis_duration_minute = 0
|
2110
|
2115
|
let dialysis_duration_hour = 0
|
2111
|
2116
|
let duration = 0
|
2112
|
2117
|
|
2113
|
|
- if (this.dialysisPrescription.dialysis_duration_minute == ''){
|
|
2118
|
+ if (this.dialysisPrescription.dialysis_duration_minute == '') {
|
2114
|
2119
|
dialysis_duration_minute = 0
|
2115
|
|
- }else{
|
|
2120
|
+ } else {
|
2116
|
2121
|
dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
|
2117
|
2122
|
}
|
2118
|
2123
|
|
2119
|
|
- if (this.dialysisPrescription.dialysis_duration_hour == ''){
|
|
2124
|
+ if (this.dialysisPrescription.dialysis_duration_hour == '') {
|
2120
|
2125
|
dialysis_duration_hour = 0
|
2121
|
2126
|
|
2122
|
|
- }else{
|
|
2127
|
+ } else {
|
2123
|
2128
|
|
2124
|
2129
|
dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
|
2125
|
2130
|
|
2126
|
2131
|
}
|
2127
|
2132
|
duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
2128
|
2133
|
|
2129
|
|
-
|
2130
|
|
-
|
2131
|
|
-
|
2132
|
|
- this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
|
|
2134
|
+ this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,
|
2133
|
2135
|
this.dialysisPrescription.anticoagulant_shouji,
|
2134
|
2136
|
duration,
|
2135
|
2137
|
this.dialysisPrescription.anticoagulant_weichi
|
2136
|
|
- );
|
2137
|
|
- if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
|
|
2138
|
+ )
|
|
2139
|
+ if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
2138
|
2140
|
this.dialysisPrescription.anticoagulant_zongliang = ''
|
2139
|
2141
|
}
|
2140
|
2142
|
},
|
2141
|
|
- "dialysisPrescription.dialysis_duration_minute":function(){
|
2142
|
|
- let dialysis_duration_minute = 0
|
|
2143
|
+ 'dialysisPrescription.dialysis_duration_minute': function() {
|
|
2144
|
+ let dialysis_duration_minute = 0
|
2143
|
2145
|
let dialysis_duration_hour = 0
|
2144
|
2146
|
let duration = 0
|
2145
|
2147
|
|
2146
|
|
- if (this.dialysisPrescription.dialysis_duration_minute == ''){
|
|
2148
|
+ if (this.dialysisPrescription.dialysis_duration_minute == '') {
|
2147
|
2149
|
dialysis_duration_minute = 0
|
2148
|
|
- }else{
|
|
2150
|
+ } else {
|
2149
|
2151
|
dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
|
2150
|
2152
|
}
|
2151
|
2153
|
|
2152
|
|
- if (this.dialysisPrescription.dialysis_duration_hour == ''){
|
|
2154
|
+ if (this.dialysisPrescription.dialysis_duration_hour == '') {
|
2153
|
2155
|
dialysis_duration_hour = 0
|
2154
|
2156
|
|
2155
|
|
- }else{
|
|
2157
|
+ } else {
|
2156
|
2158
|
|
2157
|
2159
|
dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
|
2158
|
2160
|
|
2159
|
2161
|
}
|
2160
|
2162
|
duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
2161
|
2163
|
|
2162
|
|
-
|
2163
|
|
-
|
2164
|
|
- this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
|
|
2164
|
+ this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,
|
2165
|
2165
|
this.dialysisPrescription.anticoagulant_shouji,
|
2166
|
2166
|
duration,
|
2167
|
2167
|
this.dialysisPrescription.anticoagulant_weichi
|
2168
|
|
- );
|
2169
|
|
- if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
|
|
2168
|
+ )
|
|
2169
|
+ if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
2170
|
2170
|
this.dialysisPrescription.anticoagulant_zongliang = ''
|
2171
|
2171
|
}
|
2172
|
2172
|
},
|
2173
|
|
- "dialysisPrescription.anticoagulant_shouji":function(){
|
|
2173
|
+ 'dialysisPrescription.anticoagulant_shouji': function() {
|
2174
|
2174
|
|
2175
|
|
- let dialysis_duration_minute = 0
|
|
2175
|
+ let dialysis_duration_minute = 0
|
2176
|
2176
|
let dialysis_duration_hour = 0
|
2177
|
2177
|
let duration = 0
|
2178
|
|
- if (this.dialysisPrescription.dialysis_duration_minute == ''){
|
|
2178
|
+ if (this.dialysisPrescription.dialysis_duration_minute == '') {
|
2179
|
2179
|
dialysis_duration_minute = 0
|
2180
|
|
- }else{
|
|
2180
|
+ } else {
|
2181
|
2181
|
dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
|
2182
|
2182
|
}
|
2183
|
|
- if (this.dialysisPrescription.dialysis_duration_hour == ''){
|
|
2183
|
+ if (this.dialysisPrescription.dialysis_duration_hour == '') {
|
2184
|
2184
|
dialysis_duration_hour = 0
|
2185
|
2185
|
|
2186
|
|
- }else{
|
|
2186
|
+ } else {
|
2187
|
2187
|
|
2188
|
2188
|
dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
|
2189
|
2189
|
|
2190
|
2190
|
}
|
2191
|
|
- duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
2192
|
|
- this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
|
|
2191
|
+ duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
|
2192
|
+ this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,
|
2193
|
2193
|
this.dialysisPrescription.anticoagulant_shouji,
|
2194
|
2194
|
duration,
|
2195
|
2195
|
this.dialysisPrescription.anticoagulant_weichi
|
2196
|
|
- );
|
2197
|
|
- if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
|
|
2196
|
+ )
|
|
2197
|
+ if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
2198
|
2198
|
this.dialysisPrescription.anticoagulant_zongliang = ''
|
2199
|
2199
|
}
|
2200
|
2200
|
},
|
2201
|
|
- "dialysisPrescription.anticoagulant_weichi":function(){
|
2202
|
|
- let dialysis_duration_minute = 0
|
|
2201
|
+ 'dialysisPrescription.anticoagulant_weichi': function() {
|
|
2202
|
+ let dialysis_duration_minute = 0
|
2203
|
2203
|
let dialysis_duration_hour = 0
|
2204
|
2204
|
let duration = 0
|
2205
|
2205
|
|
2206
|
|
- if (this.dialysisPrescription.dialysis_duration_minute == ''){
|
|
2206
|
+ if (this.dialysisPrescription.dialysis_duration_minute == '') {
|
2207
|
2207
|
dialysis_duration_minute = 0
|
2208
|
|
- }else{
|
|
2208
|
+ } else {
|
2209
|
2209
|
dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
|
2210
|
2210
|
}
|
2211
|
2211
|
|
2212
|
|
- if (this.dialysisPrescription.dialysis_duration_hour == ''){
|
|
2212
|
+ if (this.dialysisPrescription.dialysis_duration_hour == '') {
|
2213
|
2213
|
dialysis_duration_hour = 0
|
2214
|
2214
|
|
2215
|
|
- }else{
|
|
2215
|
+ } else {
|
2216
|
2216
|
|
2217
|
2217
|
dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
|
2218
|
2218
|
|
2219
|
2219
|
}
|
2220
|
|
- duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
|
2220
|
+ duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
2221
|
2221
|
|
2222
|
|
- this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
|
|
2222
|
+ this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,
|
2223
|
2223
|
this.dialysisPrescription.anticoagulant_shouji,
|
2224
|
2224
|
duration,
|
2225
|
2225
|
this.dialysisPrescription.anticoagulant_weichi
|
2226
|
|
- );
|
2227
|
|
- if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
|
|
2226
|
+ )
|
|
2227
|
+ if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
2228
|
2228
|
this.dialysisPrescription.anticoagulant_zongliang = ''
|
2229
|
2229
|
}
|
2230
|
2230
|
}, 'prescription.id': function() {
|
|
@@ -2233,17 +2233,14 @@
|
2233
|
2233
|
this.dialysisPrescription[index] = this.prescription[index]
|
2234
|
2234
|
}
|
2235
|
2235
|
|
2236
|
|
-
|
2237
|
2236
|
if (this.prescription['dialysate_formulation'] == 0) {
|
2238
|
2237
|
this.dialysisPrescription['dialysate_formulation'] = ''
|
2239
|
2238
|
}
|
2240
|
2239
|
|
2241
|
|
-
|
2242
|
2240
|
if (this.prescription['anticoagulant'] == 0) {
|
2243
|
2241
|
this.dialysisPrescription['anticoagulant'] = ''
|
2244
|
2242
|
}
|
2245
|
2243
|
|
2246
|
|
-
|
2247
|
2244
|
if (this.prescription['dialysis_duration_hour'] == 0) {
|
2248
|
2245
|
this.dialysisPrescription['dialysis_duration_hour'] = ''
|
2249
|
2246
|
}
|
|
@@ -2376,7 +2373,6 @@
|
2376
|
2373
|
this.dialysisPrescription['dialysate_formulation'] = ''
|
2377
|
2374
|
}
|
2378
|
2375
|
|
2379
|
|
-
|
2380
|
2376
|
if (this.solution['anticoagulant'] == 0) {
|
2381
|
2377
|
this.dialysisPrescription['anticoagulant'] = ''
|
2382
|
2378
|
}
|