export const MOD = "/business"; export const MODURL = "Business"; export const prefix = "/clue"; export const GETSYSFILED = "/sys-dict/getListByCode"; export const GETPERSONNEL = "/user/getSimpleActiveUserList"; export const GETGENERATEFOEM = `/sys-form/getListByCode${MOD}`; export const GETBUSINESSLIST = `/business-opportunity/list`; export const UPDATEINSET = `/business-opportunity/insertAndUpdate`; export const BUSINESSDETELE = `/business-opportunity/delete`; export const BATCHTRANSFER = `/business-opportunity/claim`; export const BUSIESS_DETELELIST = `/business-opportunity/deleterList`; export const BUSIESS_ROWBACK = `/business-opportunity/rollBack`; export const BUSIESS_PERDETELE = `/business-opportunity/deleterDelete`; export const BUSIESS_GETSATE = `/business-opportunity/getStage`; export const BUSIESS_SAVESAIE = `/business-opportunity/saveStage`; export const BUSIESS_ALL = `/business-opportunity/getAll`; export const BUSIESS_INFO = `/business-opportunity/getInfo`; export const DETELEFILEFILE = `/business-opportunity/deleteFile`; export const REFIENAMEFILE = `/business-opportunity/reFileName`; export const UPLOADFILEFILE = `/business-opportunity/uploadFile`; export const URL_IMPOERBUSINESS = `/business-opportunity/importData`; export const URL_DETELESTAGE = `/business-opportunity/deleteStage`; export const URL_SAVECONTACT = `/business-opportunity/saveContactsId`; export const URL_STAGEIDNEXT = `/business-opportunity/saveStageId`; export const URL_SAVEREASON = `/business-opportunity/saveReason`; export const URL_EXPORTBUSINESS = `/business-opportunity/exportData`; export const PANEL_MOBILE_DATA = `/business-opportunity/changeOrder`; // 看板视图 export const OBTAIN_KANBAN_VIEW_DATA = `/business-opportunity/getAllByStage`; // 看板类型 export const TABLE_VIEW = "table"; export const KANBAN_VIEW = "view"; export const stageStatus = [ { id: 1, name: "赢单", progress: "100%" }, { id: 2, name: "输单", progress: "0%" }, { id: 3, name: "无效", progress: "0%" }, ]; const isExistBusiness = sessionStorage.getItem("isExistBusiness"); const businessLabel = isExistBusiness === "1" ? "商机" : "项目"; const isSimple = sessionStorage.getItem("isSimple"); export const tableColumn: businessTableColumnInterface[] = isSimple == "1" ? [ { prop: "name", label: `${businessLabel}名称`, width: "180", eventName: "toClueTableDetail", }, { prop: "customerName", label: "客户名称", width: "180" }, { prop: "amountOfMoney", label: `${businessLabel}金额`, width: "180" }, { prop: "expectedTransactionDate", label: "预计成交时间", width: "180", }, { prop: "stageValue", label: `${businessLabel}阶段`, width: "180" }, { prop: "inchargerName", label: "负责人", width: "180" }, { prop: "creatorName", label: "创建人", width: "180" }, { prop: "createTime", label: "创建时间", width: "180" }, ] : [ { prop: "name", label: `${businessLabel}名称`, width: "180", eventName: "toClueTableDetail", }, { prop: "customerName", label: "客户名称", width: "180" }, { prop: "contactsName", label: "联系人", width: "180", eventName: "showName", }, { prop: "amountOfMoney", label: `${businessLabel}金额`, width: "180" }, { prop: "expectedTransactionDate", label: "预计成交时间", width: "180", }, { prop: "stageValue", label: `${businessLabel}阶段`, width: "180" }, { prop: "inchargerName", label: "负责人", width: "180" }, { prop: "creatorName", label: "创建人", width: "180" }, { prop: "createTime", label: "创建时间", width: "180" }, ];