gaoluyang
2026-10-28 707512d5519e701ddcaf0912a768929998e22e58
fix(date): 页面展示的时间统一只到年月日

- 新增 toDateOnly 工具,未单独配置 formatter 的 el-table 列通过全局 formatter 兜底
- parseTime / formatDate 默认格式改为年月日,PIMTable 显式转换
- 各页面明细、描述列表、通知、首页看板等直接插值的时间字段统一走 formatDateOnly
- 审批模板、报销、保养、付款台账等自定义时间格式化去掉时分秒

Co-Authored-By: Claude Code <noreply@anthropic.com>
已修改78个文件
已添加1个文件
376 ■■■■■ 文件已修改
src/components/PIMTable/PIMTable.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/QRCodeGenerator/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/NotificationCenter/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/dateDisplay.js 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/index.js 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/ruoyi.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/aiIndustrialBrain/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicData/customerFile/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicData/customerFileOpenSea/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/chatHome/chatHomeIndex/MobileChat.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/customerVisit/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/knowledgeBase/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/noticeManagement/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/notificationManagement/meetDraft/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/notificationManagement/meetExamine/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/notificationManagement/meetIndex/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/notificationManagement/meetPublish/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/notificationManagement/summary/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/officeSupplies/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/planTemplate/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/reportGeneration/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/rulesRegulationsManagement/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/collaborativeApproval/sealManagement/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/energyManagement/energyCockpit/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/energyManagement/gasManagement/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/energyManagement/meterCollection/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/equipmentManagement/deviceInfo/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/equipmentManagement/gasTank/simple.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/equipmentManagement/inspectionManagement/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/equipmentManagement/ledger/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/equipmentManagement/operationManagement/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/equipmentManagement/upkeep/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/fileManagement/bookshelf/detail.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/fileManagement/document/attachmentManager.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/monitor/job/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/monitor/job/log.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/monitorManagement/areaControl/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/monitorManagement/videoMonitor/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/officeProcessAutomation/ApproveManage/approve-list/components/ApproveDetailPanel.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/officeProcessAutomation/ApproveManage/approve-template/approveTemplateConstants.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/officeProcessAutomation/EnterpriseNews/news-manage/components/NewsDetailPanel.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/officeProcessAutomation/ReimburseManage/cost-reimburse/components/DetailPanel.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/officeProcessAutomation/ReimburseManage/cost-reimburse/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/officeProcessAutomation/ReimburseManage/shared/finReimbursementMappers.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/components/DetailPanel.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/officeProcessAutomation/SysAdmin/user-manage/profile/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/personnelManagement/attendanceCheckin/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/personnelManagement/employeeRecord/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/personnelManagement/monthlyStatistics/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/personnelManagement/selfService/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/purchaseReturnOrder/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/thePaymentLedger/index.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/safetyMonitoring/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/workOrder/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/workOrderManagement/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionPlan/productionPlan/components/PIMTable.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/projectManagement/Management/projectDetail.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/qualityManagement/afterSalesTraceability/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/qualityManagement/visualization/qualityDashboard.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportAnalysis/dataDashboard/index0.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportAnalysis/qualityAnalysis/components/center-center.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportAnalysis/safetyDashboard/components/center-top.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/safeProduction/accidentReportingRecord/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/safeProduction/dangerInvestigation/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/safeProduction/emergencyPlanReview/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/safeProduction/hazardousMaterialsControl/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/safeProduction/safeWorkApproval/components/approvalDia.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/deliveryLedger/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/returnOrder/components/detailDia.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/salesLedger/index.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/salesQuotation/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/strategyControl/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/appVersion/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/user/profile/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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();
src/components/QRCodeGenerator/index.vue
@@ -96,7 +96,7 @@
          <p><strong>内容:</strong>{{ form.content }}</p>
          <p><strong>类型:</strong>{{ form.type === 'qrcode' ? '二维码' : '防伪码' }}</p>
          <p><strong>尺寸:</strong>{{ form.size }}x{{ form.size }}px</p>
          <p><strong>生成时间:</strong>{{ generateTime }}</p>
          <p><strong>生成时间:</strong>{{ formatDateOnly(generateTime) }}</p>
        </div>
      </div>
      <div class="code-actions">
src/layout/components/NotificationCenter/index.vue
@@ -32,7 +32,7 @@
              <div class="notification-content-wrapper">
                <div class="notification-title">{{ item.noticeTitle }}</div>
                <div class="notification-detail">{{ item.noticeContent }}</div>
                <div class="notification-time">{{ item.createTime }}</div>
                <div class="notification-time">{{ formatDateOnly(item.createTime) }}</div>
              </div>
              <div class="notification-action">
                <el-button type="primary"
@@ -64,7 +64,7 @@
              <div class="notification-content-wrapper">
                <div class="notification-title">{{ item.noticeTitle }}</div>
                <div class="notification-detail">{{ item.noticeContent }}</div>
                <div class="notification-time">{{ item.createTime }}</div>
                <div class="notification-time">{{ formatDateOnly(item.createTime) }}</div>
              </div>
            </div>
          </div>
src/main.js
@@ -58,6 +58,7 @@
import PageHeader from "@/components/PageHeader/index.vue";
import { getToken } from "@/utils/auth";
import { toDateOnly } from "@/utils/dateDisplay";
import {
  calculateTaxExclusiveTotalPrice,
  summarizeTable,
@@ -81,6 +82,9 @@
app.config.globalProperties.selectDictLabel = selectDictLabel;
app.config.globalProperties.selectDictLabels = selectDictLabels;
app.config.globalProperties.javaApi = __BASE_API__;
// å±•示用日期:带时分秒的只保留年月日
app.config.globalProperties.formatDateOnly = toDateOnly;
app.config.globalProperties.toDateOnly = toDateOnly;
app.config.globalProperties.HaveJson = (val) => {
  return JSON.parse(JSON.stringify(val));
};
@@ -116,4 +120,19 @@
});
app._context.components.ElDialog.props.closeOnClickModal.default = false;
// åˆ—表时间统一只展示年月日:未单独配置 formatter çš„表格列走这里
const tableColumnFormatter =
  app._context.components.ElTableColumn?.props?.formatter;
if (tableColumnFormatter) {
  const formatCell = (row, column, cellValue) => toDateOnly(cellValue);
  if (typeof tableColumnFormatter === "function") {
    app._context.components.ElTableColumn.props.formatter = {
      type: Function,
      default: formatCell,
    };
  } else {
    tableColumnFormatter.default = formatCell;
  }
}
app.mount("#app");
src/utils/dateDisplay.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,32 @@
/**
 * å±•示用的日期处理:带时分秒的日期时间只保留年月日,
 * æœ¬æ¥å°±æ˜¯æ—¥æœŸã€æ—¶é—´æˆ–其它内容的值原样返回。
 */
const DATE_TIME_PATTERN =
  /^(\d{4})[-/å¹´](\d{1,2})[-/月](\d{1,2})日?[ T]\d{1,2}:\d{2}(?::\d{2})?(?:\.\d+)?(?:Z|[+-]\d{2}:?\d{2})?$/;
function pad2(value) {
  return String(value).padStart(2, "0");
}
export function toDateOnly(value) {
  if (value == null || value === "") return value;
  if (value instanceof Date) {
    if (Number.isNaN(value.getTime())) return value;
    return `${value.getFullYear()}-${pad2(value.getMonth() + 1)}-${pad2(
      value.getDate()
    )}`;
  }
  if (typeof value !== "string") {
    // æ•°å­—、对象等原样返回,交给渲染层按原有方式处理
    return value;
  }
  const text = value.trim();
  const matched = text.match(DATE_TIME_PATTERN);
  if (!matched) return value;
  return `${matched[1]}-${pad2(matched[2])}-${pad2(matched[3])}`;
}
src/utils/index.js
@@ -1,25 +1,11 @@
import { parseTime } from "./ruoyi";
/**
 * è¡¨æ ¼æ—¶é—´æ ¼å¼åŒ–
 * è¡¨æ ¼æ—¶é—´æ ¼å¼åŒ–(页面展示只保留年月日)
 */
