Columns.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import XEUtils from 'xe-utils';
  2. export const CustomerVoiceColumns = [
  3. { type: 'seq', title: '序 号', width: 50, align: 'center' },
  4. // { field: 'img', title: '图片', minWidth: 300, align: 'center', showOverflow: true, slots: { default: 'img' } },
  5. // { field: 'asin', title: '标题asin', minWidth: 'auto', align: 'center', showOverflow: true, },
  6. { field: 'product_info', title: '产品信息', width: 280, align: 'center', slots: { default: 'product_info' } },
  7. { field: 'sku', title: 'SKU', minWidth: 'auto', align: 'center', showOverflow: true },
  8. {
  9. field: 'country_code',
  10. title: '国家',
  11. minWidth: 'auto',
  12. align: 'center',
  13. showOverflow: true,
  14. slots: { default: 'country_code' },
  15. },
  16. { field: 'fulfillment_channel', title: '渠道', minWidth: 'auto', align: 'center', showOverflow: true },
  17. {
  18. field: 'ncx_rate',
  19. title: 'NCX率',
  20. minWidth: 'auto',
  21. align: 'center',
  22. showOverflow: true,
  23. slots: { default: 'ncx_rate' },
  24. },
  25. { field: 'ncx_count', title: 'NCX订单', minWidth: 'auto', align: 'center', showOverflow: true },
  26. { field: 'order_count', title: '所有订单', minWidth: 'auto', align: 'center', showOverflow: true },
  27. {
  28. field: 'all_score',
  29. title: '星级',
  30. minWidth: 'auto',
  31. align: 'center',
  32. showOverflow: true,
  33. slots: { default: 'all_score' },
  34. },
  35. {
  36. field: 'return_record_rate',
  37. title: '退货率',
  38. minWidth: 'auto',
  39. align: 'center',
  40. showOverflow: true,
  41. slots: { default: 'return_record_rate' },
  42. },
  43. {
  44. field: 'last_updated_date',
  45. title: '最近更新',
  46. minWidth: 'auto',
  47. align: 'center',
  48. showOverflow: true,
  49. formatter({ cellValue }) {
  50. return XEUtils.toDateString(cellValue, 'yyyy-MM-dd');
  51. },
  52. },
  53. { field: 'operate', title: '详情', fixed: 'right', align: 'center', width: 90, slots: { default: 'operate' } },
  54. ];