import request from '@/utils/request';


/**
 * 列表
 */
export async function getPage(params) {
  const res = await request.get('/mes/pickorder/page',  { params });
  if (res.data.code == 0) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}


// 退料(过滤不要的数据的领料接口)
export async function returnPage(params) {
  const res = await request.get('/mes/pickorder/returnPage',  { params });
  if (res.data.code == 0) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}



returnPage