export function formatDate(cellValue) {
  if (cellValue == null || cellValue == "") return "";
  var date = new Date(cellValue);
  var year = date.getFullYear();
  var month =
    date.getMonth() + 1 < 10
      ? "0" + (date.getMonth() + 1)
      : date.getMonth() + 1;
  var day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
  var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
  var minutes =
    date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
  var seconds =
    date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
  return (
    year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds
  );
  return parseTime(cellValue, "{y}-{m}-{d}");
}
/**
src/utils/ruoyi.js
@@ -8,7 +8,8 @@
  if (arguments.length === 0 || !time) {
    return null
  }
  const format = pattern || '{y}-{m}-{d} {h}:{i}:{s}'
  // é¡µé¢å±•示统一只到年月日,需要时分秒时显式传入 pattern
  const format = pattern || '{y}-{m}-{d}'
  let date
  if (typeof time === 'object') {
    date = time
src/views/aiIndustrialBrain/index.vue
@@ -4,7 +4,7 @@
      <header class="brain-head">
        <div class="head-date">
          <p>{{ weekLabel }}</p>
          <p>{{ dateLabel }}</p>
          <p>{{ formatDateOnly(dateLabel) }}</p>
        </div>
        <div class="head-title">
src/views/basicData/customerFile/index.vue
@@ -457,7 +457,7 @@
            <el-col :span="12">
              <div class="info-item">
                <span class="info-label">维护时间:</span>
                <span class="info-value">{{ detailForm.maintenanceTime }}</span>
                <span class="info-value">{{ formatDateOnly(detailForm.maintenanceTime) }}</span>
              </div>
            </el-col>
          </el-row>
src/views/basicData/customerFileOpenSea/index.vue
@@ -523,7 +523,7 @@
            <el-col :span="12">
              <div class="info-item">
                <span class="info-label">维护时间:</span>
                <span class="info-value">{{ detailForm.maintenanceTime }}</span>
                <span class="info-value">{{ formatDateOnly(detailForm.maintenanceTime) }}</span>
              </div>
            </el-col>
          </el-row>
src/views/chatHome/chatHomeIndex/MobileChat.vue
@@ -7,7 +7,7 @@
            <div class="info-time">
              <img :src="item.headImg" alt="" />
              <span>{{ item.name }}</span>
              <span>{{ item.time }}</span>
              <span>{{ formatDateOnly(item.time) }}</span>
            </div>
            <div class="chat-text" v-if="item.chatType == 0">
              <template v-if="isSend && index === chatList.length - 1">
@@ -30,7 +30,7 @@
          <div class="chat-me" v-else>
            <div class="info-time">
              <span>{{ item.name }}</span>
              <span>{{ item.time }}</span>
              <span>{{ formatDateOnly(item.time) }}</span>
              <img :src="item.headImg" alt="" />
            </div>
            <div class="chat-text" v-if="item.chatType == 0">
src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue
@@ -69,8 +69,8 @@
                <el-descriptions-item label="报价单号">{{ currentQuotation.quotationNo }}</el-descriptions-item>
                <el-descriptions-item label="客户名称">{{ currentQuotation.customer }}</el-descriptions-item>
                <el-descriptions-item label="业务员">{{ currentQuotation.salesperson }}</el-descriptions-item>
                <el-descriptions-item label="报价日期">{{ currentQuotation.quotationDate }}</el-descriptions-item>
                <el-descriptions-item label="有效期至">{{ currentQuotation.validDate }}</el-descriptions-item>
                <el-descriptions-item label="报价日期">{{ formatDateOnly(currentQuotation.quotationDate) }}</el-descriptions-item>
                <el-descriptions-item label="有效期至">{{ formatDateOnly(currentQuotation.validDate) }}</el-descriptions-item>
                <el-descriptions-item label="付款方式">{{ currentQuotation.paymentMethod }}</el-descriptions-item>
                <el-descriptions-item label="报价总额"
                                      :span="2">
@@ -129,8 +129,8 @@
                <el-descriptions-item label="供应商名称">{{ currentPurchase.supplierName }}</el-descriptions-item>
                <el-descriptions-item label="项目名称">{{ currentPurchase.projectName }}</el-descriptions-item>
                <el-descriptions-item label="销售合同号">{{ currentPurchase.salesContractNo }}</el-descriptions-item>
                <el-descriptions-item label="签订日期">{{ currentPurchase.executionDate }}</el-descriptions-item>
                <el-descriptions-item label="录入日期">{{ currentPurchase.entryDate }}</el-descriptions-item>
                <el-descriptions-item label="签订日期">{{ formatDateOnly(currentPurchase.executionDate) }}</el-descriptions-item>
                <el-descriptions-item label="录入日期">{{ formatDateOnly(currentPurchase.entryDate) }}</el-descriptions-item>
                <el-descriptions-item label="付款方式">{{ currentPurchase.paymentMethod }}</el-descriptions-item>
                <el-descriptions-item label="合同金额"
                                      :span="2">
@@ -190,7 +190,7 @@
                <el-descriptions-item label="发货订单号">{{ currentDelivery.shippingInfo.shippingNo || '--' }}</el-descriptions-item>
                <el-descriptions-item label="客户名称">{{ currentDelivery.shippingInfo.customerName || '--' }}</el-descriptions-item>
                <el-descriptions-item label="发货类型">{{ currentDelivery.shippingInfo.type || '--' }}</el-descriptions-item>
                <el-descriptions-item label="发货日期">{{ currentDelivery.shippingInfo.shippingDate || '--' }}</el-descriptions-item>
                <el-descriptions-item label="发货日期">{{ formatDateOnly(currentDelivery.shippingInfo.shippingDate || '--') }}</el-descriptions-item>
                <el-descriptions-item label="审核状态">{{ currentDelivery.shippingInfo.status || '--' }}</el-descriptions-item>
                <el-descriptions-item label="发货车牌号">{{ currentDelivery.shippingInfo.shippingCarNumber || '--' }}</el-descriptions-item>
              </el-descriptions>
src/views/collaborativeApproval/customerVisit/index.vue
@@ -93,7 +93,7 @@
          </div>
          <div class="info-item">
            <span class="info-label">拜访时间</span>
            <span class="info-value">{{ detailForm.purposeDate || '-' }}</span>
            <span class="info-value">{{ formatDateOnly(detailForm.purposeDate || '-') }}</span>
          </div>
          <div class="info-item">
            <span class="info-label">拜访地点</span>
src/views/collaborativeApproval/knowledgeBase/index.vue
@@ -170,7 +170,7 @@
            {{ currentKnowledge.creator }}
          </el-descriptions-item>
          <el-descriptions-item label="创建时间">
            {{ currentKnowledge.createTime }}
            {{ formatDateOnly(currentKnowledge.createTime) }}
          </el-descriptions-item>
        </el-descriptions>
src/views/collaborativeApproval/noticeManagement/index.vue
@@ -60,7 +60,7 @@
                  </div>
                  <div class="card-info">
                    <span class="creator">{{ notice.createUserName }}</span>
                    <span class="expiration" v-if="notice.expirationDate">截止日期:{{ notice.expirationDate }}</span>
                    <span class="expiration" v-if="notice.expirationDate">截止日期:{{ formatDateOnly(notice.expirationDate) }}</span>
                  </div>
                </div>
                <div class="card-remark" v-if="notice.remark">
src/views/collaborativeApproval/notificationManagement/meetDraft/index.vue
@@ -83,7 +83,7 @@
          <el-descriptions-item label="会议时间" :span="2">
            {{ formatDateTime(currentDraft.meetingTime) }}
          </el-descriptions-item>
          <el-descriptions-item label="创建时间">{{ currentDraft.createTime }}</el-descriptions-item>
          <el-descriptions-item label="创建时间">{{ formatDateOnly(currentDraft.createTime) }}</el-descriptions-item>
        </el-descriptions>
        <div class="content-section mt-20">
src/views/collaborativeApproval/notificationManagement/meetExamine/index.vue
@@ -102,9 +102,7 @@
              {{ getStatusText(currentMeeting.status) }}
            </el-tag>
          </el-descriptions-item>
          <el-descriptions-item label="申请时间" label-class-name="nowrap-label">{{
              currentMeeting.createTime
            }}</el-descriptions-item>
          <el-descriptions-item label="申请时间" label-class-name="nowrap-label">{{ formatDateOnly(currentMeeting.createTime) }}</el-descriptions-item>
          <el-descriptions-item style="max-height: 400px" label="会议说明" :span="2"
                                label-class-name="nowrap-label">{{ currentMeeting.description }}</el-descriptions-item>
        </el-descriptions>
src/views/collaborativeApproval/notificationManagement/meetIndex/index.vue
@@ -50,7 +50,7 @@
                >
                  <div v-if="cell.type === 'meeting'" class="meeting-content">
                    <div class="meeting-title">{{ cell.meeting.title }}</div>
                    <div class="meeting-time">{{ cell.startTime }}-{{ cell.endTime }}</div>
                    <div class="meeting-time">{{ formatDateOnly(cell.startTime) }}-{{ formatDateOnly(cell.endTime) }}</div>
                  </div>
                  <div v-else class="free-content">
                    ç©ºé—²
@@ -73,7 +73,7 @@
        <el-descriptions :column="1" border>
          <el-descriptions-item label="会议主题">{{ currentMeeting.title }}</el-descriptions-item>
          <el-descriptions-item label="会议室">{{ currentMeeting.room }}</el-descriptions-item>
          <el-descriptions-item label="会议时间">{{ currentMeeting.time }}</el-descriptions-item>
          <el-descriptions-item label="会议时间">{{ formatDateOnly(currentMeeting.time) }}</el-descriptions-item>
          <el-descriptions-item label="主持人">{{ currentMeeting.host }}</el-descriptions-item>
          <el-descriptions-item label="参会人数">{{ currentMeeting.participants }}人</el-descriptions-item>
          <el-descriptions-item label="会议说明">{{ currentMeeting.description }}</el-descriptions-item>
src/views/collaborativeApproval/notificationManagement/meetPublish/index.vue
@@ -100,9 +100,7 @@
              {{ getStatusText(currentMeeting.status) }}
            </el-tag>
          </el-descriptions-item>
          <el-descriptions-item label="申请时间" label-class-name="nowrap-label">{{
              currentMeeting.createTime
            }}</el-descriptions-item>
          <el-descriptions-item label="申请时间" label-class-name="nowrap-label">{{ formatDateOnly(currentMeeting.createTime) }}</el-descriptions-item>
          <el-descriptions-item style="max-height: 400px" label="会议说明" :span="2"
                                label-class-name="nowrap-label">{{ currentMeeting.description }}</el-descriptions-item>
        </el-descriptions>
src/views/collaborativeApproval/notificationManagement/summary/index.vue
@@ -86,9 +86,7 @@
              {{ getStatusText(currentMeeting.status) }}
            </el-tag>
          </el-descriptions-item>
          <el-descriptions-item label="申请时间" label-class-name="nowrap-label">{{
            currentMeeting.createTime
          }}</el-descriptions-item>
          <el-descriptions-item label="申请时间" label-class-name="nowrap-label">{{ formatDateOnly(currentMeeting.createTime) }}</el-descriptions-item>
          <el-descriptions-item style="max-height: 400px" label="会议说明" :span="2"
            label-class-name="nowrap-label">{{ currentMeeting.description }}</el-descriptions-item>
        </el-descriptions>
@@ -332,7 +330,9 @@
// æ ¼å¼åŒ–日期时间
const formatDateTime = (dateTime) => {
  if (!dateTime) return ''
  return dateTime.replace(' ', '\n')
  const matched = String(dateTime).match(/^(\d{4})[-/](\d{1,2})[-/](\d{1,2})/)
  if (!matched) return dateTime
  return `${matched[1]}-${matched[2].padStart(2, '0')}-${matched[3].padStart(2, '0')}`
}
// é¡µé¢åŠ è½½æ—¶èŽ·å–æ•°æ®
src/views/collaborativeApproval/officeSupplies/index.vue
@@ -239,11 +239,11 @@
            {{ getStatusText(currentDetail.status) }}
          </el-tag>
        </el-descriptions-item>
        <el-descriptions-item label="申请时间">{{ currentDetail.applyTime }}</el-descriptions-item>
        <el-descriptions-item label="申请时间">{{ formatDateOnly(currentDetail.applyTime) }}</el-descriptions-item>
        <el-descriptions-item label="审批人">{{ currentDetail.approval || '-' }}</el-descriptions-item>
        <el-descriptions-item label="审批时间">{{ currentDetail.approvalTime || '-' }}</el-descriptions-item>
        <el-descriptions-item label="审批时间">{{ formatDateOnly(currentDetail.approvalTime || '-') }}</el-descriptions-item>
        <el-descriptions-item label="审批意见" :span="2">{{ currentDetail.approvalOpinions || '-' }}</el-descriptions-item>
        <el-descriptions-item label="发放时间">{{ currentDetail.issueTime || '-' }}</el-descriptions-item>
        <el-descriptions-item label="发放时间">{{ formatDateOnly(currentDetail.issueTime || '-') }}</el-descriptions-item>
        <el-descriptions-item label="发放人">{{ currentDetail.issueUser || '-' }}</el-descriptions-item>
      </el-descriptions>
    </el-dialog>
src/views/collaborativeApproval/planTemplate/index.vue
@@ -144,7 +144,7 @@
              <div class="plan-meta">
                <div class="meta-item">
                  <el-icon><Calendar /></el-icon>
                  <span>{{ plan.startDate }} - {{ plan.endDate }}</span>
                  <span>{{ formatDateOnly(plan.startDate) }} - {{ formatDateOnly(plan.endDate) }}</span>
                </div>
                <div class="meta-item">
                  <el-icon><User /></el-icon>
@@ -302,8 +302,8 @@
          <el-descriptions-item label="计划描述">{{ currentPlanDetail.description }}</el-descriptions-item>
          <el-descriptions-item label="计划级别">{{ getCurrentLevelText(currentPlanDetail.level) }}</el-descriptions-item>
          <el-descriptions-item label="时间周期">{{ getCurrentPeriodText(currentPlanDetail.period) }}</el-descriptions-item>
          <el-descriptions-item label="开始时间">{{ currentPlanDetail.startDate }}</el-descriptions-item>
          <el-descriptions-item label="结束时间">{{ currentPlanDetail.endDate }}</el-descriptions-item>
          <el-descriptions-item label="开始时间">{{ formatDateOnly(currentPlanDetail.startDate) }}</el-descriptions-item>
          <el-descriptions-item label="结束时间">{{ formatDateOnly(currentPlanDetail.endDate) }}</el-descriptions-item>
          <el-descriptions-item label="负责人">{{ currentPlanDetail.assignee }}</el-descriptions-item>
          <el-descriptions-item label="优先级">{{ getPriorityText(currentPlanDetail.priority) }}</el-descriptions-item>
          <el-descriptions-item label="标签">{{ currentPlanDetail.tags.join(', ') }}</el-descriptions-item>
src/views/collaborativeApproval/reportGeneration/index.vue
@@ -65,8 +65,8 @@
        <el-descriptions :column="2" border>
          <el-descriptions-item label="项目名称">{{ reportData.projectInfo.name }}</el-descriptions-item>
          <el-descriptions-item label="项目经理">{{ reportData.projectInfo.manager }}</el-descriptions-item>
          <el-descriptions-item label="开始时间">{{ reportData.projectInfo.startDate }}</el-descriptions-item>
          <el-descriptions-item label="结束时间">{{ reportData.projectInfo.endDate }}</el-descriptions-item>
          <el-descriptions-item label="开始时间">{{ formatDateOnly(reportData.projectInfo.startDate) }}</el-descriptions-item>
          <el-descriptions-item label="结束时间">{{ formatDateOnly(reportData.projectInfo.endDate) }}</el-descriptions-item>
          <el-descriptions-item label="项目状态">
            <el-tag :type="getStatusType(reportData.projectInfo.status)">
              {{ reportData.projectInfo.status }}
src/views/collaborativeApproval/rulesRegulationsManagement/index.vue
@@ -144,7 +144,7 @@
          <el-descriptions-item label="分类">{{ getCategoryText(currentRegulationDetail.category) }}</el-descriptions-item>
          <el-descriptions-item label="版本">{{ currentRegulationDetail.version }}</el-descriptions-item>
          <el-descriptions-item label="发布人">{{ currentRegulationDetail.createUserName }}</el-descriptions-item>
          <el-descriptions-item label="发布时间">{{ currentRegulationDetail.createTime }}</el-descriptions-item>
          <el-descriptions-item label="发布时间">{{ formatDateOnly(currentRegulationDetail.createTime) }}</el-descriptions-item>
        </el-descriptions>
        <div class="mt-20">
          <h4>制度内容</h4>
src/views/collaborativeApproval/sealManagement/index.vue
@@ -118,7 +118,7 @@
          <el-descriptions-item label="申请人">{{ currentSealDetail.createUserName }}</el-descriptions-item>
          <el-descriptions-item label="所属部门">{{ currentSealDetail.department }}</el-descriptions-item>
          <el-descriptions-item label="用印类型">{{ getSealTypeText(currentSealDetail.sealType) }}</el-descriptions-item>
          <el-descriptions-item label="申请时间">{{ currentSealDetail.createTime }}</el-descriptions-item>
          <el-descriptions-item label="申请时间">{{ formatDateOnly(currentSealDetail.createTime) }}</el-descriptions-item>
          <el-descriptions-item label="状态">
            <el-tag :type="getStatusType(currentSealDetail.status)">
              {{ getStatusText(currentSealDetail.status) }}
src/views/energyManagement/energyCockpit/index.vue
@@ -4,7 +4,7 @@
    <div class="page-header">
      <h2>能源驾驶舱</h2>
      <div class="header-info">
        <span class="update-time">最后更新:{{ lastUpdateTime }}</span>
        <span class="update-time">最后更新:{{ formatDateOnly(lastUpdateTime) }}</span>
        <el-button type="primary" size="small" @click="refreshData">
          <el-icon><Refresh /></el-icon>
          åˆ·æ–°æ•°æ®
@@ -202,7 +202,7 @@
                <div class="abnormal-content">
                  <div class="abnormal-title">{{ item.title }}</div>
                  <div class="abnormal-desc">{{ item.description }}</div>
                  <div class="abnormal-time">{{ item.time }}</div>
                  <div class="abnormal-time">{{ formatDateOnly(item.time) }}</div>
                </div>
                <div class="abnormal-action">
                  <el-button link size="small" @click="handleAbnormal(item)">处理</el-button>
src/views/energyManagement/gasManagement/index.vue
@@ -4,7 +4,7 @@
    <div class="page-header">
      <h2>用气管理系统</h2>
      <div class="header-info">
        <span class="update-time">最后更新:{{ lastUpdateTime }}</span>
        <span class="update-time">最后更新:{{ formatDateOnly(lastUpdateTime) }}</span>
        <el-button type="primary" size="small" @click="refreshData">
          <el-icon><Refresh /></el-icon>
          åˆ·æ–°æ•°æ®
src/views/energyManagement/meterCollection/index.vue
@@ -174,7 +174,7 @@
         <el-col :span="12">
           <div class="detail-item">
             <label>最后更新时间:</label>
             <span>{{ currentMeter.lastUpdateTime }}</span>
             <span>{{ formatDateOnly(currentMeter.lastUpdateTime) }}</span>
           </div>
         </el-col>
       </el-row>
src/views/equipmentManagement/deviceInfo/index.vue
@@ -35,11 +35,11 @@
         <div class="maintenance-info">
           <div class="maintenance-item">
             <span class="label">最后维护:</span>
             <span class="value">{{ deviceInfo.updateTime }}</span>
             <span class="value">{{ formatDateOnly(deviceInfo.updateTime) }}</span>
           </div>
           <div class="maintenance-item">
             <span class="label">下次维护:</span>
             <span class="value">{{ deviceInfo.createTime }}</span>
             <span class="value">{{ formatDateOnly(deviceInfo.createTime) }}</span>
           </div>
           <div class="maintenance-item">
             <span class="label">维护状态:</span>
src/views/equipmentManagement/gasTank/simple.vue
@@ -119,7 +119,7 @@
        <div class="maintenance-list">
          <div class="maintenance-item" v-for="record in maintenanceRecords" :key="record.id">
            <div class="record-header">
              <span class="record-date">{{ record.date }}</span>
              <span class="record-date">{{ formatDateOnly(record.date) }}</span>
              <el-tag :type="record.type === 'inspection' ? 'primary' : 'success'" size="small">
                {{ record.type === 'inspection' ? '检验' : '维护' }}
              </el-tag>
src/views/equipmentManagement/inspectionManagement/index.vue
@@ -197,7 +197,7 @@
      formatData: cell => {
        if (!cell) return "-";
        try {
          return dayjs(cell).format("YYYY-MM-DD HH:mm:ss");
          return dayjs(cell).format("YYYY-MM-DD");
        } catch {
          return cell;
        }
src/views/equipmentManagement/ledger/index.vue
@@ -127,7 +127,7 @@
        <el-descriptions-item label="含税总价">{{ detailData.taxIncludingPriceTotal }}</el-descriptions-item>
        <el-descriptions-item label="税率(%)">{{ detailData.taxRate }}</el-descriptions-item>
        <el-descriptions-item label="不含税总价">{{ detailData.unTaxIncludingPriceTotal }}</el-descriptions-item>
        <el-descriptions-item label="录入日期">{{ detailData.createTime }}</el-descriptions-item>
        <el-descriptions-item label="录入日期">{{ formatDateOnly(detailData.createTime) }}</el-descriptions-item>
        <el-descriptions-item label="预计运行时间">{{ detailData.planRuntimeTime ? dayjs(detailData.planRuntimeTime).format('YYYY-MM-DD') : '' }}</el-descriptions-item>
        <el-descriptions-item label="设备图片" :span="2">
          <div v-if="detailData.storageBlobVOs && detailData.storageBlobVOs.length > 0" style="display: flex; gap: 10px; flex-wrap: wrap;">
src/views/equipmentManagement/operationManagement/index.vue
@@ -74,7 +74,7 @@
          align="center"
        >
          <template #default="scope">
            {{ scope.row.planRuntimeTime || '-' }}
            {{ formatDateOnly(scope.row.planRuntimeTime || '-') }}
          </template>
        </el-table-column>
        <el-table-column
@@ -84,7 +84,7 @@
          align="center"
        >
          <template #default="scope">
            {{ scope.row.startRuntimeTime || '-' }}
            {{ formatDateOnly(scope.row.startRuntimeTime || '-') }}
          </template>
        </el-table-column>
        <el-table-column
@@ -94,7 +94,7 @@
          align="center"
        >
          <template #default="scope">
            {{ scope.row.endRuntimeTime || '-' }}
            {{ formatDateOnly(scope.row.endRuntimeTime || '-') }}
          </template>
        </el-table-column>
        <el-table-column
src/views/equipmentManagement/upkeep/index.vue
@@ -348,8 +348,7 @@
      prop: "registrationDate",
      label: "登记日期",
      minWidth: 100,
      formatData: cell =>
        cell ? dayjs(cell).format("YYYY-MM-DD HH:mm:ss") : "-",
      formatData: cell => (cell ? dayjs(cell).format("YYYY-MM-DD") : "-"),
    },
    {
      fixed: "right",
@@ -408,8 +407,7 @@
      label: "实际保养日期",
      align: "center",
      prop: "maintenanceActuallyTime",
      formatData: cell =>
        cell ? dayjs(cell).format("YYYY-MM-DD HH:mm:ss") : "-",
      formatData: cell => (cell ? dayjs(cell).format("YYYY-MM-DD") : "-"),
    },
    {
      label: "保养结果",
src/views/fileManagement/bookshelf/detail.vue
@@ -16,7 +16,7 @@
        <el-descriptions :column="2" border>
          <el-descriptions-item label="图书编号">{{ current.docNumber }}</el-descriptions-item>
          <el-descriptions-item label="图书名称">{{ current.docName }}</el-descriptions-item>
          <el-descriptions-item label="入库时间">{{ current.createTime }}</el-descriptions-item>
          <el-descriptions-item label="入库时间">{{ formatDateOnly(current.createTime) }}</el-descriptions-item>
          <!-- <el-descriptions-item label="当前位置">{{ current.currentLocation }}</el-descriptions-item> -->
          <el-descriptions-item label="状态">{{ current.docStatus }}</el-descriptions-item>
        </el-descriptions>
src/views/fileManagement/document/attachmentManager.vue
@@ -39,7 +39,7 @@
          </el-table-column>
          <el-table-column label="上传时间" prop="uploadTime" width="160" align="center">
            <template #default="scope">
              {{ formatDate(scope.row.uploadTime) }}
              {{ formatDateOnly(formatDate(scope.row.uploadTime)) }}
            </template>
          </el-table-column>
          <el-table-column label="状态" prop="status" width="80" align="center">
src/views/index.vue
@@ -13,7 +13,7 @@
        </div>
      </div>
      <div class="welcome-meta">
        <div class="meta-time digital-number">{{ nowTime }}</div>
        <div class="meta-time digital-number">{{ formatDateOnly(nowTime) }}</div>
        <div class="meta-tip">MES / MOM ç”Ÿäº§è¿è¥é©¾é©¶èˆ±</div>
      </div>
    </section>
@@ -222,7 +222,7 @@
            <li v-for="item in todoList" :key="item.id" class="todo-item">
              <div class="todo-head">
                <span class="todo-no">待办编号:{{ item.approveId }}</span>
                <span class="todo-time">{{ item.approveTime }}</span>
                <span class="todo-time">{{ formatDateOnly(item.approveTime) }}</span>
              </div>
              <div class="todo-desc">部门:{{ item.approveDeptName }}</div>
              <div class="todo-desc">事由:{{ item.approveReason }}</div>
@@ -289,7 +289,7 @@
              </div>
              <div class="plan-meta">
                <span>计划 {{ item.planQty }}</span>
                <span>交期 {{ item.deliveryDate }}</span>
                <span>交期 {{ formatDateOnly(item.deliveryDate) }}</span>
              </div>
            </li>
          </ul>
src/views/monitor/job/index.vue
@@ -242,7 +242,7 @@
               </el-col>
               <el-col :span="12">
                  <el-form-item label="任务分组:">{{ jobGroupFormat(form) }}</el-form-item>
                  <el-form-item label="创建时间:">{{ form.createTime }}</el-form-item>
                  <el-form-item label="创建时间:">{{ formatDateOnly(form.createTime) }}</el-form-item>
               </el-col>
               <el-col :span="12">
                  <el-form-item label="cron表达式:">{{ form.cronExpression }}</el-form-item>
src/views/monitor/job/log.vue
@@ -142,7 +142,7 @@
               </el-col>
               <el-col :span="12">
                  <el-form-item label="任务分组:">{{ form.jobGroup }}</el-form-item>
                  <el-form-item label="执行时间:">{{ form.createTime }}</el-form-item>
                  <el-form-item label="执行时间:">{{ formatDateOnly(form.createTime) }}</el-form-item>
               </el-col>
               <el-col :span="24">
                  <el-form-item label="调用方法:">{{ form.invokeTarget }}</el-form-item>
src/views/monitorManagement/areaControl/index.vue
@@ -66,8 +66,8 @@
              </el-tag>
            </el-descriptions-item>
            <el-descriptions-item label="目标区域">{{ accessResult.zone.name }}</el-descriptions-item>
            <el-descriptions-item label="最近培训">{{ accessResult.person.training.lastDate }}</el-descriptions-item>
            <el-descriptions-item label="适岗证有效期">{{ accessResult.person.training.expireDate }}</el-descriptions-item>
            <el-descriptions-item label="最近培训">{{ formatDateOnly(accessResult.person.training.lastDate) }}</el-descriptions-item>
            <el-descriptions-item label="适岗证有效期">{{ formatDateOnly(accessResult.person.training.expireDate) }}</el-descriptions-item>
            <el-descriptions-item label="准入结果">
              <el-tag :type="accessResult.allowed ? 'success' : 'danger'">{{ accessResult.allowed ? '允许进入' : '禁止进入' }}</el-tag>
            </el-descriptions-item>
src/views/monitorManagement/videoMonitor/index.vue
@@ -341,7 +341,7 @@
          <el-descriptions :column="1" border size="small">
            <el-descriptions-item label="抓拍时间">
              <el-icon><Clock /></el-icon>
              {{ currentSnapshot.time }}
              {{ formatDateOnly(currentSnapshot.time) }}
            </el-descriptions-item>
            <el-descriptions-item label="工号">
              <el-icon><User /></el-icon>
src/views/officeProcessAutomation/ApproveManage/approve-list/components/ApproveDetailPanel.vue
@@ -50,7 +50,7 @@
            <el-descriptions-item label="发货订单号">{{ detailData.shippingInfo.shippingNo || "--" }}</el-descriptions-item>
            <el-descriptions-item label="客户名称">{{ detailData.shippingInfo.customerName || "--" }}</el-descriptions-item>
            <el-descriptions-item label="发货类型">{{ detailData.shippingInfo.type || "--" }}</el-descriptions-item>
            <el-descriptions-item label="发货日期">{{ detailData.shippingInfo.shippingDate || "--" }}</el-descriptions-item>
            <el-descriptions-item label="发货日期">{{ formatDateOnly(detailData.shippingInfo.shippingDate || "--") }}</el-descriptions-item>
            <el-descriptions-item label="审核状态">{{ detailData.shippingInfo.status || "--" }}</el-descriptions-item>
            <el-descriptions-item label="发货车牌号">{{ detailData.shippingInfo.shippingCarNumber || "--" }}</el-descriptions-item>
          </el-descriptions>
@@ -78,8 +78,8 @@
            <el-descriptions-item label="供应商名称">{{ detailData.supplierName || "--" }}</el-descriptions-item>
            <el-descriptions-item label="项目名称">{{ detailData.projectName || "--" }}</el-descriptions-item>
            <el-descriptions-item label="销售合同号">{{ detailData.salesContractNo || "--" }}</el-descriptions-item>
            <el-descriptions-item label="签订日期">{{ detailData.executionDate || "--" }}</el-descriptions-item>
            <el-descriptions-item label="录入日期">{{ detailData.entryDate || "--" }}</el-descriptions-item>
            <el-descriptions-item label="签订日期">{{ formatDateOnly(detailData.executionDate || "--") }}</el-descriptions-item>
            <el-descriptions-item label="录入日期">{{ formatDateOnly(detailData.entryDate || "--") }}</el-descriptions-item>
            <el-descriptions-item label="付款方式">{{ detailData.paymentMethod || "--" }}</el-descriptions-item>
            <el-descriptions-item label="合同金额" :span="2">
              <span style="font-size: 18px; color: #e6a23c; font-weight: bold;">
@@ -115,8 +115,8 @@
            <el-descriptions-item label="报价单号">{{ detailData.quotationNo || "--" }}</el-descriptions-item>
            <el-descriptions-item label="客户名称">{{ detailData.customer || "--" }}</el-descriptions-item>
            <el-descriptions-item label="业务员">{{ detailData.salesperson || "--" }}</el-descriptions-item>
            <el-descriptions-item label="报价日期">{{ detailData.quotationDate || "--" }}</el-descriptions-item>
            <el-descriptions-item label="有效期至">{{ detailData.validDate || "--" }}</el-descriptions-item>
            <el-descriptions-item label="报价日期">{{ formatDateOnly(detailData.quotationDate || "--") }}</el-descriptions-item>
            <el-descriptions-item label="有效期至">{{ formatDateOnly(detailData.validDate || "--") }}</el-descriptions-item>
            <el-descriptions-item label="付款方式">{{ detailData.paymentMethod || "--" }}</el-descriptions-item>
            <el-descriptions-item label="报价总额" :span="2">
              <span style="font-size: 18px; color: #e6a23c; font-weight: bold;">
src/views/officeProcessAutomation/ApproveManage/approve-template/approveTemplateConstants.js
@@ -159,16 +159,16 @@
  if (val == null || val === "") return "";
  if (Array.isArray(val) && val.length >= 3) {
    const [y, m, d, h = 0, min = 0, s = 0] = val;
    return dayjs(new Date(y, m - 1, d, h, min, s)).format("YYYY-MM-DD HH:mm:ss");
    return dayjs(new Date(y, m - 1, d, h, min, s)).format("YYYY-MM-DD");
  }
  if (typeof val === "number") {
    const d = val > 1e12 ? dayjs(val) : dayjs.unix(val);
    return d.isValid() ? d.format("YYYY-MM-DD HH:mm:ss") : "";
    return d.isValid() ? d.format("YYYY-MM-DD") : "";
  }
  const s = String(val).trim();
  if (!s) return "";
  const parsed = dayjs(s.includes("T") ? s : s.replace(/-/g, "/"));
  return parsed.isValid() ? parsed.format("YYYY-MM-DD HH:mm:ss") : s;
  return parsed.isValid() ? parsed.format("YYYY-MM-DD") : s;
}
export function formatDisplayTime(val) {
src/views/officeProcessAutomation/EnterpriseNews/news-manage/components/NewsDetailPanel.vue
@@ -22,7 +22,7 @@
    <el-descriptions-item label="编辑权限">{{ publishRoleLabel(row.editorRole) }}</el-descriptions-item>
    <el-descriptions-item label="审核角色">{{ publishRoleLabel(row.reviewerRole) }}</el-descriptions-item>
    <el-descriptions-item label="发布人">{{ row.publisherName || "—" }}</el-descriptions-item>
    <el-descriptions-item label="发布时间">{{ row.publishTime || "—" }}</el-descriptions-item>
    <el-descriptions-item label="发布时间">{{ formatDateOnly(row.publishTime || "—") }}</el-descriptions-item>
    <el-descriptions-item label="当前版本">v{{ row.versionNo || 1 }}</el-descriptions-item>
    <el-descriptions-item label="需阅读确认">
      {{ row.requireReadConfirm ? "是" : "否" }}
src/views/officeProcessAutomation/ReimburseManage/cost-reimburse/components/DetailPanel.vue
@@ -6,7 +6,7 @@
      <el-tag :type="statusTagType(row.approvalResult)" size="small">{{ statusLabel(row.approvalResult) }}</el-tag>
    </el-descriptions-item>
    <el-descriptions-item label="费用类型">{{ expenseCategoryLabel(row.expenseCategory) }}</el-descriptions-item>
    <el-descriptions-item label="申请时间">{{ row.applyTime || row.createTime || "—" }}</el-descriptions-item>
    <el-descriptions-item label="申请时间">{{ formatDateOnly(row.applyTime || row.createTime || "—") }}</el-descriptions-item>
    <el-descriptions-item label="员工编号">{{ row.employeeNo || row.applicantNo || "—" }}</el-descriptions-item>
    <el-descriptions-item label="员工姓名">{{ row.employeeName || row.applicantName || "—" }}</el-descriptions-item>
    <el-descriptions-item label="报销原因" :span="2">{{ row.reimburseReason || "—" }}</el-descriptions-item>
@@ -17,7 +17,7 @@
    <el-descriptions-item v-if="row.rejectReason" label="驳回原因" :span="2">
      <span class="reject-text">{{ row.rejectReason }}</span>
    </el-descriptions-item>
    <el-descriptions-item label="创建时间" :span="2">{{ row.createTime || "—" }}</el-descriptions-item>
    <el-descriptions-item label="创建时间" :span="2">{{ formatDateOnly(row.createTime || "—") }}</el-descriptions-item>
  </el-descriptions>
  <el-divider content-position="left">报销明细</el-divider>
src/views/officeProcessAutomation/ReimburseManage/cost-reimburse/index.vue
@@ -200,7 +200,7 @@
                  size="small"
                  style="width: 100%"
                />
                <span v-else>{{ row.invoiceDate || "—" }}</span>
                <span v-else>{{ formatDateOnly(row.invoiceDate || "—") }}</span>
              </template>
            </el-table-column>
            <el-table-column label="费用科目" width="130">
src/views/officeProcessAutomation/ReimburseManage/shared/finReimbursementMappers.js
@@ -292,14 +292,12 @@
  };
}
/** åˆ—表/详情时间展示(ISO â†’ YYYY-MM-DD HH:mm:ss) */
/** åˆ—表/详情时间展示(ISO â†’ YYYY-MM-DD,页面不展示时分秒) */
export function formatReimbursementDateTime(val) {
  if (val == null || val === "") return "";
  const d = dayjs(val);
  if (!d.isValid()) return String(val);
  const raw = String(val);
  const hasTime = raw.includes("T") || /:\d{2}/.test(raw);
  return hasTime ? d.format("YYYY-MM-DD HH:mm:ss") : d.format("YYYY-MM-DD");
  return d.format("YYYY-MM-DD");
}
/** æŽ¥å£è¡Œ â†’ å·®æ—…报销列表行(兼容 useTravelReimburse å­—段) */
src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/components/DetailPanel.vue
@@ -8,8 +8,8 @@
    <el-descriptions-item label="员工编号">{{ row.employeeNo || row.applicantNo || "—" }}</el-descriptions-item>
    <el-descriptions-item label="员工姓名">{{ row.employeeName || row.applicantName || "—" }}</el-descriptions-item>
    <el-descriptions-item label="报销原因" :span="2">{{ row.reimburseReason || "—" }}</el-descriptions-item>
    <el-descriptions-item label="出差开始">{{ row.travelStartTime || "—" }}</el-descriptions-item>
    <el-descriptions-item label="出差结束">{{ row.travelEndTime || "—" }}</el-descriptions-item>
    <el-descriptions-item label="出差开始">{{ formatDateOnly(row.travelStartTime || "—") }}</el-descriptions-item>
    <el-descriptions-item label="出差结束">{{ formatDateOnly(row.travelEndTime || "—") }}</el-descriptions-item>
    <el-descriptions-item label="出差地">{{ row.departurePlace || "—" }}</el-descriptions-item>
    <el-descriptions-item label="目的地">{{ row.destination || "—" }}</el-descriptions-item>
    <el-descriptions-item label="酒店标准">{{ row.hotelStandard != null ? `${row.hotelStandard} å…ƒ/晚` : "—" }}</el-descriptions-item>
