songshankun
2023-11-03 cf6a4b874aed82592eea78294715c7c688f9b248
src/api/overview/overview.js
@@ -1,9 +1,18 @@
import request from "@/common/untils/request.js"
import axios from "axios"
// 查询业务类型列表
export const getOperationType = async (data) => {
  return await axios.get(`/api-wms/v1/operationType/operationType`, {
export const getOperationType =  (data) => {
  return request({
    url: "/api-wms/v1/operationType/operationType",
    method: "get",
    params: data
  })
}
// 查询业务类型列表--内部调拨
export const getListTransfer = (data) => {
  return request({
    url: "/api-wms/v1/operationType/listTransfer",
    method: "get",
    params: data
  })
}
@@ -33,9 +42,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 +68,8 @@
// 编辑入库/出库
export function updateOperation(data) {
  return request({
    url: `/api-wms/v1/operation/operation/${data.id}`,
    method: "put",
    url: `/api-wms/v1/operation/update`,
    method: "post",
    data
  })
}
@@ -79,3 +90,12 @@
    data
  })
}
// 获取全部调拨列表
export function getAllList(data) {
  return request({
    url: "/api-wms/v1/operation/listTransfer",
    method: "post",
    data
  })
}