<template>
  <div class="capital-coopertion-info">
    <cy-info-title style="margin-bottom: 20px; margin-top: 10px;">资方合作信息</cy-info-title>
    <cy-comm-table
      ref="commTable"
      :columns="columns"
      :data="smbContractInfos"
      :count="0"
    />
  </div>
</template>

<script>
export default {
  props: {
    smbContractInfos: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {
      tableData: [],
      columns: [
        {
          label: '序号',
          index: true
        },
        {
          label: '合同类型',
          prop: 'contractTypeName',
          showTooltip: true
        },
        {
          label: '合同编号',
          prop: 'contractNumber',
          showTooltip: true
        },
        {
          label: '名称',
          prop: 'name',
          showTooltip: true
        },
        {
          label: '证件号',
          prop: 'socialCode',
          showTooltip: true
        },
        {
          label: '金额',
          prop: 'amount',
          showTooltip: true,
          type: 'num'
        },
        {
          label: '文件',
          prop: 'contractType',
          showTooltip: true,
          render: (h, row, index) => {
            return <cy-upload
              uploadParams={{}}
              fileData={row.fileStorage ? [row.fileStorage] : []}
              disabled={true}
              limit={1}
              defaultDesc='请上传文件'
            />
          }
        }
      ]

    }
  }
}
</script>

<style lang="scss" scoped>

</style>
