feat(wms/flow): 启用并完善全流程节点配置,新增异常处理逻辑

1.  恢复并启用设备维修流程的全流程节点配置
2.  重构各业务标签页的节点跳转逻辑,统一使用handleOpen跳转对应页面
3.  为投诉任务列表接口新增异常捕获处理,请求失败时重置列表数据
This commit is contained in:
王文昊
2026-07-02 14:24:19 +08:00
parent 5d29e92bde
commit 2812c6b3b1
2 changed files with 47 additions and 37 deletions

View File

@@ -66,7 +66,7 @@ const TAB_LIST = [
{ key: 'afterSales', label: '售后处理流程', icon: 'el-icon-s-claim' },
{ key: 'inventoryCheck', label: '盘库流程', icon: 'el-icon-s-check' },
{ key: 'productionSchedule', label: '排产流程', icon: 'el-icon-s-order' },
// { key: 'equipmentRepair', label: '设备维修流程', icon: 'el-icon-s-tools' },
{ key: 'equipmentRepair', label: '设备维修流程', icon: 'el-icon-s-tools' },
]
const NODE_EVENT_CONFIG = {
@@ -75,57 +75,64 @@ const NODE_EVENT_CONFIG = {
{ id: 'B', label: '原料卷到货', handler: 'handleOpen', params: { componentPath: 'wms/receive/plan/index' } },
{ id: 'C', label: '入库验收', handler: 'handleOpen', params: { componentPath: 'wms/coil/do/warehousing' } },
{ id: 'D', label: '登记原料库存', handler: 'handleOpen', params: { componentPath: 'wms/coil/do/warehousing' } },
// { id: 'E', label: '成品钢卷加工', handler: 'handleClick', params: { action: 'openProduction' } },
{ id: 'E', label: '成品钢卷加工', handler: 'handleOpen', params: { componentPath: 'wms/coil/typing' } },
{ id: 'F', label: '加工前质检', handler: 'handleOpen', params: { componentPath: 'mes/qc/qualityReview/index' } },
{ id: 'G', label: '加工中质检', handler: 'handleOpen', params: { componentPath: 'mes/qc/qualityReview/index' } },
{ id: 'H', label: '加工完工质检', handler: 'handleOpen', params: { componentPath: 'mes/qc/qualityReview/index' } },
{ id: 'I', label: '登记质量缺陷', handler: 'handleOpen', params: { componentPath: 'wms/coil/abnormal/extend' } },
{ id: 'J', label: '质量等级判定', handler: 'handleOpen', params: { componentPath: 'wms/coil/abnormal/extend' } },
// { id: 'K', label: '单卷档案', handler: 'handleClick', params: { action: 'openArchive' } },
{ id: 'K', label: '单卷档案', handler: 'handleOpen', params: { componentPath: 'wms/coil/info/index' } },
{ id: 'L', label: '编排发货计划', handler: 'handleOpen', params: { componentPath: 'wms/delivery/waybill/index' } },
{ id: 'M', label: '生成发货单', handler: 'handleOpen', params: { componentPath: 'wms/delivery/bills/index' } },
// { id: 'N', label: '发货质量校验', handler: 'handleClick', params: { action: 'openQuality' } },
// { id: 'O', label: '出库发货', handler: 'handleClick', params: { action: 'openShipping' } },
// { id: 'P', label: '禁止出库', handler: 'handleClick', params: { action: 'openShipping' } },
// { id: 'Q', label: '钢卷库存管理', handler: 'handleClick', params: { action: 'openInventory' } },
// { id: 'V', label: '生产过程数据异常检测', handler: 'handleClick', params: { action: 'openAlert' } },
{ id: 'N', label: '发货质量校验', handler: 'handleOpen', params: { componentPath: 'mes/qc/qualityReview/index' } },
{ id: 'O', label: '出库发货', handler: 'handleOpen', params: { componentPath: 'wms/coil/do/ship' } },
{ id: 'P', label: '禁止出库', handler: 'handleOpen', params: { componentPath: 'wms/coil/do/ship' } },
{ id: 'Q', label: '钢卷库存管理', handler: 'handleOpen', params: { componentPath: 'wms/coil/stock/index' } },
{ id: 'R', label: '逻辑库', handler: 'handleOpen', params: { componentPath: 'wms/stock/index' } },
{ id: 'S', label: '物理库', handler: 'handleOpen', params: { componentPath: 'wms/stock/index' } },
{ id: 'T', label: '跨库/跨区调拨', handler: 'handleOpen', params: { componentPath: 'wms/coil/allocation' } },
{ id: 'U', label: '实时更新库存数据', handler: 'handleOpen', params: { componentPath: 'wms/coil/stock/index' } },
{ id: 'V', label: '生产过程数据异常检测', handler: 'handleOpen', params: { componentPath: 'wms/coil/abnormal' } },
{ id: 'W', label: '自动触发告警', handler: 'handleOpen', params: { componentPath: 'wms/coil/materialWarning/index' } },
// { id: 'X', label: '生产数据报表统计', handler: 'handleClick', params: { action: 'openReport' } },
{ id: 'X', label: '生产数据报表统计', handler: 'handleOpen', params: { componentPath: 'wms/report/line' } },
],
afterSales: [
{ id: 'A', label: '创建售后单', handler: 'handleOpen', params: { componentPath: 'wms/post/objection/index' } },
// { id: 'C', label: '生产部出具处理意见', handler: 'handleOpen', params: { action: 'openAfterSalesDept', dept: 'production' } },
// { id: 'D', label: '质量部出具处理意见', handler: 'handleOpen', params: { action: 'openAfterSalesDept', dept: 'quality' } },
// { id: 'E', label: '销售部出具处理意见', handler: 'handleOpen', params: { action: 'openAfterSalesDept', dept: 'sales' } },
{ id: 'C', label: '生产部出具处理意见', handler: 'handleOpen', params: { componentPath: 'wms/post/objection/opinion' } },
{ id: 'D', label: '质量部出具处理意见', handler: 'handleOpen', params: { componentPath: 'wms/post/objection/opinion' } },
{ id: 'E', label: '销售部出具处理意见', handler: 'handleOpen', params: { componentPath: 'wms/post/objection/opinion' } },
{ id: 'G', label: '售后负责人汇总', handler: 'handleOpen', params: { componentPath: 'wms/post/objection/summary' } },
],
inventoryCheck: [
{ id: 'A', label: '创建盘库计划', handler: 'handleClick', params: { action: 'openInventoryPlan' } },
{ id: 'B', label: '创建计划明细', handler: 'handleClick', params: { action: 'openInventoryPlanDetail' } },
{ id: 'C', label: '选择库区', handler: 'handleClick', params: { action: 'openInventoryPlanDetail' } },
{ id: 'D', label: '提交审批', handler: 'handleClick', params: { action: 'submitApproval' } },
{ id: 'G', label: '生成系统库存快照', handler: 'handleClick', params: { action: 'openInventorySnapshot' } },
{ id: 'H', label: '上传实盘库存Excel', handler: 'handleClick', params: { action: 'openInventoryUpload' } },
{ id: 'I', label: '执行对比', handler: 'handleClick', params: { action: 'openInventoryCompare' } },
{ id: 'J', label: '查看差异明细', handler: 'handleClick', params: { action: 'openInventoryDiff' } },
{ id: 'K', label: '再次提交审批', handler: 'handleClick', params: { action: 'submitApproval' } },
{ id: 'N', label: '执行处理差异', handler: 'handleClick', params: { action: 'openInventoryExecute' } },
{ id: 'A', label: '创建盘库计划', handler: 'handleOpen', params: { componentPath: 'wms/post/InvCount/index' } },
{ id: 'B', label: '创建计划明细', handler: 'handleOpen', params: { componentPath: 'wms/post/InvCount/index' } },
{ id: 'C', label: '选择库区', handler: 'handleOpen', params: { componentPath: 'wms/post/InvCount/index' } },
{ id: 'D', label: '提交审批', handler: 'handleOpen', params: { componentPath: 'wms/post/InvCount/index' } },
{ id: 'G', label: '生成系统库存快照', handler: 'handleOpen', params: { componentPath: 'wms/post/InvCount/index' } },
{ id: 'H', label: '上传实盘库存Excel', handler: 'handleOpen', params: { componentPath: 'wms/post/InvCount/index' } },
{ id: 'I', label: '执行对比', handler: 'handleOpen', params: { componentPath: 'wms/post/InvCount/execute' } },
{ id: 'J', label: '查看差异明细', handler: 'handleOpen', params: { componentPath: 'wms/post/InvCount/index' } },
{ id: 'K', label: '再次提交审批', handler: 'handleOpen', params: { componentPath: 'wms/post/InvCount/index' } },
{ id: 'N', label: '执行处理差异', handler: 'handleOpen', params: { componentPath: 'wms/post/InvCount/execute' } },
],
productionSchedule: [
{ id: 'A', label: '创建需求单', handler: 'handleClick', params: { action: 'openScheduleCreate' } },
{ id: 'B', label: '选择合同', handler: 'handleClick', params: { action: 'openScheduleContract' } },
{ id: 'C', label: '自动获取需求明细', handler: 'handleClick', params: { action: 'openScheduleDetail' } },
{ id: 'D', label: '调整需求明细', handler: 'handleClick', params: { action: 'openScheduleDetail' } },
{ id: 'E', label: '提交审批', handler: 'handleClick', params: { action: 'submitApproval' } },
{ id: 'H', label: '转化为排产单', handler: 'handleClick', params: { action: 'openScheduleConvert' } },
{ id: 'I', label: '排产单', handler: 'handleClick', params: { action: 'openScheduleEdit' } },
{ id: 'J', label: '再次提交审批', handler: 'handleClick', params: { action: 'submitApproval' } },
{ id: 'M', label: '提交给车间', handler: 'handleClick', params: { action: 'submitApproval' } },
{ id: 'N', label: '车间绑定钢卷', handler: 'handleClick', params: { action: 'openScheduleBind' } },
{ id: 'O', label: '执行生产', handler: 'handleClick', params: { action: 'openScheduleExecute' } },
{ id: 'A', label: '创建需求单', handler: 'handleOpen', params: { componentPath: 'wms/post/aps/requirement' } },
{ id: 'B', label: '选择合同', handler: 'handleOpen', params: { componentPath: 'wms/post/aps/order' } },
{ id: 'C', label: '自动获取需求明细', handler: 'handleOpen', params: { componentPath: 'wms/post/aps/requirement' } },
{ id: 'D', label: '调整需求明细', handler: 'handleOpen', params: { componentPath: 'wms/post/aps/requirement' } },
{ id: 'E', label: '提交审批', handler: 'handleOpen', params: { componentPath: 'wms/post/aps/schedule' } },
{ id: 'H', label: '转化为排产单', handler: 'handleOpen', params: { componentPath: 'wms/post/aps/schedule' } },
{ id: 'I', label: '排产单', handler: 'handleOpen', params: { componentPath: 'wms/post/aps/schedule' } },
{ id: 'J', label: '再次提交审批', handler: 'handleOpen', params: { componentPath: 'wms/post/aps/schedule' } },
{ id: 'M', label: '提交给车间', handler: 'handleOpen', params: { componentPath: 'wms/post/aps/schedule' } },
{ id: 'N', label: '车间绑定钢卷', handler: 'handleOpen', params: { componentPath: 'wms/post/aps/compare' } },
{ id: 'O', label: '执行生产', handler: 'handleOpen', params: { componentPath: 'wms/post/aps/schedule' } },
],
equipmentRepair: [
{ id: 'A', label: '创建维修计划', handler: 'handleClick', params: { action: 'openRepairCreate' } },
{ id: 'A1', label: '点选异常巡检记录', handler: 'handleClick', params: { action: 'openRepairSelect' } },
{ id: 'B', label: '提交审批', handler: 'handleClick', params: { action: 'submitApproval' } },
{ id: 'E', label: '逐设备维修记录', handler: 'handleClick', params: { action: 'openRepairExecute' } },
{ id: 'A', label: '创建维修计划', handler: 'handleOpen', params: { componentPath: 'wms/post/eqp/index' } },
{ id: 'A1', label: '点选异常巡检记录', handler: 'handleOpen', params: { componentPath: 'wms/post/eqp/index' } },
{ id: 'B', label: '提交审批', handler: 'handleOpen', params: { componentPath: 'wms/post/eqp/approval' } },
{ id: 'E', label: '逐设备维修记录', handler: 'handleOpen', params: { componentPath: 'wms/post/eqp/execute' } },
],
}

View File

@@ -177,6 +177,9 @@ export default {
listComplaintTask(params).then(response => {
this.total = response.total;
this.taskList = response.rows || [];
}).catch(() => {
this.total = 0;
this.taskList = [];
}).finally(() => { this.loading = false; });
},
handleQuery() {