constant.ts 4.65 KB
export const MAIN_ORDER_COLUMNS = [
  {
    title: '订单列表',
    width: 120,
    dataIndex: 'name',
    search: false,
  },
  {
    title: '订单编号',
    dataIndex: 'id',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '销售代表',
    dataIndex: 'salesCode',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '收货人',
    dataIndex: 'customerName',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '收货人联系电话',
    dataIndex: 'customerContactNumber',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '单位',
    dataIndex: 'institution',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '单位联系人',
    dataIndex: 'institutionContactName',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '收货人地址',
    dataIndex: 'customerShippingAddress',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '商品名称',
    dataIndex: 'productName',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '商品参数',
    dataIndex: 'parameters',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '订单状态',
    dataIndex: 'orderStatus',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '支付方式',
    dataIndex: 'paymentStatus',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '物流方式',
    dataIndex: 'logisticsMethod',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '支付渠道',
    dataIndex: 'paymentChannel',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '银行名称',
    dataIndex: 'bank',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '支付流水',
    dataIndex: 'paymentTransactionId',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '所属部门',
    dataIndex: 'productBelongBusiness',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '创建日期',
    dataIndex: 'createTime',
    valueType: 'dateRange',
    hideInTable: true,
    search: {
      transform: (value) => {
        return {
          startTime: value[0],
          endTime: value[1],
        };
      },
    },
  },
  {
    title: '开票状态',
    dataIndex: 'invoicingStatus',
    valueType: 'text',
    hideInTable: true,
  },
  {
    title: '开票日期',
    dataIndex: 'invoicingTime',
    valueType: 'dateRange',
    hideInTable: true,
    search: {
      transform: (value) => {
        return {
          startTime: value[0],
          endTime: value[1],
        };
      },
    },
  },
];

export const SUB_ORDER_COLUMNS = [
  { title: 'ID', dataIndex: 'id', key: 'id' },
  { title: '商品编码', dataIndex: 'productCode', key: 'productCode' },
  { title: '商品名称', dataIndex: 'productName', key: 'productName' },
  { title: '商品参数', dataIndex: 'parameters', key: 'parameters' },
  { title: '商品数量', dataIndex: 'quantity', key: 'quantity' },
  {
    title: '子订单金额(¥)',
    dataIndex: 'subOrderPayment',
    key: 'subOrderPayment',
  },
  {
    title: '支付方式',
    dataIndex: 'paymentMethod',
    key: 'paymentMethod',
  },
  {
    title: '支付渠道',
    dataIndex: 'paymentChannel',
    key: 'paymentChannel',
  },
  {
    title: '支付流水',
    dataIndex: 'paymentTransactionId',
    key: 'paymentTransactionId',
  },
  {
    title: '物流方式',
    dataIndex: 'logisticsMethod',
    key: 'logisticsMethod',
  },
  { title: '物流单号', dataIndex: 'serialNumber', key: 'serialNumber' },
  {
    title: '开票状态',
    dataIndex: 'invoicingStatus',
    key: 'invoicingStatus',
    component: 'tag',
  },
  {
    title: '订单状态',
    dataIndex: 'orderStatus',
    key: 'orderStatus',
    component: 'tag',
  },
];

export const PAYMENT_CHANNEL_OPTIONS = {
  ALIPAY: '支付宝',
  WECHAT: '微信',
  BANK_TRANSFER: '银行转账',
};

export const PAYMENT_METHOD_OPTIONS = {
  PAYMENT_IN_ADVANCE: '预付',
  CASH_ON_DELIVERY: '货到付款',
};

export const PRODUCT_BELONG_DEPARTMENT_OPTIONS = {
  APPLICATION_PROJECT: '应用项目事业部门',
  TEST: '测试事业部门',
  CUSTOMIZATION: '定制化事业部门',
  EXPERIMENTAL_EQUIPMENT: '实验设备事业部门',
  EXPERIMENTAL_CONSUMABLES: '实验耗材事业部门',
};

export const INVOCING_STATUS_OPTIONS = {
  UN_INVOICE: '未开票',
  INVOICED: '已开票',
};

export const LOGISTICS_STATUS_OPTIONS = {
  JINGDONG_LOGISTICS: '京东物流',
  DEBANG_LOGISTICS: '德邦物流',
};

export const ORDER_STATUS_OPTIONS = {
  CONFIRM_RECEIPT: '确认收货',
  UNAUDITED: '未审核',
  AUDITED: '已审核',
  WAIT_SHIP: '待发货',
  AUDIT_FAILED: '审核失败',
  SHIPPED: '已发货',
};