陈少旭 9 meses atrás
pai
commit
a2e71a34a0

+ 1 - 1
src/xt_pages/outpatientCharges/components/callUnAssociationPrescription.vue Ver arquivo

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

+ 12 - 4
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver arquivo

@@ -1284,8 +1284,8 @@ export default {
1284 1284
       this.association_prescriptions = []
1285 1285
       this.association_prescriptions = val
1286 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 1291
       let params = {
@@ -1784,7 +1784,15 @@ export default {
1784 1784
           return false
1785 1785
         } else {
1786 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,7 +1819,7 @@ export default {
1811 1819
             this.$refs.register9504.hide()
1812 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
         })