Browse Source

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

yq1 10 months ago
parent
commit
41f167fced

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

843
                tableAdvice.push(doctorAdevieInfo[i])
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
           console.log("tableAdvice", this.tableAdvice);
867
           console.log("tableAdvice", this.tableAdvice);
863
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;
868
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;

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

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

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

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