Skip to content

Commit ee35056

Browse files
committed
✨ ERP:采购退货 50%(列表)
1 parent 57044cb commit ee35056

File tree

4 files changed

+1155
-0
lines changed

4 files changed

+1155
-0
lines changed

src/api/erp/purchase/return/index.ts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import request from '@/config/axios'
2+
3+
// ERP 采购退货 VO
4+
export interface PurchaseReturnVO {
5+
id: number // 采购退货编号
6+
no: string // 采购退货号
7+
customerId: number // 客户编号
8+
returnTime: Date // 退货时间
9+
totalCount: number // 合计数量
10+
totalPrice: number // 合计金额,单位:元
11+
status: number // 状态
12+
remark: string // 备注
13+
}
14+
15+
// ERP 采购退货 API
16+
export const PurchaseReturnApi = {
17+
// 查询采购退货分页
18+
getPurchaseReturnPage: async (params: any) => {
19+
return await request.get({ url: `/erp/purchase-return/page`, params })
20+
},
21+
22+
// 查询采购退货详情
23+
getPurchaseReturn: async (id: number) => {
24+
return await request.get({ url: `/erp/purchase-return/get?id=` + id })
25+
},
26+
27+
// 新增采购退货
28+
createPurchaseReturn: async (data: PurchaseReturnVO) => {
29+
return await request.post({ url: `/erp/purchase-return/create`, data })
30+
},
31+
32+
// 修改采购退货
33+
updatePurchaseReturn: async (data: PurchaseReturnVO) => {
34+
return await request.put({ url: `/erp/purchase-return/update`, data })
35+
},
36+
37+
// 更新采购退货的状态
38+
updatePurchaseReturnStatus: async (id: number, status: number) => {
39+
return await request.put({
40+
url: `/erp/purchase-return/update-status`,
41+
params: {
42+
id,
43+
status
44+
}
45+
})
46+
},
47+
48+
// 删除采购退货
49+
deletePurchaseReturn: async (ids: number[]) => {
50+
return await request.delete({
51+
url: `/erp/purchase-return/delete`,
52+
params: {
53+
ids: ids.join(',')
54+
}
55+
})
56+
},
57+
58+
// 导出采购退货 Excel
59+
exportPurchaseReturn: async (params: any) => {
60+
return await request.download({ url: `/erp/purchase-return/export-excel`, params })
61+
}
62+
}

0 commit comments

Comments
 (0)