style:任务单排产-新增计划-taskDetailId传参调整

pull/1/head
黄伟杰 3 weeks ago
parent 5c3cd4de38
commit 95b81fce39

@ -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
}

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

Loading…
Cancel
Save