|
|
|
|
543
|
// 单次用量single_dose,用量单位single_dose_unit,用法delivery_way,频率execution_frequency 总量prescribing_number,规格drug.dose
|
543
|
// 单次用量single_dose,用量单位single_dose_unit,用法delivery_way,频率execution_frequency 总量prescribing_number,规格drug.dose
|
544
|
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)) / parseInt(this.getdrugdose(scope.row.drug.dose)) ) // / scope.row.drug.dose
|
544
|
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)) / parseInt(this.getdrugdose(scope.row.drug.dose)) ) // / scope.row.drug.dose
|
545
|
} else {
|
545
|
} else {
|
546
|
- console.log(1234)
|
|
|
547
|
- 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)) / parseInt(this.getdrugdose(scope.row.drug.dose)) / scope.row.drug.min_number)//
|
|
|
|
|
546
|
+ console.log(1234,scope.row.drug.dose)
|
|
|
547
|
+ 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)//
|
548
|
}
|
548
|
}
|
549
|
}
|
549
|
}
|
550
|
if (scope.row.prescribing_number == 0) {
|
550
|
if (scope.row.prescribing_number == 0) {
|
|
|
|
|
772
|
},
|
772
|
},
|
773
|
getdrugdose(val){
|
773
|
getdrugdose(val){
|
774
|
if(val !=''){
|
774
|
if(val !=''){
|
775
|
- const arr = val.split(':')[1]
|
|
|
776
|
- console.log('yyyytrrrreee',arr);
|
|
|
777
|
- return arr
|
|
|
|
|
775
|
+ if(val.indexOf(':') !=-1){
|
|
|
776
|
+ const arr = val.split(':')[1]
|
|
|
777
|
+ console.log('yyyytrrrreee',arr);
|
|
|
778
|
+ return arr
|
|
|
779
|
+ }else{
|
|
|
780
|
+ return val
|
|
|
781
|
+ }
|
|
|
782
|
+ }else{
|
|
|
783
|
+ return ''
|
778
|
}
|
784
|
}
|
779
|
}
|
785
|
}
|
780
|
|
786
|
|