fix(date): 页面展示的时间统一只到年月日
- 新增 toDateOnly 工具,未单独配置 formatter 的 el-table 列通过全局 formatter 兜底
- parseTime / formatDate 默认格式改为年月日,PIMTable 显式转换
- 各页面明细、描述列表、通知、首页看板等直接插值的时间字段统一走 formatDateOnly
- 审批模板、报销、保养、付款台账等自定义时间格式化去掉时分秒
Co-Authored-By: Claude Code <noreply@anthropic.com>
| | |
| | | class="cell link" |
| | | style="width: 100%" |
| | | @click="goLink(scope.row, item.linkMethod)"> |
| | | <span v-if="!item.formatData">{{ scope.row[item.prop] }}</span> |
| | | <span v-if="!item.formatData">{{ |
| | | toDateOnly(scope.row[item.prop]) |
| | | }}</span> |
| | | </div> |
| | | <!-- é»è®¤çº¯å±ç¤ºæ°æ® --> |
| | | <div v-else |
| | | class="cell" |
| | | style="width: 100%"> |
| | | <span v-if="!item.formatData">{{ scope.row[item.prop] }}</span> |
| | | <span v-if="!item.formatData">{{ |
| | | toDateOnly(scope.row[item.prop]) |
| | | }}</span> |
| | | <span v-else>{{ |
| | | formatters(scope.row[item.prop], item.formatData) |
| | | toDateOnly(formatters(scope.row[item.prop], item.formatData)) |
| | | }}</span> |
| | | </div> |
| | | </template> |
| | |
| | | import pagination from "./Pagination.vue"; |
| | | import { computed, ref, inject, getCurrentInstance } from "vue"; |
| | | import { ElMessage } from "element-plus"; |
| | | import { toDateOnly } from "@/utils/dateDisplay"; |
| | | |
| | | // è·åå
¨å±ç uploadHeader |
| | | const { proxy } = getCurrentInstance(); |
| | |
| | | <p><strong>å
容ï¼</strong>{{ form.content }}</p> |
| | | <p><strong>ç±»åï¼</strong>{{ form.type === 'qrcode' ? 'äºç»´ç ' : 'é²ä¼ªç ' }}</p> |
| | | <p><strong>尺寸ï¼</strong>{{ form.size }}x{{ form.size }}px</p> |
| | | <p><strong>çææ¶é´ï¼</strong>{{ generateTime }}</p> |
| | | <p><strong>çææ¶é´ï¼</strong>{{ formatDateOnly(generateTime) }}</p> |
| | | </div> |
| | | </div> |
| | | <div class="code-actions"> |
| | |
| | | <div class="notification-content-wrapper"> |
| | | <div class="notification-title">{{ item.noticeTitle }}</div> |
| | | <div class="notification-detail">{{ item.noticeContent }}</div> |
| | | <div class="notification-time">{{ item.createTime }}</div> |
| | | <div class="notification-time">{{ formatDateOnly(item.createTime) }}</div> |
| | | </div> |
| | | <div class="notification-action"> |
| | | <el-button type="primary" |
| | |
| | | <div class="notification-content-wrapper"> |
| | | <div class="notification-title">{{ item.noticeTitle }}</div> |
| | | <div class="notification-detail">{{ item.noticeContent }}</div> |
| | | <div class="notification-time">{{ item.createTime }}</div> |
| | | <div class="notification-time">{{ formatDateOnly(item.createTime) }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | import PageHeader from "@/components/PageHeader/index.vue"; |
| | | |
| | | import { getToken } from "@/utils/auth"; |
| | | import { toDateOnly } from "@/utils/dateDisplay"; |
| | | import { |
| | | calculateTaxExclusiveTotalPrice, |
| | | summarizeTable, |
| | |
| | | app.config.globalProperties.selectDictLabel = selectDictLabel; |
| | | app.config.globalProperties.selectDictLabels = selectDictLabels; |
| | | app.config.globalProperties.javaApi = __BASE_API__; |
| | | // å±ç¤ºç¨æ¥æï¼å¸¦æ¶åç§çåªä¿çå¹´ææ¥ |
| | | app.config.globalProperties.formatDateOnly = toDateOnly; |
| | | app.config.globalProperties.toDateOnly = toDateOnly; |
| | | app.config.globalProperties.HaveJson = (val) => { |
| | | return JSON.parse(JSON.stringify(val)); |
| | | }; |
| | |
| | | }); |
| | | app._context.components.ElDialog.props.closeOnClickModal.default = false; |
| | | |
| | | // å表æ¶é´ç»ä¸åªå±ç¤ºå¹´ææ¥ï¼æªåç¬é
ç½® formatter çè¡¨æ ¼åèµ°è¿é |
| | | const tableColumnFormatter = |
| | | app._context.components.ElTableColumn?.props?.formatter; |
| | | if (tableColumnFormatter) { |
| | | const formatCell = (row, column, cellValue) => toDateOnly(cellValue); |
| | | if (typeof tableColumnFormatter === "function") { |
| | | app._context.components.ElTableColumn.props.formatter = { |
| | | type: Function, |
| | | default: formatCell, |
| | | }; |
| | | } else { |
| | | tableColumnFormatter.default = formatCell; |
| | | } |
| | | } |
| | | |
| | | app.mount("#app"); |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * å±ç¤ºç¨çæ¥æå¤çï¼å¸¦æ¶åç§çæ¥ææ¶é´åªä¿çå¹´ææ¥ï¼ |
| | | * æ¬æ¥å°±æ¯æ¥æãæ¶é´æå
¶å®å
容çå¼åæ ·è¿åã |
| | | */ |
| | | const DATE_TIME_PATTERN = |
| | | /^(\d{4})[-/å¹´](\d{1,2})[-/æ](\d{1,2})æ¥?[ T]\d{1,2}:\d{2}(?::\d{2})?(?:\.\d+)?(?:Z|[+-]\d{2}:?\d{2})?$/; |
| | | |
| | | function pad2(value) { |
| | | return String(value).padStart(2, "0"); |
| | | } |
| | | |
| | | export function toDateOnly(value) { |
| | | if (value == null || value === "") return value; |
| | | |
| | | if (value instanceof Date) { |
| | | if (Number.isNaN(value.getTime())) return value; |
| | | return `${value.getFullYear()}-${pad2(value.getMonth() + 1)}-${pad2( |
| | | value.getDate() |
| | | )}`; |
| | | } |
| | | |
| | | if (typeof value !== "string") { |
| | | // æ°åã对象çåæ ·è¿åï¼äº¤ç»æ¸²æå±æåææ¹å¼å¤ç |
| | | return value; |
| | | } |
| | | |
| | | const text = value.trim(); |
| | | const matched = text.match(DATE_TIME_PATTERN); |
| | | if (!matched) return value; |
| | | |
| | | return `${matched[1]}-${pad2(matched[2])}-${pad2(matched[3])}`; |
| | | } |
| | |
| | | import { parseTime } from "./ruoyi";
|
| | |
|
| | | /**
|
| | | * è¡¨æ ¼æ¶é´æ ¼å¼å
|
| | | * è¡¨æ ¼æ¶é´æ ¼å¼åï¼é¡µé¢å±ç¤ºåªä¿çå¹´ææ¥ï¼
|
| | | */
|
| | | export function formatDate(cellValue) {
|
| | | if (cellValue == null || cellValue == "") return "";
|
| | | var date = new Date(cellValue);
|
| | | var year = date.getFullYear();
|
| | | var month =
|
| | | date.getMonth() + 1 < 10
|
| | | ? "0" + (date.getMonth() + 1)
|
| | | : date.getMonth() + 1;
|
| | | var day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
|
| | | var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
|
| | | var minutes =
|
| | | date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
|
| | | var seconds =
|
| | | date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
|
| | | return (
|
| | | year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds
|
| | | );
|
| | | return parseTime(cellValue, "{y}-{m}-{d}");
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | if (arguments.length === 0 || !time) {
|
| | | return null
|
| | | }
|
| | | const format = pattern || '{y}-{m}-{d} {h}:{i}:{s}'
|
| | | // 页é¢å±ç¤ºç»ä¸åªå°å¹´ææ¥ï¼éè¦æ¶åç§æ¶æ¾å¼ä¼ å
¥ pattern
|
| | | const format = pattern || '{y}-{m}-{d}'
|
| | | let date
|
| | | if (typeof time === 'object') {
|
| | | date = time
|
| | |
| | | <header class="brain-head"> |
| | | <div class="head-date"> |
| | | <p>{{ weekLabel }}</p> |
| | | <p>{{ dateLabel }}</p> |
| | | <p>{{ formatDateOnly(dateLabel) }}</p> |
| | | </div> |
| | | |
| | | <div class="head-title"> |
| | |
| | | <el-col :span="12"> |
| | | <div class="info-item"> |
| | | <span class="info-label">ç»´æ¤æ¶é´ï¼</span> |
| | | <span class="info-value">{{ detailForm.maintenanceTime }}</span> |
| | | <span class="info-value">{{ formatDateOnly(detailForm.maintenanceTime) }}</span> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <el-col :span="12"> |
| | | <div class="info-item"> |
| | | <span class="info-label">ç»´æ¤æ¶é´ï¼</span> |
| | | <span class="info-value">{{ detailForm.maintenanceTime }}</span> |
| | | <span class="info-value">{{ formatDateOnly(detailForm.maintenanceTime) }}</span> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <div class="info-time"> |
| | | <img :src="item.headImg" alt="" /> |
| | | <span>{{ item.name }}</span> |
| | | <span>{{ item.time }}</span> |
| | | <span>{{ formatDateOnly(item.time) }}</span> |
| | | </div> |
| | | <div class="chat-text" v-if="item.chatType == 0"> |
| | | <template v-if="isSend && index === chatList.length - 1"> |
| | |
| | | <div class="chat-me" v-else> |
| | | <div class="info-time"> |
| | | <span>{{ item.name }}</span> |
| | | <span>{{ item.time }}</span> |
| | | <span>{{ formatDateOnly(item.time) }}</span> |
| | | <img :src="item.headImg" alt="" /> |
| | | </div> |
| | | <div class="chat-text" v-if="item.chatType == 0"> |
| | |
| | | <el-descriptions-item label="æ¥ä»·åå·">{{ currentQuotation.quotationNo }}</el-descriptions-item> |
| | | <el-descriptions-item label="客æ·åç§°">{{ currentQuotation.customer }}</el-descriptions-item> |
| | | <el-descriptions-item label="ä¸å¡å">{{ currentQuotation.salesperson }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥ä»·æ¥æ">{{ currentQuotation.quotationDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="æææè³">{{ currentQuotation.validDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥ä»·æ¥æ">{{ formatDateOnly(currentQuotation.quotationDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="æææè³">{{ formatDateOnly(currentQuotation.validDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="仿¬¾æ¹å¼">{{ currentQuotation.paymentMethod }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥ä»·æ»é¢" |
| | | :span="2"> |
| | |
| | | <el-descriptions-item label="ä¾åºååç§°">{{ currentPurchase.supplierName }}</el-descriptions-item> |
| | | <el-descriptions-item label="项ç®åç§°">{{ currentPurchase.projectName }}</el-descriptions-item> |
| | | <el-descriptions-item label="éå®ååå·">{{ currentPurchase.salesContractNo }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç¾è®¢æ¥æ">{{ currentPurchase.executionDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="å½å
¥æ¥æ">{{ currentPurchase.entryDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç¾è®¢æ¥æ">{{ formatDateOnly(currentPurchase.executionDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="å½å
¥æ¥æ">{{ formatDateOnly(currentPurchase.entryDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="仿¬¾æ¹å¼">{{ currentPurchase.paymentMethod }}</el-descriptions-item> |
| | | <el-descriptions-item label="ååéé¢" |
| | | :span="2"> |
| | |
| | | <el-descriptions-item label="å货订åå·">{{ currentDelivery.shippingInfo.shippingNo || '--' }}</el-descriptions-item> |
| | | <el-descriptions-item label="客æ·åç§°">{{ currentDelivery.shippingInfo.customerName || '--' }}</el-descriptions-item> |
| | | <el-descriptions-item label="åè´§ç±»å">{{ currentDelivery.shippingInfo.type || '--' }}</el-descriptions-item> |
| | | <el-descriptions-item label="åè´§æ¥æ">{{ currentDelivery.shippingInfo.shippingDate || '--' }}</el-descriptions-item> |
| | | <el-descriptions-item label="åè´§æ¥æ">{{ formatDateOnly(currentDelivery.shippingInfo.shippingDate || '--') }}</el-descriptions-item> |
| | | <el-descriptions-item label="å®¡æ ¸ç¶æ">{{ currentDelivery.shippingInfo.status || '--' }}</el-descriptions-item> |
| | | <el-descriptions-item label="å货车çå·">{{ currentDelivery.shippingInfo.shippingCarNumber || '--' }}</el-descriptions-item> |
| | | </el-descriptions> |
| | |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">æè®¿æ¶é´</span> |
| | | <span class="info-value">{{ detailForm.purposeDate || '-' }}</span> |
| | | <span class="info-value">{{ formatDateOnly(detailForm.purposeDate || '-') }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">æè®¿å°ç¹</span> |
| | |
| | | {{ currentKnowledge.creator }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="å建æ¶é´"> |
| | | {{ currentKnowledge.createTime }} |
| | | {{ formatDateOnly(currentKnowledge.createTime) }} |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | |
| | | </div> |
| | | <div class="card-info"> |
| | | <span class="creator">{{ notice.createUserName }}</span> |
| | | <span class="expiration" v-if="notice.expirationDate">æªæ¢æ¥æï¼{{ notice.expirationDate }}</span> |
| | | <span class="expiration" v-if="notice.expirationDate">æªæ¢æ¥æï¼{{ formatDateOnly(notice.expirationDate) }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="card-remark" v-if="notice.remark"> |
| | |
| | | <el-descriptions-item label="ä¼è®®æ¶é´" :span="2"> |
| | | {{ formatDateTime(currentDraft.meetingTime) }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="å建æ¶é´">{{ currentDraft.createTime }}</el-descriptions-item> |
| | | <el-descriptions-item label="å建æ¶é´">{{ formatDateOnly(currentDraft.createTime) }}</el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | | <div class="content-section mt-20"> |
| | |
| | | {{ getStatusText(currentMeeting.status) }} |
| | | </el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="ç³è¯·æ¶é´" label-class-name="nowrap-label">{{ |
| | | currentMeeting.createTime |
| | | }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç³è¯·æ¶é´" label-class-name="nowrap-label">{{ formatDateOnly(currentMeeting.createTime) }}</el-descriptions-item> |
| | | <el-descriptions-item style="max-height: 400px" label="ä¼è®®è¯´æ" :span="2" |
| | | label-class-name="nowrap-label">{{ currentMeeting.description }}</el-descriptions-item> |
| | | </el-descriptions> |
| | |
| | | > |
| | | <div v-if="cell.type === 'meeting'" class="meeting-content"> |
| | | <div class="meeting-title">{{ cell.meeting.title }}</div> |
| | | <div class="meeting-time">{{ cell.startTime }}-{{ cell.endTime }}</div> |
| | | <div class="meeting-time">{{ formatDateOnly(cell.startTime) }}-{{ formatDateOnly(cell.endTime) }}</div> |
| | | </div> |
| | | <div v-else class="free-content"> |
| | | ç©ºé² |
| | |
| | | <el-descriptions :column="1" border> |
| | | <el-descriptions-item label="ä¼è®®ä¸»é¢">{{ currentMeeting.title }}</el-descriptions-item> |
| | | <el-descriptions-item label="ä¼è®®å®¤">{{ currentMeeting.room }}</el-descriptions-item> |
| | | <el-descriptions-item label="ä¼è®®æ¶é´">{{ currentMeeting.time }}</el-descriptions-item> |
| | | <el-descriptions-item label="ä¼è®®æ¶é´">{{ formatDateOnly(currentMeeting.time) }}</el-descriptions-item> |
| | | <el-descriptions-item label="主æäºº">{{ currentMeeting.host }}</el-descriptions-item> |
| | | <el-descriptions-item label="åä¼äººæ°">{{ currentMeeting.participants }}人</el-descriptions-item> |
| | | <el-descriptions-item label="ä¼è®®è¯´æ">{{ currentMeeting.description }}</el-descriptions-item> |
| | |
| | | {{ getStatusText(currentMeeting.status) }} |
| | | </el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="ç³è¯·æ¶é´" label-class-name="nowrap-label">{{ |
| | | currentMeeting.createTime |
| | | }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç³è¯·æ¶é´" label-class-name="nowrap-label">{{ formatDateOnly(currentMeeting.createTime) }}</el-descriptions-item> |
| | | <el-descriptions-item style="max-height: 400px" label="ä¼è®®è¯´æ" :span="2" |
| | | label-class-name="nowrap-label">{{ currentMeeting.description }}</el-descriptions-item> |
| | | </el-descriptions> |
| | |
| | | {{ getStatusText(currentMeeting.status) }} |
| | | </el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="ç³è¯·æ¶é´" label-class-name="nowrap-label">{{ |
| | | currentMeeting.createTime |
| | | }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç³è¯·æ¶é´" label-class-name="nowrap-label">{{ formatDateOnly(currentMeeting.createTime) }}</el-descriptions-item> |
| | | <el-descriptions-item style="max-height: 400px" label="ä¼è®®è¯´æ" :span="2" |
| | | label-class-name="nowrap-label">{{ currentMeeting.description }}</el-descriptions-item> |
| | | </el-descriptions> |
| | |
| | | // æ ¼å¼åæ¥ææ¶é´ |
| | | const formatDateTime = (dateTime) => { |
| | | if (!dateTime) return '' |
| | | return dateTime.replace(' ', '\n') |
| | | const matched = String(dateTime).match(/^(\d{4})[-/](\d{1,2})[-/](\d{1,2})/) |
| | | if (!matched) return dateTime |
| | | return `${matched[1]}-${matched[2].padStart(2, '0')}-${matched[3].padStart(2, '0')}` |
| | | } |
| | | |
| | | // 页é¢å è½½æ¶è·åæ°æ® |
| | |
| | | {{ getStatusText(currentDetail.status) }} |
| | | </el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="ç³è¯·æ¶é´">{{ currentDetail.applyTime }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç³è¯·æ¶é´">{{ formatDateOnly(currentDetail.applyTime) }}</el-descriptions-item> |
| | | <el-descriptions-item label="审æ¹äºº">{{ currentDetail.approval || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="å®¡æ¹æ¶é´">{{ currentDetail.approvalTime || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="å®¡æ¹æ¶é´">{{ formatDateOnly(currentDetail.approvalTime || '-') }}</el-descriptions-item> |
| | | <el-descriptions-item label="å®¡æ¹æè§" :span="2">{{ currentDetail.approvalOpinions || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="åæ¾æ¶é´">{{ currentDetail.issueTime || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="åæ¾æ¶é´">{{ formatDateOnly(currentDetail.issueTime || '-') }}</el-descriptions-item> |
| | | <el-descriptions-item label="åæ¾äºº">{{ currentDetail.issueUser || '-' }}</el-descriptions-item> |
| | | </el-descriptions> |
| | | </el-dialog> |
| | |
| | | <div class="plan-meta"> |
| | | <div class="meta-item"> |
| | | <el-icon><Calendar /></el-icon> |
| | | <span>{{ plan.startDate }} - {{ plan.endDate }}</span> |
| | | <span>{{ formatDateOnly(plan.startDate) }} - {{ formatDateOnly(plan.endDate) }}</span> |
| | | </div> |
| | | <div class="meta-item"> |
| | | <el-icon><User /></el-icon> |
| | |
| | | <el-descriptions-item label="计åæè¿°">{{ currentPlanDetail.description }}</el-descriptions-item> |
| | | <el-descriptions-item label="计å级å«">{{ getCurrentLevelText(currentPlanDetail.level) }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¶é´å¨æ">{{ getCurrentPeriodText(currentPlanDetail.period) }}</el-descriptions-item> |
| | | <el-descriptions-item label="å¼å§æ¶é´">{{ currentPlanDetail.startDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç»ææ¶é´">{{ currentPlanDetail.endDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="å¼å§æ¶é´">{{ formatDateOnly(currentPlanDetail.startDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç»ææ¶é´">{{ formatDateOnly(currentPlanDetail.endDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="è´è´£äºº">{{ currentPlanDetail.assignee }}</el-descriptions-item> |
| | | <el-descriptions-item label="ä¼å
级">{{ getPriorityText(currentPlanDetail.priority) }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ ç¾">{{ currentPlanDetail.tags.join(', ') }}</el-descriptions-item> |
| | |
| | | <el-descriptions :column="2" border> |
| | | <el-descriptions-item label="项ç®åç§°">{{ reportData.projectInfo.name }}</el-descriptions-item> |
| | | <el-descriptions-item label="项ç®ç»ç">{{ reportData.projectInfo.manager }}</el-descriptions-item> |
| | | <el-descriptions-item label="å¼å§æ¶é´">{{ reportData.projectInfo.startDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç»ææ¶é´">{{ reportData.projectInfo.endDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="å¼å§æ¶é´">{{ formatDateOnly(reportData.projectInfo.startDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç»ææ¶é´">{{ formatDateOnly(reportData.projectInfo.endDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="项ç®ç¶æ"> |
| | | <el-tag :type="getStatusType(reportData.projectInfo.status)"> |
| | | {{ reportData.projectInfo.status }} |
| | |
| | | <el-descriptions-item label="åç±»">{{ getCategoryText(currentRegulationDetail.category) }}</el-descriptions-item> |
| | | <el-descriptions-item label="çæ¬">{{ currentRegulationDetail.version }}</el-descriptions-item> |
| | | <el-descriptions-item label="åå¸äºº">{{ currentRegulationDetail.createUserName }}</el-descriptions-item> |
| | | <el-descriptions-item label="å叿¶é´">{{ currentRegulationDetail.createTime }}</el-descriptions-item> |
| | | <el-descriptions-item label="å叿¶é´">{{ formatDateOnly(currentRegulationDetail.createTime) }}</el-descriptions-item> |
| | | </el-descriptions> |
| | | <div class="mt-20"> |
| | | <h4>å¶åº¦å
容</h4> |
| | |
| | | <el-descriptions-item label="ç³è¯·äºº">{{ currentSealDetail.createUserName }}</el-descriptions-item> |
| | | <el-descriptions-item label="æå±é¨é¨">{{ currentSealDetail.department }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç¨å°ç±»å">{{ getSealTypeText(currentSealDetail.sealType) }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç³è¯·æ¶é´">{{ currentSealDetail.createTime }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç³è¯·æ¶é´">{{ formatDateOnly(currentSealDetail.createTime) }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç¶æ"> |
| | | <el-tag :type="getStatusType(currentSealDetail.status)"> |
| | | {{ getStatusText(currentSealDetail.status) }} |
| | |
| | | <div class="page-header"> |
| | | <h2>è½æºé©¾é©¶è±</h2> |
| | | <div class="header-info"> |
| | | <span class="update-time">æåæ´æ°ï¼{{ lastUpdateTime }}</span> |
| | | <span class="update-time">æåæ´æ°ï¼{{ formatDateOnly(lastUpdateTime) }}</span> |
| | | <el-button type="primary" size="small" @click="refreshData"> |
| | | <el-icon><Refresh /></el-icon> |
| | | å·æ°æ°æ® |
| | |
| | | <div class="abnormal-content"> |
| | | <div class="abnormal-title">{{ item.title }}</div> |
| | | <div class="abnormal-desc">{{ item.description }}</div> |
| | | <div class="abnormal-time">{{ item.time }}</div> |
| | | <div class="abnormal-time">{{ formatDateOnly(item.time) }}</div> |
| | | </div> |
| | | <div class="abnormal-action"> |
| | | <el-button link size="small" @click="handleAbnormal(item)">å¤ç</el-button> |
| | |
| | | <div class="page-header"> |
| | | <h2>ç¨æ°ç®¡çç³»ç»</h2> |
| | | <div class="header-info"> |
| | | <span class="update-time">æåæ´æ°ï¼{{ lastUpdateTime }}</span> |
| | | <span class="update-time">æåæ´æ°ï¼{{ formatDateOnly(lastUpdateTime) }}</span> |
| | | <el-button type="primary" size="small" @click="refreshData"> |
| | | <el-icon><Refresh /></el-icon> |
| | | å·æ°æ°æ® |
| | |
| | | <el-col :span="12"> |
| | | <div class="detail-item"> |
| | | <label>æåæ´æ°æ¶é´:</label> |
| | | <span>{{ currentMeter.lastUpdateTime }}</span> |
| | | <span>{{ formatDateOnly(currentMeter.lastUpdateTime) }}</span> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <div class="maintenance-info"> |
| | | <div class="maintenance-item"> |
| | | <span class="label">æåç»´æ¤ï¼</span> |
| | | <span class="value">{{ deviceInfo.updateTime }}</span> |
| | | <span class="value">{{ formatDateOnly(deviceInfo.updateTime) }}</span> |
| | | </div> |
| | | <div class="maintenance-item"> |
| | | <span class="label">䏿¬¡ç»´æ¤ï¼</span> |
| | | <span class="value">{{ deviceInfo.createTime }}</span> |
| | | <span class="value">{{ formatDateOnly(deviceInfo.createTime) }}</span> |
| | | </div> |
| | | <div class="maintenance-item"> |
| | | <span class="label">ç»´æ¤ç¶æï¼</span> |
| | |
| | | <div class="maintenance-list"> |
| | | <div class="maintenance-item" v-for="record in maintenanceRecords" :key="record.id"> |
| | | <div class="record-header"> |
| | | <span class="record-date">{{ record.date }}</span> |
| | | <span class="record-date">{{ formatDateOnly(record.date) }}</span> |
| | | <el-tag :type="record.type === 'inspection' ? 'primary' : 'success'" size="small"> |
| | | {{ record.type === 'inspection' ? 'æ£éª' : 'ç»´æ¤' }} |
| | | </el-tag> |
| | |
| | | formatData: cell => { |
| | | if (!cell) return "-"; |
| | | try { |
| | | return dayjs(cell).format("YYYY-MM-DD HH:mm:ss"); |
| | | return dayjs(cell).format("YYYY-MM-DD"); |
| | | } catch { |
| | | return cell; |
| | | } |
| | |
| | | <el-descriptions-item label="å«ç¨æ»ä»·">{{ detailData.taxIncludingPriceTotal }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç¨ç(%)">{{ detailData.taxRate }}</el-descriptions-item> |
| | | <el-descriptions-item label="ä¸å«ç¨æ»ä»·">{{ detailData.unTaxIncludingPriceTotal }}</el-descriptions-item> |
| | | <el-descriptions-item label="å½å
¥æ¥æ">{{ detailData.createTime }}</el-descriptions-item> |
| | | <el-descriptions-item label="å½å
¥æ¥æ">{{ formatDateOnly(detailData.createTime) }}</el-descriptions-item> |
| | | <el-descriptions-item label="é¢è®¡è¿è¡æ¶é´">{{ detailData.planRuntimeTime ? dayjs(detailData.planRuntimeTime).format('YYYY-MM-DD') : '' }}</el-descriptions-item> |
| | | <el-descriptions-item label="设å¤å¾ç" :span="2"> |
| | | <div v-if="detailData.storageBlobVOs && detailData.storageBlobVOs.length > 0" style="display: flex; gap: 10px; flex-wrap: wrap;"> |
| | |
| | | align="center" |
| | | > |
| | | <template #default="scope"> |
| | | {{ scope.row.planRuntimeTime || '-' }} |
| | | {{ formatDateOnly(scope.row.planRuntimeTime || '-') }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | align="center" |
| | | > |
| | | <template #default="scope"> |
| | | {{ scope.row.startRuntimeTime || '-' }} |
| | | {{ formatDateOnly(scope.row.startRuntimeTime || '-') }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | align="center" |
| | | > |
| | | <template #default="scope"> |
| | | {{ scope.row.endRuntimeTime || '-' }} |
| | | {{ formatDateOnly(scope.row.endRuntimeTime || '-') }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | prop: "registrationDate", |
| | | label: "ç»è®°æ¥æ", |
| | | minWidth: 100, |
| | | formatData: cell => |
| | | cell ? dayjs(cell).format("YYYY-MM-DD HH:mm:ss") : "-", |
| | | formatData: cell => (cell ? dayjs(cell).format("YYYY-MM-DD") : "-"), |
| | | }, |
| | | { |
| | | fixed: "right", |
| | |
| | | label: "å®é
ä¿å
»æ¥æ", |
| | | align: "center", |
| | | prop: "maintenanceActuallyTime", |
| | | formatData: cell => |
| | | cell ? dayjs(cell).format("YYYY-MM-DD HH:mm:ss") : "-", |
| | | formatData: cell => (cell ? dayjs(cell).format("YYYY-MM-DD") : "-"), |
| | | }, |
| | | { |
| | | label: "ä¿å
ȍȾ", |
| | |
| | | <el-descriptions :column="2" border> |
| | | <el-descriptions-item label="å¾ä¹¦ç¼å·">{{ current.docNumber }}</el-descriptions-item> |
| | | <el-descriptions-item label="å¾ä¹¦åç§°">{{ current.docName }}</el-descriptions-item> |
| | | <el-descriptions-item label="å
¥åºæ¶é´">{{ current.createTime }}</el-descriptions-item> |
| | | <el-descriptions-item label="å
¥åºæ¶é´">{{ formatDateOnly(current.createTime) }}</el-descriptions-item> |
| | | <!-- <el-descriptions-item label="å½åä½ç½®">{{ current.currentLocation }}</el-descriptions-item> --> |
| | | <el-descriptions-item label="ç¶æ">{{ current.docStatus }}</el-descriptions-item> |
| | | </el-descriptions> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="ä¸ä¼ æ¶é´" prop="uploadTime" width="160" align="center"> |
| | | <template #default="scope"> |
| | | {{ formatDate(scope.row.uploadTime) }} |
| | | {{ formatDateOnly(formatDate(scope.row.uploadTime)) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="ç¶æ" prop="status" width="80" align="center"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="welcome-meta"> |
| | | <div class="meta-time digital-number">{{ nowTime }}</div> |
| | | <div class="meta-time digital-number">{{ formatDateOnly(nowTime) }}</div> |
| | | <div class="meta-tip">MES / MOM ç产è¿è¥é©¾é©¶è±</div> |
| | | </div> |
| | | </section> |
| | |
| | | <li v-for="item in todoList" :key="item.id" class="todo-item"> |
| | | <div class="todo-head"> |
| | | <span class="todo-no">å¾
åç¼å·ï¼{{ item.approveId }}</span> |
| | | <span class="todo-time">{{ item.approveTime }}</span> |
| | | <span class="todo-time">{{ formatDateOnly(item.approveTime) }}</span> |
| | | </div> |
| | | <div class="todo-desc">é¨é¨ï¼{{ item.approveDeptName }}</div> |
| | | <div class="todo-desc">äºç±ï¼{{ item.approveReason }}</div> |
| | |
| | | </div> |
| | | <div class="plan-meta"> |
| | | <span>计å {{ item.planQty }}</span> |
| | | <span>交æ {{ item.deliveryDate }}</span> |
| | | <span>交æ {{ formatDateOnly(item.deliveryDate) }}</span> |
| | | </div> |
| | | </li> |
| | | </ul> |
| | |
| | | </el-col>
|
| | | <el-col :span="12">
|
| | | <el-form-item label="ä»»å¡åç»ï¼">{{ jobGroupFormat(form) }}</el-form-item>
|
| | | <el-form-item label="å建æ¶é´ï¼">{{ form.createTime }}</el-form-item>
|
| | | <el-form-item label="å建æ¶é´ï¼">{{ formatDateOnly(form.createTime) }}</el-form-item>
|
| | | </el-col>
|
| | | <el-col :span="12">
|
| | | <el-form-item label="cron表达å¼ï¼">{{ form.cronExpression }}</el-form-item>
|
| | |
| | | </el-col>
|
| | | <el-col :span="12">
|
| | | <el-form-item label="ä»»å¡åç»ï¼">{{ form.jobGroup }}</el-form-item>
|
| | | <el-form-item label="æ§è¡æ¶é´ï¼">{{ form.createTime }}</el-form-item>
|
| | | <el-form-item label="æ§è¡æ¶é´ï¼">{{ formatDateOnly(form.createTime) }}</el-form-item>
|
| | | </el-col>
|
| | | <el-col :span="24">
|
| | | <el-form-item label="è°ç¨æ¹æ³ï¼">{{ form.invokeTarget }}</el-form-item>
|
| | |
| | | </el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="ç®æ åºå">{{ accessResult.zone.name }}</el-descriptions-item> |
| | | <el-descriptions-item label="æè¿å¹è®">{{ accessResult.person.training.lastDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="éå²è¯æææ">{{ accessResult.person.training.expireDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="æè¿å¹è®">{{ formatDateOnly(accessResult.person.training.lastDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="éå²è¯æææ">{{ formatDateOnly(accessResult.person.training.expireDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="åå
¥ç»æ"> |
| | | <el-tag :type="accessResult.allowed ? 'success' : 'danger'">{{ accessResult.allowed ? 'å
许è¿å
¥' : 'ç¦æ¢è¿å
¥' }}</el-tag> |
| | | </el-descriptions-item> |
| | |
| | | <el-descriptions :column="1" border size="small"> |
| | | <el-descriptions-item label="æææ¶é´"> |
| | | <el-icon><Clock /></el-icon> |
| | | {{ currentSnapshot.time }} |
| | | {{ formatDateOnly(currentSnapshot.time) }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="å·¥å·"> |
| | | <el-icon><User /></el-icon> |
| | |
| | | <el-descriptions-item label="å货订åå·">{{ detailData.shippingInfo.shippingNo || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="客æ·åç§°">{{ detailData.shippingInfo.customerName || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="åè´§ç±»å">{{ detailData.shippingInfo.type || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="åè´§æ¥æ">{{ detailData.shippingInfo.shippingDate || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="åè´§æ¥æ">{{ formatDateOnly(detailData.shippingInfo.shippingDate || "--") }}</el-descriptions-item> |
| | | <el-descriptions-item label="å®¡æ ¸ç¶æ">{{ detailData.shippingInfo.status || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="å货车çå·">{{ detailData.shippingInfo.shippingCarNumber || "--" }}</el-descriptions-item> |
| | | </el-descriptions> |
| | |
| | | <el-descriptions-item label="ä¾åºååç§°">{{ detailData.supplierName || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="项ç®åç§°">{{ detailData.projectName || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="éå®ååå·">{{ detailData.salesContractNo || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç¾è®¢æ¥æ">{{ detailData.executionDate || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="å½å
¥æ¥æ">{{ detailData.entryDate || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç¾è®¢æ¥æ">{{ formatDateOnly(detailData.executionDate || "--") }}</el-descriptions-item> |
| | | <el-descriptions-item label="å½å
¥æ¥æ">{{ formatDateOnly(detailData.entryDate || "--") }}</el-descriptions-item> |
| | | <el-descriptions-item label="仿¬¾æ¹å¼">{{ detailData.paymentMethod || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="ååéé¢" :span="2"> |
| | | <span style="font-size: 18px; color: #e6a23c; font-weight: bold;"> |
| | |
| | | <el-descriptions-item label="æ¥ä»·åå·">{{ detailData.quotationNo || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="客æ·åç§°">{{ detailData.customer || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="ä¸å¡å">{{ detailData.salesperson || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥ä»·æ¥æ">{{ detailData.quotationDate || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="æææè³">{{ detailData.validDate || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥ä»·æ¥æ">{{ formatDateOnly(detailData.quotationDate || "--") }}</el-descriptions-item> |
| | | <el-descriptions-item label="æææè³">{{ formatDateOnly(detailData.validDate || "--") }}</el-descriptions-item> |
| | | <el-descriptions-item label="仿¬¾æ¹å¼">{{ detailData.paymentMethod || "--" }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥ä»·æ»é¢" :span="2"> |
| | | <span style="font-size: 18px; color: #e6a23c; font-weight: bold;"> |
| | |
| | | if (val == null || val === "") return ""; |
| | | if (Array.isArray(val) && val.length >= 3) { |
| | | const [y, m, d, h = 0, min = 0, s = 0] = val; |
| | | return dayjs(new Date(y, m - 1, d, h, min, s)).format("YYYY-MM-DD HH:mm:ss"); |
| | | return dayjs(new Date(y, m - 1, d, h, min, s)).format("YYYY-MM-DD"); |
| | | } |
| | | if (typeof val === "number") { |
| | | const d = val > 1e12 ? dayjs(val) : dayjs.unix(val); |
| | | return d.isValid() ? d.format("YYYY-MM-DD HH:mm:ss") : ""; |
| | | return d.isValid() ? d.format("YYYY-MM-DD") : ""; |
| | | } |
| | | const s = String(val).trim(); |
| | | if (!s) return ""; |
| | | const parsed = dayjs(s.includes("T") ? s : s.replace(/-/g, "/")); |
| | | return parsed.isValid() ? parsed.format("YYYY-MM-DD HH:mm:ss") : s; |
| | | return parsed.isValid() ? parsed.format("YYYY-MM-DD") : s; |
| | | } |
| | | |
| | | export function formatDisplayTime(val) { |
| | |
| | | <el-descriptions-item label="ç¼è¾æé">{{ publishRoleLabel(row.editorRole) }}</el-descriptions-item> |
| | | <el-descriptions-item label="å®¡æ ¸è§è²">{{ publishRoleLabel(row.reviewerRole) }}</el-descriptions-item> |
| | | <el-descriptions-item label="åå¸äºº">{{ row.publisherName || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="å叿¶é´">{{ row.publishTime || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="å叿¶é´">{{ formatDateOnly(row.publishTime || "â") }}</el-descriptions-item> |
| | | <el-descriptions-item label="å½åçæ¬">v{{ row.versionNo || 1 }}</el-descriptions-item> |
| | | <el-descriptions-item label="éé
读确认"> |
| | | {{ row.requireReadConfirm ? "æ¯" : "å¦" }} |
| | |
| | | <el-tag :type="statusTagType(row.approvalResult)" size="small">{{ statusLabel(row.approvalResult) }}</el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="è´¹ç¨ç±»å">{{ expenseCategoryLabel(row.expenseCategory) }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç³è¯·æ¶é´">{{ row.applyTime || row.createTime || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç³è¯·æ¶é´">{{ formatDateOnly(row.applyTime || row.createTime || "â") }}</el-descriptions-item> |
| | | <el-descriptions-item label="åå·¥ç¼å·">{{ row.employeeNo || row.applicantNo || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="åå·¥å§å">{{ row.employeeName || row.applicantName || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥éåå " :span="2">{{ row.reimburseReason || "â" }}</el-descriptions-item> |
| | |
| | | <el-descriptions-item v-if="row.rejectReason" label="驳ååå " :span="2"> |
| | | <span class="reject-text">{{ row.rejectReason }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="å建æ¶é´" :span="2">{{ row.createTime || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="å建æ¶é´" :span="2">{{ formatDateOnly(row.createTime || "â") }}</el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | | <el-divider content-position="left">æ¥éæç»</el-divider> |
| | |
| | | size="small" |
| | | style="width: 100%" |
| | | /> |
| | | <span v-else>{{ row.invoiceDate || "â" }}</span> |
| | | <span v-else>{{ formatDateOnly(row.invoiceDate || "â") }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="è´¹ç¨ç§ç®" width="130"> |
| | |
| | | }; |
| | | } |
| | | |
| | | /** å表/详æ
æ¶é´å±ç¤ºï¼ISO â YYYY-MM-DD HH:mm:ssï¼ */ |
| | | /** å表/详æ
æ¶é´å±ç¤ºï¼ISO â YYYY-MM-DDï¼é¡µé¢ä¸å±ç¤ºæ¶åç§ï¼ */ |
| | | export function formatReimbursementDateTime(val) { |
| | | if (val == null || val === "") return ""; |
| | | const d = dayjs(val); |
| | | if (!d.isValid()) return String(val); |
| | | const raw = String(val); |
| | | const hasTime = raw.includes("T") || /:\d{2}/.test(raw); |
| | | return hasTime ? d.format("YYYY-MM-DD HH:mm:ss") : d.format("YYYY-MM-DD"); |
| | | return d.format("YYYY-MM-DD"); |
| | | } |
| | | |
| | | /** æ¥å£è¡ â å·®æ
æ¥éå表è¡ï¼å
¼å®¹ useTravelReimburse åæ®µï¼ */ |
| | |
| | | <el-descriptions-item label="åå·¥ç¼å·">{{ row.employeeNo || row.applicantNo || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="åå·¥å§å">{{ row.employeeName || row.applicantName || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥éåå " :span="2">{{ row.reimburseReason || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="åºå·®å¼å§">{{ row.travelStartTime || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="åºå·®ç»æ">{{ row.travelEndTime || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="åºå·®å¼å§">{{ formatDateOnly(row.travelStartTime || "â") }}</el-descriptions-item> |
| | | <el-descriptions-item label="åºå·®ç»æ">{{ formatDateOnly(row.travelEndTime || "â") }}</el-descriptions-item> |
| | | <el-descriptions-item label="åºå·®å°">{{ row.departurePlace || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç®çå°">{{ row.destination || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="é
åºæ å">{{ row.hotelStandard != null ? `${row.hotelStandard} å
/æ` : "â" }}</el-descriptions-item> |
| | |
| | | <el-descriptions-item v-if="row.rejectReason" label="驳ååå " :span="2"> |
| | | <span class="reject-text">{{ row.rejectReason }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="å建æ¶é´" :span="2">{{ row.createTime || "â" }}</el-descriptions-item> |
| | | <el-descriptions-item label="å建æ¶é´" :span="2">{{ formatDateOnly(row.createTime || "â") }}</el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | | <el-divider content-position="left">æ¥éæç»</el-divider> |
| | |
| | | size="small" |
| | | style="width: 100%" |
| | | /> |
| | | <span v-else>{{ row.invoiceDate || "â" }}</span> |
| | | <span v-else>{{ formatDateOnly(row.invoiceDate || "â") }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="è´¹ç¨ç§ç®" width="130"> |
| | |
| | | </li> |
| | | <li class="list-group-item"> |
| | | <svg-icon icon-class="date" />åå»ºæ¥æ |
| | | <div class="pull-right">{{ state.user.createTime }}</div> |
| | | <div class="pull-right">{{ formatDateOnly(state.user.createTime) }}</div> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | |
| | | <div class="attendance-actions"> |
| | | <div class="time-block"> |
| | | <div class="label">å½åæ¶é´</div> |
| | | <div class="value">{{ nowTime }}</div> |
| | | <div class="value">{{ formatDateOnly(nowTime) }}</div> |
| | | </div> |
| | | <el-button type="primary" |
| | | size="large" |
| | |
| | | :total="page.total" |
| | | > |
| | | <template #positiveDate="{ row }"> |
| | | <span :class="getPositiveDateClass(row.positiveDate)">{{ row.positiveDate }}</span> |
| | | <span :class="getPositiveDateClass(row.positiveDate)">{{ formatDateOnly(row.positiveDate) }}</span> |
| | | </template> |
| | | </PIMTable> |
| | | </div> |
| | |
| | | <el-descriptions-item label="å·¥èµæä»½">{{ issueRecordRow.salaryMonth }}</el-descriptions-item> |
| | | <el-descriptions-item label="å·¥èµæ»é¢">{{ formatAmount(issueRecordRow.totalSalary) }}</el-descriptions-item> |
| | | <el-descriptions-item label="åæ¾é¶è¡">{{ issueRecordRow.payBank || "-" }}</el-descriptions-item> |
| | | <el-descriptions-item label="åæ¾æ¶é´">{{ issueRecordRow.payTime || "-" }}</el-descriptions-item> |
| | | <el-descriptions-item label="åæ¾æ¶é´">{{ formatDateOnly(issueRecordRow.payTime || "-") }}</el-descriptions-item> |
| | | <el-descriptions-item label="å®¡æ ¸äºº">{{ issueRecordRow.auditUserName || "-" }}</el-descriptions-item> |
| | | <el-descriptions-item label="夿³¨" :span="2">{{ issueRecordRow.remark || "-" }}</el-descriptions-item> |
| | | </el-descriptions> |
| | |
| | | <el-descriptions-item label="å·¥å·">{{ profile.employeeId }}</el-descriptions-item> |
| | | <el-descriptions-item label="é¨é¨">{{ profile.department }}</el-descriptions-item> |
| | | <el-descriptions-item label="èä½">{{ profile.position }}</el-descriptions-item> |
| | | <el-descriptions-item label="å
¥èæ¥æ">{{ profile.hireDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="å
¥èæ¥æ">{{ formatDateOnly(profile.hireDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="èç³»çµè¯">{{ profile.phone }}</el-descriptions-item> |
| | | <el-descriptions-item label="é®ç®±">{{ profile.email }}</el-descriptions-item> |
| | | <el-descriptions-item label="å°å">{{ profile.adress }}</el-descriptions-item> |
| | |
| | | <el-descriptions-item label="å建人">{{ |
| | | detailData.createUserName || "--" |
| | | }}</el-descriptions-item> |
| | | <el-descriptions-item label="å建æ¶é´">{{ |
| | | detailData.createTime || "--" |
| | | }}</el-descriptions-item> |
| | | <el-descriptions-item label="æè¿æ´æ°æ¶é´">{{ |
| | | detailData.updateTime || "--" |
| | | }}</el-descriptions-item> |
| | | <el-descriptions-item label="å建æ¶é´">{{ formatDateOnly(detailData.createTime || "--") }}</el-descriptions-item> |
| | | <el-descriptions-item label="æè¿æ´æ°æ¶é´">{{ formatDateOnly(detailData.updateTime || "--") }}</el-descriptions-item> |
| | | <el-descriptions-item label="夿³¨" :span="3">{{ |
| | | detailData.remark || "--" |
| | | }}</el-descriptions-item> |
| | |
| | | { |
| | | label: "ç»è®°æ¥æ", |
| | | prop: "registrationtDate", |
| | | formatData: cell => |
| | | cell ? dayjs(cell).format("YYYY-MM-DD HH:mm:ss") : "-", |
| | | formatData: cell => (cell ? dayjs(cell).format("YYYY-MM-DD") : "-"), |
| | | }, |
| | | ]); |
| | | const tableData = ref([]); |
| | |
| | | <h4>ç³»ç»æ¥å¿</h4> |
| | | <div class="log-container"> |
| | | <div class="log-item" v-for="log in systemLogs" :key="log.id"> |
| | | <span class="log-time">{{ log.time }}</span> |
| | | <span class="log-time">{{ formatDateOnly(log.time) }}</span> |
| | | <span class="log-content">{{ log.content }}</span> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="blockchain-details"> |
| | | <el-descriptions :column="2" border> |
| | | <el-descriptions-item label="äºä»¶ID">{{ currentEvent.id }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¶é´æ³">{{ currentEvent.timestamp }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¶é´æ³">{{ formatDateOnly(currentEvent.timestamp) }}</el-descriptions-item> |
| | | <el-descriptions-item label="ä½ç½®">{{ currentEvent.location }}</el-descriptions-item> |
| | | <el-descriptions-item label="äºä»¶ç±»å">{{ currentEvent.type }}</el-descriptions-item> |
| | | </el-descriptions> |
| | |
| | | </div> --> |
| | | <div class="info-item"> |
| | | <span class="info-label">计åå¼å§æ¶é´</span> |
| | | <span class="info-value">{{ transferCardRowData.planStartTime }}</span> |
| | | <span class="info-value">{{ formatDateOnly(transferCardRowData.planStartTime) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">计åç»ææ¶é´</span> |
| | | <span class="info-value">{{ transferCardRowData.planEndTime }}</span> |
| | | <span class="info-value">{{ formatDateOnly(transferCardRowData.planEndTime) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">夿³¨</span> |
| | |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">å®é
å¼å§æ¶é´</span> |
| | | <span class="info-value">{{ transferCardRowData.actualStartTime }}</span> |
| | | <span class="info-value">{{ formatDateOnly(transferCardRowData.actualStartTime) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">å®é
ç»ææ¶é´</span> |
| | | <span class="info-value">{{ transferCardRowData.actualEndTime }}</span> |
| | | <span class="info-value">{{ formatDateOnly(transferCardRowData.actualEndTime) }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">计åå¼å§æ¶é´</span> |
| | | <span class="info-value">{{ transferCardRowData.planStartTime }}</span> |
| | | <span class="info-value">{{ formatDateOnly(transferCardRowData.planStartTime) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">计åç»ææ¶é´</span> |
| | | <span class="info-value">{{ transferCardRowData.planEndTime }}</span> |
| | | <span class="info-value">{{ formatDateOnly(transferCardRowData.planEndTime) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">夿³¨</span> |
| | |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">å®é
å¼å§æ¶é´</span> |
| | | <span class="info-value">{{ transferCardRowData.actualStartTime }}</span> |
| | | <span class="info-value">{{ formatDateOnly(transferCardRowData.actualStartTime) }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">å®é
ç»ææ¶é´</span> |
| | | <span class="info-value">{{ transferCardRowData.actualEndTime }}</span> |
| | | <span class="info-value">{{ formatDateOnly(transferCardRowData.actualEndTime) }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | class="cell link" |
| | | style="width: 100%" |
| | | @click="goLink(scope.row, item.linkMethod)"> |
| | | <span v-if="!item.formatData">{{ scope.row[item.prop] }}</span> |
| | | <span v-if="!item.formatData">{{ |
| | | toDateOnly(scope.row[item.prop]) |
| | | }}</span> |
| | | </div> |
| | | <!-- é»è®¤çº¯å±ç¤ºæ°æ® --> |
| | | <div v-else |
| | | class="cell" |
| | | :class="item.className || ''" |
| | | style="width: 100%"> |
| | | <span v-if="!item.formatData">{{ scope.row[item.prop] }}</span> |
| | | <span v-if="!item.formatData">{{ |
| | | toDateOnly(scope.row[item.prop]) |
| | | }}</span> |
| | | <span v-else>{{ |
| | | formatters(scope.row[item.prop], item.formatData) |
| | | toDateOnly(formatters(scope.row[item.prop], item.formatData)) |
| | | }}</span> |
| | | </div> |
| | | </template> |
| | |
| | | import pagination from "../../../../components/PIMTable/Pagination.vue"; |
| | | import { ref, inject, getCurrentInstance } from "vue"; |
| | | import { ElMessage } from "element-plus"; |
| | | import { toDateOnly } from "@/utils/dateDisplay"; |
| | | |
| | | // è·åå
¨å±ç uploadHeader |
| | | const { proxy } = getCurrentInstance(); |
| | |
| | | <el-descriptions-item label="客æ·ID">{{ info.clientId ?? '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç¶é¡¹ç®">{{ parentProjectLabel }}</el-descriptions-item> |
| | | <el-descriptions-item label="项ç®ç±»å">{{ projectTypeLabel }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç«é¡¹æ¥æ">{{ info.establishTime || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç«é¡¹æ¥æ">{{ formatDateOnly(info.establishTime || '-') }}</el-descriptions-item> |
| | | <el-descriptions-item label="é¡¹ç®æ¥æº">{{ info.source || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç«é¡¹äºº">{{ info.managerName || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="ä¸å¡å">{{ info.salesmanName || '-' }}</el-descriptions-item> |
| | |
| | | <dict-tag :options="plan_status" :value="String(info.stage ?? '')" /> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="é¢è®¡å·¥æ(天)">{{ estimatedDays }}</el-descriptions-item> |
| | | <el-descriptions-item label="计åå¼å§æ¥æ">{{ info.planStartTime || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="计åå®ææ¥æ">{{ info.planEndTime || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="å®é
å¼å§æ¥æ">{{ info.actualStartTime || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="å®é
å®ææ¥æ">{{ info.actualEndTime || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="è®¢åæ¥æ">{{ info.orderDate || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="计åå¼å§æ¥æ">{{ formatDateOnly(info.planStartTime || '-') }}</el-descriptions-item> |
| | | <el-descriptions-item label="计åå®ææ¥æ">{{ formatDateOnly(info.planEndTime || '-') }}</el-descriptions-item> |
| | | <el-descriptions-item label="å®é
å¼å§æ¥æ">{{ formatDateOnly(info.actualStartTime || '-') }}</el-descriptions-item> |
| | | <el-descriptions-item label="å®é
å®ææ¥æ">{{ formatDateOnly(info.actualEndTime || '-') }}</el-descriptions-item> |
| | | <el-descriptions-item label="è®¢åæ¥æ">{{ formatDateOnly(info.orderDate || '-') }}</el-descriptions-item> |
| | | <el-descriptions-item label="项ç®éé¢">{{ info.orderAmount ?? '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="夿³¨" :span="4">{{ info.remark || '-' }}</el-descriptions-item> |
| | | </el-descriptions> |
| | |
| | | <el-table-column label="èç³»æ¹å¼" prop="contact" width="140" /> |
| | | <el-table-column label="å馿¶é´" prop="feedbackTime" width="160"> |
| | | <template #default="scope"> |
| | | <span>{{ scope.row.feedbackTime }}</span> |
| | | <span>{{ formatDateOnly(scope.row.feedbackTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="é®é¢æè¿°" prop="problemDesc" show-overflow-tooltip /> |
| | |
| | | </div> |
| | | <div class="right"> |
| | | <el-tag :type="statusTagType(item.status)" size="small">{{ statusLabel(item.status) }}</el-tag> |
| | | <span class="time">{{ item.time }}</span> |
| | | <span class="time">{{ formatDateOnly(item.time) }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | > |
| | | <div class="todo-title">ç³è¯·ç±»åï¼{{ item.approveTypeName }}</div> |
| | | <div class="todo-division">ç³è¯·é¨é¨ï¼{{ item.approveDeptName }}</div> |
| | | <div class="todo-time">{{ item.approveTime }}</div> |
| | | <div class="todo-time">{{ formatDateOnly(item.approveTime) }}</div> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | <div style="display: flex;justify-content: space-between;align-items: center;"> |
| | | <div class="todo-title">å¾
åç¼å·ï¼{{item.approveId}}</div> |
| | | <div class="todo-division">é¨é¨ï¼{{item.approveDeptName}}</div> |
| | | <div class="todo-time">{{item.approveTime}}</div> |
| | | <div class="todo-time">{{ formatDateOnly(item.approveTime) }}</div> |
| | | </div> |
| | | <div class="todo-division">å¾
åäºç±ï¼{{item.approveReason}}</div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="warn-text" :title="item.title">{{ item.title }}</div> |
| | | <div class="warn-action" @click.stop="openWarning(item)">æ¥ç</div> |
| | | <div class="warn-date">{{ item.date }}</div> |
| | | <div class="warn-date">{{ formatDateOnly(item.date) }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="event-meta"> |
| | | <span>{{ item.location || 'â' }}</span> |
| | | <span>{{ item.eventTime }}</span> |
| | | <span>{{ formatDateOnly(item.eventTime) }}</span> |
| | | </div> |
| | | </li> |
| | | </ul> |
| | |
| | | <span>{{ currentKnowledge.accidentName }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="äºæ
åçæ¶é´"> |
| | | {{ currentKnowledge.happenTime }} |
| | | {{ formatDateOnly(currentKnowledge.happenTime) }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="äºæ
åçå°ç¹"> |
| | | {{ currentKnowledge.happenLocation }} |
| | |
| | | {{ currentKnowledge.createUserName }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="䏿¥æ¶é´"> |
| | | {{ currentKnowledge.createTime }} |
| | | {{ formatDateOnly(currentKnowledge.createTime) }} |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <div class="detail-section"> |
| | |
| | | <span class="detail-title">{{ form.createUserName }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="䏿¥æ¶é´"> |
| | | <span class="detail-title">{{ form.createTime }}</span> |
| | | <span class="detail-title">{{ formatDateOnly(form.createTime) }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="æ´æ¹è´£ä»»äºº"> |
| | | <span class="detail-title">{{ form.rectifyUserName }}</span> |
| | |
| | | <span class="detail-title">{{ form.rectifyUserMobile }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="æ´æ¹å®ææé"> |
| | | <span class="detail-title">{{ form.rectifyTime }}</span> |
| | | <span class="detail-title">{{ formatDateOnly(form.rectifyTime) }}</span> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <div class="classtitle" |
| | |
| | | <span class="detail-title">{{ form2.rectifyMeasures }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="å®é
æ´æ¹å®ææ¶é´"> |
| | | <span class="detail-title">{{ form2.rectifyActualTime }}</span> |
| | | <span class="detail-title">{{ formatDateOnly(form2.rectifyActualTime) }}</span> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <div class="classtitle" |
| | |
| | | <span>{{ currentKnowledge.planCode }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="åå¸çææ¶é´"> |
| | | {{ currentKnowledge.publishTime }} |
| | | {{ formatDateOnly(currentKnowledge.publishTime) }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="æ ¸å¿è´£ä»»äºº"> |
| | | {{ currentKnowledge.coreResponsorUserName }} |
| | |
| | | <span>{{ form.applyPurpose }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="é¢ç¨æ¶é´"> |
| | | <span>{{ form.applyTime }}</span> |
| | | <span>{{ formatDateOnly(form.applyTime) }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="é¢ç¨æ°é"> |
| | | <span>{{ form.applyQty }}</span> |
| | |
| | | </el-descriptions-item> |
| | | <el-descriptions-item v-if="dialogType === 'view' && form.returnTime" |
| | | label="å½è¿æ¶é´"> |
| | | <span>{{ form.returnTime }}</span> |
| | | <span>{{ formatDateOnly(form.returnTime) }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item v-if="dialogType === 'view' && form.returnUserId" |
| | | label="å½è¿æ
åµè¯´æ"> |
| | |
| | | <el-descriptions-item label="æ¥ä»·åå·">{{ currentQuotation.quotationNo }}</el-descriptions-item> |
| | | <el-descriptions-item label="客æ·åç§°">{{ currentQuotation.customer }}</el-descriptions-item> |
| | | <el-descriptions-item label="ä¸å¡å">{{ currentQuotation.salesperson }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥ä»·æ¥æ">{{ currentQuotation.quotationDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="æææè³">{{ currentQuotation.validDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥ä»·æ¥æ">{{ formatDateOnly(currentQuotation.quotationDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="æææè³">{{ formatDateOnly(currentQuotation.validDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="仿¬¾æ¹å¼">{{ currentQuotation.paymentMethod }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥ä»·æ»é¢" |
| | | :span="2"> |
| | |
| | | <el-descriptions-item label="ä¾åºååç§°">{{ currentPurchase.supplierName }}</el-descriptions-item> |
| | | <el-descriptions-item label="项ç®åç§°">{{ currentPurchase.projectName }}</el-descriptions-item> |
| | | <el-descriptions-item label="éå®ååå·">{{ currentPurchase.salesContractNo }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç¾è®¢æ¥æ">{{ currentPurchase.executionDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="å½å
¥æ¥æ">{{ currentPurchase.entryDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="ç¾è®¢æ¥æ">{{ formatDateOnly(currentPurchase.executionDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="å½å
¥æ¥æ">{{ formatDateOnly(currentPurchase.entryDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="仿¬¾æ¹å¼">{{ currentPurchase.paymentMethod }}</el-descriptions-item> |
| | | <el-descriptions-item label="ååéé¢" |
| | | :span="2"> |
| | |
| | | <el-descriptions-item label="åè´§ç±»å">{{ |
| | | detailRow.type || "--" |
| | | }}</el-descriptions-item> |
| | | <el-descriptions-item label="åè´§æ¥æ">{{ |
| | | detailRow.shippingDate || "--" |
| | | }}</el-descriptions-item> |
| | | <el-descriptions-item label="åè´§æ¥æ">{{ formatDateOnly(detailRow.shippingDate || "--") }}</el-descriptions-item> |
| | | <el-descriptions-item label="å®¡æ ¸ç¶æ">{{ |
| | | getApprovalStatusText(detailRow.status) |
| | | }}</el-descriptions-item> |
| | |
| | | <el-descriptions-item v-if="String(detail.shippingType) === '1'" label="å货车çå·">{{ detail.truckPlateNo || "--" }}</el-descriptions-item> |
| | | <!-- <el-descriptions-item label="项ç®åç§°">{{ detail.projectName }}</el-descriptions-item> --> |
| | | <el-descriptions-item label="å¶å人">{{ detail.maker }}</el-descriptions-item> |
| | | <el-descriptions-item label="å¶åæ¶é´">{{ detail.makeTime }}</el-descriptions-item> |
| | | <el-descriptions-item label="å¶åæ¶é´">{{ formatDateOnly(detail.makeTime) }}</el-descriptions-item> |
| | | <el-descriptions-item label="éè´§åå ">{{ detail.returnReason }}</el-descriptions-item> |
| | | <el-descriptions-item label="鿬¾æ»é¢">{{ detail.refundAmount }}</el-descriptions-item> |
| | | </el-descriptions> |
| | |
| | | <template #default="scope"> |
| | | <div> |
| | | <div v-if="scope.row.shippingDate"> |
| | | {{ scope.row.shippingDate }} |
| | | {{ formatDateOnly(scope.row.shippingDate) }} |
| | | </div> |
| | | <el-tag v-else type="info">- </el-tag> |
| | | </div> |
| | |
| | | <div class="info-row"> |
| | | <div> |
| | | <span class="label">åè´§æ¥æï¼</span> |
| | | <span class="value">{{ formatDate(item.createTime) }}</span> |
| | | <span class="value">{{ formatDateOnly(formatDate(item.createTime)) }}</span> |
| | | </div> |
| | | <div> |
| | | <span class="label">å货车çå·ï¼</span> |
| | |
| | | // æ ¼å¼åæ¥æ |
| | | const formatDate = (dateString) => { |
| | | if (!dateString) return getCurrentDate(); |
| | | return dayjs(dateString).format("YYYY/MM/DD HH:mm:ss"); |
| | | return dayjs(dateString).format("YYYY/MM/DD"); |
| | | }; |
| | | // æ ¼å¼åæ¥ææ¶é´ |
| | | // æ ¼å¼åæ¥æï¼æå°ç¨ï¼ä¸å±ç¤ºæ¶åç§ï¼ |
| | | const formatDateTime = (date) => { |
| | | const year = date.getFullYear(); |
| | | const month = String(date.getMonth() + 1).padStart(2, "0"); |
| | | const day = String(date.getDate()).padStart(2, "0"); |
| | | const hours = String(date.getHours()).padStart(2, "0"); |
| | | const minutes = String(date.getMinutes()).padStart(2, "0"); |
| | | const seconds = String(date.getSeconds()).padStart(2, "0"); |
| | | return `${year}/${month}/${day} ${hours}:${minutes}:${seconds}`; |
| | | return `${year}/${month}/${day}`; |
| | | }; |
| | | // 计ç®äº§åæ»æ°é |
| | | const getTotalQuantity = (products) => { |
| | |
| | | <el-descriptions-item label="æ¥ä»·åå·">{{ currentQuotation.quotationNo }}</el-descriptions-item> |
| | | <el-descriptions-item label="客æ·åç§°">{{ currentQuotation.customer }}</el-descriptions-item> |
| | | <el-descriptions-item label="ä¸å¡å">{{ currentQuotation.salesperson }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥ä»·æ¥æ">{{ currentQuotation.quotationDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="æææè³">{{ currentQuotation.validDate }}</el-descriptions-item> |
| | | <el-descriptions-item label="æ¥ä»·æ¥æ">{{ formatDateOnly(currentQuotation.quotationDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="æææè³">{{ formatDateOnly(currentQuotation.validDate) }}</el-descriptions-item> |
| | | <el-descriptions-item label="仿¬¾æ¹å¼">{{ currentQuotation.paymentMethod }}</el-descriptions-item> |
| | | <!-- <el-descriptions-item label="æ¥ä»·ç¶æ">--> |
| | | <!-- <el-tag :type="getStatusType(currentQuotation.status)">{{ currentQuotation.status }}</el-tag>--> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="validPeriod" label="æææ" width="200"> |
| | | <template #default="scope"> |
| | | {{ scope.row.startDate }} è³ {{ scope.row.endDate }} |
| | | {{ formatDateOnly(scope.row.startDate) }} è³ {{ formatDateOnly(scope.row.endDate) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="ç¶æ" width="80"> |
| | |
| | | <el-table-column label="çæ¬å·" prop="version" align="center" width="120"/> |
| | | <el-table-column label="å建æ¶é´" prop="createTime" align="center" width="170"> |
| | | <template #default="scope"> |
| | | <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}:{s}") }}</span> |
| | | <span>{{ parseTime(scope.row.createTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æ´æ°æ¶é´" prop="updateTime" align="center" width="170"> |
| | | <template #default="scope"> |
| | | <span>{{ parseTime(scope.row.updateTime, "{y}-{m}-{d} {h}:{i}:{s}") }}</span> |
| | | <span>{{ parseTime(scope.row.updateTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="å建人" prop="createUser" align="center" width="100"/> |
| | |
| | | </li>
|
| | | <li class="list-group-item">
|
| | | <svg-icon icon-class="date" />åå»ºæ¥æ
|
| | | <div class="pull-right">{{ state.user.createTime }}</div>
|
| | | <div class="pull-right">{{ formatDateOnly(state.user.createTime) }}</div>
|
| | | </li>
|
| | | </ul>
|
| | | </div>
|