Browse Source

hah阿凡达

28169 3 months ago
parent
commit
5c1df7f96f
2 changed files with 30 additions and 1 deletions
  1. 9 0
      src/api/patient.js
  2. 21 1
      src/xt_pages/user/courseOfDisease_new.vue

+ 9 - 0
src/api/patient.js View File

1367
     method:"Get",
1367
     method:"Get",
1368
     params:params
1368
     params:params
1369
   })
1369
   })
1370
+}
1371
+
1372
+export function getAutoPatientContent(params){
1373
+  
1374
+  return request({
1375
+    url:"/api/patient/getautopatientcontent",
1376
+    method:"get",
1377
+    params:params
1378
+  })
1370
 }
1379
 }

+ 21 - 1
src/xt_pages/user/courseOfDisease_new.vue View File

232
     saveCoureseTemplateTitle,
232
     saveCoureseTemplateTitle,
233
     getPatientCoureOfTempalate,
233
     getPatientCoureOfTempalate,
234
     saveCourseOfNewTemplate,
234
     saveCourseOfNewTemplate,
235
-    deleteCourseTempalte
235
+    deleteCourseTempalte,
236
+    getAutoPatientContent
236
   } from '@/api/patient'
237
   } from '@/api/patient'
237
   import { fetchAllDoctorAndNurse } from "@/api/doctor";
238
   import { fetchAllDoctorAndNurse } from "@/api/doctor";
238
   import { parseTime } from '@/utils'
239
   import { parseTime } from '@/utils'
476
       },
477
       },
477
       autotext_click(){
478
       autotext_click(){
478
         this.auto_dialog = false
479
         this.auto_dialog = false
480
+
481
+       this.getAutoPatientContent()
479
       },
482
       },
480
       requestCourseRecords: function() {
483
       requestCourseRecords: function() {
481
         this.loading = true
484
         this.loading = true
781
       getTimeOne (time) {
784
       getTimeOne (time) {
782
       return uParseTime(time, '{y}-{m}-{d}')
785
       return uParseTime(time, '{y}-{m}-{d}')
783
       },
786
       },
787
+      getAutoPatientContent(){
788
+        if(this.start_date == ""){
789
+          this.$message.error("")
790
+        }
791
+        if(this.end_date == ""){
792
+          this.$message.error("")
793
+        }
794
+        var params = {
795
+          start_date:this.start_date,
796
+          end_date:this.end_date,
797
+          patient_id:this.patient_id,
798
+        }
799
+       getAutoPatientContent(params).then(response=>{
800
+
801
+       })
802
+
803
+      }
784
     }
804
     }
785
   }
805
   }
786
 </script>
806
 </script>