charles
2024-08-06 5ecb7958c96d3f0b6d47b79aff7eb306c2cf690f
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
  })
}
@@ -72,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({
@@ -85,8 +101,25 @@
// 获取全部调拨列表
export function getAllList(data) {
  return request({
    url: "/api-wms/v1/operation/listAll",
    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
  })
}