|
|
|
|
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)
|
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
|
}else{
|
403
|
}else{
|
404
|
console.log(12)
|
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
|
}else{
|
407
|
}else{
|
408
|
if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
|
408
|
if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
|
409
|
console.log(123)
|
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
|
}else{
|
411
|
}else{
|
412
|
console.log(1234)
|
412
|
console.log(1234)
|
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)
|
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
|
}
|
427
|
}
|
428
|
// scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
|
428
|
// scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
|
429
|
}
|
429
|
}
|
430
|
-
|
|
|
|
|
430
|
+
|
431
|
},
|
431
|
},
|
432
|
getPrescribingNumberUnit(scope){
|
432
|
getPrescribingNumberUnit(scope){
|
433
|
|
433
|
|
|
|
|
|
436
|
// if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
|
436
|
// if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
|
437
|
// scope.row.prescribing_number = scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day
|
437
|
// scope.row.prescribing_number = scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day
|
438
|
// }else{
|
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
|
// }else{
|
441
|
// }else{
|
442
|
// if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
|
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
|
// }else{
|
444
|
// }else{
|
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)
|
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
|
if(this.prescription.project[scope.$index].total == 0){
|
482
|
if(this.prescription.project[scope.$index].total == 0){
|
483
|
this.prescription.project[scope.$index].total = 1
|
483
|
this.prescription.project[scope.$index].total = 1
|
484
|
}
|
484
|
}
|
485
|
-
|
|
|
|
|
485
|
+
|
486
|
},
|
486
|
},
|
487
|
getNum(execution_frequency){
|
487
|
getNum(execution_frequency){
|
488
|
let arr = [
|
488
|
let arr = [
|
|
|
|
|
527
|
watch:{
|
527
|
watch:{
|
528
|
"prescription.advices":{
|
528
|
"prescription.advices":{
|
529
|
handler(newVal,oldVal){
|
529
|
handler(newVal,oldVal){
|
530
|
-
|
|
|
|
|
530
|
+
|
531
|
},
|
531
|
},
|
532
|
deep:true
|
532
|
deep:true
|
533
|
},
|
533
|
},
|