From a5232f3b87cae39a7957ba9c8af905680088582a Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期二, 18 八月 2026 09:58:09 +0800
Subject: [PATCH] fix: 日期格式化

---
 src/views/inventoryManagement/stockReport/index.vue |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/views/inventoryManagement/stockReport/index.vue b/src/views/inventoryManagement/stockReport/index.vue
index 26bc8a0..ad294e2 100644
--- a/src/views/inventoryManagement/stockReport/index.vue
+++ b/src/views/inventoryManagement/stockReport/index.vue
@@ -152,7 +152,11 @@
                            prop="createTime"
                            width="200"
                            show-overflow-tooltip
-                           v-if="searchForm.reportType !== 'inout'" />
+                           v-if="searchForm.reportType !== 'inout'">
+            <template #default="scope">
+              {{ formatDate(scope.row.createTime) }}
+            </template>
+          </el-table-column>
           <el-table-column label="鍏ュ簱鎵规"
                            prop="inboundBatches"
                            width="180"
@@ -252,6 +256,11 @@
 
   const total = ref(0);
 
+  const formatDate = value => {
+    if (!value) return "";
+    return String(value).slice(0, 10);
+  };
+
   const stockRecordTypeOptions = ref([]);
 
   const getRecordType = recordType => {

--
Gitblit v1.9.3