//是否定制
const options1 = [
  { id: "0", name: "否" },
  { id: "1", name: "是" },
];
//专属类型
const options2 = [
  { id: "0", name: "非泰康" },
  { id: "1", name: "泰康" },
];
//销售权限
const options3 = [
  { id: "0", name: "无销售权限" },
  { id: "1", name: "有销售权限" },
];

//是否库存品
const options4 = [
  { id: "0", name: "非库存品" },
  { id: "1", name: "库存品" },
];
//是否启用实时金价
const options5 = [
  { id: "0", name: "否" },
  { id: "1", name: "是" },
];
//供货区域
const options6 = [
  { id: "1", name: "全国" },
  { id: "2", name: "全国除偏远" },
];
//是否启用阶梯
const options7 = [
  { id: "0", name: "否" },
  { id: "1", name: "是" },
];
//有无工差
const options8 = [
  { id: "0", name: "无工差" },
  { id: "1", name: "有工差" },
];
//配置要求
const options9 = ["证书", "包装盒", "绒布袋", "标签", "其他"];
//付款方式
const options10 = [
  { id: "0", name: "现结" },
  { id: "1", name: "月清" },
  { id: "2", name: "双月清" },
];
//发货方式
const options11 = [
  { id: "0", name: "公司自提" },
  { id: "1", name: "供应商包邮" },
];

const options12 = [
  { id: "0", name: "一地" },
  { id: "1", name: "多地" },
];
const options13 = [
  { id: "0", name: "现结" },
  { id: "1", name: "月清" },
  { id: "2", name: "双月清" },
];
const statusList = [
  { id: "0", label: "待审核", type: "warning" },
  { id: "1", label: "审核失败", type: "danger" },
  { id: "2", label: "待转单", type: "" },
  { id: "3", label: "转单成功", type: "success" },
  { id: "4", label: "转单失败", type: "danger" },
  { id: "5", label: "取消转单", type: "info" },
];
const is_determine_price_options = [
  { id: "0", label: "否" },
  { id: "1", label: "是" },
];
const editColumns = [
  {
    prop: "filingCode",
    label: "报备单编号",
    span: 6,
  },
  {
    prop: "status",
    label: "状态",
    _slot_: "status",
    span: 6,
  },
  {
    prop: "apply_name",
    label: "申请人",
    span: 6,
  },
  {
    prop: "addtime",
    label: "申请时间",
    span: 6,
  },
  {
    prop: "supplierName",
    label: "供应商名称",
    _slot_: "supplierName",
    span: 12,
  },
  {
    prop: "customerName",
    label: "业务公司名称",
    _slot_: "customerName",
    span: 12,
  },
  {
    prop: "companyName",
    label: "客户名称",
    _slot_: "companyName",
    span: 12,
  },
  {
    prop: "num",
    label: "销售数量",
    span: 6,
  },

  {
    prop: "is_determine_price",
    label: "是否确认售价",
    _slot_: "is_determine_price",
    span: 6,
  },
 

  {
    prop: "cgd_charge",
    label: "采购单价",
    span: 6,
  },
  {
    prop: "price",
    label: "销售单价",
    span: 6,
  },
  {
    prop: "expect_service",
    label: "期望服务费",
    span: 6,
  },
  {
    prop: "expect_service_proportion",
    label: "期望服务费比例",
    span: 6,
  },

  {
    prop: "orderCode",
    label: "订单编号",
    span: 6,
  },
  {
    prop: "plat_code",
    label: "平台商品编号",
    span: 6,
  },
  {
    prop: "service_charge",
    label: "最终服务费",
    span: 6,
  },
  {
    prop: "service_proportion",
    label: "最终服务费比例",
    span: 6,
  },
  {
    prop: "platform_name",
    label: "所属平台",
    span: 24,
  },
];
//采返 采购商品字段
const coveColumns = [
  {
    prop: "good_name",
    label: "商品名称",
    _slot_: "good_name",
    span: 24,
  },

  {
    prop: "cat",
    label: "分类",
    span: 8,
  },

  {
    prop: "brand_name",
    label: "品牌",
    span: 8,
  },
  {
    prop: "send_way",
    label: "发货方式",
    _slot_: "send_way",
    span: 8,
  },
  {
    prop: "unit_name",
    label: "单位",
    span: 6,
  },
  {
    prop: "tax",
    label: "税点",
    append: '%',
    span: 6,
  },
  {
    prop: "pay_way",
    label: "付款方式",
    _slot_: "pay_way",
    span: 6,
  },


  {
    prop: "weight",
    label: "商品总克重",
    append: 'g',
    span: 6,
  },


  // {
  //   prop: "addtime",
  //   label: "反馈时间",
  //   span: 6,
  // },





  {
    prop: "preservation_day",
    label: "有效期",
    append: '天',
    span: 6
  },

  {
    prop: "delivery_day",
    label: "物流时间",
    append: '天',
    span: 6
  },
  {
    prop: "make_day",
    label: "生产工期",
    append: '天',
    span: 6
  },



  {
    prop: "supply_area",
    label: "供货区域",
    _slot_: "supply_area",
    span: 6,
  },


  {
    prop: "good_img",
    label: "商品图片",
    _slot_: "good_img",
    span: 24,

  },
  // {
  //   prop: "noble",
  //   _slot_: "noble",
  //   label: "贵金属信息",
  //   span: 24,
  // },
  {
    prop: "cost_desc",
    label: "工艺说明",
    span: 24,
  },
  {
    prop: "remark",
    label: "采返备注",
    span: 24,
  },


]
const costArr = [
  {
    prop: "cert_fee",
    label: "成本证书费",
    append: "元",
    span: 6,
  },
  {
    prop: "pakge_fee",
    label: "成本包装费",
    append: "元",
    span: 6,
  },
  {
    prop: "cost_fee",
    label: "成本工艺费",
    append: "元",
    span: 6,
  },
  {
    prop: "mark_fee",
    label: "成本加标费",
    append: "元",
    span: 6,
  },

  {
    prop: "demo_fee",
    label: "成本打样费",
    append: "元",
    span: 6,
  },
  {
    prop: "open_fee",
    label: "成本开模费",
    append: "元",
    span: 6,
  },
  {
    prop: "delivery_fee",
    label: "成本物流费",
    append: "元",
    span: 6,
  },
  {
    prop: "nake_fee",
    label: "成本裸价",
    append: "元",
    span: 6,
  },
  {
    prop: "total_fee",
    label: "采购成本合计",
    append: "元",
    span: 24,
  },
];

