feat: 新增轧线系统日志、停机和实绩功能模块

- 新增日志、停机和实绩三个功能模块的API接口和页面
- 在计划页面添加完成按钮及相关逻辑
- 更新工艺方案页面,修复ID字段命名问题
- 调整导航栏样式和图标颜色
- 修改代理配置端口为8090
- 更新favicon图标
- 添加package-lock.json文件
This commit is contained in:
2026-05-06 15:13:38 +08:00
parent 55ccb0c5c6
commit e2692c68f2
18 changed files with 1445 additions and 20 deletions

View File

@@ -27,6 +27,7 @@
</el-table-column>
<el-table-column label="工艺方案" prop="recipeNo" min-width="100" />
</el-table>
</div>
<!-- 下方 -->
@@ -171,6 +172,8 @@
<div class="op-buttons">
<el-button size="mini" type="primary" icon="el-icon-plus" @click="handleAdd">钢卷增加</el-button>
<el-button size="mini" icon="el-icon-edit" :disabled="!selectedPlan" @click="handleEdit">修改</el-button>
<!-- <el-button size="mini" icon="el-icon-edit" :disabled="!selectedPlan" @click="handleFinish"></el-button> -->
<el-button size="mini" icon="el-icon-document" :disabled="!selectedPlan" @click="handleFinish">完成</el-button>
<el-button size="mini" type="danger" icon="el-icon-delete" :disabled="!selectedPlan" @click="handleDelete">删除</el-button>
<el-button size="mini" icon="el-icon-top" :disabled="!selectedPlan" @click="handleMoveUp">Up 上移</el-button>
<el-button size="mini" icon="el-icon-bottom" :disabled="!selectedPlan" @click="handleMoveDown">Down 下移</el-button>
@@ -318,7 +321,7 @@
</template>
<script>
import { listPlan, addPlan, updatePlan, delPlan, moveUpPlan, moveDownPlan } from '@/api/mill/plan'
import { listPlan, addPlan, updatePlan, delPlan, moveUpPlan, moveDownPlan, finishPlan } from '@/api/mill/plan'
import { listAllRecipe, getRecipeDetail, addRecipe } from '@/api/mill/recipe'
const emptyForm = () => ({
@@ -390,9 +393,21 @@ export default {
refreshRecipeOptions() {
listAllRecipe({}).then(res => { this.recipeOptions = res.data || [] })
},
handleFinish() {
const planId = this.selectedPlan.planId
if (!planId) return this.$message.warning('请先选择钢卷')
finishPlan(planId).then(res => {
if (res.code === 200) {
this.$message.success('完成成功')
this.loadList()
} else {
this.$message.error(res.msg || '完成失败')
}
})
},
loadList() {
const params = { inMatNo: this.query.inMatNo }
if (this.query.hideFinished) params.planStatus = '0'
if (this.query.hideFinished) params.Idle = 'Idle'
if (this.query.dateRange && this.query.dateRange.length === 2) {
params.beginTime = this.query.dateRange[0]
params.endTime = this.query.dateRange[1]