<!--
 * @Author: ysh
 * @Date: 2024-04-08 16:08:33
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2025-05-13 16:54:30
-->
<template>
  <div>
    <add-budget :taskName="taskName" :taskForm="taskForm" @goBack="goBack"
      v-if="taskName == '预算编制' || taskName == '部门审核'"></add-budget>
    <new-budget-info :taskName="taskName" :taskForm="taskForm" @goBack="goBack" v-else></new-budget-info>
    <!-- <budget-info :taskName="taskName" :taskForm="taskForm" @goBack="goBack"
      v-if="taskName == '分管审核' || taskName == '总经理审核' || taskName == '预算批准'"></budget-info> -->
  </div>
</template>

<script>
import AddBudget from '@/views/flowable/form/budget/addBudget.vue';
import BudgetInfo from './budgetInfo.vue';
import NewBudgetInfo from './adjust/newBudgetInfo.vue';
export default {
  props: {
    taskName: {
      type: String,
      require: true
    },
    taskForm: {
      type: Object,
      require: true
    }
  },
  components: {
    AddBudget,
    BudgetInfo,
    NewBudgetInfo
  },
  methods: {
    goBack() {
      this.$emit('goBack')
    }
  }
}
</script>

<style lang="scss" scoped></style>