|
|
|
|
@ -49,7 +49,7 @@
|
|
|
|
|
|
|
|
|
|
</ContentWrap>
|
|
|
|
|
<!-- 表单弹窗:添加/修改 -->
|
|
|
|
|
<PlanForm ref="formRef" @success="getList" />
|
|
|
|
|
<PlanForm ref="formRef" @success="handlePlanSuccess" />
|
|
|
|
|
<!-- 物料列表 -->
|
|
|
|
|
<ItemNeedIndex ref="itemFormRef" @success="getList" />
|
|
|
|
|
</template>
|
|
|
|
|
@ -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) => {
|
|
|
|
|
|