Browse Source

提交代码

陈少旭 10 months ago
parent
commit
b08b90e563
1 changed files with 12 additions and 4 deletions
  1. 12 4
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue

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

@@ -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 = {
@@ -1676,6 +1676,7 @@ export default {
1676 1676
             this.loadingtwo = false
1677 1677
             this.newLoading = false
1678 1678
             this.$refs.charge.hide()
1679
+
1679 1680
             return false
1680 1681
           } else {
1681 1682
             if(response.data.data.msg == 2){
@@ -1784,7 +1785,14 @@ export default {
1784 1785
           return false
1785 1786
         } else {
1786 1787
           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)
1788
+            var name = ""
1789
+            for(let i = 0; i < this.patientTableData.length;i++){
1790
+              if(this.patientTableData[i].id == id){
1791
+                name = this.patientTableData[i].name
1792
+              }
1793
+            }
1794
+            this.$refs.call_prescription.show(name, id,  this.record_date, this.record_date,response.data.data.ps,response.data.data.his_patient_id)
1795
+
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
         })