|
@@ -527,11 +527,6 @@
|
527
|
527
|
|
528
|
528
|
},
|
529
|
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
|
530
|
if(this.$store.getters.xt_user.org_id != 10206) {
|
536
|
531
|
console.log('yyyyyyyy',scope);
|
537
|
532
|
if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
|
|
@@ -544,11 +539,12 @@
|
544
|
539
|
}
|
545
|
540
|
} else {
|
546
|
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
|
545
|
} else {
|
550
|
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
|
550
|
if (scope.row.prescribing_number == 0) {
|
|
@@ -774,6 +770,13 @@
|
774
|
770
|
}
|
775
|
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
|
781
|
}, mounted() {
|
779
|
782
|
this.getInitData()
|