
<template>
  <bns-person-approval-details-tabs :items="formData"/>
</template>
<script>

import BnsPersonApprovalDetailsTabs from '@/components/pro-tabs/bns-person-approval-details-tabs.vue'
import { getSubPersonnelDetails } from '@/api/pro/outsourcingPro'
export default {
  components: {
    BnsPersonApprovalDetailsTabs
  },
  data() {
    return {
      formData:{
        auditType: '出场',
        reason: '',
        name: '',
        sex: '',
        age: '',
        phone: '',
        nativePlace: '',
        nation: '',
        idCard: '',
        homeAddress: '',
        currentAddress: '',
        postName: '',
        specialJobType: '',
        facePhoto:[],
        physicalExaminationFile: [],
        insuranceFile: [],
        otherFile: [],
        specialJobFile: [],
        approvalInfo: [],
        showType: 1,
        isExamine: false,
        btnShow: false, //需要根据按钮判断true   false   查看false 审核true
      }
    }
  },
  created() {
    // this.formData = this.$route.params
    // this.getDetails()
  },
  methods: {
    getDetails(){
      const params = {
        id : row.id,
        subId: this.id,
        consId : this.consId,
        proId :this.proId
      }
      getSubPersonnelDetails(params).then(response => {
        console.log(response)
        this.formData = response.data;
        this.loading = false;
      });
    }
  }
}
</script>

<style scoped lang="scss">

</style>
