OEE添加镀锌接口

This commit is contained in:
2026-03-20 13:36:42 +08:00
parent 7e1e4b7b62
commit 017961e3b2
6 changed files with 433 additions and 22 deletions

View File

@@ -12,6 +12,10 @@
</div>
</div>
<div class="oee-query-bar">
<el-select v-model="lineType" size="small" style="width: 120px">
<el-option label="酸轧线" value="acid" />
<el-option label="镀锌一线" value="galvanize1" />
</el-select>
<el-date-picker
v-model="queryRange"
type="daterange"
@@ -48,6 +52,15 @@
</div>
</el-card>
<el-alert
v-if="lineType === 'galvanize1'"
title="镀锌二级数据未完全使用,故而停机时间可能有错误"
type="warning"
:closable="false"
class="oee-top-warning"
show-icon
/>
<el-row :gutter="16" class="oee-main-row">
<!-- 左侧报表主体Word 风格 -->
<el-col :span="18">
@@ -383,6 +396,7 @@ export default {
const today = new Date()
const firstDay = new Date(today.getFullYear(), today.getMonth(), 1)
return {
lineType: 'acid',
queryRange: [
this.formatDate(firstDay),
this.formatDate(today)
@@ -542,6 +556,7 @@ export default {
buildQuery() {
const [start, end] = this.queryRange || []
return {
lineType: this.lineType,
startDate: start,
endDate: end
}
@@ -734,6 +749,10 @@ export default {
gap: 8px;
}
.oee-top-warning {
margin-bottom: 8px;
}
.oee-main-row {
margin-top: 8px;
}