|
@@ -211,9 +211,9 @@
|
211
|
211
|
|
212
|
212
|
<el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
|
213
|
213
|
<el-form-item label="鱼精蛋白(mg/h):">
|
214
|
|
- <el-input
|
|
214
|
+ <el-input肝素
|
215
|
215
|
v-model="dialysisPrescription.nucleoprotamine"
|
216
|
|
- ></el-input>
|
|
216
|
+ ></el-input肝素>
|
217
|
217
|
</el-form-item>
|
218
|
218
|
</el-col>
|
219
|
219
|
|
|
@@ -225,12 +225,37 @@
|
225
|
225
|
</el-form-item>
|
226
|
226
|
</el-col>
|
227
|
227
|
|
228
|
|
- <el-col :span="8" v-if="isShows('无肝素备注') && dialysisPrescription.anticoagulant ==1">
|
229
|
|
- <el-form-item label="无肝素备注:">
|
230
|
|
- <el-input
|
231
|
|
- v-model="dialysisPrescription.no_heparin_remarks"
|
232
|
|
- ></el-input>
|
233
|
|
- </el-form-item>
|
|
228
|
+ <el-col :span="8" v-if="isShows('追加肝素量')">
|
|
229
|
+ <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'追加肝素量(mg) : '">
|
|
230
|
+ <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
|
|
231
|
+ v-model="dialysisPrescription.add_amount"></el-input>
|
|
232
|
+ <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
|
|
233
|
+ v-model="dialysisPrescription.add_amount"></el-input>
|
|
234
|
+ </el-form-item>
|
|
235
|
+
|
|
236
|
+ <el-form-item v-else :label="'追加肝素量(' + anticoagulant.shouji_unit + ') : '">
|
|
237
|
+ <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
|
|
238
|
+ v-model="dialysisPrescription.add_amount"></el-input>
|
|
239
|
+ <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
|
|
240
|
+ v-model="dialysisPrescription.add_amount"></el-input>
|
|
241
|
+ </el-form-item>
|
|
242
|
+ </el-col>
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+ <el-col :span="8" v-if="isShows('减肝素量')">
|
|
246
|
+ <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'减肝素量(mg) : '">
|
|
247
|
+ <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
|
|
248
|
+ v-model="dialysisPrescription.reduce_amount" v-on:input="searchReduceAmount"></el-input>
|
|
249
|
+ <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
|
|
250
|
+ v-model="dialysisPrescription.reduce_amount" v-on:input="searchReduceAmount"></el-input>
|
|
251
|
+ </el-form-item>
|
|
252
|
+
|
|
253
|
+ <el-form-item v-else :label="'减肝素量(' + anticoagulant.shouji_unit + ') : '">
|
|
254
|
+ <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
|
|
255
|
+ v-model="dialysisPrescription.reduce_amount" v-on:input="searchReduceAmount"></el-input>
|
|
256
|
+ <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
|
|
257
|
+ v-model="dialysisPrescription.reduce_amount" v-on:input="searchReduceAmount"></el-input>
|
|
258
|
+ </el-form-item>
|
234
|
259
|
</el-col>
|
235
|
260
|
|
236
|
261
|
<el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
|
|
@@ -272,7 +297,7 @@
|
272
|
297
|
v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
|
273
|
298
|
</el-form-item>
|
274
|
299
|
|
275
|
|
-
|
|
300
|
+
|
276
|
301
|
|
277
|
302
|
</div>
|
278
|
303
|
|
|
@@ -374,6 +399,8 @@
|
374
|
399
|
|
375
|
400
|
</el-col>
|
376
|
401
|
|
|
402
|
+
|
|
403
|
+
|
377
|
404
|
<el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
|
378
|
405
|
<div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && 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 && this.$store.getters.xt_user.template_info.org_id != 10432">
|
379
|
406
|
<div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
|
|
@@ -1438,6 +1465,9 @@
|
1438
|
1465
|
is_water:0,
|
1439
|
1466
|
dry_water_hour:"",
|
1440
|
1467
|
water_machine:"否",
|
|
1468
|
+ add_amount:"",
|
|
1469
|
+ reduce_amount:"",
|
|
1470
|
+
|
1441
|
1471
|
},
|
1442
|
1472
|
|
1443
|
1473
|
anticoagulant: {
|
|
@@ -1481,7 +1511,8 @@
|
1481
|
1511
|
machineList:[
|
1482
|
1512
|
{id:1,name:"是"},
|
1483
|
1513
|
{id:2,name:"否"}
|
1484
|
|
- ]
|
|
1514
|
+ ],
|
|
1515
|
+ zongliang:""
|
1485
|
1516
|
}
|
1486
|
1517
|
},
|
1487
|
1518
|
methods: {
|
|
@@ -2206,6 +2237,7 @@
|
2206
|
2237
|
if (pre.id > 0) {
|
2207
|
2238
|
this.dialysisPrescription.mode_id = pre.mode_id
|
2208
|
2239
|
this.dialysisPrescription.water_machine = pre.water_machine
|
|
2240
|
+ this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
|
2209
|
2241
|
}
|
2210
|
2242
|
// console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
|
2211
|
2243
|
// console.log('this.schedual', schedual.mode_id)
|
|
@@ -2267,7 +2299,8 @@
|
2267
|
2299
|
this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
|
2268
|
2300
|
this.dialysisPrescription.package = last.package
|
2269
|
2301
|
this.dialysisPrescription.a_liquid = last.a_liquid
|
2270
|
|
-
|
|
2302
|
+ this.zongliang = last.anticoagulant_zongliang
|
|
2303
|
+ this.remark = last.remark
|
2271
|
2304
|
weight_before = 0
|
2272
|
2305
|
|
2273
|
2306
|
}
|
|
@@ -3468,6 +3501,8 @@
|
3468
|
3501
|
} else {
|
3469
|
3502
|
console.log('切换数据', response.data.data.solution)
|
3470
|
3503
|
this.$message.success('切换成功')
|
|
3504
|
+ console.log("dialysisPrescription",response.data.data.dialysisPrescription)
|
|
3505
|
+
|
3471
|
3506
|
if (response.data.data.solution != null) {
|
3472
|
3507
|
for (const key in response.data.data.solution) {
|
3473
|
3508
|
// 长期处方不为空
|
|
@@ -3512,6 +3547,10 @@
|
3512
|
3547
|
this.dialysisPrescription.mode_id = id
|
3513
|
3548
|
}
|
3514
|
3549
|
}
|
|
3550
|
+
|
|
3551
|
+ if(response.data.data.dialysisPrescription!=null){
|
|
3552
|
+ this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
|
|
3553
|
+ }
|
3515
|
3554
|
}
|
3516
|
3555
|
|
3517
|
3556
|
if (
|
|
@@ -3624,7 +3663,6 @@
|
3624
|
3663
|
const res = new Map()
|
3625
|
3664
|
return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
|
3626
|
3665
|
},
|
3627
|
|
-
|
3628
|
3666
|
|
3629
|
3667
|
},
|
3630
|
3668
|
|
|
@@ -3649,10 +3687,11 @@
|
3649
|
3687
|
}
|
3650
|
3688
|
duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
3651
|
3689
|
|
3652
|
|
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
|
|
3690
|
+ this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
|
3653
|
3691
|
if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
3654
|
3692
|
this.dialysisPrescription.anticoagulant_zongliang = ''
|
3655
|
3693
|
}
|
|
3694
|
+ this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
|
3656
|
3695
|
},
|
3657
|
3696
|
'dialysisPrescription.dialysis_duration_minute': function() {
|
3658
|
3697
|
let dialysis_duration_minute = 0
|
|
@@ -3676,7 +3715,7 @@
|
3676
|
3715
|
parseFloat(dialysis_duration_minute) / 60
|
3677
|
3716
|
|
3678
|
3717
|
this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration,
|
3679
|
|
- this.dialysisPrescription.anticoagulant_weichi
|
|
3718
|
+ this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount
|
3680
|
3719
|
)
|
3681
|
3720
|
if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
3682
|
3721
|
this.dialysisPrescription.anticoagulant_zongliang = ''
|
|
@@ -3707,17 +3746,20 @@
|
3707
|
3746
|
1,
|
3708
|
3747
|
this.dialysisPrescription.anticoagulant_shouji,
|
3709
|
3748
|
duration,
|
3710
|
|
- this.dialysisPrescription.anticoagulant_weichi
|
|
3749
|
+ this.dialysisPrescription.anticoagulant_weichi,
|
|
3750
|
+ this.dialysisPrescription.add_amount,
|
|
3751
|
+ this.dialysisPrescription.reduce_amount
|
3711
|
3752
|
)
|
|
3753
|
+ this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
|
3712
|
3754
|
if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
3713
|
3755
|
this.dialysisPrescription.anticoagulant_zongliang = ''
|
3714
|
3756
|
}
|
3715
|
|
-
|
|
3757
|
+
|
3716
|
3758
|
if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
|
3717
|
3759
|
this.dialysisPrescription.anticoagulant_zongliang = ""
|
3718
|
3760
|
this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
|
3719
|
3761
|
}
|
3720
|
|
-
|
|
3762
|
+
|
3721
|
3763
|
},
|
3722
|
3764
|
'dialysisPrescription.anticoagulant_weichi': function() {
|
3723
|
3765
|
let dialysis_duration_minute = 0
|
|
@@ -3739,16 +3781,20 @@
|
3739
|
3781
|
}
|
3740
|
3782
|
duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
3741
|
3783
|
|
3742
|
|
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
|
|
3784
|
+ this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
|
3743
|
3785
|
if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
3744
|
3786
|
this.dialysisPrescription.anticoagulant_zongliang = ''
|
3745
|
3787
|
}
|
3746
|
|
-
|
|
3788
|
+ this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
|
3747
|
3789
|
if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
|
3748
|
3790
|
this.dialysisPrescription.anticoagulant_zongliang = ""
|
3749
|
3791
|
this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
|
3750
|
3792
|
}
|
|
3793
|
+ this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
|
|
3794
|
+
|
3751
|
3795
|
},
|
|
3796
|
+
|
|
3797
|
+
|
3752
|
3798
|
'prescription.id': {
|
3753
|
3799
|
immediate: true,
|
3754
|
3800
|
deep: true,
|
|
@@ -4104,6 +4150,84 @@
|
4104
|
4150
|
}
|
4105
|
4151
|
}
|
4106
|
4152
|
},
|
|
4153
|
+ 'dialysisPrescription.add_amount': function() {
|
|
4154
|
+ let dialysis_duration_minute = 0
|
|
4155
|
+ let dialysis_duration_hour = 0
|
|
4156
|
+ let duration = 0
|
|
4157
|
+ if (this.dialysisPrescription.dialysis_duration_minute == '') {
|
|
4158
|
+ dialysis_duration_minute = 0
|
|
4159
|
+ } else {
|
|
4160
|
+ dialysis_duration_minute = this.dialysisPrescription
|
|
4161
|
+ .dialysis_duration_minute
|
|
4162
|
+ }
|
|
4163
|
+ if (this.dialysisPrescription.dialysis_duration_hour == '') {
|
|
4164
|
+ dialysis_duration_hour = 0
|
|
4165
|
+ } else {
|
|
4166
|
+ dialysis_duration_hour = this.dialysisPrescription
|
|
4167
|
+ .dialysis_duration_hour
|
|
4168
|
+ }
|
|
4169
|
+ duration =
|
|
4170
|
+ parseFloat(dialysis_duration_hour) +
|
|
4171
|
+ parseFloat(dialysis_duration_minute) / 60
|
|
4172
|
+
|
|
4173
|
+ this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
|
|
4174
|
+ 1,
|
|
4175
|
+ this.dialysisPrescription.anticoagulant_shouji,
|
|
4176
|
+ duration,
|
|
4177
|
+ this.dialysisPrescription.anticoagulant_weichi,
|
|
4178
|
+ this.dialysisPrescription.add_amount,
|
|
4179
|
+ this.dialysisPrescription.reduce_amount
|
|
4180
|
+ )
|
|
4181
|
+ this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
|
|
4182
|
+ if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
|
4183
|
+ this.dialysisPrescription.anticoagulant_zongliang = ''
|
|
4184
|
+ }
|
|
4185
|
+
|
|
4186
|
+ if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
|
|
4187
|
+ this.dialysisPrescription.anticoagulant_zongliang = ""
|
|
4188
|
+ this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
|
|
4189
|
+ }
|
|
4190
|
+
|
|
4191
|
+ },
|
|
4192
|
+ 'dialysisPrescription.reduce_amount': function() {
|
|
4193
|
+ let dialysis_duration_minute = 0
|
|
4194
|
+ let dialysis_duration_hour = 0
|
|
4195
|
+ let duration = 0
|
|
4196
|
+ if (this.dialysisPrescription.dialysis_duration_minute == '') {
|
|
4197
|
+ dialysis_duration_minute = 0
|
|
4198
|
+ } else {
|
|
4199
|
+ dialysis_duration_minute = this.dialysisPrescription
|
|
4200
|
+ .dialysis_duration_minute
|
|
4201
|
+ }
|
|
4202
|
+ if (this.dialysisPrescription.dialysis_duration_hour == '') {
|
|
4203
|
+ dialysis_duration_hour = 0
|
|
4204
|
+ } else {
|
|
4205
|
+ dialysis_duration_hour = this.dialysisPrescription
|
|
4206
|
+ .dialysis_duration_hour
|
|
4207
|
+ }
|
|
4208
|
+ duration =
|
|
4209
|
+ parseFloat(dialysis_duration_hour) +
|
|
4210
|
+ parseFloat(dialysis_duration_minute) / 60
|
|
4211
|
+
|
|
4212
|
+ this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
|
|
4213
|
+ 1,
|
|
4214
|
+ this.dialysisPrescription.anticoagulant_shouji,
|
|
4215
|
+ duration,
|
|
4216
|
+ this.dialysisPrescription.anticoagulant_weichi,
|
|
4217
|
+ this.dialysisPrescription.add_amount,
|
|
4218
|
+ this.dialysisPrescription.reduce_amount
|
|
4219
|
+ )
|
|
4220
|
+ this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
|
|
4221
|
+ if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
|
4222
|
+ this.dialysisPrescription.anticoagulant_zongliang = ''
|
|
4223
|
+ }
|
|
4224
|
+
|
|
4225
|
+ if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
|
|
4226
|
+ this.dialysisPrescription.anticoagulant_zongliang = ""
|
|
4227
|
+ this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
|
|
4228
|
+ }
|
|
4229
|
+
|
|
4230
|
+ },
|
4107
|
4231
|
stockType: function() {
|
4108
|
4232
|
console.log('stockType', this.stockType)
|
4109
|
4233
|
var arr = []
|