notice.mixins.js 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. // 机构通知消息
  2. const noticeMixins = {
  3. filters: {
  4. noticeUsersFilters(value) {
  5. const map = {
  6. 1: '上架费',
  7. 2: '机构分配通知',
  8. 3: '机构转移通知',
  9. 4: '机构分配通知',
  10. 7: '机构访问通知',
  11. 8: '机构回收通知'
  12. }
  13. return map[value]
  14. },
  15. },
  16. methods: {
  17. noticeSellerUserText(cell) {
  18. const map = {
  19. 1: `${cell.content}`,
  20. 2: '系统已为你分配机构客户,请及时跟进。',
  21. 3: '系统已将你的机构转移给其他销售人员,你已无权管理该客户。',
  22. 4: '系统已为你分配机构客户,请及时跟进。',
  23. 7: `昨日【${cell.name}...】等${cell.sum}家机构客户访问了采美商城`,
  24. 8: '系统已将你的机构客户进行回收,你已无权管理该客户。'
  25. }
  26. return map[cell.shopTieredType]
  27. },
  28. }
  29. }
  30. export default noticeMixins