<template>
  <a-table :columns="columns" :data-source="data" bordered :scroll="{ x: 4750 }" :pagination="ipagination" rowKey="id">
  </a-table>
</template>
<script>
const columns = [
          {
            title:'任务号',
            fixed:"left",
            dataIndex: 'taskno',
          },
          {
            title:'任务名称',
            align:"center",
            fixed:"left",
            dataIndex: 'taskname'
          },
          {
            title:'型号',
            align:"center",
            dataIndex: 'xhname'
          },
          {
            title:'计划完成时间',
            align:"center",
            dataIndex: 'jhwcsj',
          },
          {
            title:'阶段',
            align:"center",
            dataIndex: 'yzjdname'
          },
          {
            title:'项目进度',
            align:"center",
            dataIndex: 'processpercent'
          },
          {
            title:'成本进度',
            align:"center",
            dataIndex: 'costPercent'
          },
          {
            title:'研制数量',
            align:"center",
            dataIndex: 'yzsl'
          },
          {
            title:'单台收入',
            align:"center",
            dataIndex: 'oneIncome'
          },
          {
            title:'单台成本',
            align:"center",
            dataIndex: 'oneCost'
          },
          {
            title:'单台利润',
            align:"center",
            dataIndex: 'oneProfit'
          },
          {
            title:'利润额',
            align:"center",
            dataIndex: 'lre'
          },
          {
            title:'利润率',
            align:"center",
            dataIndex: 'lrl'
          },
          {
            title:'预估价',
            align:"center",
            dataIndex: 'estimationcoat'
          },
          {
            title:'合同额',
            align:"center",
            dataIndex: 'contractfpe',
          },
          {
            title:'已收款',
            align:"center",
            dataIndex: 'taskmoney',
          },
          {
            title:'总成本',
            align:"center",
            dataIndex: 'zcb'
          },
          {
            title:'材料费',
            align:"center",
            dataIndex: 'clf',
          },
          {
            title:'专用费',
            align:"center",
            dataIndex: 'zyf',
          },
          {
            title:'事务费',
            align:"center",
            dataIndex: 'swf',
          },
          {
            title:'外协费',
            align:"center",
            dataIndex: 'wxf',
          },
          {
            title:'燃料动力费',
            align:"center",
            dataIndex: 'rldlf'
          },
          {
            title:'固定资产折旧',
            align:"center",
            dataIndex: 'gdzczj'
          },
          {
            title:'工资及劳务费',
            align:"center",
            dataIndex: 'gzjlwf'
          },
          {
            title:'管理费',
            align:"center",
            dataIndex: 'glf'
          },
          {
            title:'装机成本',
            align:"center",
            dataIndex: 'zjcb',
          },
          {
            title:'内部试验',
            align:"center",
            dataIndex: 'lbsy'
          },
          {
            title:'工时(h)',
            align:"center",
            dataIndex: 'workhour'
          },
          {
            title:'责任部门',
            align:"center",
            dataIndex: 'zrbm'
          },
          {
            title:'下达部门',
            align:"center",
            dataIndex: 'jycs'
          },
          {
            title:'横向纵向',
            align:"center",
            dataIndex: 'hxzxname'
          },
          {
            title:'任务类型',
            align:"center",
            dataIndex: 'tasktype'
          },
          {
            title:'审计审价',
            align:"center",
            dataIndex: 'auditprice'
          },
          {
            title:'任务状态',
            align:"center",
            dataIndex: 'iflag'
          },
          {
            title:'提出单位简称',
            align:"center",
            dataIndex: 'brief'
          },
          {
            title:'父级任务',
            align:"center",
            dataIndex: 'reftaskno'
          },
          {
            title:'批产任务号',
            align:"center",
            dataIndex: 'pccode'
          },
          {
            title:'备产任务号',
            align:"center",
            dataIndex: 'bccode'
          },
          {
            title:'备料任务号',
            align:"center",
            dataIndex: 'blcode'
          },
          {
            title:'业务员',
            align:"center",
            dataIndex: 'businessman'
          },
          {
            title:'设计工时',
            align:"center",
            dataIndex: 'sjgs'
          },
          {
            title:'生产工时',
            align:"center",
            dataIndex: 'scgs'
          },
        ];

const data = [];

export default {
    props: {
      // 对比表格数据
      duibiList: {
        type: Array,
        default: ()=>{},
        required: false
      }
    },
    data() {
        return {
        data,
        columns,
        /* 分页参数 */
        ipagination:{
            current: 1,
            pageSize: 10,
            pageSizeOptions: ['10', '20', '30'],
            showTotal: (total, range) => {
            return range[0] + "-" + range[1] + " 共" + total + "条"
            },
            showQuickJumper: true,
            showSizeChanger: true,
            total: 0
        },
        };
    },
    created(){
        console.log(this.duibiList)
        this.data = this.duibiList
    }
};
</script>