Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 9 mesi fa
parent
commit
41f167fced

+ 18 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue Vedi File

@@ -843,21 +843,26 @@ export default {
843 843
                tableAdvice.push(doctorAdevieInfo[i])
844 844
              }
845 845
           }
846
-          console.log("医嘱天天吞吞吐吐",this.tableAdvice)
847
-          if(this.tableAdvice!=null && this.tableAdvice.length >0){
848
-            if (tableAdvice.length <= 8) {
849
-              const length = 8 - tableAdvice.length
850
-              var obj = { advice_name: '', start_time: '' }
851
-              for (i = 0; i < length; i++) {
852
-                console.log(1)
853
-                tableAdvice.push(obj)
854
-              }
855
-
856
-             this.tableAdvice = tableAdvice
857
-            }else{
858
-              this.tableAdvice = tableAdvice
846
+        
847
+          if (tableAdvice!=null&&tableAdvice.length <= 8) {
848
+            console.log("hahhah1")
849
+            const length = 8 - tableAdvice.length
850
+            var obj = { advice_name: '', start_time: '' }
851
+            for (i = 0; i < length; i++) {
852
+              console.log(1)
853
+              tableAdvice.push(obj)
854
+            }
855
+            this.tableAdvice = tableAdvice
856
+          }else{
857
+            console.log("hahhah2")
858
+            const length = 8
859
+            var obj = { advice_name: '', start_time: '' }
860
+            for (i = 0; i < length; i++) {
861
+              console.log(1)
862
+              this.tableAdvice.push(obj)
859 863
             }
860 864
           }
865
+          
861 866
         
862 867
           console.log("tableAdvice", this.tableAdvice);
863 868
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;

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

@@ -3779,6 +3779,7 @@ export default {
3779 3779
                     retail_price: temp3[b].drug.retail_price.toString(),
3780 3780
                     remark: '',
3781 3781
                     day: '1',
3782
+                    is_medicine:0,
3782 3783
                     prescribing_number: temp3[b].prescribing_number,
3783 3784
                     single_dose_unit: temp3[b].drug.drug_dose_unit,
3784 3785
                     prescribing_number_unit: temp3[b].drug.prescribing_number_unit,
@@ -3844,6 +3845,7 @@ export default {
3844 3845
                     prescribing_number_unit: temp[b].prescribing_number_unit,
3845 3846
                     medical_insurance_number: temp[b].medical_insurance_number,
3846 3847
                     drug: temp[b],
3848
+                    is_medicine:0,
3847 3849
                     groupno: index + temp_index,
3848 3850
                     hosp_appr_flag: '1',
3849 3851
                     execution_state: 2
@@ -3959,6 +3961,8 @@ export default {
3959 3961
                   retail_price: temp3[b].drug.retail_price.toString(),
3960 3962
                   remark: '',
3961 3963
                   day: '1',
3964
+                  is_medicine:0,
3965
+
3962 3966
                   prescribing_number: temp3[b].prescribing_number,
3963 3967
                   single_dose_unit: temp3[b].drug.drug_dose_unit,
3964 3968
                   prescribing_number_unit: temp3[b].drug.prescribing_number_unit,
@@ -4030,7 +4034,9 @@ export default {
4030 4034
                   drug: temp[b],
4031 4035
                   groupno: index + temp_index,
4032 4036
                   hosp_appr_flag: '1',
4033
-                  execution_state: 2
4037
+                  execution_state: 2,
4038
+                  is_medicine:0,
4039
+
4034 4040
 
4035 4041
                 }
4036 4042
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {

+ 12 - 13
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Vedi File

@@ -82,7 +82,7 @@
82 82
                                   style="width:50%" placeholder=""></el-input>
83 83
                         <!-- <div> {{scope.row.prescribing_number_unit}}</div> -->
84 84
                         <el-select :disabled="scope.row.is_medicine == 1" v-model="scope.row.prescribing_number_unit" placeholder="请选择" style="width:50%;"
85
-                                   @change="getPrescribingNumberUnit(scope.row)">
85
+                                   @change="getPrescribingNumberUnit(scope)">
86 86
                             <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
87 87
                             <el-option :label="scope.row.drug.max_unit"
88 88
                                        v-if="scope.row.drug.min_unit != scope.row.drug.max_unit"
@@ -372,8 +372,7 @@
372 372
         })
373 373
 
374 374
       }, deleteDrug: function(index, row) {
375
-        console.log(row)
376
-        if (row.is_medicine == 1){
375
+        if (row.hasOwnProperty('is_medicine')&&row.is_medicine == 1){
377 376
           this.$message.error('该处方包含已发药的药品,无法删除')
378 377
           return
379 378
         }
@@ -526,11 +525,11 @@
526 525
 
527 526
       },
528 527
       getAllChangeTwo(scope) {
529
-        console.log("战国阿道夫阿道夫阿道夫",scope)
530
-        if (scope.row.is_medicine == 1){
531
-          this.$message.error('该处方包含已发药的药品,无法修改')
532
-          return
533
-        }
528
+        // console.log("战国阿道夫阿道夫阿道夫",scope)
529
+        // if (scope.row.hasOwnProperty('is_medicine')&&scope.row.is_medicine == 1){
530
+        //   this.$message.error('该处方包含已发药的药品,无法修改')
531
+        //   return
532
+        // }
534 533
         if(this.$store.getters.xt_user.org_id != 10206) {
535 534
           console.log('yyyyyyyy',scope);
536 535
           if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
@@ -575,7 +574,7 @@
575 574
       },
576 575
 
577 576
       getPrescribingNumberUnit(scope) {
578
-        if (scope.row.is_medicine == 1){
577
+        if (scope.row.hasOwnProperty('is_medicine')&&scope.row.is_medicine == 1){
579 578
           this.$message.error('该处方包含已发药的药品,无法修改')
580 579
           return
581 580
         }
@@ -609,10 +608,10 @@
609 608
         }
610 609
       },
611 610
       changePrescribingNumber(scope) {
612
-        if (scope.row.is_medicine == 1){
613
-          this.$message.error('该处方包含已发药的药品,无法修改')
614
-          return
615
-        }
611
+        // if (scope.row.hasOwnProperty('is_medicine')&&scope.row.is_medicine == 1){
612
+        //   this.$message.error('该处方包含已发药的药品,无法修改')
613
+        //   return
614
+        // }
616 615
         //  var max_number = 0
617 616
         //  if(scope.row.prescribing_number_unit == scope.row.drug.max_unit){
618 617
         //     max_number = parseInt(scope.row.prescribing_number) * scope.row.drug.min_number