|
@@ -1,5 +1,6 @@
|
|
|
|
|
|
|
|
/** ================================= 前海金相关接口 ================================**/
|
|
/** ================================= 前海金相关接口 ================================**/
|
|
|
|
|
+import { getSelectedAccountId } from "@/services/bus/account";
|
|
|
import { getUsrId } from "@/services/bus/user";
|
|
import { getUsrId } from "@/services/bus/user";
|
|
|
import { commonSearch_go } from "@/services/go";
|
|
import { commonSearch_go } from "@/services/go";
|
|
|
import {
|
|
import {
|
|
@@ -28,7 +29,7 @@ import {
|
|
|
export function queryTradeGoodsPickup(): Promise<QhjTradeGoodsPickup[]> {
|
|
export function queryTradeGoodsPickup(): Promise<QhjTradeGoodsPickup[]> {
|
|
|
const userid = getUsrId()
|
|
const userid = getUsrId()
|
|
|
return commonSearch_go('/Qhj/QueryTradeGoodsPickup', { userid }).catch((err) => {
|
|
return commonSearch_go('/Qhj/QueryTradeGoodsPickup', { userid }).catch((err) => {
|
|
|
- throw new Error(`查询提货: ${err.message}`);
|
|
|
|
|
|
|
+ throw new Error(`查询提货: ${err}`);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -39,7 +40,7 @@ export function queryTradeGoodsPickup(): Promise<QhjTradeGoodsPickup[]> {
|
|
|
*/
|
|
*/
|
|
|
export function queryAccountInOutApply(req: QueryAccountInOutApplyReq): Promise<QhjAccountOutInApply[]> {
|
|
export function queryAccountInOutApply(req: QueryAccountInOutApplyReq): Promise<QhjAccountOutInApply[]> {
|
|
|
return commonSearch_go('/Qhj/QueryAccountInOutApply', req).catch((err) => {
|
|
return commonSearch_go('/Qhj/QueryAccountInOutApply', req).catch((err) => {
|
|
|
- throw new Error(`查询充值提现: ${err.message}`);
|
|
|
|
|
|
|
+ throw new Error(`查询充值提现: ${err}`);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -50,7 +51,7 @@ export function queryAccountInOutApply(req: QueryAccountInOutApplyReq): Promise<
|
|
|
*/
|
|
*/
|
|
|
export function queryReckonPriceLog(req: QueryReckonPriceLogReq): Promise<QhjReckonPriceLog[]> {
|
|
export function queryReckonPriceLog(req: QueryReckonPriceLogReq): Promise<QhjReckonPriceLog[]> {
|
|
|
return commonSearch_go('/Qhj/QueryReckonPriceLog', req).catch((err) => {
|
|
return commonSearch_go('/Qhj/QueryReckonPriceLog', req).catch((err) => {
|
|
|
- throw new Error(`定投价查询: ${err.message}`);
|
|
|
|
|
|
|
+ throw new Error(`定投价查询: ${err}`);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -63,7 +64,7 @@ export function queryRSTriggerLog(status?: 1 | 2 | 3): Promise<QhjRSTriggerLog[]
|
|
|
const userid = getUsrId();
|
|
const userid = getUsrId();
|
|
|
const param = status ? { userid, status } : { userid }
|
|
const param = status ? { userid, status } : { userid }
|
|
|
return commonSearch_go('/Qhj/QueryRSTriggerLog', param).catch((err) => {
|
|
return commonSearch_go('/Qhj/QueryRSTriggerLog', param).catch((err) => {
|
|
|
- throw new Error(`查询定投记录: ${err.message}`);
|
|
|
|
|
|
|
+ throw new Error(`查询定投记录: ${err}`);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -76,7 +77,7 @@ export function queryRStrategy(status?: 1 | 2 | 3): Promise<QhjRStrategy[]> {
|
|
|
const userid = getUsrId();
|
|
const userid = getUsrId();
|
|
|
const param = status ? { userid, status } : { userid }
|
|
const param = status ? { userid, status } : { userid }
|
|
|
return commonSearch_go('/Qhj/QueryRStrategy', param).catch((err) => {
|
|
return commonSearch_go('/Qhj/QueryRStrategy', param).catch((err) => {
|
|
|
- throw new Error(`查询定投设置: ${err.message}`);
|
|
|
|
|
|
|
+ throw new Error(`查询定投设置: ${err}`);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -89,7 +90,7 @@ export function queryContract(scfcontractid?: number): Promise<QhjContract[]> {
|
|
|
const userid = getUsrId();
|
|
const userid = getUsrId();
|
|
|
const param = scfcontractid ? { userid, scfcontractid } : { userid }
|
|
const param = scfcontractid ? { userid, scfcontractid } : { userid }
|
|
|
return commonSearch_go('/Qhj/QueryContract', param).catch((err) => {
|
|
return commonSearch_go('/Qhj/QueryContract', param).catch((err) => {
|
|
|
- throw new Error(`查询融资明细(合同): ${err.message}`);
|
|
|
|
|
|
|
+ throw new Error(`查询融资明细(合同): ${err}`);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -104,7 +105,7 @@ export function queryCustomerInfo(req: QueryCustomerInfoReq): Promise<QhjCustome
|
|
|
console.log(req);
|
|
console.log(req);
|
|
|
|
|
|
|
|
return commonSearch_go('/Qhj/QueryCustomerInfo', req).catch((err) => {
|
|
return commonSearch_go('/Qhj/QueryCustomerInfo', req).catch((err) => {
|
|
|
- throw new Error(`查询客户资料: ${err.message}`);
|
|
|
|
|
|
|
+ throw new Error(`查询客户资料: ${err}`);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -117,7 +118,7 @@ export function queryCustomerInfo(req: QueryCustomerInfoReq): Promise<QhjCustome
|
|
|
export function queryParentAreaList(): Promise<QhjParentAreaList[]> {
|
|
export function queryParentAreaList(): Promise<QhjParentAreaList[]> {
|
|
|
const userid = getUsrId()
|
|
const userid = getUsrId()
|
|
|
return commonSearch_go('/Qhj/QueryParentAreaList', { userid }).catch((err) => {
|
|
return commonSearch_go('/Qhj/QueryParentAreaList', { userid }).catch((err) => {
|
|
|
- throw new Error(`查询所属机构列表: ${err.message}`);
|
|
|
|
|
|
|
+ throw new Error(`查询所属机构列表: ${err}`);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -129,7 +130,7 @@ export function queryParentAreaList(): Promise<QhjParentAreaList[]> {
|
|
|
export function queryPickGoods(status?: 1 | 2 | 3): Promise<QhjPickGoods[]> {
|
|
export function queryPickGoods(status?: 1 | 2 | 3): Promise<QhjPickGoods[]> {
|
|
|
const param = status ? { status } : {}
|
|
const param = status ? { status } : {}
|
|
|
return commonSearch_go('/Qhj/QueryPickGoods', param).catch((err) => {
|
|
return commonSearch_go('/Qhj/QueryPickGoods', param).catch((err) => {
|
|
|
- throw new Error(`查询所属机构列表: ${err.message}`);
|
|
|
|
|
|
|
+ throw new Error(`查询所属机构列表: ${err}`);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -139,8 +140,10 @@ export function queryPickGoods(status?: 1 | 2 | 3): Promise<QhjPickGoods[]> {
|
|
|
* @param req
|
|
* @param req
|
|
|
*/
|
|
*/
|
|
|
export function queryPayOrder(req: QueryPayOrderReq): Promise<QhjPayOrder[]> {
|
|
export function queryPayOrder(req: QueryPayOrderReq): Promise<QhjPayOrder[]> {
|
|
|
|
|
+ const accountid = getSelectedAccountId()?.toNumber()
|
|
|
|
|
+ req.accountid = accountid as number
|
|
|
return commonSearch_go('/Qhj/QueryPayOrder', req).catch((err) => {
|
|
return commonSearch_go('/Qhj/QueryPayOrder', req).catch((err) => {
|
|
|
- throw new Error(`查询待付款单据: ${err.message}`);
|
|
|
|
|
|
|
+ throw new Error(`查询待付款单据: ${err}`);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|