const initheaders = [
  "卖方公司编码",
  "对账编码",
  "发票类型",
  "发票代码",
  "发票号码",
  "发票税前金额",
  "开票日期",
  "校验码(电子票必填,全电票不需要)"
];

export const mapProp = {
  value0: "supplierNo",
  value1: "payNo",
  value2: "invoiceType",
  value3: "invoiceCode",
  value4: "invoiceNumber",
  value5: "inv_subtotal_amount",
  value6: "open_time",
  value7: "checkNumber"
};

export const requireHeaders = [];

const columns = () => {
  const list: any[] = [
    {
      type: "index",
      width: "50",
      fixed: "left",
      label: "序号"
    }
  ];
  initheaders.forEach((si, sii) => {
    list.push({
      prop: "value" + sii,
      label: si,
      minWidth: sii === 0 || sii === 1 ? "120px" : "90px"
    });
  });

  console.log(list);
  return list;
};

export { initheaders, columns };
