Skip to content

Commit aa964e1

Browse files
committed
✨ ERP:付款单 30%(列表)
1 parent 58972e0 commit aa964e1

File tree

2 files changed

+450
-0
lines changed

2 files changed

+450
-0
lines changed

src/api/erp/finance/payment/index.ts

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

0 commit comments

Comments
 (0)