configdata.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. export const monthLabel = [
  2. {
  3. label: "未来一个月",
  4. },
  5. {
  6. label: "未来2个月",
  7. },
  8. {
  9. label: "未来3个月",
  10. },
  11. ];
  12. /* 即将到期表格列 */
  13. export const expringTableColums = [
  14. {
  15. label: "客户名称",
  16. align: "center",
  17. key: "CompanyName",
  18. widthsty: "300px",
  19. textsty: "color:#409EFF;cursor:pointer;",
  20. link: true,
  21. },
  22. {
  23. label: "客户类型",
  24. align: "center",
  25. key: "ProductName",
  26. widthsty: "100px",
  27. },
  28. {
  29. label: "所属销售",
  30. align: "center",
  31. key: "SellerName",
  32. },
  33. // {
  34. // label:"合同编号",
  35. // align:"center",
  36. // key:"ContractCode"
  37. // },
  38. // {
  39. // label:"合同金额",
  40. // align:"center",
  41. // key:"Money"
  42. // },
  43. {
  44. label: "服务期限",
  45. align: "center",
  46. key: "",
  47. },
  48. {
  49. label: "剩余天数",
  50. align: "center",
  51. key: "ExpireDay",
  52. widthsty: "100px",
  53. sort: true,
  54. },
  55. ];
  56. /* 增量客户表格列 */
  57. export const incrementTableColums = [
  58. {
  59. label: "客户名称",
  60. key: "CompanyName",
  61. widthsty: "300px",
  62. textsty: "color:#409EFF;cursor:pointer;",
  63. link: true,
  64. },
  65. {
  66. label: "不续约归因",
  67. key: "AscribeContent",
  68. dataType: "未续约客户",
  69. notRenewedConfirm: 1,
  70. sort: true,
  71. },
  72. {
  73. label: "客户状态",
  74. key: "Status",
  75. dataType: "未续约客户",
  76. sort: true,
  77. },
  78. {
  79. label: "所属销售",
  80. key: "SellerName",
  81. widthsty: "150px",
  82. },
  83. {
  84. label: "新增时间",
  85. key: "CreateTime",
  86. dataType: "新增试用客户",
  87. sort: true,
  88. },
  89. {
  90. label: "合同金额",
  91. key: "Money",
  92. dataType: "新签客户",
  93. sort: true,
  94. },
  95. {
  96. label: "签约时间",
  97. key: "StartDate",
  98. dataType: "新签客户",
  99. sort: true,
  100. },
  101. {
  102. label: "合同金额",
  103. key: "Money",
  104. dataType: "续约客户",
  105. sort: true,
  106. },
  107. {
  108. label: "续约时间",
  109. key: "StartDate",
  110. dataType: "续约客户",
  111. sort: true,
  112. },
  113. {
  114. label: "最近合同到期时间",
  115. key: "EndDate",
  116. dataType: "未续约客户",
  117. sort: true,
  118. },
  119. {
  120. label: "备注",
  121. key: "Remark",
  122. dataType: "未续约客户",
  123. widthsty: "100px",
  124. sort: true,
  125. },
  126. {
  127. label: "未续约说明",
  128. key: "RenewalReason",
  129. dataType: "未续约客户",
  130. widthsty: "300px",
  131. sort: true,
  132. },
  133. ];
  134. export const stockTableColums = [
  135. {
  136. label: "客户名称",
  137. key: "CompanyName",
  138. widthsty: "300px",
  139. textsty: "color:#409EFF;cursor:pointer;",
  140. link: true,
  141. },
  142. {
  143. label: "客户类型",
  144. key: "ProductName",
  145. widthsty: "100px",
  146. },
  147. {
  148. label: "不续约归因",
  149. key: "AscribeContent",
  150. dataType: "未续约客户",
  151. notRenewedConfirm: 1,
  152. sort: true,
  153. },
  154. {
  155. label: "客户状态",
  156. key: "Status",
  157. dataType: "未续约客户",
  158. },
  159. {
  160. label: "所属销售",
  161. key: "SellerName",
  162. widthsty: "150px",
  163. },
  164. {
  165. label: "服务期限",
  166. dataType: "新签客户,续约客户",
  167. },
  168. {
  169. label: "剩余天数",
  170. key: "ExpireDay",
  171. widthsty: "150px",
  172. dataType: "新签客户,续约客户",
  173. },
  174. {
  175. label: "最近合同到期时间",
  176. key: "EndDate",
  177. dataType: "未续约客户",
  178. },
  179. {
  180. label: "备注",
  181. key: "Remark",
  182. dataType: "未续约客户",
  183. widthsty: "100px",
  184. sort: true,
  185. },
  186. {
  187. label: "未续约说明",
  188. key: "RenewalReason",
  189. dataType: "未续约客户",
  190. widthsty: "300px",
  191. },
  192. {
  193. label: "超出到期时间(天)",
  194. key: "ExpireDay",
  195. widthsty: "150px",
  196. dataType: "未续约客户",
  197. },
  198. ];
  199. /* 存量客户表格列 */
  200. export const RaiStockTableColums = [
  201. {
  202. label: "客户名称",
  203. key: "CompanyName",
  204. widthsty: "300px",
  205. textsty: "color:#409EFF;cursor:pointer;",
  206. link: true,
  207. },
  208. {
  209. label: "不续约归因",
  210. key: "AscribeContent",
  211. dataType: "未续约客户",
  212. notRenewedConfirm: 1,
  213. sort: true,
  214. },
  215. {
  216. label: "客户状态",
  217. key: "Status",
  218. dataType: "未续约客户",
  219. },
  220. {
  221. label: "所属销售",
  222. key: "SellerName",
  223. widthsty: "150px",
  224. },
  225. {
  226. label: "服务销售",
  227. key: "ShareSeller",
  228. dataType: "新签客户,续约客户",
  229. },
  230. {
  231. label: "合同期限",
  232. dataType: "新签客户,续约客户",
  233. key: "StartDate",
  234. },
  235. {
  236. label: "合同金额",
  237. dataType: "新签客户,续约客户",
  238. key: "Money",
  239. },
  240. {
  241. label: "签约套餐",
  242. dataType: "新签客户,续约客户",
  243. key: "PermissionName",
  244. },
  245. {
  246. label: "最近合同到期时间",
  247. key: "EndDate",
  248. dataType: "未续约客户",
  249. },
  250. {
  251. label: "备注",
  252. key: "Remark",
  253. dataType: "未续约客户",
  254. widthsty: "100px",
  255. sort: true,
  256. },
  257. {
  258. label: "未续约说明",
  259. key: "RenewalReason",
  260. dataType: "未续约客户",
  261. widthsty: "300px",
  262. },
  263. {
  264. label: "超出到期时间(天)",
  265. key: "ExpireDay",
  266. widthsty: "150px",
  267. dataType: "未续约客户",
  268. },
  269. ];
  270. /* 合同列表表格列 */
  271. export const contractTableColums = [
  272. {
  273. label: "客户名称",
  274. key: "CompanyName",
  275. widthsty: "300px",
  276. textsty: "color:#409EFF;cursor:pointer;",
  277. link: true,
  278. },
  279. {
  280. label: "客户类型",
  281. key: "ProductName",
  282. widthsty: "100px",
  283. },
  284. {
  285. label: "所属销售",
  286. key: "SellerName",
  287. widthsty: "150px",
  288. },
  289. {
  290. label: "有效合同数",
  291. key: "Count",
  292. widthsty: "150px",
  293. dataType: "有效合同总数,有效合同总金额,正式客户数",
  294. },
  295. {
  296. label: "有效合同总金额",
  297. key: "SumMoney",
  298. widthsty: "150px",
  299. dataType: "有效合同总数,有效合同总金额,正式客户数",
  300. },
  301. {
  302. label: "生成方式",
  303. key: "Source",
  304. widthsty: "150px",
  305. dataType: "系统合同/上传附件",
  306. },
  307. {
  308. label: "提交时间",
  309. key: "CreateTime",
  310. widthsty: "180px",
  311. dataType: "系统合同/上传附件",
  312. },
  313. {
  314. label: "操作",
  315. textsty: "color:#409EFF;cursor:pointer;",
  316. action: {
  317. name: "合同详情",
  318. },
  319. },
  320. ];
  321. /* 收入列表表格列 */
  322. export const incomeTableColums = [
  323. {
  324. label: "合同编号",
  325. key: "ContractCode",
  326. },
  327. {
  328. label: "客户名称",
  329. key: "CompanyName",
  330. widthsty: "200px",
  331. textsty: "color:#409EFF;cursor:pointer;",
  332. link: true,
  333. },
  334. {
  335. label: "客户类型",
  336. key: "ProductName",
  337. },
  338. {
  339. label: "所属销售",
  340. key: "SellerName",
  341. },
  342. {
  343. label: "合同金额",
  344. key: "Money",
  345. },
  346. {
  347. label: "付款方式",
  348. key: "PayMethod",
  349. },
  350. {
  351. label: "付款渠道",
  352. key: "PayChannel",
  353. },
  354. {
  355. label: "服务期限",
  356. widthsty: "200px",
  357. },
  358. {
  359. label: "操作",
  360. textsty: "color:#409EFF;cursor:pointer;",
  361. action: {
  362. name: "合同详情",
  363. },
  364. },
  365. ];
  366. /* 权益客户统计表格列 */
  367. export const equityTableColums = (type) => {
  368. return type === "新签客户" || type === "续约客户"
  369. ? [
  370. {
  371. label: "客户名称",
  372. key: "CompanyName",
  373. widthsty: "300px",
  374. textsty: "color:#409EFF;cursor:pointer;",
  375. link: true,
  376. },
  377. {
  378. label: "所属销售",
  379. key: "SellerName",
  380. widthsty: "150px",
  381. },
  382. {
  383. label: "服务销售",
  384. key: "ShareSeller",
  385. widthsty: "150px",
  386. },
  387. {
  388. label: "合同期限",
  389. align: "center",
  390. key: "StartDate",
  391. },
  392. {
  393. label: "合同金额",
  394. key: "Money",
  395. dataType: "新签客户",
  396. },
  397. {
  398. label: type === "新签客户" ? "签约套餐" : "续约套餐",
  399. align: "center",
  400. key: "PermissionName",
  401. },
  402. ]
  403. : type === "未续约客户"
  404. ? [
  405. {
  406. label: "客户名称",
  407. key: "CompanyName",
  408. widthsty: "300px",
  409. textsty: "color:#409EFF;cursor:pointer;",
  410. link: true,
  411. },
  412. {
  413. label: "客户状态",
  414. key: "Status",
  415. sort: true,
  416. },
  417. {
  418. label: "所属销售",
  419. key: "SellerName",
  420. widthsty: "150px",
  421. },
  422. {
  423. label: "服务销售",
  424. key: "ShareSeller",
  425. widthsty: "150px",
  426. },
  427. {
  428. label: "合同期限",
  429. key: "StartDate",
  430. dataType: "未续约客户",
  431. sort: true,
  432. },
  433. {
  434. label: "签约套餐",
  435. align: "center",
  436. key: "PermissionName",
  437. },
  438. {
  439. label: "合同金额",
  440. key: "Money",
  441. dataType: "新签客户",
  442. },
  443. {
  444. label: "不续约归因",
  445. key: "AscribeContent",
  446. notRenewedConfirm: 1,
  447. sort: true,
  448. },
  449. ]
  450. : type === "新增试用客户"
  451. ? [
  452. {
  453. label: "客户名称",
  454. key: "CompanyName",
  455. widthsty: "300px",
  456. textsty: "color:#409EFF;cursor:pointer;",
  457. link: true,
  458. },
  459. {
  460. label: "所属销售",
  461. key: "SellerName",
  462. widthsty: "150px",
  463. },
  464. {
  465. label: "新增类型",
  466. key: "Operation",
  467. widthsty: "150px",
  468. },
  469. {
  470. label: "新增时间",
  471. key: "CreateTime",
  472. },
  473. ]
  474. : [];
  475. };
  476. export const tableConfigs = {
  477. AddTrialCount: [
  478. { label: "客户名称", prop: "CompanyName" },
  479. { label: "所属销售", prop: "SellerName" },
  480. { label: "新增类型", prop: "AddType" },
  481. { label: "新增时间", prop: "CreateTime" },
  482. ],
  483. // 新签合同
  484. NewContractData: [
  485. { label: "客户名称", prop: "CompanyName" },
  486. { label: "所属销售", prop: "SellerName" },
  487. { label: "合同期限", prop: "StartDate" },
  488. { label: "合同金额", prop: "Money" },
  489. { label: "签约套餐", prop: "PermissionName" },
  490. { label: "操作", prop: "actions" },
  491. ],
  492. // 到期合同
  493. ExpiredContractData: [
  494. { label: "客户名称", prop: "CompanyName" },
  495. { label: "所属销售", prop: "SellerName" },
  496. { label: "合同期限", prop: "StartDate" },
  497. { label: "合同金额", prop: "Money" },
  498. { label: "签约套餐", prop: "PermissionName" },
  499. { label: "操作", prop: "actions" },
  500. ],
  501. // 续约合同
  502. RenewedContractData: [
  503. { label: "客户名称", prop: "CompanyName" },
  504. { label: "所属销售", prop: "SellerName" },
  505. { label: "合同期限", prop: "StartDate" },
  506. { label: "合同金额", prop: "Money" },
  507. { label: "签约套餐", prop: "PermissionName" },
  508. { label: "操作", prop: "actions" },
  509. ],
  510. // 续约率
  511. RenewalRateData: [
  512. { label: "", prop: "TbaleNameAText" },
  513. { label: "续约金额(续约客户数)", prop: "RenewedContractMoney" },
  514. { label: "到期金额(到期客户数)", prop: "ExpiredContractMoney" },
  515. { label: "续约/到期", prop: "RenewalRate" },
  516. ],
  517. //确认不续约合同
  518. ConfirmedNoRenewalContractData: [
  519. { label: "客户名称", prop: "CompanyName" },
  520. { label: "所属销售", prop: "SellerName" },
  521. { label: "合同期限", prop: "StartDate" },
  522. { label: "合同金额", prop: "Money" },
  523. { label: "签约套餐", prop: "PermissionName" },
  524. { label: "操作", prop: "actions" },
  525. ],
  526. //确认不续约率
  527. ConfirmNonRenewalRateData: [
  528. { label: "", prop: "TbaleNameAText" },
  529. { label: "不续约金额(不续约客户数)", prop: "RenewedContractMoney" },
  530. { label: "到期金额(到期客户数)", prop: "ExpiredContractMoney" },
  531. { label: "不续约/到期", prop: "RenewalRate" },
  532. ],
  533. // 签约客户数量
  534. SignedClientCount: [
  535. { label: "新签客户数量", prop: "NewContractCompany" },
  536. { label: "新签合同数量", prop: "NewContract" },
  537. { label: "续约客户数量", prop: "RenewedContractCompany" },
  538. { label: "续约合同数量", prop: "RenewedContract" },
  539. ],
  540. // 客单价
  541. AverageRevenueCount: [
  542. { label: "签约总金额", prop: "ContractMoney" },
  543. { label: "签约客户数", prop: "ContractNum" },
  544. ],
  545. // 开票金额
  546. InvoiceAmountCount: [
  547. { label: "客户名称", prop: "CompanyName" },
  548. { label: "所属销售", prop: "SellerName" },
  549. { label: "合同编号", prop: "ContractCode" },
  550. { label: "开票金额", prop: "InvoicedAmount" },
  551. { label: "开票日期", prop: "CreateTime" },
  552. ],
  553. // 新客开票
  554. NewCustomerInvoicingCount: [
  555. { label: "客户名称", prop: "CompanyName" },
  556. { label: "所属销售", prop: "SellerName" },
  557. { label: "合同编号", prop: "ContractCode" },
  558. { label: "开票金额", prop: "InvoicedAmount" },
  559. { label: "开票日期", prop: "CreateTime" },
  560. ],
  561. // 到款金额
  562. PaymentReceivedCount: [
  563. { label: "客户名称", prop: "CompanyName" },
  564. { label: "所属销售", prop: "SellerName" },
  565. { label: "合同编号", prop: "ContractCode" },
  566. { label: "到款金额", prop: "PaymentAmount" },
  567. { label: "到款日期", prop: "CreateTime" },
  568. ],
  569. // 新客到款
  570. NewCustomerPaymentsReceivedCount: [
  571. { label: "客户名称", prop: "CompanyName" },
  572. { label: "所属销售", prop: "SellerName" },
  573. { label: "合同编号", prop: "ContractCode" },
  574. { label: "到款金额", prop: "PaymentAmount" },
  575. { label: "到款日期", prop: "CreateTime" },
  576. ],
  577. // 未到款比例
  578. UnpaidRatioCount: [
  579. { label: "开票日期", prop: "CreateTime" },
  580. { label: "到款金额", prop: "PaymentAmount" },
  581. { label: "未到款金额", prop: "NotReceivedtAmount" },
  582. ],
  583. };
  584. export const tableDlgTitle = {
  585. AddTrialCount: "新增试用", //新增试用
  586. NewContractData: "新签合同", //新签合同(金额/数量)
  587. ExpiredContractData: "到期合同", //到期合同(金额/数量)
  588. RenewedContractData: "续约合同", //续约合同(金额/数量)
  589. RenewalRateData: "续约率", //续约率(金额/数量)
  590. ConfirmedNoRenewalContractData: "确认不续约合同", //确认不续约合同(金额/数量)
  591. SignedClientCount: "签约客户数量", //签约客户数量
  592. AverageRevenueCount: "客单价", //客单价
  593. InvoiceAmountCount: "开票金额", //开票金额
  594. PaymentReceivedCount: "到款金额", //到款金额
  595. UnpaidRatioCount: "未到款比例", //未到款比例
  596. NewCustomerInvoicingCount: "新客开票", //新客开票
  597. NewCustomerPaymentsReceivedCount: "新客到款", //新客到款
  598. ConfirmNonRenewalRateData: "确认不续约率",
  599. };