interface.ts 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. import { EnumRouterName } from "@/common/constants/enumRouterName";
  2. import { ColumnType, TableKey } from "@/common/methods/table/interface";
  3. import { OperationTabMenuAuth } from "@/services/go/commonService/interface";
  4. export interface TableEventCB {
  5. clickCB?: Function; // 单击事件回调函数
  6. contextmenuCB?: Function; // 右键事件回调函数
  7. dblclick?: Function; // 双击事件回调函数
  8. }
  9. export type BtnClassName = 'btnDeafault' | 'btnPrimary' | 'btnDanger' | 'operBtn'
  10. export interface BtnList {
  11. lable: string; // 按钮名字
  12. callback: Function;
  13. className: BtnClassName // 按钮 class 名字
  14. }
  15. export interface BtnParam {
  16. first: string[],
  17. second: string[],
  18. third: string[],
  19. }
  20. export interface ComposeTableParam {
  21. queryFn: Function, // 查询表格数据
  22. menuType: EnumRouterName, // 操作按钮列表key---------------------无用,待优化删除
  23. tableName?: keyof TableKey, // 表头key
  24. tableFilterKey: string[], // 表格过滤字段
  25. tableFilterCB?: Function, // 表格过滤字段回调函数
  26. isDetail: boolean, // 是否需要详情-------------------------------无用,待优化删除
  27. }
  28. export interface ComposeTableDetailParam {
  29. queryFn: Function, // 查询表格数据
  30. tableName?: keyof TableKey, // 表头key
  31. tableFilterKey: string[], // 表格过滤字段
  32. menuType: EnumRouterName
  33. }
  34. export interface TableParam {
  35. queryFn: Function,
  36. columnsList: ColumnType[],
  37. clickName?: string,
  38. }
  39. export interface ComposeOrderTableParam {
  40. queryFn: Function, // 查询表格数据
  41. recordList: OperationTabMenuAuth[], // 当前tab页配置数据
  42. tableName?: keyof TableKey, // 表头key
  43. isDetail?: boolean, // 是否需要详情
  44. clickCB?: Function, // 点击表格行
  45. }
  46. export interface ButtonListKey {
  47. custom_info_normal: string; // 客户资料 正常
  48. custom_info_disabled: string; // 客户资料 停用
  49. custom_info_unsubmit: string; // 客户资料 未提交
  50. custom_info_checkpending: string; // 客户资料 待审核
  51. spot_contract_unsubmitted: string; // 现货合同 未提交
  52. spot_contract_checkpending: string; // 现货合同 待审核
  53. spot_contract_performance: string; // 现货合同 履约中
  54. spot_contract_finished: string; // 现货合同 已完成
  55. goods_info_spot_normal: string; // 现货品种 正常
  56. goods_info_spot_disable: string; // 现货品种 停用
  57. goods_info_hedge_normal: string; // 现货品种 正常
  58. goods_info_hedge_disable: string; // 套保品种 停用
  59. warehouse_info_normal: string; // 仓库信息 正常
  60. warehouse_info_disabled: string; // 仓库信息 停用
  61. purchase_pending: string; // 采购 待点价
  62. purchase_performance: string; // 采购 履约交收
  63. purchase_all: string; // 采购 全部
  64. sell_pending: string; // 销售 待点价
  65. sell_performance: string; // 销售 履约交收
  66. sell_all: string; // 销售 全部
  67. exposure_realtime: string; //实时敞口
  68. exposure_spot: string; //现货头寸
  69. exposure_futures: string; //期货头寸
  70. exposure_history: string; //历史敞口
  71. plan_uncommitted: string; //计划 未提交
  72. plan_audit: string; //计划 待审核
  73. plan_running: string; //计划 执行中
  74. business_review_someprice: string; // 业务审核 点价
  75. business_review_settlement: string; // 业务审核 交收
  76. account_info_business: string; // 业务账户
  77. account_info_trade: string; // 交易账户
  78. account_info_manager: string; // 管理账户
  79. account_info_futures: string; // 期货账户
  80. finance_review_funds: string; // 财务审核 款项
  81. finance_review_invoice: string; // 财务审核 发票
  82. inventory_review_checkin: string; // 库存审核 入库
  83. inventory_review_checkout: string; // 财务审核 出库
  84. inventory_current: string; // 库存查询 当前库存
  85. inventory_applyrecord: string; // 库存查询 申请记录
  86. finance_report_finance: string; // 财务报表
  87. exposure_report_exposure: string; // 敞口报表
  88. sum_pl_report_sum_pl: string; //汇总损益报表
  89. spot_report_spot: string; // 现货报表
  90. future_report_future: string; // 期货报表
  91. inventory_report_warehouse: string; // 库存报表(仓库)
  92. inventory_report_inventory_category: string; // 库存报表(品类)
  93. /********* =================== 千海金=================== **********/
  94. platinum_custom_info_normal: string; // 千海金 客户资料 正常
  95. platinum_customer_info_unsubmit: string; // 千海金 客户资料 待审核
  96. platinum_customer_info_stop: string; // 千海金 客户资料 停用
  97. platinum_withdrawal_review_tab: string; // 千海金 提现审核
  98. platinum_recharge_review_tab: string; // 千海金 充值审核
  99. platinum_pick_query_tab: string; // 千海金 提货查询
  100. platinum_fixed_investment_price_query_tab: string; // 千海金 定投价查询
  101. platinum_fixed_investment_flow_query: string; // 千海金 定投流水查询
  102. platinum_fixed_investment_plan_query: string; // 千海金 定投计划查询
  103. platinum_document_query_position: string; // 千海金 单据查询 持仓
  104. platinum_document_query_order: string; // 千海金 单据查询 委托单
  105. platinum_document_query_waiting: string; // 千海金 单据查询 待付单
  106. platinum_document_query_success: string; // 千海金 单据查询 成交单
  107. platinum_financing_information_tab: string; // 千海金 融资信息
  108. platinum_agreement_tab: string; // 千海金 协议管理
  109. }