28169 hace 3 meses
padre
commit
5c1df7f96f
Se han modificado 2 ficheros con 30 adiciones y 1 borrados
  1. 9 0
      src/api/patient.js
  2. 21 1
      src/xt_pages/user/courseOfDisease_new.vue

+ 9 - 0
src/api/patient.js Ver fichero

@@ -1367,4 +1367,13 @@ export function deleteCourseTempalte(id,params){
1367 1367
     method:"Get",
1368 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 Ver fichero

@@ -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>