|
|
@@ -1,13 +1,12 @@
|
|
|
-
|
|
|
/** ================================= 前海金相关接口 ================================**/
|
|
|
-import { getSelectedAccountId } from "@/services/bus/account";
|
|
|
-import { getUsrId } from "@/services/bus/user";
|
|
|
-import { commonSearch_go } from "@/services/go";
|
|
|
+import {getSelectedAccountId} from "@/services/bus/account";
|
|
|
+import {getUsrId} from "@/services/bus/user";
|
|
|
+import {commonSearch_go} from "@/services/go";
|
|
|
import {
|
|
|
Ermcp3SpotGoodsPrice, Ermcp3SpotGoodsPriceLog,
|
|
|
- QhjAccountOutInApply,
|
|
|
+ QhjAccountOutInApply, QhjAgreementChangeLog, QhjAgreementConfig,
|
|
|
QhjContract,
|
|
|
- QhjCustomer,
|
|
|
+ QhjCustomer, QhjCustomerSignStatus,
|
|
|
QhjMgrPosition,
|
|
|
QhjMgrSubArea, QhjMgrTradeDetailRsp,
|
|
|
QhjMgrTradeOrderDetailRsp,
|
|
|
@@ -21,10 +20,9 @@ import {
|
|
|
QhjRStrategy,
|
|
|
QhjRSTriggerLog,
|
|
|
QhjTradeGoodsPickup,
|
|
|
- QueryAccountInOutApplyReq,
|
|
|
+ QueryAccountInOutApplyReq, QueryAgreementChangeLogReq, QueryAgreementConfigReq,
|
|
|
QueryContractLogReq,
|
|
|
- QueryContractLogRsp,
|
|
|
-
|
|
|
+ QueryContractLogRsp, QueryCustomerSignStatusReq,
|
|
|
|
|
|
|
|
|
QueryPayOrderReq,
|
|
|
@@ -43,22 +41,11 @@ import {
|
|
|
*/
|
|
|
export function queryTradeGoodsPickup(): Promise<QhjTradeGoodsPickup[]> {
|
|
|
const userid = getUsrId()
|
|
|
- return commonSearch_go('/Qhj/QueryTradeGoodsPickup', { userid }).catch((err) => {
|
|
|
+ return commonSearch_go('/Qhj/QueryTradeGoodsPickup', {userid}).catch((err) => {
|
|
|
throw new Error(`查询提货: ${err}`);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- *
|
|
|
- * -- 铂金宝 - 充值提现审核 - 充值审核/提现审核
|
|
|
- * 查询充值提现 /QhjMgr/QueryAccountInOutApply
|
|
|
- * @param req
|
|
|
- */
|
|
|
-export function queryAccountInOutApply(req: QueryAccountInOutApplyReq): Promise<QhjAccountOutInApply[]> {
|
|
|
- return commonSearch_go('/QhjMgr/QueryAccountInOutApply', req).catch((err) => {
|
|
|
- throw new Error(`查询充值提现: ${err}`);
|
|
|
- });
|
|
|
-}
|
|
|
|
|
|
/**
|
|
|
* -- 铂金宝 - 定投价查询
|
|
|
@@ -80,7 +67,7 @@ export function queryRSTriggerLog(status?: 1 | 2 | 3): Promise<QhjRSTriggerLog[]
|
|
|
// fixme 不传userid
|
|
|
// const userid = getUsrId();
|
|
|
// const param = status ? { userid, status } : { userid }
|
|
|
- const param = status ? { status } : {}
|
|
|
+ const param = status ? {status} : {}
|
|
|
return commonSearch_go('/Qhj/QueryRSTriggerLog', param).catch((err) => {
|
|
|
throw new Error(`查询定投记录: ${err}`);
|
|
|
});
|
|
|
@@ -94,22 +81,13 @@ export function queryRSTriggerLog(status?: 1 | 2 | 3): Promise<QhjRSTriggerLog[]
|
|
|
export function queryRStrategy(status?: 1 | 2 | 3): Promise<QhjRStrategy[]> {
|
|
|
// fixme 不传userid
|
|
|
// const userid = getUsrId();
|
|
|
- const param = status ? { status } : {}
|
|
|
+ const param = status ? {status} : {}
|
|
|
return commonSearch_go('/Qhj/QueryRStrategy', param).catch((err) => {
|
|
|
throw new Error(`查询定投设置: ${err}`);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * -- 铂金宝 - 融资信息
|
|
|
- * 查询融资明细(合同) /QhjMgr/QueryContract
|
|
|
- * @param 合同id
|
|
|
- */
|
|
|
-export function queryContract(scfcontractid?: number): Promise<QhjContract[]> {
|
|
|
- return commonSearch_go('/QhjMgr/QueryContract', {}).catch((err) => {
|
|
|
- throw new Error(`查询融资明细(合同): ${err}`);
|
|
|
- });
|
|
|
-}
|
|
|
+
|
|
|
/**
|
|
|
* -- 铂金宝 - 融资明细流水
|
|
|
* 查询融资明细流水(融资明细详情页中的流水) /Qhj/QueryContractLog
|
|
|
@@ -121,17 +99,6 @@ export function queryContractLog(param: QueryContractLogReq): Promise<QueryContr
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * -- 铂金宝 - 客户资料
|
|
|
- * 查询客户资料 /QhjMgr/QueryCustomerInfo
|
|
|
- * @param req
|
|
|
- */
|
|
|
-export function queryCustomerInfo(req: QueryContractLogReq): Promise<QhjCustomer[]> {
|
|
|
- return commonSearch_go('/QhjMgr/QueryCustomerInfo', req).catch((err) => {
|
|
|
- throw new Error(`查询客户资料: ${err}`);
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
* -- 铂金宝 - 查询所属机构列表
|
|
|
@@ -140,24 +107,12 @@ export function queryCustomerInfo(req: QueryContractLogReq): Promise<QhjCustomer
|
|
|
*/
|
|
|
export function queryParentAreaList(): Promise<QhjParentAreaList[]> {
|
|
|
const userid = getUsrId()
|
|
|
- return commonSearch_go('/Qhj/QueryParentAreaList', { userid }).catch((err) => {
|
|
|
+ return commonSearch_go('/Qhj/QueryParentAreaList', {userid}).catch((err) => {
|
|
|
throw new Error(`查询所属机构列表: ${err}`);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * -- 铂金宝 - 查询提货商品
|
|
|
- * 查询客户资料 /Qhj/QueryPickGoods
|
|
|
- * @param req 状态(可多选,逗号隔开) - 1:正常 2:停用 3:注销
|
|
|
- */
|
|
|
-export function queryPickGoods(status?: string): Promise<QhjPickGoods[]> {
|
|
|
- const param = status ? { status } : {}
|
|
|
- return commonSearch_go('/QhjMgr/QueryPickGoods', param).catch((err) => {
|
|
|
- throw new Error(`查询提货商品: ${err}`);
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
* -- 铂金宝 - 查询待付款单据
|
|
|
* 查询客户资料 /Qhj/QueryPayOrder
|
|
|
* @param req
|
|
|
@@ -170,6 +125,75 @@ export function queryPayOrder(req: QueryPayOrderReq): Promise<QhjPayOrder[]> {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+/****************** (Ermcp3) ****************/
|
|
|
+
|
|
|
+/**
|
|
|
+ * -- 查询现货市价(现货市价)
|
|
|
+ * /Ermcp3/QuerySpotGoodsPrice
|
|
|
+ */
|
|
|
+export function querySpotGoodsPrice(req: QuerySpotGoodsPrice): Promise<Ermcp3SpotGoodsPrice[]> {
|
|
|
+ return commonSearch_go('/Ermcp3/QuerySpotGoodsPrice', req).catch((err) => {
|
|
|
+ throw new Error(`查询现货市价: ${err}`);
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 查询现货市价详情(现货市价/详情)
|
|
|
+ * /Ermcp3/QuerySpotGoodsPriceLog
|
|
|
+ */
|
|
|
+export function querySpotGoodsPriceLog(req: QuerySpotGoodsPriceLogReq): Promise<Ermcp3SpotGoodsPriceLog[]> {
|
|
|
+ return commonSearch_go('/Ermcp3/QuerySpotGoodsPriceLog', req).catch((err) => {
|
|
|
+ throw new Error(`查询现货市价详情: ${err}`);
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/****************** 大连千海金(PCWeb) (QhjMgr)*******************************/
|
|
|
+
|
|
|
+/**
|
|
|
+ * -- 铂金宝 - 充值提现审核 - 充值审核/提现审核
|
|
|
+ * 查询充值提现 /QhjMgr/QueryAccountInOutApply
|
|
|
+ * @param req
|
|
|
+ */
|
|
|
+export function queryAccountInOutApply(req: QueryAccountInOutApplyReq): Promise<QhjAccountOutInApply[]> {
|
|
|
+ return commonSearch_go('/QhjMgr/QueryAccountInOutApply', req).catch((err) => {
|
|
|
+ throw new Error(`查询充值提现: ${err}`);
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * -- 铂金宝 - 融资信息
|
|
|
+ * 查询融资明细(合同) /QhjMgr/QueryContract
|
|
|
+ * @param 合同id
|
|
|
+ */
|
|
|
+export function queryContract(scfcontractid?: number): Promise<QhjContract[]> {
|
|
|
+ return commonSearch_go('/QhjMgr/QueryContract', {}).catch((err) => {
|
|
|
+ throw new Error(`查询融资明细(合同): ${err}`);
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * -- 铂金宝 - 客户资料
|
|
|
+ * 查询客户资料 /QhjMgr/QueryCustomerInfo
|
|
|
+ * @param req
|
|
|
+ */
|
|
|
+export function queryCustomerInfo(req: QueryContractLogReq): Promise<QhjCustomer[]> {
|
|
|
+ return commonSearch_go('/QhjMgr/QueryCustomerInfo', req).catch((err) => {
|
|
|
+ throw new Error(`查询客户资料: ${err}`);
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * -- 铂金宝 - 查询提货商品
|
|
|
+ * 查询客户资料 /QhjMgr/QueryPickGoods
|
|
|
+ * @param req 状态(可多选,逗号隔开) - 1:正常 2:停用 3:注销
|
|
|
+ */
|
|
|
+export function queryPickGoods(status?: string): Promise<QhjPickGoods[]> {
|
|
|
+ const param = status ? {status} : {}
|
|
|
+ return commonSearch_go('/QhjMgr/QueryPickGoods', param).catch((err) => {
|
|
|
+ throw new Error(`查询提货商品: ${err}`);
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* -- 铂金宝 - 查询子机构列表
|
|
|
* 查询子机构列表 /QhjMgr/QuerySubArea
|
|
|
@@ -182,11 +206,12 @@ export function querySubArea(req: QuerySubAreaReq): Promise<QhjMgrSubArea[]> {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * -- 铂金宝 -- 单据查询 -- 持仓
|
|
|
- * /QhjMgr/QueryTradePosition
|
|
|
+ * -- 铂金宝 -- 单据查询 -- 成交单
|
|
|
+ * 查询成交明细 /QhjMgr/QueryTradeDetail
|
|
|
+ * @param req
|
|
|
*/
|
|
|
-export function queryTradePosition(req: QueryTradePositionReq): Promise<QhjMgrPosition[]> {
|
|
|
- return commonSearch_go('/QhjMgr/QueryTradePosition', req).catch((err) => {
|
|
|
+export function queryTradeDetail(req: QueryTradeDetailReq): Promise<QhjMgrTradeDetailRsp[]> {
|
|
|
+ return commonSearch_go('/QhjMgr/QueryTradeDetail', req).catch((err) => {
|
|
|
throw new Error(`查询持仓汇总: ${err}`);
|
|
|
});
|
|
|
}
|
|
|
@@ -214,32 +239,43 @@ export function queryTradePayOrder(req: QueryTradePayOrderReq): Promise<QhjMgrTr
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * -- 铂金宝 -- 单据查询 -- 成交单
|
|
|
- * 查询成交明细 /QhjMgr/QueryTradeDetail
|
|
|
- * @param req
|
|
|
+ * -- 铂金宝 -- 单据查询 -- 持仓
|
|
|
+ * /QhjMgr/QueryTradePosition
|
|
|
*/
|
|
|
-export function queryTradeDetail(req: QueryTradeDetailReq): Promise<QhjMgrTradeDetailRsp[]> {
|
|
|
- return commonSearch_go('/QhjMgr/QueryTradeDetail', req).catch((err) => {
|
|
|
+export function queryTradePosition(req: QueryTradePositionReq): Promise<QhjMgrPosition[]> {
|
|
|
+ return commonSearch_go('/QhjMgr/QueryTradePosition', req).catch((err) => {
|
|
|
throw new Error(`查询持仓汇总: ${err}`);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+/****************** 大连千海金(协议和签约信息)(QhjSys) *********************/
|
|
|
+
|
|
|
/**
|
|
|
- * -- 查询现货市价(现货市价)
|
|
|
- * /Ermcp3/QuerySpotGoodsPrice
|
|
|
+ * 查询协议配置变更流水
|
|
|
+ * /QhjSys/QueryAgreementChangeLog
|
|
|
*/
|
|
|
-export function querySpotGoodsPrice(req: QuerySpotGoodsPrice): Promise<Ermcp3SpotGoodsPrice[]> {
|
|
|
- return commonSearch_go('/Ermcp3/QuerySpotGoodsPrice', req).catch((err) => {
|
|
|
- throw new Error(`查询现货市价: ${err}`);
|
|
|
+export function queryAgreementChangeLog(req: QueryAgreementChangeLogReq): Promise<QhjAgreementChangeLog[]> {
|
|
|
+ return commonSearch_go('/QhjSys/QueryAgreementChangeLog', req).catch((err) => {
|
|
|
+ throw new Error(`查询协议配置变更流水: ${err}`);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 查询现货市价详情(现货市价/详情)
|
|
|
- * /Ermcp3/QuerySpotGoodsPriceLog
|
|
|
+ * 查询协议配置
|
|
|
+ * /QhjSys/QueryAgreementConfig
|
|
|
*/
|
|
|
-export function querySpotGoodsPriceLog(req: QuerySpotGoodsPriceLogReq): Promise<Ermcp3SpotGoodsPriceLog[]> {
|
|
|
- return commonSearch_go('/Ermcp3/QuerySpotGoodsPriceLog', req).catch((err) => {
|
|
|
- throw new Error(`查询现货市价详情: ${err}`);
|
|
|
+export function queryAgreementConfig(req: QueryAgreementConfigReq): Promise<QhjAgreementConfig[]> {
|
|
|
+ return commonSearch_go('/QhjSys/QueryAgreementConfig', req).catch((err) => {
|
|
|
+ throw new Error(`查询协议配置: ${err}`);
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 查询客户协议签约状态
|
|
|
+ * /QhjSys/QueryCustomerSignStatus
|
|
|
+ */
|
|
|
+export function queryCustomerSignStatus(req: QueryCustomerSignStatusReq): Promise<QhjCustomerSignStatus[]> {
|
|
|
+ return commonSearch_go('/QhjSys/QueryCustomerSignStatus', req).catch((err) => {
|
|
|
+ throw new Error(`查询客户协议签约状态: ${err}`);
|
|
|
});
|
|
|
}
|