api.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. export const defalutModalForm = {
  2. taskName: "", //任务名称
  3. priority: "", //优先级
  4. taskType: 2, // 任务类型
  5. customerId: null, // 客户id 0
  6. businessId: null, //商机id 1
  7. orderId: null, // 订单id 2
  8. clueId: null, //线索id 3
  9. contactsId: null, //联系人id
  10. executorId: null, //执行人id
  11. repeat: 0, //是否重复
  12. repeatType: 0, //重复类型
  13. endType: 1, //结束类型
  14. repeatEndNever: 1,
  15. repeatEndCount: null, //重复指定次数次数后结束
  16. repeatEndDate: null, //重复到指定日期后结束
  17. repeatDesignDay: null, //自定义日期
  18. repeatDesignSameday: null, //自定义周期
  19. startDate: "", //开始日期
  20. endDate: "", //截止日期
  21. taskDesc: "", //任务描述
  22. taskLogs: [],
  23. };
  24. export const PRIORITY = [
  25. //优先级
  26. { label: "高", value: 0 },
  27. { label: "中", value: 1 },
  28. { label: "低", value: 2 },
  29. ];
  30. export const TASK_TYPE = [
  31. // 弹窗任务类型
  32. { label: "客户", value: 0, show: true },
  33. { label: "商机", value: 1, show: true },
  34. { label: "销售订单", value: 2, show: true },
  35. { label: "线索", value: 3, show: false },
  36. ];
  37. export const TASK_TYPE_FIELD = [
  38. {
  39. type: "0",
  40. field: "customerId",
  41. },
  42. {
  43. type: "1",
  44. field: "businessId",
  45. },
  46. {
  47. type: "2",
  48. field: "orderId",
  49. },
  50. {
  51. type: "3",
  52. field: "clueId",
  53. },
  54. ];
  55. export const REPEAT_TYPE = [
  56. { label: "每天", value: 0 },
  57. { label: "每周", value: 1 },
  58. { label: "每月", value: 2 },
  59. { label: "自定义周期", value: 3 },
  60. { label: "自定义日期", value: 4 },
  61. ];
  62. export const defaultGenerateFormData = {
  63. list: [],
  64. config: {},
  65. };
  66. export const CUSTOMER_FORM_URL = "/sys-form/getListByCode/tasks";