@@ -25,7 +25,7 @@
    <el-descriptions-item v-if="row.rejectReason" label="驳回原因" :span="2">
      <span class="reject-text">{{ row.rejectReason }}</span>
    </el-descriptions-item>
    <el-descriptions-item label="创建时间" :span="2">{{ row.createTime || "—" }}</el-descriptions-item>
    <el-descriptions-item label="创建时间" :span="2">{{ formatDateOnly(row.createTime || "—") }}</el-descriptions-item>
  </el-descriptions>
  <el-divider content-position="left">报销明细</el-divider>
src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/index.vue
@@ -274,7 +274,7 @@
                size="small"
                style="width: 100%"
              />
              <span v-else>{{ row.invoiceDate || "—" }}</span>
              <span v-else>{{ formatDateOnly(row.invoiceDate || "—") }}</span>
            </template>
          </el-table-column>
          <el-table-column label="费用科目" width="130">
src/views/officeProcessAutomation/SysAdmin/user-manage/profile/index.vue
@@ -35,7 +35,7 @@
                     </li>
                     <li class="list-group-item">
                        <svg-icon icon-class="date" />创建日期
                        <div class="pull-right">{{ state.user.createTime }}</div>
                        <div class="pull-right">{{ formatDateOnly(state.user.createTime) }}</div>
                     </li>
                  </ul>
               </div>
