RelocationController.ts
3.04 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import { AxiosResponse, AxiosStatic } from "axios";
import dayjs, { Dayjs } from "dayjs";
// region 前端扩展导入包
import { Outbound } from "lib/src/entity/venue/entity/Outbound";
import { Warehousing } from "lib/src/entity/venue/entity/Warehousing";
import { Page } from "autumn-vue/lib/core/page/Page";
// endregion
/**
* 出库(Outbound) PI接口
* @author gonglei
* @since 2025-10-13 12:18:11
*/
export class RelocationController {
/**
* 新增出库
* @param outbound
* @return Outbound
*/
static addOutbound(axios: AxiosStatic, outbound: any): Promise<AxiosResponse<Outbound>> {
return axios.post("outbound/addOutbound", outbound);
}
/**
* 新增入库
* @param warehousing
* @return Warehousing
*/
static addWarehousing(axios: AxiosStatic, warehousing: any): Promise<AxiosResponse<Warehousing>> {
return axios.post("outbound/addWarehousing", warehousing);
}
/**
* 根据id查询出库
* @param outboundId
* @return Outbound
*/
static getOutboundById(axios: AxiosStatic, outboundId: number): Promise<AxiosResponse<Outbound>> {
return axios.get("outbound/getOutboundById", { params: { outboundId: outboundId } });
}
/**
* 根据id查询入库
* @param warehousingId
* @return Warehousing
*/
static getWarehousingById(axios: AxiosStatic, warehousingId: number): Promise<AxiosResponse<Warehousing>> {
return axios.get("outbound/getWarehousingById", { params: { warehousingId: warehousingId } });
}
/**
* 分页查询出库
* @param pagination
* @return Page
*/
static pageOutbound(axios: AxiosStatic, pagination: any): Promise<AxiosResponse<Page<Outbound>>> {
return axios.post("outbound/pageOutbound", pagination);
}
static PAGE_OUTBOUND = "outbound/pageOutbound";
/**
* 分页查询入库
* @param pagination
* @return Page
*/
static pageWarehousing(axios: AxiosStatic, pagination: any): Promise<AxiosResponse<Page<Warehousing>>> {
return axios.post("outbound/pageWarehousing", pagination);
}
static PAGE_WAREHOUSING = "outbound/pageWarehousing";
/**
* 删除出库
* @param outboundId
* @return int
*/
static removeOutboundById(axios: AxiosStatic, outboundId: number): Promise<AxiosResponse<number>> {
return axios.delete("outbound/removeOutboundById", { params: { outboundId: outboundId } });
}
/**
* 删除入库
* @param warehousingId
* @return int
*/
static removeWarehousingById(axios: AxiosStatic, warehousingId: number): Promise<AxiosResponse<number>> {
return axios.delete("outbound/removeWarehousingById", { params: { warehousingId: warehousingId } });
}
/**
* 修改出库
* @param outbound
* @return Outbound
*/
static updateOutbound(axios: AxiosStatic, outbound: any): Promise<AxiosResponse<Outbound>> {
return axios.post("outbound/updateOutbound", outbound);
}
/**
* 修改入库
* @param warehousing
* @return Warehousing
*/
static updateWarehousing(axios: AxiosStatic, warehousing: any): Promise<AxiosResponse<Warehousing>> {
return axios.post("outbound/updateWarehousing", warehousing);
}
// region 前端扩展代码区
// endregion
}