src/components/PIMTable/PIMTable.vue
@@ -202,14 +202,11 @@ style="width: 100%" @click="goLink(scope.row, item.linkMethod)" > <span v-if="!item.formatData">{{ scope.row[item.prop] }}</span> <span>{{ formatters(scope.row[item.prop], item.formatData) }}</span> </div> <!-- 默认纯展示数据 --> <div v-else class="cell" style="width: 100%"> <span v-if="!item.formatData">{{ scope.row[item.prop] }}</span> <span v-else>{{ formatters(scope.row[item.prop], item.formatData) }}</span> <span>{{ formatters(scope.row[item.prop], item.formatData) }}</span> </div> </template> </el-table-column> @@ -228,6 +225,7 @@ import pagination from "./Pagination.vue"; import { ref, inject, getCurrentInstance } from "vue"; import { ElMessage } from "element-plus"; import { dateOnly } from "@/utils/ruoyi"; // 获取全局的 uploadHeader const { proxy } = getCurrentInstance(); @@ -242,7 +240,9 @@ }; const formatters = (val, format) => { return typeof format === "function" ? format(val) : val; if (typeof format === "function") return format(val); // 未显式指定格式化函数时:日期时间统一只显示年月日(非日期值原样返回) return dateOnly(val); }; // Props(使用 defineProps 的非 TS 形式) 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">{{ $d(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">{{ $d(item.createTime) }}</div> </div> </div> </div> src/main.js
@@ -29,6 +29,7 @@ import { useDict } from "@/utils/dict"; import { parseTime, dateOnly, resetForm, addDateRange, handleTree, @@ -68,6 +69,8 @@ app.config.globalProperties.useDict = useDict; app.config.globalProperties.download = download; app.config.globalProperties.parseTime = parseTime; // 全局日期显示(只显示年月日):模板里用 {{ $d(row.createTime) }} 或 :formatter="$d" app.config.globalProperties.$d = dateOnly; app.config.globalProperties.resetForm = resetForm; app.config.globalProperties.summarizeTable = summarizeTable; app.config.globalProperties.calculateTaxExclusiveTotalPrice = src/utils/index.js
@@ -1,27 +1,14 @@ import { parseTime } from "./ruoyi"; import { parseTime, dateOnly } 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 dateOnly(cellValue); } export { dateOnly }; /** * @param {number} time * @param {string} option src/utils/ruoyi.js
@@ -8,7 +8,8 @@ if (arguments.length === 0 || !time) { return null } const format = pattern || '{y}-{m}-{d} {h}:{i}:{s}' // 默认只显示年月日(不显示时分秒) const format = pattern || '{y}-{m}-{d}' let date if (typeof time === 'object') { date = time @@ -44,6 +45,26 @@ return time_str } /** * 只保留年月日的日期显示(页面统一不显示时分秒) * - 支持 el-table-column 的 :formatter="(row, column, cellValue, index)" 签名 * - 支持直接传值:$d('2026-05-20 10:20:30') 或 $d(row.createTime) * - 非日期值(数字/纯时间 '08:00:00'/空值/已格式化的 yyyy-MM-dd)一律原样返回,避免误伤「耗时/天数」等列 */ export function dateOnly(a, b, c) { const value = (c !== undefined && c !== null) ? c : a if (value === null || value === undefined || value === '') return '' // 只有字符串才需要裁剪日期;数字/布尔/对象/数组原样返回,交给 Vue 正常渲染(避免对象变成 [object Object]) if (typeof value !== 'string') return value const s = value // 其它格式:只取形如 2026-05-20 / 2026/5/20 开头的日期部分 const m = s.match(/^(\d{4})[-/](\d{1,2})[-/](\d{1,2})/) if (!m) return s const mm = m[2].length === 1 ? '0' + m[2] : m[2] const dd = m[3].length === 1 ? '0' + m[3] : m[3] return `${m[1]}-${mm}-${dd}` } // 表单重置 export function resetForm(refName) { if (this.$refs[refName]) { src/views/basicData/customerFile/index.vue
@@ -453,7 +453,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">{{ $d(detailForm.maintenanceTime) }}</span> </div> </el-col> </el-row> @@ -474,7 +474,7 @@ style="width: 100%"> <el-table-column prop="followUpTime" label="跟进时间" width="160" /> width="160" :formatter="$d" /> <el-table-column prop="followUpMethod" label="跟进方式" width="100" /> 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>{{ $d(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>{{ $d(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
@@ -90,8 +90,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="报价日期">{{ $d(currentQuotation.quotationDate) }}</el-descriptions-item> <el-descriptions-item label="有效期至">{{ $d(currentQuotation.validDate) }}</el-descriptions-item> <el-descriptions-item label="付款方式">{{ currentQuotation.paymentMethod }}</el-descriptions-item> <el-descriptions-item label="报价总额" :span="2"> <span style="font-size: 18px; color: #e6a23c; font-weight: bold;"> @@ -138,8 +138,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="签订日期">{{ $d(currentPurchase.executionDate) }}</el-descriptions-item> <el-descriptions-item label="录入日期">{{ $d(currentPurchase.entryDate) }}</el-descriptions-item> <el-descriptions-item label="付款方式">{{ currentPurchase.paymentMethod }}</el-descriptions-item> <el-descriptions-item label="合同金额" :span="2"> <span style="font-size: 18px; color: #e6a23c; font-weight: bold;"> src/views/collaborativeApproval/attendanceManagement/index.vue
@@ -13,8 +13,8 @@ <el-tag :type="getTagType(scope.row.type)">{{ getTypeLabel(scope.row.type) }}</el-tag> </template> </el-table-column> <el-table-column prop="startDate" label="开始日期" /> <el-table-column prop="endDate" label="结束日期" /> <el-table-column prop="startDate" label="开始日期" :formatter="$d" /> <el-table-column prop="endDate" label="结束日期" :formatter="$d" /> <el-table-column prop="days" label="天数" align="center" /> <el-table-column prop="status" label="状态" > <template #default="scope"> @@ -76,8 +76,8 @@ <el-tag :type="getTagType(scope.row.type)">{{ getTypeLabel(scope.row.type) }}</el-tag> </template> </el-table-column> <el-table-column prop="startTime" label="开始时间" /> <el-table-column prop="endTime" label="结束时间" /> <el-table-column prop="startTime" label="开始时间" :formatter="$d" /> <el-table-column prop="endTime" label="结束时间" :formatter="$d" /> <el-table-column prop="rate" label="倍率" align="center" /> <el-table-column prop="status" label="状态" > <template #default="scope"> @@ -103,8 +103,8 @@ <el-table :data="worktimeData" border style="width: 100%; margin-top: 20px;"> <el-table-column prop="name" label="时间段名称" /> <el-table-column prop="startTime" label="上班时间"/> <el-table-column prop="endTime" label="下班时间" /> <el-table-column prop="startTime" label="上班时间" :formatter="$d" /> <el-table-column prop="endTime" label="下班时间" :formatter="$d" /> <el-table-column prop="flexibleStart" label="弹性上班"> <template #default="scope"> <el-tag :type="scope.row.flexibleStart === 'true' ? 'success' : 'info'"> @@ -161,9 +161,9 @@ <el-table :data="filteredAttendanceData" border style="width: 100%;"> <el-table-column prop="employeeName" label="员工姓名" width="120" /> <el-table-column prop="department" label="部门" width="120" /> <el-table-column prop="date" label="日期" width="120" /> <el-table-column prop="clockInTime" label="上班打卡" width="120" /> <el-table-column prop="clockOutTime" label="下班打卡" width="120" /> <el-table-column prop="date" label="日期" width="120" :formatter="$d" /> <el-table-column prop="clockInTime" label="上班打卡" width="120" :formatter="$d" /> <el-table-column prop="clockOutTime" label="下班打卡" width="120" :formatter="$d" /> <el-table-column prop="workHours" label="工作时长" width="100" align="center" /> <el-table-column prop="status" label="状态" width="100" align="center"> <template #default="scope"> src/views/collaborativeApproval/customerVisit/index.vue
@@ -40,7 +40,7 @@ <el-table-column label="联系人" prop="contact" width="120" show-overflow-tooltip /> <el-table-column label="联系电话" prop="contactPhone" width="140" show-overflow-tooltip /> <el-table-column label="拜访目的" prop="purposeVisit" width="150" show-overflow-tooltip /> <el-table-column label="拜访时间" prop="purposeDate" width="180" show-overflow-tooltip /> <el-table-column label="拜访时间" prop="purposeDate" width="180" show-overflow-tooltip :formatter="$d" /> <el-table-column label="拜访地点" prop="visitAddress" min-width="200" show-overflow-tooltip /> <el-table-column label="拜访人" prop="visitingPeople" width="120" show-overflow-tooltip /> <el-table-column fixed="right" label="操作" width="100" align="center"> @@ -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">{{ $d(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 }} {{ $d(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">截止日期:{{ $d(notice.expirationDate) }}</span> </div> </div> <div class="card-remark" v-if="notice.remark"> src/views/collaborativeApproval/notificationManagement/meetDraft/index.vue
@@ -48,7 +48,7 @@ {{ scope.row.participants }}人 </template> </el-table-column> <el-table-column prop="createTime" label="创建时间" align="center" width="180" /> <el-table-column prop="createTime" label="创建时间" align="center" width="180" :formatter="$d" /> <el-table-column label="操作" align="center" width="200" fixed="right"> <template #default="scope"> <el-button type="primary" link @click="viewDraft(scope.row)">查看</el-button> @@ -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="创建时间">{{ $d(currentDraft.createTime) }}</el-descriptions-item> </el-descriptions> <div class="content-section mt-20"> src/views/collaborativeApproval/notificationManagement/meetExamine/index.vue
@@ -1,4 +1,4 @@ <template> <template> <div> <el-form :model="searchForm" inline> @@ -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">{{ $d(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> @@ -236,7 +234,7 @@ it.location = `${room.name}(${room.location})` let staffs = JSON.parse(it.participants) it.staffCount = staffs.size it.meetingTime = `${it.meetingDate} ${dayjs(it.startTime).format('HH:mm:ss')} ~ ${dayjs(it.endTime).format('HH:mm:ss')}` it.meetingTime = `${it.meetingDate}` it.participants = staffList.value.filter(staff => staffs.some(id=>id === staff.id)).map(staff => { return { id: staff.id, 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">{{ $d(cell.startTime) }}</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="会议时间">{{ $d(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
@@ -1,4 +1,4 @@ <template> <template> <div> <el-form :model="searchForm" inline> @@ -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">{{ $d(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> @@ -235,7 +233,7 @@ let staffs = JSON.parse(it.participants) it.staffCount = staffs.size it.status = it.publishStatus it.meetingTime = `${it.meetingDate} ${dayjs(it.startTime).format('HH:mm:ss')} ~ ${dayjs(it.endTime).format('HH:mm:ss')}` it.meetingTime = `${it.meetingDate}` it.participants = staffList.value.filter(staff => staffs.some(id=>id === staff.id)).map(staff => { return { id: staff.id, src/views/collaborativeApproval/notificationManagement/summary/index.vue
@@ -1,4 +1,4 @@ <template> <template> <div> <el-form :model="searchForm" inline> @@ -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">{{ $d(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> @@ -210,7 +208,7 @@ it.location = `${room.name}(${room.location})` let staffs = JSON.parse(it.participants) it.staffCount = staffs.size it.meetingTime = `${it.meetingDate} ${dayjs(it.startTime).format('HH:mm:ss')} ~ ${dayjs(it.endTime).format('HH:mm:ss')}` it.meetingTime = `${it.meetingDate}` it.participants = staffList.value.filter(staff => staffs.some(id => id === staff.id)).map(staff => { return { id: staff.id, src/views/collaborativeApproval/officeSupplies/index.vue
@@ -85,10 +85,10 @@ </el-tag> </template> </el-table-column> <el-table-column label="申请时间" align="center" prop="applyTime" width="180" /> <el-table-column label="申请时间" align="center" prop="applyTime" width="180" :formatter="$d" /> <el-table-column label="审批人" align="center" prop="approval" width="120" /> <el-table-column label="审批时间" align="center" prop="approvalTime" width="180" /> <el-table-column label="发放时间" align="center" prop="issueTime" width="180" /> <el-table-column label="审批时间" align="center" prop="approvalTime" width="180" :formatter="$d" /> <el-table-column label="发放时间" align="center" prop="issueTime" width="180" :formatter="$d" /> <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width" width="200"> <template #default="scope"> <el-button @@ -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="申请时间">{{ $d(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="审批时间">{{ $d(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="发放时间">{{ $d(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>{{ $d(plan.startDate) }} - {{ $d(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="开始时间">{{ $d(currentPlanDetail.startDate) }}</el-descriptions-item> <el-descriptions-item label="结束时间">{{ $d(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/processTracking/index.vue
@@ -54,8 +54,8 @@ <el-progress :percentage="row.progress" :status="getProgressStatus(row.status)" /> </template> </el-table-column> <el-table-column prop="startDate" label="开始时间" width="120" /> <el-table-column prop="endDate" label="结束时间" width="120" /> <el-table-column prop="startDate" label="开始时间" width="120" :formatter="$d" /> <el-table-column prop="endDate" label="结束时间" width="120" :formatter="$d" /> <el-table-column label="操作" width="150"> <template #default="{ row }"> <el-button type="text" @click="updateStatus(row)">更新状态</el-button> src/views/collaborativeApproval/purchaseApproval/index.vue
@@ -156,8 +156,7 @@ label="录入日期" prop="entryDate" width="100" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column fixed="right" label="操作" 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="开始时间">{{ $d(reportData.projectInfo.startDate) }}</el-descriptions-item> <el-descriptions-item label="结束时间">{{ $d(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
@@ -145,7 +145,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="发布时间">{{ $d(currentRegulationDetail.createTime) }}</el-descriptions-item> </el-descriptions> <div class="mt-20"> <h4>制度内容</h4> @@ -170,7 +170,7 @@ width="100" /> <el-table-column prop="updateTime" label="更新时间" width="180" /> width="180" :formatter="$d" /> <el-table-column prop="createUserName" label="更新人" width="120" /> @@ -198,10 +198,10 @@ width="150" /> <el-table-column prop="createTime" label="阅读时间" width="180" /> width="180" :formatter="$d" /> <el-table-column prop="confirmTime" label="确认时间" width="180" /> width="180" :formatter="$d" /> <el-table-column prop="status" label="状态" width="100"> src/views/collaborativeApproval/sealManagement/index.vue
@@ -111,7 +111,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="申请时间">{{ $d(currentSealDetail.createTime) }}</el-descriptions-item> <el-descriptions-item label="状态"> <el-tag :type="getStatusType(currentSealDetail.status)"> {{ getStatusText(currentSealDetail.status) }} src/views/demo/fakePage/index.vue
@@ -36,7 +36,7 @@ <el-tag :type="scope.row.status === '启用' ? 'success' : 'info'">{{ scope.row.status }}</el-tag> </template> </el-table-column> <el-table-column prop="updatedAt" label="更新时间" min-width="160" /> <el-table-column prop="updatedAt" label="更新时间" min-width="160" :formatter="$d" /> <el-table-column label="操作" width="180" fixed="right"> <template #default="scope"> <el-button link type="primary" @click="openEdit(scope.row)">编辑</el-button> src/views/energyManagement/dynamicEnergySaving/index.vue
@@ -154,7 +154,7 @@ </template> </el-table-column> <el-table-column prop="accuracy" label="准确率" /> <el-table-column prop="lastUpdate" label="最后更新" /> <el-table-column prop="lastUpdate" label="最后更新" :formatter="$d" /> <el-table-column label="操作"> <template #default="scope"> <el-button src/views/energyManagement/energyCockpit/index.vue
@@ -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">{{ $d(item.time) }}</div> </div> <div class="abnormal-action"> <el-button link size="small" @click="handleAbnormal(item)">处理</el-button> src/views/energyManagement/gasManagement/index.vue
@@ -177,7 +177,7 @@ </el-tag> </template> </el-table-column> <el-table-column label="最后更新" prop="lastUpdate" width="160" show-overflow-tooltip /> <el-table-column label="最后更新" prop="lastUpdate" width="160" show-overflow-tooltip :formatter="$d" /> <el-table-column label="操作" align="center" width="100" fixed="right"> <template #default="scope"> <el-button link size="small" @click="editDevice(scope.row)"> src/views/energyManagement/meterCollection/index.vue
@@ -79,7 +79,7 @@ </el-tag> </template> </el-table-column> <el-table-column prop="lastUpdateTime" label="最后更新时间" width="160" /> <el-table-column prop="lastUpdateTime" label="最后更新时间" width="160" :formatter="$d" /> <el-table-column label="操作" width="180" fixed="right" align="center"> <template #default="scope"> <el-button link @click="viewDetails(scope.row)"> @@ -174,7 +174,7 @@ <el-col :span="12"> <div class="detail-item"> <label>最后更新时间:</label> <span>{{ currentMeter.lastUpdateTime }}</span> <span>{{ $d(currentMeter.lastUpdateTime) }}</span> </div> </el-col> </el-row> src/views/equipmentManagement/attendanceManagement/index.vue
@@ -102,7 +102,7 @@ <el-table-column prop="deviceName" label="设备名称" width="160" show-overflow-tooltip /> <el-table-column prop="customerName" label="客户名称" width="180" show-overflow-tooltip /> <el-table-column prop="engineerName" label="维修工程师" width="120" /> <el-table-column prop="completeTime" label="维修完成时间" width="180" /> <el-table-column prop="completeTime" label="维修完成时间" width="180" :formatter="$d" /> <el-table-column prop="score" label="星级评分" width="140" align="center"> <template #default="scope"> <el-rate v-if="scope.row.score" v-model="scope.row.score" disabled /> 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">{{ $d(deviceInfo.updateTime) }}</span> </div> <div class="maintenance-item"> <span class="label">下次维护:</span> <span class="value">{{ deviceInfo.createTime }}</span> <span class="value">{{ $d(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">{{ $d(record.date) }}</span> <el-tag :type="record.type === 'inspection' ? 'primary' : 'success'" size="small"> {{ record.type === 'inspection' ? '检验' : '维护' }} </el-tag> src/views/equipmentManagement/operationManagement/index.vue
@@ -74,7 +74,7 @@ align="center" > <template #default="scope"> {{ scope.row.planRuntimeTime || '-' }} {{ $d(scope.row.planRuntimeTime) || '-' }} </template> </el-table-column> <el-table-column @@ -84,7 +84,7 @@ align="center" > <template #default="scope"> {{ scope.row.startRuntimeTime || '-' }} {{ $d(scope.row.startRuntimeTime) || '-' }} </template> </el-table-column> <el-table-column @@ -94,7 +94,7 @@ align="center" > <template #default="scope"> {{ scope.row.endRuntimeTime || '-' }} {{ $d(scope.row.endRuntimeTime) || '-' }} </template> </el-table-column> <el-table-column src/views/equipmentManagement/upkeep/index.vue
@@ -389,7 +389,7 @@ align: "center", prop: "maintenanceActuallyTime", formatData: (cell) => cell ? dayjs(cell).format("YYYY-MM-DD HH:mm:ss") : "-", 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="入库时间">{{ $d(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/financialManagement/salesRefund/components/ReceiptandRefundPopupWindow.vue
@@ -116,7 +116,7 @@ </div> </div> <el-table :data="form.sourceList" border> <el-table-column label="单据日期" minWidth="160" prop="billDate" /> <el-table-column label="单据日期" minWidth="160" prop="billDate" :formatter="$d" /> <el-table-column label="单据类型" minWidth="160" prop="billType" /> <el-table-column label="单据编号" minWidth="200" prop="billNo" /> <el-table-column label="单据金额" minWidth="120" prop="billAmount" /> src/views/financialManagement/salesRefund/index.vue
@@ -23,7 +23,7 @@ </template> </el-table-column> <el-table-column label="创建人" prop="createUserName" align="center" /> <el-table-column label="创建时间" prop="createTime" align="center" /> <el-table-column label="创建时间" prop="createTime" align="center" :formatter="$d" /> <el-table-column label="操作" align="center" width="150"> <template #default="scope"> <el-button link type="primary" @click="openDetail(scope.row)" style="color: #67C23A">详情</el-button> src/views/index.vue
@@ -11,7 +11,7 @@ <span class="welcome-user">{{ userStore.roleName || '系统管理员' }}</span> <span> 您好!祝您开心每一天</span> </div> <div class="welcome-time">登录于: {{ userStore.currentLoginTime }}</div> <div class="welcome-time">登录于: {{ $d(userStore.currentLoginTime) }}</div> </div> <!-- 用户信息卡片 --> @@ -82,7 +82,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">{{ $d(item.approveTime) }}</div> </div> <div class="todo-division">待办事由:{{ item.approveReason }}</div> </div> src/views/inventoryManagement/dispatchLog/Record.vue
@@ -54,8 +54,7 @@ <el-table-column label="出库日期" prop="createTime" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column label="产品大类" prop="productName" src/views/inventoryManagement/issueManagement/index.vue
@@ -29,7 +29,7 @@ :summary-method="summarizeMainTable" height="calc(100vh - 18.5em)"> <el-table-column align="center" type="selection" width="55" /> <el-table-column align="center" label="序号" type="index" width="60" /> <el-table-column label="入库时间" prop="createTime" width="100" show-overflow-tooltip /> <el-table-column label="入库时间" prop="createTime" width="100" show-overflow-tooltip :formatter="$d" /> <el-table-column label="入库批次" prop="inboundBatches" width="160" show-overflow-tooltip /> <el-table-column label="供应商名称" prop="supplierName" width="240" show-overflow-tooltip /> <el-table-column label="产品大类" prop="productCategory" width="100" show-overflow-tooltip /> src/views/inventoryManagement/receiptManagement/Record.vue
@@ -60,7 +60,7 @@ show-overflow-tooltip/> <el-table-column label="入库时间" prop="createTime" show-overflow-tooltip/> show-overflow-tooltip :formatter="$d" /> <el-table-column label="产品大类" prop="productName" show-overflow-tooltip/> src/views/inventoryManagement/stockManagement/Qualified.vue
@@ -30,12 +30,12 @@ <el-table-column label="冻结数量" prop="lockedQuantity" show-overflow-tooltip /> <el-table-column label="库存预警数量" prop="warnNum" show-overflow-tooltip /> <el-table-column label="备注" prop="remark" show-overflow-tooltip /> <el-table-column label="最近更新时间" prop="updateTime" show-overflow-tooltip /> <el-table-column fixed="right" label="操作" min-width="90" align="center"> <el-table-column label="最近更新时间" prop="updateTime" show-overflow-tooltip :formatter="$d" /> <el-table-column fixed="right" label="操作" min-width="60" align="center"> <template #default="scope"> <el-button link type="primary" @click="showSubtractModal(scope.row)" :disabled="scope.row.unLockedQuantity === 0">领用</el-button> <el-button link type="primary" v-if="scope.row.unLockedQuantity > 0" @click="showFrozenModal(scope.row)">冻结</el-button> <el-button link type="primary" v-if="scope.row.lockedQuantity > 0" @click="showThawModal(scope.row)">解冻</el-button> <el-button link type="primary" size="small" @click="showSubtractModal(scope.row)" :disabled="scope.row.unLockedQuantity === 0">领用</el-button> <el-button link type="primary" size="small" v-if="scope.row.unLockedQuantity > 0" @click="showFrozenModal(scope.row)">冻结</el-button> <el-button link type="primary" size="small" v-if="scope.row.lockedQuantity > 0" @click="showThawModal(scope.row)">解冻</el-button> </template> </el-table-column> </el-table> src/views/inventoryManagement/stockManagement/Unqualified.vue
@@ -26,12 +26,12 @@ <el-table-column label="库存数量" prop="qualitity" show-overflow-tooltip /> <el-table-column label="冻结数量" prop="lockedQuantity" show-overflow-tooltip /> <el-table-column label="备注" prop="remark" show-overflow-tooltip /> <el-table-column label="最近更新时间" prop="updateTime" show-overflow-tooltip /> <el-table-column fixed="right" label="操作" min-width="90" align="center"> <el-table-column label="最近更新时间" prop="updateTime" show-overflow-tooltip :formatter="$d" /> <el-table-column fixed="right" label="操作" min-width="60" align="center"> <template #default="scope"> <el-button link type="primary" @click="showSubtractModal(scope.row)" :disabled="scope.row.unLockedQuantity === 0">领用</el-button> <el-button link type="primary" v-if="scope.row.unLockedQuantity > 0" @click="showFrozenModal(scope.row)">冻结</el-button> <el-button link type="primary" v-if="scope.row.lockedQuantity > 0" @click="showThawModal(scope.row)">解冻</el-button> <el-button link type="primary" size="small" @click="showSubtractModal(scope.row)" :disabled="scope.row.unLockedQuantity === 0">领用</el-button> <el-button link type="primary" size="small" v-if="scope.row.unLockedQuantity > 0" @click="showFrozenModal(scope.row)">冻结</el-button> <el-button link type="primary" size="small" v-if="scope.row.lockedQuantity > 0" @click="showThawModal(scope.row)">解冻</el-button> </template> </el-table-column> </el-table> src/views/inventoryManagement/stockReport/index.vue
@@ -166,8 +166,7 @@ prop="createTime" width="200" show-overflow-tooltip v-if="searchForm.reportType !== 'inout'" /> v-if="searchForm.reportType !== 'inout'" :formatter="$d" /> <el-table-column label="入库批次" prop="inboundBatches" src/views/inventoryManagement/stockWarning/index.vue
@@ -96,10 +96,10 @@ </el-table-column> <!-- 时间相关字段 --> <el-table-column label="预警时间" prop="warningTime" width="150" show-overflow-tooltip /> <el-table-column label="预警时间" prop="warningTime" width="150" show-overflow-tooltip :formatter="$d" /> <el-table-column label="预警持续天数" prop="warningDuration" width="120" show-overflow-tooltip /> <el-table-column label="最后更新时间" prop="lastUpdateTime" width="150" show-overflow-tooltip /> <el-table-column label="预计充装时间" prop="expectedRefillTime" width="150" show-overflow-tooltip /> <el-table-column label="最后更新时间" prop="lastUpdateTime" width="150" show-overflow-tooltip :formatter="$d" /> <el-table-column label="预计充装时间" prop="expectedRefillTime" width="150" show-overflow-tooltip :formatter="$d" /> <el-table-column label="预计缺气时间" prop="expectedShortageTime" width="150" show-overflow-tooltip> <template #default="scope"> <div v-if="scope.row.expectedShortageTime"> src/views/inventoryManagement/transportTaskManagement/index.vue
@@ -154,20 +154,17 @@ prop="loadTime" label="装货时间" width="160" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column prop="deliveryTime" label="送货时间" width="160" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column prop="signTime" label="签收时间" width="160" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column label="状态" width="110" align="center"> <template #default="scope"> <el-tag :type="statusTagType(scope.row.status)"> src/views/inventoryManagement/vehicleFuelManagement/index.vue
@@ -64,8 +64,7 @@ prop="fuelDate" label="加油日期" width="120" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column prop="gunNo" label="油枪号" src/views/inventoryManagement/vehicleManagement/index.vue
@@ -116,8 +116,7 @@ prop="purchaseDate" label="购置日期" width="120" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column prop="licenseNumber" label="行驶证编号" @@ -128,14 +127,12 @@ prop="licenseIssueDate" label="发证日期" width="120" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column prop="licenseExpireDate" label="到期日期" width="120" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column label="状态" width="100" align="center"> <template #default="scope"> <el-tag :type="statusTagType(scope.row.status)"> 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="创建时间:">{{ $d(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="执行时间:">{{ $d(form.createTime) }}</el-form-item> </el-col> <el-col :span="24"> <el-form-item label="调用方法:">{{ form.invokeTarget }}</el-form-item> src/views/monitor/server/index.vue
@@ -112,9 +112,9 @@ </tr> <tr> <td class="el-table__cell is-leaf"><div class="cell">启动时间</div></td> <td class="el-table__cell is-leaf"><div class="cell" v-if="server.jvm">{{ server.jvm.startTime }}</div></td> <td class="el-table__cell is-leaf"><div class="cell" v-if="server.jvm">{{ $d(server.jvm.startTime) }}</div></td> <td class="el-table__cell is-leaf"><div class="cell">运行时长</div></td> <td class="el-table__cell is-leaf"><div class="cell" v-if="server.jvm">{{ server.jvm.runTime }}</div></td> <td class="el-table__cell is-leaf"><div class="cell" v-if="server.jvm">{{ $d(server.jvm.runTime) }}</div></td> </tr> <tr> <td colspan="1" class="el-table__cell is-leaf"><div class="cell">安装路径</div></td> 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="最近培训">{{ $d(accessResult.person.training.lastDate) }}</el-descriptions-item> <el-descriptions-item label="适岗证有效期">{{ $d(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> @@ -92,7 +92,7 @@ </div> </template> <el-timeline style="max-height: 520px; overflow: auto"> <el-timeline-item v-for="(item, idx) in alarms" :key="idx" :type="item.level" :timestamp="item.time"> <el-timeline-item v-for="(item, idx) in alarms" :key="idx" :type="item.level" :timestamp="$d(item.time)"> <div class="alarm-item"> <div class="title"> {{ item.personId }} · {{ item.zoneName }} · 滞留 {{ item.stayMins }} 分钟 src/views/monitorManagement/videoMonitor/index.vue
@@ -126,7 +126,7 @@ > <el-table-column type="selection" width="45" align="center" /> <el-table-column type="index" width="50" label="序号" align="center" :index="indexMethod" /> <el-table-column prop="time" label="抓拍时间" width="155" sortable /> <el-table-column prop="time" label="抓拍时间" width="155" sortable :formatter="$d" /> <el-table-column prop="personId" label="工号" width="110" show-overflow-tooltip /> <el-table-column prop="department" label="部门" width="100" show-overflow-tooltip /> <el-table-column prop="areaName" label="区域" width="110" show-overflow-tooltip /> @@ -195,7 +195,7 @@ v-for="(alarm, idx) in displayAlarms" :key="idx" :type="getAlarmType(alarm.type)" :timestamp="alarm.time" :timestamp="$d(alarm.time)" :hollow="alarm.handled" > <div class="alarm-item" :class="{ handled: alarm.handled }"> @@ -231,7 +231,7 @@ v-for="(alarm, idx) in intrusionAlarms" :key="idx" type="danger" :timestamp="alarm.time" :timestamp="$d(alarm.time)" > <div class="alarm-item"> <div class="alarm-header"> @@ -251,7 +251,7 @@ v-for="(alarm, idx) in tailgatingAlarms" :key="idx" type="warning" :timestamp="alarm.time" :timestamp="$d(alarm.time)" > <div class="alarm-item"> <div class="alarm-header"> @@ -271,7 +271,7 @@ v-for="(alarm, idx) in multipleAlarms" :key="idx" type="warning" :timestamp="alarm.time" :timestamp="$d(alarm.time)" > <div class="alarm-item"> <div class="alarm-header"> @@ -341,7 +341,7 @@ <el-descriptions :column="1" border size="small"> <el-descriptions-item label="抓拍时间"> <el-icon><Clock /></el-icon> {{ currentSnapshot.time }} {{ $d(currentSnapshot.time) }} </el-descriptions-item> <el-descriptions-item label="工号"> <el-icon><User /></el-icon> src/views/oaSystem/projectManagement/components/phaseGoalList.vue
@@ -11,7 +11,7 @@ <el-table-column prop="targetValue" label="目标值" width="120" /> <el-table-column prop="currentValue" label="当前值" width="120" /> <el-table-column prop="unit" label="单位" width="80" /> <el-table-column prop="targetDate" label="目标日期" width="120" /> <el-table-column prop="targetDate" label="目标日期" width="120" :formatter="$d" /> <el-table-column prop="status" label="状态" width="100"> <template #default="scope"> <el-tag :type="getStatusType(scope.row.status)">{{ getStatusText(scope.row.status) }}</el-tag> src/views/oaSystem/projectManagement/index.vue
@@ -109,14 +109,12 @@ label="开始日期" align="center" prop="startDate" width="120" /> width="120" :formatter="$d" /> <el-table-column label="结束日期" align="center" prop="endDate" width="120" /> width="120" :formatter="$d" /> <el-table-column label="状态" align="center" src/views/oaSystem/projectManagement/projectDetail.vue
@@ -11,8 +11,8 @@ <el-descriptions :column="2" border> <el-descriptions-item label="项目名称">{{ projectInfo.projectName }}</el-descriptions-item> <el-descriptions-item label="项目负责人">{{ projectInfo.managerName }}</el-descriptions-item> <el-descriptions-item label="开始日期">{{ projectInfo.startDate }}</el-descriptions-item> <el-descriptions-item label="结束日期">{{ projectInfo.endDate }}</el-descriptions-item> <el-descriptions-item label="开始日期">{{ $d(projectInfo.startDate) }}</el-descriptions-item> <el-descriptions-item label="结束日期">{{ $d(projectInfo.endDate) }}</el-descriptions-item> <el-descriptions-item label="项目状态"> <el-tag :type="getStatusType(projectInfo.status)">{{ getStatusText(projectInfo.status) }}</el-tag> </el-descriptions-item> src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
@@ -84,13 +84,13 @@ <el-table-column prop="startAt" label="上班时间"> <template #default="scope"> {{ scope.row.startAt }} {{ $d(scope.row.startAt) }} </template> </el-table-column> <el-table-column prop="endAt" label="下班时间"> <template #default="scope"> {{ scope.row.endAt }} {{ $d(scope.row.endAt) }} </template> </el-table-column> <el-table-column label="操作" src/views/personnelManagement/attendanceCheckin/index.vue
@@ -41,10 +41,10 @@ </el-tag> </el-descriptions-item> <el-descriptions-item label="上班时间"> {{ todayRecord?.workStartAt || '-' }} {{ $d(todayRecord?.workStartAt) || '-' }} </el-descriptions-item> <el-descriptions-item label="下班时间"> {{ todayRecord?.workEndAt || '-' }} {{ $d(todayRecord?.workEndAt) || '-' }} </el-descriptions-item> <el-descriptions-item label="工时(小时)"> {{ todayRecord?.workHours ?? '-' }} @@ -119,7 +119,7 @@ align="center" /> <el-table-column prop="date" label="日期" width="120" /> width="120" :formatter="$d" /> <el-table-column prop="deptName" label="部门" width="140" /> @@ -131,10 +131,12 @@ width="120" /> <el-table-column prop="workStartAt" label="上班时间" width="140" /> width="140" :formatter="$d" /> <el-table-column prop="workEndAt" label="下班时间" width="140" /> width="140" :formatter="$d" /> <el-table-column prop="workHours" label="工时(小时)" align="center" /> src/views/personnelManagement/classsSheduling/index.vue
@@ -204,7 +204,7 @@ </div> --> <div class="user-total"> <span class="total-label">合计出勤:</span> <span class="total-value">{{ item.work_time }}天</span> <span class="total-value">{{ $d(item.work_time) }}天</span> </div> </div> </div> src/views/personnelManagement/scheduling/index.vue
@@ -75,9 +75,9 @@ </el-tag> </template> </el-table-column> <el-table-column prop="workDate" label="工作日期" width="120"/> <el-table-column prop="startTime" label="开始时间" width="100"/> <el-table-column prop="endTime" label="结束时间" width="100"/> <el-table-column prop="workDate" label="工作日期" width="120" :formatter="$d" /> <el-table-column prop="startTime" label="开始时间" width="100" :formatter="$d" /> <el-table-column prop="endTime" label="结束时间" width="100" :formatter="$d" /> <el-table-column prop="workHours" label="工作时长" width="100"> <template #default="scope"> {{ scope.row.workHours }}小时 src/views/personnelManagement/selfService/index.vue
@@ -27,7 +27,7 @@ </div> </template> <el-table :data="attendanceData" style="width: 100%" :loading="tableLoading"> <el-table-column prop="date" label="日期" /> <el-table-column prop="date" label="日期" :formatter="$d" /> <el-table-column prop="checkIn" label="签到时间" /> <el-table-column prop="checkOut" label="签退时间" /> <el-table-column prop="workHours" label="工作时长" width="100" /> @@ -56,7 +56,7 @@ </div> </template> <el-table :data="salaryData" style="width: 100%"> <el-table-column prop="payDate" label="月份" /> <el-table-column prop="payDate" label="月份" :formatter="$d" /> <el-table-column prop="basicSalary" label="基本工资" /> <el-table-column prop="bonus" label="奖金" /> <el-table-column prop="deduction" label="扣款" /> @@ -81,8 +81,8 @@ </template> <el-table :data="leaveData" style="width: 100%"> <el-table-column prop="type" label="假期类型" /> <el-table-column prop="startDate" label="开始日期" /> <el-table-column prop="endDate" label="结束日期" /> <el-table-column prop="startDate" label="开始日期" :formatter="$d" /> <el-table-column prop="endDate" label="结束日期" :formatter="$d" /> <el-table-column prop="days" label="天数" width="80" /> <el-table-column prop="reason" label="申请原因" /> <el-table-column prop="status" label="审批状态" width="100"> @@ -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="入职日期">{{ $d(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/advancedPriceManagement/index.vue
@@ -108,8 +108,8 @@ </div> </template> </el-table-column> <el-table-column label="生效时间" prop="effectiveTime" width="180" /> <el-table-column label="更新时间" prop="updateTime" width="180" sortable /> <el-table-column label="生效时间" prop="effectiveTime" width="180" :formatter="$d" /> <el-table-column label="更新时间" prop="updateTime" width="180" sortable :formatter="$d" /> <el-table-column label="操作" width="250" align="center" fixed="right"> <template #default="{ row }"> <el-button type="primary" link @click="openDialog('edit', row)"> src/views/procurementManagement/arrivalManagement/index.vue
@@ -32,7 +32,7 @@ </template> </el-table-column> <el-table-column label="到货数量" prop="arrivalQuantity" width="100" /> <el-table-column label="到货时间" prop="arrivalTime" width="180" /> <el-table-column label="到货时间" prop="arrivalTime" width="180" :formatter="$d" /> <el-table-column label="操作" width="200" align="center"> <template #default="{ row }"> <el-button type="primary" link @click="openDialog('edit', row)">编辑</el-button> src/views/procurementManagement/index.vue
@@ -181,7 +181,7 @@ </el-col> <el-col :span="6"> <div class="stat-item"> <div class="stat-number">{{ stats.avgDeliveryTime }}</div> <div class="stat-number">{{ $d(stats.avgDeliveryTime) }}</div> <div class="stat-label">平均交付天数</div> </div> </el-col> @@ -204,7 +204,7 @@ <el-timeline-item v-for="(activity, index) in recentActivities" :key="index" :timestamp="activity.time" :timestamp="$d(activity.time)" :type="activity.type" > {{ activity.content }} src/views/procurementManagement/paymentEntry/index.vue
@@ -69,7 +69,7 @@ type="index" width="60" /> <el-table-column label="付款日期" prop="paymentDate" /> <el-table-column label="付款日期" prop="paymentDate" :formatter="$d" /> <el-table-column label="付款金额" prop="currentPaymentAmount"> <template #default="scope"> <el-input-number :step="0.01" :min="0" style="width: 100%" @@ -95,7 +95,7 @@ </template> </el-table-column> <el-table-column label="登记人" prop="registrant" /> <el-table-column label="登记日期" prop="registrationtDate" /> <el-table-column label="登记日期" prop="registrationtDate" :formatter="$d" /> <el-table-column label="操作" width="150"> <template #default="scope"> <el-button src/views/procurementManagement/priceManagement/index.vue
@@ -46,7 +46,7 @@ </span> </template> </el-table-column> <el-table-column label="生效时间" prop="effectiveTime" width="180" /> <el-table-column label="生效时间" prop="effectiveTime" width="180" :formatter="$d" /> <el-table-column label="状态" prop="status" width="100"> <template #default="{ row }"> <el-tag :type="getStatusType(row.status)">{{ getStatusText(row.status) }}</el-tag> src/views/procurementManagement/procurementInvoiceLedger/Modal/EditModal.vue
@@ -21,7 +21,7 @@ </el-col> <el-col :span="12"> <el-form-item label="创建时间:"> <el-text>{{ form.createdAt }}</el-text> <el-text>{{ $d(form.createdAt) }}</el-text> </el-form-item> </el-col> <el-col :span="12"> src/views/procurementManagement/procurementLedger/index.vue
@@ -144,7 +144,7 @@ <el-table-column label="签订日期" prop="executionDate" width="100" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column label="付款方式" width="100" prop="paymentMethod" @@ -161,7 +161,7 @@ <el-table-column label="录入日期" prop="entryDate" width="100" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column label="备注" prop="remarks" width="200" src/views/procurementManagement/procurementPlan/index.vue
@@ -63,7 +63,7 @@ </el-tag> </template> </el-table-column> <el-table-column prop="updateTime" label="最后计算时间" width="160" /> <el-table-column prop="updateTime" label="最后计算时间" width="160" :formatter="$d" /> <el-table-column label="操作" width="200" fixed="right" align="center"> <template #default="{ row }"> <el-button type="primary" link @click="handleEdit(row)">编辑</el-button> src/views/procurementManagement/purchaseOrder/index.vue
@@ -37,7 +37,7 @@ <el-table-column label="总金额" prop="totalAmount" width="120"> <template #default="{ row }">¥{{ row.totalAmount.toFixed(2) }}</template> </el-table-column> <el-table-column label="创建时间" prop="createTime" width="180" /> <el-table-column label="创建时间" prop="createTime" width="180" :formatter="$d" /> <el-table-column label="操作" width="200" align="center"> <template #default="{ row }"> <el-button type="primary" size="small" @click="openDialog('edit', row)">编辑</el-button> src/views/procurementManagement/purchaseReturnOrder/index.vue
@@ -182,7 +182,7 @@ prop: 'returnUserName', width: 110, }, { label: '整单折扣额', prop: 'totalDiscountAmount', @@ -236,7 +236,7 @@ }, ], }, ]) const data = reactive({ searchForm: { @@ -281,8 +281,8 @@ const payload = res?.data || {} detailData.value = payload // 拼接连个对象成一个对象,方便展示 item 和 item.salesLedgerProduct 里的字段 detailProducts.value = payload.purchaseReturnOrderProductsDetailVoList.map(item => ({ ...item, ...item.salesLedgerProduct })) || [] src/views/procurementManagement/qualityInspection/index.vue
@@ -38,7 +38,7 @@ </el-table-column> <el-table-column label="合格数量" prop="qualifiedQuantity" width="100" /> <el-table-column label="不合格数量" prop="unqualifiedQuantity" width="100" /> <el-table-column label="质检时间" prop="inspectionTime" width="180" /> <el-table-column label="质检时间" prop="inspectionTime" width="180" :formatter="$d" /> <el-table-column label="操作" width="200" align="center"> <template #default="{ row }"> <el-button type="primary" link @click="openDialog('edit', row)">编辑</el-button> src/views/procurementManagement/returnManagement/index.vue
@@ -41,7 +41,7 @@ <el-tag :type="getStatusType(row.status)">{{ getStatusText(row.status) }}</el-tag> </template> </el-table-column> <el-table-column label="创建时间" prop="createTime" width="180" /> <el-table-column label="创建时间" prop="createTime" width="180" :formatter="$d" /> <el-table-column label="操作" width="200" align="center"> <template #default="{ row }"> <el-button type="primary" link @click="openDialog('edit', row)">编辑</el-button> src/views/productManagement/productIdentifier/index.vue
@@ -93,7 +93,7 @@ </el-table-column> <el-table-column prop="generateTime" label="生成时间" width="160" /> width="160" :formatter="$d" /> <el-table-column label="操作" fixed="right" align="center" 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">{{ $d(log.time) }}</span> <span class="log-content">{{ log.content }}</span> </div> </div> src/views/productionManagement/workOrder/index.vue
@@ -108,11 +108,11 @@ </div> --> <div class="info-item"> <span class="info-label">计划开始时间</span> <span class="info-value">{{ transferCardRowData.planStartTime }}</span> <span class="info-value">{{ $d(transferCardRowData.planStartTime) }}</span> </div> <div class="info-item"> <span class="info-label">计划结束时间</span> <span class="info-value">{{ transferCardRowData.planEndTime }}</span> <span class="info-value">{{ $d(transferCardRowData.planEndTime) }}</span> </div> <div class="info-item"> <span class="info-label">备注</span> @@ -138,11 +138,11 @@ </div> <div class="info-item"> <span class="info-label">实际开始时间</span> <span class="info-value">{{ transferCardRowData.actualStartTime }}</span> <span class="info-value">{{ $d(transferCardRowData.actualStartTime) }}</span> </div> <div class="info-item"> <span class="info-label">实际结束时间</span> <span class="info-value">{{ transferCardRowData.actualEndTime }}</span> <span class="info-value">{{ $d(transferCardRowData.actualEndTime) }}</span> </div> </div> </div> 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="立项日期">{{ $d(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="计划开始日期">{{ $d(info.planStartTime) || '-' }}</el-descriptions-item> <el-descriptions-item label="计划完成日期">{{ $d(info.planEndTime) || '-' }}</el-descriptions-item> <el-descriptions-item label="实际开始日期">{{ $d(info.actualStartTime) || '-' }}</el-descriptions-item> <el-descriptions-item label="实际完成日期">{{ $d(info.actualEndTime) || '-' }}</el-descriptions-item> <el-descriptions-item label="订单日期">{{ $d(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> @@ -79,8 +79,8 @@ <el-table-column align="center" label="序号" type="index" width="60" /> <el-table-column label="姓名" prop="userName" show-overflow-tooltip /> <el-table-column label="项目组角色" prop="userRoleName" show-overflow-tooltip /> <el-table-column label="进入日期" prop="joinTime" width="140" /> <el-table-column label="离开日期" prop="departTime" width="140" /> <el-table-column label="进入日期" prop="joinTime" width="140" :formatter="$d" /> <el-table-column label="离开日期" prop="departTime" width="140" :formatter="$d" /> <el-table-column label="联系方式" prop="contact" show-overflow-tooltip /> <el-table-column label="备注" prop="remark" show-overflow-tooltip /> </el-table> @@ -143,10 +143,10 @@ <el-table-column label="描述" prop="description" min-width="220" show-overflow-tooltip /> <el-table-column label="实际负责人" prop="actualLeaderName" width="140" show-overflow-tooltip /> <el-table-column label="进度(%)" prop="progress" width="110" /> <el-table-column label="计划开始" prop="planStartTime" width="120" /> <el-table-column label="计划结束" prop="planEndTime" width="120" /> <el-table-column label="实际开始" prop="actualStartTime" width="120" /> <el-table-column label="实际结束" prop="actualEndTime" width="120" /> <el-table-column label="计划开始" prop="planStartTime" width="120" :formatter="$d" /> <el-table-column label="计划结束" prop="planEndTime" width="120" :formatter="$d" /> <el-table-column label="实际开始" prop="actualStartTime" width="120" :formatter="$d" /> <el-table-column label="实际结束" prop="actualEndTime" width="120" :formatter="$d" /> <el-table-column label="预计工期(天)" prop="estimatedDuration" width="130" /> <el-table-column label="附件" width="90" align="center"> <template #default="{ row }"> 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>{{ $d(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">{{ $d(item.time) }}</span> </div> </div> </div> src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue
@@ -97,7 +97,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">{{ $d(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">{{ $d(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">{{ $d(item.date) }}</div> </div> </div> </div> src/views/reportAnalysis/reportManagement.vue
@@ -188,8 +188,8 @@ <el-progress :percentage="scope.row.progress" :status="getProgressStatus(scope.row.progress)" /> </template> </el-table-column> <el-table-column prop="createTime" label="创建时间" width="180" /> <el-table-column prop="updateTime" label="更新时间" width="180" /> <el-table-column prop="createTime" label="创建时间" width="180" :formatter="$d" /> <el-table-column prop="updateTime" label="更新时间" width="180" :formatter="$d" /> <el-table-column label="操作" width="150" fixed="right"> <template #default="scope"> <el-button type="text" size="small" @click="viewDetail(scope.row)">查看</el-button> src/views/safeProduction/accidentReportingRecord/index.vue
@@ -224,7 +224,7 @@ <span>{{ currentKnowledge.accidentName }}</span> </el-descriptions-item> <el-descriptions-item label="事故发生时间"> {{ currentKnowledge.happenTime }} {{ $d(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 }} {{ $d(currentKnowledge.createTime) }} </el-descriptions-item> </el-descriptions> <div class="detail-section"> src/views/safeProduction/dangerInvestigation/index.vue
@@ -69,11 +69,11 @@ show-overflow-tooltip /> <el-table-column label="上报时间" prop="createTime" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column label="整改完成期限" prop="rectifyTime" width="120" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column label="整改责任人" prop="rectifyUserName" width="120" @@ -89,7 +89,7 @@ <el-table-column label="实际整改完成时间" prop="rectifyActualTime" width="120" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column label="验收意见" prop="verifyRemark" width="120" @@ -97,7 +97,7 @@ <el-table-column label="验收时间" prop="verifyTime" width="120" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column label="验收结果" prop="verifyResult" width="120" @@ -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">{{ $d(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">{{ $d(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">{{ $d(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 }} {{ $d(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>{{ $d(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>{{ $d(form.returnTime) }}</span> </el-descriptions-item> <el-descriptions-item v-if="dialogType === 'view' && form.returnUserId" label="归还情况说明"> src/views/safeProduction/safeQualifications/index.vue
@@ -97,7 +97,7 @@ <el-table-column label="有效期" prop="effectiveTime" width="120" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column fixed="right" label="操作" min-width="100" 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="报价日期">{{ $d(currentQuotation.quotationDate) }}</el-descriptions-item> <el-descriptions-item label="有效期至">{{ $d(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="签订日期">{{ $d(currentPurchase.executionDate) }}</el-descriptions-item> <el-descriptions-item label="录入日期">{{ $d(currentPurchase.entryDate) }}</el-descriptions-item> <el-descriptions-item label="付款方式">{{ currentPurchase.paymentMethod }}</el-descriptions-item> <el-descriptions-item label="合同金额" :span="2"> src/views/safeProduction/safetyTrainingAssessment/detail.vue
@@ -87,7 +87,7 @@ width="60" /> <el-table-column label="培训日期" prop="trainingDate" show-overflow-tooltip /> show-overflow-tooltip :formatter="$d" /> <el-table-column label="培训内容" prop="trainingContent" show-overflow-tooltip /> src/views/salesManagement/deliveryLedger/index.vue
@@ -36,7 +36,7 @@ <el-table-column label="客户名称" prop="customerName" show-overflow-tooltip /> <el-table-column label="产品名称" prop="productName" show-overflow-tooltip /> <el-table-column label="规格型号" prop="specificationModel" show-overflow-tooltip /> <el-table-column label="发货时间" prop="shippingDate" show-overflow-tooltip /> <el-table-column label="发货时间" prop="shippingDate" show-overflow-tooltip :formatter="$d" /> <el-table-column label="发货车牌号" prop="shippingCarNumber" show-overflow-tooltip /> <el-table-column label="快递公司" prop="expressCompany" show-overflow-tooltip /> <el-table-column label="快递单号" prop="expressNumber" show-overflow-tooltip /> @@ -183,7 +183,7 @@ <el-descriptions-item label="产品名称">{{ detailRow.productName || '--' }}</el-descriptions-item> <el-descriptions-item label="规格型号">{{ detailRow.specificationModel || '--' }}</el-descriptions-item> <el-descriptions-item label="发货类型">{{ detailRow.type || '--' }}</el-descriptions-item> <el-descriptions-item label="发货日期">{{ detailRow.shippingDate || '--' }}</el-descriptions-item> <el-descriptions-item label="发货日期">{{ $d(detailRow.shippingDate) || '--' }}</el-descriptions-item> <el-descriptions-item label="审核状态">{{ getApprovalStatusText(detailRow.status) }}</el-descriptions-item> <el-descriptions-item label="发货车牌号">{{ detailRow.shippingCarNumber || '--' }}</el-descriptions-item> <el-descriptions-item label="快递公司">{{ detailRow.expressCompany || '--' }}</el-descriptions-item> src/views/salesManagement/invoiceLedger/index.vue
@@ -40,7 +40,7 @@ <el-table-column label="税率(%)" prop="taxRate" show-overflow-tooltip /> <el-table-column label="录入人" prop="invoicePerson" show-overflow-tooltip /> <el-table-column label="录入日期" prop="createTime" show-overflow-tooltip :formatter="formatDate" width="180" /> <el-table-column label="开票日期" prop="invoiceDate" show-overflow-tooltip width="120" /> <el-table-column label="开票日期" prop="invoiceDate" show-overflow-tooltip width="120" :formatter="$d" /> <el-table-column fixed="right" label="操作" width="150" align="center"> <template #default="scope"> <el-button link type="primary" @click="openForm(scope.row)">编辑</el-button> @@ -219,7 +219,7 @@ return parseFloat(cellValue).toFixed(2); }; const formatDate = (row, column, cellValue) => { return dayjs(cellValue).format("YYYY-MM-DD HH:mm:ss"); return cellValue ? dayjs(cellValue).format("YYYY-MM-DD") : ""; }; // 查询列表 /** 搜索按钮操作 */ src/views/salesManagement/orderManagement/index.vue
@@ -53,7 +53,7 @@ <el-table-column prop="orderNo" label="订单号" width="150" /> <el-table-column prop="customer" label="客户名称" /> <el-table-column prop="salesperson" label="业务员" width="100" /> <el-table-column prop="orderDate" label="下单日期" width="120" /> <el-table-column prop="orderDate" label="下单日期" width="120" :formatter="$d" /> <el-table-column prop="amount" label="订单金额" width="120"> <template #default="scope"> ¥{{ scope.row.amount.toFixed(2) }} src/views/salesManagement/paymentShipping/index.vue
@@ -75,7 +75,7 @@ </el-tag> </template> </el-table-column> <el-table-column prop="shippingDate" label="发货日期" width="120" /> <el-table-column prop="shippingDate" label="发货日期" width="120" :formatter="$d" /> <el-table-column label="操作" width="250" fixed="right" align="center"> <template #default="scope"> <!-- <el-button link type="primary" @click="handleView(scope.row)">查看</el-button>--> src/views/salesManagement/receiptPayment/index.vue
@@ -66,7 +66,7 @@ type="index" width="60" /> <el-table-column label="回款日期" prop="receiptPaymentDate" width="130"/> <el-table-column label="回款日期" prop="receiptPaymentDate" width="130" :formatter="$d" /> <el-table-column label="回款金额" prop="receiptPaymentAmount"> <template #default="scope"> <el-input-number :step="0.01" :min="0" style="width: 100%" @@ -96,7 +96,7 @@ </template> </el-table-column> <el-table-column label="登记人" prop="registrant" width="90"/> <el-table-column label="登记日期" prop="createTime" width="130"/> <el-table-column label="登记日期" prop="createTime" width="130" :formatter="$d" /> <el-table-column label="操作" width="150" align="center"> <template #default="scope"> <el-button src/views/salesManagement/receiptPaymentLedger/index.vue
@@ -95,8 +95,7 @@ label="发生日期" prop="receiptPaymentDate" show-overflow-tooltip width="110" /> width="110" :formatter="$d" /> <el-table-column label="销售合同号" prop="salesContractNo" src/views/salesManagement/salesLedger/index.vue
@@ -81,7 +81,7 @@ align="center"> <template #default="scope"> <div> <div v-if="scope.row.shippingDate">{{ scope.row.shippingDate }}</div> <div v-if="scope.row.shippingDate">{{ $d(scope.row.shippingDate) }}</div> <el-tag v-else type="info">-</el-tag> </div> @@ -116,9 +116,9 @@ <el-table-column label="合同金额(元)" prop="contractAmount" width="220" show-overflow-tooltip :formatter="formattedNumber" /> <el-table-column label="录入人" prop="entryPersonName" width="100" show-overflow-tooltip /> <el-table-column label="录入日期" prop="entryDate" width="120" show-overflow-tooltip /> <el-table-column label="签订日期" prop="executionDate" width="120" show-overflow-tooltip /> <el-table-column label="交付日期" prop="deliveryDate" width="120" show-overflow-tooltip /> <el-table-column label="录入日期" prop="entryDate" width="120" show-overflow-tooltip :formatter="$d" /> <el-table-column label="签订日期" prop="executionDate" width="120" show-overflow-tooltip :formatter="$d" /> <el-table-column label="交付日期" prop="deliveryDate" width="120" show-overflow-tooltip :formatter="$d" /> <el-table-column label="备注" prop="remarks" width="200" show-overflow-tooltip /> <el-table-column fixed="right" label="操作" width="130" align="center"> <template #default="scope"> @@ -304,7 +304,7 @@ <el-table-column prop="quotationNo" label="报价单号" width="180" show-overflow-tooltip /> <el-table-column prop="customer" label="客户名称" min-width="220" show-overflow-tooltip /> <el-table-column prop="salesperson" label="业务员" width="120" show-overflow-tooltip /> <el-table-column prop="quotationDate" label="报价日期" width="140" /> <el-table-column prop="quotationDate" label="报价日期" width="140" :formatter="$d" /> <el-table-column prop="status" label="审批状态" width="120" align="center" /> <el-table-column prop="totalAmount" label="报价金额(元)" width="160" align="right"> <template #default="scope"> src/views/salesManagement/salesQuotation/index.vue
@@ -54,8 +54,8 @@ <el-table-column prop="quotationNo" label="报价单号" /> <el-table-column prop="customer" label="客户名称" /> <el-table-column prop="salesperson" label="业务员" width="100" /> <el-table-column prop="quotationDate" label="报价日期" width="120" /> <el-table-column prop="validDate" label="有效期至" width="120" /> <el-table-column prop="quotationDate" label="报价日期" width="120" :formatter="$d" /> <el-table-column prop="validDate" label="有效期至" width="120" :formatter="$d" /> <el-table-column prop="status" label="审批状态" width="120" align="center"> <template #default="{ row }"> <el-tag :type="getStatusType(row.status)" disable-transitions> @@ -320,8 +320,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="报价日期">{{ $d(currentQuotation.quotationDate) }}</el-descriptions-item> <el-descriptions-item label="有效期至">{{ $d(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/salespersonManagement/index.vue
@@ -51,7 +51,7 @@ <el-table-column prop="email" label="邮箱" width="200" /> <el-table-column prop="department" label="部门" width="100" /> <el-table-column prop="position" label="职位" width="100" /> <el-table-column prop="hireDate" label="入职日期" width="120" /> <el-table-column prop="hireDate" label="入职日期" width="120" :formatter="$d" /> <el-table-column prop="status" label="状态" width="80"> <template #default="scope"> <el-tag :type="getStatusType(scope.row.status)"> 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 }} {{ $d(scope.row.startDate) }} 至 {{ $d(scope.row.endDate) }} </template> </el-table-column> <el-table-column prop="status" label="状态" width="80"> @@ -221,7 +221,7 @@ ¥{{ scope.row.contractAmount.toLocaleString() }} </template> </el-table-column> <el-table-column prop="signDate" label="签订日期" width="120"/> <el-table-column prop="signDate" label="签订日期" width="120" :formatter="$d" /> <el-table-column label="执行进度" width="150"> <template #default="scope"> <el-progress @@ -310,7 +310,7 @@ <!-- 历史价格列表 --> <el-table :data="priceComparisonList" border stripe v-loading="compareLoading" style="margin-top: 20px;"> <el-table-column prop="date" label="日期" width="120"/> <el-table-column prop="date" label="日期" width="120" :formatter="$d" /> <el-table-column prop="productName" label="产品名称" width="200"/> <el-table-column prop="specification" label="规格" width="120"/> <el-table-column prop="customerName" label="客户" width="180"/> @@ -463,7 +463,7 @@ </el-tag> </template> </el-table-column> <el-table-column prop="orderDate" label="订单日期" width="120"/> <el-table-column prop="orderDate" label="订单日期" width="120" :formatter="$d" /> </el-table> <pagination 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">{{ $d(state.user.createTime) }}</div> </li> </ul> </div> src/views/tool/gen/index.vue
@@ -146,16 +146,14 @@ prop="createTime" width="160" sortable="custom" :sort-orders="['descending', 'ascending']" /> :sort-orders="['descending', 'ascending']" :formatter="$d" /> <el-table-column label="更新时间" align="center" prop="updateTime" width="160" sortable="custom" :sort-orders="['descending', 'ascending']" /> :sort-orders="['descending', 'ascending']" :formatter="$d" /> <el-table-column label="操作" align="center"