//未对账商品 --福利商城
const customer_unreconder_fuli=[
  {prop: 'purchaseVirtName', label: '企业名称',width:160,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'orderSn', label: '订单编号',minWidth:140 },
  {prop: 'unifiedOrderGoodsId', label: '商品ID',width:90 },
  {prop: 'goodsName', label: '商品名称', width: 160, showOverTip:true,
  formatter(row, column, cellValue) {
      return cellValue === '' ? '-' : cellValue
    }},
  {prop: 'selfOption', label: '商品规格',width:130,
  formatter(row, column, cellValue) {
    console.log("cellValue",cellValue)
    return (cellValue =='' ||cellValue==undefined || cellValue=='undefined')? '-' : cellValue
  }},
  {prop: 'cateNameLv1', label: '三级分类',  width: '180',
     formatter(row, column, cellValue) {
       if(row.cateNameLv1&&row.cateNameLv2&&row.cateNameLv3){
        return  cellValue+"/"+row.cateNameLv2+"/"+row.cateNameLv3
       }else if(row.cateNameLv1&&row.cateNameLv2){
        return  cellValue+"/"+row.cateNameLv2
       }else if(row.cateNameLv1){
        return cellValue
       }else {
        return '-'
       }
        
      }},
  {prop: 'quantity', label: '数量',width:90},
  {prop: 'price', label: '销售单价', width: 90},
  {prop: 'orderAmountMoney', label: '销售总价', width: 100,formatter(row, column, cellValue) {
    if(row.price&&row.quantity){
      return cellValue=(Number(row.price)*Number(row.quantity)).toFixed(2)
    }else{
      return cellValue ='-'
    }
   
  }},
  {prop: 'purchaseUserName', label: '下单人姓名' ,width:100},
  {prop: 'purchasePhone', label: '下单人手机号' ,width:130},
  {prop: 'orderStateName1', label: '积分类型' ,width:100,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'quantity1', label: '积分支付' ,width:120,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'quantity1', label: '结算金额' ,width:120},
  {prop: 'taxCode', label: '税务编码' ,width:120,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'taxRate', label: '税率' ,width:80,formatter(row, column, cellValue) {
    if(row.goodsName=='运费'){
      return cellValue ='6%'
    }else{
      return cellValue =='' || cellValue==undefined || cellValue=='undefined'? '-' : cellValue+'%'
    }
   
  }},
  {prop: 'createTime', label: '下单时间' ,width:120},
  {prop: 'orderStateName', label: '订单状态' ,width:100},
  {prop: 'saleName', label: '供货商' ,width:140},
  {prop: 'expressCompany', label: '快递公司' ,width:120,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'expressSn', label: '快递单号' ,width:120,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'updateTime', label: '更新时间' ,width:120},
  {prop: 'remarks', label: '备注' ,width:120,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
]
//未对账商品 --企业购
const customer_unreconder_qiyegou=[
  {prop: 'purchaseVirtName', label: '企业名称',width:140},
  {prop: 'orderSn', label: '订单编号',minWidth:140 },
  {prop: 'goodsName', label: '商品名称', minWidth: 160, showOverTip:true,
  formatter(row, column, cellValue) {
      return cellValue === '' ? '-' : cellValue
    }},
  {prop: 'quantity', label: '数量',width:90},
  {prop: 'price', label: '单价',width:100},
  {prop: 'orderAmountMoney', label: '合计', width: 120,formatter(row, column, cellValue) {
    if(row.price&&row.quantity){
      return cellValue=(Number(row.price)*Number(row.quantity)).toFixed(2)
    }else{
      return cellValue ='-'
    }
  }},
  {prop: 'payType', label: '支付方式', width: 100},
  {prop: 'orderStateName', label: '订单状态' ,width:100},
  {prop: 'createTime', label: '下单时间',width:130},
  {prop: 'quantity1', label: '收货时间' ,width:120},
  {prop: 'purchaseUserName', label: '下单人姓名' ,width:120},
  {prop: 'recUsername', label: '收件人' ,width:100},
  {prop: 'recUserphone', label: '收件电话' ,width:130},
  {prop: 'recAddress', label: '收货地址' ,width:180,showOverTip:true,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'serviceName', label: '订单类型' ,width:100},
  {prop: 'remarks', label: '备注' ,width:120,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
]
//未对账商品 --楼闪送
const customer_unreconder_LSS=[
  {prop: 'purchaseVirtName1', label: '项目名称',minWidth:150,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'purchaseVirtName', label: '企业名称',width:200,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'orderSn', label: '订单编号',minWidth:140 },
  {prop: 'goodsName', label: '商品名称', width: 140, showOverTip:true,
  formatter(row, column, cellValue) {
      return cellValue === '' ? '-' : cellValue
    }},
  {prop: 'quantity', label: '商品数量' ,width:90},
  {prop: 'orderAmount', label: '订单总金额' ,width:100},
  {prop: 'goodsCostAmount', label: '商品成本金额' ,width:120},
  {prop: 'profit', label: '毛利' ,width:90,formatter(row, column, cellValue) {
    if(row.orderAmount&&row.goodsCostAmount){
      return (Number(row.orderAmount)- Number(row.goodsCostAmount)).toFixed(2)
    }else{
      return '-'
    }
    
  }},
  {prop: 'createTime1', label: '支付订单号',width:120},
  {prop: 'createTime', label: '下单时间',width:120},
  {prop: 'createTime1', label: '接单时间',width:120,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  
  {prop: 'orderStateName', label: '订单状态',width:100},
  {prop: 'purchaseUserName', label: '下单人姓名',width:120},
  {prop: 'purchasePhone', label: '下单人手机号',width:130},
 
  {prop: 'payType1', label: '楼栋', width: 120,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'recAddress', label: '地址' ,width:140,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'quantity1', label: '配送员' ,width:100,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'createTime1', label: '完成时间',width:120,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  {prop: 'payType', label: '支付方式' ,width:115},
  {prop: 'saleName', label: '商户名称' ,width:120},
  // {prop: 'serviceName1', label: '对账状态' ,width:120},
  // {prop: 'serviceName1', label: '发票申请状态' ,width:120},
  // {prop: 'serviceName1', label: '开票状态' ,width:120},
  // {prop: 'serviceName1', label: '回款状态' ,width:120},
  {prop: 'serviceName', label: '订单类型' ,width:115},
  {prop: 'remarks', label: '备注' ,width:120,formatter(row, column, cellValue) {
    return cellValue === '' ? '-' : cellValue
  }},
  
]