See999 4 years ago
parent
commit
424d4b1f7c
2 changed files with 17 additions and 2 deletions
  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 View File

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

+ 16 - 1
src/xt_pages/dialysis/details/index.vue View File

@@ -79,6 +79,9 @@
79 79
                 >
80 80
                 <template slot-scope="scope">
81 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 85
                 </template>
83 86
               </el-table-column>
84 87
               <el-table-column
@@ -1462,8 +1465,20 @@ export default {
1462 1465
       return function(a,b){
1463 1466
         var value1 = a[property];
1464 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
 }