11 changed files with 2251 additions and 21 deletions
-
2src/api/dashboard/dashboard.js
-
1src/router/index.js
-
9src/views/modules/dashboard/buffer-board.vue
-
840src/views/modules/dashboard/exception-board.vue
-
6src/views/modules/dashboard/finished-product-board.vue
-
1370src/views/modules/dashboard/inventory-board.vue
-
6src/views/modules/dashboard/material-receiving-board.vue
-
17src/views/modules/dashboard/picking-board.vue
-
6src/views/modules/dashboard/robot-picking-board.vue
-
6src/views/modules/dashboard/slitting-board.vue
-
9src/views/modules/dashboard/workshop-feeding-board.vue
@ -0,0 +1,840 @@ |
|||
<template> |
|||
<div class="picking-board-screen"> |
|||
<!-- 装饰背景 --> |
|||
<div class="bg-decoration"> |
|||
<div class="decoration-line line-1"></div> |
|||
<div class="decoration-line line-2"></div> |
|||
<div class="decoration-line line-3"></div> |
|||
<div class="decoration-circle circle-1"></div> |
|||
<div class="decoration-circle circle-2"></div> |
|||
</div> |
|||
|
|||
<!-- 顶部标题栏 --> |
|||
<div class="screen-header"> |
|||
<div class="header-decoration left"></div> |
|||
<div class="header-center"> |
|||
<div class="title-glow"></div> |
|||
<h1 class="screen-title">异常处理区实时看板</h1> |
|||
<div class="title-subtitle">Exception Handling Area Real-time Dashboard</div> |
|||
</div> |
|||
<div class="header-decoration right"></div> |
|||
<div class="header-time"> |
|||
<div class="time-icon"></div> |
|||
<div class="time-text">{{ currentTime }}</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<!-- 主内容区 --> |
|||
<div class="screen-content-single"> |
|||
<!-- 异常处理区面板 --> |
|||
<div class="picking-panel-single"> |
|||
<!-- 面板标题 --> |
|||
<div class="panel-title-bar"> |
|||
<div class="title-left"> |
|||
<div class="title-icon"></div> |
|||
<div class="title-text"> |
|||
<span class="title-main">异常处理区</span> |
|||
<span class="title-count">当前异常:<strong>{{ exceptionList.length }}</strong> 条</span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<!-- 数据表格 --> |
|||
<div class="panel-table"> |
|||
<table class="data-table"> |
|||
<thead> |
|||
<tr> |
|||
<th style="width: 60px;">No.</th> |
|||
<th style="width: 150px;">异常类型</th> |
|||
<th style="width: 120px;">托盘码</th> |
|||
<th style="width: 120px;">位置</th> |
|||
<th style="width: 180px;">物料名称</th> |
|||
<th style="width: 100px;">数量</th> |
|||
<th style="width: 250px;">异常描述</th> |
|||
<th style="width: 150px;">发生时间</th> |
|||
<th style="width: 150px;">处理状态</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<tr v-for="(item, idx) in exceptionList" :key="idx" :class="getRowClass(item.exceptionType)"> |
|||
<td class="text-center">{{ idx + 1 }}</td> |
|||
<td class="text-center"> |
|||
<span :class="['exception-type-badge', getExceptionTypeClass(item.exceptionType)]"> |
|||
{{ item.exceptionType }} |
|||
</span> |
|||
</td> |
|||
<td class="text-center">{{ item.palletCode }}</td> |
|||
<td class="text-center">{{ item.location }}</td> |
|||
<td class="text-left">{{ item.materialName || '-' }}</td> |
|||
<td class="text-right">{{ item.quantity || '-' }}</td> |
|||
<td class="text-left exception-desc">{{ item.description }}</td> |
|||
<td class="text-center">{{ item.occurTime }}</td> |
|||
<td class="text-center"> |
|||
<span :class="['status-badge', getStatusClass(item.status)]"> |
|||
{{ item.status }} |
|||
</span> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<!-- 底部装饰 --> |
|||
<div class="screen-footer"> |
|||
<div class="footer-line"></div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import {exceptionBoard} from '@/api/dashboard/dashboard.js' |
|||
|
|||
export default { |
|||
name: 'ExceptionBoard', |
|||
|
|||
data() { |
|||
return { |
|||
currentTime: '', |
|||
timeInterval: null, |
|||
dataInterval: null, |
|||
|
|||
// 异常处理区数据 |
|||
exceptionList: [ |
|||
{ |
|||
exceptionType: 'RFID复合NG', |
|||
palletCode: 'P00001', |
|||
location: '2-1', |
|||
materialName: '80501238', |
|||
quantity: '5000', |
|||
description: 'RFID复合数量不符:实际500,应为5000', |
|||
occurTime: '2025-01-21 14:25:30', |
|||
status: '待处理' |
|||
}, |
|||
{ |
|||
exceptionType: '外形检测NG', |
|||
palletCode: 'P00002', |
|||
location: '3-2', |
|||
materialName: '80501240', |
|||
quantity: '1000', |
|||
description: '外形尺寸超出允许范围', |
|||
occurTime: '2025-01-21 14:20:15', |
|||
status: '处理中' |
|||
}, |
|||
{ |
|||
exceptionType: '偏载报警', |
|||
palletCode: 'W00015', |
|||
location: 'SC001', |
|||
materialName: '80451239', |
|||
quantity: '2000', |
|||
description: '托盘重心偏移超过安全阈值', |
|||
occurTime: '2025-01-21 14:15:42', |
|||
status: '待处理' |
|||
}, |
|||
{ |
|||
exceptionType: 'AGV异常', |
|||
palletCode: 'G00013', |
|||
location: 'HC09', |
|||
materialName: '70000235', |
|||
quantity: '500', |
|||
description: 'AGV电量不足,无法完成任务', |
|||
occurTime: '2025-01-21 14:10:28', |
|||
status: '已处理' |
|||
}, |
|||
{ |
|||
exceptionType: '库存差异', |
|||
palletCode: 'P00011', |
|||
location: 'HC01', |
|||
materialName: '80542546', |
|||
quantity: '3000', |
|||
description: '系统库存与实际库存不一致', |
|||
occurTime: '2025-01-21 13:55:10', |
|||
status: '处理中' |
|||
}, |
|||
{ |
|||
exceptionType: '质量异常', |
|||
palletCode: 'W00018', |
|||
location: 'FQ02', |
|||
materialName: '80451242', |
|||
quantity: '1500', |
|||
description: '质检发现产品质量不合格', |
|||
occurTime: '2025-01-21 13:45:20', |
|||
status: '待处理' |
|||
}, |
|||
{ |
|||
exceptionType: '超时报警', |
|||
palletCode: 'G00014', |
|||
location: 'YC02', |
|||
materialName: '70004562', |
|||
quantity: '1000', |
|||
description: '入库等待时间超过2小时', |
|||
occurTime: '2025-01-21 13:30:05', |
|||
status: '已处理' |
|||
}, |
|||
{ |
|||
exceptionType: '托盘损坏', |
|||
palletCode: 'P00013', |
|||
location: 'CP03', |
|||
materialName: '', |
|||
quantity: '', |
|||
description: '托盘表面破损,需要更换', |
|||
occurTime: '2025-01-21 13:20:18', |
|||
status: '处理中' |
|||
}, |
|||
{ |
|||
exceptionType: '超时报警', |
|||
palletCode: 'G00014', |
|||
location: 'YC02', |
|||
materialName: '70004562', |
|||
quantity: '1000', |
|||
description: '入库等待时间超过2小时', |
|||
occurTime: '2025-01-21 13:30:05', |
|||
status: '已处理' |
|||
}, |
|||
{ |
|||
exceptionType: '托盘损坏', |
|||
palletCode: 'P00013', |
|||
location: 'CP03', |
|||
materialName: '', |
|||
quantity: '', |
|||
description: '托盘表面破损,需要更换', |
|||
occurTime: '2025-01-21 13:20:18', |
|||
status: '处理中' |
|||
}, |
|||
{ |
|||
exceptionType: '超时报警', |
|||
palletCode: 'G00014', |
|||
location: 'YC02', |
|||
materialName: '70004562', |
|||
quantity: '1000', |
|||
description: '入库等待时间超过2小时', |
|||
occurTime: '2025-01-21 13:30:05', |
|||
status: '已处理' |
|||
}, |
|||
{ |
|||
exceptionType: '托盘损坏', |
|||
palletCode: 'P00013', |
|||
location: 'CP03', |
|||
materialName: '', |
|||
quantity: '', |
|||
description: '托盘表面破损,需要更换', |
|||
occurTime: '2025-01-21 13:20:18', |
|||
status: '处理中' |
|||
}, |
|||
{ |
|||
exceptionType: '超时报警', |
|||
palletCode: 'G00014', |
|||
location: 'YC02', |
|||
materialName: '70004562', |
|||
quantity: '1000', |
|||
description: '入库等待时间超过2小时', |
|||
occurTime: '2025-01-21 13:30:05', |
|||
status: '已处理' |
|||
}, |
|||
{ |
|||
exceptionType: '托盘损坏', |
|||
palletCode: 'P00013', |
|||
location: 'CP03', |
|||
materialName: '', |
|||
quantity: '', |
|||
description: '托盘表面破损,需要更换', |
|||
occurTime: '2025-01-21 13:20:18', |
|||
status: '处理中' |
|||
}, |
|||
{ |
|||
exceptionType: '超时报警', |
|||
palletCode: 'G00014', |
|||
location: 'YC02', |
|||
materialName: '70004562', |
|||
quantity: '1000', |
|||
description: '入库等待时间超过2小时', |
|||
occurTime: '2025-01-21 13:30:05', |
|||
status: '已处理' |
|||
}, |
|||
{ |
|||
exceptionType: '托盘损坏', |
|||
palletCode: 'P00013', |
|||
location: 'CP03', |
|||
materialName: '', |
|||
quantity: '', |
|||
description: '托盘表面破损,需要更换', |
|||
occurTime: '2025-01-21 13:20:18', |
|||
status: '处理中' |
|||
}, |
|||
{ |
|||
exceptionType: '超时报警', |
|||
palletCode: 'G00014', |
|||
location: 'YC02', |
|||
materialName: '70004562', |
|||
quantity: '1000', |
|||
description: '入库等待时间超过2小时', |
|||
occurTime: '2025-01-21 13:30:05', |
|||
status: '已处理' |
|||
}, |
|||
{ |
|||
exceptionType: '托盘损坏', |
|||
palletCode: 'P00013', |
|||
location: 'CP03', |
|||
materialName: '', |
|||
quantity: '', |
|||
description: '托盘表面破损,需要更换', |
|||
occurTime: '2025-01-21 13:20:18', |
|||
status: '处理中' |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
|
|||
mounted() { |
|||
this.updateTime() |
|||
this.timeInterval = setInterval(() => { |
|||
this.updateTime() |
|||
}, 1000) |
|||
|
|||
// 首次加载数据 |
|||
this.getDataList() |
|||
|
|||
// 每10秒刷新一次数据 |
|||
this.dataInterval = setInterval(() => { |
|||
this.getDataList() |
|||
}, 10000) |
|||
}, |
|||
|
|||
beforeDestroy() { |
|||
if (this.timeInterval) { |
|||
clearInterval(this.timeInterval) |
|||
} |
|||
if (this.dataInterval) { |
|||
clearInterval(this.dataInterval) |
|||
} |
|||
}, |
|||
|
|||
methods: { |
|||
/** |
|||
* 获取数据列表 |
|||
*/ |
|||
getDataList() { |
|||
exceptionBoard({}).then(({data}) => { |
|||
if (data && data.code === 200) { |
|||
console.log('获取异常处理区数据成功:', data.data) |
|||
// TODO: 处理返回的数据,覆盖而非追加,避免内存累积 |
|||
// if (data.data) { |
|||
// this.exceptionList = data.data.exceptionList || [] |
|||
// } |
|||
} |
|||
}).catch(error => { |
|||
console.error('获取异常处理区数据失败:', error) |
|||
}) |
|||
}, |
|||
|
|||
/** |
|||
* 更新当前时间 |
|||
*/ |
|||
updateTime() { |
|||
const now = new Date() |
|||
const year = now.getFullYear() |
|||
const month = String(now.getMonth() + 1).padStart(2, '0') |
|||
const day = String(now.getDate()).padStart(2, '0') |
|||
const hours = String(now.getHours()).padStart(2, '0') |
|||
const minutes = String(now.getMinutes()).padStart(2, '0') |
|||
const seconds = String(now.getSeconds()).padStart(2, '0') |
|||
const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'] |
|||
const weekDay = weekDays[now.getDay()] |
|||
|
|||
this.currentTime = `${year}-${month}-${day} ${weekDay} ${hours}:${minutes}:${seconds}` |
|||
}, |
|||
|
|||
/** |
|||
* 根据异常类型获取样式类名 |
|||
*/ |
|||
getExceptionTypeClass(type) { |
|||
const typeMap = { |
|||
'RFID复合NG': 'type-error', |
|||
'外形检测NG': 'type-error', |
|||
'偏载报警': 'type-warning', |
|||
'AGV异常': 'type-warning', |
|||
'库存差异': 'type-info', |
|||
'质量异常': 'type-error', |
|||
'超时报警': 'type-warning', |
|||
'托盘损坏': 'type-danger' |
|||
} |
|||
return typeMap[type] || 'type-info' |
|||
}, |
|||
|
|||
/** |
|||
* 根据状态获取样式类名 |
|||
*/ |
|||
getStatusClass(status) { |
|||
const statusMap = { |
|||
'待处理': 'status-danger', |
|||
'处理中': 'status-warning', |
|||
'已处理': 'status-success' |
|||
} |
|||
return statusMap[status] || 'status-pending' |
|||
}, |
|||
|
|||
/** |
|||
* 根据异常类型获取行样式 |
|||
*/ |
|||
getRowClass(type) { |
|||
if (type.includes('NG') || type === '质量异常') { |
|||
return 'row-critical' |
|||
} else if (type.includes('报警')) { |
|||
return 'row-warning' |
|||
} |
|||
return '' |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped lang="scss"> |
|||
/* ===== 整体容器 ===== */ |
|||
.picking-board-screen { |
|||
width: 100vw; |
|||
height: 100vh; |
|||
background: linear-gradient(135deg, #5f8cc3 0%, #749cc8 100%); |
|||
position: relative; |
|||
overflow: hidden; |
|||
font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif; |
|||
} |
|||
|
|||
/* ===== 装饰背景 ===== */ |
|||
.bg-decoration { |
|||
display: none; |
|||
} |
|||
|
|||
/* ===== 顶部标题区 ===== */ |
|||
.screen-header { |
|||
position: relative; |
|||
height: 60px; |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
padding: 0 40px; |
|||
z-index: 10; |
|||
border-bottom: 2px solid rgba(23, 179, 163, 0.4); |
|||
background: linear-gradient(180deg, rgba(23, 179, 163, 0.08) 0%, transparent 100%); |
|||
} |
|||
|
|||
.header-decoration { |
|||
display: none; |
|||
} |
|||
|
|||
.header-center { |
|||
position: relative; |
|||
text-align: center; |
|||
} |
|||
|
|||
.title-glow { |
|||
display: none; |
|||
} |
|||
|
|||
.screen-title { |
|||
position: relative; |
|||
font-size: 28px; |
|||
font-weight: bold; |
|||
color: #ffffff; |
|||
margin: 0; |
|||
letter-spacing: 3px; |
|||
text-shadow: 0 0 20px rgba(23, 179, 163, 0.5); |
|||
} |
|||
|
|||
.title-subtitle { |
|||
font-size: 10px; |
|||
color: rgba(255, 255, 255, 0.8); |
|||
letter-spacing: 2px; |
|||
margin-top: 3px; |
|||
font-family: Arial, sans-serif; |
|||
text-transform: uppercase; |
|||
} |
|||
|
|||
.header-time { |
|||
position: absolute; |
|||
right: 40px; |
|||
top: 50%; |
|||
transform: translateY(-50%); |
|||
display: flex; |
|||
align-items: center; |
|||
gap: 12px; |
|||
background: rgba(23, 179, 163, 0.15); |
|||
padding: 12px 20px; |
|||
border-radius: 8px; |
|||
border: 1px solid rgba(23, 179, 163, 0.4); |
|||
backdrop-filter: blur(10px); |
|||
} |
|||
|
|||
.time-icon { |
|||
font-size: 14px; |
|||
color: #17B3A3; |
|||
} |
|||
|
|||
.time-text { |
|||
font-size: 16px; |
|||
color: #ffffff; |
|||
font-family: 'Consolas', 'Courier New', monospace; |
|||
font-weight: 500; |
|||
letter-spacing: 1px; |
|||
} |
|||
|
|||
/* ===== 主内容区(单面板) ===== */ |
|||
.screen-content-single { |
|||
position: relative; |
|||
z-index: 1; |
|||
padding: 20px; |
|||
height: calc(100vh - 60px); |
|||
overflow-y: auto; |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: flex-start; |
|||
|
|||
&::-webkit-scrollbar { |
|||
width: 6px; |
|||
} |
|||
|
|||
&::-webkit-scrollbar-track { |
|||
background: rgba(23, 179, 163, 0.1); |
|||
} |
|||
|
|||
&::-webkit-scrollbar-thumb { |
|||
background: rgba(23, 179, 163, 0.5); |
|||
border-radius: 3px; |
|||
|
|||
&:hover { |
|||
background: rgba(23, 179, 163, 0.7); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/* ===== 单面板样式 ===== */ |
|||
.picking-panel-single { |
|||
width: 100%; |
|||
max-width: 1800px; |
|||
background: rgba(70, 90, 120, 0.9); |
|||
backdrop-filter: blur(10px); |
|||
border: 1px solid rgba(23, 179, 163, 0.5); |
|||
border-radius: 12px; |
|||
box-shadow: |
|||
0 8px 32px rgba(0, 0, 0, 0.4), |
|||
inset 0 1px 0 rgba(255, 255, 255, 0.1); |
|||
overflow: hidden; |
|||
transition: all 0.3s ease; |
|||
display: flex; |
|||
flex-direction: column; |
|||
|
|||
&:hover { |
|||
border-color: rgba(23, 179, 163, 0.5); |
|||
box-shadow: |
|||
0 12px 48px rgba(0, 0, 0, 0.5), |
|||
0 0 30px rgba(23, 179, 163, 0.2); |
|||
transform: translateY(-2px); |
|||
} |
|||
} |
|||
|
|||
/* ===== 面板标题栏 ===== */ |
|||
.panel-title-bar { |
|||
background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(239, 68, 68, 0.15) 100%); |
|||
border-bottom: 1px solid rgba(239, 68, 68, 0.4); |
|||
padding: 15px 20px; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
align-items: center; |
|||
} |
|||
|
|||
.title-left { |
|||
display: flex; |
|||
align-items: center; |
|||
gap: 15px; |
|||
flex: 1; |
|||
} |
|||
|
|||
.title-icon { |
|||
font-size: 20px; |
|||
color: #fca5a5; |
|||
} |
|||
|
|||
.title-text { |
|||
display: flex; |
|||
align-items: center; |
|||
gap: 20px; |
|||
flex-wrap: wrap; |
|||
} |
|||
|
|||
.title-main { |
|||
font-size: 22px; |
|||
font-weight: bold; |
|||
color: #ffffff; |
|||
text-shadow: 0 0 10px rgba(252, 165, 165, 0.5); |
|||
} |
|||
|
|||
.title-count { |
|||
font-size: 16px; |
|||
color: rgba(255, 255, 255, 0.9); |
|||
|
|||
strong { |
|||
color: #fca5a5; |
|||
font-size: 20px; |
|||
margin: 0 4px; |
|||
} |
|||
} |
|||
|
|||
/* ===== 数据表格 ===== */ |
|||
.panel-table { |
|||
padding: 10px; |
|||
flex: 1; |
|||
overflow-y: auto; |
|||
&::-webkit-scrollbar { |
|||
width: 6px; |
|||
} |
|||
|
|||
&::-webkit-scrollbar-track { |
|||
background: rgba(23, 179, 163, 0.05); |
|||
} |
|||
|
|||
&::-webkit-scrollbar-thumb { |
|||
background: rgba(23, 179, 163, 0.3); |
|||
border-radius: 3px; |
|||
|
|||
&:hover { |
|||
background: rgba(23, 179, 163, 0.5); |
|||
} |
|||
} |
|||
} |
|||
|
|||
.data-table { |
|||
width: 100%; |
|||
border-collapse: separate; |
|||
border-spacing: 0; |
|||
height: 700px; |
|||
|
|||
thead { |
|||
tr { |
|||
background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.15) 100%); |
|||
} |
|||
|
|||
th { |
|||
padding: 12px 8px; |
|||
color: #fcfdfd; |
|||
font-size: 14px; |
|||
font-weight: bold; |
|||
text-align: center; |
|||
border-bottom: 2px solid rgba(239, 68, 68, 0.4); |
|||
text-shadow: 0 0 10px rgba(252, 165, 165, 0.5); |
|||
white-space: nowrap; |
|||
|
|||
&:first-child { |
|||
border-top-left-radius: 8px; |
|||
} |
|||
|
|||
&:last-child { |
|||
border-top-right-radius: 8px; |
|||
} |
|||
} |
|||
} |
|||
|
|||
tbody { |
|||
tr { |
|||
background: rgba(60, 80, 105, 0.6); |
|||
transition: all 0.3s ease; |
|||
|
|||
&:nth-child(even) { |
|||
background: rgba(70, 90, 115, 0.7); |
|||
} |
|||
|
|||
&.row-critical { |
|||
background: rgba(239, 68, 68, 0.15); |
|||
|
|||
&:hover { |
|||
background: rgba(239, 68, 68, 0.25); |
|||
} |
|||
} |
|||
|
|||
&.row-warning { |
|||
background: rgba(245, 158, 11, 0.12); |
|||
|
|||
&:hover { |
|||
background: rgba(245, 158, 11, 0.22); |
|||
} |
|||
} |
|||
|
|||
&:hover { |
|||
background: rgba(23, 179, 163, 0.15); |
|||
box-shadow: 0 4px 12px rgba(23, 179, 163, 0.2); |
|||
} |
|||
|
|||
&:last-child { |
|||
td:first-child { |
|||
border-bottom-left-radius: 8px; |
|||
} |
|||
|
|||
td:last-child { |
|||
border-bottom-right-radius: 8px; |
|||
} |
|||
} |
|||
} |
|||
|
|||
td { |
|||
padding: 12px 8px; |
|||
color: rgba(255, 255, 255, 0.9); |
|||
font-size: 13px; |
|||
border-bottom: 1px solid rgba(23, 179, 163, 0.15); |
|||
|
|||
&.text-center { |
|||
text-align: center; |
|||
} |
|||
|
|||
&.text-left { |
|||
text-align: left; |
|||
} |
|||
|
|||
&.text-right { |
|||
text-align: right; |
|||
} |
|||
|
|||
&.exception-desc { |
|||
font-size: 12px; |
|||
line-height: 1.4; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
/* ===== 异常类型徽章 ===== */ |
|||
.exception-type-badge { |
|||
display: inline-block; |
|||
padding: 4px 12px; |
|||
border-radius: 10px; |
|||
font-size: 12px; |
|||
font-weight: bold; |
|||
text-align: center; |
|||
min-width: 90px; |
|||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); |
|||
|
|||
&.type-error { |
|||
background: linear-gradient(135deg, #dc2626, #ef4444); |
|||
color: #ffffff; |
|||
box-shadow: 0 0 15px rgba(220, 38, 38, 0.5); |
|||
} |
|||
|
|||
&.type-warning { |
|||
background: linear-gradient(135deg, #f59e0b, #fbbf24); |
|||
color: #ffffff; |
|||
box-shadow: 0 0 15px rgba(245, 158, 11, 0.5); |
|||
} |
|||
|
|||
&.type-danger { |
|||
background: linear-gradient(135deg, #be123c, #e11d48); |
|||
color: #ffffff; |
|||
box-shadow: 0 0 15px rgba(190, 18, 60, 0.5); |
|||
} |
|||
|
|||
&.type-info { |
|||
background: linear-gradient(135deg, #3b82f6, #60a5fa); |
|||
color: #ffffff; |
|||
box-shadow: 0 0 15px rgba(59, 130, 246, 0.5); |
|||
} |
|||
} |
|||
|
|||
/* ===== 状态徽章 ===== */ |
|||
.status-badge { |
|||
display: inline-block; |
|||
padding: 4px 12px; |
|||
border-radius: 10px; |
|||
font-size: 12px; |
|||
font-weight: bold; |
|||
text-align: center; |
|||
min-width: 70px; |
|||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); |
|||
|
|||
&.status-success { |
|||
background: linear-gradient(135deg, #10b981, #34d399); |
|||
color: #ffffff; |
|||
box-shadow: 0 0 15px rgba(16, 185, 129, 0.5); |
|||
} |
|||
|
|||
&.status-warning { |
|||
background: linear-gradient(135deg, #f59e0b, #fbbf24); |
|||
color: #ffffff; |
|||
box-shadow: 0 0 15px rgba(245, 158, 11, 0.5); |
|||
} |
|||
|
|||
&.status-danger { |
|||
background: linear-gradient(135deg, #ef4444, #f87171); |
|||
color: #ffffff; |
|||
box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); |
|||
animation: pulse 2s ease-in-out infinite; |
|||
} |
|||
|
|||
&.status-pending { |
|||
background: linear-gradient(135deg, #6b7280, #9ca3af); |
|||
color: #ffffff; |
|||
box-shadow: 0 0 15px rgba(107, 114, 128, 0.5); |
|||
} |
|||
} |
|||
|
|||
@keyframes pulse { |
|||
0%, 100% { |
|||
box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); |
|||
} |
|||
50% { |
|||
box-shadow: 0 0 25px rgba(239, 68, 68, 0.8); |
|||
} |
|||
} |
|||
|
|||
/* ===== 底部装饰 ===== */ |
|||
.screen-footer { |
|||
display: none; |
|||
} |
|||
|
|||
/* ===== 响应式适配 ===== */ |
|||
@media screen and (max-width: 1600px) { |
|||
.screen-title { |
|||
font-size: 26px; |
|||
letter-spacing: 3px; |
|||
} |
|||
|
|||
.title-main { |
|||
font-size: 20px; |
|||
} |
|||
|
|||
.data-table { |
|||
thead th { |
|||
font-size: 12px; |
|||
padding: 10px 6px; |
|||
} |
|||
|
|||
tbody td { |
|||
font-size: 12px; |
|||
padding: 10px 6px; |
|||
} |
|||
} |
|||
} |
|||
|
|||
@media screen and (min-width: 2560px) { |
|||
.screen-title { |
|||
font-size: 32px; |
|||
} |
|||
|
|||
.panel-title-bar { |
|||
padding: 18px 24px; |
|||
} |
|||
|
|||
.title-main { |
|||
font-size: 24px; |
|||
} |
|||
|
|||
.data-table { |
|||
thead th { |
|||
font-size: 16px; |
|||
padding: 14px 10px; |
|||
} |
|||
|
|||
tbody td { |
|||
font-size: 15px; |
|||
padding: 14px 10px; |
|||
} |
|||
} |
|||
} |
|||
</style> |
|||
|
|||
1370
src/views/modules/dashboard/inventory-board.vue
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue