From 95b81fce391e5ebffcfabf753db64b1d2829a5b3 Mon Sep 17 00:00:00 2001 From: hwj Date: Fri, 10 Apr 2026 10:34:55 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E4=BB=BB=E5=8A=A1=E5=8D=95?= =?UTF-8?q?=E6=8E=92=E4=BA=A7-=E6=96=B0=E5=A2=9E=E8=AE=A1=E5=88=92-taskDet?= =?UTF-8?q?ailId=E4=BC=A0=E5=8F=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/plan/PlanForm.vue | 2 +- src/views/mes/tasksummary/components/TaskDetailList.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/mes/plan/PlanForm.vue b/src/views/mes/plan/PlanForm.vue index a36a7c30..4566e8b5 100644 --- a/src/views/mes/plan/PlanForm.vue +++ b/src/views/mes/plan/PlanForm.vue @@ -243,7 +243,7 @@ const open = async (type: string, id?: number, formData.value.taskId = taskId taskDetailList.value =await TaskApi.getTaskDetailListByTaskId(formData.value.taskId) if(taskDetailId){ - const taskDetails = taskDetailList.value.filter(item => item.id === Number(taskDetailId.split(',')[0])) + const taskDetails = taskDetailList.value.filter(item => item.id === taskDetailId) if(taskDetails && taskDetails.length > 0 && taskDetails[0].id) { formData.value.taskDetailId = taskDetails[0].id } diff --git a/src/views/mes/tasksummary/components/TaskDetailList.vue b/src/views/mes/tasksummary/components/TaskDetailList.vue index f20a36ee..8d5f5d69 100644 --- a/src/views/mes/tasksummary/components/TaskDetailList.vue +++ b/src/views/mes/tasksummary/components/TaskDetailList.vue @@ -38,7 +38,7 @@ link type="success" @click="addPlanForm(scope.row.taskId, scope.row.productId, - scope.row.number - scope.row.planNumber,scope.row.taskDetailIds)" + scope.row.number - scope.row.planNumber,scope.row.id)" v-hasPermi="['mes:task:plan']" > {{ t('ProductionPlan.TaskSummary.detailActionCreatePlanLabel') }}