From 6c58e561a1a4747afd00226b35935edfd82c005e Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 29 十月 2026 16:40:35 +0800
Subject: [PATCH] fix(laboratory): 修正资质颁发时间字段显示与日期格式化

---
 src/views/structural/capabilityAndLaboratory/laboratory/index.vue |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
index 7dde2e5..10cb00a 100644
--- a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
+++ b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
@@ -62,8 +62,8 @@
               <p style="line-height: 26px">
                 璧勮川鍚嶇О锛�<span style="color: var(--el-color-primary)">{{ m.name }}</span>
               </p>
-              <p style="line-height: 26px">棰佸彂鏃堕棿锛歿{ m.recentlyTime }}</p>
-              <p style="line-height: 26px">鍒版湡鏃堕棿锛歿{ m.expireTime }}</p>
+              <p style="line-height: 26px">棰佸彂鏃堕棿锛歿{ formatDate(m.dateOfIssuance) }}</p>
+              <p style="line-height: 26px">鍒版湡鏃堕棿锛歿{ formatDate(m.expireTime) }}</p>
               <p>
                 <span>鐘舵�侊細</span>
                 <el-tag :type="m.state === 0 ? 'danger' : 'success'" size="small">{{ m.state === 0 ? "澶辨晥" : "鏈夋晥"
@@ -167,6 +167,10 @@
 } from "@/api/structural/laboratory";
 import { getToken } from "@/utils/auth";
 
+function formatDate(value) {
+  return value ? String(value).slice(0, 10) : "";
+}
+
 export default {
   name: 'Laboratory',
   components: {
@@ -186,9 +190,8 @@
         { label: "璧勮川缂栫爜", prop: "code" },
         { label: "棰佸彂鏈烘瀯", prop: "organization" },
         { label: "璧勮川璇存槑", prop: "explanation" },
-        { label: "棣栨棰佸彂鏃堕棿", prop: "firstIssuanceDate" },
-        { label: "鏈�杩戦鍙戞椂闂�", prop: "latestIssuanceDate" },
-        { label: "鍒版湡棰佸彂鏃堕棿", prop: "expireTime" },
+        { label: "棰佸彂鏃堕棿", prop: "dateOfIssuance", formatData: formatDate },
+        { label: "鍒版湡鏃堕棿", prop: "expireTime", formatData: formatDate },
         {
           dataType: "action",
           label: "鎿嶄綔",
@@ -257,6 +260,7 @@
     this.refreshTable();
   },
   methods: {
+    formatDate,
     selectorSwitch(radio) {
       if (radio === 1) {
         this.reloadOverview();

--
Gitblit v1.9.3