pendingInspection.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import service from '/@/utils/request';
  2. export interface PagedWithTotalQty<T> {
  3. total: number;
  4. page: number;
  5. pageSize: number;
  6. list: T[];
  7. grandTotalQty: number;
  8. }
  9. // ── S5 暂收在检列表(只读,数据源 aidopdev.MissedPrint Status='I',存储过程 pr_WMS_GetMissedTempQty 口径)──
  10. export interface PendingInspectionRow {
  11. /** 要货令单号 PurOrd */
  12. demandNo?: string;
  13. /** 要货令行号 PurLine */
  14. demandLineNo?: number;
  15. /** 物料编码 ItemNum */
  16. materialCode?: string;
  17. /** 物料名称 Descr */
  18. materialName?: string;
  19. /** 批次号 LotSerial */
  20. batchNo?: string;
  21. /** 数量 SUM(Qty) */
  22. qty?: number;
  23. /** 单位 UM */
  24. unit?: string;
  25. /** 待检货架 Shelf */
  26. pendingShelf?: string;
  27. /** 送货单号 ShipperNbr */
  28. deliveryNo?: string;
  29. /** 检验单号 CheckNo */
  30. inspectNo?: string;
  31. /** 检验状态 FINSPECTSTATUS */
  32. inspectStatus?: string;
  33. /** 供应商 Supply */
  34. supplier?: string;
  35. /** 供应商简称 SortName */
  36. supplierShortName?: string;
  37. }
  38. export interface PendingInspectionStatusOption {
  39. val?: string;
  40. }
  41. export interface PendingInspectionSupplierOption {
  42. val?: string;
  43. label?: string;
  44. }
  45. export function fetchPendingInspectionList(params: any) {
  46. return service
  47. .get<PagedWithTotalQty<PendingInspectionRow>>('/api/S5PendingInspection/list', { params })
  48. .then((r) => r.data);
  49. }
  50. export function fetchPendingInspectionStatusOptions() {
  51. return service.get<PendingInspectionStatusOption[]>('/api/S5PendingInspection/status-options').then((r) => r.data);
  52. }
  53. export function fetchPendingInspectionSupplierOptions() {
  54. return service.get<PendingInspectionSupplierOption[]>('/api/S5PendingInspection/supplier-options').then((r) => r.data);
  55. }