| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- /** ================================= 前海金相关接口 ================================**/
- import { getUsrId } from "@/services/bus/user";
- import { commonSearch_go } from "@/services/go";
- import {
- QhjAccountOutInApply,
- QhjContract,
- QhjCustomer,
- QhjParentAreaList,
- QhjReckonPriceLog,
- QhjRStrategy,
- QhjRSTriggerLog,
- QhjTradeGoodsPickup,
- QueryAccountInOutApplyReq,
- QueryContractReq,
- QueryCustomerInfoReq,
- QueryReckonPriceLogReq,
- QueryRStrategyReq,
- QueryRSTriggerLogReq,
- QueryTradeGoodsPickupReq
- } from "@/services/go/ermcp/qhj/interface";
- /**
- * -- 铂金宝 - 提货查询
- * 查询提货 /Qhj/QueryTradeGoodsPickup
- * @constructor
- */
- export function queryTradeGoodsPickup(req: QueryTradeGoodsPickupReq): Promise<QhjTradeGoodsPickup[]> {
- return commonSearch_go('/Qhj/QueryTradeGoodsPickup', req).catch((err) => {
- throw new Error(`查询提货: ${err.message}`);
- });
- }
- /**
- * -- 铂金宝 - 充值提现审核 - 充值审核/提现审核
- * 查询充值提现 /Qhj/QueryAccountInOutApply
- * @param req
- */
- export function queryAccountInOutApply(req: QueryAccountInOutApplyReq): Promise<QhjAccountOutInApply[]> {
- return commonSearch_go('/Qhj/QueryAccountInOutApply', req).catch((err) => {
- throw new Error(`查询充值提现: ${err.message}`);
- });
- }
- /**
- * -- 铂金宝 - 定投价查询
- * 查询定投价(结算价) /Qhj/QueryReckonPriceLog
- * @param req
- */
- export function queryReckonPriceLog(req: QueryReckonPriceLogReq): Promise<QhjReckonPriceLog[]> {
- return commonSearch_go('/Qhj/QueryReckonPriceLog', req).catch((err) => {
- throw new Error(`定投价查询: ${err.message}`);
- });
- }
- /**
- * -- 铂金宝 - 定投查询 - 定投流水查询
- * 查询定投记录(定投管理/详情/定投记录) /Qhj/QueryRSTriggerLog
- * @param req
- */
- export function queryRSTriggerLog(req: QueryRSTriggerLogReq): Promise<QhjRSTriggerLog[]> {
- return commonSearch_go('/Qhj/QueryRSTriggerLog', req).catch((err) => {
- throw new Error(`查询定投记录: ${err.message}`);
- });
- }
- /**
- * -- 铂金宝 - 定投查询 - 定投计划查询
- * 查询定投设置(我的定投/历史定投[状态=已终止]) /Qhj/set feedback off
- * @param req
- */
- export function queryRStrategy(req: QueryRStrategyReq): Promise<QhjRStrategy[]> {
- return commonSearch_go('/Qhj/QueryRStrategy', req).catch((err) => {
- throw new Error(`查询定投设置: ${err.message}`);
- });
- }
- /**
- * -- 铂金宝 - 融资信息
- * 查询融资明细(合同) /Qhj/QueryContract
- * @param req
- */
- export function queryContract(req: QueryContractReq): Promise<QhjContract[]> {
- return commonSearch_go('/Qhj/QueryContract', req).catch((err) => {
- throw new Error(`查询融资明细(合同): ${err.message}`);
- });
- }
- /**
- * -- 铂金宝 - 客户资料
- * 查询客户资料 /Qhj/QueryCustomerInfo
- * @param req
- */
- export function queryCustomerInfo(req: QueryCustomerInfoReq): Promise<QhjCustomer> {
- return commonSearch_go('/Qhj/QueryCustomerInfo', req).catch((err) => {
- throw new Error(`查询客户资料: ${err.message}`);
- });
- }
- /**
- * -- 铂金宝 - 查询所属机构列表
- * 查询客户资料 /Qhj/QueryParentAreaList
- * @param req
- */
- export function queryParentAreaList(): Promise<QhjParentAreaList[]> {
- const userid = getUsrId()
- return commonSearch_go('/Qhj/QueryParentAreaList', { userid }).catch((err) => {
- throw new Error(`查询所属机构列表: ${err.message}`);
- });
- }
|