src/views/personnelManagement/attendanceCheckin/index.vue
@@ -12,7 +12,7 @@
        <div class="attendance-actions">
          <div class="time-block">
            <div class="label">当前时间</div>
            <div class="value">{{ nowTime }}</div>
            <div class="value">{{ formatDateOnly(nowTime) }}</div>
          </div>
          <el-button type="primary"
                     size="large"
src/views/personnelManagement/employeeRecord/index.vue
@@ -54,7 +54,7 @@
          :total="page.total"
      >
        <template #positiveDate="{ row }">
          <span :class="getPositiveDateClass(row.positiveDate)">{{ row.positiveDate }}</span>
          <span :class="getPositiveDateClass(row.positiveDate)">{{ formatDateOnly(row.positiveDate) }}</span>
        </template>
      </PIMTable>
    </div>
src/views/personnelManagement/monthlyStatistics/index.vue
@@ -100,7 +100,7 @@
          <el-descriptions-item label="工资月份">{{ issueRecordRow.salaryMonth }}</el-descriptions-item>
          <el-descriptions-item label="工资总额">{{ formatAmount(issueRecordRow.totalSalary) }}</el-descriptions-item>
          <el-descriptions-item label="发放银行">{{ issueRecordRow.payBank || "-" }}</el-descriptions-item>
          <el-descriptions-item label="发放时间">{{ issueRecordRow.payTime || "-" }}</el-descriptions-item>
          <el-descriptions-item label="发放时间">{{ formatDateOnly(issueRecordRow.payTime || "-") }}</el-descriptions-item>
          <el-descriptions-item label="审核人">{{ issueRecordRow.auditUserName || "-" }}</el-descriptions-item>
          <el-descriptions-item label="备注" :span="2">{{ issueRecordRow.remark || "-" }}</el-descriptions-item>
        </el-descriptions>
