yangfeng
2023-10-19 5d5ea5cd8c4cc06da24cec8442dba934e599f702
src/api/overview/overview.js
@@ -33,9 +33,11 @@
}
// 查询入库/出库列表
export const getOperation = async (data) => {
  return await axios.get(`/api-wms/v1/operation/operation`, {
    params: data
export function getOperation(data) {
  return request({
    url: "/api-wms/v1/operation/list",
    method: "post",
    data
  })
}
// 添加入库/出库
@@ -57,8 +59,34 @@
// 编辑入库/出库
export function updateOperation(data) {
  return request({
    url: `/api-wms/v1/operation/operation/${data.id}`,
    url: `/api-wms/v1/operation/update`,
    method: "post",
    data
  })
}
// 验证 更改记录状态
export function updateStatus(id) {
  return request({
    url: `/api-wms/v1/operation/finish/${id}`,
    method: "put",
    id
  })
}
// 获取位置列表
export function getLocationList(data) {
  return request({
    url: "/api-wms/v1/location/getLocationList",
    method: "post",
    data
  })
}
// 获取全部调拨列表
export function getAllList(data) {
  return request({
    url: "/api-wms/v1/operation/listAll",
    method: "post",
    data
  })
}