diff --git a/src/views/mes/tasksummary/components/TaskDetailList.vue b/src/views/mes/tasksummary/components/TaskDetailList.vue index c242e469..90ac967a 100644 --- a/src/views/mes/tasksummary/components/TaskDetailList.vue +++ b/src/views/mes/tasksummary/components/TaskDetailList.vue @@ -49,7 +49,7 @@ - + @@ -64,6 +64,7 @@ const { push } = useRouter() const props = defineProps<{ taskId?: number // task ID(主表的关联字段) }>() +const emit = defineEmits(['success']) const loading = ref(false) // 列表的加载中 const list = ref([]) // 列表的数据 const queryParams = reactive({ @@ -111,6 +112,10 @@ const addPlanForm = (taskId: number, productId: number, number?: number, taskDet } formRef.value.open('create', undefined, taskId, productId, number,taskDetailIds) } +const handlePlanSuccess = () => { + getList() + emit('success') +} const route = useRoute() /** 跳转生产计划页面**/ const openPlan = (taskId: number, productId: number) => { diff --git a/src/views/mes/tasksummary/index.vue b/src/views/mes/tasksummary/index.vue index 9d93f274..0c1440a0 100644 --- a/src/views/mes/tasksummary/index.vue +++ b/src/views/mes/tasksummary/index.vue @@ -98,7 +98,7 @@ - +