src/views/personnelManagement/selfService/index.vue
@@ -114,7 +114,7 @@
          <el-descriptions-item label="工号">{{ profile.employeeId }}</el-descriptions-item>
          <el-descriptions-item label="部门">{{ profile.department }}</el-descriptions-item>
          <el-descriptions-item label="职位">{{ profile.position }}</el-descriptions-item>
          <el-descriptions-item label="入职日期">{{ profile.hireDate }}</el-descriptions-item>
          <el-descriptions-item label="入职日期">{{ formatDateOnly(profile.hireDate) }}</el-descriptions-item>
          <el-descriptions-item label="联系电话">{{ profile.phone }}</el-descriptions-item>
          <el-descriptions-item label="邮箱">{{ profile.email }}</el-descriptions-item>
          <el-descriptions-item label="地址">{{ profile.adress }}</el-descriptions-item>
src/views/procurementManagement/purchaseReturnOrder/index.vue
@@ -120,12 +120,8 @@
          <el-descriptions-item label="创建人">{{
            detailData.createUserName || "--"
          }}</el-descriptions-item>
          <el-descriptions-item label="创建时间">{{
            detailData.createTime || "--"
          }}</el-descriptions-item>
          <el-descriptions-item label="最近更新时间">{{
            detailData.updateTime || "--"
          }}</el-descriptions-item>
          <el-descriptions-item label="创建时间">{{ formatDateOnly(detailData.createTime || "--") }}</el-descriptions-item>
          <el-descriptions-item label="最近更新时间">{{ formatDateOnly(detailData.updateTime || "--") }}</el-descriptions-item>
          <el-descriptions-item label="备注" :span="3">{{
            detailData.remark || "--"
          }}</el-descriptions-item>
