See999 4 年前
父节点
当前提交
424d4b1f7c
共有 2 个文件被更改,包括 17 次插入2 次删除
  1. 1 1
      src/xt_pages/dialysis/PatientBox.vue
  2. 16 1
      src/xt_pages/dialysis/details/index.vue

+ 1 - 1
src/xt_pages/dialysis/PatientBox.vue 查看文件

590
       this.patient_id = schedual.patient_id
590
       this.patient_id = schedual.patient_id
591
       this.getScheduleDetail()
591
       this.getScheduleDetail()
592
       this.getLongAdvice()
592
       this.getLongAdvice()
593
-      this.$refs.prescription.show(this.prescription);
593
+      this.$refs.prescription.show(this.prescription,schedual);
594
       
594
       
595
     },
595
     },
596
     open1(schedual){
596
     open1(schedual){

+ 16 - 1
src/xt_pages/dialysis/details/index.vue 查看文件

79
                 >
79
                 >
80
                 <template slot-scope="scope">
80
                 <template slot-scope="scope">
81
                   {{ scope.row.patient.name }}
81
                   {{ scope.row.patient.name }}
82
+                  <span v-if="scope.row.assessment_before_dislysis && patientStateVal == 1">
83
+                    ({{ getTime(scope.row.assessment_before_dislysis.created_time) }})
84
+                  </span>
82
                 </template>
85
                 </template>
83
               </el-table-column>
86
               </el-table-column>
84
               <el-table-column
87
               <el-table-column
1462
       return function(a,b){
1465
       return function(a,b){
1463
         var value1 = a[property];
1466
         var value1 = a[property];
1464
         var value2 = b[property];
1467
         var value2 = b[property];
1465
-        return value1 - value2;
1468
+        return value2 - value1;
1466
       }
1469
       }
1470
+    },
1471
+    getTime(date){
1472
+      date = new Date(date * 1000)
1473
+      var Y = date.getFullYear() + '-';
1474
+      var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
1475
+      var D = (date.getDate() < 10 ? '0'+date.getDate() : date.getDate());
1476
+      var h = (date.getHours() < 10 ? '0'+date.getHours() : date.getHours());
1477
+      var m = (date.getMinutes() < 10 ? '0'+date.getMinutes() : date.getMinutes());
1478
+      var s = (date.getSeconds() < 10 ? '0'+date.getSeconds() : date.getSeconds());
1479
+      
1480
+      let strDate = h  + ':' + m;
1481
+      return strDate;
1467
     }
1482
     }
1468
   }
1483
   }
1469
 }
1484
 }