|
|
@@ -1,7 +1,7 @@
|
|
|
/** ================================= 前海金相关接口 ================================**/
|
|
|
-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, QhjAgreementChangeLog, QhjAgreementConfig,
|
|
|
@@ -41,7 +41,7 @@ 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}`);
|
|
|
});
|
|
|
}
|
|
|
@@ -67,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}`);
|
|
|
});
|
|
|
@@ -81,7 +81,7 @@ 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}`);
|
|
|
});
|
|
|
@@ -107,7 +107,7 @@ export function queryContractLog(param: QueryContractLogReq): Promise<QueryContr
|
|
|
*/
|
|
|
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}`);
|
|
|
});
|
|
|
}
|
|
|
@@ -188,7 +188,7 @@ export function queryCustomerInfo(req: QueryContractLogReq): Promise<QhjCustomer
|
|
|
* @param req 状态(可多选,逗号隔开) - 1:正常 2:停用 3:注销
|
|
|
*/
|
|
|
export function queryPickGoods(status?: string): Promise<QhjPickGoods[]> {
|
|
|
- const param = status ? {status} : {}
|
|
|
+ const param = status ? { status } : {}
|
|
|
return commonSearch_go('/QhjMgr/QueryPickGoods', param).catch((err) => {
|
|
|
throw new Error(`查询提货商品: ${err}`);
|
|
|
});
|