| 1234567891011121314151617181920212223242526272829 |
- import {commonSearch_go} from "@/services/go";
- import {
- Ermcp3AreaStock,
- Ermcp3AreaStockApply,
- QueryAreaStockApplyReq
- } from "@/services/go/ermcp/search-inventory/interface";
- /** ================================= 库存查询 ================================**/
- /**
- * 查询机构库存(库存查询/当前库存) /Ermcp3/QueryAreaStock
- * @param userid
- * @constructor
- */
- export function QueryAreaStock(userid: number): Promise<Ermcp3AreaStock[]>{
- return commonSearch_go('/Ermcp3/QueryAreaStock', {userid}).catch((err) => {
- throw new Error(`查询机构库存(库存管理/当前库存): ${err.message}`);
- });
- }
- /**
- * 查询库存申请(库存查询|库存审核) /Ermcp3/QueryAreaStockApply (管理 - 库存审核) 调用的是同一个接口
- * @param req
- * @constructor
- */
- export function QueryAreaStockApply(req: QueryAreaStockApplyReq): Promise<Ermcp3AreaStockApply[]> {
- return commonSearch_go('/Ermcp3/QueryAreaStockApply', req).catch((err) => {
- throw new Error(`查询库存申请: ${err.message}`);
- });
- }
|