export const tableOption = {
  selection: false,
  border: true,
  index: false,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 8,
  emptyBtn: false,
  addBtn: false,    // 启用添加按钮-行外
  delBtn: false,    // 启用删除按钮-行內
  editBtn: false,  // 启用编辑按钮-行內
  searchBtnText:"查询",
  searchSpan:4,
  column: [
    {
      "type": "date",
      "label": "下单时间",
      "prop": "createTime",
      "searchRange": true,
      "valueFormat": 'yyyy-MM-dd',
    },
    {
      "type": "input",
      "label": "订单编号",
      "prop": "orderNo",
      "search": true,
    },
    {
      "type": "input",
      "label": "订单ID",
      "prop": "id",
      showColumn: false
    },
    {
      "type": "select",
      "label": "状态",
      "prop": "state",
      "search": true,
      "dicUrl": "/admin/merchantMallOrder/getOrderStateOptions",

    },
    {
      "type": "input",
      "label": "下单用户",
      "prop": "orderUser",
      search: true,
    },
    {
      "type": "input",
      "label": "商品名称",
      "prop": "goodsName",
      search: true,
    },
    {
      "listType": 'picture-img',
      "type": "upload",
      "label": "商品图片",
      "prop": "goodsImage",
      span: 5
    },

    {
      "type": "input",
      "label": "购买数量",
      "prop": "number",
      span: 5
    },
    {
      "type": "input",
      "label": "商品金额",
      "prop": "goodsMoney",
      span: 5
    },
    {
      "type": "input",
      "label": "收货信息",
      "prop": "payMoney",
      formatter:row => {
        return row.takeName+"--"+row.phone+"--"+row.address
      }
    },
    {
      "type": "input",
      "label": "快递单号",
      "prop": "waybillNo",
      showColumn: false,
    },
    {
      "type": "input",
      "label": "快递公司",
      "prop": "expressCompany",
      showColumn: false,
    },
  ]
}
