feat(utils): 添加日期格式化工具函数并统一应用到各个组件
- 新增 dateOnly 函数用于提取日期部分,支持多种日期格式
- 新增 formatDateColumn 函数用于表格列的日期格式化
- 在库存管理、销售管理、办公自动化等多个模块中应用日期格式化
- 统一处理表格和详情页面中的日期显示格式
- 修复多个组件中的日期显示不一致问题
- 优化日期字符串的解析和展示逻辑
| | |
| | | import QRCode from "qrcode"; |
| | | import { ElMessage, ElMessageBox } from "element-plus"; |
| | | import { Download, CopyDocument, Printer } from "@element-plus/icons-vue"; |
| | | import { dateOnly } from "@/utils/index"; |
| | | |
| | | // 定义组件名称 |
| | | defineOptions({ |
| | |
| | | }); |
| | | } |
| | | |
| | | generateTime.value = new Date().toLocaleString(); |
| | | generateTime.value = dateOnly(new Date()); |
| | | ElMessage.success("生成成功!"); |
| | | } catch (error) { |
| | | console.error("生成失败:", error); |
| | |
| | | <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">{{ dateOnly(item.createTime) }}</div> |
| | | </div> |
| | | <div class="notification-action"> |
| | | <el-button type="primary" |
| | |
| | | <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">{{ dateOnly(item.createTime) }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | selectDictLabel, |
| | | selectDictLabels, |
| | | } from "@/utils/ruoyi"; |
| | | import { formatDateColumn, dateOnly } from "@/utils/index"; |
| | | |
| | | // 分页组件 |
| | | import Pagination from "@/components/Pagination"; |
| | |
| | | app.config.globalProperties.useDict = useDict; |
| | | app.config.globalProperties.download = download; |
| | | app.config.globalProperties.parseTime = parseTime; |
| | | app.config.globalProperties.formatDateColumn = formatDateColumn; |
| | | app.config.globalProperties.dateOnly = dateOnly; |
| | | app.config.globalProperties.resetForm = resetForm; |
| | | app.config.globalProperties.summarizeTable = summarizeTable; |
| | | app.config.globalProperties.calculateTaxExclusiveTotalPrice = |
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * 仅保留日期部分,去掉时分秒,输出 YYYY-MM-DD。
|
| | | * 兼容 Date 对象、"YYYY-MM-DD HH:mm:ss"、"YYYY-MM-DDTHH:mm:ss" 等格式;
|
| | | * 已是纯日期或非日期字符串时原样返回。
|
| | | */
|
| | | export function dateOnly(value) {
|
| | | if (value == null || value === "") return "";
|
| | | if (value instanceof Date) {
|
| | | if (Number.isNaN(value.getTime())) return "";
|
| | | const pad = (num) => String(num).padStart(2, "0");
|
| | | return `${value.getFullYear()}-${pad(value.getMonth() + 1)}-${pad(
|
| | | value.getDate()
|
| | | )}`;
|
| | | }
|
| | | const str = String(value).trim();
|
| | | return str.split(/[ T]/)[0] || str;
|
| | | }
|
| | |
|
| | | /**
|
| | | * el-table-column 日期列格式化:仅保留日期部分,去掉时分秒。
|
| | | */
|
| | | export function formatDateColumn(row, column, cellValue) {
|
| | | return dateOnly(cellValue);
|
| | | }
|
| | |
|
| | | /**
|
| | | * @param {number} time
|
| | | * @param {string} option
|
| | | * @returns {string}
|
| | |
| | | <el-col :span="12"> |
| | | <div class="info-item"> |
| | | <span class="info-label">维护时间:</span> |
| | | <span class="info-value">{{ detailForm.maintenanceTime }}</span> |
| | | <span class="info-value">{{ dateOnly(detailForm.maintenanceTime) }}</span> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | style="width: 100%"> |
| | | <el-table-column prop="followUpTime" |
| | | label="跟进时间" |
| | | width="160" /> |
| | | width="160" |
| | | :formatter="formatDateColumn" /> |
| | | <el-table-column prop="followUpMethod" |
| | | label="跟进方式" |
| | | width="100" /> |
| | |
| | | style="width: 100%"> |
| | | <el-table-column prop="followUpTime" |
| | | label="跟进时间" |
| | | width="160" /> |
| | | width="160" |
| | | :formatter="formatDateColumn" /> |
| | | <el-table-column prop="followUpMethod" |
| | | label="跟进方式" |
| | | width="100" /> |
| | |
| | | {{ currentKnowledge.creator }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="创建时间"> |
| | | {{ currentKnowledge.createTime }} |
| | | {{ dateOnly(currentKnowledge.createTime) }} |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | |
| | | <span v-else style="color: #909399">-</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="createTime" label="上传时间" width="180" /> |
| | | <el-table-column prop="createTime" label="上传时间" width="180" :formatter="formatDateColumn" /> |
| | | <el-table-column label="操作" width="150" align="center"> |
| | | <template #default="{ row }"> |
| | | <el-button |
| | |
| | | import { staffOnJobListPage } from "@/api/personnelManagement/staffOnJob.js"; |
| | | import { listNotification, addNotification, updateNotification, delNotification,addOnlineMeeting,addFileSharing } from "@/api/collaborativeApproval/notificationManagement.js"; |
| | | import { id } from "element-plus/es/locales.mjs"; |
| | | import { dateOnly } from "@/utils/index"; |
| | | |
| | | // 表单验证规则 |
| | | const rules = { |
| | |
| | | departments: [randomDept], |
| | | expireDate: new Date(now.getTime() + 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0], // 30天后过期 |
| | | syncMethods: ["wechat", "dingtalk"], |
| | | createTime: now.toLocaleString() |
| | | createTime: dateOnly(now) |
| | | }; |
| | | |
| | | // 添加到数据开头 |
| | |
| | | {{ 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="formatDateColumn" /> |
| | | <el-table-column label="操作" align="center" width="200" fixed="right"> |
| | | <template #default="scope"> |
| | | <el-button type="primary" link @click="viewDraft(scope.row)">查看</el-button> |
| | |
| | | </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="formatDateColumn" /> |
| | | <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="formatDateColumn" /> |
| | | <el-table-column label="发放时间" align="center" prop="issueTime" width="180" :formatter="formatDateColumn" /> |
| | | <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width" width="200"> |
| | | <template #default="scope"> |
| | | <el-button |
| | |
| | | <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="发布时间">{{ dateOnly(currentRegulationDetail.createTime) }}</el-descriptions-item> |
| | | </el-descriptions> |
| | | <div class="mt-20"> |
| | | <h4>制度内容</h4> |
| | |
| | | width="100" /> |
| | | <el-table-column prop="updateTime" |
| | | label="更新时间" |
| | | width="180" /> |
| | | width="180" |
| | | :formatter="formatDateColumn" /> |
| | | <el-table-column prop="createUserName" |
| | | label="更新人" |
| | | width="120" /> |
| | |
| | | width="150" /> |
| | | <el-table-column prop="createTime" |
| | | label="阅读时间" |
| | | width="180" /> |
| | | width="180" |
| | | :formatter="formatDateColumn" /> |
| | | <el-table-column prop="confirmTime" |
| | | label="确认时间" |
| | | width="180" /> |
| | | width="180" |
| | | :formatter="formatDateColumn" /> |
| | | <el-table-column prop="status" |
| | | label="状态" |
| | | width="100"> |
| | |
| | | <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="申请时间">{{ dateOnly(currentSealDetail.createTime) }}</el-descriptions-item> |
| | | <el-descriptions-item label="状态"> |
| | | <el-tag :type="getStatusType(currentSealDetail.status)"> |
| | | {{ getStatusText(currentSealDetail.status) }} |
| | |
| | | import { ref, reactive, onMounted, onBeforeUnmount, computed } from 'vue' |
| | | import * as echarts from 'echarts' |
| | | import Echarts from '@/components/Echarts/echarts.vue' |
| | | import { dateOnly } from '@/utils/index' |
| | | |
| | | // 响应式数据 |
| | | const selectedScope = ref('all') |
| | |
| | | // 准备导出数据 |
| | | const exportDataSet = { |
| | | 基本信息: { |
| | | 导出时间: new Date().toLocaleString('zh-CN'), |
| | | 导出时间: dateOnly(new Date()), |
| | | 数据层级: heatmapLevel.value === 'device' ? '设备级' : heatmapLevel.value === 'line' ? '产线级' : '企业级', |
| | | 选择范围: selectedScope.value === 'all' ? '全部范围' : `范围${selectedScope.value.slice(-1)}`, |
| | | 选择日期: selectedDate.value ? selectedDate.value.toLocaleDateString('zh-CN') : '今日' |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="accuracy" label="准确率" /> |
| | | <el-table-column prop="lastUpdate" label="最后更新" /> |
| | | <el-table-column prop="lastUpdate" label="最后更新" :formatter="formatDateColumn" /> |
| | | <el-table-column label="操作"> |
| | | <template #default="scope"> |
| | | <el-button |
| | |
| | | <!-- 优化历史对话框 --> |
| | | <el-dialog v-model="historyDialogVisible" title="优化历史记录" width="80%"> |
| | | <el-table :data="optimizationHistory" style="width: 100%"> |
| | | <el-table-column prop="timestamp" label="时间" /> |
| | | <el-table-column prop="timestamp" label="时间" :formatter="formatDateColumn" /> |
| | | <el-table-column prop="formationPressure" label="地层压力 (MPa)" /> |
| | | <el-table-column prop="oldFrequency" label="原频率 (Hz)" /> |
| | | <el-table-column prop="newFrequency" label="新频率 (Hz)" /> |
| | |
| | | import { ref, onMounted, onUnmounted, computed } from 'vue' |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | | import { Monitor, Cpu, TrendCharts } from '@element-plus/icons-vue' |
| | | import { dateOnly } from "@/utils/index" |
| | | import * as echarts from 'echarts' |
| | | |
| | | // 响应式数据 |
| | |
| | | |
| | | // 添加优化历史记录 |
| | | const addOptimizationHistory = () => { |
| | | const timestamp = new Date().toLocaleString() |
| | | const timestamp = dateOnly(new Date()) |
| | | const record = { |
| | | timestamp, |
| | | formationPressure: pumpData.value.formationPressure, |
| | |
| | | // 生成初始历史数据 |
| | | const generateInitialHistory = () => { |
| | | for (let i = 0; i < 20; i++) { |
| | | const timestamp = new Date(Date.now() - i * 3600000).toLocaleString() |
| | | const timestamp = dateOnly(new Date(Date.now() - i * 3600000)) |
| | | const record = { |
| | | timestamp, |
| | | formationPressure: parseFloat((20 + Math.random() * 10).toFixed(1)), |
| | |
| | | Edit, |
| | | Bell |
| | | } from '@element-plus/icons-vue' |
| | | import { dateOnly } from "@/utils/index" |
| | | |
| | | // 响应式数据 |
| | | const lastUpdateTime = ref('') |
| | |
| | | greenEnergyRatio.value = (Math.random() * 10 + 25).toFixed(1) |
| | | |
| | | // 更新最后更新时间 |
| | | lastUpdateTime.value = new Date().toLocaleString() |
| | | lastUpdateTime.value = dateOnly(new Date()) |
| | | |
| | | // 同时更新报表数据 |
| | | generateReportData() |
| | |
| | | </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="formatDateColumn" /> |
| | | <el-table-column label="操作" align="center" width="100" fixed="right"> |
| | | <template #default="scope"> |
| | | <el-button link size="small" @click="editDevice(scope.row)"> |
| | |
| | | Money, |
| | | Plus |
| | | } from '@element-plus/icons-vue' |
| | | import { dateOnly } from "@/utils/index" |
| | | |
| | | // 响应式数据 |
| | | const lastUpdateTime = ref('') |
| | |
| | | currentTemperature: (Math.random() * 20 + 15).toFixed(1), |
| | | gasConcentration: (Math.random() * 10).toFixed(2), |
| | | status: ['running', 'stopped', 'warning', 'error'][Math.floor(Math.random() * 4)], |
| | | lastUpdate: new Date().toLocaleString() |
| | | lastUpdate: dateOnly(new Date()) |
| | | })) |
| | | |
| | | // 更新最后更新时间 |
| | | lastUpdateTime.value = new Date().toLocaleString() |
| | | lastUpdateTime.value = dateOnly(new Date()) |
| | | } |
| | | |
| | | // 获取压力状态样式 |
| | |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="lastUpdateTime" label="最后更新时间" width="160" /> |
| | | <el-table-column prop="lastUpdateTime" label="最后更新时间" width="160" :formatter="formatDateColumn" /> |
| | | <el-table-column label="操作" width="180" fixed="right" align="center"> |
| | | <template #default="scope"> |
| | | <el-button link @click="viewDetails(scope.row)"> |
| | |
| | | <el-col :span="12"> |
| | | <div class="detail-item"> |
| | | <label>最后更新时间:</label> |
| | | <span>{{ currentMeter.lastUpdateTime }}</span> |
| | | <span>{{ dateOnly(currentMeter.lastUpdateTime) }}</span> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <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="formatDateColumn" /> |
| | | <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 /> |
| | |
| | | <el-table-column prop="deviceName" label="设备名称"></el-table-column> |
| | | <el-table-column prop="defectDescription" label="缺陷描述"></el-table-column> |
| | | <el-table-column prop="status" label="状态"></el-table-column> |
| | | <el-table-column prop="eliminateTime" label="消缺时间"></el-table-column> |
| | | <el-table-column prop="eliminateTime" label="消缺时间" :formatter="formatDateColumn"></el-table-column> |
| | | </el-table> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | <div class="maintenance-info"> |
| | | <div class="maintenance-item"> |
| | | <span class="label">最后维护:</span> |
| | | <span class="value">{{ deviceInfo.updateTime }}</span> |
| | | <span class="value">{{ dateOnly(deviceInfo.updateTime) }}</span> |
| | | </div> |
| | | <div class="maintenance-item"> |
| | | <span class="label">下次维护:</span> |
| | | <span class="value">{{ deviceInfo.createTime }}</span> |
| | | <span class="value">{{ dateOnly(deviceInfo.createTime) }}</span> |
| | | </div> |
| | | <div class="maintenance-item"> |
| | | <span class="label">维护状态:</span> |
| | |
| | | <div v-if="changeRecords.length === 0" class="empty-tip">暂无变更记录</div> |
| | | <div v-else class="change-record" v-for="(item, index) in changeRecords" :key="index"> |
| | | <div class="record-header"> |
| | | <span class="record-time">{{ item.createTime }}</span> |
| | | <span class="record-time">{{ dateOnly(item.createTime) }}</span> |
| | | <span class="record-status" :class="approvalClass(item.approvalStatus)">{{ approvalText(item.approvalStatus) }}</span> |
| | | </div> |
| | | <div class="record-line"> |
| | |
| | | <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="录入日期">{{ dateOnly(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;"> |
| | |
| | | <!-- 状态变更记录对话框 --> |
| | | <el-dialog v-model="recordDialog.visible" title="设备状态变更记录" width="800px" draggable> |
| | | <el-table v-loading="recordDialog.loading" :data="recordDialog.list" border> |
| | | <el-table-column label="变更时间" prop="createTime" width="160" /> |
| | | <el-table-column label="变更时间" prop="createTime" width="160" :formatter="formatDateColumn" /> |
| | | <el-table-column label="原状态" width="100"> |
| | | <template #default="scope"> |
| | | <el-tag :type="scope.row.originalStatus == 1 ? 'success' : 'danger'"> |
| | |
| | | align="center" |
| | | > |
| | | <template #default="scope"> |
| | | {{ scope.row.planRuntimeTime || '-' }} |
| | | {{ dateOnly(scope.row.planRuntimeTime) || '-' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | align="center" |
| | | > |
| | | <template #default="scope"> |
| | | {{ scope.row.startRuntimeTime || '-' }} |
| | | {{ dateOnly(scope.row.startRuntimeTime) || '-' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | align="center" |
| | | > |
| | | <template #default="scope"> |
| | | {{ scope.row.endRuntimeTime || '-' }} |
| | | {{ dateOnly(scope.row.endRuntimeTime) || '-' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | |
| | | const changeDeviceStatus = async (device, status) => { |
| | | try { |
| | | const currentTime = new Date().toLocaleString('zh-CN', { |
| | | year: 'numeric', |
| | | month: '2-digit', |
| | | day: '2-digit', |
| | | hour: '2-digit', |
| | | minute: '2-digit', |
| | | second: '2-digit', |
| | | hour12: false |
| | | }).replace(/\//g, '-') |
| | | const currentTime = dayjs().format('YYYY-MM-DD') |
| | | |
| | | // 更新设备状态和相关时间字段 |
| | | if (status === '启动运行') { |
| | |
| | | <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="入库时间">{{ dateOnly(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> |
| | |
| | | <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">{{ dateOnly(item.approveTime) }}</span> |
| | | </div> |
| | | <div class="todo-desc">部门:{{ item.approveDeptName }}</div> |
| | | <div class="todo-desc">事由:{{ item.approveReason }}</div> |
| | |
| | | <el-table-column prop="approveDeptName" label="部门/模板" min-width="160" /> |
| | | <el-table-column prop="approveReason" label="事由" min-width="240" show-overflow-tooltip /> |
| | | <el-table-column prop="approveUserName" label="发起人" min-width="120" /> |
| | | <el-table-column prop="approveTime" label="时间" min-width="170" /> |
| | | <el-table-column prop="approveTime" label="时间" min-width="170" :formatter="formatDateColumn" /> |
| | | </el-table> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="出库日期" |
| | | prop="createTime" |
| | | show-overflow-tooltip /> |
| | | show-overflow-tooltip |
| | | :formatter="formatDateColumn" /> |
| | | <el-table-column label="产品大类" |
| | | prop="productName" |
| | | show-overflow-tooltip /> |
| | |
| | | </el-row> |
| | | <el-table v-loading="rechargeDrawer.loading" :data="rechargeDrawer.list" border> |
| | | <el-table-column type="index" label="序号" width="60" align="center" /> |
| | | <el-table-column prop="rechargeDate" label="充值时间" width="160" /> |
| | | <el-table-column prop="rechargeDate" label="充值时间" width="160" :formatter="formatDateColumn" /> |
| | | <el-table-column prop="rechargeAmount" label="充值金额(元)" width="120" align="right"> |
| | | <template #default="scope"> |
| | | <span style="color: #67C23A; font-weight: bold;">+{{ scope.row.rechargeAmount }}</span> |
| | |
| | | :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="formatDateColumn" /> |
| | | <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 /> |
| | |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="入库时间" |
| | | prop="createTime" |
| | | show-overflow-tooltip /> |
| | | show-overflow-tooltip |
| | | :formatter="formatDateColumn" /> |
| | | <el-table-column label="产品大类" |
| | | prop="productName" |
| | | show-overflow-tooltip /> |
| | |
| | | label="最近更新时间" |
| | | prop="updateTime" |
| | | show-overflow-tooltip |
| | | :formatter="formatDateColumn" |
| | | /> |
| | | <el-table-column fixed="right" label="操作" min-width="180" align="center"> |
| | | <template #default="scope"> |
| | |
| | | <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 label="最近更新时间" prop="updateTime" show-overflow-tooltip :formatter="formatDateColumn" /> |
| | | <el-table-column fixed="right" label="操作" min-width="90" align="center"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="showSubtractModal(scope.row)" :disabled="scope.row.unLockedQuantity === 0">领用</el-button> |
| | |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="最近更新时间" |
| | | prop="updateTime" |
| | | show-overflow-tooltip /> |
| | | show-overflow-tooltip |
| | | :formatter="formatDateColumn" /> |
| | | <el-table-column fixed="right" |
| | | label="操作" |
| | | min-width="80" |
| | |
| | | <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 label="最近更新时间" prop="updateTime" show-overflow-tooltip :formatter="formatDateColumn" /> |
| | | <el-table-column fixed="right" label="操作" min-width="90" align="center"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="showSubtractModal(scope.row)" :disabled="scope.row.unLockedQuantity === 0">领用</el-button> |
| | |
| | | prop="createTime" |
| | | width="200" |
| | | show-overflow-tooltip |
| | | :formatter="formatDateColumn" |
| | | v-if="searchForm.reportType !== 'inout'" /> |
| | | <el-table-column label="入库批次" |
| | | prop="inboundBatches" |
| | |
| | | </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="formatDateColumn" /> |
| | | <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="formatDateColumn" /> |
| | | <el-table-column label="预计充装时间" prop="expectedRefillTime" width="150" show-overflow-tooltip :formatter="formatDateColumn" /> |
| | | <el-table-column label="预计缺气时间" prop="expectedShortageTime" width="150" show-overflow-tooltip> |
| | | <template #default="scope"> |
| | | <div v-if="scope.row.expectedShortageTime"> |
| | |
| | | label="装货时间" |
| | | width="160" |
| | | show-overflow-tooltip |
| | | :formatter="formatDateColumn" |
| | | /> |
| | | <el-table-column |
| | | prop="deliveryTime" |
| | | label="送货时间" |
| | | width="160" |
| | | show-overflow-tooltip |
| | | :formatter="formatDateColumn" |
| | | /> |
| | | <el-table-column |
| | | prop="signTime" |
| | | label="签收时间" |
| | | width="160" |
| | | show-overflow-tooltip |
| | | :formatter="formatDateColumn" |
| | | /> |
| | | <el-table-column label="状态" width="110" align="center"> |
| | | <template #default="scope"> |
| | |
| | | </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="执行时间:">{{ dateOnly(form.createTime) }}</el-form-item>
|
| | | </el-col>
|
| | | <el-col :span="24">
|
| | | <el-form-item label="调用方法:">{{ form.invokeTarget }}</el-form-item>
|
| | |
| | | > |
| | | <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="formatDateColumn" /> |
| | | <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 /> |
| | |
| | | <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="发布时间">{{ dateOnly(row.publishTime) || "—" }}</el-descriptions-item> |
| | | <el-descriptions-item label="当前版本">v{{ row.versionNo || 1 }}</el-descriptions-item> |
| | | <el-descriptions-item label="需阅读确认"> |
| | | {{ row.requireReadConfirm ? "是" : "否" }} |
| | |
| | | <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="申请时间">{{ dateOnly(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> |
| | |
| | | <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">{{ dateOnly(row.createTime) || "—" }}</el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | | <el-divider content-position="left">报销明细</el-divider> |
| | |
| | | <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="出差开始">{{ dateOnly(row.travelStartTime) || "—" }}</el-descriptions-item> |
| | | <el-descriptions-item label="出差结束">{{ dateOnly(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> |
| | |
| | | <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">{{ dateOnly(row.createTime) || "—" }}</el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | | <el-divider content-position="left">报销明细</el-divider> |
| | |
| | | </li> |
| | | <li class="list-group-item"> |
| | | <svg-icon icon-class="date" />创建日期 |
| | | <div class="pull-right">{{ state.user.createTime }}</div> |
| | | <div class="pull-right">{{ dateOnly(state.user.createTime) }}</div> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | |
| | | </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="formatDateColumn" /> |
| | | <el-table-column label="更新时间" prop="updateTime" width="180" sortable :formatter="formatDateColumn" /> |
| | | <el-table-column label="操作" width="250" align="center" fixed="right"> |
| | | <template #default="{ row }"> |
| | | <el-button type="primary" link @click="openDialog('edit', row)"> |
| | |
| | | </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="formatDateColumn" /> |
| | | <el-table-column label="操作" width="200" align="center"> |
| | | <template #default="{ row }"> |
| | | <el-button type="primary" link @click="openDialog('edit', row)">编辑</el-button> |
| | |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="生效时间" prop="effectiveTime" width="180" /> |
| | | <el-table-column label="生效时间" prop="effectiveTime" width="180" :formatter="formatDateColumn" /> |
| | | <el-table-column label="状态" prop="status" width="100"> |
| | | <template #default="{ row }"> |
| | | <el-tag :type="getStatusType(row.status)">{{ getStatusText(row.status) }}</el-tag> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="updateTime" |
| | | label="最后计算时间" |
| | | width="160" /> |
| | | width="160" |
| | | :formatter="formatDateColumn" /> |
| | | <el-table-column label="操作" |
| | | width="200" |
| | | fixed="right" |
| | |
| | | <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="formatDateColumn" /> |
| | | <el-table-column label="操作" width="200" align="center"> |
| | | <template #default="{ row }"> |
| | | <el-button type="primary" size="small" @click="openDialog('edit', row)">编辑</el-button> |
| | |
| | | </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="formatDateColumn" /> |
| | | <el-table-column label="操作" width="200" align="center"> |
| | | <template #default="{ row }"> |
| | | <el-button type="primary" link @click="openDialog('edit', row)">编辑</el-button> |
| | |
| | | <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="formatDateColumn" /> |
| | | <el-table-column label="操作" width="200" align="center"> |
| | | <template #default="{ row }"> |
| | | <el-button type="primary" link @click="openDialog('edit', row)">编辑</el-button> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="generateTime" |
| | | label="生成时间" |
| | | width="160" /> |
| | | width="160" |
| | | :formatter="formatDateColumn" /> |
| | | <el-table-column label="操作" |
| | | fixed="right" |
| | | align="center" |
| | |
| | | ...form, |
| | | id: newId, |
| | | identifierCode: identifierCode, |
| | | generateTime: new Date().toLocaleString(), |
| | | generateTime: dayjs().format("YYYY-MM-DD"), |
| | | }); |
| | | pagination.total++; |
| | | ElMessage.success("新增成功"); |
| | |
| | | min-width="120" /> |
| | | <el-table-column label="补料日期" |
| | | prop="supplementTime" |
| | | min-width="160" /> |
| | | min-width="160" |
| | | :formatter="formatDateColumn" /> |
| | | <el-table-column label="补料原因" |
| | | prop="feedingReason" |
| | | min-width="200" /> |
| | |
| | | |
| | | <script> |
| | | import * as echarts from 'echarts' |
| | | import { dateOnly } from '@/utils/index' |
| | | |
| | | export default { |
| | | name: 'SafetyMonitoring', |
| | |
| | | const now = new Date() |
| | | const record = { |
| | | id: `EM${Date.now()}`, |
| | | time: now.toLocaleString('zh-CN'), |
| | | time: dateOnly(now), |
| | | location: sensor.name, |
| | | type: sensor.methane > 2.5 ? '甲烷超标' : '硫化氢超标', |
| | | status: 'processing', |
| | |
| | | }, |
| | | { |
| | | id: 2, |
| | | timestamp: new Date(new Date(record.time).getTime() + 3000).toLocaleString('zh-CN'), |
| | | timestamp: dateOnly(new Date(new Date(record.time).getTime() + 3000)), |
| | | type: 'action', |
| | | description: '启动喷淋系统降温' |
| | | }, |
| | | { |
| | | id: 3, |
| | | timestamp: new Date(new Date(record.time).getTime() + 5000).toLocaleString('zh-CN'), |
| | | timestamp: dateOnly(new Date(new Date(record.time).getTime() + 5000)), |
| | | type: 'action', |
| | | description: '发送紧急疏散广播' |
| | | } |
| | |
| | | </div> --> |
| | | <div class="info-item"> |
| | | <span class="info-label">计划开始时间</span> |
| | | <span class="info-value">{{ transferCardRowData.planStartTime }}</span> |
| | | <span class="info-value">{{ dateOnly(transferCardRowData.planStartTime) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">计划结束时间</span> |
| | | <span class="info-value">{{ transferCardRowData.planEndTime }}</span> |
| | | <span class="info-value">{{ dateOnly(transferCardRowData.planEndTime) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">备注</span> |
| | |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">实际开始时间</span> |
| | | <span class="info-value">{{ transferCardRowData.actualStartTime }}</span> |
| | | <span class="info-value">{{ dateOnly(transferCardRowData.actualStartTime) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">实际结束时间</span> |
| | | <span class="info-value">{{ transferCardRowData.actualEndTime }}</span> |
| | | <span class="info-value">{{ dateOnly(transferCardRowData.actualEndTime) }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | min-width="120" /> |
| | | <el-table-column label="补料日期" |
| | | prop="supplementTime" |
| | | min-width="160" /> |
| | | min-width="160" |
| | | :formatter="formatDateColumn" /> |
| | | </el-table> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">计划开始时间</span> |
| | | <span class="info-value">{{ transferCardRowData.planStartTime }}</span> |
| | | <span class="info-value">{{ dateOnly(transferCardRowData.planStartTime) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">计划结束时间</span> |
| | | <span class="info-value">{{ transferCardRowData.planEndTime }}</span> |
| | | <span class="info-value">{{ dateOnly(transferCardRowData.planEndTime) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">备注</span> |
| | |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">实际开始时间</span> |
| | | <span class="info-value">{{ transferCardRowData.actualStartTime }}</span> |
| | | <span class="info-value">{{ dateOnly(transferCardRowData.actualStartTime) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">实际结束时间</span> |
| | | <span class="info-value">{{ transferCardRowData.actualEndTime }}</span> |
| | | <span class="info-value">{{ dateOnly(transferCardRowData.actualEndTime) }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <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="立项日期">{{ formatDate(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> |
| | |
| | | <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="计划开始日期">{{ formatDate(info.planStartTime) }}</el-descriptions-item> |
| | | <el-descriptions-item label="计划完成日期">{{ formatDate(info.planEndTime) }}</el-descriptions-item> |
| | | <el-descriptions-item label="实际开始日期">{{ formatDate(info.actualStartTime) }}</el-descriptions-item> |
| | | <el-descriptions-item label="实际完成日期">{{ formatDate(info.actualEndTime) }}</el-descriptions-item> |
| | | <el-descriptions-item label="订单日期">{{ 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-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="formatDateColumn" /> |
| | | <el-table-column label="离开日期" prop="departTime" width="140" :formatter="formatDateColumn" /> |
| | | <el-table-column label="联系方式" prop="contact" show-overflow-tooltip /> |
| | | <el-table-column label="备注" prop="remark" show-overflow-tooltip /> |
| | | </el-table> |
| | |
| | | <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="formatDateColumn" /> |
| | | <el-table-column label="计划结束" prop="planEndTime" width="120" :formatter="formatDateColumn" /> |
| | | <el-table-column label="实际开始" prop="actualStartTime" width="120" :formatter="formatDateColumn" /> |
| | | <el-table-column label="实际结束" prop="actualEndTime" width="120" :formatter="formatDateColumn" /> |
| | | <el-table-column label="预计工期(天)" prop="estimatedDuration" width="130" /> |
| | | <el-table-column label="附件" width="90" align="center"> |
| | | <template #default="{ row }"> |
| | |
| | | <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>{{ dateOnly(scope.row.feedbackTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="问题描述" prop="problemDesc" show-overflow-tooltip /> |
| | |
| | | > |
| | | <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">{{ dateOnly(item.approveTime) }}</div> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | <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="formatDateColumn" /> |
| | | <el-table-column prop="updateTime" label="更新时间" width="180" :formatter="formatDateColumn" /> |
| | | <el-table-column label="操作" width="150" fixed="right"> |
| | | <template #default="scope"> |
| | | <el-button type="text" size="small" @click="viewDetail(scope.row)">查看</el-button> |
| | |
| | | <span>{{ currentKnowledge.accidentName }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="事故发生时间"> |
| | | {{ currentKnowledge.happenTime }} |
| | | {{ dateOnly(currentKnowledge.happenTime) }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="事故发生地点"> |
| | | {{ currentKnowledge.happenLocation }} |
| | |
| | | {{ currentKnowledge.createUserName }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="上报时间"> |
| | | {{ currentKnowledge.createTime }} |
| | | {{ dateOnly(currentKnowledge.createTime) }} |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <div class="detail-section"> |
| | |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="上报时间" |
| | | prop="createTime" |
| | | :formatter="formatDateColumn" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="整改完成期限" |
| | | prop="rectifyTime" |
| | | width="120" |
| | | :formatter="formatDateColumn" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="整改责任人" |
| | | prop="rectifyUserName" |
| | |
| | | <el-table-column label="实际整改完成时间" |
| | | prop="rectifyActualTime" |
| | | width="120" |
| | | :formatter="formatDateColumn" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="验收意见" |
| | | prop="verifyRemark" |
| | |
| | | <el-table-column label="验收时间" |
| | | prop="verifyTime" |
| | | width="120" |
| | | :formatter="formatDateColumn" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="验收结果" |
| | | prop="verifyResult" |
| | |
| | | <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">{{ dateOnly(form.createTime) }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="整改责任人"> |
| | | <span class="detail-title">{{ form.rectifyUserName }}</span> |
| | |
| | | <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">{{ dateOnly(form.rectifyTime) }}</span> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <div class="classtitle" |
| | |
| | | <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">{{ dateOnly(form2.rectifyActualTime) }}</span> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <div class="classtitle" |
| | |
| | | <span>{{ currentKnowledge.planCode }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="发布生效时间"> |
| | | {{ currentKnowledge.publishTime }} |
| | | {{ dateOnly(currentKnowledge.publishTime) }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="核心责任人"> |
| | | {{ currentKnowledge.coreResponsorUserName }} |
| | |
| | | <span>{{ form.applyPurpose }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="领用时间"> |
| | | <span>{{ form.applyTime }}</span> |
| | | <span>{{ dateOnly(form.applyTime) }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="领用数量"> |
| | | <span>{{ form.applyQty }}</span> |
| | |
| | | </el-descriptions-item> |
| | | <el-descriptions-item v-if="dialogType === 'view' && form.returnTime" |
| | | label="归还时间"> |
| | | <span>{{ form.returnTime }}</span> |
| | | <span>{{ dateOnly(form.returnTime) }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item v-if="dialogType === 'view' && form.returnUserId" |
| | | label="归还情况说明"> |
| | |
| | | <el-table-column label="有效期" |
| | | prop="effectiveTime" |
| | | width="120" |
| | | :formatter="formatDateColumn" |
| | | show-overflow-tooltip /> |
| | | <el-table-column fixed="right" |
| | | label="操作" |
| | |
| | | </template> |
| | | <!-- <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="制单时间">{{ dateOnly(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> |
| | |
| | | </li>
|
| | | <li class="list-group-item">
|
| | | <svg-icon icon-class="date" />创建日期
|
| | | <div class="pull-right">{{ state.user.createTime }}</div>
|
| | | <div class="pull-right">{{ dateOnly(state.user.createTime) }}</div>
|
| | | </li>
|
| | | </ul>
|
| | | </div>
|