From ed0f7c772ab2d967a6a39eb169f682e4e77c5a00 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 14 八月 2026 23:20:45 +0800
Subject: [PATCH] fix: bom结构耗料比例调整为8位小数

---
 src/views/collaborativeApproval/meetingBoard/index.vue |  344 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 344 insertions(+), 0 deletions(-)

diff --git a/src/views/collaborativeApproval/meetingBoard/index.vue b/src/views/collaborativeApproval/meetingBoard/index.vue
new file mode 100644
index 0000000..ebedd1f
--- /dev/null
+++ b/src/views/collaborativeApproval/meetingBoard/index.vue
@@ -0,0 +1,344 @@
+<template>
+  <div class="app-container">
+    <!-- 椤甸潰鏍囬 -->
+    <div class="page-header">
+      <h2>浼氳鐪嬫澘</h2>
+<!--      <el-button type="primary" @click="createMeeting">鍒涘缓浼氳</el-button>-->
+    </div>
+
+    <!-- 浼氳缁熻鍗$墖 -->
+    <div class="stats-cards">
+      <el-card class="stat-card">
+        <div class="stat-content">
+          <div class="stat-number">{{ stats.total }}</div>
+          <div class="stat-label">鎬讳細璁暟</div>
+        </div>
+      </el-card>
+      <el-card class="stat-card">
+        <div class="stat-content">
+          <div class="stat-number">{{ stats.underWay }}</div>
+          <div class="stat-label">杩涜涓�</div>
+        </div>
+      </el-card>
+      <el-card class="stat-card">
+        <div class="stat-content">
+          <div class="stat-number">{{ stats.completed }}</div>
+          <div class="stat-label">宸插畬鎴�</div>
+        </div>
+      </el-card>
+      <el-card class="stat-card">
+        <div class="stat-content">
+          <div class="stat-number">{{ stats.toStart }}</div>
+          <div class="stat-label">鍗冲皢寮�濮�</div>
+        </div>
+      </el-card>
+    </div>
+
+    <!-- 浼氳鍒楄〃 -->
+    <div class="meeting-list">
+      <el-card v-for="meeting in meetings" :key="meeting.id" class="meeting-card">
+        <div class="meeting-header">
+          <div class="meeting-title">
+            <h3>{{ meeting.title }}</h3>
+            <el-tag :type="getStatusType(meeting.status)" size="small">
+              {{ getStatusText(meeting.status) }}
+            </el-tag>
+          </div>
+          <div class="meeting-time">
+             {{dayjs(meeting.startTime).format("YYYY-MM-DD")}}<el-icon><Clock /></el-icon>
+           {{ formatTime(meeting.startTime) }} - {{ formatTime(meeting.endTime) }}
+          </div>
+        </div>
+
+        <div class="meeting-info">
+          <div class="info-item">
+            <el-icon><Location /></el-icon>
+            <span>{{ meeting.location }}</span>
+          </div>
+          <div class="info-item">
+            <el-icon><User /></el-icon>
+            <span>涓绘寔浜�: {{ meeting.host }}</span>
+          </div>
+          <div class="info-item">
+            <el-icon><UserFilled /></el-icon>
+            <span>鍙備細浜烘暟: {{ meeting.participants.length }}浜�</span>
+          </div>
+        </div>
+
+        <div class="meeting-agenda">
+          <h4>浼氳绾</h4>
+          <div class="agenda-list">
+            <div class="editor-container">
+              <div
+                  v-html="meeting.content"
+              />
+            </div>
+          </div>
+        </div>
+      </el-card>
+    </div>
+
+  </div>
+</template>
+
+<script setup>
+import { ref, reactive, onMounted } from 'vue'
+import { Clock, Location, User, UserFilled } from '@element-plus/icons-vue'
+import {getMeetSummaryItems,getMeetSummary} from '@/api/collaborativeApproval/meeting.js'
+import dayjs from "dayjs";
+
+// 缁熻鏁版嵁
+const stats = ref({
+  total: 0,
+  underWay: 0,
+  completed: 0,
+  toStart: 0
+})
+
+// 浼氳鏁版嵁
+const meetings = ref([
+
+])
+
+// 瀵硅瘽妗嗙浉鍏�
+const dialogVisible = ref(false)
+const meetingForm = reactive({
+  title: '',
+  timeRange: [],
+  location: '',
+  host: '',
+  description: ''
+})
+
+// 鑾峰彇鐘舵�佺被鍨�
+const getStatusType = (status) => {
+  const statusMap = {
+    '2': 'success',
+    '1': 'warning',
+    '0': 'info'
+  }
+  return statusMap[status] || 'info'
+}
+
+// 鑾峰彇鐘舵�佹枃鏈�
+const getStatusText = (status) => {
+  const statusMap = {
+    '2': '杩涜涓�',
+    '1': '鍗冲皢寮�濮�',
+    '0': '宸插畬鎴�'
+  }
+  return statusMap[status] || '鏈煡'
+}
+
+// 鑾峰彇璁▼鐘舵�佺被鍨�
+const getAgendaStatusType = (status) => {
+  const statusMap = {
+    'completed': 'success',
+    'active': 'warning',
+    'pending': 'info'
+  }
+  return statusMap[status] || 'info'
+}
+
+// 鑾峰彇璁▼鐘舵�佹枃鏈�
+const getAgendaStatusText = (status) => {
+  const statusMap = {
+    'completed': '宸插畬鎴�',
+    'active': '杩涜涓�',
+    'pending': '寰呭紑濮�'
+  }
+  return statusMap[status] || '鏈煡'
+}
+
+// 鏍煎紡鍖栨椂闂�
+const formatTime = (timeStr) => {
+  const date = new Date(timeStr)
+  return date.toLocaleTimeString('zh-CN', { hour: '2-digit', minute: '2-digit' })
+}
+
+
+onMounted( async () => {
+  let [resp1,resp2] = await Promise.all([getMeetSummary(),getMeetSummaryItems()])
+  stats.value = resp1.data
+  meetings.value = resp2.data.map(item => {
+    return {
+      ...item,
+      participants: JSON.parse(item.participants)
+    }
+  })
+  console.log('浼氳鐪嬫澘椤甸潰鍔犺浇瀹屾垚')
+})
+</script>
+
+<style scoped>
+.app-container {
+  padding: 20px;
+}
+
+.page-header {
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  margin-bottom: 20px;
+}
+
+.page-header h2 {
+  margin: 0;
+  color: #303133;
+}
+
+.stats-cards {
+  display: grid;
+  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+  gap: 20px;
+  margin-bottom: 30px;
+}
+
+.stat-card {
+  text-align: center;
+}
+
+.stat-content {
+  padding: 10px;
+}
+
+.stat-number {
+  font-size: 32px;
+  font-weight: bold;
+  color: #409eff;
+  margin-bottom: 8px;
+}
+
+.stat-label {
+  font-size: 14px;
+  color: #606266;
+}
+
+.meeting-list {
+  display: grid;
+  gap: 20px;
+}
+
+.meeting-card {
+  border-radius: 8px;
+}
+
+.meeting-header {
+  display: flex;
+  justify-content: space-between;
+  align-items: flex-start;
+  margin-bottom: 15px;
+}
+
+.meeting-title {
+  display: flex;
+  align-items: center;
+  gap: 10px;
+}
+
+.meeting-title h3 {
+  margin: 0;
+  color: #303133;
+}
+
+.meeting-time {
+  display: flex;
+  align-items: center;
+  gap: 5px;
+  color: #606266;
+  font-size: 14px;
+}
+
+.meeting-info {
+  display: flex;
+  gap: 20px;
+  margin-bottom: 20px;
+  flex-wrap: wrap;
+}
+
+.info-item {
+  display: flex;
+  align-items: center;
+  gap: 5px;
+  color: #606266;
+  font-size: 14px;
+}
+
+.meeting-agenda {
+  margin-bottom: 20px;
+}
+
+.meeting-agenda h4 {
+  margin: 0 0 15px 0;
+  color: #303133;
+  font-size: 16px;
+}
+
+.agenda-list {
+  display: flex;
+  flex-direction: column;
+  gap: 10px;
+}
+
+.agenda-item {
+  display: flex;
+  align-items: center;
+  gap: 15px;
+  padding: 10px;
+  border-radius: 6px;
+  background-color: #f5f7fa;
+}
+
+.agenda-item.active {
+  background-color: #fdf6ec;
+  border-left: 3px solid #e6a23c;
+}
+
+.agenda-item.completed {
+  background-color: #f0f9ff;
+  border-left: 3px solid #409eff;
+}
+
+.agenda-time {
+  font-weight: bold;
+  color: #606266;
+  min-width: 80px;
+}
+
+.agenda-content {
+  flex: 1;
+  color: #303133;
+}
+
+.meeting-actions {
+  display: flex;
+  gap: 10px;
+  justify-content: flex-end;
+}
+
+.dialog-footer {
+  display: flex;
+  justify-content: flex-end;
+  gap: 10px;
+}
+
+@media (max-width: 768px) {
+  .stats-cards {
+    grid-template-columns: repeat(2, 1fr);
+  }
+
+  .meeting-header {
+    flex-direction: column;
+    gap: 10px;
+  }
+
+  .meeting-info {
+    flex-direction: column;
+    gap: 10px;
+  }
+
+  .meeting-actions {
+    flex-direction: column;
+  }
+}
+</style>

--
Gitblit v1.9.3