From 93a6f70b8eb631c6c1faab8f9e8a734669e49e6e Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期三, 09 四月 2025 13:42:46 +0800
Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb

---
 src/views/doctor/pacsCheck/index.vue |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/views/doctor/pacsCheck/index.vue b/src/views/doctor/pacsCheck/index.vue
index 255134d..2d370f4 100644
--- a/src/views/doctor/pacsCheck/index.vue
+++ b/src/views/doctor/pacsCheck/index.vue
@@ -6,6 +6,7 @@
       size="small"
       :inline="true"
       label-width="68px"
+      @submit.native.prevent
     >
       <el-form-item label="浣撴鍙�" prop="reportDoctorCode">
         <el-input
@@ -88,7 +89,7 @@
       :data="exaLists"
       v-loading="loading"
       border
-      max-height="350"
+      height="350"
       @current-change="handleCurrentChange"
       @selection-change="handleSelectionChange"
       :row-class-name="tableRowClassName"
@@ -130,6 +131,7 @@
         align="center"
         prop="examinationDate"
         width="150px"
+        :formatter="formatDate"
       />
 
       <el-table-column label="闂ㄨ瘖鍙�" align="center" prop="mzh" width="140px" />
@@ -253,6 +255,7 @@
   
   <script>
 import { getLeftList, getRightList, asyncPacs } from "@/api/doctor/pacsCheck";
+import moment from "moment";
 
 export default {
   dicts: ["dict_tj_status"],
@@ -344,6 +347,17 @@
     tableRowClassName({ row }) {
       return !row.mzh ? "row-disabled" : "";
     },
+    formatDate(row) {
+      if (!row.examinationDate) return "";
+
+      // 浣跨敤 moment 瑙f瀽鎸囧畾鏍煎紡鐨勬棩鏈熷瓧绗︿覆
+      const date = moment(row.examinationDate, "MM DD YYYY hh:mmA");
+
+      if (!date.isValid()) return "鏃犳晥鏃ユ湡";
+
+      // 鏍煎紡鍖栦负鎵�闇�鏍煎紡
+      return date.format("YYYY-MM-DD HH:mm");
+    },
 
     handleSelectionChange(val) {
       console.log(val);

--
Gitblit v1.8.0