see999 3 years ago
parent
commit
c526ead44f

+ 1 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -2511,7 +2511,7 @@
2511 2511
                   execution_frequency: temp[b].execution_frequency,
2512 2512
                   retail_price: temp[b].retail_price.toString(),
2513 2513
                   remark: '',
2514
-                  day: 1,
2514
+                  day: temp[b].drug_day ? temp[b].drug_day : 1,
2515 2515
                   prescribing_number: temp[b].prescribing_number,
2516 2516
                   single_dose_unit: temp[b].min_unit,
2517 2517
                   prescribing_number_unit: temp[b].max_unit,

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

@@ -417,7 +417,7 @@
417 417
           scope.row.prescribing_number = 1
418 418
         }
419 419
         if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
420
-          // scope.row.retail_price = scope.row.drug.min_price * scope.row.prescribing_number
420
+          scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
421 421
           if(scope.row.prescribing_number > scope.row.drug.total){
422 422
             this.$message.error(scope.row.drug_name + '库存不足')
423 423
           }
@@ -425,7 +425,7 @@
425 425
           if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
426 426
             this.$message.error(scope.row.drug_name + '库存不足')
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
       },