|
@@ -232,7 +232,8 @@
|
232
|
232
|
saveCoureseTemplateTitle,
|
233
|
233
|
getPatientCoureOfTempalate,
|
234
|
234
|
saveCourseOfNewTemplate,
|
235
|
|
- deleteCourseTempalte
|
|
235
|
+ deleteCourseTempalte,
|
|
236
|
+ getAutoPatientContent
|
236
|
237
|
} from '@/api/patient'
|
237
|
238
|
import { fetchAllDoctorAndNurse } from "@/api/doctor";
|
238
|
239
|
import { parseTime } from '@/utils'
|
|
@@ -476,6 +477,8 @@
|
476
|
477
|
},
|
477
|
478
|
autotext_click(){
|
478
|
479
|
this.auto_dialog = false
|
|
480
|
+
|
|
481
|
+ this.getAutoPatientContent()
|
479
|
482
|
},
|
480
|
483
|
requestCourseRecords: function() {
|
481
|
484
|
this.loading = true
|
|
@@ -781,6 +784,23 @@
|
781
|
784
|
getTimeOne (time) {
|
782
|
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
|
806
|
</script>
|