Browse Source

12月31 自动生成

yq1 1 week ago
parent
commit
87c4cd1dbe
1 changed files with 9 additions and 7 deletions
  1. 9 7
      src/xt_pages/user/courseOfDisease_new.vue

+ 9 - 7
src/xt_pages/user/courseOfDisease_new.vue View File

32
                 </el-table-column>
32
                 </el-table-column>
33
                 <el-table-column prop="date" label="时间" width="">
33
                 <el-table-column prop="date" label="时间" width="">
34
                   <template slot-scope="scope">
34
                   <template slot-scope="scope">
35
-                      {{ getTime(scope.row.record_time) }}
35
+                      {{ getTimeThree(scope.row.record_time) }}
36
                     </template>
36
                     </template>
37
                 </el-table-column>
37
                 </el-table-column>
38
                 <el-table-column prop="doctor" label="医生">
38
                 <el-table-column prop="doctor" label="医生">
65
                 记录时间:
65
                 记录时间:
66
                 <el-date-picker v-model="record_date" prefix-icon="el-icon-date" :editable="false"
66
                 <el-date-picker v-model="record_date" prefix-icon="el-icon-date" :editable="false"
67
                               style="width: 250px;"
67
                               style="width: 250px;"
68
-                              type="datetime" placeholder="选择日期时间" align="right" ></el-date-picker>
68
+                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
69
+                              ></el-date-picker>
69
               </div>
70
               </div>
70
               <div style="flex: 1;">
71
               <div style="flex: 1;">
71
                 病程医生:
72
                 病程医生:
1367
       },
1368
       },
1368
       getCurrentChangeOne(val){
1369
       getCurrentChangeOne(val){
1369
         this.$refs.editor.contents = val.content
1370
         this.$refs.editor.contents = val.content
1370
-        this.record_date = this.getTime(val.record_time)
1371
+        this.record_date = this.getTimeThree(val.record_time)
1371
         this.admin_user_id = val.recorder
1372
         this.admin_user_id = val.recorder
1372
         if(this.admin_user_id == 0){
1373
         if(this.admin_user_id == 0){
1373
            this.admin_user_id = ""
1374
            this.admin_user_id = ""
1473
       showSave(){
1474
       showSave(){
1474
         this.add_index = 0
1475
         this.add_index = 0
1475
         this.disabled = true
1476
         this.disabled = true
1476
-        console.log("haaaaaaaaaaaaaaa",this.$refs)
1477
-
1477
+        console.log("haaaaaaaaaaaaaaa",this.record_date)
1478
+        this.getlist()
1478
         if(this.record_date.length == 0) {
1479
         if(this.record_date.length == 0) {
1479
           this.$message.error('请选择时间')
1480
           this.$message.error('请选择时间')
1480
           return
1481
           return
1492
         var params = {
1493
         var params = {
1493
           id:this.id,
1494
           id:this.id,
1494
           patient_id:this.patient_id,
1495
           patient_id:this.patient_id,
1495
-          record_date:this.record_date,
1496
+          record_date:this.getTimeThree(this.record_date),
1496
           content:this.new_content,
1497
           content:this.new_content,
1497
           admin_user_id:this.admin_user_id,
1498
           admin_user_id:this.admin_user_id,
1498
         }
1499
         }
1499
-        console.log("params",params.content)
1500
+        console.log("params",params)
1500
         createNewCourseOfDiseaseRecord(params).then(response => {
1501
         createNewCourseOfDiseaseRecord(params).then(response => {
1501
          if(response.data.state == 1){
1502
          if(response.data.state == 1){
1502
            var msg = response.data.data.msg
1503
            var msg = response.data.data.msg
1507
         }).catch(error => {
1508
         }).catch(error => {
1508
 
1509
 
1509
         })
1510
         })
1511
+        
1510
       },
1512
       },
1511
       template_click(){
1513
       template_click(){
1512
         console.log('this.add_index',this.add_index);
1514
         console.log('this.add_index',this.add_index);