|
|
|
|
527
|
|
527
|
|
528
|
},
|
528
|
},
|
529
|
getAllChangeTwo(scope) {
|
529
|
getAllChangeTwo(scope) {
|
530
|
- // console.log("战国阿道夫阿道夫阿道夫",scope)
|
|
|
531
|
- // if (scope.row.hasOwnProperty('is_medicine')&&scope.row.is_medicine == 1){
|
|
|
532
|
- // this.$message.error('该处方包含已发药的药品,无法修改')
|
|
|
533
|
- // return
|
|
|
534
|
- // }
|
|
|
535
|
if(this.$store.getters.xt_user.org_id != 10206) {
|
530
|
if(this.$store.getters.xt_user.org_id != 10206) {
|
536
|
console.log('yyyyyyyy',scope);
|
531
|
console.log('yyyyyyyy',scope);
|
537
|
if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
|
532
|
if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
|
|
|
|
|
544
|
}
|
539
|
}
|
545
|
} else {
|
540
|
} else {
|
546
|
if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
|
541
|
if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
|
547
|
- console.log('123',scope.row.drug.dose)
|
|
|
548
|
- 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.dose
|
|
|
|
|
542
|
+ console.log('123',scope.row.drug.dose,scope.row.execution_frequency,scope.row.drug.min_unit)
|
|
|
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
|
549
|
} else {
|
545
|
} else {
|
550
|
console.log(1234)
|
546
|
console.log(1234)
|
551
|
- 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)//
|
|
|
|
|
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)//
|
552
|
}
|
548
|
}
|
553
|
}
|
549
|
}
|
554
|
if (scope.row.prescribing_number == 0) {
|
550
|
if (scope.row.prescribing_number == 0) {
|
|
|
|
|
774
|
}
|
770
|
}
|
775
|
console.log("hahhhahdhha",this.prescription.advices)
|
771
|
console.log("hahhhahdhha",this.prescription.advices)
|
776
|
},
|
772
|
},
|
|
|
773
|
+ getdrugdose(val){
|
|
|
774
|
+ if(val !=''){
|
|
|
775
|
+ const arr = val.split(':')[1]
|
|
|
776
|
+ console.log('yyyytrrrreee',arr);
|
|
|
777
|
+ return arr
|
|
|
778
|
+ }
|
|
|
779
|
+ }
|
777
|
|
780
|
|
778
|
}, mounted() {
|
781
|
}, mounted() {
|
779
|
this.getInitData()
|
782
|
this.getInitData()
|