From 2812c6b3b148889c45a2c4377821dac5e7a4a9db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E6=98=8A?= <15984991+wwh2328692301@user.noreply.gitee.com> Date: Thu, 2 Jul 2026 14:24:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(wms/flow):=20=E5=90=AF=E7=94=A8=E5=B9=B6?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=85=A8=E6=B5=81=E7=A8=8B=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 恢复并启用设备维修流程的全流程节点配置 2. 重构各业务标签页的节点跳转逻辑,统一使用handleOpen跳转对应页面 3. 为投诉任务列表接口新增异常捕获处理,请求失败时重置列表数据 --- klp-ui/src/views/wms/post/flow.vue | 81 ++++++++++--------- .../src/views/wms/post/objection/opinion.vue | 3 + 2 files changed, 47 insertions(+), 37 deletions(-) diff --git a/klp-ui/src/views/wms/post/flow.vue b/klp-ui/src/views/wms/post/flow.vue index 8b70eace8..52f0dae8e 100644 --- a/klp-ui/src/views/wms/post/flow.vue +++ b/klp-ui/src/views/wms/post/flow.vue @@ -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' } }, ], } diff --git a/klp-ui/src/views/wms/post/objection/opinion.vue b/klp-ui/src/views/wms/post/objection/opinion.vue index 868b06b57..1cc8c6811 100644 --- a/klp-ui/src/views/wms/post/objection/opinion.vue +++ b/klp-ui/src/views/wms/post/objection/opinion.vue @@ -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() {