interface.ts 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. /**
  2. * 查询现货商品
  3. */
  4. export interface ErmcpDeliveryGoodsReq {
  5. excludecfg?: number; // 排除已配置的现货商品 1-排除
  6. }
  7. /**
  8. * 现货商品返回
  9. */
  10. export interface ErmcpDeliveryGoodsRsp {
  11. agreeunit: number;//合约单位[散货时默认为1, 整装时默认为标准数量]
  12. areauserid: number;//所属机构
  13. auditflag: number;//交割是否需要审核 - number;
  14. //:不需要 1:需要审核 默认为number;//
  15. categoryid: number;//类别ID(SEQ_WRCATEGORY)
  16. deliverygoodscode: string;//现货品种代码
  17. deliverygoodsid: number;//现货品种ID(SEQ_DELIVERYGOODS)
  18. deliverygoodsname: string;//现货品种名称
  19. deliverygoodstype: number;//现货品种类型: 1-整装不拆分 2-散装记录明细 3:整装拆分 4:散装不记录明细
  20. dgstatus: number;//品种状态 - 作废 - number;
  21. //:未激活 1:正常
  22. enumdicname: string;//现货品种单位名称
  23. goodsunitid: number;//现货品种单位ID
  24. isvalid: number;//是否有效 - number;
  25. //:无效 1:有效
  26. qtydecimalplace: number;//成交量小数位
  27. remark: string;//备注
  28. standardqty: number;//标准数量(库位数量) [标准品特有]
  29. standardqtyrange: number;//标准数量偏差范围 [标准品特有]
  30. }
  31. /**
  32. * 现货商品品类
  33. */
  34. export interface Ermcp3Wrstandard {
  35. areauserid: number;//所属机构
  36. convertfactor: number;//标仓系数
  37. createtime: string;//创建时间
  38. creatorid: number;//创建人
  39. deliverygoodsid: number;//现货品种ID
  40. enumdicname: string;//品类单位名称
  41. isvalid: number;//是否有效 number;
  42. //-无效(停用) 1-有效(正常)
  43. minivalue: number;//最小变动值
  44. minivaluedp: number;//最小变动值小数位
  45. realminivalue: number;//实际最小变动值
  46. realminivaluedp: number;//实际最小变动值小数位
  47. remark: string;//备注
  48. unitid: number;//品类单位ID
  49. updatetime: string;//更新时间
  50. wrstandardcode: string;//品类代码
  51. wrstandardid: number;//品类ID(SEQ_WRSTANDARD)
  52. wrstandardname: string;//品类名称
  53. }
  54. /**
  55. * 现货商品品牌
  56. */
  57. export interface Ermcp3Brand {
  58. areauserid: number;//用户id
  59. brandid: number;//品牌id
  60. brandname: string;//品牌名称
  61. deliverygoodsid: number;//品种ID
  62. }
  63. /**
  64. * 查询新货商品详情
  65. */
  66. export interface ErmcpDeliveryGoodsDetailEx {
  67. data: ErmcpDeliveryGoods; // 现货商品信息
  68. gblist: Ermcp3Brand[]; // 品牌
  69. gmlist: Ermcp3Wrstandard[]; // 品类列表
  70. mgList: Ermcp3MiddleGoodsDetail2[]; // 套保列表
  71. }
  72. /**
  73. * 现货商品信息
  74. */
  75. export interface ErmcpDeliveryGoods {
  76. agreeunit: number;//合约单位[散货时默认为1, 整装时默认为标准数量]
  77. areauserid: number;//所属机构
  78. auditflag: number;//交割是否需要审核 - number;
  79. //:不需要 1:需要审核 默认为number;//
  80. categoryid: number;//类别ID(SEQ_WRCATEGORY)
  81. deliverygoodscode: string;//现货品种代码
  82. deliverygoodsid: number;//现货品种ID(SEQ_DELIVERYGOODS)
  83. deliverygoodsname: string;//现货品种名称
  84. deliverygoodstype: number;//现货品种类型: 1-整装不拆分 2-散装记录明细 3:整装拆分 4:散装不记录明细
  85. dgstatus: number;//品种状态 - 作废 - number;
  86. //:未激活 1:正常
  87. enumdicname: string;//现货品种单位名称
  88. goodsunitid: number;//现货品种单位ID
  89. isvalid: number;//是否有效 - number;
  90. //:无效 1:有效
  91. qtydecimalplace: number;//成交量小数位
  92. remark: string;//备注
  93. standardqty: number;//标准数量(库位数量) [标准品特有]
  94. standardqtyrange: number;//标准数量偏差范围 [标准品特有]
  95. }
  96. export interface Ermcp3MiddleGoodsDetail2 {
  97. convertratio: number // 套保系数(折算系数)
  98. gplist: Ermcp3GoodsGroupEx[] // 关联商品组列表
  99. mg: ErmcpMiddleGoodsModel // 套保品种
  100. }
  101. /**
  102. * 套保品种
  103. */
  104. export interface ErmcpMiddleGoodsModel {
  105. areauserid: number;//机构用户ID
  106. createtime: string;//修改时间
  107. enumdicname: string;//单位名称
  108. evaluateratio: number;//估价系数
  109. goodsgroupid: number;//关联期货品种ID
  110. goodsunitid: number;//单位ID
  111. isvalid: number;//状态 number;
  112. //-无效(停用) 1-有效(正常)
  113. middlegoodscode: string;//套保品种代码
  114. middlegoodsid: number;//套保品种ID(SEQ_ERMS_MIDDLEGOODS)
  115. middlegoodsname: string;//套保品种名称
  116. modifytime: string;//修改时间
  117. needhedgeratio: number;//套保比率
  118. qtydecimalplace: number;//数量小数位
  119. relatedgoodsid: number;//关联交易商品ID
  120. relatedgoodstype: number;//关联商品类型 - 1:期货合约 2:现货品种
  121. remark: string;//备注
  122. }
  123. /**
  124. * 期货商品信息
  125. */
  126. export interface Ermcp3Goods {
  127. agreeunit: number;//合约单位(合约乘数)
  128. enumdicname: string;//单位名称
  129. exexchangecode: string;//交易所代码
  130. goodscode: string;//期货商品代码
  131. goodsid: number;//期货商品id
  132. goodsname: string;//期货商品名称
  133. }
  134. /**
  135. * 商品组信息
  136. */
  137. export interface Ermcp3GoodsGroupEx {
  138. convertratio: number;//折算系数(品种系数)
  139. enumdicname: string;//单位名称
  140. exexchangecode: string;//交易所代码
  141. glist: Ermcp3Goods[]
  142. goodsgroupid: number;//商品组id
  143. goodsgroupname: string;//商品组名称
  144. goodsunitid: number;//单位id
  145. middlegoodsid: number;//套保商品id
  146. }
  147. /**
  148. * 期货商品组
  149. */
  150. export interface Ermcp3GoodsGroup {
  151. agreeunit: number;//合约单位
  152. areauserid: number;//所属机构id(套保品是有areauserid的,当要排除已配置商品组时需要areauserid过滤)
  153. canshort: number;//是否允许做空[通道交易] - number;
  154. //:不能做空 1:可以做空
  155. closepricemode: number;//强平价格方式 - 1:市价 2:最新价 3:涨跌停(未实现)
  156. createtime: string;//创建时间
  157. creatorid: number;//创建人
  158. currencyid: number;//报价货币ID
  159. decimalplace: number;//报价小数位
  160. enumdicname: string;//单位名称
  161. excludecfg: number;//排除套保品已配置期货分类下的商品组(但显示已配置商品组) 1-排除
  162. exexchangeid: number;//外部交易所ID[通道交易]
  163. goodsgroupid: number;//商品组ID(自增ID)
  164. goodsgroupname: string;//商品组名称
  165. goodsgroupstatus: number;//商品组状态 - 1:正常 2:注销
  166. goodunitid: number;//报价单位ID
  167. groupcategroyid: number;//品种分类ID
  168. innerdealmode: number;//内部成交方式[通道交易] - 1:净头寸 2:开平 3:平今
  169. marketid: number;//所属市场ID
  170. modifierid: number;//修改人
  171. modifytime: string;//修改时间
  172. outerdealmode: number;//外部成交方式[通道交易]- 1:净头寸 2:开平 3:平今
  173. outergroupcode: string;//外部商品组代码[通道交易]
  174. quoteminunit: number;//行情最小变动单位 [整数,报价小数位一起使用]
  175. quotesourcegroupid: number;//所属行情源分组ID[参考行情市场用\通道交易]
  176. syncgoodsqty: number;//同步合约数[通道交易-投资管理用] - number;
  177. //表示不限
  178. }
  179. /**
  180. * 套保品种
  181. */
  182. export interface ErmcpMiddleGoodsModel{
  183. areauserid :number;//机构用户ID
  184. createtime :string;//修改时间
  185. enumdicname :string;//单位名称
  186. evaluateratio :number;//估价系数
  187. goodsgroupid :number;//关联期货品种ID
  188. goodsunitid :number;//单位ID
  189. isvalid :number;//状态 number;
  190. //-无效(停用) 1-有效(正常)
  191. middlegoodscode :string;//套保品种代码
  192. middlegoodsid :number;//套保品种ID(SEQ_ERMS_MIDDLEGOODS)
  193. middlegoodsname :string;//套保品种名称
  194. modifytime :string;//修改时间
  195. needhedgeratio :number;//套保比率
  196. qtydecimalplace :number;//数量小数位
  197. relatedgoodsid :number;//关联交易商品ID
  198. relatedgoodstype :number;//关联商品类型 - 1:期货合约 2:现货品种
  199. remark :string;//备注
  200. }
  201. /**
  202. * 查询套保品种详情
  203. */
  204. export interface Ermcp3MiddleGoodsDetailEx{
  205. dglist: ErmcpDeliveryGoodsDetail2[] // 关联的现货品种列表
  206. gplist: Ermcp3GoodsGroupEx[] // 关联商品组列表
  207. mg: ErmcpMiddleGoodsModel[] //
  208. }
  209. /**
  210. * 关联的现货品种列表
  211. */
  212. export interface ErmcpDeliveryGoodsDetail2{
  213. convertratio: number // 套保系数(折算系数)
  214. data: ErmcpDeliveryGoods[]
  215. gblist: Ermcp3Brand[] // 品牌列表
  216. gmlist: Ermcp3Wrstandard[] // 品类列表(仓单标准)
  217. }
  218. interface MenuItem {
  219. key: string;
  220. title: string;
  221. }
  222. export interface MenuList extends MenuItem {
  223. children?: MenuItem[]
  224. }