陈少旭 9 months ago
parent
commit
a2e71a34a0

+ 1 - 1
src/xt_pages/outpatientCharges/components/callUnAssociationPrescription.vue View File

319
               tempProject.push(obj)
319
               tempProject.push(obj)
320
             }
320
             }
321
             let obj = {
321
             let obj = {
322
-              id: 0,
322
+              id: prescription.id,
323
               advices: tempAdvice,
323
               advices: tempAdvice,
324
               project: tempProject,
324
               project: tempProject,
325
               addition:tempAddition,
325
               addition:tempAddition,

+ 12 - 4
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

1284
       this.association_prescriptions = []
1284
       this.association_prescriptions = []
1285
       this.association_prescriptions = val
1285
       this.association_prescriptions = val
1286
       var ids  = []
1286
       var ids  = []
1287
-      for (let i = 0; i < this.prescriptions.length; i++) {
1288
-        ids.push(this.prescriptions[i].id)
1287
+      for (let i = 0; i < this.association_prescriptions.length; i++) {
1288
+        ids.push(this.association_prescriptions[i].id)
1289
       }
1289
       }
1290
       //上传关联数据
1290
       //上传关联数据
1291
       let params = {
1291
       let params = {
1784
           return false
1784
           return false
1785
         } else {
1785
         } else {
1786
           if(response.data.data.status == 1){
1786
           if(response.data.data.status == 1){
1787
-            this.$refs.call_prescription.show(this.patientInfo.name, this.patientInfo.id,  this.record_date, this.record_date,response.data.data.ps,response.data.data.his_patient_id,response.data.data.patient_id)
1787
+            var name = ""
1788
+            for(let i = 0; i < this.patientTableData.length;i++){
1789
+              if(this.patientTableData[i].id == id){
1790
+                name = this.patientTableData[i].name
1791
+              }
1792
+            }
1793
+            this.$refs.call_prescription.show(name, id,  this.record_date, this.record_date,response.data.data.ps,response.data.data.his_patient_id,response.data.data.patient_id)
1794
+
1795
+            // this.$refs.call_prescription.show(this.patientInfo.name, this.patientInfo.id,  this.record_date, this.record_date,response.data.data.ps,response.data.data.his_patient_id,response.data.data.patient_id)
1788
           }
1796
           }
1789
         }
1797
         }
1790
       })
1798
       })
1811
             this.$refs.register9504.hide()
1819
             this.$refs.register9504.hide()
1812
             this.loadingone = false
1820
             this.loadingone = false
1813
 
1821
 
1814
-            this.CheckHISPatient(that.record_date,forms.id)
1822
+            this.CheckHISPatient(this.record_date,forms.id)
1815
 
1823
 
1816
           }
1824
           }
1817
         })
1825
         })