|
@@ -154,6 +154,7 @@
|
154
|
154
|
|
155
|
155
|
<el-row :gutter="20">
|
156
|
156
|
<el-col :span="6" v-if="isShows('首剂')"><div class="grid-content bg-purple">首剂
|
|
157
|
+ <span v-if="current_solution.anticoagulant == 17">(mg):</span>
|
157
|
158
|
<span v-if="current_solution.anticoagulant == 6">(iu):</span>
|
158
|
159
|
<span v-if="current_solution.anticoagulant == 7">(iu):</span>
|
159
|
160
|
<span v-if="current_solution.anticoagulant == 5">(mg):</span>
|
|
@@ -163,6 +164,7 @@
|
163
|
164
|
<span v-if="current_solution.anticoagulant == 1">(mg):</span>
|
164
|
165
|
{{current_solution.anticoagulant_shouji}}</div></el-col>
|
165
|
166
|
<el-col :span="6" v-if="isShows('维持')"><div class="grid-content bg-purple">维持
|
|
167
|
+ <span v-if="current_solution.anticoagulant == 17">(mg/h):</span>
|
166
|
168
|
<span v-if="current_solution.anticoagulant == 7">(iu/h):</span>
|
167
|
169
|
<span v-if="current_solution.anticoagulant == 6">(iu/h):</span>
|
168
|
170
|
<span v-if="current_solution.anticoagulant == 5">(ml/h):</span>
|
|
@@ -172,6 +174,7 @@
|
172
|
174
|
<span v-if="current_solution.anticoagulant == 1">(mg/h):</span>
|
173
|
175
|
{{current_solution.anticoagulant_weichi}}</div></el-col>
|
174
|
176
|
<el-col :span="6" v-if="isShows('总量')"><div class="grid-content bg-purple">总量
|
|
177
|
+ <span v-if="current_solution.anticoagulant == 17">(mg):</span>
|
175
|
178
|
<span v-if="current_solution.anticoagulant == 5">(mg):</span>
|
176
|
179
|
<span v-if="current_solution.anticoagulant == 6">(iu):</span>
|
177
|
180
|
<span v-if="current_solution.anticoagulant == 7">(iu):</span>
|
|
@@ -1275,46 +1278,114 @@
|
1275
|
1278
|
}
|
1276
|
1279
|
|
1277
|
1280
|
},
|
1278
|
|
- 'addPlan.anticoagulant_shouji': function() {
|
|
1281
|
+ // 'addPlan.anticoagulant_shouji': function() {
|
1279
|
1282
|
|
1280
|
|
- if(this.addPlan.id == 0){
|
1281
|
|
- this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
|
1282
|
|
- this.addPlan.anticoagulant_shouji,
|
1283
|
|
- this.addPlan.dialysis_duration,
|
1284
|
|
- this.addPlan.anticoagulant_weichi
|
1285
|
|
- )
|
1286
|
|
- }
|
|
1283
|
+ // if(this.addPlan.id == 0){
|
|
1284
|
+ // this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
|
|
1285
|
+ // this.addPlan.anticoagulant_shouji,
|
|
1286
|
+ // this.addPlan.dialysis_duration,
|
|
1287
|
+ // this.addPlan.anticoagulant_weichi
|
|
1288
|
+ // )
|
|
1289
|
+ // }
|
1287
|
1290
|
|
1288
|
1291
|
|
1289
|
|
- if(this.addPlan.id == 0){
|
1290
|
|
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
|
1291
|
|
- this.addPlan.anticoagulant_zongliang = ""
|
1292
|
|
- this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
|
1293
|
|
- }
|
1294
|
|
- }
|
|
1292
|
+ // if(this.addPlan.id == 0){
|
|
1293
|
+ // if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
|
|
1294
|
+ // this.addPlan.anticoagulant_zongliang = ""
|
|
1295
|
+ // this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
|
|
1296
|
+ // }
|
|
1297
|
+ // }
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+ // },
|
|
1301
|
+ // 'addPlan.anticoagulant_weichi': function() {
|
|
1302
|
+
|
|
1303
|
+ // if(this.addPlan.id == 0){
|
|
1304
|
+ // this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
|
|
1305
|
+ // 1,
|
|
1306
|
+ // this.addPlan.anticoagulant_shouji,
|
|
1307
|
+ // this.addPlan.dialysis_duration,
|
|
1308
|
+ // this.addPlan.anticoagulant_weichi
|
|
1309
|
+ // )
|
|
1310
|
+ // }
|
1295
|
1311
|
|
|
1312
|
+
|
|
1313
|
+ // if(this.addPlan.id == 0){
|
|
1314
|
+ // if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
|
|
1315
|
+ // this.addPlan.anticoagulant_zongliang = ""
|
|
1316
|
+ // this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
|
|
1317
|
+ // }
|
|
1318
|
+ // }
|
|
1319
|
+
|
|
1320
|
+ // },
|
|
1321
|
+
|
|
1322
|
+ 'addPlan.anticoagulant_shouji': function() {
|
|
1323
|
+ let dialysis_duration_minute = 0
|
|
1324
|
+ let dialysis_duration_hour = 0
|
|
1325
|
+ let duration = 0
|
|
1326
|
+ if (this.addPlan.dialysis_duration_minute == '') {
|
|
1327
|
+ dialysis_duration_minute = 0
|
|
1328
|
+ } else {
|
|
1329
|
+ dialysis_duration_minute = this.addPlan.dialysis_duration_minute
|
|
1330
|
+ }
|
|
1331
|
+ if (this.addPlan.dialysis_duration_hour == '') {
|
|
1332
|
+ dialysis_duration_hour = 0
|
|
1333
|
+ } else {
|
|
1334
|
+ dialysis_duration_hour = this.addPlan.dialysis_duration_hour
|
|
1335
|
+ }
|
|
1336
|
+ duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
|
1337
|
+
|
|
1338
|
+ this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
|
|
1339
|
+ 1,
|
|
1340
|
+ this.addPlan.anticoagulant_shouji,
|
|
1341
|
+ duration,
|
|
1342
|
+ this.addPlan.anticoagulant_weichi,
|
|
1343
|
+ this.addPlan.add_amount,
|
|
1344
|
+ this.addPlan.reduce_amount
|
|
1345
|
+ )
|
|
1346
|
+ this.zongliang = this.addPlan.anticoagulant_zongliang
|
|
1347
|
+ if (isNaN(this.addPlan.anticoagulant_zongliang)) {
|
|
1348
|
+ this.addPlan.anticoagulant_zongliang = ''
|
|
1349
|
+ }
|
|
1350
|
+
|
|
1351
|
+ if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2){
|
|
1352
|
+ this.addPlan.anticoagulant_zongliang = ""
|
|
1353
|
+ this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
|
|
1354
|
+ }
|
1296
|
1355
|
|
1297
|
1356
|
},
|
1298
|
1357
|
'addPlan.anticoagulant_weichi': function() {
|
|
1358
|
+ let dialysis_duration_minute = 0
|
|
1359
|
+ let dialysis_duration_hour = 0
|
|
1360
|
+ let duration = 0
|
1299
|
1361
|
|
1300
|
|
- if(this.addPlan.id == 0){
|
1301
|
|
- this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
|
1302
|
|
- 1,
|
1303
|
|
- this.addPlan.anticoagulant_shouji,
|
1304
|
|
- this.addPlan.dialysis_duration,
|
1305
|
|
- this.addPlan.anticoagulant_weichi
|
1306
|
|
- )
|
|
1362
|
+ if (this.addPlan.dialysis_duration_minute == '') {
|
|
1363
|
+ dialysis_duration_minute = 0
|
|
1364
|
+ } else {
|
|
1365
|
+ dialysis_duration_minute = this.addPlan.dialysis_duration_minute
|
1307
|
1366
|
}
|
1308
|
|
-
|
1309
|
|
-
|
1310
|
|
- if(this.addPlan.id == 0){
|
1311
|
|
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
|
1312
|
|
- this.addPlan.anticoagulant_zongliang = ""
|
1313
|
|
- this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
|
1314
|
|
- }
|
|
1367
|
+
|
|
1368
|
+ if (this.addPlan.dialysis_duration_hour == '') {
|
|
1369
|
+ dialysis_duration_hour = 0
|
|
1370
|
+ } else {
|
|
1371
|
+ dialysis_duration_hour = this.addPlan
|
|
1372
|
+ .dialysis_duration_hour
|
1315
|
1373
|
}
|
1316
|
|
-
|
1317
|
|
- }
|
|
1374
|
+ duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
|
|
1375
|
+
|
|
1376
|
+ this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.addPlan.anticoagulant_shouji, duration, this.addPlan.anticoagulant_weichi,this.addPlan.add_amount,this.addPlan.reduce_amount)
|
|
1377
|
+ if (isNaN(this.addPlan.anticoagulant_zongliang)) {
|
|
1378
|
+ this.addPlan.anticoagulant_zongliang = ''
|
|
1379
|
+ }
|
|
1380
|
+ this.zongliang = this.addPlan.anticoagulant_zongliang
|
|
1381
|
+ if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2){
|
|
1382
|
+ this.addPlan.anticoagulant_zongliang = ""
|
|
1383
|
+ this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
|
|
1384
|
+ }
|
|
1385
|
+ this.zongliang = this.addPlan.anticoagulant_zongliang
|
|
1386
|
+
|
|
1387
|
+ },
|
|
1388
|
+
|
1318
|
1389
|
},
|
1319
|
1390
|
|
1320
|
1391
|
|