haoxuan
2024-02-07 d68b036a3b3c67273b8effa3c9925ef3869a91ba
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
  })
}
// 添加入库/出库
@@ -70,7 +81,14 @@
    id
  })
}
// 取消-状态
export function stateCancel(id) {
  return request({
    url: `/api-wms/v1/operation/cancel/${id}`,
    method: "put",
    id
  })
}
// 获取位置列表
export function getLocationList(data) {
  return request({
@@ -79,3 +97,29 @@
    data
  })
}
// 获取全部调拨列表
export function getAllList(data) {
  return request({
    url: "/api-wms/v1/operation/listTransfer",
    method: "post",
    data
  })
}
// 获取物流公司信息
export const getLogisticCompanyList = (data) => {
  return request({
    url: "/api-wms/v1/operation/getLogisticCompanyList",
    method: "get",
    params: data
  })
}
// 打印
export function printReceipts(id) {
  return request({
    url: `/api-wms/v1/operation/outputOperation/${id}`,
    method: "put",
    id
  })
}