export const rules = {
  cids: { required: true, trigger: "change", message: "请添加采购单信息" },
  companyNo: { required: true, trigger: "change", message: "请选择业务公司" },
  supplierNo: { required: true, trigger: "change", message: "请选择供应商" }
};

export const statusOptions = [
  {
    label: "待发起流程",
    value: "0"
  },
  {
    label: "待采购审核",
    value: "1"
  },
  {
    label: "待财务审核",
    value: "2"
  },
  {
    label: "审核成功",
    value: "3"
  },
  {
    label: "采购驳回",
    value: "4"
  },
  {
    label: "财务驳回",
    value: "5"
  }
];

export const goodTypes = [
  {
    label: "正常商品",
    value: "1"
  },
  {
    label: "赠品",
    value: "2"
  },
  {
    label: "样品",
    value: "3"
  }
];

export const detailcolumns = [
  {
    field: "payNo",
    label: "对账单号"
  },
  {
    field: "apply_name",
    label: "申请人姓名"
  },
  {
    field: "supplierNo",
    label: "供应商编号"
  },
  {
    field: "supplierName",
    label: "供应商名称"
  },
  {
    field: "companyNo",
    label: "业务公司编号"
  },
  {
    field: "companyName",
    label: "业务公司名称"
  },
  {
    field: "total_fee",
    label: "对账总额"
  },
  {
    field: "apay_fee",
    label: "已付款"
  },
  {
    field: "pay_fee",
    label: "付款中"
  },
  {
    field: "wpay_fee",
    label: "未付款"
  },
  {
    field: "ainv_fee",
    label: "已开票"
  },
  {
    field: "inv_fee",
    label: "开票中"
  },
  {
    field: "winv_fee",
    label: "未开票"
  },
  {
    field: "inv_status",
    label: "开票状态"
  },
  {
    field: "pay_status",
    label: "付款状态"
  },
  {
    field: "status",
    label: "申核状态"
  },
  {
    field: "addtime",
    label: "开票时间"
  },
  {
    field: "updatetime",
    label: "更新时间"
  },
  {
    field: "remark",
    label: "备注"
  }
];

export const pay_status = [
  {
    value: "1",
    label: "未付款"
  },
  {
    value: "2",
    label: "部分付款"
  },
  {
    value: "3",
    label: "已付款"
  }
];

export const inv_status = [
  {
    value: "1",
    label: "未开票"
  },
  {
    value: "2",
    label: "开票中"
  },
  {
    value: "3",
    label: "已开票"
  }
];

export const process_rules = {
  remark: [{ required: true, trigger: "change", message: "请输入备注" }],
  status: [{ required: true, trigger: "change", message: "请输入审核状态" }]
};
