zhangpeng 4 gadi atpakaļ
vecāks
revīzija
b0c40b5f4f

+ 15 - 1
src/goServiceAPI/ermcp/exposure-report/index.ts

@@ -1 +1,15 @@
-/** ================================= 敞口报表 ================================**/
+/** ================================= 敞口报表 ================================**/
+
+import APP from '@/services';
+import * as type from './interface';
+import {commonSearch_go} from '@/goServiceAPI/index';
+import {QueryExposureDayReportReq} from "./interface";
+
+export async function QueryExposureDayReport(queryInfo:QueryExposureDayReportReq):Promise<type.QueryExposureDayReportRsp[]>
+{
+    try {
+        return commonSearch_go('/Ermcp/QueryReportDayExposure', { queryInfo });
+    } catch (err) {
+        throw new Error(err.message);
+    }
+}

+ 37 - 0
src/goServiceAPI/ermcp/exposure-report/interface.ts

@@ -0,0 +1,37 @@
+export interface QueryExposureDayReportReq{
+    userid:number;  
+    tradedate:string;   
+}
+
+export interface QueryExposureDayReportRsp{
+    areauserid:number;
+    buyfutureqty:number;
+    buyplanqty:number;
+    buypricedqty:number;
+    diffFutuqty:number;
+    diffSpotqty:number;
+    enumdicname:string;
+    middlegoodscode:string;
+    middlegoodshedgeratio:number;
+    middlegoodsid:number;
+    middlegoodsname:string;
+    needhedgeexposoure:number;
+    needhedgeratio:number;
+    oritotalFutuqty:number;
+    oritotalspotqty:number;
+    oribuyfutureqty:number;
+    oribuyplanqty:number;
+    oribuypricedqty:number;
+    orisellfutureqty:number;
+    orisellplanqty:number;
+    orisellpricedqty:number;
+    reckondate:string;
+    sellfutureqty:number;
+    sellplanqty:number;
+    sellpricedqty:number;
+    totalexposure:number;
+    totalfutureqty:number;
+    totalhedgeratio:number;
+    totalneedhedgeqty:number;
+    totalspotqty:number;   
+}

+ 12 - 2
src/goServiceAPI/ermcp/inventory-report/index.ts

@@ -3,11 +3,21 @@ import APP from '@/services';
 import * as type from './interface';
 import {commonSearch_go} from '@/goServiceAPI/index';
 import {QueryAreaStockReportReq} from "./interface";
+import {QueryAreaStockReportDetailReq} from "./interface";
 
-export async function QueryAreaStockReportReq(queryType:QueryAreaStockReportReq):Promise<type.QueryAreaStockReportRsp[]>
+export async function QueryAreaStockReport(queryInfo:QueryAreaStockReportReq):Promise<type.QueryAreaStockReportRsp[]>
 {
     try {
-        return commonSearch_go('/Ermcp3/QueryAreaStockReport', { queryType });
+        return commonSearch_go('/Ermcp3/QueryAreaStockReport', { queryInfo });
+    } catch (err) {
+        throw new Error(err.message);
+    }
+}
+
+export async function QueryAreaStockReportDetail(queryInfo:QueryAreaStockReportDetailReq):Promise<type.QueryAreaStockReportDetailRsp[]>
+{
+    try {
+        return commonSearch_go('/Ermcp3/QueryAreaStockReportDetail', { queryInfo });
     } catch (err) {
         throw new Error(err.message);
     }

+ 58 - 1
src/goServiceAPI/ermcp/inventory-report/interface.ts

@@ -39,4 +39,61 @@ warehousetype:number;
 wrstandardcode:string;
 wrstandardid:number;
 wrstandardname:string;
-}
+}
+
+export interface QueryAreaStockReportDetailReq{
+    userid:number;
+    querytype:number;
+    detailtype:number;
+    querydate:string;
+    deliverygoodsid?:number;
+    wrstandard?:number;
+    spotgoodsbrandid?:number;
+    warehouseinfoid?:number;
+}
+
+export interface QueryAreaStockReportDetailRsp{
+    applyid:number;
+    applyname:string;
+    applyremark:string;
+    applysrc:number;
+    applystatus:number;
+    applytime:string;
+    auditid:number;
+    auditname:string;
+    auditremark:string;
+    auditsrc:number;
+    audittime:string;
+    audittradedate:string;  
+    brandname:string;
+    buynickname:string;
+    buyuserid:number;
+    buyusername:string;
+    contractno:string;
+    contractqty:number;
+    contracttype:number;
+    deliverygoodscode:string;
+    deliverygoodsid:number;
+    deliverygoodsname:string;
+    enumdicname:string;
+    inoutapplyid:string;
+    inouttype:number;
+    pricetype:number;
+    qty:number;
+    sellnickname:string;
+    selluserid:number;
+    sellusername:string;
+    spotcontractid:string;
+    spotgoodsbrandid:number;
+    unitid:number;
+    //updatetime:string;
+    userid:number;
+    //username:string;
+    warehousecode:string;
+    warehouseinfoid:string;
+    warehousename:string;
+    warehousetype:number;
+    wrstandardcode:string;
+    wrstandardid:number;
+    wrstandardname:string;
+  }