index.ts 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /** ================================= 库存报表 ================================**/
  2. import APP from '@/services';
  3. import * as type from './interface';
  4. import { commonSearch_go } from '@/services/go/index';
  5. import { QueryAreaStockReportReq } from './interface';
  6. import { QueryAreaStockReportDetailReq } from './interface';
  7. /**
  8. * 查询库存报表
  9. * @param queryInfo 查询信息
  10. * @returns 库存报表
  11. */
  12. export async function QueryAreaStockReport(queryInfo: QueryAreaStockReportReq): Promise<type.QueryAreaStockReportRsp[]> {
  13. try {
  14. return commonSearch_go('/Ermcp3/QueryAreaStockReport', queryInfo);
  15. } catch (err) {
  16. throw new Error(err.message);
  17. }
  18. }
  19. /**
  20. * 查询库存明细报表
  21. * @param queryInfo 查询信息
  22. * @returns 库存明细报表
  23. */
  24. export async function QueryAreaStockReportDetail(queryInfo: QueryAreaStockReportDetailReq): Promise<type.QueryAreaStockReportDetailRsp[]> {
  25. try {
  26. return commonSearch_go('/Ermcp3/QueryAreaStockReportDetail', queryInfo);
  27. } catch (err) {
  28. throw new Error(err.message);
  29. }
  30. }