فهرست منبع

Merge branch 'master' of http://47.101.159.18:3000/Muchinfo/MTP2.0_WEB

huangbin 4 سال پیش
والد
کامیت
110053d2ff
2فایلهای تغییر یافته به همراه27 افزوده شده و 1 حذف شده
  1. 16 1
      src/services/go/ermcp/warehouse-info/index.ts
  2. 11 0
      src/services/go/ermcp/warehouse-info/interface.ts

+ 16 - 1
src/services/go/ermcp/warehouse-info/index.ts

@@ -1,7 +1,11 @@
 /** ================================= 仓库信息 ================================**/
 import { getUserId } from '@/services/bus/account';
 import { commonSearch_go } from '@/services/go';
-import { Ermcp3AreaStock, ErmcpWareHouseInfo } from '@/services/go/ermcp/warehouse-info/interface';
+import {
+    Ermcp3AreaStock,
+    Ermcp3AreaStockApplySum,
+    ErmcpWareHouseInfo
+} from '@/services/go/ermcp/warehouse-info/interface';
 
 /**
  * 查询仓库信息 /Ermcp/QueryWarehouseInfo
@@ -25,3 +29,14 @@ export function QueryAreaStock(userid: number): Promise<Ermcp3AreaStock[]> {
         throw new Error(`查询机构库存(库存管理/当前库存): ${err.message}`);
     });
 }
+
+/**
+ * 查询已登记出入库信息(入库登记/已入库信息 | 出库登记/已出库信息) /Ermcp3/QueryAreaStockApplySum
+ * @param spotcontractid 合同ID
+ * @constructor
+ */
+export function QueryAreaStockApply(spotcontractid: number): Promise<Ermcp3AreaStockApplySum> {
+    return commonSearch_go('/Ermcp3/QueryAreaStockApplySum', { spotcontractid }).catch((err) => {
+        throw new Error(`查询已登记出入库信息(入库登记/已入库信息): ${err.message}`);
+    });
+}

+ 11 - 0
src/services/go/ermcp/warehouse-info/interface.ts

@@ -58,3 +58,14 @@ export interface Ermcp3AreaStock{
     wrstandardname	:string;//品类名称
 }
 
+export interface Ermcp3AreaStockApplySum{
+    brandname       :string;//品牌名称
+    inouttype       :number;//出入库类型 - 1:采购入库 2:销售出库 3:生产入库 4:生产出库
+    spotcontractid  :string;//关联现货合同ID
+    spotgoodsbrandid        :number;//品牌id
+    totalqty        :number;//总数量
+    wrstandardid    :number;//品类id
+    wrstandardname  :string;//品类名称
+}
+
+