<template>
  <summary-detail :formData="summaryData.formData" :data="summaryData" :processViewer="summaryProcessViewer"/>

</template>

<script setup lang="jsx">
import {getInfo} from "@/api/project-demand";

const summaryData = ref({})
const summaryProcessViewer = ref(false)
const getDemandSummaryInfo = async () => {
  if (!route.query.id) return
  // await getCompanyOption()
  getInfo(74).then(res => {
    let data = res.data
    summaryData.value = data;
    processStore.setDesign(data)
    processStore.runningList.value = data.runningList;
    processStore.endList.value = data.endList;
    processStore.noTakeList.value = data.noTakeList;
    processStore.refuseList.value = data.refuseList;
    processStore.passList.value = data.passList;
    nextTick(() => {
      summaryProcessViewer.value = true
    })
  })
}
getDemandSummaryInfo()
</script>

<style scoped>

</style>