src/views/procurementManagement/thePaymentLedger/index.vue
@@ -55,8 +55,7 @@
  {
    label: "登记日期",
    prop: "registrationtDate",
    formatData: cell =>
      cell ? dayjs(cell).format("YYYY-MM-DD HH:mm:ss") : "-",
    formatData: cell => (cell ? dayjs(cell).format("YYYY-MM-DD") : "-"),
  },
]);
const tableData = ref([]);
src/views/productionManagement/safetyMonitoring/index.vue
@@ -132,7 +132,7 @@
                        <h4>系统日志</h4>
                        <div class="log-container">
                            <div class="log-item" v-for="log in systemLogs" :key="log.id">
                                <span class="log-time">{{ log.time }}</span>
                                <span class="log-time">{{ formatDateOnly(log.time) }}</span>
                                <span class="log-content">{{ log.content }}</span>
                            </div>
                        </div>
@@ -204,7 +204,7 @@
            <div class="blockchain-details">
                <el-descriptions :column="2" border>
                    <el-descriptions-item label="事件ID">{{ currentEvent.id }}</el-descriptions-item>
                    <el-descriptions-item label="时间戳">{{ currentEvent.timestamp }}</el-descriptions-item>
                    <el-descriptions-item label="时间戳">{{ formatDateOnly(currentEvent.timestamp) }}</el-descriptions-item>
                    <el-descriptions-item label="位置">{{ currentEvent.location }}</el-descriptions-item>
                    <el-descriptions-item label="事件类型">{{ currentEvent.type }}</el-descriptions-item>
                </el-descriptions>
src/views/productionManagement/workOrder/index.vue
@@ -117,11 +117,11 @@
            </div> -->
            <div class="info-item">
              <span class="info-label">计划开始时间</span>
              <span class="info-value">{{ transferCardRowData.planStartTime }}</span>
              <span class="info-value">{{ formatDateOnly(transferCardRowData.planStartTime) }}</span>
            </div>
            <div class="info-item">
              <span class="info-label">计划结束时间</span>
              <span class="info-value">{{ transferCardRowData.planEndTime }}</span>
              <span class="info-value">{{ formatDateOnly(transferCardRowData.planEndTime) }}</span>
            </div>
            <div class="info-item">
              <span class="info-label">备注</span>
@@ -147,11 +147,11 @@
            </div>
            <div class="info-item">
              <span class="info-label">实际开始时间</span>
              <span class="info-value">{{ transferCardRowData.actualStartTime }}</span>
              <span class="info-value">{{ formatDateOnly(transferCardRowData.actualStartTime) }}</span>
            </div>
            <div class="info-item">
              <span class="info-label">实际结束时间</span>
              <span class="info-value">{{ transferCardRowData.actualEndTime }}</span>
              <span class="info-value">{{ formatDateOnly(transferCardRowData.actualEndTime) }}</span>
            </div>
          </div>
        </div>
src/views/productionManagement/workOrderManagement/index.vue
@@ -62,11 +62,11 @@
            </div>
            <div class="info-item">
              <span class="info-label">计划开始时间</span>
              <span class="info-value">{{ transferCardRowData.planStartTime }}</span>
              <span class="info-value">{{ formatDateOnly(transferCardRowData.planStartTime) }}</span>
            </div>
            <div class="info-item">
              <span class="info-label">计划结束时间</span>
              <span class="info-value">{{ transferCardRowData.planEndTime }}</span>
              <span class="info-value">{{ formatDateOnly(transferCardRowData.planEndTime) }}</span>
            </div>
            <div class="info-item">
              <span class="info-label">备注</span>
