api.ts 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. export const MOD = "/business";
  2. export const MODURL = "Business";
  3. export const prefix = "/clue";
  4. export const GETSYSFILED = "/sys-dict/getListByCode";
  5. export const GETPERSONNEL = "/user/getSimpleActiveUserList";
  6. export const GETGENERATEFOEM = `/sys-form/getListByCode${MOD}`;
  7. export const GETBUSINESSLIST = `/business-opportunity/list`;
  8. export const UPDATEINSET = `/business-opportunity/insertAndUpdate`;
  9. export const BUSINESSDETELE = `/business-opportunity/delete`;
  10. export const BATCHTRANSFER = `/business-opportunity/claim`;
  11. export const BUSIESS_DETELELIST = `/business-opportunity/deleterList`;
  12. export const BUSIESS_ROWBACK = `/business-opportunity/rollBack`;
  13. export const BUSIESS_PERDETELE = `/business-opportunity/deleterDelete`;
  14. export const BUSIESS_GETSATE = `/business-opportunity/getStage`;
  15. export const BUSIESS_SAVESAIE = `/business-opportunity/saveStage`;
  16. export const BUSIESS_ALL = `/business-opportunity/getAll`;
  17. export const BUSIESS_INFO = `/business-opportunity/getInfo`;
  18. export const DETELEFILEFILE = `/business-opportunity/deleteFile`;
  19. export const REFIENAMEFILE = `/business-opportunity/reFileName`;
  20. export const UPLOADFILEFILE = `/business-opportunity/uploadFile`;
  21. export const URL_IMPOERBUSINESS = `/business-opportunity/importData`;
  22. export const URL_DETELESTAGE = `/business-opportunity/deleteStage`;
  23. export const URL_SAVECONTACT = `/business-opportunity/saveContactsId`;
  24. export const URL_STAGEIDNEXT = `/business-opportunity/saveStageId`;
  25. export const URL_SAVEREASON = `/business-opportunity/saveReason`;
  26. export const URL_EXPORTBUSINESS = `/business-opportunity/exportData`;
  27. export const PANEL_MOBILE_DATA = `/business-opportunity/changeOrder`;
  28. // 看板视图
  29. export const OBTAIN_KANBAN_VIEW_DATA = `/business-opportunity/getAllByStage`;
  30. // 看板类型
  31. export const TABLE_VIEW = "table";
  32. export const KANBAN_VIEW = "view";
  33. export const stageStatus = [
  34. { id: 1, name: "赢单", progress: "100%" },
  35. { id: 2, name: "输单", progress: "0%" },
  36. { id: 3, name: "无效", progress: "0%" },
  37. ];
  38. const isExistBusiness = sessionStorage.getItem("isExistBusiness");
  39. const businessLabel = isExistBusiness === "1" ? "商机" : "项目";
  40. const isSimple = sessionStorage.getItem("isSimple");
  41. export const tableColumn: businessTableColumnInterface[] =
  42. isSimple == "1"
  43. ? [
  44. {
  45. prop: "name",
  46. label: `${businessLabel}名称`,
  47. width: "180",
  48. eventName: "toClueTableDetail",
  49. },
  50. { prop: "customerName", label: "客户名称", width: "180" },
  51. { prop: "amountOfMoney", label: `${businessLabel}金额`, width: "180" },
  52. {
  53. prop: "expectedTransactionDate",
  54. label: "预计成交时间",
  55. width: "180",
  56. },
  57. { prop: "stageValue", label: `${businessLabel}阶段`, width: "180" },
  58. { prop: "inchargerName", label: "负责人", width: "180" },
  59. { prop: "creatorName", label: "创建人", width: "180" },
  60. { prop: "createTime", label: "创建时间", width: "180" },
  61. ]
  62. : [
  63. {
  64. prop: "name",
  65. label: `${businessLabel}名称`,
  66. width: "180",
  67. eventName: "toClueTableDetail",
  68. },
  69. { prop: "customerName", label: "客户名称", width: "180" },
  70. {
  71. prop: "contactsName",
  72. label: "联系人",
  73. width: "180",
  74. eventName: "showName",
  75. },
  76. { prop: "amountOfMoney", label: `${businessLabel}金额`, width: "180" },
  77. {
  78. prop: "expectedTransactionDate",
  79. label: "预计成交时间",
  80. width: "180",
  81. },
  82. { prop: "stageValue", label: `${businessLabel}阶段`, width: "180" },
  83. { prop: "inchargerName", label: "负责人", width: "180" },
  84. { prop: "creatorName", label: "创建人", width: "180" },
  85. { prop: "createTime", label: "创建时间", width: "180" },
  86. ];