haoxuan
2024-02-07 d68b036a3b3c67273b8effa3c9925ef3869a91ba
src/api/overview/overview.js
@@ -1,15 +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 = async (data) => {
  return await axios.get(`/api-wms/v1/operationType/listTransfer`, {
export const getListTransfer = (data) => {
  return request({
    url: "/api-wms/v1/operationType/listTransfer",
    method: "get",
    params: data
  })
}
@@ -78,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({
@@ -96,3 +106,20 @@
    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
  })
}