@@ -91,11 +91,11 @@
            </div>
            <div class="info-item">
              <span class="info-label">实际开始时间</span>
              <span class="info-value">{{ transferCardRowData.actualStartTime }}</span>
              <span class="info-value">{{ formatDateOnly(transferCardRowData.actualStartTime) }}</span>
            </div>
            <div class="info-item">
              <span class="info-label">实际结束时间</span>
              <span class="info-value">{{ transferCardRowData.actualEndTime }}</span>
              <span class="info-value">{{ formatDateOnly(transferCardRowData.actualEndTime) }}</span>
            </div>
          </div>
        </div>
src/views/productionPlan/productionPlan/components/PIMTable.vue
@@ -183,16 +183,20 @@
             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"
             :class="item.className || ''"
             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>
@@ -210,6 +214,7 @@
  import pagination from "../../../../components/PIMTable/Pagination.vue";
  import { ref, inject, getCurrentInstance } from "vue";
  import { ElMessage } from "element-plus";
  import { toDateOnly } from "@/utils/dateDisplay";
  // èŽ·å–å…¨å±€çš„ uploadHeader
  const { proxy } = getCurrentInstance();
src/views/projectManagement/Management/projectDetail.vue
@@ -25,7 +25,7 @@
            <el-descriptions-item label="客户ID">{{ info.clientId ?? '-' }}</el-descriptions-item>
            <el-descriptions-item label="父项目">{{ parentProjectLabel }}</el-descriptions-item>
            <el-descriptions-item label="项目类型">{{ projectTypeLabel }}</el-descriptions-item>
            <el-descriptions-item label="立项日期">{{ info.establishTime || '-' }}</el-descriptions-item>
            <el-descriptions-item label="立项日期">{{ formatDateOnly(info.establishTime || '-') }}</el-descriptions-item>
            <el-descriptions-item label="项目来源">{{ info.source || '-' }}</el-descriptions-item>
            <el-descriptions-item label="立项人">{{ info.managerName || '-' }}</el-descriptions-item>
            <el-descriptions-item label="业务员">{{ info.salesmanName || '-' }}</el-descriptions-item>
@@ -40,11 +40,11 @@
              <dict-tag :options="plan_status" :value="String(info.stage ?? '')" />
            </el-descriptions-item>
            <el-descriptions-item label="预计工期(天)">{{ estimatedDays }}</el-descriptions-item>
            <el-descriptions-item label="计划开始日期">{{ info.planStartTime || '-' }}</el-descriptions-item>
            <el-descriptions-item label="计划完成日期">{{ info.planEndTime || '-' }}</el-descriptions-item>
            <el-descriptions-item label="实际开始日期">{{ info.actualStartTime || '-' }}</el-descriptions-item>
            <el-descriptions-item label="实际完成日期">{{ info.actualEndTime || '-' }}</el-descriptions-item>
            <el-descriptions-item label="订单日期">{{ info.orderDate || '-' }}</el-descriptions-item>
            <el-descriptions-item label="计划开始日期">{{ formatDateOnly(info.planStartTime || '-') }}</el-descriptions-item>
            <el-descriptions-item label="计划完成日期">{{ formatDateOnly(info.planEndTime || '-') }}</el-descriptions-item>
            <el-descriptions-item label="实际开始日期">{{ formatDateOnly(info.actualStartTime || '-') }}</el-descriptions-item>
            <el-descriptions-item label="实际完成日期">{{ formatDateOnly(info.actualEndTime || '-') }}</el-descriptions-item>
            <el-descriptions-item label="订单日期">{{ formatDateOnly(info.orderDate || '-') }}</el-descriptions-item>
            <el-descriptions-item label="项目金额">{{ info.orderAmount ?? '-' }}</el-descriptions-item>
            <el-descriptions-item label="备注" :span="4">{{ info.remark || '-' }}</el-descriptions-item>
          </el-descriptions>
