index.ts 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. import httpClient from '@/services/http'
  2. import { CommonFetchOptions } from '@/services/http/types'
  3. import { useUserStore } from '@/stores'
  4. const userStore = useUserStore()
  5. /**
  6. * 委托单查询
  7. */
  8. export function queryCommissionSheet(options: CommonFetchOptions<{ request: Partial<Model.CommissionSheetReq>; response: Model.CommissionSheetRsp[]; }>) {
  9. if (options.data) {
  10. options.data.orgztypes = userStore.userInfo.orgztypes
  11. }
  12. return httpClient.commonRequest('/query/commissionSheet', 'get', options)
  13. }
  14. /**
  15. * 委托单详情
  16. */
  17. export function queryCommissionSheetDetail(options: CommonFetchOptions<{ request: Model.CommissionSheetDetailReq; response: Model.CommissionSheetDetailRsp; }>) {
  18. return httpClient.commonRequest('/query/commissionSheetDetail', 'get', options)
  19. }
  20. /**
  21. * 委托单导出
  22. */
  23. export function commissionExport(options: CommonFetchOptions<{ request: Model.CommissionSheetReq; response: string; }>) {
  24. return httpClient.commonRequest('/query/commissionExport', 'get', options)
  25. }
  26. /**
  27. * 成交单查询
  28. */
  29. export function queryContractSheet(options: CommonFetchOptions<{ request: Partial<Model.ContractSheetReq>; response: Model.ContractSheetRsp[]; }>) {
  30. if (options.data) {
  31. options.data.orgztypes = userStore.userInfo.orgztypes
  32. }
  33. return httpClient.commonRequest('/query/contractSheet', 'get', options)
  34. }
  35. /**
  36. * 成交单详情查询
  37. */
  38. export function queryContractSheetDetailDetail(options: CommonFetchOptions<{ request: Model.ContractSheetDetailReq; response: Model.ContractSheetDetailRsp; }>) {
  39. return httpClient.commonRequest('/query/contractSheetDetail', 'get', options)
  40. }
  41. /**
  42. * 成交单导出
  43. */
  44. export function contractExport(options: CommonFetchOptions<{ request: Model.ContractSheetReq; response: string; }>) {
  45. return httpClient.commonRequest('/query/contractExport', 'get', options)
  46. }
  47. /**
  48. * 持仓单查询
  49. */
  50. export function queryPositionSheet(options: CommonFetchOptions<{ request: Partial<Model.PositionSheetReq>; response: Model.PositionSheetRsp[]; }>) {
  51. if (options.data) {
  52. options.data.orgztypes = userStore.userInfo.orgztypes
  53. }
  54. return httpClient.commonRequest('/query/positionSheet', 'get', options)
  55. }
  56. /**
  57. * 持仓单详情查询
  58. */
  59. export function queryPositionSheetDetail(options: CommonFetchOptions<{ request: Model.PositionSheetDetailReq; response: Model.PositionSheetDetailRsp; }>) {
  60. return httpClient.commonRequest('/query/positionSheetDetail', 'get', options)
  61. }
  62. /**
  63. * 持仓单导出
  64. */
  65. export function positionExport(options: CommonFetchOptions<{ request: Model.PositionSheetReq; response: string; }>) {
  66. return httpClient.commonRequest('/query/positionExport', 'get', options)
  67. }
  68. /**
  69. * 持仓单汇总查询
  70. */
  71. export function queryPositionSumSheet(options: CommonFetchOptions<{ request: Model.PositionSumSheetReq; response: Model.PositionSumSheetRsp[]; }>) {
  72. return httpClient.commonRequest('/query/positionSumSheet', 'get', options)
  73. }
  74. /**
  75. * 持仓单汇总导出
  76. */
  77. export function positionSumSheetExport(options: CommonFetchOptions<{ request: Model.PositionSumSheetReq; response: string; }>) {
  78. return httpClient.commonRequest('/query/positionSumSheetExport', 'get', options)
  79. }
  80. /**
  81. * 内部订单查询--> 商品成交汇总 --> 获取列表
  82. */
  83. export function queryGoodsTrade(options: CommonFetchOptions<{ request: Model.GoodsTradeReq; response: Model.GoodsTradeRsp[]; }>) {
  84. return httpClient.commonRequest('/query/queryGoodsTrade', 'get', options)
  85. }
  86. /**
  87. * 内部订单查询--> 商品成交汇总 --> 导出
  88. */
  89. export function queryGoodsTradeExport(options: CommonFetchOptions<{ request: Model.PositionSumSheetReq; response: string; }>) {
  90. return httpClient.commonRequest('/query/queryGoodsTradeExport', 'get', options)
  91. }
  92. /**
  93. * 内部订单查询--> 账户成交汇总 --> 获取列表
  94. */
  95. export function accountTransactions(options: CommonFetchOptions<{ request: Model.AccountTransactionsReq; response: Model.AccountTransactionsRsp[]; }>) {
  96. return httpClient.commonRequest('/query/accountTransactions', 'get', options)
  97. }
  98. /**
  99. * 内部订单查询--> 账户成交汇总 --> 导出
  100. */
  101. export function accountExport(options: CommonFetchOptions<{ request: Model.AaccountExportReq; response: string; }>) {
  102. return httpClient.commonRequest('/query/accountExport', 'get', options)
  103. }
  104. /**
  105. * 仓单查询--> 仓单汇总查询查询 --> 初始化仓单标准以及仓库
  106. */
  107. export function initWarehouse(options: CommonFetchOptions<{ response: Model.InitWarehouseRsp; }>) {
  108. return httpClient.commonRequest('/query/initWarehouse', 'get', options)
  109. }
  110. /**
  111. * 内部订单查询--> 机构成交汇总 --> 获取列表
  112. */
  113. export function queryInvestor(options: CommonFetchOptions<{ request: Model.InvestorOrderReq; response: Model.InvestorOrderRsp[]; }>) {
  114. return httpClient.commonRequest('/query/queryInvestor', 'get', options)
  115. }
  116. /**
  117. * 仓单类订单查询--> 成交单查询 --> 获取列表
  118. */
  119. export function queryTradeOrder(options: CommonFetchOptions<{ request: Model.TradeOrderReq; response: Model.TradeOrderRsp[]; }>) {
  120. return httpClient.commonRequest('/query/queryTradeOrder', 'get', options)
  121. }
  122. /**
  123. * 仓单查询--> 仓单汇总查询查询 --> 获取列表
  124. */
  125. export function summaryQuery(options: CommonFetchOptions<{ request: Model.SummaryQueryReq; response: Model.SummaryQueryRsp[]; }>) {
  126. return httpClient.commonRequest('/query/summaryQuery', 'get', options)
  127. }
  128. /**
  129. * 仓单查询--> 仓单汇总查询查询 --> 详情
  130. */
  131. export function summaryQueryDetail(options: CommonFetchOptions<{ request: Model.SummaryQueryDetailReq; response: Model.SummaryQueryDetailRsp[]; }>) {
  132. return httpClient.commonRequest('/query/summaryQueryDetail', 'get', options)
  133. }
  134. /**
  135. * 仓单查询--> 仓单汇总查询查询 --> 详情 --> 初始化持有人
  136. */
  137. export function summaryQueryInit(options: CommonFetchOptions<{ response: Model.SummaryQueryInitRsp[]; }>) {
  138. return httpClient.commonRequest('/query/summaryQueryInit', 'get', options)
  139. }
  140. /**
  141. * 仓单类订单查询--> 成交单查询 --> 导出
  142. */
  143. export function tradeOrderExport(options: CommonFetchOptions<{ request: Model.TradeOrderExportReq; response: string; }>) {
  144. return httpClient.commonRequest('/query/tradeOrderExport', 'get', options)
  145. }
  146. /**
  147. * 仓单类订单查询--> 委托单查询 --> 详情
  148. */
  149. export function tradeOrderView(options: CommonFetchOptions<{ request: Model.TradeOrderViewReq; response: Model.TradeOrderViewRsp; }>) {
  150. return httpClient.commonRequest('/query/tradeOrderView', 'get', options)
  151. }
  152. /**
  153. * 仓单类订单查询--> 成交单查询 --> 详情
  154. */
  155. export function tradeTradedView(options: CommonFetchOptions<{ request: Model.TradeTradedViewReq; response: Model.TradeTradedViewRsp; }>) {
  156. return httpClient.commonRequest('/query/tradeTradedView', 'get', options)
  157. }
  158. /**
  159. * 仓单类订单查询--> 委托单查询 --> 导出
  160. */
  161. export function warehouseExport(options: CommonFetchOptions<{ request: Model.WarehouseExportReq; response: string; }>) {
  162. return httpClient.commonRequest('/query/warehouseExport', 'get', options)
  163. }
  164. /**
  165. * 仓单类订单查询--> 委托单查询 --> 获取列表
  166. */
  167. export function warehouseQuery(options: CommonFetchOptions<{ request: Model.WarehouseQueryReq; response: Model.WarehouseQueryRsp[]; }>) {
  168. return httpClient.commonRequest('/query/warehouseQuery', 'get', options)
  169. }
  170. /**
  171. * 内部订单查询--> 成交汇总查询 --> 获取列表
  172. */
  173. export function queryTradeSum(options: CommonFetchOptions<{ request: Model.TradeSumReq; response: Model.TradeSumRsp[]; }>) {
  174. return httpClient.commonRequest('/query/queryTradeSum', 'get', options)
  175. }
  176. /**
  177. * 内部订单查询--> 成交汇总查询 --> 导出列表
  178. */
  179. export function exportTradeSum(options: CommonFetchOptions<{ request: Model.TradeSumReq; response: string; }>) {
  180. return httpClient.commonRequest('/query/exportTradeSum', 'get', options)
  181. }
  182. /**
  183. * 内部订单查询--> 交收委托查询 --> 获取列表
  184. */
  185. export function queryDeliveryOrder(options: CommonFetchOptions<{ request: Model.DeliveryOrderReq; response: Model.DeliveryOrderRsp[]; }>) {
  186. return httpClient.commonRequest('/query/queryDeliveryOrder', 'get', options)
  187. }
  188. /**
  189. * 内部订单查询--> 交收委托查询 --> 交收委托详情
  190. */
  191. export function queryDeliveryOrderDetail(options: CommonFetchOptions<{ request: Model.DeliveryOrderDetailReq; response: Model.DeliveryOrderDetailRsp; }>) {
  192. return httpClient.commonRequest('/query/deliveryOrderDetail', 'get', options)
  193. }
  194. /**
  195. * 内部订单查询--> 交收成交 --> 获取列表
  196. */
  197. export function querySettlementDeal(options: CommonFetchOptions<{ request: Model.SettlementDealReq; response: Model.SettlementDealRsp[]; }>) {
  198. return httpClient.commonRequest('/query/querySettlementDeal', 'get', options)
  199. }
  200. /**
  201. * 内部订单查询--> 交收成交 --> 交收成交详情
  202. */
  203. export function querySettlementDealDetail(options: CommonFetchOptions<{ request: Model.SettlementDealDetailReq; response: Model.SettlementDealDetailRsp; }>) {
  204. return httpClient.commonRequest('/query/settlementDealDetail', 'get', options)
  205. }
  206. /**
  207. * 内部订单查询--> 线下交收单查询 --> 获取列表
  208. */
  209. export function queryOffline(options: CommonFetchOptions<{ request: Model.OfflineReq; response: Model.OfflineRsp[]; }>) {
  210. return httpClient.commonRequest('/query/queryoffline', 'get', options)
  211. }
  212. /**
  213. * 内部订单查询--> 线下交收单查询 --> 详情
  214. */
  215. export function queryOfflineDetail(options: CommonFetchOptions<{ request: Model.OfflineDetailReq; response: Model.OfflineDetailRsp; }>) {
  216. return httpClient.commonRequest('/query/offlinedetail', 'get', options)
  217. }
  218. /**
  219. * 内部订单查询--> 线下交收单查询 --> 导出
  220. */
  221. export function offlineExport(options: CommonFetchOptions<{ request: Model.OfflineReq; response: string; }>) {
  222. return httpClient.commonRequest('/query/offlineexport', 'get', options)
  223. }
  224. /**
  225. * 内部订单查询--> 线下交收单查询 --> 确认交收
  226. */
  227. export function offlineClose(options: CommonFetchOptions<{ request: Model.OfflineCloseReq; }>) {
  228. return httpClient.commonRequest('/query/offlineclose', 'get', options)
  229. }
  230. /**
  231. * 内部订单查询--> 线下交收单查询 --> 交收失败
  232. */
  233. export function offlineFail(options: CommonFetchOptions<{ request: Model.OfflineFailReq; }>) {
  234. return httpClient.commonRequest('/query/offlinefail', 'get', options)
  235. }
  236. /**
  237. * 内部订单查询--> 线下交收单查询 --> 交收付款
  238. */
  239. export function sellGoods(options: CommonFetchOptions<{ request: Model.SellGoodsReq; }>) {
  240. return httpClient.commonRequest('/query/sellGoods', 'get', options)
  241. }
  242. /**
  243. * 订单管理--> 订单监控 --> 获取列表
  244. */
  245. export function monitorddjk(options: CommonFetchOptions<{ request: Model.MonitorddjkReq; response: Model.MonitorddjkRsp[]; }>) {
  246. return httpClient.commonRequest('/queryOrder/monitorddjk', 'get', options)
  247. }
  248. /**
  249. * 订单管理--> 订单监控 --> 获取总数居
  250. */
  251. export function monitorddjkCount(options: CommonFetchOptions<{ request: Omit<Model.MonitorddjkReq, 'pageNum' | 'pageSize'>; response: Model.MonitorddjkCountRsp; }>) {
  252. return httpClient.commonRequest('/queryOrder/monitorddjkCount', 'get', options)
  253. }
  254. /**
  255. * 订单管理--> 订单查询 --> 获取列表
  256. */
  257. export function queryOrder(options: CommonFetchOptions<{ request: Model.OrderReq; response: Model.OrderRsp[]; }>) {
  258. return httpClient.commonRequest('/queryOrder/query', 'get', options)
  259. }
  260. /**
  261. * 订单管理--> 订单查询 --> 获取详情
  262. */
  263. export function queryOrderDetail(options: CommonFetchOptions<{ request: Model.OrderDetailReq; response: Model.OrderDetailRsp; }>) {
  264. return httpClient.commonRequest('/queryOrder/queryDetail', 'get', options)
  265. }
  266. /**
  267. * 订单管理--> 订单查询 --> 导出
  268. */
  269. export function orderExport(options: CommonFetchOptions<{ request: Model.OrderReq; response: string; }>) {
  270. return httpClient.commonRequest('/queryOrder/export', 'get', options)
  271. }
  272. /**
  273. * 订单管理--> 终止单查询 --> 获取列表
  274. */
  275. export function queryTerOrder(options: CommonFetchOptions<{ request: Model.TerOrderReq; response: Model.TerOrderRsp[]; }>) {
  276. return httpClient.commonRequest('/queryOrder/queryTerOrder', 'get', options)
  277. }
  278. /**
  279. * 订单管理--> 终止单查询 --> 获取列表
  280. */
  281. export function terOrderExport(options: CommonFetchOptions<{ request: Model.TerOrderReq; response: string; }>) {
  282. return httpClient.commonRequest('/queryOrder/terOrderExport', 'get', options)
  283. }
  284. /**
  285. * 订单管理--> 强制终止单 --> 获取列表
  286. */
  287. export function queryForcedOrder(options: CommonFetchOptions<{ request: Model.ForcedOrderReq; response: Model.ForcedOrderRsp[]; }>) {
  288. return httpClient.commonRequest('/queryOrder/queryForcedOrder', 'get', options)
  289. }
  290. /**
  291. * 订单管理--> 强制终止单 --> 斩仓恢复
  292. */
  293. export function forcedOrderRecover(options: CommonFetchOptions<{ request: Model.ForcedOrderRecoverReq; }>) {
  294. return httpClient.commonRequest('/queryOrder/forcedOrderRecover', 'get', options)
  295. }
  296. /**
  297. * 订单管理--> 强制终止单 --> 导出
  298. */
  299. export function forcedOrderExport(options: CommonFetchOptions<{ request: Model.ForcedOrderReq; response: string; }>) {
  300. return httpClient.commonRequest('/queryOrder/forcedOrderExport', 'get', options)
  301. }
  302. /**
  303. * 订单管理--> 交收单管理 --> 获取列表
  304. */
  305. export function queryDeliveryOrderList(options: CommonFetchOptions<{ request: Model.DeliveryOrderListReq; response: Model.DeliveryOrderListRsp[]; }>) {
  306. return httpClient.commonRequest('/queryOrder/queryDeliveryOrder', 'get', options)
  307. }
  308. /**
  309. * 订单管理--> 交收单管理 --> 获取详情
  310. */
  311. export function queryDeliveryOrderListDetail(options: CommonFetchOptions<{ request: Model.DeliveryOrderListDetailReq; response: Model.DeliveryOrderListDetailRsp; }>) {
  312. return httpClient.commonRequest('/queryOrder/deliveryOrderDetail', 'get', options)
  313. }
  314. /**
  315. * 订单管理--> 交收单管理 --> 导出
  316. */
  317. export function deliveryOrderListExport(options: CommonFetchOptions<{ request: Model.DeliveryOrderListReq; response: string; }>) {
  318. return httpClient.commonRequest('/queryOrder/deliveryOrderExport', 'get', options)
  319. }
  320. /**
  321. * 订单管理--> 订单日报表 --> 获取列表
  322. */
  323. export function queryOrderDate(options: CommonFetchOptions<{ request: Model.OrderDateReq; response: Model.OrderDateRsp[]; }>) {
  324. return httpClient.commonRequest('/queryOrder/queryOrderDate', 'get', options)
  325. }
  326. /**
  327. * 订单管理--> 订单日报表 --> 导出
  328. */
  329. export function orderDateExport(options: CommonFetchOptions<{ request: Model.OrderDateReq; response: string; }>) {
  330. return httpClient.commonRequest('/queryOrder/orderDateExport', 'get', options)
  331. }
  332. /**
  333. * 其他查询--> 交易商资金查询、机构资金查询--> 获取列表
  334. */
  335. export function queryinvestor(options: CommonFetchOptions<{ request: Model.InvestorReq; response: Model.InvestorRsp[]; }>) {
  336. return httpClient.commonRequest('/query/queryinvestor', 'get', options)
  337. }