const bargainingArr = [
  {
    prop: "before_rate",
    label: "议价前毛利率",
    append: "%",
    span: 12,
  },

  {
    prop: "after_rate",
    label: "议价后毛利率",
    append: "%",
    span: 12,
  },
];

const listCol = [
  {
    prop: "filingCode",
    label: "报备单编码",
    minWidth: "155",
  },
  // {
  //   prop: "good_img",
  //   label: "图片",
  //   _slot_: "good_img",
  //   width: "50",
  // },
  {
    prop: "good_name",
    label: "商品名称",
    minWidth: "155",
  },

  {
    prop: "status",
    label: "状态",
    _slot_: "status",
    width: "120px",
  },
  {
    prop: "num",
    label: "数量",
    width: "110",
  },

  {
    prop: "price",
    label: "销售价",
    width: "110",
  },
  {
    prop: "expect_service",
    label: "期望服务费",
    width: "110",
  },

  {
    prop: "companyCode",
    label: "客户编号",
    minWidth: "110",
  },

  {
    prop: "companyName",
    label: "客户名称",
    minWidth: "110",
  },
  {
    prop: "orderCode",
    label: "订单编号",
    width: "150",
  },


  {
    prop: "addtime",
    label: "创建时间",
    width: "145px",
  },
  {
    prop: "",
    label: "操作",
    fixed: "right",
    _noset_: true,
    _slot_: "operation",
    width: 50,
  },
];

const rate_status_options = [
  { id: "0", label: "全部无法通过" },
  { id: "1", label: "业务主管通过" },
  { id: "2", label: "财务主管通过" },
  { id: "3", label: "boss通过" },
];

export {
  listCol,
  options1,
  options2,
  options3,
  options4,
  options5,
  options6,
  options7,
  options8,
  options9,
  options10,
  options11,
  options12,
  options13,
  editColumns,
  bargainingArr,
  costArr,
  statusList,
  rate_status_options,
  is_determine_price_options,
  coveColumns
};
