|
@@ -29,7 +29,7 @@
|
29
|
29
|
>
|
30
|
30
|
<el-row :gutter="24">
|
31
|
31
|
<el-col :span="8" v-if="isShows('透析模式')">
|
32
|
|
- <el-form-item label="透析模式" :prop="isName('透析模式')" :rules="isCheckmust('透析模式')">
|
|
32
|
+ <el-form-item label="透析模式" :prop="isName('透析模式')">
|
33
|
33
|
<el-select
|
34
|
34
|
filterable
|
35
|
35
|
v-model="dialysisPrescription.mode_id"
|
|
@@ -2066,7 +2066,7 @@ mu
|
2066
|
2066
|
}
|
2067
|
2067
|
}
|
2068
|
2068
|
} else {
|
2069
|
|
- if (schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
|
|
2069
|
+ if (schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12 || schedual.mode_id == 28) {
|
2070
|
2070
|
this.zhiShow = true
|
2071
|
2071
|
this.huShow = true
|
2072
|
2072
|
this.totalShow = true
|
|
@@ -2598,7 +2598,7 @@ mu
|
2598
|
2598
|
}
|
2599
|
2599
|
// console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
|
2600
|
2600
|
// console.log('this.schedual', schedual.mode_id)
|
2601
|
|
- if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
|
|
2601
|
+ if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12 || schedual.mode_id == 28) {
|
2602
|
2602
|
this.zhiShow = true
|
2603
|
2603
|
this.huShow = true
|
2604
|
2604
|
this.totalShow = true
|
|
@@ -2809,7 +2809,7 @@ mu
|
2809
|
2809
|
// }
|
2810
|
2810
|
|
2811
|
2811
|
// }
|
2812
|
|
- if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
|
|
2812
|
+ if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12 && this.dialysisPrescription.mode_id!=28){
|
2813
|
2813
|
this.dialysisPrescription.displace_liqui_part = 0
|
2814
|
2814
|
this.dialysisPrescription.displace_liqui_value = 0
|
2815
|
2815
|
this.dialysisPrescription.replacement_total = 0
|
|
@@ -3920,17 +3920,17 @@ mu
|
3920
|
3920
|
filedList[i].is_show == 1
|
3921
|
3921
|
) {
|
3922
|
3922
|
// console.log(filedList[i],'false')
|
3923
|
|
- if (name == "透析模式" || name == "透析时长") {
|
3924
|
|
- return [
|
3925
|
|
- { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
|
3926
|
|
- {
|
3927
|
|
- required: true,
|
3928
|
|
- pattern: /^[1-9]\d*$/,
|
3929
|
|
- message: `请输入${name}`,
|
3930
|
|
- trigger: ['blur','change']
|
3931
|
|
- },
|
3932
|
|
- ];
|
3933
|
|
- }
|
|
3923
|
+ // if (name == "透析时长") {
|
|
3924
|
+ // return [
|
|
3925
|
+ // { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
|
|
3926
|
+ // {
|
|
3927
|
+ // required: true,
|
|
3928
|
+ // pattern: /^[1-9]\d*$/,
|
|
3929
|
+ // message: `请输入${name}`,
|
|
3930
|
+ // trigger: ['blur','change']
|
|
3931
|
+ // },
|
|
3932
|
+ // ];
|
|
3933
|
+ // }
|
3934
|
3934
|
return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
|
3935
|
3935
|
|
3936
|
3936
|
}
|
|
@@ -3961,17 +3961,17 @@ mu
|
3961
|
3961
|
filedList[i].is_write == 1&&
|
3962
|
3962
|
filedList[i].is_show == 1
|
3963
|
3963
|
) {
|
3964
|
|
- if(name == '置换速度'){
|
3965
|
|
- return [
|
3966
|
|
- { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
|
3967
|
|
- {
|
3968
|
|
- required: true,
|
3969
|
|
- pattern: /^[1-9]\d*$/,
|
3970
|
|
- message: `请输入${name}`,
|
3971
|
|
- trigger: ['blur','change']
|
3972
|
|
- },
|
3973
|
|
- ];
|
3974
|
|
- }
|
|
3964
|
+ // if(name == '置换速度'){
|
|
3965
|
+ // return [
|
|
3966
|
+ // { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
|
|
3967
|
+ // {
|
|
3968
|
+ // required: true,
|
|
3969
|
+ // pattern: /^[1-9]\d*$/,
|
|
3970
|
+ // message: `请输入${name}`,
|
|
3971
|
+ // trigger: ['blur','change']
|
|
3972
|
+ // },
|
|
3973
|
+ // ];
|
|
3974
|
+ // }
|
3975
|
3975
|
return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
|
3976
|
3976
|
|
3977
|
3977
|
}
|
|
@@ -4073,7 +4073,8 @@ mu
|
4073
|
4073
|
},
|
4074
|
4074
|
changePrescription(id) {
|
4075
|
4075
|
console.log("id233223232323232323",id)
|
4076
|
|
- if(id != 2 && id!=5 && id!= 12){
|
|
4076
|
+ this.dialysisPrescription.mode_id = id
|
|
4077
|
+ if(id != 2 && id!=5 && id!= 12 && id!=28){
|
4077
|
4078
|
this.dialysisPrescription.displace_liqui_value = ""
|
4078
|
4079
|
this.dialysisPrescription.displace_liqui_part = ""
|
4079
|
4080
|
this.dialysisPrescription.replacement_total = ""
|
|
@@ -4089,17 +4090,18 @@ mu
|
4089
|
4090
|
return false
|
4090
|
4091
|
} else {
|
4091
|
4092
|
console.log('切换数据', response.data.data.solution)
|
|
4093
|
+
|
|
4094
|
+
|
4092
|
4095
|
this.$message.success('切换成功')
|
4093
|
4096
|
console.log("dialysisPrescription",response.data.data.dialysisPrescription)
|
4094
|
|
-
|
|
4097
|
+
|
4095
|
4098
|
if (response.data.data.solution != null) {
|
4096
|
4099
|
for (const key in response.data.data.solution) {
|
4097
|
4100
|
// 长期处方不为空
|
4098
|
4101
|
if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
|
4099
|
4102
|
&& key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
|
4100
|
4103
|
&& key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
|
4101
|
|
- this.dialysisPrescription[key] =
|
4102
|
|
- response.data.data.solution[key]
|
|
4104
|
+ this.dialysisPrescription[key] = response.data.data.solution[key]
|
4103
|
4105
|
}
|
4104
|
4106
|
}
|
4105
|
4107
|
if (this.$store.getters.xt_user.template_info.org_id== 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 || this.$store.getters.xt_user.template_info.org_id == 10340) {
|
|
@@ -4113,28 +4115,30 @@ mu
|
4113
|
4115
|
}
|
4114
|
4116
|
} else {
|
4115
|
4117
|
if (response.data.data.prescription != null) {
|
|
4118
|
+ console.log("wowowowwo")
|
4116
|
4119
|
// 临时处方不为空
|
4117
|
4120
|
for (const key in response.data.data.prescription) {
|
4118
|
4121
|
if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
|
4119
|
4122
|
&& key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
|
4120
|
4123
|
&& key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
|
4121
|
|
- this.dialysisPrescription[key] =
|
4122
|
|
- response.data.data.prescription[key]
|
|
4124
|
+ this.dialysisPrescription[key] = response.data.data.prescription[key]
|
4123
|
4125
|
}
|
4124
|
4126
|
}
|
4125
|
4127
|
} else if (response.data.data.system_prescription != null) {
|
|
4128
|
+ console.log("见啦地方232332")
|
4126
|
4129
|
// 系统处方不为空
|
4127
|
4130
|
for (const key in response.data.data.system_prescription) {
|
4128
|
4131
|
if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
|
4129
|
4132
|
&& key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
|
4130
|
4133
|
&& key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
|
4131
|
|
- this.dialysisPrescription[key] =
|
4132
|
|
- response.data.data.system_prescription[key]
|
|
4134
|
+ this.dialysisPrescription[key] = response.data.data.system_prescription[key]
|
|
4135
|
+
|
4133
|
4136
|
}
|
4134
|
4137
|
}
|
4135
|
4138
|
|
4136
|
4139
|
} else {
|
4137
|
4140
|
for (const key in this.dialysisPrescription) {
|
|
4141
|
+ console.log("wowowowo")
|
4138
|
4142
|
// 临时处方为空
|
4139
|
4143
|
if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
|
4140
|
4144
|
&& key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
|
|
@@ -4142,7 +4146,7 @@ mu
|
4142
|
4146
|
this.dialysisPrescription[key] = ''
|
4143
|
4147
|
}
|
4144
|
4148
|
}
|
4145
|
|
- this.dialysisPrescription.mode_id = id
|
|
4149
|
+ // this.dialysisPrescription.mode_id = id
|
4146
|
4150
|
}
|
4147
|
4151
|
if (this.$store.getters.xt_user.template_info.org_id == 9671 ||this.$store.getters.xt_user.template_info.org_id == 9675 ||this.$store.getters.xt_user.template_info.org_id== 10340) {
|
4148
|
4152
|
this.dialysisPrescription.sodium = 138
|
|
@@ -4157,8 +4161,8 @@ mu
|
4157
|
4161
|
if(response.data.data.dialysisPrescription!=null){
|
4158
|
4162
|
this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
|
4159
|
4163
|
}
|
4160
|
|
- }
|
4161
|
|
- if (response.data.data.solution == null) {
|
|
4164
|
+
|
|
4165
|
+ if (response.data.data.solution == null) {
|
4162
|
4166
|
if (this.$store.getters.xt_user.template_info.org_id== 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 ||this.$store.getters.xt_user.template_info.org_id== 10340) {
|
4163
|
4167
|
this.dialysisPrescription.sodium = 138
|
4164
|
4168
|
this.dialysisPrescription.bicarbonate = 31.1
|
|
@@ -4168,10 +4172,8 @@ mu
|
4168
|
4172
|
}
|
4169
|
4173
|
}
|
4170
|
4174
|
}
|
4171
|
|
- if (
|
4172
|
|
- this.dialysisPrescription.dialysis_duration_hour === '' ||
|
4173
|
|
- this.dialysisPrescription.dialysis_duration_minute === ''
|
4174
|
|
- ) {
|
|
4175
|
+
|
|
4176
|
+ if ( this.dialysisPrescription.dialysis_duration_hour === '' || this.dialysisPrescription.dialysis_duration_minute === '') {
|
4175
|
4177
|
this.timeValue = ''
|
4176
|
4178
|
this.time = '03:00'
|
4177
|
4179
|
} else {
|
|
@@ -4188,40 +4190,43 @@ mu
|
4188
|
4190
|
(this.dialysisPrescription.dialysis_duration_minute > 10
|
4189
|
4191
|
? this.dialysisPrescription.dialysis_duration_minute
|
4190
|
4192
|
: '0' + this.dialysisPrescription.dialysis_duration_minute)
|
4191
|
|
- }
|
4192
|
|
- })
|
|
4193
|
+ }
|
4193
|
4194
|
|
4194
|
|
- if (
|
4195
|
|
- id === 1 ||
|
4196
|
|
- id === 3 ||
|
4197
|
|
- id === 4 ||
|
4198
|
|
- id === 6 ||
|
4199
|
|
- id === 7 ||
|
4200
|
|
- id === 8 ||
|
4201
|
|
- id === 9 ||
|
4202
|
|
- id === 10 ||
|
4203
|
|
- id === 11 ||
|
4204
|
|
- id === 13 ||
|
4205
|
|
- id === 14 ||
|
4206
|
|
- id === 15 ||
|
4207
|
|
- id === 16 ||
|
4208
|
|
- id === 19
|
4209
|
|
- ) {
|
4210
|
|
- this.zhiShow = false
|
4211
|
|
- this.huShow = false
|
4212
|
|
- this.totalShow = false
|
4213
|
|
- } else {
|
4214
|
|
- this.zhiShow = true
|
4215
|
|
- this.huShow = true
|
4216
|
|
- this.totalShow = true
|
4217
|
|
-
|
4218
|
|
- //针对新化博翔
|
4219
|
|
- if(this.$store.getters.xt_user.template_info.org_id ==10447){
|
4220
|
|
- this.dialysisPrescription.displace_liqui_part = 1
|
4221
|
|
- this.dialysisPrescription.displace_liqui_value = 35
|
4222
|
|
- }
|
4223
|
|
- }
|
|
4195
|
+ if (
|
|
4196
|
+ id === 1 ||
|
|
4197
|
+ id === 3 ||
|
|
4198
|
+ id === 4 ||
|
|
4199
|
+ id === 6 ||
|
|
4200
|
+ id === 7 ||
|
|
4201
|
+ id === 8 ||
|
|
4202
|
+ id === 9 ||
|
|
4203
|
+ id === 10 ||
|
|
4204
|
+ id === 11 ||
|
|
4205
|
+ id === 13 ||
|
|
4206
|
+ id === 14 ||
|
|
4207
|
+ id === 15 ||
|
|
4208
|
+ id === 16 ||
|
|
4209
|
+ id === 19
|
|
4210
|
+ ) {
|
|
4211
|
+ this.zhiShow = false
|
|
4212
|
+ this.huShow = false
|
|
4213
|
+ this.totalShow = false
|
|
4214
|
+ } else {
|
|
4215
|
+ this.zhiShow = true
|
|
4216
|
+ this.huShow = true
|
|
4217
|
+ this.totalShow = true
|
4224
|
4218
|
|
|
4219
|
+ //针对新化博翔
|
|
4220
|
+ if(this.$store.getters.xt_user.template_info.org_id ==10447){
|
|
4221
|
+ this.dialysisPrescription.displace_liqui_part = 1
|
|
4222
|
+ this.dialysisPrescription.displace_liqui_value = 35
|
|
4223
|
+ }
|
|
4224
|
+ }
|
|
4225
|
+
|
|
4226
|
+ this.dialysisPrescription.mode_id = id
|
|
4227
|
+ console.log("成功2332Owo",this.dialysisPrescription.mode_id)
|
|
4228
|
+ }
|
|
4229
|
+ })
|
4225
|
4230
|
},
|
4226
|
4231
|
handlePatientInfo() {
|
4227
|
4232
|
this.isVisibility = false
|