Browse Source

提交代码

陈少旭 1 year ago
parent
commit
8de06f5380
1 changed files with 21 additions and 13 deletions
  1. 21 13
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue

+ 21 - 13
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -4922,7 +4922,7 @@ export default {
4922 4922
           let two_count = 0
4923 4923
 
4924 4924
           for (let i = 0; i < response.data.data.list.length; i++) {
4925
-            if (this.org_id == 10206 || this.org_id == 0){
4925
+            if (this.org_id == 10206){
4926 4926
                 let obj = {
4927 4927
                   id: response.data.data.list[i].id,
4928 4928
                   name: response.data.data.list[i].name,
@@ -4938,24 +4938,32 @@ export default {
4938 4938
 
4939 4939
                 this.all_table_data.push(obj)
4940 4940
             }else{
4941
+              console.log("count")
4942
+              console.log(response.data.data.list[i].his_patient.length)
4941 4943
               if (response.data.data.list[i].his_patient.length > 0) {
4942
-                let obj = {
4943
-                  id: response.data.data.list[i].id,
4944
-                  name: response.data.data.list[i].name,
4945
-                  number: response.data.data.list[i].his_patient[0].number,
4946
-                  order_status: 0,
4947
-                  his_patient_id: response.data.data.list[i].his_patient[0].id,
4948
-                  order_number: '',
4949
-                  order_id: 0,
4950
-                  prescription: response.data.data.list[i].prescription
4944
+
4945
+                for(let b = 0;b < response.data.data.list[i].his_patient.length; b++){
4946
+                  console.log("his_patient")
4947
+                  console.log(response.data.data.list[i].his_patient)
4948
+                  let obj = {
4949
+                    id: response.data.data.list[i].id,
4950
+                    name: response.data.data.list[i].name,
4951
+                    number: response.data.data.list[i].his_patient[b].number,
4952
+                    order_status: 0,
4953
+                    his_patient_id: response.data.data.list[i].his_patient[b].id,
4954
+                    order_number: '',
4955
+                    order_id: 0,
4956
+                    prescription: response.data.data.list[i].prescription
4957
+                  }
4958
+                  this.all_table_data.push(obj)
4951 4959
                 }
4952
-                this.all_table_data.push(obj)
4953 4960
               }
4954
-
4955 4961
             }
4956
-
4957 4962
           }
4958 4963
 
4964
+          console.log("this.all_table_data")
4965
+          console.log(this.all_table_data)
4966
+
4959 4967
           let unChargePatient = []
4960 4968
           for (let i = 0; i < this.all_table_data.length; i++) {
4961 4969
             unChargePatient.push(this.all_table_data[i])