yangfeng
2023-09-21 8d0ee0a2c32c7a99afc01b0a0c795d708a9b7955
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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`, {
    params: data
  })
}
// 添加业务类型
export function addOperationType(data) {
  return request({
    url: "/api-wms/v1/operationType/operationType",
    method: "post",
    data
  })
}
// 删除业务类型
export function deleteOperationType(id) {
  return request({
    url: `/api-wms/v1/operationType/operationType/${id}`,
    method: "delete",
    id
  })
}
// 编辑业务类型
export function updateOperationType(data) {
  return request({
    url: `/api-wms/v1/operationType/operationType/${data.id}`,
    method: "put",
    data
  })
}
 
// 查询入库/出库列表
export const getOperation = async (data) => {
  return await axios.get(`/api-wms/v1/operation/operation`, {
    params: data
  })
}
// 添加入库/出库
export function addOperation(data) {
  return request({
    url: "/api-wms/v1/operation/operation",
    method: "post",
    data
  })
}
// 删除入库/出库
export function deleteOperation(id) {
  return request({
    url: `/api-wms/v1/operation/operation/${id}`,
    method: "delete",
    id
  })
}
// 编辑入库/出库
export function updateOperation(data) {
  return request({
    url: `/api-wms/v1/operation/operation/${data.id}`,
    method: "put",
    data
  })
}