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
| import request from "@/utils/request";
|
| /** 根据供应商查询可关联入库单 */
| export function getInboundBatchesBySupplier(params) {
| return request({
| url: "/accountPaymentApplication/getInboundBatchesBySupplier",
| method: "get",
| params,
| });
| }
|
| /** 新增付款申请 */
| export function addAccountPaymentApplication(data) {
| return request({
| url: "/accountPaymentApplication/addAccountPaymentApplication",
| method: "post",
| data,
| });
| }
|
| /** 付款申请分页列表 */
| export function listPageAccountPaymentApplication(params) {
| return request({
| url: "/accountPaymentApplication/listPageAccountPaymentApplication",
| method: "get",
| params,
| });
| }
|
| /** 修改付款申请 */
| export function updateAccountPaymentApplication(data) {
| return request({
| url: "/accountPaymentApplication/updateAccountPaymentApplication",
| method: "put",
| data,
| });
| }
|
| /** 审核付款申请 */
| export function auditAccountPaymentApplication(data) {
| return request({
| url: "/accountPaymentApplication/auditAccountPaymentApplication",
| method: "put",
| data,
| });
| }
|
| /** 删除付款申请(Spring 要求 ids=1&ids=2 查询参数) */
| export function deleteAccountPaymentApplication(ids) {
| const idList = Array.isArray(ids) ? ids : [ids];
| const query = idList
| .filter((id) => id !== undefined && id !== null && id !== "")
| .map((id) => `ids=${encodeURIComponent(id)}`)
| .join("&");
| return request({
| url: `/accountPaymentApplication/deleteAccountPaymentApplication?${query}`,
| method: "delete",
| });
| }
|
|