<template>
  <div>
    <sc-table :taskForm="taskForm" :taskName="taskName" v-if="taskForm.procDefName == '生产部门考核'"
      @goBack="goBack"></sc-table>
    <jy-table :taskForm="taskForm" :taskName="taskName" v-else-if="taskForm.procDefName == '经营发展部考核'"
      @goBack="goBack"></jy-table>
    <js-table :taskForm="taskForm" :taskName="taskName" v-else-if="taskForm.procDefName == '技术质量部考核'"
      @goBack="goBack"></js-table>
    <xm-table :taskForm="taskForm" :taskName="taskName" v-else-if="taskForm.procDefName == '项目管理部考核'"
      @goBack="goBack"></xm-table>
    <cw-table :taskForm="taskForm" :taskName="taskName" v-else-if="taskForm.procDefName == '财务部考核'"
      @goBack="goBack"></cw-table>
    <zh-table :taskForm="taskForm" :taskName="taskName" v-else-if="taskForm.procDefName == '综合事务部考核'"
      @goBack="goBack"></zh-table>
    <car-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '用车审批'"
      @goBack="goBack"></car-form>
    <device-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '设备审批'"
      @goBack="goBack"></device-form>
    <project-process :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '项目流转'"
      @goBack="goBack"></project-process>
    <budget-index :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '项目预算'"
      @goBack="goBack"></budget-index>
    <borrow-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '借款审批'"
      @goBack="goBack"></borrow-form>
    <safe-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '安全交底'"
      @goBack="goBack"></safe-form>
    <technical-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '技术交底'"
      @goBack="goBack"></technical-form>
    <technical-plan :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '技术方案'"
      @goBack="goBack"></technical-plan>
    <contract-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '承接合同评审'"
      @goBack="goBack"></contract-form>
    <sub-contract :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '分包合同评审'"
      @goBack="goBack"></sub-contract>
    <brand-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '品牌项目支付'"
      @goBack="goBack"></brand-form>
    <deposit-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '保证金审批'"
      @goBack="goBack"></deposit-form>
    <archive-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '成果归档'"
      @goBack="goBack"></archive-form>
    <settle-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '项目结算'"
      @goBack="goBack"></settle-form>
    <change-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '项目变更'"
      @goBack="goBack"></change-form>
  </div>
</template>

<script>
import ScTable from "@/views/flowable/form/access/scTable.vue";
import JyTable from "@/views/flowable/form/access/jyTable.vue";
import ZhTable from "@/views/flowable/form/access/zhTable.vue";
import JsTable from "@/views/flowable/form/access/jsTable.vue";
import XmTable from "@/views/flowable/form/access/xmTable.vue";
import CwTable from "@/views/flowable/form/access/cwTable.vue";
import carForm from "@/views/flowable/form/oa/carForm.vue";
import deviceForm from "@/views/flowable/form/oa/deviceForm";
import projectProcess from "@/views/flowable/form/projectProcess/index.vue"
import AddBudget from '@/views/flowable/form/budget/addBudget.vue';
import safeForm from '@/views/flowable/form/safeForm.vue';
import technicalForm from '@/views/flowable/form/technicalForm.vue';
import technicalPlan from '@/views/flowable/form/technicalPlan.vue';
import budgetIndex from '@/views/flowable/form/budget/budget.vue';
import businessReview from '@/views/flowable/form/projectProcess/businessReview.vue';
import contractForm from '@/views/flowable/form/business/contractForm.vue';
import subContract from '@/views/flowable/form/business/subContract.vue';
import brandForm from '@/views/flowable/form/business/brandForm.vue';
import depositForm from '@/views/flowable/form/finance/depositForm.vue';
import borrowForm from '@/views/flowable/form/finance/borrowForm.vue';
import archiveForm from '@/views/flowable/form/archiveForm.vue';
import settleForm from '@/views/flowable/form/settleForm.vue';
import changeForm from '@/views/flowable/form/changeForm.vue';
export default {
  components: {
    ScTable,
    ZhTable,
    JsTable,
    XmTable,
    CwTable,
    JyTable,
    carForm,
    deviceForm,
    projectProcess,
    AddBudget,
    borrowForm,
    safeForm,
    technicalForm,
    technicalPlan,
    budgetIndex,
    businessReview,
    contractForm,
    subContract,
    brandForm,
    depositForm,
    archiveForm,
    settleForm,
    changeForm
  },
  props: {
    taskForm: {
      type: Object
    },
    taskName: {
      type: String
    }
  },
  methods:{
    goBack(){
      this.$emit('goBack')
    }
  }
}
</script>

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