From baf77b7ac6be90c1dfc8d9536ae194f350f7cc7c Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 26 十月 2026 15:22:37 +0800
Subject: [PATCH] 列表时间统一只展示年月日,库存最近更新时间用创建时间兜底
---
src/components/PIMTable/PIMTable.vue | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/components/PIMTable/PIMTable.vue b/src/components/PIMTable/PIMTable.vue
index 74615af..20e599e 100644
--- a/src/components/PIMTable/PIMTable.vue
+++ b/src/components/PIMTable/PIMTable.vue
@@ -178,15 +178,19 @@
class="cell link"
style="width: 100%"
@click="goLink(scope.row, item.linkMethod)">
- <span v-if="!item.formatData">{{ scope.row[item.prop] }}</span>
+ <span v-if="!item.formatData">{{
+ toDateOnly(scope.row[item.prop])
+ }}</span>
</div>
<!-- 榛樿绾睍绀烘暟鎹� -->
<div v-else
class="cell"
style="width: 100%">
- <span v-if="!item.formatData">{{ scope.row[item.prop] }}</span>
+ <span v-if="!item.formatData">{{
+ toDateOnly(scope.row[item.prop])
+ }}</span>
<span v-else>{{
- formatters(scope.row[item.prop], item.formatData)
+ toDateOnly(formatters(scope.row[item.prop], item.formatData))
}}</span>
</div>
</template>
@@ -204,6 +208,7 @@
import pagination from "./Pagination.vue";
import { computed, ref, inject, getCurrentInstance } from "vue";
import { ElMessage } from "element-plus";
+ import { toDateOnly } from "@/utils/dateDisplay";
// 鑾峰彇鍏ㄥ眬鐨� uploadHeader
const { proxy } = getCurrentInstance();
--
Gitblit v1.9.3