| | |
| | | <el-row :gutter="20"> |
| | | <!-- åç±»å宿æ°é --> |
| | | <el-col :span="9"> |
| | | <el-card class="chart-card" |
| | | shadow="hover"> |
| | | <el-card class="chart-card" shadow="hover"> |
| | | <template #header> |
| | | <div class="card-header"> |
| | | <div class="chart-title-line"></div> |
| | |
| | | <div class="top-container"> |
| | | <div class="typeNum"> |
| | | <div class="typeNum-left"> |
| | | <img src="~@/assets/images/chartCard.svg" |
| | | alt="å¾è¡¨" |
| | | style="width: 40px; height: 40px; object-fit: contain;"> |
| | | <img src="~@/assets/images/chartCard.svg" alt="å¾è¡¨" |
| | | style="width: 40px; height: 40px; object-fit: contain;"> |
| | | <div class="typeNum-left-text">åææ</div> |
| | | </div> |
| | | <div class="typeNum-center"> |
| | |
| | | <div class="typeNum-right"> |
| | | <div class="typeNum-right-top"> |
| | | <div class="typeNum-right-top-name">æ»æ°é</div> |
| | | <div class="typeNum-right-top-text">2099 <span class="unit">个</span></div> |
| | | <div class="typeNum-right-top-text">{{ getInspectStatValue(0, 'totalCount') }} <span |
| | | class="unit">个</span></div> |
| | | </div> |
| | | <div class="typeNum-right-bottom"> |
| | | <div class="typeNum-right-top-name">已宿æ°</div> |
| | | <div class="typeNum-right-top-text">2099 <span class="unit">个</span></div> |
| | | <div class="typeNum-right-top-text">{{ getInspectStatValue(0, 'completedCount') }} <span |
| | | class="unit">个</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="typeNum"> |
| | | <div class="typeNum-left"> |
| | | <img src="~@/assets/images/chartCard2.svg" |
| | | alt="å¾è¡¨" |
| | | style="width: 40px; height: 40px; object-fit: contain;"> |
| | | <div class="typeNum-left-text" |
| | | style="color: #5EB334;">åæå</div> |
| | | <img src="~@/assets/images/chartCard2.svg" alt="å¾è¡¨" |
| | | style="width: 40px; height: 40px; object-fit: contain;"> |
| | | <div class="typeNum-left-text" style="color: #5EB334;">åæå</div> |
| | | </div> |
| | | <div class="typeNum-center"> |
| | | <div class="typeNum-leftLine2">-</div> |
| | |
| | | <div class="typeNum-right"> |
| | | <div class="typeNum-right-top"> |
| | | <div class="typeNum-right-top-name">æ»æ°é</div> |
| | | <div class="typeNum-right-top-text">2099 <span class="unit">个</span></div> |
| | | <div class="typeNum-right-top-text">{{ getInspectStatValue(1, 'totalCount') }} <span |
| | | class="unit">个</span></div> |
| | | </div> |
| | | <div class="typeNum-right-bottom"> |
| | | <div class="typeNum-right-top-name">已宿æ°</div> |
| | | <div class="typeNum-right-top-text">2099 <span class="unit">个</span></div> |
| | | <div class="typeNum-right-top-text">{{ getInspectStatValue(1, 'completedCount') }} <span |
| | | class="unit">个</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="typeNum"> |
| | | <div class="typeNum-left"> |
| | | <img src="~@/assets/images/chartCard3.svg" |
| | | alt="å¾è¡¨" |
| | | style="width: 40px; height: 40px; object-fit: contain;"> |
| | | <div class="typeNum-left-text" |
| | | style="color: #8000FF;">æå</div> |
| | | <img src="~@/assets/images/chartCard3.svg" alt="å¾è¡¨" |
| | | style="width: 40px; height: 40px; object-fit: contain;"> |
| | | <div class="typeNum-left-text" style="color: #8000FF;">æå</div> |
| | | </div> |
| | | <div class="typeNum-center"> |
| | | <div class="typeNum-leftLine3">-</div> |
| | |
| | | <div class="typeNum-right"> |
| | | <div class="typeNum-right-top"> |
| | | <div class="typeNum-right-top-name">æ»æ°é</div> |
| | | <div class="typeNum-right-top-text">2099 <span class="unit">个</span></div> |
| | | <div class="typeNum-right-top-text">{{ getInspectStatValue(2, 'totalCount') }} <span |
| | | class="unit">个</span></div> |
| | | </div> |
| | | <div class="typeNum-right-bottom"> |
| | | <div class="typeNum-right-top-name">已宿æ°</div> |
| | | <div class="typeNum-right-top-text">2099 <span class="unit">个</span></div> |
| | | <div class="typeNum-right-top-text">{{ getInspectStatValue(2, 'completedCount') }} <span |
| | | class="unit">个</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </el-col> |
| | | <!-- è´¨æ£åæ ¼ç --> |
| | | <el-col :span="15"> |
| | | <el-card class="chart-card" |
| | | shadow="hover"> |
| | | <el-card class="chart-card" shadow="hover"> |
| | | <template #header> |
| | | <div class="card-header"> |
| | | <div class="chart-title-line"></div> |
| | |
| | | <div class="top-container flex-center"> |
| | | <div class="quality-card blue-card"> |
| | | <div class="quality-card-title"> |
| | | <img src="~@/assets/images/chartCard.svg" |
| | | alt="åææ" |
| | | style="width: 24px; height: 24px; margin-right: 8px;"> |
| | | <img src="~@/assets/images/chartCard.svg" alt="åææ" |
| | | style="width: 24px; height: 24px; margin-right: 8px;"> |
| | | åææåæ ¼ç |
| | | </div> |
| | | <div class="quality-card-content"> |
| | |
| | | <div> |
| | | <div class="quality-item-label blue-label">宿ç</div> |
| | | <div class="quality-item-tip">å æ¯</div> |
| | | <div class="quality-item-value">80%</div> |
| | | <div class="quality-item-value">{{ getPassRateStatValue(0, 'completionRate') }}</div> |
| | | </div> |
| | | <div class="quality-item-chart" |
| | | ref="materialCompletionChart"></div> |
| | | <div class="quality-item-chart" ref="materialCompletionChart"></div> |
| | | </div> |
| | | <div class="quality-item"> |
| | | <div> |
| | | <div class="quality-item-label green-label">åæ ¼ç</div> |
| | | <div class="quality-item-tip">å æ¯</div> |
| | | <div class="quality-item-value">80%</div> |
| | | <div class="quality-item-value">{{ getPassRateStatValue(0, 'passRate') }}</div> |
| | | </div> |
| | | <div class="quality-item-chart" |
| | | ref="materialQualityChart"></div> |
| | | <div class="quality-item-chart" ref="materialQualityChart"></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="quality-card green-card"> |
| | | <div class="quality-card-title"> |
| | | <img src="~@/assets/images/chartCard2.svg" |
| | | alt="åæå" |
| | | style="width: 24px; height: 24px; margin-right: 8px;"> |
| | | <img src="~@/assets/images/chartCard2.svg" alt="åæå" |
| | | style="width: 24px; height: 24px; margin-right: 8px;"> |
| | | åæååæ ¼ç |
| | | </div> |
| | | <div class="quality-card-content"> |
| | |
| | | <div> |
| | | <div class="quality-item-label blue-label">宿ç</div> |
| | | <div class="quality-item-tip">å æ¯</div> |
| | | <div class="quality-item-value">80%</div> |
| | | <div class="quality-item-value">{{ getPassRateStatValue(1, 'completionRate') }}</div> |
| | | </div> |
| | | <div class="quality-item-chart" |
| | | ref="semiCompletionChart"></div> |
| | | <div class="quality-item-chart" ref="semiCompletionChart"></div> |
| | | </div> |
| | | <div class="quality-item"> |
| | | <div> |
| | | <div class="quality-item-label green-label">åæ ¼ç</div> |
| | | <div class="quality-item-tip">å æ¯</div> |
| | | <div class="quality-item-value">80%</div> |
| | | <div class="quality-item-value">{{ getPassRateStatValue(1, 'passRate') }}</div> |
| | | </div> |
| | | <div class="quality-item-chart" |
| | | ref="semiQualityChart"></div> |
| | | <div class="quality-item-chart" ref="semiQualityChart"></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="quality-card purple-card"> |
| | | <div class="quality-card-title"> |
| | | <img src="~@/assets/images/chartCard3.svg" |
| | | alt="æå" |
| | | style="width: 24px; height: 24px; margin-right: 8px;"> |
| | | <img src="~@/assets/images/chartCard3.svg" alt="æå" |
| | | style="width: 24px; height: 24px; margin-right: 8px;"> |
| | | æååæ ¼ç |
| | | </div> |
| | | <div class="quality-card-content"> |
| | |
| | | <div> |
| | | <div class="quality-item-label blue-label">宿ç</div> |
| | | <div class="quality-item-tip">å æ¯</div> |
| | | <div class="quality-item-value">80%</div> |
| | | <div class="quality-item-value">{{ getPassRateStatValue(2, 'completionRate') }}</div> |
| | | </div> |
| | | <div class="quality-item-chart" |
| | | ref="finalCompletionChart"></div> |
| | | <div class="quality-item-chart" ref="finalCompletionChart"></div> |
| | | </div> |
| | | <div class="quality-item"> |
| | | <div> |
| | | <div class="quality-item-label green-label">åæ ¼ç</div> |
| | | <div class="quality-item-tip">å æ¯</div> |
| | | <div class="quality-item-value">80%</div> |
| | | <div class="quality-item-value">{{ getPassRateStatValue(2, 'passRate') }}</div> |
| | | </div> |
| | | <div class="quality-item-chart" |
| | | ref="finalQualityChart"></div> |
| | | <div class="quality-item-chart" ref="finalQualityChart"></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <el-row :gutter="20"> |
| | | <!-- è´¨æ£åæ ¼ç --> |
| | | <el-col :span="24"> |
| | | <el-card class="chart-card" |
| | | shadow="hover"> |
| | | <el-card class="chart-card" shadow="hover"> |
| | | <template #header> |
| | | <div class="card-header"> |
| | | <div class="chart-title-line"></div> |
| | |
| | | </template> |
| | | <div class="chart-container-line"> |
| | | <div class="container-line-left"> |
| | | <div style="height: 100%; width: 100%;" |
| | | ref="usageChartRef"> |
| | | <div style="height: 100%; width: 100%;" ref="usageChartRef"> |
| | | </div> |
| | | </div> |
| | | <div class="container-line-right"> |
| | | <div style="height: 80%; width: 100%;" |
| | | ref="inspectionChartRef"> |
| | | <div style="height: 80%; width: 100%;" ref="inspectionChartRef"> |
| | | </div> |
| | | <div class="container-line-right-bottom"> |
| | | <div class="inspection-chart-box"> |
| | | <div class="chart-box-title">åæææ½æ£æ°</div> |
| | | <div class="chart-box-num">600</div> |
| | | <div class="chart-box-title">åæææ»æ°</div> |
| | | <div class="chart-box-num">{{ getYearlyStatValue(0, 'totalCount') }}</div> |
| | | </div> |
| | | <div class="inspection-chart-box"> |
| | | <div class="chart-box-title">åæåæ½æ£æ°</div> |
| | | <div class="chart-box-num">200</div> |
| | | <div class="chart-box-title">åæåæ»æ°</div> |
| | | <div class="chart-box-num">{{ getYearlyStatValue(1, 'totalCount') }}</div> |
| | | </div> |
| | | <div class="inspection-chart-box"> |
| | | <div class="chart-box-title">æåæ½æ£æ°</div> |
| | | <div class="chart-box-num">200</div> |
| | | <div class="chart-box-title">æåæ»æ°</div> |
| | | <div class="chart-box-num">{{ getYearlyStatValue(2, 'totalCount') }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | class="chart-container"></div> --> |
| | | <div class="yearchange"> |
| | | <div style="margin-right: 8px;font-size: 14px;">年份:</div> |
| | | <el-date-picker v-model="value3" |
| | | size="mini" |
| | | :clearable="false" |
| | | style="width: 60px;" |
| | | type="year" |
| | | :disabled-date="disabledDate" |
| | | placeholder=""> |
| | | <el-date-picker v-model="value3" size="mini" :clearable="false" style="width: 60px;" type="year" |
| | | :disabled-date="disabledDate" placeholder=""> |
| | | </el-date-picker> |
| | | </div> |
| | | </el-card> |
| | |
| | | <el-row :gutter="20"> |
| | | <!-- æ ·åè¿åº¦å¾è¡¨ --> |
| | | <el-col :span="12"> |
| | | <el-card class="chart-card" |
| | | shadow="hover"> |
| | | <el-card class="chart-card" shadow="hover"> |
| | | <template #header> |
| | | <div class="card-header"> |
| | | <div class="chart-title-line"></div> |
| | | <span>è´¨é宿æç»</span> |
| | | </div> |
| | | </template> |
| | | <div ref="equipmentChartRef" |
| | | class="chart-container"></div> |
| | | <div ref="equipmentChartRef" class="chart-container"></div> |
| | | </el-card> |
| | | </el-col> |
| | | <!-- 设å¤ä½¿ç¨å¾è¡¨ --> |
| | | <el-col :span="12"> |
| | | <el-card class="chart-card" |
| | | shadow="hover"> |
| | | <el-card class="chart-card" shadow="hover"> |
| | | <template #header> |
| | | <div class="card-header"> |
| | | <div class="chart-title-line"></div> |
| | |
| | | <div class="container-line2-left"> |
| | | <div class="info-box"> |
| | | <div class="info-box-header">项ç®åå¸</div> |
| | | <div class="info-line"> |
| | | <div class="info-icon" |
| | | style="background-color: #165DFF"></div> |
| | | <div class="info-line-title">ç©çæ§è½</div> |
| | | <div class="info-line-value1">30%</div> |
| | | <div class="info-line-value2">300</div> |
| | | </div> |
| | | <div class="info-line"> |
| | | <div class="info-icon" |
| | | style="background-color: #14C9C9;"></div> |
| | | <div class="info-line-title">ç©çæ§è½</div> |
| | | <div class="info-line-value1">30%</div> |
| | | <div class="info-line-value2">300</div> |
| | | </div> |
| | | <div class="info-line"> |
| | | <div class="info-icon" |
| | | style="background-color: #F7BA1E;"></div> |
| | | <div class="info-line-title">ç©çæ§è½</div> |
| | | <div class="info-line-value1">30%</div> |
| | | <div class="info-line-value2">300</div> |
| | | </div> |
| | | <div class="info-line"> |
| | | <div class="info-icon" |
| | | style="background-color: #722ED1;"></div> |
| | | <div class="info-line-title">ç©çæ§è½</div> |
| | | <div class="info-line-value1">30%</div> |
| | | <div class="info-line-value2">300</div> |
| | | </div> |
| | | <div class="info-line"> |
| | | <div class="info-icon" |
| | | style="background-color: #3491FA;"></div> |
| | | <div class="info-line-title">ç©çæ§è½</div> |
| | | <div class="info-line-value1">30%</div> |
| | | <div class="info-line-value2">300</div> |
| | | <div class="info-line" v-for="(item, index) in topParametersData.list" :key="index"> |
| | | <div class="info-icon" :style="{ backgroundColor: getParameterColor(index) }"></div> |
| | | <div class="info-line-title">{{ item.name }}</div> |
| | | <div class="info-line-value1">{{ item.percentage }}%</div> |
| | | <div class="info-line-value2">{{ item.count }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div ref="sampleChartRef" |
| | | style="height: 100%; width: 50%;" |
| | | class="chart-container"></div> |
| | | <div ref="sampleChartRef" style="height: 100%; width: 50%;" class="chart-container"></div> |
| | | </div> |
| | | <!-- Tab éæ©å¨ --> |
| | | <div class="tab-selector"> |
| | | <div class="tab-item" |
| | | :class="{ active: activeTab === 'raw' }" |
| | | @click="activeTab = 'raw'">åææ</div> |
| | | <div class="tab-item" |
| | | :class="{ active: activeTab === 'semi' }" |
| | | @click="activeTab = 'semi'">åæå</div> |
| | | <div class="tab-item" |
| | | :class="{ active: activeTab === 'final' }" |
| | | @click="activeTab = 'final'">æå</div> |
| | | <div class="tab-item" :class="{ active: activeTab === 'raw' }" @click="activeTab = 'raw'">åææ</div> |
| | | <div class="tab-item" :class="{ active: activeTab === 'semi' }" @click="activeTab = 'semi'">åæå</div> |
| | | <div class="tab-item" :class="{ active: activeTab === 'final' }" @click="activeTab = 'final'">æå</div> |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { ref, reactive, onMounted, nextTick } from "vue"; |
| | | import { ElMessage, ElMessageBox } from "element-plus"; |
| | | import * as echarts from "echarts"; |
| | | import { Box, Tools, Document, ShoppingCart } from "@element-plus/icons-vue"; |
| | | import { ref, reactive, onMounted, nextTick } from "vue"; |
| | | import { ElMessage } from "element-plus"; |
| | | import * as echarts from "echarts"; |
| | | import { getInspectStatistics, getPassRateStatistics, getMonthlyPassRateStatistics, getYearlyPassRateStatistics, getMonthlyCompletionDetails, getTopParameters } from "@/api/reportAnalysis/qualityReport"; |
| | | |
| | | // ååºå¼æ°æ® |
| | | const filterForm = reactive({ |
| | | dateRange: [], |
| | | reportType: "sample", |
| | | }); |
| | | // ååºå¼æ°æ® |
| | | const filterForm = reactive({ |
| | | dateRange: [], |
| | | reportType: "sample", |
| | | }); |
| | | |
| | | const statistics = reactive({ |
| | | totalSamples: 1250, |
| | | activeEquipment: 45, |
| | | completedInspections: 890, |
| | | totalUsage: 2340, |
| | | }); |
| | | const inspectStatisticsData = ref([]); |
| | | const passRateStatisticsData = ref([]); |
| | | const monthlyPassRateData = ref([]); |
| | | const yearlyPassRateData = ref([]); |
| | | const monthlyCompletionDetailsData = ref([]); |
| | | const topParametersData = ref({ totalCount: 0, list: [] }); |
| | | const activeTab = ref("raw"); |
| | | |
| | | const tableData = ref([]); |
| | | const tableLoading = ref(false); |
| | | const pagination = reactive({ |
| | | currentPage: 1, |
| | | pageSize: 20, |
| | | total: 0, |
| | | }); |
| | | const getParameterColor = (index) => { |
| | | const colors = ['#165DFF', '#14C9C9', '#F7BA1E', '#722ED1', '#3491FA', '#FF7D00', '#F53F3F']; |
| | | return colors[index % colors.length]; |
| | | }; |
| | | |
| | | // åå§å年份为å½å年份ï¼ä½¿ç¨Dateå¯¹è±¡ï¼ |
| | | const currentYear = new Date().getFullYear(); |
| | | const value3 = ref(new Date(currentYear, 0, 1)); |
| | | const getYearlyStatValue = (type, field) => { |
| | | const stat = yearlyPassRateData.value.find(item => item.inspectType === type); |
| | | return stat ? stat[field] : 0; |
| | | }; |
| | | |
| | | // éå¶æ¥æéæ©ï¼ä¸å
è®¸éæ©ä»å¹´ä¹åç年份 |
| | | const disabledDate = time => { |
| | | const currentYear = new Date().getFullYear(); |
| | | return time.getFullYear() > currentYear; |
| | | }; |
| | | const getInspectStatValue = (type, field) => { |
| | | const stat = inspectStatisticsData.value.find(item => item.inspectType === type); |
| | | return stat ? stat[field] : 0; |
| | | }; |
| | | |
| | | // Tab éæ©å¨å½åæ¿æ´»é¡¹ |
| | | const activeTab = ref("raw"); |
| | | |
| | | // å¾è¡¨å¼ç¨ |
| | | const sampleChartRef = ref(null); |
| | | const equipmentChartRef = ref(null); |
| | | const inspectionChartRef = ref(null); |
| | | const usageChartRef = ref(null); |
| | | |
| | | // è´¨æ£åæ ¼çå¾è¡¨å¼ç¨ |
| | | const materialCompletionChart = ref(null); |
| | | const materialQualityChart = ref(null); |
| | | const semiCompletionChart = ref(null); |
| | | const semiQualityChart = ref(null); |
| | | const finalCompletionChart = ref(null); |
| | | const finalQualityChart = ref(null); |
| | | |
| | | // å¾è¡¨å®ä¾ |
| | | let sampleChart = null; |
| | | let equipmentChart = null; |
| | | let inspectionChart = null; |
| | | let usageChart = null; |
| | | |
| | | // è´¨æ£åæ ¼çå¾è¡¨å®ä¾ |
| | | let materialCompletionChartInstance = null; |
| | | let materialQualityChartInstance = null; |
| | | let semiCompletionChartInstance = null; |
| | | let semiQualityChartInstance = null; |
| | | let finalCompletionChartInstance = null; |
| | | let finalQualityChartInstance = null; |
| | | |
| | | // åå§åæ°æ® |
| | | const initData = () => { |
| | | // 模æè¡¨æ ¼æ°æ® |
| | | tableData.value = [ |
| | | { |
| | | id: "SP001", |
| | | name: "æ ·åA-001", |
| | | type: "é屿æ", |
| | | status: "æ£æµä¸", |
| | | progress: 75, |
| | | createTime: "2025-01-15 09:30:00", |
| | | updateTime: "2025-01-20 14:20:00", |
| | | }, |
| | | { |
| | | id: "SP002", |
| | | name: "æ ·åB-002", |
| | | type: "塿å¶å", |
| | | status: "已宿", |
| | | progress: 100, |
| | | createTime: "2025-01-10 10:15:00", |
| | | updateTime: "2025-01-18 16:45:00", |
| | | }, |
| | | { |
| | | id: "SP003", |
| | | name: "æ ·åC-003", |
| | | type: "çµåå
ä»¶", |
| | | status: "å¾
æ£æµ", |
| | | progress: 0, |
| | | createTime: "2025-01-22 08:45:00", |
| | | updateTime: "2025-01-22 08:45:00", |
| | | }, |
| | | { |
| | | id: "EQ001", |
| | | name: "æ£æµè®¾å¤A", |
| | | type: "åææ", |
| | | status: "使ç¨ä¸", |
| | | progress: 60, |
| | | createTime: "2025-01-05 14:20:00", |
| | | updateTime: "2025-01-20 11:30:00", |
| | | }, |
| | | { |
| | | id: "EQ002", |
| | | name: "æ£æµè®¾å¤B", |
| | | type: "åæå", |
| | | status: "空é²", |
| | | progress: 0, |
| | | createTime: "2025-01-08 16:10:00", |
| | | updateTime: "2025-01-19 09:15:00", |
| | | }, |
| | | ]; |
| | | |
| | | pagination.total = tableData.value.length; |
| | | }; |
| | | |
| | | // åå§åæ ·åè¿åº¦å¾è¡¨ |
| | | const initSampleChart = () => { |
| | | if (sampleChartRef.value) { |
| | | sampleChart = echarts.init(sampleChartRef.value); |
| | | const option = { |
| | | title: { |
| | | show: false, |
| | | }, |
| | | tooltip: { |
| | | trigger: "item", |
| | | formatter: "{a} <br/>{b}: {c} ({d}%)", |
| | | }, |
| | | // legend: { |
| | | // orient: "vertical", |
| | | // left: "left", |
| | | // }, |
| | | series: [ |
| | | { |
| | | name: "æ ·åç¶æ", |
| | | type: "pie", |
| | | radius: ["40%", "80%"], |
| | | avoidLabelOverlap: false, |
| | | label: { |
| | | show: false, |
| | | position: "center", |
| | | }, |
| | | emphasis: { |
| | | label: { |
| | | show: true, |
| | | fontSize: "18", |
| | | fontWeight: "bold", |
| | | }, |
| | | }, |
| | | labelLine: { |
| | | show: false, |
| | | }, |
| | | data: [ |
| | | { value: 450, name: "已宿" }, |
| | | { value: 320, name: "æ£æµä¸" }, |
| | | { value: 280, name: "å¾
æ£æµ" }, |
| | | { value: 200, name: "å·²æå" }, |
| | | ], |
| | | }, |
| | | ], |
| | | }; |
| | | sampleChart.setOption(option); |
| | | const getPassRateStatValue = (type, field) => { |
| | | const stat = passRateStatisticsData.value.find(item => item.inspectType === type); |
| | | if (stat) { |
| | | if (field === 'completionRate' || field === 'passRate') { |
| | | return stat[field] ? Number(stat[field]).toFixed(0) + '%' : '0%'; |
| | | } |
| | | }; |
| | | return stat[field]; |
| | | } |
| | | return field === 'completionRate' || field === 'passRate' ? '0%' : 0; |
| | | }; |
| | | |
| | | // åå§å设å¤ä½¿ç¨å¾è¡¨ |
| | | const initEquipmentChart = () => { |
| | | if (equipmentChartRef.value) { |
| | | equipmentChart = echarts.init(equipmentChartRef.value); |
| | | const option = { |
| | | title: { |
| | | show: false, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | axisPointer: { |
| | | type: "shadow", |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "1%", |
| | | right: "1%", |
| | | bottom: "1%", |
| | | containLabel: true, |
| | | }, |
| | | legend: { |
| | | data: ["åææ", "åæå", "æå"], // å¾ä¾æ°æ® |
| | | icon: ["circle", "circle", "circle"], |
| | | itemWidth: 10, // è®¾ç½®å¾æ 宽度 |
| | | itemHeight: 10, |
| | | itemGap: 30, |
| | | right: 10, |
| | | }, |
| | | xAxis: { |
| | | type: "category", |
| | | data: [ |
| | | value3.value.getFullYear() + "-1", |
| | | value3.value.getFullYear() + "-2", |
| | | value3.value.getFullYear() + "-3", |
| | | value3.value.getFullYear() + "-4", |
| | | value3.value.getFullYear() + "-5", |
| | | value3.value.getFullYear() + "-6", |
| | | value3.value.getFullYear() + "-7", |
| | | value3.value.getFullYear() + "-8", |
| | | value3.value.getFullYear() + "-9", |
| | | value3.value.getFullYear() + "-10", |
| | | value3.value.getFullYear() + "-11", |
| | | value3.value.getFullYear() + "-12", |
| | | ], // æ¹ä¸ºåäºä¸ªæ |
| | | }, |
| | | yAxis: { |
| | | type: "value", |
| | | name: "æ°(个)", |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "åææ", |
| | | type: "bar", |
| | | barWidth: "15%", |
| | | data: [85, 75, 80, 85, 90, 88, 92, 87, 89, 91, 93, 95], |
| | | itemStyle: { |
| | | color: "#409EFF", |
| | | }, |
| | | }, |
| | | { |
| | | name: "åæå", |
| | | type: "bar", |
| | | barWidth: "15%", |
| | | |
| | | data: [60, 65, 70, 68, 72, 75, 78, 80, 79, 82, 84, 85], |
| | | itemStyle: { |
| | | color: "#67C23A", |
| | | }, |
| | | }, |
| | | { |
| | | name: "æå", |
| | | type: "bar", |
| | | barWidth: "15%", |
| | | |
| | | data: [75, 78, 80, 82, 85, 83, 86, 88, 87, 89, 90, 92], |
| | | itemStyle: { |
| | | color: "#E6A23C", |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | equipmentChart.setOption(option); |
| | | const fetchInspectStatisticsData = async () => { |
| | | try { |
| | | const res = await getInspectStatistics(); |
| | | if (res.code === 200) { |
| | | inspectStatisticsData.value = res.data; |
| | | } |
| | | }; |
| | | } catch (error) { |
| | | console.error("Failed to fetch inspect statistics:", error); |
| | | } |
| | | }; |
| | | |
| | | // åå§åæ£æµé¡¹ç®å¾è¡¨ |
| | | const initInspectionChart = () => { |
| | | if (inspectionChartRef.value) { |
| | | inspectionChart = echarts.init(inspectionChartRef.value); |
| | | const option = { |
| | | title: { |
| | | show: false, |
| | | }, |
| | | tooltip: { |
| | | trigger: "item", |
| | | }, |
| | | series: [ |
| | | { |
| | | type: "pie", |
| | | radius: "80%", |
| | | data: [ |
| | | { value: 335, name: "åææ", itemStyle: { color: "#1890FF" } }, |
| | | { value: 310, name: "åæå", itemStyle: { color: "#F7BA1E" } }, |
| | | { value: 234, name: "æå", itemStyle: { color: "#14C9C9" } }, |
| | | ], |
| | | emphasis: { |
| | | itemStyle: { |
| | | shadowBlur: 10, |
| | | shadowOffsetX: 0, |
| | | shadowColor: "rgba(0, 0, 0, 0.5)", |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | inspectionChart.setOption(option); |
| | | } |
| | | }; |
| | | |
| | | // åå§åé¢ç¨è®°å½å¾è¡¨ |
| | | const initUsageChart = () => { |
| | | // æ£æ¥å¾è¡¨å®¹å¨æ¯å¦åå¨ |
| | | if (usageChartRef.value) { |
| | | // åå§å ECharts å®ä¾ |
| | | usageChart = echarts.init(usageChartRef.value); |
| | | // é
ç½®å¾è¡¨é项 |
| | | const option = { |
| | | // æ é¢é
ç½®ï¼éèï¼ |
| | | title: { |
| | | show: false, |
| | | }, |
| | | |
| | | // ç½æ ¼é
ç½®ï¼è°æ´è¾¹è·ï¼ |
| | | grid: { |
| | | left: "1%", |
| | | right: "4%", |
| | | bottom: "3%", |
| | | top: "14%", |
| | | containLabel: true, |
| | | }, |
| | | // æç¤ºæ¡é
ç½® |
| | | tooltip: { |
| | | trigger: "axis", // 触åç±»åä¸ºåæ è½´è§¦å |
| | | }, |
| | | // å¾ä¾é
ç½® |
| | | legend: { |
| | | data: ["åææ", "åæå", "æå"], // å¾ä¾æ°æ® |
| | | icon: ["circle", "circle", "circle"], |
| | | itemWidth: 10, // è®¾ç½®å¾æ 宽度 |
| | | itemHeight: 10, |
| | | itemGap: 30, |
| | | }, |
| | | // Xè½´é
ç½® |
| | | xAxis: { |
| | | type: "category", // ç±»å«è½´ |
| | | boundaryGap: false, // åæ è½´ä¸¤è¾¹çç½çç¥ |
| | | data: [ |
| | | value3.value.getFullYear() + "-1", |
| | | value3.value.getFullYear() + "-2", |
| | | value3.value.getFullYear() + "-3", |
| | | value3.value.getFullYear() + "-4", |
| | | value3.value.getFullYear() + "-5", |
| | | value3.value.getFullYear() + "-6", |
| | | value3.value.getFullYear() + "-7", |
| | | value3.value.getFullYear() + "-8", |
| | | value3.value.getFullYear() + "-9", |
| | | value3.value.getFullYear() + "-10", |
| | | value3.value.getFullYear() + "-11", |
| | | value3.value.getFullYear() + "-12", |
| | | ], // Xè½´æ°æ® |
| | | }, |
| | | // Yè½´é
ç½® |
| | | yAxis: { |
| | | type: "value", // æ°å¼è½´ |
| | | name: "åä½ï¼%", |
| | | }, |
| | | // ç³»åæ°æ® |
| | | series: [ |
| | | { |
| | | name: "åææ", // ç³»ååç§° |
| | | type: "line", // å¾è¡¨ç±»å为æçº¿å¾ |
| | | stack: "Total", // å å åç§° |
| | | symbol: "none", |
| | | itemStyle: { |
| | | color: "#1890FF", // è®¾ç½®è¿æ¡çº¿çé¢è² |
| | | }, |
| | | data: [120, 132, 101, 134, 90, 230, 210, 182, 191, 234, 290, 330], // é¢ç¨æ¬¡æ°æ°æ® |
| | | }, |
| | | { |
| | | name: "åæå", // ç³»ååç§° |
| | | type: "line", // å¾è¡¨ç±»å为æçº¿å¾ |
| | | stack: "Total", // å å åç§° |
| | | symbol: "none", |
| | | itemStyle: { |
| | | color: "#F7BA1E", // è®¾ç½®è¿æ¡çº¿çé¢è² |
| | | }, |
| | | data: [110, 125, 95, 128, 85, 220, 200, 175, 185, 225, 280, 320], // å½è¿æ¬¡æ°æ°æ® |
| | | }, |
| | | { |
| | | name: "æå", // ç³»ååç§° |
| | | type: "line", // å¾è¡¨ç±»å为æçº¿å¾ |
| | | stack: "Total", // å å åç§° |
| | | symbol: "none", |
| | | itemStyle: { |
| | | color: "#14C9C9", // è®¾ç½®è¿æ¡çº¿çé¢è² |
| | | }, |
| | | data: [110, 125, 95, 128, 85, 220, 200, 175, 185, 225, 280, 320], // å½è¿æ¬¡æ°æ°æ® |
| | | }, |
| | | ], |
| | | }; |
| | | // å°é
ç½®åºç¨å°å¾è¡¨ |
| | | usageChart.setOption(option); |
| | | } |
| | | }; |
| | | |
| | | // åå§åè´¨æ£åæ ¼çå¾è¡¨ |
| | | const initQualityChart = (chartRef, color) => { |
| | | if (chartRef.value) { |
| | | const chart = echarts.init(chartRef.value); |
| | | const option = { |
| | | series: [ |
| | | { |
| | | type: "pie", |
| | | radius: ["45%", "90%"], |
| | | itemStyle: { |
| | | borderColor: "#f5f5f5", |
| | | // borderWidth: 2, |
| | | }, |
| | | labelLine: { |
| | | show: false, |
| | | }, |
| | | data: [ |
| | | { value: 0.8, itemStyle: { color: color } }, |
| | | { value: 0.2, itemStyle: { color: "#f5f5f5" } }, |
| | | ], |
| | | }, |
| | | ], |
| | | }; |
| | | chart.setOption(option); |
| | | return chart; |
| | | } |
| | | return null; |
| | | }; |
| | | |
| | | // åå§åææè´¨æ£åæ ¼çå¾è¡¨ |
| | | const initAllQualityCharts = () => { |
| | | materialCompletionChartInstance = initQualityChart( |
| | | materialCompletionChart, |
| | | "#1890ff" |
| | | ); |
| | | materialQualityChartInstance = initQualityChart( |
| | | materialQualityChart, |
| | | "#52c41a" |
| | | ); |
| | | semiCompletionChartInstance = initQualityChart( |
| | | semiCompletionChart, |
| | | "#1890ff" |
| | | ); |
| | | semiQualityChartInstance = initQualityChart(semiQualityChart, "#52c41a"); |
| | | finalCompletionChartInstance = initQualityChart( |
| | | finalCompletionChart, |
| | | "#1890ff" |
| | | ); |
| | | finalQualityChartInstance = initQualityChart(finalQualityChart, "#722ed1"); |
| | | }; |
| | | |
| | | // äºä»¶å¤ç彿° |
| | | const handleFilterChange = () => { |
| | | ElMessage.success("çéæ¡ä»¶å·²æ´æ°"); |
| | | // è¿éå¯ä»¥æ ¹æ®ç鿡件鿰å è½½æ°æ® |
| | | }; |
| | | |
| | | const resetFilter = () => { |
| | | filterForm.dateRange = []; |
| | | filterForm.reportType = "sample"; |
| | | ElMessage.info("ç鿡件已éç½®"); |
| | | }; |
| | | |
| | | const exportReport = () => { |
| | | ElMessage.success("æ¥è¡¨å¯¼åºåè½å¼åä¸..."); |
| | | }; |
| | | |
| | | const refreshSampleChart = () => { |
| | | initSampleChart(); |
| | | ElMessage.success("æ ·åè¿åº¦å¾è¡¨å·²å·æ°"); |
| | | }; |
| | | |
| | | const refreshEquipmentChart = () => { |
| | | initEquipmentChart(); |
| | | ElMessage.success("设å¤ä½¿ç¨å¾è¡¨å·²å·æ°"); |
| | | }; |
| | | |
| | | const refreshInspectionChart = () => { |
| | | initInspectionChart(); |
| | | ElMessage.success("æ£æµé¡¹ç®å¾è¡¨å·²å·æ°"); |
| | | }; |
| | | |
| | | const refreshUsageChart = () => { |
| | | initUsageChart(); |
| | | ElMessage.success("é¢ç¨è®°å½å¾è¡¨å·²å·æ°"); |
| | | }; |
| | | |
| | | const refreshTable = () => { |
| | | tableLoading.value = true; |
| | | setTimeout(() => { |
| | | tableLoading.value = false; |
| | | ElMessage.success("è¡¨æ ¼æ°æ®å·²å·æ°"); |
| | | }, 1000); |
| | | }; |
| | | |
| | | const exportTable = () => { |
| | | ElMessage.success("è¡¨æ ¼å¯¼åºåè½å¼åä¸..."); |
| | | }; |
| | | |
| | | const handleSizeChange = val => { |
| | | pagination.pageSize = val; |
| | | // éæ°å è½½æ°æ® |
| | | }; |
| | | |
| | | const handleCurrentChange = val => { |
| | | pagination.currentPage = val; |
| | | // éæ°å è½½æ°æ® |
| | | }; |
| | | |
| | | const getStatusType = status => { |
| | | const statusMap = { |
| | | 已宿: "success", |
| | | æ£æµä¸: "warning", |
| | | å¾
æ£æµ: "info", |
| | | å·²æå: "danger", |
| | | 使ç¨ä¸: "primary", |
| | | 空é²: "info", |
| | | }; |
| | | return statusMap[status] || "info"; |
| | | }; |
| | | |
| | | const getProgressStatus = progress => { |
| | | if (progress === 100) return "success"; |
| | | if (progress >= 80) return "warning"; |
| | | if (progress >= 50) return ""; |
| | | return "exception"; |
| | | }; |
| | | |
| | | const viewDetail = row => { |
| | | ElMessage.info(`æ¥ç详æ
: ${row.name}`); |
| | | }; |
| | | |
| | | const editItem = row => { |
| | | ElMessage.info(`ç¼è¾é¡¹ç®: ${row.name}`); |
| | | }; |
| | | |
| | | // çå½å¨æ |
| | | onMounted(() => { |
| | | initData(); |
| | | nextTick(() => { |
| | | initSampleChart(); |
| | | initEquipmentChart(); |
| | | initInspectionChart(); |
| | | initUsageChart(); |
| | | const fetchPassRateStatisticsData = async () => { |
| | | try { |
| | | const res = await getPassRateStatistics(); |
| | | if (res.code === 200) { |
| | | passRateStatisticsData.value = res.data; |
| | | // æ°æ®è·ååéæ°åå§åå¾è¡¨ |
| | | initAllQualityCharts(); |
| | | }); |
| | | // çå¬çªå£å¤§å°ååï¼éæ°è°æ´å¾è¡¨å¤§å° |
| | | window.addEventListener("resize", () => { |
| | | sampleChart?.resize(); |
| | | equipmentChart?.resize(); |
| | | inspectionChart?.resize(); |
| | | usageChart?.resize(); |
| | | } |
| | | } catch (error) { |
| | | console.error("Failed to fetch pass rate statistics:", error); |
| | | } |
| | | }; |
| | | |
| | | // è°æ´è´¨æ£åæ ¼çå¾è¡¨å¤§å° |
| | | materialCompletionChartInstance?.resize(); |
| | | materialQualityChartInstance?.resize(); |
| | | semiCompletionChartInstance?.resize(); |
| | | semiQualityChartInstance?.resize(); |
| | | finalCompletionChartInstance?.resize(); |
| | | finalQualityChartInstance?.resize(); |
| | | }); |
| | | const fetchMonthlyPassRateData = async () => { |
| | | try { |
| | | const year = value3.value.getFullYear().toString(); |
| | | const res = await getMonthlyPassRateStatistics(year); |
| | | if (res.code === 200) { |
| | | monthlyPassRateData.value = res.data; |
| | | initUsageChart(); |
| | | } |
| | | } catch (error) { |
| | | console.error("Failed to fetch monthly pass rate statistics:", error); |
| | | } |
| | | }; |
| | | |
| | | const fetchYearlyPassRateData = async () => { |
| | | try { |
| | | const year = value3.value.getFullYear().toString(); |
| | | const res = await getYearlyPassRateStatistics(year); |
| | | if (res.code === 200) { |
| | | yearlyPassRateData.value = res.data; |
| | | initInspectionChart(); |
| | | } |
| | | } catch (error) { |
| | | console.error("Failed to fetch yearly pass rate statistics:", error); |
| | | } |
| | | }; |
| | | |
| | | const fetchMonthlyCompletionDetailsData = async () => { |
| | | try { |
| | | const year = value3.value.getFullYear().toString(); |
| | | const res = await getMonthlyCompletionDetails(year); |
| | | if (res.code === 200) { |
| | | monthlyCompletionDetailsData.value = res.data; |
| | | initEquipmentChart(); |
| | | } |
| | | } catch (error) { |
| | | console.error("Failed to fetch monthly completion details:", error); |
| | | } |
| | | }; |
| | | |
| | | const fetchTopParametersData = async () => { |
| | | try { |
| | | const typeMap = { raw: 0, semi: 1, final: 2 }; |
| | | const res = await getTopParameters(typeMap[activeTab.value]); |
| | | if (res.code === 200) { |
| | | topParametersData.value = res.data; |
| | | initSampleChart(); |
| | | } |
| | | } catch (error) { |
| | | console.error("Failed to fetch top parameters:", error); |
| | | } |
| | | }; |
| | | |
| | | const tableData = ref([]); |
| | | const tableLoading = ref(false); |
| | | const pagination = reactive({ |
| | | currentPage: 1, |
| | | pageSize: 20, |
| | | total: 0, |
| | | }); |
| | | |
| | | // åå§å年份为å½å年份ï¼ä½¿ç¨Dateå¯¹è±¡ï¼ |
| | | const currentYear = new Date().getFullYear(); |
| | | const value3 = ref(new Date(currentYear, 0, 1)); |
| | | |
| | | // éå¶æ¥æéæ©ï¼ä¸å
è®¸éæ©ä»å¹´ä¹åç年份 |
| | | const disabledDate = time => { |
| | | const currentYear = new Date().getFullYear(); |
| | | return time.getFullYear() > currentYear; |
| | | }; |
| | | |
| | | // çå¬å¹´ä»½åå |
| | | import { watch } from "vue"; |
| | | watch(value3, () => { |
| | | fetchMonthlyPassRateData(); |
| | | fetchYearlyPassRateData(); |
| | | fetchMonthlyCompletionDetailsData(); |
| | | }); |
| | | |
| | | watch(activeTab, () => { |
| | | fetchTopParametersData(); |
| | | }); |
| | | |
| | | |
| | | // å¾è¡¨å¼ç¨ |
| | | const sampleChartRef = ref(null); |
| | | const equipmentChartRef = ref(null); |
| | | const inspectionChartRef = ref(null); |
| | | const usageChartRef = ref(null); |
| | | |
| | | // è´¨æ£åæ ¼çå¾è¡¨å¼ç¨ |
| | | const materialCompletionChart = ref(null); |
| | | const materialQualityChart = ref(null); |
| | | const semiCompletionChart = ref(null); |
| | | const semiQualityChart = ref(null); |
| | | const finalCompletionChart = ref(null); |
| | | const finalQualityChart = ref(null); |
| | | |
| | | // å¾è¡¨å®ä¾ |
| | | let sampleChart = null; |
| | | let equipmentChart = null; |
| | | let inspectionChart = null; |
| | | let usageChart = null; |
| | | |
| | | // è´¨æ£åæ ¼çå¾è¡¨å®ä¾ |
| | | let materialCompletionChartInstance = null; |
| | | let materialQualityChartInstance = null; |
| | | let semiCompletionChartInstance = null; |
| | | let semiQualityChartInstance = null; |
| | | let finalCompletionChartInstance = null; |
| | | let finalQualityChartInstance = null; |
| | | |
| | | // åå§åæ ·åè¿åº¦å¾è¡¨ |
| | | const initSampleChart = () => { |
| | | if (sampleChartRef.value) { |
| | | sampleChart = echarts.init(sampleChartRef.value); |
| | | const option = { |
| | | title: { |
| | | show: false, |
| | | }, |
| | | tooltip: { |
| | | trigger: "item", |
| | | formatter: "{a} <br/>{b}: {c} ({d}%)", |
| | | }, |
| | | // legend: { |
| | | // orient: "vertical", |
| | | // left: "left", |
| | | // }, |
| | | series: [ |
| | | { |
| | | name: "æ£æµé¡¹ç®", |
| | | type: "pie", |
| | | radius: ["40%", "80%"], |
| | | avoidLabelOverlap: false, |
| | | label: { |
| | | show: false, |
| | | position: "center", |
| | | }, |
| | | emphasis: { |
| | | label: { |
| | | show: true, |
| | | fontSize: "18", |
| | | fontWeight: "bold", |
| | | }, |
| | | }, |
| | | labelLine: { |
| | | show: false, |
| | | }, |
| | | data: topParametersData.value.list.map((item, index) => ({ |
| | | value: item.count, |
| | | name: item.name, |
| | | itemStyle: { color: getParameterColor(index) } |
| | | })), |
| | | }, |
| | | ], |
| | | }; |
| | | sampleChart.setOption(option); |
| | | } |
| | | }; |
| | | |
| | | // åå§å设å¤ä½¿ç¨å¾è¡¨ |
| | | const initEquipmentChart = () => { |
| | | if (equipmentChartRef.value) { |
| | | equipmentChart = echarts.init(equipmentChartRef.value); |
| | | const option = { |
| | | title: { |
| | | show: false, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | axisPointer: { |
| | | type: "shadow", |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "1%", |
| | | right: "1%", |
| | | bottom: "1%", |
| | | containLabel: true, |
| | | }, |
| | | legend: { |
| | | data: ["åææ", "åæå", "æå"], // å¾ä¾æ°æ® |
| | | icon: ["circle", "circle", "circle"], |
| | | itemWidth: 10, // è®¾ç½®å¾æ 宽度 |
| | | itemHeight: 10, |
| | | itemGap: 30, |
| | | right: 10, |
| | | }, |
| | | xAxis: { |
| | | type: "category", |
| | | data: [ |
| | | value3.value.getFullYear() + "-1", |
| | | value3.value.getFullYear() + "-2", |
| | | value3.value.getFullYear() + "-3", |
| | | value3.value.getFullYear() + "-4", |
| | | value3.value.getFullYear() + "-5", |
| | | value3.value.getFullYear() + "-6", |
| | | value3.value.getFullYear() + "-7", |
| | | value3.value.getFullYear() + "-8", |
| | | value3.value.getFullYear() + "-9", |
| | | value3.value.getFullYear() + "-10", |
| | | value3.value.getFullYear() + "-11", |
| | | value3.value.getFullYear() + "-12", |
| | | ], // æ¹ä¸ºåäºä¸ªæ |
| | | }, |
| | | yAxis: { |
| | | type: "value", |
| | | name: "æ°(个)", |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "åææ", |
| | | type: "bar", |
| | | barWidth: "15%", |
| | | data: monthlyCompletionDetailsData.value.map(item => item.rawMaterialCount), |
| | | itemStyle: { |
| | | color: "#409EFF", |
| | | }, |
| | | }, |
| | | { |
| | | name: "åæå", |
| | | type: "bar", |
| | | barWidth: "15%", |
| | | |
| | | data: monthlyCompletionDetailsData.value.map(item => item.processCount), |
| | | itemStyle: { |
| | | color: "#67C23A", |
| | | }, |
| | | }, |
| | | { |
| | | name: "æå", |
| | | type: "bar", |
| | | barWidth: "15%", |
| | | |
| | | data: monthlyCompletionDetailsData.value.map(item => item.outgoingCount), |
| | | itemStyle: { |
| | | color: "#E6A23C", |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | equipmentChart.setOption(option); |
| | | } |
| | | }; |
| | | |
| | | // åå§åæ£æµé¡¹ç®å¾è¡¨ |
| | | const initInspectionChart = () => { |
| | | if (inspectionChartRef.value) { |
| | | inspectionChart = echarts.init(inspectionChartRef.value); |
| | | const option = { |
| | | title: { |
| | | show: false, |
| | | }, |
| | | tooltip: { |
| | | trigger: "item", |
| | | }, |
| | | series: [ |
| | | { |
| | | type: "pie", |
| | | radius: "70%", |
| | | data: [ |
| | | { value: getYearlyStatValue(0, 'totalCount'), name: "åææ", itemStyle: { color: "#1890FF" } }, |
| | | { value: getYearlyStatValue(1, 'totalCount'), name: "åæå", itemStyle: { color: "#F7BA1E" } }, |
| | | { value: getYearlyStatValue(2, 'totalCount'), name: "æå", itemStyle: { color: "#14C9C9" } }, |
| | | ], |
| | | label: { |
| | | show: true, |
| | | formatter: '{b}: {c}' |
| | | }, |
| | | emphasis: { |
| | | itemStyle: { |
| | | shadowBlur: 10, |
| | | shadowOffsetX: 0, |
| | | shadowColor: "rgba(0, 0, 0, 0.5)", |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | inspectionChart.setOption(option); |
| | | } |
| | | }; |
| | | |
| | | // åå§åé¢ç¨è®°å½å¾è¡¨ |
| | | const initUsageChart = () => { |
| | | // æ£æ¥å¾è¡¨å®¹å¨æ¯å¦åå¨ |
| | | if (usageChartRef.value) { |
| | | // åå§å ECharts å®ä¾ |
| | | usageChart = echarts.init(usageChartRef.value); |
| | | // é
ç½®å¾è¡¨é项 |
| | | const option = { |
| | | // æ é¢é
ç½®ï¼éèï¼ |
| | | title: { |
| | | show: false, |
| | | }, |
| | | |
| | | // ç½æ ¼é
ç½®ï¼è°æ´è¾¹è·ï¼ |
| | | grid: { |
| | | left: "1%", |
| | | right: "4%", |
| | | bottom: "3%", |
| | | top: "14%", |
| | | containLabel: true, |
| | | }, |
| | | // æç¤ºæ¡é
ç½® |
| | | tooltip: { |
| | | trigger: "axis", // 触åç±»åä¸ºåæ è½´è§¦å |
| | | }, |
| | | // å¾ä¾é
ç½® |
| | | legend: { |
| | | data: ["åææ", "åæå", "æå"], // å¾ä¾æ°æ® |
| | | icon: ["circle", "circle", "circle"], |
| | | itemWidth: 10, // è®¾ç½®å¾æ 宽度 |
| | | itemHeight: 10, |
| | | itemGap: 30, |
| | | }, |
| | | // Xè½´é
ç½® |
| | | xAxis: { |
| | | type: "category", // ç±»å«è½´ |
| | | boundaryGap: false, // åæ è½´ä¸¤è¾¹çç½çç¥ |
| | | data: [ |
| | | value3.value.getFullYear() + "-1", |
| | | value3.value.getFullYear() + "-2", |
| | | value3.value.getFullYear() + "-3", |
| | | value3.value.getFullYear() + "-4", |
| | | value3.value.getFullYear() + "-5", |
| | | value3.value.getFullYear() + "-6", |
| | | value3.value.getFullYear() + "-7", |
| | | value3.value.getFullYear() + "-8", |
| | | value3.value.getFullYear() + "-9", |
| | | value3.value.getFullYear() + "-10", |
| | | value3.value.getFullYear() + "-11", |
| | | value3.value.getFullYear() + "-12", |
| | | ], // Xè½´æ°æ® |
| | | }, |
| | | // Yè½´é
ç½® |
| | | yAxis: { |
| | | type: "value", // æ°å¼è½´ |
| | | name: "åä½ï¼%", |
| | | }, |
| | | // ç³»åæ°æ® |
| | | series: [ |
| | | { |
| | | name: "åææ", // ç³»ååç§° |
| | | type: "line", // å¾è¡¨ç±»å为æçº¿å¾ |
| | | // stack: "Total", // å å åç§° |
| | | symbol: "circle", |
| | | itemStyle: { |
| | | color: "#1890FF", // è®¾ç½®è¿æ¡çº¿çé¢è² |
| | | }, |
| | | data: monthlyPassRateData.value.map(item => item.rawMaterial.passRate), |
| | | }, |
| | | { |
| | | name: "åæå", // ç³»ååç§° |
| | | type: "line", // å¾è¡¨ç±»å为æçº¿å¾ |
| | | // stack: "Total", // å å åç§° |
| | | symbol: "circle", |
| | | itemStyle: { |
| | | color: "#F7BA1E", // è®¾ç½®è¿æ¡çº¿çé¢è² |
| | | }, |
| | | data: monthlyPassRateData.value.map(item => item.process.passRate), |
| | | }, |
| | | { |
| | | name: "æå", // ç³»ååç§° |
| | | type: "line", // å¾è¡¨ç±»å为æçº¿å¾ |
| | | // stack: "Total", // å å åç§° |
| | | symbol: "circle", |
| | | itemStyle: { |
| | | color: "#14C9C9", // è®¾ç½®è¿æ¡çº¿çé¢è² |
| | | }, |
| | | data: monthlyPassRateData.value.map(item => item.outgoing.passRate), |
| | | }, |
| | | ], |
| | | }; |
| | | // å°é
ç½®åºç¨å°å¾è¡¨ |
| | | usageChart.setOption(option); |
| | | } |
| | | }; |
| | | |
| | | // åå§åè´¨æ£åæ ¼çå¾è¡¨ |
| | | const initQualityChart = (chartRef, color, value = 0.8) => { |
| | | if (chartRef.value) { |
| | | let chart = echarts.getInstanceByDom(chartRef.value); |
| | | if (!chart) { |
| | | chart = echarts.init(chartRef.value); |
| | | } |
| | | const numericValue = typeof value === 'string' ? parseFloat(value) / 100 : value / 100; |
| | | const option = { |
| | | series: [ |
| | | { |
| | | type: "pie", |
| | | radius: ["45%", "90%"], |
| | | itemStyle: { |
| | | borderColor: "#f5f5f5", |
| | | // borderWidth: 2, |
| | | }, |
| | | labelLine: { |
| | | show: false, |
| | | }, |
| | | data: [ |
| | | { value: numericValue, itemStyle: { color: color } }, |
| | | { value: 1 - numericValue, itemStyle: { color: "#f5f5f5" } }, |
| | | ], |
| | | }, |
| | | ], |
| | | }; |
| | | chart.setOption(option); |
| | | return chart; |
| | | } |
| | | return null; |
| | | }; |
| | | |
| | | // åå§åææè´¨æ£åæ ¼çå¾è¡¨ |
| | | const initAllQualityCharts = () => { |
| | | materialCompletionChartInstance = initQualityChart( |
| | | materialCompletionChart, |
| | | "#1890ff", |
| | | getPassRateStatValue(0, 'completionRate') |
| | | ); |
| | | materialQualityChartInstance = initQualityChart( |
| | | materialQualityChart, |
| | | "#52c41a", |
| | | getPassRateStatValue(0, 'passRate') |
| | | ); |
| | | semiCompletionChartInstance = initQualityChart( |
| | | semiCompletionChart, |
| | | "#1890ff", |
| | | getPassRateStatValue(1, 'completionRate') |
| | | ); |
| | | semiQualityChartInstance = initQualityChart( |
| | | semiQualityChart, |
| | | "#52c41a", |
| | | getPassRateStatValue(1, 'passRate') |
| | | ); |
| | | finalCompletionChartInstance = initQualityChart( |
| | | finalCompletionChart, |
| | | "#1890ff", |
| | | getPassRateStatValue(2, 'completionRate') |
| | | ); |
| | | finalQualityChartInstance = initQualityChart( |
| | | finalQualityChart, |
| | | "#722ed1", |
| | | getPassRateStatValue(2, 'passRate') |
| | | ); |
| | | }; |
| | | |
| | | // äºä»¶å¤ç彿° |
| | | const handleFilterChange = () => { |
| | | ElMessage.success("çéæ¡ä»¶å·²æ´æ°"); |
| | | // è¿éå¯ä»¥æ ¹æ®ç鿡件鿰å è½½æ°æ® |
| | | }; |
| | | |
| | | const resetFilter = () => { |
| | | filterForm.dateRange = []; |
| | | filterForm.reportType = "sample"; |
| | | ElMessage.info("ç鿡件已éç½®"); |
| | | }; |
| | | |
| | | const exportReport = () => { |
| | | ElMessage.success("æ¥è¡¨å¯¼åºåè½å¼åä¸..."); |
| | | }; |
| | | |
| | | const refreshSampleChart = () => { |
| | | initSampleChart(); |
| | | ElMessage.success("æ ·åè¿åº¦å¾è¡¨å·²å·æ°"); |
| | | }; |
| | | |
| | | const refreshEquipmentChart = () => { |
| | | initEquipmentChart(); |
| | | ElMessage.success("设å¤ä½¿ç¨å¾è¡¨å·²å·æ°"); |
| | | }; |
| | | |
| | | const refreshInspectionChart = () => { |
| | | initInspectionChart(); |
| | | ElMessage.success("æ£æµé¡¹ç®å¾è¡¨å·²å·æ°"); |
| | | }; |
| | | |
| | | const refreshUsageChart = () => { |
| | | initUsageChart(); |
| | | ElMessage.success("é¢ç¨è®°å½å¾è¡¨å·²å·æ°"); |
| | | }; |
| | | |
| | | const refreshTable = () => { |
| | | tableLoading.value = true; |
| | | setTimeout(() => { |
| | | tableLoading.value = false; |
| | | ElMessage.success("è¡¨æ ¼æ°æ®å·²å·æ°"); |
| | | }, 1000); |
| | | }; |
| | | |
| | | const exportTable = () => { |
| | | ElMessage.success("è¡¨æ ¼å¯¼åºåè½å¼åä¸..."); |
| | | }; |
| | | |
| | | const handleSizeChange = val => { |
| | | pagination.pageSize = val; |
| | | // éæ°å è½½æ°æ® |
| | | }; |
| | | |
| | | const handleCurrentChange = val => { |
| | | pagination.currentPage = val; |
| | | // éæ°å è½½æ°æ® |
| | | }; |
| | | |
| | | const getStatusType = status => { |
| | | const statusMap = { |
| | | 已宿: "success", |
| | | æ£æµä¸: "warning", |
| | | å¾
æ£æµ: "info", |
| | | å·²æå: "danger", |
| | | 使ç¨ä¸: "primary", |
| | | 空é²: "info", |
| | | }; |
| | | return statusMap[status] || "info"; |
| | | }; |
| | | |
| | | const getProgressStatus = progress => { |
| | | if (progress === 100) return "success"; |
| | | if (progress >= 80) return "warning"; |
| | | if (progress >= 50) return ""; |
| | | return "exception"; |
| | | }; |
| | | |
| | | const viewDetail = row => { |
| | | ElMessage.info(`æ¥ç详æ
: ${row.name}`); |
| | | }; |
| | | |
| | | const editItem = row => { |
| | | ElMessage.info(`ç¼è¾é¡¹ç®: ${row.name}`); |
| | | }; |
| | | |
| | | // çå½å¨æ |
| | | onMounted(() => { |
| | | fetchInspectStatisticsData(); |
| | | fetchPassRateStatisticsData(); |
| | | fetchMonthlyPassRateData(); |
| | | fetchYearlyPassRateData(); |
| | | fetchMonthlyCompletionDetailsData(); |
| | | fetchTopParametersData(); |
| | | nextTick(() => { |
| | | initSampleChart(); |
| | | initEquipmentChart(); |
| | | initInspectionChart(); |
| | | initUsageChart(); |
| | | initAllQualityCharts(); |
| | | }); |
| | | // çå¬çªå£å¤§å°ååï¼éæ°è°æ´å¾è¡¨å¤§å° |
| | | window.addEventListener("resize", () => { |
| | | sampleChart?.resize(); |
| | | equipmentChart?.resize(); |
| | | inspectionChart?.resize(); |
| | | usageChart?.resize(); |
| | | |
| | | // è°æ´è´¨æ£åæ ¼çå¾è¡¨å¤§å° |
| | | materialCompletionChartInstance?.resize(); |
| | | materialQualityChartInstance?.resize(); |
| | | semiCompletionChartInstance?.resize(); |
| | | semiQualityChartInstance?.resize(); |
| | | finalCompletionChartInstance?.resize(); |
| | | finalQualityChartInstance?.resize(); |
| | | }); |
| | | }); |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .report-management { |
| | | padding: 20px; |
| | | background-color: #f5f5f5; |
| | | min-height: 100vh; |
| | | /* height: 87vh; |
| | | overflow: hidden; */ |
| | | } |
| | | .report-management { |
| | | padding: 20px; |
| | | background-color: #f5f5f5; |
| | | min-height: 100vh; |
| | | /* height: 87vh; |
| | | overflow: hidden; */ |
| | | } |
| | | |
| | | .page-header { |
| | | margin-bottom: 20px; |
| | | text-align: center; |
| | | } |
| | | .page-header { |
| | | margin-bottom: 20px; |
| | | text-align: center; |
| | | } |
| | | |
| | | .page-header h2 { |
| | | color: #303133; |
| | | margin-bottom: 8px; |
| | | font-size: 24px; |
| | | font-weight: 600; |
| | | } |
| | | .page-header h2 { |
| | | color: #303133; |
| | | margin-bottom: 8px; |
| | | font-size: 24px; |
| | | font-weight: 600; |
| | | } |
| | | |
| | | .page-header p { |
| | | color: #909399; |
| | | font-size: 14px; |
| | | margin: 0; |
| | | } |
| | | .page-header p { |
| | | color: #909399; |
| | | font-size: 14px; |
| | | margin: 0; |
| | | } |
| | | |
| | | .filter-card { |
| | | margin-bottom: 20px; |
| | | } |
| | | .filter-card { |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | .statistics-cards { |
| | | margin-bottom: 20px; |
| | | } |
| | | .statistics-cards { |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | .stat-card { |
| | | height: 120px; |
| | | } |
| | | .stat-card { |
| | | height: 120px; |
| | | } |
| | | |
| | | .stat-content { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100%; |
| | | } |
| | | .stat-content { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100%; |
| | | } |
| | | |
| | | .stat-icon { |
| | | width: 60px; |
| | | height: 60px; |
| | | border-radius: 50%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-right: 20px; |
| | | font-size: 24px; |
| | | color: white; |
| | | } |
| | | .stat-icon { |
| | | width: 60px; |
| | | height: 60px; |
| | | border-radius: 50%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-right: 20px; |
| | | font-size: 24px; |
| | | color: white; |
| | | } |
| | | |
| | | .stat-card:nth-child(1) .stat-icon { |
| | | background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| | | } |
| | | .stat-card:nth-child(1) .stat-icon { |
| | | background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| | | } |
| | | |
| | | .stat-card:nth-child(2) .stat-icon { |
| | | background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); |
| | | } |
| | | .stat-card:nth-child(2) .stat-icon { |
| | | background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); |
| | | } |
| | | |
| | | .stat-card:nth-child(3) .stat-icon { |
| | | background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); |
| | | } |
| | | .stat-card:nth-child(3) .stat-icon { |
| | | background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); |
| | | } |
| | | |
| | | .stat-card:nth-child(4) .stat-icon { |
| | | background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); |
| | | } |
| | | .stat-card:nth-child(4) .stat-icon { |
| | | background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); |
| | | } |
| | | |
| | | .stat-info { |
| | | flex: 1; |
| | | } |
| | | .stat-info { |
| | | flex: 1; |
| | | } |
| | | |
| | | .stat-number { |
| | | font-size: 28px; |
| | | font-weight: bold; |
| | | color: #303133; |
| | | margin-bottom: 8px; |
| | | } |
| | | .stat-number { |
| | | font-size: 28px; |
| | | font-weight: bold; |
| | | color: #303133; |
| | | margin-bottom: 8px; |
| | | } |
| | | |
| | | .stat-label { |
| | | font-size: 14px; |
| | | color: #909399; |
| | | } |
| | | .stat-label { |
| | | font-size: 14px; |
| | | color: #909399; |
| | | } |
| | | |
| | | .charts-container { |
| | | /* margin-bottom: 20px; */ |
| | | position: relative; |
| | | } |
| | | .charts-container { |
| | | /* margin-bottom: 20px; */ |
| | | position: relative; |
| | | } |
| | | |
| | | .chart-card { |
| | | margin-bottom: 20px; |
| | | } |
| | | .container-line-right-bottom { |
| | | height: 20%; |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: space-evenly; |
| | | align-items: center; |
| | | /* background-color: #5b3f3f; */ |
| | | } |
| | | .card-header { |
| | | display: flex; |
| | | justify-content: flex-start; |
| | | align-items: center; |
| | | font-family: Source Han Sans, Source Han Sans; |
| | | font-weight: 700; |
| | | font-size: 18px; |
| | | color: #000000; |
| | | /* line-height: 27px; */ |
| | | text-align: left; |
| | | font-style: normal; |
| | | text-transform: none; |
| | | } |
| | | .chart-title-line { |
| | | width: 6px; |
| | | height: 22px; |
| | | background-color: #161a9a; |
| | | margin-right: 16px; |
| | | border-radius: 3px; |
| | | } |
| | | .chart-card { |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | .chart-container { |
| | | height: 250px; |
| | | width: 100%; |
| | | } |
| | | .chart-container-line { |
| | | height: 250px; |
| | | width: 100%; |
| | | display: flex; |
| | | position: relative; |
| | | } |
| | | .container-line-right-bottom { |
| | | height: 20%; |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: space-evenly; |
| | | align-items: center; |
| | | /* background-color: #5b3f3f; */ |
| | | } |
| | | |
| | | /* Tab 鿩卿 ·å¼ */ |
| | | .tab-selector { |
| | | position: absolute; |
| | | top: 20px; |
| | | right: 40px; |
| | | display: flex; |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 4px; |
| | | overflow: hidden; |
| | | } |
| | | .card-header { |
| | | display: flex; |
| | | justify-content: flex-start; |
| | | align-items: center; |
| | | font-family: Source Han Sans, Source Han Sans; |
| | | font-weight: 700; |
| | | font-size: 18px; |
| | | color: #000000; |
| | | /* line-height: 27px; */ |
| | | text-align: left; |
| | | font-style: normal; |
| | | text-transform: none; |
| | | } |
| | | |
| | | .tab-item { |
| | | padding: 4px 12px; |
| | | cursor: pointer; |
| | | font-size: 14px; |
| | | color: #606266; |
| | | background-color: #fff; |
| | | border-right: 1px solid #dcdfe6; |
| | | transition: all 0.3s; |
| | | } |
| | | .chart-title-line { |
| | | width: 6px; |
| | | height: 22px; |
| | | background-color: #161a9a; |
| | | margin-right: 16px; |
| | | border-radius: 3px; |
| | | } |
| | | |
| | | .tab-item:last-child { |
| | | border-right: none; |
| | | } |
| | | .chart-container { |
| | | height: 250px; |
| | | width: 100%; |
| | | } |
| | | |
| | | .tab-item:hover { |
| | | color: #409eff; |
| | | } |
| | | .chart-container-line { |
| | | height: 250px; |
| | | width: 100%; |
| | | display: flex; |
| | | position: relative; |
| | | } |
| | | |
| | | .tab-item.active { |
| | | color: #fff; |
| | | background-color: #409eff; |
| | | } |
| | | .container-line-left { |
| | | height: 100%; |
| | | width: 66%; |
| | | } |
| | | .container-line-right { |
| | | height: 100%; |
| | | width: 34%; |
| | | } |
| | | .container-line2-left { |
| | | height: 100%; |
| | | width: 50%; |
| | | } |
| | | .info-box { |
| | | width: 92%; |
| | | margin-left: 4%; |
| | | height: 100%; |
| | | background-color: #f7f8fa; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | } |
| | | .info-box-header { |
| | | width: 100%; |
| | | margin-left: 20px; |
| | | color: #1d2129; |
| | | font-size: 16px; |
| | | font-weight: 500; |
| | | } |
| | | /* Tab 鿩卿 ·å¼ */ |
| | | .tab-selector { |
| | | position: absolute; |
| | | top: 20px; |
| | | right: 40px; |
| | | display: flex; |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 4px; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .info-line { |
| | | width: 100%; |
| | | display: flex; |
| | | padding-left: 20px; |
| | | align-items: center; |
| | | } |
| | | .info-icon { |
| | | width: 7px; |
| | | height: 7px; |
| | | border-radius: 50%; |
| | | margin-right: 8px; |
| | | } |
| | | .info-line-title { |
| | | font-size: 12px; |
| | | color: #4e5969; |
| | | flex: 1; |
| | | } |
| | | .info-line-value1 { |
| | | font-size: 12px; |
| | | color: #3d3d3d; |
| | | color: #1d2129; |
| | | font-weight: 500; |
| | | margin-right: 15%; |
| | | } |
| | | .info-line-value2 { |
| | | font-size: 12px; |
| | | color: #3d3d3d; |
| | | color: #1d2129; |
| | | font-weight: 500; |
| | | margin-right: 10%; |
| | | } |
| | | .top-container { |
| | | height: 130px; |
| | | width: 100%; |
| | | display: flex; |
| | | } |
| | | .typeNum { |
| | | height: 100%; |
| | | width: 33.33%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .typeNum-left { |
| | | font-size: 12px; |
| | | color: #909399; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .typeNum-left-text { |
| | | font-size: 12px; |
| | | color: #3491fa; |
| | | font-weight: 500; |
| | | margin-top: 5px; |
| | | } |
| | | .table-card { |
| | | margin-bottom: 20px; |
| | | } |
| | | .typeNum-center { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-left: 10px; |
| | | } |
| | | .typeNum-leftLine { |
| | | color: #3491fa; |
| | | font-size: 12px; |
| | | } |
| | | .typeNum-rightLine { |
| | | border-top: 1px solid #3491fa; |
| | | border-left: 1px solid #3491fa; |
| | | border-bottom: 1px solid #3491fa; |
| | | height: 80px; |
| | | width: 8px; |
| | | } |
| | | .typeNum-leftLine2 { |
| | | color: #5eb334; |
| | | font-size: 12px; |
| | | } |
| | | .typeNum-rightLine2 { |
| | | border-top: 1px solid #3491fa; |
| | | border-left: 1px solid #5eb334; |
| | | border-bottom: 1px solid #5eb334; |
| | | height: 80px; |
| | | width: 8px; |
| | | } |
| | | .typeNum-leftLine3 { |
| | | color: #8000ff; |
| | | font-size: 12px; |
| | | } |
| | | .typeNum-rightLine3 { |
| | | border-top: 1px solid #8000ff; |
| | | border-left: 1px solid #8000ff; |
| | | border-bottom: 1px solid #8000ff; |
| | | height: 80px; |
| | | width: 8px; |
| | | } |
| | | .typeNum-right { |
| | | margin-left: 10px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | height: 90%; |
| | | justify-content: space-between; |
| | | } |
| | | .typeNum-right-top-name { |
| | | font-weight: 400; |
| | | font-size: 12px; |
| | | color: #3d3d3d; |
| | | } |
| | | .typeNum-right-top-text { |
| | | font-weight: 400; |
| | | font-size: 16px; |
| | | color: rgba(0, 0, 0, 0.85); |
| | | margin-top: 5px; |
| | | } |
| | | .unit { |
| | | font-size: 12px; |
| | | color: #3d3d3d; |
| | | } |
| | | .inspection-chart-box { |
| | | height: 50px; |
| | | width: 30%; |
| | | background-color: #f7f8fa; |
| | | border-radius: 8px; |
| | | padding-left: 15px; |
| | | } |
| | | .chart-box-title { |
| | | font-size: 12px; |
| | | color: #4e5969; |
| | | margin-top: 5px; |
| | | } |
| | | .unit { |
| | | font-size: 12px; |
| | | color: #3d3d3d; |
| | | } |
| | | .chart-box-num { |
| | | font-size: 18px; |
| | | color: #000; |
| | | margin-top: 5px; |
| | | font-weight: 500; |
| | | } |
| | | /* è´¨æ£åæ ¼çå¡çæ ·å¼ */ |
| | | .top-containeråæ ¼ç { |
| | | height: 130px; |
| | | width: 100%; |
| | | display: flex; |
| | | gap: 15px; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | .flex-center { |
| | | justify-content: space-evenly; |
| | | } |
| | | .quality-card { |
| | | /* flex: 1; */ |
| | | width: 32%; |
| | | /* height: 100px; */ |
| | | border-radius: 8px; |
| | | padding: 12px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | .tab-item { |
| | | padding: 4px 12px; |
| | | cursor: pointer; |
| | | font-size: 14px; |
| | | color: #606266; |
| | | background-color: #fff; |
| | | border-right: 1px solid #dcdfe6; |
| | | transition: all 0.3s; |
| | | } |
| | | |
| | | .blue-card { |
| | | background-color: #e6f7ff; |
| | | } |
| | | .tab-item:last-child { |
| | | border-right: none; |
| | | } |
| | | |
| | | .green-card { |
| | | background-color: #f6ffed; |
| | | color: #000000; |
| | | } |
| | | .tab-item:hover { |
| | | color: #409eff; |
| | | } |
| | | |
| | | .purple-card { |
| | | background-color: #f9f0ff; |
| | | } |
| | | .tab-item.active { |
| | | color: #fff; |
| | | background-color: #409eff; |
| | | } |
| | | |
| | | .quality-card-title { |
| | | font-size: 14px; |
| | | font-weight: 500; |
| | | margin-bottom: 10px; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .container-line-left { |
| | | height: 100%; |
| | | width: 66%; |
| | | } |
| | | |
| | | .quality-item-tip { |
| | | font-size: 12px; |
| | | color: #666666; |
| | | margin-bottom: 3px; |
| | | } |
| | | .blue-label { |
| | | color: #1890ff; |
| | | } |
| | | .green-label { |
| | | color: #52c41a; |
| | | } |
| | | .container-line-right { |
| | | height: 100%; |
| | | width: 34%; |
| | | } |
| | | |
| | | .quality-card-title { |
| | | color: #000; |
| | | font-weight: bold; |
| | | } |
| | | .container-line2-left { |
| | | height: 100%; |
| | | width: 50%; |
| | | } |
| | | |
| | | .quality-card-content { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | flex: 1; |
| | | } |
| | | .info-box { |
| | | width: 92%; |
| | | margin-left: 4%; |
| | | height: 100%; |
| | | background-color: #f7f8fa; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | } |
| | | |
| | | .quality-item { |
| | | display: flex; |
| | | /* flex-direction: column; */ |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-top: 5px; |
| | | flex: 1; |
| | | } |
| | | .info-box-header { |
| | | width: 100%; |
| | | margin-left: 20px; |
| | | color: #1d2129; |
| | | font-size: 16px; |
| | | font-weight: 500; |
| | | } |
| | | |
| | | .quality-item-label { |
| | | font-size: 12px; |
| | | /* color: #666; */ |
| | | margin-bottom: 4px; |
| | | } |
| | | .info-line { |
| | | width: 100%; |
| | | display: flex; |
| | | padding-left: 20px; |
| | | align-items: center; |
| | | } |
| | | |
| | | .quality-item-value { |
| | | font-size: 20px; |
| | | font-weight: 500; |
| | | margin-bottom: 4px; |
| | | } |
| | | .info-icon { |
| | | width: 7px; |
| | | height: 7px; |
| | | border-radius: 50%; |
| | | margin-right: 8px; |
| | | } |
| | | |
| | | .quality-item-chart { |
| | | width: 60px; |
| | | height: 60px; |
| | | margin-left: 10px; |
| | | } |
| | | /* .flex-center { |
| | | justify-content: space-evenly; |
| | | } */ |
| | | .info-line-title { |
| | | font-size: 12px; |
| | | color: #4e5969; |
| | | flex: 1; |
| | | } |
| | | |
| | | .blue-chart { |
| | | /* background-color: rgba(24, 144, 255, 0.1); */ |
| | | } |
| | | .info-line-value1 { |
| | | font-size: 12px; |
| | | color: #3d3d3d; |
| | | color: #1d2129; |
| | | font-weight: 500; |
| | | margin-right: 15%; |
| | | } |
| | | |
| | | .green-chart { |
| | | /* background-color: rgba(82, 196, 26, 0.1); */ |
| | | } |
| | | .info-line-value2 { |
| | | font-size: 12px; |
| | | color: #3d3d3d; |
| | | color: #1d2129; |
| | | font-weight: 500; |
| | | margin-right: 10%; |
| | | } |
| | | |
| | | .purple-chart { |
| | | /* background-color: rgba(114, 46, 209, 0.1); */ |
| | | } |
| | | .top-container { |
| | | height: 130px; |
| | | width: 100%; |
| | | display: flex; |
| | | } |
| | | |
| | | .chart-ring { |
| | | width: 60px; |
| | | height: 60px; |
| | | border-radius: 50%; |
| | | border: 15px solid transparent; |
| | | position: relative; |
| | | } |
| | | .typeNum { |
| | | height: 100%; |
| | | width: 33.33%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .blue-chart .chart-ring { |
| | | border-top-color: #1890ff; |
| | | border-right-color: #1890ff; |
| | | border-bottom-color: #1890ff; |
| | | transform: rotate(45deg); |
| | | } |
| | | .typeNum-left { |
| | | font-size: 12px; |
| | | color: #909399; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .green-chart .chart-ring { |
| | | border-top-color: #52c41a; |
| | | border-right-color: #52c41a; |
| | | border-bottom-color: #52c41a; |
| | | transform: rotate(45deg); |
| | | } |
| | | .typeNum-left-text { |
| | | font-size: 12px; |
| | | color: #3491fa; |
| | | font-weight: 500; |
| | | margin-top: 5px; |
| | | } |
| | | |
| | | .purple-chart .chart-ring { |
| | | border-top-color: #722ed1; |
| | | border-right-color: #722ed1; |
| | | border-bottom-color: #722ed1; |
| | | transform: rotate(45deg); |
| | | } |
| | | .table-card { |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | .pagination-container { |
| | | margin-top: 20px; |
| | | text-align: right; |
| | | } |
| | | .yearchange { |
| | | position: absolute; |
| | | right: 40px; |
| | | top: 20px; |
| | | display: flex; |
| | | align-items: center; |
| | | /* width: 60px; */ |
| | | } |
| | | .typeNum-center { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-left: 10px; |
| | | } |
| | | |
| | | :deep(.el-card__header) { |
| | | padding: 15px 20px; |
| | | border-bottom: 1px solid #ffffff; |
| | | background-color: #ffffff; |
| | | } |
| | | .typeNum-leftLine { |
| | | color: #3491fa; |
| | | font-size: 12px; |
| | | } |
| | | |
| | | :deep(.el-card__body) { |
| | | padding: 20px; |
| | | } |
| | | .typeNum-rightLine { |
| | | border-top: 1px solid #3491fa; |
| | | border-left: 1px solid #3491fa; |
| | | border-bottom: 1px solid #3491fa; |
| | | height: 80px; |
| | | width: 8px; |
| | | } |
| | | |
| | | :deep(.el-table) { |
| | | margin-bottom: 20px; |
| | | } |
| | | .typeNum-leftLine2 { |
| | | color: #5eb334; |
| | | font-size: 12px; |
| | | } |
| | | |
| | | :deep(.el-progress) { |
| | | margin: 0; |
| | | } |
| | | .typeNum-rightLine2 { |
| | | border-top: 1px solid #3491fa; |
| | | border-left: 1px solid #5eb334; |
| | | border-bottom: 1px solid #5eb334; |
| | | height: 80px; |
| | | width: 8px; |
| | | } |
| | | |
| | | :deep(.el-tag) { |
| | | margin: 0; |
| | | } |
| | | :deep(.el-input__prefix) { |
| | | display: none !important; |
| | | } |
| | | .typeNum-leftLine3 { |
| | | color: #8000ff; |
| | | font-size: 12px; |
| | | } |
| | | |
| | | .typeNum-rightLine3 { |
| | | border-top: 1px solid #8000ff; |
| | | border-left: 1px solid #8000ff; |
| | | border-bottom: 1px solid #8000ff; |
| | | height: 80px; |
| | | width: 8px; |
| | | } |
| | | |
| | | .typeNum-right { |
| | | margin-left: 10px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | height: 90%; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .typeNum-right-top-name { |
| | | font-weight: 400; |
| | | font-size: 12px; |
| | | color: #3d3d3d; |
| | | } |
| | | |
| | | .typeNum-right-top-text { |
| | | font-weight: 400; |
| | | font-size: 16px; |
| | | color: rgba(0, 0, 0, 0.85); |
| | | margin-top: 5px; |
| | | } |
| | | |
| | | .unit { |
| | | font-size: 12px; |
| | | color: #3d3d3d; |
| | | } |
| | | |
| | | .inspection-chart-box { |
| | | height: 50px; |
| | | width: 30%; |
| | | background-color: #f7f8fa; |
| | | border-radius: 8px; |
| | | padding-left: 15px; |
| | | } |
| | | |
| | | .chart-box-title { |
| | | font-size: 12px; |
| | | color: #4e5969; |
| | | margin-top: 5px; |
| | | } |
| | | |
| | | .unit { |
| | | font-size: 12px; |
| | | color: #3d3d3d; |
| | | } |
| | | |
| | | .chart-box-num { |
| | | font-size: 18px; |
| | | color: #000; |
| | | margin-top: 5px; |
| | | font-weight: 500; |
| | | } |
| | | |
| | | /* è´¨æ£åæ ¼çå¡çæ ·å¼ */ |
| | | .top-containeråæ ¼ç { |
| | | height: 130px; |
| | | width: 100%; |
| | | display: flex; |
| | | gap: 15px; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .flex-center { |
| | | justify-content: space-evenly; |
| | | } |
| | | |
| | | .quality-card { |
| | | /* flex: 1; */ |
| | | width: 32%; |
| | | /* height: 100px; */ |
| | | border-radius: 8px; |
| | | padding: 12px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .blue-card { |
| | | background-color: #e6f7ff; |
| | | } |
| | | |
| | | .green-card { |
| | | background-color: #f6ffed; |
| | | color: #000000; |
| | | } |
| | | |
| | | .purple-card { |
| | | background-color: #f9f0ff; |
| | | } |
| | | |
| | | .quality-card-title { |
| | | font-size: 14px; |
| | | font-weight: 500; |
| | | margin-bottom: 10px; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | |
| | | .quality-item-tip { |
| | | font-size: 12px; |
| | | color: #666666; |
| | | margin-bottom: 3px; |
| | | } |
| | | |
| | | .blue-label { |
| | | color: #1890ff; |
| | | } |
| | | |
| | | .green-label { |
| | | color: #52c41a; |
| | | } |
| | | |
| | | .quality-card-title { |
| | | color: #000; |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .quality-card-content { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | flex: 1; |
| | | } |
| | | |
| | | .quality-item { |
| | | display: flex; |
| | | /* flex-direction: column; */ |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-top: 5px; |
| | | flex: 1; |
| | | } |
| | | |
| | | .quality-item-label { |
| | | font-size: 12px; |
| | | /* color: #666; */ |
| | | margin-bottom: 4px; |
| | | } |
| | | |
| | | .quality-item-value { |
| | | font-size: 20px; |
| | | font-weight: 500; |
| | | margin-bottom: 4px; |
| | | } |
| | | |
| | | .quality-item-chart { |
| | | width: 60px; |
| | | height: 60px; |
| | | margin-left: 10px; |
| | | } |
| | | |
| | | /* .flex-center { |
| | | justify-content: space-evenly; |
| | | } */ |
| | | |
| | | .blue-chart { |
| | | /* background-color: rgba(24, 144, 255, 0.1); */ |
| | | } |
| | | |
| | | .green-chart { |
| | | /* background-color: rgba(82, 196, 26, 0.1); */ |
| | | } |
| | | |
| | | .purple-chart { |
| | | /* background-color: rgba(114, 46, 209, 0.1); */ |
| | | } |
| | | |
| | | .chart-ring { |
| | | width: 60px; |
| | | height: 60px; |
| | | border-radius: 50%; |
| | | border: 15px solid transparent; |
| | | position: relative; |
| | | } |
| | | |
| | | .blue-chart .chart-ring { |
| | | border-top-color: #1890ff; |
| | | border-right-color: #1890ff; |
| | | border-bottom-color: #1890ff; |
| | | transform: rotate(45deg); |
| | | } |
| | | |
| | | .green-chart .chart-ring { |
| | | border-top-color: #52c41a; |
| | | border-right-color: #52c41a; |
| | | border-bottom-color: #52c41a; |
| | | transform: rotate(45deg); |
| | | } |
| | | |
| | | .purple-chart .chart-ring { |
| | | border-top-color: #722ed1; |
| | | border-right-color: #722ed1; |
| | | border-bottom-color: #722ed1; |
| | | transform: rotate(45deg); |
| | | } |
| | | |
| | | .pagination-container { |
| | | margin-top: 20px; |
| | | text-align: right; |
| | | } |
| | | |
| | | .yearchange { |
| | | position: absolute; |
| | | right: 40px; |
| | | top: 20px; |
| | | display: flex; |
| | | align-items: center; |
| | | /* width: 60px; */ |
| | | } |
| | | |
| | | :deep(.el-card__header) { |
| | | padding: 15px 20px; |
| | | border-bottom: 1px solid #ffffff; |
| | | background-color: #ffffff; |
| | | } |
| | | |
| | | :deep(.el-card__body) { |
| | | padding: 20px; |
| | | } |
| | | |
| | | :deep(.el-table) { |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | :deep(.el-progress) { |
| | | margin: 0; |
| | | } |
| | | |
| | | :deep(.el-tag) { |
| | | margin: 0; |
| | | } |
| | | |
| | | :deep(.el-input__prefix) { |
| | | display: none !important; |
| | | } |
| | | </style> |