warehousing.ts 891 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import {
  2. BaseResult,
  3. GetOtherInGetStockInfoParams,
  4. OtherStockInParams,
  5. OtherStockOutParams,
  6. } from '@models';
  7. import {request} from './request';
  8. const BASE_URL = '/warehousing';
  9. type OtherStockInData =
  10. | {msg: '200'; list: {id: string}[]}
  11. | {msg: '510'; errMsg: string};
  12. /** 其他入库获取库存信息 */
  13. export function otherInGetStockInfo(
  14. data: GetOtherInGetStockInfoParams,
  15. ): Promise<OtherStockInData> {
  16. return request({
  17. method: 'GET',
  18. data,
  19. url: `${BASE_URL}/otherWarehousing`,
  20. }) as any;
  21. }
  22. /** 其他入库 */
  23. export function otherIn(data: OtherStockInParams): BaseResult {
  24. return request({
  25. method: 'GET',
  26. data,
  27. url: `${BASE_URL}/otherWarehou`,
  28. });
  29. }
  30. /** 其他出库 */
  31. export function otherOut(data: OtherStockOutParams): BaseResult {
  32. return request({
  33. method: 'GET',
  34. data,
  35. url: `/askGoods/otherAskGoods`,
  36. });
  37. }