src/views/qualityManagement/afterSalesTraceability/index.vue
@@ -123,7 +123,7 @@
      <el-table-column label="联系方式" prop="contact" width="140" />
      <el-table-column label="反馈时间" prop="feedbackTime" width="160">
        <template #default="scope">
          <span>{{ scope.row.feedbackTime }}</span>
          <span>{{ formatDateOnly(scope.row.feedbackTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="问题描述" prop="problemDesc" show-overflow-tooltip />
src/views/qualityManagement/visualization/qualityDashboard.vue
@@ -19,7 +19,7 @@
              </div>
              <div class="right">
                <el-tag :type="statusTagType(item.status)" size="small">{{ statusLabel(item.status) }}</el-tag>
                <span class="time">{{ item.time }}</span>
                <span class="time">{{ formatDateOnly(item.time) }}</span>
              </div>
            </div>
          </div>
src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue
@@ -67,7 +67,7 @@
              >
                <div class="todo-title">申请类型:{{ item.approveTypeName }}</div>
                <div class="todo-division">申请部门:{{ item.approveDeptName }}</div>
                <div class="todo-time">{{ item.approveTime }}</div>
                <div class="todo-time">{{ formatDateOnly(item.approveTime) }}</div>
              </div>
              
            </div>
src/views/reportAnalysis/dataDashboard/index0.vue
@@ -172,7 +172,7 @@
     <div style="display: flex;justify-content: space-between;align-items: center;"> 
      <div class="todo-title">待办编号:{{item.approveId}}</div> 
      <div class="todo-division">部门:{{item.approveDeptName}}</div> 
      <div class="todo-time">{{item.approveTime}}</div>
      <div class="todo-time">{{ formatDateOnly(item.approveTime) }}</div>
     </div> 
     <div class="todo-division">待办事由:{{item.approveReason}}</div> 
    </div> 
src/views/reportAnalysis/qualityAnalysis/components/center-center.vue
@@ -16,7 +16,7 @@
            </div>
            <div class="warn-text" :title="item.title">{{ item.title }}</div>
            <div class="warn-action" @click.stop="openWarning(item)">查看</div>
            <div class="warn-date">{{ item.date }}</div>
            <div class="warn-date">{{ formatDateOnly(item.date) }}</div>
          </div>
        </div>
      </div>
src/views/reportAnalysis/safetyDashboard/components/center-top.vue
@@ -59,7 +59,7 @@
            </div>
            <div class="event-meta">
              <span>{{ item.location || '—' }}</span>
              <span>{{ item.eventTime }}</span>
              <span>{{ formatDateOnly(item.eventTime) }}</span>
            </div>
          </li>
        </ul>
src/views/safeProduction/accidentReportingRecord/index.vue
@@ -224,7 +224,7 @@
            <span>{{ currentKnowledge.accidentName }}</span>
          </el-descriptions-item>
          <el-descriptions-item label="事故发生时间">
            {{ currentKnowledge.happenTime }}
            {{ formatDateOnly(currentKnowledge.happenTime) }}
          </el-descriptions-item>
          <el-descriptions-item label="事故发生地点">
            {{ currentKnowledge.happenLocation }}
@@ -245,7 +245,7 @@
            {{ currentKnowledge.createUserName }}
          </el-descriptions-item>
          <el-descriptions-item label="上报时间">
            {{ currentKnowledge.createTime }}
            {{ formatDateOnly(currentKnowledge.createTime) }}
          </el-descriptions-item>
        </el-descriptions>
        <div class="detail-section">
src/views/safeProduction/dangerInvestigation/index.vue
@@ -296,7 +296,7 @@
          <span class="detail-title">{{ form.createUserName }}</span>
        </el-descriptions-item>
        <el-descriptions-item label="上报时间">
          <span class="detail-title">{{ form.createTime }}</span>
          <span class="detail-title">{{ formatDateOnly(form.createTime) }}</span>
        </el-descriptions-item>
        <el-descriptions-item label="整改责任人">
          <span class="detail-title">{{ form.rectifyUserName }}</span>
@@ -305,7 +305,7 @@
          <span class="detail-title">{{ form.rectifyUserMobile }}</span>
        </el-descriptions-item>
        <el-descriptions-item label="整改完成期限">
          <span class="detail-title">{{ form.rectifyTime }}</span>
          <span class="detail-title">{{ formatDateOnly(form.rectifyTime) }}</span>
        </el-descriptions-item>
      </el-descriptions>
      <div class="classtitle"
@@ -320,7 +320,7 @@
          <span class="detail-title">{{ form2.rectifyMeasures }}</span>
        </el-descriptions-item>
        <el-descriptions-item label="实际整改完成时间">
          <span class="detail-title">{{ form2.rectifyActualTime }}</span>
          <span class="detail-title">{{ formatDateOnly(form2.rectifyActualTime) }}</span>
        </el-descriptions-item>
      </el-descriptions>
      <div class="classtitle"
src/views/safeProduction/emergencyPlanReview/index.vue
@@ -187,7 +187,7 @@
            <span>{{ currentKnowledge.planCode }}</span>
          </el-descriptions-item>
          <el-descriptions-item label="发布生效时间">
            {{ currentKnowledge.publishTime }}
            {{ formatDateOnly(currentKnowledge.publishTime) }}
          </el-descriptions-item>
          <el-descriptions-item label="核心责任人">
            {{ currentKnowledge.coreResponsorUserName }}
src/views/safeProduction/hazardousMaterialsControl/index.vue
@@ -178,7 +178,7 @@
          <span>{{ form.applyPurpose }}</span>
        </el-descriptions-item>
        <el-descriptions-item label="领用时间">
          <span>{{ form.applyTime }}</span>
          <span>{{ formatDateOnly(form.applyTime) }}</span>
        </el-descriptions-item>
        <el-descriptions-item label="领用数量">
          <span>{{ form.applyQty }}</span>
@@ -192,7 +192,7 @@
        </el-descriptions-item>
        <el-descriptions-item v-if="dialogType === 'view' && form.returnTime"
                              label="归还时间">
          <span>{{ form.returnTime }}</span>
          <span>{{ formatDateOnly(form.returnTime) }}</span>
        </el-descriptions-item>
        <el-descriptions-item v-if="dialogType === 'view' && form.returnUserId"
                              label="归还情况说明">
src/views/safeProduction/safeWorkApproval/components/approvalDia.vue
@@ -98,8 +98,8 @@
                <el-descriptions-item label="报价单号">{{ currentQuotation.quotationNo }}</el-descriptions-item>
                <el-descriptions-item label="客户名称">{{ currentQuotation.customer }}</el-descriptions-item>
                <el-descriptions-item label="业务员">{{ currentQuotation.salesperson }}</el-descriptions-item>
                <el-descriptions-item label="报价日期">{{ currentQuotation.quotationDate }}</el-descriptions-item>
                <el-descriptions-item label="有效期至">{{ currentQuotation.validDate }}</el-descriptions-item>
                <el-descriptions-item label="报价日期">{{ formatDateOnly(currentQuotation.quotationDate) }}</el-descriptions-item>
                <el-descriptions-item label="有效期至">{{ formatDateOnly(currentQuotation.validDate) }}</el-descriptions-item>
                <el-descriptions-item label="付款方式">{{ currentQuotation.paymentMethod }}</el-descriptions-item>
                <el-descriptions-item label="报价总额"
                                      :span="2">
@@ -158,8 +158,8 @@
                <el-descriptions-item label="供应商名称">{{ currentPurchase.supplierName }}</el-descriptions-item>
                <el-descriptions-item label="项目名称">{{ currentPurchase.projectName }}</el-descriptions-item>
                <el-descriptions-item label="销售合同号">{{ currentPurchase.salesContractNo }}</el-descriptions-item>
                <el-descriptions-item label="签订日期">{{ currentPurchase.executionDate }}</el-descriptions-item>
                <el-descriptions-item label="录入日期">{{ currentPurchase.entryDate }}</el-descriptions-item>
                <el-descriptions-item label="签订日期">{{ formatDateOnly(currentPurchase.executionDate) }}</el-descriptions-item>
                <el-descriptions-item label="录入日期">{{ formatDateOnly(currentPurchase.entryDate) }}</el-descriptions-item>
                <el-descriptions-item label="付款方式">{{ currentPurchase.paymentMethod }}</el-descriptions-item>
                <el-descriptions-item label="合同金额"
                                      :span="2">
src/views/salesManagement/deliveryLedger/index.vue
@@ -278,9 +278,7 @@
          <el-descriptions-item label="发货类型">{{
            detailRow.type || "--"
          }}</el-descriptions-item>
          <el-descriptions-item label="发货日期">{{
            detailRow.shippingDate || "--"
          }}</el-descriptions-item>
          <el-descriptions-item label="发货日期">{{ formatDateOnly(detailRow.shippingDate || "--") }}</el-descriptions-item>
          <el-descriptions-item label="审核状态">{{
            getApprovalStatusText(detailRow.status)
          }}</el-descriptions-item>
src/views/salesManagement/returnOrder/components/detailDia.vue
@@ -15,7 +15,7 @@
        <el-descriptions-item v-if="String(detail.shippingType) === '1'" label="发货车牌号">{{ detail.truckPlateNo || "--" }}</el-descriptions-item>
        <!-- <el-descriptions-item label="项目名称">{{ detail.projectName }}</el-descriptions-item> -->
        <el-descriptions-item label="制单人">{{ detail.maker }}</el-descriptions-item>
        <el-descriptions-item label="制单时间">{{ detail.makeTime }}</el-descriptions-item>
        <el-descriptions-item label="制单时间">{{ formatDateOnly(detail.makeTime) }}</el-descriptions-item>
        <el-descriptions-item label="退货原因">{{ detail.returnReason }}</el-descriptions-item>
        <el-descriptions-item label="退款总额">{{ detail.refundAmount }}</el-descriptions-item>
      </el-descriptions>
src/views/salesManagement/salesLedger/index.vue
@@ -148,7 +148,7 @@
                <template #default="scope">
                  <div>
                    <div v-if="scope.row.shippingDate">
                      {{ scope.row.shippingDate }}
                      {{ formatDateOnly(scope.row.shippingDate) }}
                    </div>
                    <el-tag v-else type="info">- </el-tag>
                  </div>
@@ -938,7 +938,7 @@
                <div class="info-row">
                  <div>
                    <span class="label">发货日期:</span>
                    <span class="value">{{ formatDate(item.createTime) }}</span>
                    <span class="value">{{ formatDateOnly(formatDate(item.createTime)) }}</span>
                  </div>
                  <div>
                    <span class="label">发货车牌号:</span>
@@ -2533,17 +2533,14 @@
// æ ¼å¼åŒ–日期
const formatDate = (dateString) => {
  if (!dateString) return getCurrentDate();
  return dayjs(dateString).format("YYYY/MM/DD HH:mm:ss");
  return dayjs(dateString).format("YYYY/MM/DD");
};
// æ ¼å¼åŒ–日期时间
// æ ¼å¼åŒ–日期(打印用,不展示时分秒)
const formatDateTime = (date) => {
  const year = date.getFullYear();
  const month = String(date.getMonth() + 1).padStart(2, "0");
  const day = String(date.getDate()).padStart(2, "0");
  const hours = String(date.getHours()).padStart(2, "0");
  const minutes = String(date.getMinutes()).padStart(2, "0");
  const seconds = String(date.getSeconds()).padStart(2, "0");
  return `${year}/${month}/${day} ${hours}:${minutes}:${seconds}`;
  return `${year}/${month}/${day}`;
};
// è®¡ç®—产品总数量
const getTotalQuantity = (products) => {
src/views/salesManagement/salesQuotation/index.vue
@@ -260,8 +260,8 @@
        <el-descriptions-item label="报价单号">{{ currentQuotation.quotationNo }}</el-descriptions-item>
        <el-descriptions-item label="客户名称">{{ currentQuotation.customer }}</el-descriptions-item>
        <el-descriptions-item label="业务员">{{ currentQuotation.salesperson }}</el-descriptions-item>
        <el-descriptions-item label="报价日期">{{ currentQuotation.quotationDate }}</el-descriptions-item>
        <el-descriptions-item label="有效期至">{{ currentQuotation.validDate }}</el-descriptions-item>
        <el-descriptions-item label="报价日期">{{ formatDateOnly(currentQuotation.quotationDate) }}</el-descriptions-item>
        <el-descriptions-item label="有效期至">{{ formatDateOnly(currentQuotation.validDate) }}</el-descriptions-item>
        <el-descriptions-item label="付款方式">{{ currentQuotation.paymentMethod }}</el-descriptions-item>
<!--        <el-descriptions-item label="报价状态">-->
<!--          <el-tag :type="getStatusType(currentQuotation.status)">{{ currentQuotation.status }}</el-tag>-->
src/views/salesManagement/strategyControl/index.vue
@@ -63,7 +63,7 @@
            </el-table-column>
            <el-table-column prop="validPeriod" label="有效期" width="200">
              <template #default="scope">
                {{ scope.row.startDate }} è‡³ {{ scope.row.endDate }}
                {{ formatDateOnly(scope.row.startDate) }} è‡³ {{ formatDateOnly(scope.row.endDate) }}
              </template>
            </el-table-column>
            <el-table-column prop="status" label="状态" width="80">
src/views/system/appVersion/index.vue
@@ -12,12 +12,12 @@
      <el-table-column label="版本号" prop="version" align="center" width="120"/>
      <el-table-column label="创建时间" prop="createTime" align="center" width="170">
        <template #default="scope">
          <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}:{s}") }}</span>
          <span>{{ parseTime(scope.row.createTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="更新时间" prop="updateTime" align="center" width="170">
        <template #default="scope">
          <span>{{ parseTime(scope.row.updateTime, "{y}-{m}-{d} {h}:{i}:{s}") }}</span>
          <span>{{ parseTime(scope.row.updateTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="创建人" prop="createUser" align="center" width="100"/>
src/views/system/user/profile/index.vue
@@ -35,7 +35,7 @@
                     </li>
                     <li class="list-group-item">
                        <svg-icon icon-class="date" />创建日期
                        <div class="pull-right">{{ state.user.createTime }}</div>
                        <div class="pull-right">{{ formatDateOnly(state.user.createTime) }}</div>
                     </li>
                  </ul>
               </div>