Bläddra i källkod

11月8 处方

yq1 7 månader sedan
förälder
incheckning
c363a2f3de
1 ändrade filer med 11 tillägg och 5 borttagningar
  1. 11 5
      src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue

+ 11 - 5
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Visa fil

@@ -543,8 +543,8 @@
543 543
               // 单次用量single_dose,用量单位single_dose_unit,用法delivery_way,频率execution_frequency 总量prescribing_number,规格drug.dose
544 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 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 550
           if (scope.row.prescribing_number == 0) {
@@ -772,9 +772,15 @@
772 772
       },
773 773
       getdrugdose(val){
774 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