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') }}