feat(退火操作): 新增退火操作事件记录功能

添加退火操作事件API及页面,实现退火炉操作记录功能
在计划管理页面增加操作事件记录,包括入炉、完成、添加和解绑操作
This commit is contained in:
2026-04-16 17:12:08 +08:00
parent 28622a2b16
commit edcbf7a5f1
4 changed files with 506 additions and 8 deletions

View File

@@ -264,6 +264,7 @@ import { listAnnealFurnace } from "@/api/wms/annealFurnace";
import { listMaterialCoil } from "@/api/wms/coil";
import { listWarehouse } from '@/api/wms/warehouse'
import WarehouseSelect from "@/components/KLPService/WarehouseSelect";
import { addAnnealOperateEvent } from "@/api/wms/annealOperateEvent";
export default {
name: "AnnealPlan",
@@ -388,6 +389,7 @@ export default {
this.completeLoading = true;
listAnnealPlanCoils(this.currentPlan.planId).then(response => {
this.completeCoils = (response.data || []).map(item => ({
...item,
coilId: item.coilId,
enterCoilNo: item.enterCoilNo,
warehouseId: item.logicWarehouseId || null
@@ -543,6 +545,14 @@ export default {
});
this.loading = true;
await inFurnace({ planId: row.planId });
// 炉火开始加工
const targetFurnaceName = this.furnaceOptions.find(item => item.furnaceId === row.targetFurnaceId)?.furnaceName || '';
addAnnealOperateEvent({
annealFurnaceId: row.targetFurnaceId,
operateType: 'IN',
operateContent: '退火炉' + targetFurnaceName + '开始加工',
})
// anneal-todo: 新增操作事件
this.loading = false;
row.status = 2;
@@ -571,6 +581,12 @@ export default {
locations: locations
}).then(() => {
// anneal-todo: 新增操作事件
const targetFurnaceName = this.furnaceOptions.find(item => item.furnaceId === this.currentPlan.targetFurnaceId)?.furnaceName || '';
addAnnealOperateEvent({
annealFurnaceId: this.currentPlan.targetFurnaceId,
operateType: 'COMPLETE',
operateContent: '退火炉' + targetFurnaceName + '完成加工。',
})
this.$message.success('已完成');
this.completeOpen = false;
this.getList();