|
@@ -402,12 +402,12 @@
|
402
|
402
|
scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
|
403
|
403
|
}else{
|
404
|
404
|
console.log(12)
|
405
|
|
- scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
|
|
405
|
+ scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
|
406
|
406
|
}
|
407
|
407
|
}else{
|
408
|
408
|
if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
|
409
|
409
|
console.log(123)
|
410
|
|
- scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
|
|
410
|
+ scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
|
411
|
411
|
}else{
|
412
|
412
|
console.log(1234)
|
413
|
413
|
scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
|
|
@@ -427,7 +427,7 @@
|
427
|
427
|
}
|
428
|
428
|
// scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
|
429
|
429
|
}
|
430
|
|
-
|
|
430
|
+
|
431
|
431
|
},
|
432
|
432
|
getPrescribingNumberUnit(scope){
|
433
|
433
|
|
|
@@ -436,11 +436,11 @@
|
436
|
436
|
// if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
|
437
|
437
|
// scope.row.prescribing_number = scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day
|
438
|
438
|
// }else{
|
439
|
|
- // scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency)) * scope.row.day / scope.row.drug.min_number)
|
|
439
|
+ // scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency)) * scope.row.day / scope.row.drug.min_number)
|
440
|
440
|
// }
|
441
|
441
|
// }else{
|
442
|
442
|
// if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
|
443
|
|
- // scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose)
|
|
443
|
+ // scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose)
|
444
|
444
|
// }else{
|
445
|
445
|
// scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose / scope.row.drug.min_number)
|
446
|
446
|
// }
|
|
@@ -482,7 +482,7 @@
|
482
|
482
|
if(this.prescription.project[scope.$index].total == 0){
|
483
|
483
|
this.prescription.project[scope.$index].total = 1
|
484
|
484
|
}
|
485
|
|
-
|
|
485
|
+
|
486
|
486
|
},
|
487
|
487
|
getNum(execution_frequency){
|
488
|
488
|
let arr = [
|
|
@@ -527,7 +527,7 @@
|
527
|
527
|
watch:{
|
528
|
528
|
"prescription.advices":{
|
529
|
529
|
handler(newVal,oldVal){
|
530
|
|
-
|
|
530
|
+
|
531
|
531
|
},
|
532
|
532
|
deep:true
|
533
|
533
|
},
|