const initheaders = [
  "买方公司编码",
  "回票申请编码",
  "对账编码",
  "审核状态",
  "审核备注"
];

export const mapProp = {
  value0: "companyNo",
  value1: "hpNo",
  value2: "payNo",
  value3: "status",
  value4: "remark"
};

export const requireHeaders = ["payNo", "companyNo", "hpNo", "status"];

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 };
